update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2008-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * concord.c (concord_id_validate): New function.
4         (structure_type_create_concord): Use `concord_id_validate' instead
5         of `concord_name_validate' to accept integer and character as =id.
6
7 2008-09-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
8
9         * concord.c (func_for_each_object): Fix bug about GC-protection.
10
11 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
12
13         * concord.c (Fconcord_object_put): Check argument FEATURE is a
14         symbol.
15
16 2008-09-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
17
18         * text-coding.c (struct decoding_stream): Add new member
19         `bom_flag' in XEmacs CHISE.
20         (reset_decoding_stream): Ignore U+FEFF in the beginning of stream
21         in XEmacs CHISE.
22
23 2008-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
24
25         * mule-charset.c: Move definition of `=jis-x0208@1978' to
26         lisp/mule/mule-conf.el.
27
28 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
29
30         * mule-charset.c (Qpartial): New variable in XEmacs CHISE.
31         (make_charset): Add new argument `partial'.
32         (Fmake_charset): Add new property 'partial in XEmacs CHISE.
33         (Fmake_reverse_direction_charset): Modify for `make_charset'.
34         (syms_of_mule_charset): Add new builtin symbol `partial' in XEmacs
35         CHISE.
36         (complex_vars_of_mule_charset): Modify for `make_charset'; specify
37         `=jis-x0208' as a partial coded-charset.
38
39 2008-08-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
40
41         * text-coding.c (decode_add_er_char): Fix problem when a character
42         represented by an entity-reference is not defined.
43
44 2008-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
45
46         * char-ucs.h, chartab.c, fns.c, mule-charset.c: Rename Qmap_* to
47         Qrep_*.
48
49 2007-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
50
51         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.24
52         (Kasagi).
53
54 2006-06-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
55
56         * concord.c (Fconcord_object_put): Add reversed links when FEATURE
57         is a relation feature.
58
59 2006-06-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
60
61         * chartab.c (syms_of_chartab): Define
62         `{<-|->}{subsumptive|denotational}' when HAVE_CONCORD is defined.
63
64         * chartab.h (Q_denotational): New extern when UTF2000 or
65         HAVE_CONCORD is defined.
66         (Q_denotational_from): Likewise.
67         (Q_subsumptive): Likewise.
68         (Q_subsumptive_from): Likewise.
69
70 2006-06-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
71
72         * concord.c (concord_object_put): New function.
73         (Fconcord_object_put): Use `concord_object_put'.
74
75 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
76
77         * concord.c (Fconcord_define_object): New function.
78         (syms_of_concord): Add new builtin function
79         `concord-define-object'.
80
81 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
82
83         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
84         (Kamo).
85
86 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
87
88         * concord.c: Add EXFUN for Fconcord_object_get.
89         (Vconcord_genre_object_hash_table): New variable.
90         (concord_genre_cache_get_object): New function.
91         (concord_genre_cache_put_object): New function.
92         (Fconcord_make_object): Use object cache; put object-ID into `=id'
93         feature.
94         (Fconcord_object_put): Call `concord_index_sync' after
95         `concord_index_strid_put_obj'.
96         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
97
98 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
99
100         * concord.c (Fconcord_decode_object): Do GCPRO for
101         Fconcord_make_object.
102         (func_for_each_object): Likewise; do GCPRO for
103         for_each_object_closure->function.
104         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
105         for_each_object_closure->function, for_each_object_closure->genre,
106         for_each_object_closure->ds and for_each_object_closure->ret.
107         (concord_object_validate): Do GCPRO for Fconcord_make_object.
108
109 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
110
111         * concord.c: Add EXFUNs for Fconcord_decode_object and
112         Fconcord_object_put.
113         (Fconcord_make_object): Change order of arguments.
114         (Fconcord_decode_object): Modify for Fconcord_make_object.
115         (func_for_each_object): Likewise.
116         (concord_object_validate): Likewise.
117         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
118
119 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
120
121         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
122
123 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
124
125         * concord.c (Fconcord_decode_object): Try to use readable print
126         form as a key of Concord-index.
127         (Fconcord_object_get): Try to use readable print form as an ID of
128         Concord-object.
129         (Fconcord_object_put): Try to use readable print form as an ID of
130         Concord-object and a feature value.
131         (Fconcord_object_spec): Try to use readable print form as an ID of
132         Concord-object.
133
134 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
135
136         * concord.c (print_concord_object): Support readable form.
137
138 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
139
140         * emacs.c (main_1): Call `structure_type_create_concord' when
141         HAVE_CONCORD is defined.
142
143         * symsinit.h (structure_type_create_concord): New prototype.
144
145         * concord.c (Qconcord_object): New variable.
146         (Qgenre): Likewise.
147         (Q_id): Likewise.
148         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
149         for directory.
150         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
151         char*> for genre-name.
152         (Fconcord_feature_list): Likewise.
153         (Fconcord_make_object): Likewise.
154         (Fconcord_decode_object): Likewise; use <char*> instead of
155         <unsigned char*> for feature_name and strid.
156         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
157         c_obj and feature_name.
158         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
159         char*> for c_value.
160         (struct closure_for_object_spec): Use <char*> instead of <unsigned
161         char*> for member `object_id'.
162         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
163         char*> for feature-name.
164         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
165         for c_obj.
166         (func_for_each_object): Cast to avoid warnings.
167         (Fconcord_foreach_object_in_feature): Use <char*> instead of
168         <unsigned char*> for genre_name and feature_name.
169         (concord_name_validate): New function.
170         (concord_object_validate): Likewise.
171         (concord_object_instantiate): Likewise.
172         (syms_of_concord): Add new builtin symbols `concord-object',
173         `genre' and `=id'.
174         (structure_type_create_concord): New function.
175
176 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
177
178         * concord.c (Vconcord_ds_hash_table): New variable.
179         (Vconcord_genre_hash_table): New variable.
180         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
181         (Fconcord_ds_directory): New function.
182         (Fconcord_assign_genre): New function.
183         (Fconcord_genre_directory): New function.
184         (Fconcord_genre_ds): New function.
185         (Fconcord_feature_list): Allow to omit `ds'.
186         (Fconcord_make_object): Likewise.
187         (Fconcord_decode_object): Likewise.
188         (Fconcord_foreach_object_in_feature): Likewise.
189         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
190         Fconcord_assign_genre, Fconcord_genre_directory and
191         Fconcord_genre_ds.
192         (vars_of_concord): Setup Vconcord_ds_hash_table and
193         Vconcord_genre_hash_table.
194
195 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
196
197         * concord.c (struct closure_for_each_object): Add new member
198         `ret'.
199         (func_for_each_object): Setup the return value to
200         `for_each_object_closure->ret'.
201         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
202         returns the value instead of Qt.
203
204 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
205
206         * concord.c: New file.
207
208 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
209
210         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
211         `lrecord_type_concord_object'.
212
213 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
214
215         * symsinit.h (syms_of_concord): New prototype.
216         (vars_of_concord): New prototype.
217
218         * emacs.c (main_1): Setup symbols and variable about concord if
219         HAVE_CONCORD is defined.
220
221         * config.h.in (HAVE_CONCORD): New macro.
222
223 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
224
225         * chartab.c (Fput_char_attribute): For each character relation
226         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
227
228 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
229
230         * chartab.c (Fput_char_attribute): Use
231         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
232         calling `put_char_composition'.
233
234 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
235
236         * chartab.c (Q_halfwidth_of): New variable.
237         (put_char_composition): Return `<-halfwidth' instead of
238         `=decomposition' for compatibility mapping to single character
239         tagged `narrow'.
240         (Fput_char_attribute): Convert char-specs in value of
241         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
242         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
243         for `<-halfwidth'.
244         (syms_of_chartab): Add new symbol `<-halfwidth'.
245
246 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
247
248         * chartab.c (put_char_composition): Return
249         `<-formed@{isolated|initial|medial|final}' for compatibility
250         mapping to single character tagged
251         `{isolated|initial|medial|final}'.
252
253 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
254
255         * chartab.c (Q_compat_of): Deleted.
256         (put_char_composition): Return `<-FOO' for compatibility mapping
257         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
258         of `symbol_name (XSYMBOL(...))'.
259         (Fput_char_attribute): Convert char-specs in value of
260         `{<-|->}font[^*]*' to characters and put reverse links.
261         (Fsave_char_attribute_table): Don't refer Q_compat_of.
262         (syms_of_chartab): Delete builtin symbol `<-compat'.
263
264 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
265
266         * chartab.c (Q_circled_of): New variable.
267         (put_char_composition): Return `<-circled' instead of
268         `=decomposition' for compatibility mapping to single character
269         tagged `circle'.
270         (Fput_char_attribute): Convert char-specs in value of
271         `{<-|->}circled[^*]*' to characters and put reverse links.
272         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
273         for `<-circled'.
274         (syms_of_chartab): Add new symbol `<-circled'.
275
276 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
277
278         * chartab.c (Qto_decomposition_at_circled): New variable.
279         (put_char_composition): Return `=>decomposition@circled' instead
280         of `=decomposition' for compatibility decomposition mapping tagged
281         `circle'.
282         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
283
284 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
285
286         * chartab.c (Q_subscript_of): New variable.
287         (put_char_composition): Return `<-subscript' instead of
288         `=decomposition' for compatibility mapping to single character
289         tagged `sub'.
290         (Fput_char_attribute): Convert char-specs in value of
291         `{<-|->}subscript[^*]*' to characters and put reverse links.
292         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
293         for `<-subscript'.
294         (syms_of_chartab): Add new symbol `<-subscript'.
295
296 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
297
298         * chartab.c (Q_superscript_of): New variable.
299         (put_char_composition): Return `<-superscript' instead of
300         `=decomposition' for compatibility mapping to single character
301         tagged `super'.
302         (Fput_char_attribute): Convert char-specs in value of
303         `{<-|->}superscript[^*]*' to characters and put reverse links.
304         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
305         for `<-superscript'.
306         (syms_of_chartab): Add new symbol `<-superscript'.
307
308 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
309
310         * chartab.c (Qto_decomposition_at_compat): Deleted.
311         (Qto_decomposition_at_superscript): New variable.
312         (put_char_composition): Use `=>decomposition@superscript' instead
313         of `=decomposition' for compatibility decomposition mapping tagged
314         `super'.
315         (Fput_char_attribute): Fix condition about `put_char_composition'.
316         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
317         add news symbol `=>decomposition@superscript'.
318
319 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
320
321         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
322         for compatibility decomposition mapping tagged FOO.
323         (Fput_char_attribute): Modify for `put_char_composition'.
324
325 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
326
327         * chartab.c (Qto_decomposition_at_compat): New variable.
328         (Q_compat_of): Renamed from `Q_compatibility_of'.
329         (put_char_composition): Rename `Q_compatibility_of' to
330         `Q_compat_of'; return `=>decomposition@compat' for compatibility
331         decomposition mapping.
332         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
333         `Q_compat_of'.
334         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
335         `<-compatibility' to `<-compat'.
336
337 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
338
339         * chartab.c (Q_compatibility_of): New variable.
340         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
341         object is proved to be a cons cell; return `<-compatibility' if
342         the first element of argument `value' is `compat'.
343         (Fput_char_attribute): Eliminate the first value if
344         `put_char_composition' returns `<-compatibility'.
345         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
346         for `<-compatibility'.
347         (syms_of_chartab): Add new symbol `<-compatibility'.
348
349 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
350
351         * chartab.c (Q_canonical): New variable.
352         (put_char_composition): Return a feature name: return
353         `->canonical' if argument `value' specifies single character.
354         (Fput_char_attribute): Use `put_char_composition' to determine
355         feature name for `=decomposition' or `->denotational'.
356         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
357         for `->canonical'.
358         (syms_of_chartab): Add new symbol `->canonical'.
359
360 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
361
362         * chartab.c (Qmap_decomposition): New variable.
363         (Fput_char_attribute): Convert `->decomposition' to
364         `=decomposition'.
365         (syms_of_chartab): Add new symbol `=decomposition'.
366
367 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
368
369         * chartab.c (Fget_range_char_table): Fix serious problem when
370         `range' is nil.
371
372 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
373
374         * chartab.c (char_table_get_db): Use `read_from_c_string'.
375
376 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
377
378         * lread.c (read_from_c_string): New function.
379
380         * lisp.h (read_from_c_string): New prototype.
381
382 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
383
384         * chartab.c (Fput_char_attribute): Convert char-specs in value of
385         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
386         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
387         for `{<-|->}Oracle-Bones[^*]*'.
388
389 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
390
391         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
392         (Kizu).
393
394 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
395
396         * text-coding.c (Qccs_priority_list): New variable in XEmacs
397         CHISE.
398         (Fmake_coding_system): Support new property `ccs-priority-list' in
399         XEmacs CHISE.
400         (Fcoding_system_property): Likewise.
401         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
402         Vdefault_coded_charset_priority_list in XEmacs CHISE.
403         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
404         XEmacs CHISE.
405         (complex_vars_of_file_coding): Define new coding-system-property
406         `ccs-priority-list' in XEmacs CHISE.
407
408         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
409
410 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
411
412         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
413         changed to normal function.
414         (encode_char_2): Likewise.
415
416         * mule-charset.c (decoding_table_put_char): Copied from
417         char-ucs.h; changed to normal function.
418         (encode_char_2): Likewise.
419
420 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
421
422         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
423         New extern.
424         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
425         (encode_char_2_search_children): New inline function.
426         (encode_char_2): Refer
427         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
428         and use `encode_char_2_search_children'.
429
430 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
431
432         * mule-charset.c
433         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
434         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
435         (vars_of_mule_charset): Add new variable
436         `display-coded-charset-priority-use-inheritance' and
437         `display-coded-charset-priority-use-hierarchy-order'.
438
439 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
440
441         * char-ucs.h (Q_subsumptive): New extern.
442         (Q_denotational): Likewise.
443         (encode_char_2): Search children specified by `->subsumptive' and
444         `->denotational'.
445
446 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
447
448         * mule-charset.c (complex_vars_of_mule_charset): Modify the
449         X-registry of `ucs-bmp'.
450
451 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
452
453         * chartab.c (char-variants): Refer `->subsumptive',
454         `->denotational' and `->identical' as same as `->ucs-unified'.
455
456 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
457
458         * chartab.c (Fput_char_attribute): Convert char-specs in value of
459         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
460         links.
461
462 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
463
464         * text-coding.c: Add EXFUN for `Fregexp_quote'.
465         (decode_add_er_char): Fix problem about infinite loop when a CCS
466         specified in `coded-charset-entity-reference-alist' is not
467         existed.
468
469 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
470
471         * mule-charset.c (syms_of_mule_charset): Rename
472         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
473
474 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
475
476         * fns.c (simplify_char_spec): Don't allocate new character-object
477         if specified char_spec does not have any CCS-features.
478
479         * chartab.h: Add EXFUN for Fdefine_char.
480
481         * chartab.c: Delete EXFUN for Fdefine_char.
482
483 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
484
485         * fns.c (simplify_char_spec): Use Fdefine_char instead of
486         Ffind_char for char-spec.
487
488 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
489
490         * lisp-disunion.h (XCHARVAL): Fix condition about
491         SIZEOF_EMACS_INT.
492
493 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
494
495         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
496         <int> for `code'.
497         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
498         point; use <Emchar> instead of <int> for character-id.
499
500 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
501
502         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
503         (make_char): Likewise.
504         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
505         environment.
506         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
507         instead of <int> as the type of return value; use <Lisp_Object>
508         instead of <Emchar> as the type of argument.
509         (XCHARVAL[macro version]): Cast the result into <Emchar>.
510
511         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
512         syntaxcode> instead of <int>.
513
514 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
515
516         * chartab.c (put_char_composition): Use DECODE_CHAR to get
517         character corresponding with UCS code point.
518         (Fput_char_attribute): Likewise.
519
520         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
521         character in the UCS decoding-table if the char-id is not equal to
522         the UCS code point.
523
524 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
525
526         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
527         for aliases; write `description'; write
528         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
529         not 0.
530
531 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
532
533         * chartab.c (Fsave_char_attribute_table): Don't use
534         `save_charset_properties'.
535
536         * mule-charset.c (Fsave_charset_properties): Renamed from
537         `save_charset_properties' and changed to Lisp function again;
538         write property `type' as `CCS'; write properties `final-byte' and
539         `mother' if they exists.
540         (syms_of_mule_charset): Revive builtin function
541         `save-charset-properties' when HAVE_LIBCHISE is defined.
542
543 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
544
545         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
546         instead of Vexec_directory.
547         (char_attribute_system_db_file): Likewise.
548
549 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
550
551         * chartab.c (Fsave_char_attribute_table): Use
552         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
553         defined.
554
555         * mule-charset.c (save_charset_properties): Renamed from
556         `Fsave_charset_properties'; changed to non-Lisp function.
557         (syms_of_mule_charset): Abolish builtin function
558         `save-charset-properties'.
559
560 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
561
562         * mule-charset.c (Fsave_charset_properties): New function when
563         HAVE_LIBCHISE is defined.
564         (syms_of_mule_charset): Add new builtin function
565         `save-charset-properties' when HAVE_LIBCHISE is defined.
566
567 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
568
569         * chartab.c (Fput_char_attribute): Convert char-specs in value of
570         `{<-|->}ancient[^*]*' to characters and put reverse links.
571         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
572         for `{<-|->}ancient[^*]*'.
573
574 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
575
576         * chartab.c (Fput_char_attribute): Convert char-specs in value of
577         `{<-|->}original[^*]*' to characters and put reverse links.
578         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
579         for `{<-|->}original[^*]*'.
580
581 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
582
583         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
584
585 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
586
587         * mule-charset.c (Qsystem_char_id): New variable.
588
589         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
590         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
591
592 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
593
594         * chartab.c (Fput_char_attribute): When processing a reference of
595         a character, put into the end of the reversed reference of each
596         target character.
597
598 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
599
600         * chartab.c (Q_same): Deleted.
601         (Q_same_of): Deleted.
602         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
603         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
604         for `{<-|->}same'.
605         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
606
607 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
608
609         * chartab.c (Q_vulgar): Deleted.
610         (Q_vulgar_of): Deleted.
611         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
612         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
613         for `{<-|->}vulgar'.
614         (syms_of_chartab): Don't define `{<-|->}vulgar'.
615
616 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
617
618         * chartab.c (Fput_char_attribute): Convert char-specs in value of
619         `{<-|->}wrong[^*]*' to characters and put reverse links.
620         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
621         for `{<-|->}wrong[^*]*'.
622
623 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
624
625         * chartab.c (Q_vulgar): New variable.
626         (Q_vulgar_of): New variable.
627         (Fput_char_attribute): Convert char-specs in value of
628         `{->|<-}vulgar' to characters and put reverse links.
629         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
630         for `{->|<-}vulgar'.
631         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
632
633 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
634
635         * text-coding.c (decode_add_er_char): Must to quote prefix string
636         as regexp.
637
638 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
639
640         * mule-charset.c (put_char_ccs_code_point): Store characters of
641         =ucs whose code_points >= 0xF0000.
642
643 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
644
645         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
646         CHISE.
647         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
648         CHISE.
649         (complex_vars_of_mule_charset): Add new coded-charset
650         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
651         builtin characters over 0xEFFFF.
652
653         * chartab.c (syms_of_chartab): Don't define symbol
654         `system-char-id' in every case.
655
656         * char-ucs.h (Qsystem_char_id): New extern variable.
657         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
658
659 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
660
661         * text-coding.c (char_encode_utf8): Try to use entity-references
662         for U-000F0000 ...  U-0010FFFF.
663
664 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
665
666         * text-coding.c (ER_BUF_SIZE): New macro.
667         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
668         `er_buf'.
669         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
670         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
671
672 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
673
674         * chartab.c (find_char_feature_in_family): New function.
675         (Fchar_feature): Use `find_char_feature_in_family' with
676         `->identical', `<-subsumptive' and `<-denotational'.
677
678 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
679
680         * text-coding.c (char_encode_as_entity_reference): Allow prefix
681         within 8 characters; fix infinite loop.
682
683 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
684
685         * chartab.c (Q_same): New variable.
686         (Q_same_of): New variable.
687         (Fput_char_attribute): Convert char-specs in value of
688         `{->|<-}same' to characters and put reverse links.
689         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
690         for `{->|<-}same'.
691         (syms_of_chartab): Add new symbols `{->|<-}same'.
692
693 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
694
695         * chartab.c (Q_component): New variable.
696         (Q_component_of): Likewise.
697         (Fput_char_attribute): Convert char-specs in value of
698         `{->|<-}ideographic-component-forms' to characters and put reverse
699         links.
700         (syms_of_chartab): Add new symbols
701         `{->|<-}ideographic-component-forms'.
702
703 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
704
705         * chartab.c (Q_identical): New variable.
706         (Q_identical_from): New variable.
707         (Fchar_feature): Regard `->identical' as a feature to find
708         ancestors.
709         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
710         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
711         for `{->|<-}identical'.
712         (syms_of_chartab): Add new symbols `{->|<-}identical'.
713
714 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
715
716         * char-ucs.h (encode_char_2): New inline function.
717         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
718
719 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
720
721         * chartab.c (Fput_char_attribute): Convert char-specs to
722         characters in value of `ideographic-structure'.
723         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
724         for `{<-|->}simplified(@...)'.
725         (Fdefine_char): Try to use predefined character's id.
726
727 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
728
729         * fns.c (simplify_char_spec): Try to convert builtin chars to
730         defined chars.
731
732 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
733
734         * chartab.c (Fput_char_attribute): Convert char-specs in value of
735         `<-simplified[^*]*' to characters and put reverse links.
736
737 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
738
739         * chartab.c (Q_subsumptive): Renamed from Q_unified.
740         (Q_subsumptive_from): Renamed from Q_unified_from.
741         (Fchar_feature): Use `Q_subsumptive_from' instead of
742         `Q_unified_from'.
743         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
744         `Q_unified'.
745         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
746         `<-unified' to `<-subsumptive'.
747
748 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
749
750         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
751         inheritance itself; fix typo; stop recursive search if cyclic
752         inheritance is found.
753
754 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
755
756         * chartab.c (Q_denotational): New variable.
757         (Q_denotational_from): New variable.
758         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
759         (put_char_attribute): New function.
760         (Fput_char_attribute): Use `put_char_attribute'; regard
761         `->denotational' and `<-denotational' as same as `->unified' and
762         `<-unified'.
763         (syms_of_chartab): Add new symbols `->denotational' and
764         `<-denotational'.
765
766 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
767
768         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
769         `Fget_char_attribute'.
770         (Fchar_variants): Likewise.
771         (get_char_table): Likewise.
772         (Fchar_feature): New function.
773         (put_char_composition): Use `Fchar_feature' instead of
774         `Fget_char_attribute'.
775         (Fput_char_attribute): Likewise; don't put the target character
776         into its `->unified' value.
777         (syms_of_chartab): Add new builtin function `char-feature'.
778
779 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
780
781         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
782         `Fget_char_attribute'.
783         (char_encode_utf8): Likewise.
784
785         * chartab.h: Add an EXFUN for `Fchar_feature'.
786
787 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
788
789         * chartab.c (Vnext_defined_char_id): New variable.
790         (Fput_char_attribute): Accept characters in `->unified'.
791         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
792         new characters which are not related with builtin char-id ranges.
793         (vars_of_chartab): Add new variable `next-defined-char-id'.
794
795 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
796
797         * chartab.c (Q_unified): New variable.
798         (Q_unified_from): New variable.
799         (Fput_char_attribute): Add code for `->unified'.
800         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
801         XEmacs CHISE.
802
803 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
804
805         * mule-charset.c (decode_ccs_conversion): New function.
806         (decode_defined_char): Use `decode_ccs_conversion'.
807         (decode_builtin_char): Likewise.
808
809 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
810
811         * char-ucs.h: Change some charset-ids of private coded-charsets.
812
813 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
814
815         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
816         (char_encode_as_entity_reference): Likewise.
817         (decode_coding_big5): Modify for `decode_defined_char' and
818         `DECODE_CHAR'.
819         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
820         avoid compiler warning.
821         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
822
823         * mule-charset.c (decode_defined_char): Add new argument
824         `without_inheritance'.
825         (Fdecode_char): Add new optional argument `without_inheritance'.
826         (Fdecode_builtin_char): Modify for `Fdecode_char'.
827
828         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
829         (simplify_char_spec): Likewise.
830
831         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
832         setting.
833
834         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
835         (map_char_table): Likewise.
836         (Fdefine_char): Use `Fdecode_char' without inheritance.
837         (Ffind_char): Modify for `Fdecode_char'.
838
839         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
840
841         * char-ucs.h (decode_defined_char): Add new argument
842         `without_inheritance'.
843         (DECODE_CHAR): Likewise.
844         (MAKE_CHAR): Modify for `DECODE_CHAR'.
845
846 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
847
848         * chartab.c (Vchise_system_db_directory): New variable.
849         (vars_of_chartab): Add new variable `chise-system-db-directory'.
850
851 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
852
853         * chartab.c: EXFUN `Fmount_char_attribute_table'.
854         (print_chartab_range): Don't define when `UTF2000' is defined.
855         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
856         `CHISE_DS_open'.
857
858 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
859
860         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
861         and optional argument `rehash' is specified, call
862         `open_chise_data_source_maybe' before
863         `chise_ds_foreach_char_feature_name' is called.
864
865 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
866
867         * chartab.c (char_attribute_list_reset_map_func): New function
868         when HAVE_LIBCHISE is defined.
869         (Fchar_attribute_list): Add new optional argument `rehash' when
870         HAVE_LIBCHISE is defined.
871         (open_chise_data_source_maybe): Use "chise-db" instead of
872         "char-db".
873         (char_attribute_system_db_file): Likewise.
874         (Fload_char_attribute_table): Use
875         `chise_feature_foreach_char_with_value' instead of
876         `chise_char_feature_value_iterate'.
877
878 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
879
880         * chartab.c (Vchise_db_directory): New variable.
881         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
882
883 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
884
885         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
886         instead of HAVE_CHISE to specify using with libchise.
887
888         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
889
890         * chartab.h: Don't use HAVE_CHISE_CLIENT.
891
892         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
893         defined or HAVE_LIBCHISE_LIBCHISE is defined.
894         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
895         is defined.
896         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
897         HAVE_CHISE to specify using with libchise.
898         (syms_of_chartab): Don't define symbol `system-char-id' when
899         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
900
901 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
902
903         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
904         specify CHISE DB support.
905         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
906         of `char_attribute_system_db_file' to check feature DB file.
907
908         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
909         HAVE_CHISE_CLIENT to specify CHISE DB support.
910
911         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
912         specify CHISE DB support.
913         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
914         not defined.
915         (Freset_char_attribute_table): Use `chise_feature_setup_db'
916         instead of `char_attribute_system_db_file' to check feature DB
917         file.
918
919 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
920
921         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
922         `HAVE_CHISE_CLIENT'.
923
924 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
925
926         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
927         (Fsave_charset_mapping_table): Don't use
928         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
929
930         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
931         (HAVE_LIBCHISE): New macro.
932
933         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
934
935         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
936         (Fsave_char_attribute_table): Don't use
937         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
938
939 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
940
941         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
942         defined.
943         (save_uint16_byte_table): Likewise.
944         (save_byte_table): Likewise.
945         (char_table_get_db): Use `chise_ds_load_char_feature_value'
946         instead of `chise_char_load_feature_value'.
947         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
948
949 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
950
951         * chartab.h (struct Lisp_Char_Table): Delete member
952         `feature_table' if CHISE is defined.
953
954         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
955         (Fcopy_char_table): Likewise.
956         (char_table_open_db_maybe): Likewise.
957         (char_table_close_db_maybe): Likewise.
958         (char_table_get_db): Likewise.
959         (Fmount_char_attribute_table): Likewise.
960         (Fload_char_attribute_table): Likewise.
961
962 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
963
964         * mule-charset.c (load_char_decoding_entry_maybe): Use
965         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
966         `chise_ccs_decode'.
967
968 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
969
970         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
971         instead of `chise_open_data_source'.
972         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
973         `chise_ds_close'.
974
975 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
976
977         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
978         instead of `chise_ds_open_feature_table'.
979         (char_table_close_db_maybe): Don't use `chise_ft_close'.
980
981 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
982
983         * mule-charset.c (Fsave_charset_mapping_table): Use
984         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
985         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
986         `chise_ccs_sync' instead of `chise_ccst_close'.
987         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
988
989         * chartab.c (open_chise_data_source_maybe): Modify for
990         `chise_open_data_source'.
991         (char_table_open_db_maybe): Modify for
992         `chise_ds_open_feature_table'.
993
994 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
995
996         * mule-charset.c (load_char_decoding_entry_maybe): Use
997         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
998         `chise_ccst_close'.
999
1000 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1001
1002         * mule-charset.c (Fsave_charset_mapping_table): Use
1003         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
1004         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
1005         `chise_dt_put_char' and `chise_dt_close'.
1006         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
1007         `chise_ccs_decode' and `chise_ccst_close' instead of
1008         `chise_ds_open_decoding_table', `chise_dt_get_char' and
1009         `chise_dt_close'.
1010
1011         * chartab.c (char_table_get_db): Use
1012         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
1013         (load_char_attribute_table_map_func): Modify for
1014         `chise_char_feature_value_iterate'.
1015         (Fload_char_attribute_table): Use
1016         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
1017
1018 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1019
1020         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
1021
1022 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1023
1024         * chartab.c (put_char_table): Modify for inherited coded-charsets
1025         in XEmacs CHISE.
1026
1027 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1028
1029         * chartab.c (Fput_char_table_map_function): Fixed.
1030         (word_boundary_p): Don't check charset in XEmacs CHISE.
1031
1032 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1033
1034         * mule-charset.c (Fsave_charset_mapping_table): Use
1035         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
1036         instead of `chise_open_decoding_table'; refer
1037         `default_chise_data_source'; use `chise_dt_close' instead of
1038         `chise_close_decoding_table'.
1039         (load_char_decoding_entry_maybe): Likewise.
1040
1041         * chartab.c (default_chise_data_source): New variable when `CHISE'
1042         is defined.
1043         (Fcopy_char_table): `ct->ds' is deleted.
1044         (open_chise_data_source_maybe): New function.
1045         (Fclose_char_data_source): New function.
1046         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
1047         use `chise_ds_open_feature_table' instead of
1048         `chise_open_feature_table'.
1049         (char_table_close_db_maybe): Use `chise_ft_close' instead of
1050         `chise_close_feature_table'; `cit->ds' is deleted.
1051         (syms_of_chartab): Add new builtin function
1052         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
1053
1054         * chartab.h (default_chise_data_source): New extern variable.
1055         (open_chise_data_source_maybe): New prototype.
1056         (struct Lisp_Char_Table): Delete `ds'.
1057
1058 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1059
1060         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
1061         `CHISE' is defined.
1062
1063 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1064
1065         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
1066         not defined; add code for non-libchise setting.
1067         (char_table_close_db_maybe): Likewise.
1068         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1069         defined.
1070         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1071         even if `CHISE' is not defined.
1072         (Freset_char_attribute_table): Likewise.
1073         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1074         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1075         `char_table_get_db'.
1076         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1077         `char_table_close_db_maybe' even if `CHISE' is not defined.
1078
1079 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1080
1081         * chartab.c (char_table_open_db_maybe): New function.
1082         (char_table_close_db_maybe): New function.
1083         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1084         (Freset_char_attribute_table): Likewise.
1085         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1086         `char_table_close_db_maybe'.
1087         (Fload_char_attribute_table): Likewise.
1088
1089 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1090
1091         * chartab.c: Don't include <chise.h> because it is included in
1092         chartab.h.
1093         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1094         defined.
1095         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1096         `CHISE' is defined.
1097         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1098         `CHISE' is defined.
1099         (Fclose_char_attribute_table): Close `ct->feature_table' and
1100         `ct->ds' when `CHISE' is defined.
1101         (Freset_char_attribute_table): Likewise.
1102         (load_char_attribute_maybe): Use `cit->ds' and
1103         `cit->feature_table' when `CHISE' is defined.
1104         (Fload_char_attribute_table): Likewise.
1105
1106         * chartab.h: Include <chise.h> when `CHISE' is defined.
1107         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1108         when `CHISE' is defined.
1109
1110 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1111
1112         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1113         is defined.
1114         (char_table_description): Likewise.
1115         (Fmake_char_table): Likewise.
1116         (Fcopy_char_table): Likewise.
1117         (Fmount_char_attribute_table): Likewise.
1118         (Fclose_char_attribute_table): Likewise.
1119         (Freset_char_attribute_table): Likewise.
1120         (load_char_attribute_maybe): Likewise.
1121         (Fload_char_attribute_table): Likewise.
1122
1123         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1124         defined.
1125
1126 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1127
1128         * chartab.c (load_char_attribute_table_map_func): New function
1129         when CHISE is defined.
1130         (Qload_char_attribute_table_map_function): Don't define when CHISE
1131         is defined.
1132         (Fload_char_attribute_table_map_function): Likewise.
1133         (Fload_char_attribute_table): Use libchise when `CHISE' is
1134         defined.
1135         (syms_of_chartab): Don't define
1136         `load-char-attribute-table-map-function' when CHISE is defined.
1137
1138 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1139
1140         * chartab.c: Include <chise.h> when `CHISE' is defined.
1141         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1142
1143 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1144
1145         * mule-charset.c (charset_code_point): Fix problem when searching
1146         in mother CCS fails with `defined_only' mode.
1147
1148 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1149
1150         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1151         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1152         (put_char_composition): Likewise.
1153         (Fput_char_attribute): Likewise.
1154         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1155
1156 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1157
1158         * chartab.c (Q_ucs): Deleted.
1159         (Fput_char_attribute): Don't refer `->ucs'.
1160         (Fdefine_char): Likewise.
1161         (Ffind_char): Likewise.
1162         (syms_of_chartab): Delete `->ucs'.
1163
1164 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1165
1166         * mule-charset.c (Qmap_cns11643_2): Renamed from
1167         `Qchinese_cns11643_2'.
1168         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1169         `chinese-cns11643-2'.
1170         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1171         `=cns11643-2'.
1172
1173 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1174
1175         * mule-charset.c (Qmap_cns11643_1): Renamed from
1176         `Qchinese_cns11643_1'.
1177         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1178         `chinese-cns11643-1'.
1179         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1180         `=cns11643-1'.
1181
1182 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1183
1184         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1185         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1186         `chinese-gb12345'.
1187         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1188         `=gb12345'.
1189
1190 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1191
1192         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1193         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1194         `chinese-gb2312'.
1195         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1196         `=gb2312'.
1197
1198 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1199
1200         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1201         (syms_of_mule_charset): Add new symbol `=big5' instead of
1202         `chinese-big5'.
1203         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1204
1205 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1206
1207         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1208         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1209         `korean-ksc5601'.
1210         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1211         `=ks-x1001'.
1212
1213 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1214
1215         * mule-charset.c (Qmap_jis_x0212): Renamed from
1216         `Qjapanese_jisx0212'.
1217         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1218         `japanese-jisx0212'.
1219         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1220         `=jis-x0212'.
1221
1222 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1223
1224         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1225         `Qjapanese_jisx0208'.
1226         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1227         of `japanese-jisx0208'.
1228         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1229         `=jis-x0208-1983'.
1230
1231 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1232
1233         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1234         `Qjapanese_jisx0208_1978'.
1235         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1236         of `japanese-jisx0208-1978'.
1237         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1238         `=jis-x0208-1978'.
1239
1240 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1241
1242         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1243         only for XEmacs CHISE.
1244
1245 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1246
1247         * char-ucs.h: Compact non-ISO-IR charset-ids.
1248         (LEADING_BYTE_UCS): Changed to -177.
1249         (LEADING_BYTE_CONTROL_1): Changed to -77.
1250         (LEADING_BYTE_UCS_BMP): Changed to -176.
1251         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1252
1253 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1254
1255         * mule-charset.c (Qiso_ir): New variable.
1256         (Fmake_charset): Recognise new property `iso-ir'.
1257         (syms_of_mule_charset): Add new symbol `iso-ir'.
1258
1259 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1260
1261         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1262         n to -n; charset-id of non ISO-IR sets are changed to positive
1263         numbers.
1264
1265 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1266
1267         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1268         for &MCS-XXXXXXXX; values.
1269
1270 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1271
1272         * mule.c (Vxemacs_chise_version): Renamed from
1273         `Vutf_2000_version'.
1274         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1275         `utf-2000-version' as an alias for `xemacs-chise-version'.
1276
1277 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1278
1279         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1280         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1281         defined.
1282
1283         * config.h.in (CHISE): New macro.
1284
1285 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1286
1287         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1288         of `ucs'.
1289         (Qmap_ucs): New variable.
1290         (syms_of_mule_charset): Add new symbol `=ucs'.
1291         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1292
1293         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1294         (simplify_char_spec): Likewise.
1295
1296         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1297
1298         * char-ucs.h (Qmap_ucs): New extern variable.
1299
1300 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1301
1302         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1303         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1304         don't define it when UTF2000 is not defined.
1305         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1306         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1307         when UTF2000 is not defined.
1308         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1309         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1310
1311 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1312
1313         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1314
1315         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1316         (Qucs_gb): Deleted.
1317         (syms_of_mule_charset): Delete `ucs-gb'.
1318         (complex_vars_of_mule_charset): Likewise.
1319
1320 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1321
1322         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1323
1324         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1325         (Qucs_cns): Deleted.
1326         (syms_of_mule_charset): Delete `ucs-cns'.
1327         (complex_vars_of_mule_charset): Likewise.
1328
1329 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1330
1331         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1332
1333         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1334         (Qucs_jis): Deleted.
1335         (syms_of_mule_charset): Delete `ucs-jis'.
1336         (complex_vars_of_mule_charset): Likewise.
1337
1338 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1339
1340         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1341
1342         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1343         (Qucs_ks): Deleted.
1344         (syms_of_mule_charset): Delete `ucs-ks'.
1345         (complex_vars_of_mule_charset): Likewise.
1346
1347 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1348
1349         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1350         (Qideograph_daikanwa_2): Deleted.
1351         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1352         (complex_vars_of_mule_charset): Likewise.
1353
1354         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1355         (LEADING_BYTE_DAIKANWA_1): Deleted.
1356         (LEADING_BYTE_DAIKANWA_2): Deleted.
1357         (MIN_CHAR_DAIKANWA): Deleted.
1358         (MAX_CHAR_DAIKANWA): Deleted.
1359
1360 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1361
1362         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1363         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1364         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1365
1366         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1367         (Vcharset_ideograph_daikanwa): Deleted.
1368         (Qideograph_hanziku_{1..12}): Deleted.
1369         (Qideograph_daikanwa): Deleted.
1370         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1371         Vcharset_ideograph_daikanwa.
1372         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1373         `ideograph-hanziku-{1..12}'.
1374         (complex_vars_of_mule_charset): Likewise.
1375
1376 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1377
1378         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1379
1380         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1381         (Qideograph_gt_pj_{1..11}): Deleted.
1382         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1383         (complex_vars_of_mule_charset): Likewise.
1384
1385 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1386
1387         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1388         (Vcharset_ideograph_gt): Deleted.
1389         (Qucs_big5): Deleted.
1390         (Qideograph_gt): Deleted.
1391         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1392         `ideograph-gt'.
1393         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1394         and `ideograph-gt'.
1395
1396         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1397         (LEADING_BYTE_GT): Deleted.
1398         (MIN_CHAR_GT): Deleted.
1399         (MAX_CHAR_GT): Deleted.
1400
1401 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1402
1403         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1404
1405 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1406
1407         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1408         (save_uint16_byte_table): Likewise.
1409         (save_byte_table): Likewise; convert values by it.
1410         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1411         for `ideographic-structure'.
1412         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1413         as the filter for `ideographic-structure'.
1414
1415 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1416
1417         * chartab.c (put_char_composition): New function.
1418         (Fput_char_attribute): Use `put_char_composition'; use
1419         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1420
1421         * fns.c (simplify_char_spec): New function.
1422         (char_ref_simplify_spec): New function.
1423         (Fchar_refs_simplify_char_specs): New function.
1424         (syms_of_fns): Add new builtin function
1425         `char-refs-simplify-char-specs'.
1426
1427 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1428
1429         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1430         (Qideograph_cbeta): Deleted.
1431         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1432         (complex_vars_of_mule_charset): Likewise.
1433
1434         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1435         (MIN_CHAR_CBETA): Comment out.
1436         (MAX_CHAR_CBETA): Likewise.
1437
1438 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1439
1440         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1441         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1442         CHISE client feature.
1443
1444 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1445
1446         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1447
1448 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1449
1450         * mule-charset.c (charset_lookup_description_1): Use
1451         `NUM_LEADING_BYTES' in UTF-2000.
1452
1453 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1454
1455         * char-ucs.h (GC_CHARSETP): Deleted.
1456
1457 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1458
1459         * char-ucs.h (MAX_CHAR_GT): Updated.
1460
1461 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1462
1463         * text-coding.c: Sync with XEmacs 21.4.10.
1464
1465 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1466
1467         * mule-charset.c (Vcharset_china3_jef): Deleted.
1468         (Qchina3_jef): Deleted.
1469         (syms_of_mule_charset): Don't define `china3-jef'.
1470         (complex_vars_of_mule_charset): Likewise.
1471
1472         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1473         (MIN_CHAR_CHINA3_JEF): Comment out.
1474         (MAX_CHAR_CHINA3_JEF): Comment out.
1475
1476 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1477
1478         * mule-charset.c (Vcharset_ucs_gb): New variable.
1479         (Qucs_gb): New variable.
1480         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1481         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1482
1483         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1484
1485 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1486
1487         * mule-charset.c (charset_code_point): if a coded-charset has a
1488         final-byte, don't inherit the builtin range of the mother CCS.
1489
1490 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1491
1492         * mule-charset.c (charset_code_point): Fix problem about
1493         inheritance.
1494
1495 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1496
1497         * mule-charset.c (decode_builtin_char): Reorganized.
1498
1499 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1500
1501         * text-coding.c (char_encode_as_entity_reference): Modify for
1502         `charset_code_point'.
1503         (char_encode_shift_jis): Likewise.
1504         (char_encode_big5): Likewise.
1505         (char_encode_utf8): Likewise.
1506         (char_encode_iso2022): Likewise.
1507
1508         * mule-charset.c (charset_code_point): Add new argument
1509         `defined_only'.
1510         (Fencode_char): Add new optional argument `defined_only'.
1511
1512         * chartab.c (put_char_table): Modify for `charset_code_point'.
1513
1514         * char-ucs.h (charset_code_point): Add new argument
1515         `defined_only'.
1516         (encode_char_1): Modify for `charset_code_point'.
1517
1518 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1519
1520         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1521         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1522
1523 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1524
1525         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1526         (Qjis_x0208): Likewise.
1527         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1528         XCHARSET_FINAL(charset).
1529         (charset_code_point): Modify condition for final-byte based
1530         builtin-chars.
1531         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1532         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1533         in UTF-2000; specify `=jis-x0208' as the mother of
1534         `japanese-jisx0208-1978', `japanese-jisx0208' and
1535         `japanese-jisx0208-1990' in UTF-2000.
1536
1537 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1538
1539         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1540
1541 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1542
1543         * text-coding.c (decode_coding_utf16): Support UTF-16.
1544         (char_encode_utf16): Fixed.
1545
1546 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1547
1548         * text-coding.c (Qutf16): New variable in MULE.
1549         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1550         (Fcoding_system_type): Add `utf-16' in MULE.
1551         (struct detection_state): Add a structure for utf16 in MULE.
1552         (detect_coding_type): Setup st->utf16.mask in MULE.
1553         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1554         MULE.
1555         (reset_encoding_stream): Use `char_encode_utf16' and
1556         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1557         (detect_coding_utf16): New function [incomplete].
1558         (decode_coding_utf16): New function [support only UCS-2].
1559         (char_encode_utf16): New function.
1560         (char_finish_utf16): New function.
1561         (syms_of_file_coding): Add new symbol `utf-16'; setup
1562         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1563
1564         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1565         UTF-2000.
1566         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1567         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1568
1569 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1570
1571         * chartab.c (put_char_table): When a charset is specified as a
1572         range in UTF-2000, don't support builtin characters.
1573
1574 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1575
1576         * mule-charset.c (decode_defined_char): Don't refer external
1577         database if Qunbound or Qnil are found.
1578         (Fsave_charset_mapping_table): Don't define it if
1579         HAVE_CHISE_CLIENT is not defined.
1580         (Freset_charset_mapping_table): New function.
1581         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1582         found in external database.
1583         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1584         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1585         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1586
1587 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1588
1589         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1590         not.
1591
1592 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1593
1594         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1595         Q_lowercase, Q_uppercase in UTF-2000.
1596
1597         * chartab.c (get_char_table): Add special code for the standard
1598         case table to use character attribute `->downcase' and
1599         `->uppercase' for case operations in UTF-2000.
1600
1601         * casetab.c (Qflippedcase): New variable in UTF-2000.
1602         (Q_lowercase): Likewise.
1603         (Q_uppercase): Likewise.
1604         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1605         and `->uppercase' in UTF-2000.
1606         (complex_vars_of_casetab): Assign attribute name `downcase' to
1607         downcase and CANON table of Vstandard_case_table in UTF-2000;
1608         assign attribute name `flippedcase' to upcase and EQV table of
1609         Vstandard_case_table in UTF-2000.
1610
1611 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1612
1613         * text-coding.c (decode_add_er_char): Support isolated-chars.
1614         (char_encode_as_entity_reference): Likewise.
1615
1616 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1617
1618         * emacs.c (Vutf_2000_lisp_directory): New variable.
1619         (Vconfigure_utf_2000_lisp_directory): Likewise.
1620         (complex_vars_of_emacs): Add new variable
1621         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1622
1623 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1624
1625         * char-ucs.h (DECODE_CHAR): Delete special code for
1626         `chinese-big5-1' and `chinese-big5-2'.
1627
1628         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1629         (Qbig5_2): Likewise.
1630         (decode_defined_char): Support CONVERSION_BIG5_1 and
1631         CONVERSION_BIG5_2.
1632         (decode_builtin_char): Likewise.
1633         (charset_code_point): Likewise.
1634         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1635         'conversion in UTF-2000.
1636         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1637         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1638         `chinese-big5-2' as children of `chinese-big5'.
1639
1640         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1641         (CONVERSION_BIG5_2): New macro.
1642
1643 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1644
1645         * text-coding.c (char_encode_big5): Support entity-reference.
1646
1647 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1648
1649         * text-coding.c (char_encode_as_entity_reference): New function.
1650         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1651
1652 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1653
1654         * text-coding.c (decode_coding_big5): Support entity-reference
1655         decoding feature.
1656
1657 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1658
1659         * text-coding.c (allocate_coding_system): Initialize initial
1660         charsets for CODESYS_UTF8.
1661         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1662         charset-g2 for CODESYS_UTF8.
1663         (decode_coding_utf8): Use charset-g0.
1664         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1665         to force variants to map to UCS.
1666
1667 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1668
1669         * text-coding.c (Qutf_8_mcs): New variable.
1670         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1671         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1672         instead of `utf-8' in UTF-2000.
1673
1674 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1675
1676         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1677         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1678         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1679         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1680         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1681         CONVERSION_96x96x96x96 are introduced.
1682         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1683         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1684         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1685
1686         * char-ucs.h (CONVERSION_94): New macro.
1687         (CONVERSION_96): New macro.
1688         (CONVERSION_94x94): New macro.
1689         (CONVERSION_96x96): New macro.
1690         (CONVERSION_94x94x94): New macro.
1691         (CONVERSION_96x96x96): New macro.
1692         (CONVERSION_94x94x94x60): New macro.
1693         (CONVERSION_94x94x94x94): New macro.
1694         (CONVERSION_96x96x96x96): New macro.
1695
1696 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1697
1698         * chartab.c (Vcharacter_variant_table): Deleted.
1699         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1700         of `Vcharacter_variant_table'.
1701         (Fput_char_attribute): Likewise.
1702         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1703         (complex_vars_of_chartab): Likewise.
1704
1705 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1706
1707         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1708
1709         * fns.c (Qideographic_structure): New variable.
1710         (Qkeyword_char): New variable.
1711         (ids_format_unit): New function.
1712         (Fideographic_structure_to_ids): New function.
1713         (syms_of_fns): Add new symbols `ideographic-structure' and
1714         `:char'; add new builtin function `ideographic-structure-to-ids'.
1715
1716         * data.c (Fchar_ref_p): New function.
1717         (syms_of_data): Add new builtin function `char-ref-p'.
1718
1719         * chartab.h: Add an EXFUN for `Ffind_char'.
1720
1721 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1722
1723         * text-coding.c (Vcharacter_composition_table): Deleted.
1724         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1725         in every UTF-2000.
1726
1727         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1728         UTF-2000.
1729         (Vcharacter_composition_table): Deleted.
1730         (Fget_composite_char): Use the implementation for external-DB
1731         support in every UTF-2000.
1732         (Fput_char_attribute): Likewise.
1733         (char_attribute_system_db_file): Don't define if external-DB
1734         feature is not available.
1735         (Fsave_char_attribute_table): Likewise.
1736         (Fmount_char_attribute_table): Likewise.
1737         (Fclose_char_attribute_table): Likewise.
1738         (Freset_char_attribute_table): Likewise.
1739         (Fload_char_attribute_table): Likewise.
1740         (syms_of_chartab): Don't define `save-char-attribute-table',
1741         `mount-char-attribute-table', `reset-char-attribute-table',
1742         `close-char-attribute-table' and `load-char-attribute-table' if
1743         external-DB feature is not available.
1744         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1745
1746 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1747
1748         * text-coding.c (Qcomposition): Add extern if external-DB feature
1749         is supported.
1750         (Vcharacter_composition_table): Don't add extern if external-DB
1751         feature is supported.
1752         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1753         character composition rule if external-DB feature is supported.
1754
1755         * chartab.c (Vcharacter_composition_table): Don't define if
1756         external-DB feature is supported.
1757         (Qcomposition): New variable.
1758         (Fget_composite_char): New implementation for external-DB support.
1759         (Fput_char_attribute): Use `composition' property of each
1760         character instead of `Vcharacter_composition_table' to store
1761         character-composition rules if external-DB feature is supported.
1762         (syms_of_chartab): Add new symbol `composition'.
1763         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1764         external-DB feature is supported.
1765
1766 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1767
1768         * chartab.c (Vchar_db_stingy_mode): New variable.
1769         (load_char_attribute_maybe): Close database if
1770         Vchar_db_stingy_mode is not NIL.
1771         (Fload_char_attribute_table_map_function): Use
1772         `get_char_id_table_0' instead of `get_char_id_table'.
1773         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1774
1775         * chartab.h (get_char_id_table_0): New inline function.
1776         (get_char_id_table): Use `get_char_id_table_0'.
1777
1778 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1779
1780         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1781         and `COMPOSE_ADD_CHAR'.
1782         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1783
1784 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1785
1786         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1787         instead of `DECODE_ADD_UCS_CHAR'.
1788         (COMPOSE_ADD_CHAR): Likewise.
1789
1790 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1791
1792         * text-coding.c (decode_flush_er_chars): New inline function.
1793         (decode_add_er_char): New function.
1794         (decode_coding_utf8): Use `decode_flush_er_chars' and
1795         `decode_add_er_char'.
1796
1797 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1798
1799         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1800         done before `decode_output_utf8_partial_char'.
1801
1802         * mule-charset.c (complex_vars_of_mule_charset): Specify
1803         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1804         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1805
1806 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1807
1808         * mule-charset.c (decode_defined_char): New function; search
1809         mother.
1810         (decode_builtin_char): Don't search mother if
1811         XCHARSET_MAX_CODE(charset) == 0.
1812         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1813         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1814         (Fdecode_char): Use `decode_defined_char' instead of
1815         `DECODE_DEFINED_CHAR'.
1816         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1817         mother of `Vcharset_ucs_jis'.
1818
1819         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1820         instead of `DECODE_DEFINED_CHAR'.
1821
1822         * char-ucs.h (decode_defined_char): Renamed from
1823         `DECODE_DEFINED_CHAR'; changed to normal function.
1824         (DECODE_CHAR): Use `decode_defined_char' instead of
1825         `DECODE_DEFINED_CHAR'.
1826
1827         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1828
1829 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1830
1831         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1832
1833         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1834         variable.
1835         (Quse_entity_reference): New variable.
1836         (Qd): New variable.
1837         (Qx): New variable.
1838         (QX): New variable.
1839         (coding_system_description): Add description for
1840         `ccs_priority_list'.
1841         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1842         (allocate_coding_system): Initialize `ccs_priority_list' in
1843         UTF-2000.
1844         (Fmake_coding_system): Add description about
1845         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1846         (codesys).
1847         (Fcoding_system_property): Accept `disable-composition' and
1848         `use-entity-reference' in UTF-2000.
1849         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1850         in UTF-2000.
1851         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1852         (decode_coding_utf8): Decode entity-reference if
1853         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1854         (char_encode_utf8): Encode non-Unicode characters as
1855         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1856         (str->codesys).
1857         (syms_of_file_coding): Add new symbols `use-entity-reference',
1858         `d', `x', `X'.
1859         (vars_of_file_coding): Add new variable
1860         `coded-charset-entity-reference-alist'.
1861         (complex_vars_of_file_coding): Declare `disable-composition' and
1862         `use-entity-reference' to be coding-system-properties in UTF-2000.
1863
1864         * file-coding.h (struct Lisp_Coding_System): Add new member
1865         `use_entity_reference' and `ccs_priority_list'.
1866         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1867         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1868         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1869
1870 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1871
1872         * chartab.c (save_uint8_byte_table): Don't clear the table.
1873         (save_uint16_byte_table): Likewise.
1874         (save_byte_table): Likewise.
1875         (Fmount_char_attribute_table): New function.
1876         (syms_of_chartab): Add new builtin function
1877         `mount-char-attribute-table'.
1878
1879 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1880
1881         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1882         "w+" mode.
1883         (load_char_decoding_entry_maybe): Open database as read-only mode.
1884
1885         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1886         open database as "w+" mode.
1887         (load_char_attribute_maybe): Open database as read-only mode.
1888         (Fload_char_attribute_table): Likewise.
1889
1890 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1891
1892         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1893         (char_table_description): Delete member `db_file'.
1894         (Fmake_char_table): Don't refer `ct->db_file'.
1895         (Fcopy_char_table): Likewise.
1896         (Fsave_char_attribute_table): Likewise.
1897         (Fclose_char_attribute_table): Likewise.
1898         (Freset_char_attribute_table): Likewise.
1899         (load_char_attribute_maybe): Likewise.
1900         (Fload_char_attribute_table): Likewise.
1901
1902         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1903
1904 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1905
1906         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1907         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1908         `ct->db' is living.
1909         (load_char_attribute_maybe): Likewise.
1910         (Fload_char_attribute_table): Likewise.
1911
1912 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1913
1914         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1915         `ct->db_file' unconditionally.
1916
1917 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1918
1919         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1920         UTF-2000.
1921         (char_table_description): Add description for `db_file' and `db'
1922         in UTF-2000.
1923         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1924         UTF-2000.
1925         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1926         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1927         (Fclose_char_attribute_table): New function.
1928         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1929         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1930         and `cit->db'.
1931         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1932         (syms_of_chartab): Add new builtin function
1933         `Fclose_char_attribute_table'.
1934
1935 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1936
1937         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1938         `db' in UTF-2000.
1939         (load_char_attribute_maybe): Change interface.
1940         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1941
1942 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1943
1944         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1945
1946 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1947
1948         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1949         instead of `DECODE_CHAR' for mother; don't use special code for
1950         chinese-big5 to use code space of chinese-big5-1 and
1951         chinese-big5-2.
1952         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1953         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1954
1955         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1956         (MAX_CHAR_BIG5_CDP): Revival.
1957
1958 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1959
1960         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1961         the XLFD registry-encoding name of `chinese-big5'.
1962
1963 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1964
1965         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1966         (Qchinese_big5_cdp): Deleted.
1967         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1968         (complex_vars_of_mule_charset): Delete coded-charset
1969         `chinese-big5-cdp'.
1970
1971         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1972         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1973         `CHARSET_ID_OFFSET - n' for private CCS.
1974         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1975         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1976         of `MIN_LEADING_BYTE'.
1977         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1978         `(CHARSET_ID_OFFSET - 97)'.
1979         (MIN_CHAR_BIG5_CDP): Deleted.
1980         (MAX_CHAR_BIG5_CDP): Deleted.
1981
1982 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1983
1984         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1985
1986 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1987
1988         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1989         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1990         chartab.c].
1991
1992         * chartab.c (Vutf_2000_version): Moved to mule.c.
1993         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1994
1995 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1996
1997         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1998         when HAVE_CHISE_CLIENT is not defined.
1999
2000         * mule.c (vars_of_mule): Provide feature `chise' when
2001         HAVE_CHISE_CLIENT is defined.
2002
2003 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2004
2005         * config.h.in (UTF2000): Add comment.
2006         (HAVE_CHISE_CLIENT): New macro.
2007
2008 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2009
2010         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
2011         CONSP.
2012         (Fput_char_attribute): Likewise.
2013         (char_attribute_system_db_file): Encode file-name of attribute.
2014         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
2015         the initial value.
2016
2017 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2018
2019         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
2020         (Fsave_charset_mapping_table): Use
2021         `char_attribute_system_db_file'.
2022         (load_char_decoding_entry_maybe): Likewise.
2023
2024         * chartab.h (Qsystem_char_id): New external variable.
2025         (char_attribute_system_db_file): New prototype.
2026
2027         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
2028         (char_attribute_system_db_file): New function.
2029         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
2030         (Freset_char_attribute_table): Likewise.
2031         (load_char_attribute_maybe): Likewise.
2032         (Fload_char_attribute_table): Likewise.
2033         (syms_of_chartab): Add new symbol `system-char-id'.
2034
2035 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2036
2037         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
2038         `XCHARSET_GRAPHIC(ccs)'.
2039
2040 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2041
2042         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
2043
2044 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2045
2046         * chartab.c (Q_ucs_variants): New variable.
2047         (syms_of_chartab): Add new symbol `->ucs-variants'.
2048         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
2049         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
2050         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
2051
2052         * mule-charset.c (load_char_decoding_entry_maybe): New function.
2053
2054         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
2055         `HAVE_DATABASE' is defined.
2056         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
2057         `HAVE_DATABASE' is defined.
2058
2059 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2060
2061         * chartab.c (Fsave_char_attribute_table): Don't clear internal
2062         attribute-table.
2063         (Freset_char_attribute_table): New function.
2064         (syms_of_chartab): Add new builtin function
2065         `reset-char-attribute-table'.
2066
2067 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2068
2069         * chartab.c (load_char_attribute_maybe): Don't make directories.
2070
2071 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2072
2073         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2074
2075         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2076         for decoding-table.
2077
2078 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2079
2080         * mule-charset.c (Fsave_charset_mapping_table): Use
2081         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2082
2083         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2084         instead of `XCHARSET_CHARS'.
2085
2086 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2087
2088         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2089         (XCHARSET_BYTE_SIZE): Likewise.
2090
2091         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2092         mule-charset.c].
2093         (XCHARSET_BYTE_SIZE): Likewise.
2094
2095 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2096
2097         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2098         data-directory to store database.
2099         (Fsave_char_attribute_table): Likewise.
2100         (load_char_attribute_maybe): Likewise.
2101         (Fload_char_attribute_table): Likewise.
2102
2103 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2104
2105         * mule-charset.c (Fsave_charset_mapping_table): New function.
2106         (syms_of_mule_charset): Add new builtin function
2107         `save-charset-mapping-table'.
2108
2109 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2110
2111         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2112         (get_ccs_octet_table): New inline function.
2113         (put_ccs_octet_table): Likewise.
2114         (decoding_table_put_char): Use `get_ccs_octet_table' and
2115         `put_ccs_octet_table'.
2116         (decoding_table_remove_char): Use `decoding_table_put_char'.
2117         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2118
2119         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2120         into encoding_table.
2121         (make_charset): Use Qunbound instead Qnil as initial value of
2122         decoding_table.
2123
2124 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2125
2126         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2127         element is Qunloaded.
2128         (map_over_uint16_byte_table): Likewise.
2129         (map_over_byte_table): Likewise.
2130         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2131         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2132         database support, load encoding-table of the specified
2133         coded-charset if it is not loaded yet.
2134         (save_uint8_byte_table): New function of UTF-2000 with external
2135         database support.
2136         (save_uint16_byte_table): Likewise.
2137         (save_byte_table): Likewise.
2138         (Fput_char_attribute): Don't store value into external database
2139         even if the external database feature is supported in UTF-2000;
2140         set `attribute' as name of char-table if the external database
2141         feature is supported.
2142         (Fsave_char_attribute_table): New function in UTF-2000.
2143         (syms_of_chartab): Add new builtin function
2144         `save-char-attribute-table' in UTF-2000.
2145
2146 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2147
2148         * chartab.c (char_attribute_table_to_put): New variable in
2149         UTF-2000.
2150         (Qput_char_table_map_function): Likewise.
2151         (value_to_put): Likewise.
2152         (Fput_char_table_map_function): New function in UTF-2000.
2153         (put_char_table): Use `Fmap_char_attribute' for
2154         CHARTAB_RANGE_CHARSET in UTF-2000.
2155         (Fput_char_attribute): Store symbol instead of string in
2156         `XCHAR_TABLE_NAME (table)'.
2157         (load_char_attribute_maybe): Likewise.
2158         (syms_of_chartab): Add new symbol/function
2159         `put-char-table-map-function'.
2160
2161 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2162
2163         * database.h: Add new EXFUN for `Fmap_database'.
2164
2165         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2166         (syms_of_database): Likewise.
2167
2168         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2169         UTF-2000.
2170         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2171         (XCHAR_TABLE_UNLOADED): Likewise.
2172
2173         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2174         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2175         HAVE_DATABASE is defined.
2176         (char_attribute_table_to_load): New variable of UTF-2000 with
2177         external database support.
2178         (Qload_char_attribute_table_map_function): Likewise.
2179         (Fload_char_attribute_table_map_function): New function of
2180         UTF-2000 with external database support.
2181         (Fload_char_attribute_table): New function of UTF-2000.
2182         (Fmap_char_attribute): Call Fload_char_attribute_table if
2183         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2184         (syms_of_chartab): Add new symbol and function
2185         `load-char-attribute-table-map-function' in UTF-2000 with external
2186         database support; add new function `load-char-attribute-table' in
2187         UTF-2000.
2188
2189 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2190
2191         * chartab.h (load_char_attribute_maybe): New prototype for
2192         UTF-2000 with DATABASE support.
2193         (get_char_id_table): Use `load_char_attribute_maybe' if
2194         HAVE_DATABASE is defined.
2195
2196         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2197         with DATABASE support.
2198
2199 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2200
2201         * chartab.c (Fput_char_attribute): Use S-expression as key of
2202         external database.
2203
2204         * chartab.h (get_char_id_table): Use S-expression as key of
2205         external database.
2206
2207 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2208
2209         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2210         if an element is not loaded, load the corresponding attributes
2211         from an external database.
2212         (map_over_uint16_byte_table): Likewise.
2213         (map_over_byte_table): Likewise.
2214         (map_char_table): Modify for `map_over_uint8_byte_table',
2215         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2216         element is not loaded, load the corresponding attributes from an
2217         external database.
2218         (Fput_char_attribute): Change initial values to Qunloaded.
2219
2220         * chartab.h (get_char_id_table): If a character attribute is not
2221         loaded and the attribute value is not found in an external
2222         database, store Qunbound as the attribute value.
2223
2224 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2225
2226         * chartab.c (BT_UINT8_unloaded): New macro.
2227         (UINT8_VALUE_P): Accept Qunloaded.
2228         (UINT8_ENCODE): Likewise.
2229         (UINT8_DECODE): Likewise.
2230         (BT_UINT16_unloaded): New macro.
2231         (UINT16_VALUE_P): Accept Qunloaded.
2232         (UINT16_ENCODE): Likewise.
2233         (UINT16_DECODE): Likewise.
2234         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2235         BT_UINT16_unloaded.
2236         (mark_char_table): Mark `ct->name' in UTF-2000.
2237         (char_table_description): Add `name' in UTF-2000.
2238         (Fmake_char_table): Initialize `ct->name'.
2239         (Fcopy_char_table): Copy `ct->name'.
2240         (Fput_char_attribute): Store value into an external database if
2241         HAVE_DATABASE is defined.
2242
2243         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2244         UTF-2000.
2245         (CHAR_TABLE_NAME): New macro in UTF-2000.
2246         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2247         (get_char_id_table): Try to read an external database if Qunloaded
2248         is stored in a table.
2249
2250         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2251         Qunloaded.
2252
2253 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2254
2255         * database.h: Add EXFUN definitions for Fopen_database,
2256         Fput_database, Fget_database and Fclose_database.
2257
2258         * data.c (Qunloaded): New variable in UTF-2000.
2259
2260         * lisp.h (Qunloaded): New variable in UTF-2000.
2261
2262 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2263
2264         * mule-charset.c (put_char_ccs_code_point): Modify for
2265         `decoding_table_remove_char' and `decoding_table_put_char'.
2266         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2267
2268         * char-ucs.h (decoding_table_remove_char): Change arguments to
2269         hide decoding_table vector.
2270         (decoding_table_put_char): Likewise.
2271
2272 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2273
2274         * mule-charset.c (decoding_table_remove_char): Moved to
2275         char-ucs.h.
2276         (decoding_table_put_char): Likewise.
2277
2278         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2279         from mule-charset.c].
2280         (decoding_table_remove_char): New inline function [moved from
2281         mule-charset.c].
2282         (decoding_table_put_char): Likewise.
2283
2284 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2285
2286         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2287         extension.
2288
2289 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2290
2291         * mule-charset.c (decode_builtin_char): Support mother charsets.
2292
2293 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2294
2295         * mule-charset.c (Q94x94x60): New variable.
2296         (charset_code_point): Support conversion `94x94x60'.
2297         (Fmake_charset): Likewise.
2298         (syms_of_mule_charset): Add new symbol `94x94x60'.
2299
2300         * char-ucs.h (CONVERSION_94x94x60): New macro.
2301
2302 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2303
2304         * mule-charset.c (charset_code_point): Unify code about
2305         `code-offset'.
2306
2307 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2308
2309         * mule-charset.c (charset_code_point): Merge code about builtin
2310         characters into code about mother charsets; don't use
2311         `range_charset_code_point'.
2312         (range_charset_code_point): Deleted.
2313
2314 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2315
2316         * mule-charset.c (Qcode_offset): New variable.
2317         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2318         `max-code'; accept new property `code-offset'.
2319         (syms_of_mule_charset): Add new symbol `code-offset'.
2320
2321 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2322
2323         * mule-charset.c (range_charset_code_point): Fixed.
2324
2325 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2326
2327         * mule-charset.c (decode_builtin_char): Change semantics of
2328         code-offset of coded-charset.
2329         (charset_code_point): Likewise.
2330         (range_charset_code_point): Likewise.
2331         (complex_vars_of_mule_charset): Modify for the change.
2332
2333 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2334
2335         * mule-charset.c (Fencode_char): Reverse arguments.
2336
2337         * mule-charset.c (charset_code_point): Fixed.
2338
2339 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2340
2341         * mule-charset.c (Vcharset_mojikyo): Deleted.
2342         (Vcharset_mojikyo_2022_1): Deleted.
2343         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2344         (Qmin_code): New variable in UTF-2000.
2345         (Qmax_code): Likewise.
2346         (Qmother): Likewise.
2347         (Qconversion): Likewise.
2348         (Q94x60): Likewise.
2349         (Qmojikyo): Deleted.
2350         (Qmojikyo_2022_1): Deleted.
2351         (Qmojikyo_pj_{1..22}): Deleted.
2352         (mark_charset): Mark `cs->mother'.
2353         (charset_description): Add description for `mother'.
2354         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2355         new arguments `mother' and `conversion'; use
2356         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2357         (charset_code_point): Moved from char-ucs.h; support `mother'
2358         charset feature.
2359         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2360         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2361         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2362         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2363         allow 2 as the value of `graphic' in UTF-2000; add new properties
2364         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2365         require `final' in UTF-2000; modify for `make_charset'.
2366         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2367         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2368         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2369         (Fencode_char): New function.
2370         (syms_of_mule_charset): Add new builtin function `encode-char' in
2371         UTF-2000; add new symbols `min-code', `max-code', `mother',
2372         `conversion' and `94x60'; delete symbols `mojikyo',
2373         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2374         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2375         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2376         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2377
2378         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2379         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2380
2381         * char-ucs.h (Vcharset_mojikyo): Deleted.
2382         (Vcharset_mojikyo_2022_1): Deleted.
2383         (LEADING_BYTE_MOJIKYO): Deleted.
2384         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2385         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2386         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2387         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2388         add new member `mother'; add new member `conversion'.
2389         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2390         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2391         (CHARSET_MOTHER): New macro.
2392         (CHARSET_CONVERSION): New macro.
2393         (CONVERSION_IDENTICAL): New macro.
2394         (CONVERSION_94x60): New macro.
2395         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2396         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2397         (XCHARSET_MOTHER): New macro.
2398         (XCHARSET_CONVERSION): New macro.
2399         (MIN_CHAR_MOJIKYO): Deleted.
2400         (MAX_CHAR_MOJIKYO): Deleted.
2401         (DECODE_MOJIKYO_2022): Deleted.
2402         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2403         (charset_code_point): Changed to non-inline function.
2404         (encode_char_1): Use `charset_code_point'.
2405         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2406
2407 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2408
2409         * lread.c (read_compiled_function): Fix prototype.
2410         (read_vector): Likewise.
2411
2412 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2413
2414         * lrecord.h (struct lrecord_header): Delete `older'.
2415         (set_lheader_implementation): Delete code for `older'.
2416         (set_lheader_older_implementation): Deleted.
2417         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2418         (OLDER_RECORD_P): Deleted.
2419         (OLDER_RECORD_HEADER_P): Deleted.
2420         (alloc_older_lcrecord): Deleted.
2421         (alloc_older_lcrecord_type): Deleted.
2422
2423         * alloc.c (all_older_lcrecords): Deleted.
2424         (alloc_older_lcrecord): Deleted.
2425         (disksave_object_finalization_1): Delete code for older objects.
2426         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2427         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2428
2429 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2430
2431         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2432         instead of `make_older_vector'.
2433         (put_char_ccs_code_point): Likewise.
2434         (mark_charset): Mark `cs->decoding_table'.
2435         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2436
2437         * lisp.h (make_older_vector): Deleted.
2438         (make_vector_newer): Deleted.
2439
2440         * config.h.in (HAVE_GGC): Deleted.
2441
2442         * alloc.c (make_older_vector): Deleted.
2443         (make_vector_newer_1): Deleted.
2444         (make_vector_newer): Deleted.
2445
2446 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2447
2448         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2449         (Qideograph_daikanwa_2): New variable.
2450         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2451         (complex_vars_of_mule_charset): Add new coded-charset
2452         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2453         `LEADING_BYTE_DAIKANWA'.
2454
2455         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2456         (LEADING_BYTE_DAIKANWA_1): New macro.
2457         (LEADING_BYTE_DAIKANWA_2): New macro.
2458         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2459
2460 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2461
2462         * mule-charset.c (complex_vars_of_mule_charset): Change
2463         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2464         the second revised version.
2465
2466 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2467
2468         * mule-charset.c (Vcharset_ucs_smp): New variable.
2469         (Vcharset_ucs_sip): New variable.
2470         (Qucs_smp): New variable.
2471         (Qucs_sip): New variable.
2472         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2473         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2474         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2475         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2476         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2477         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2478
2479         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2480         (LEADING_BYTE_UCS_SIP): New macro.
2481         (MIN_CHAR_SMP): New macro.
2482         (MAX_CHAR_SMP): New macro.
2483         (MIN_CHAR_SIP): New macro.
2484         (MAX_CHAR_SIP): New macro.
2485
2486 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2487
2488         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2489         utf-2000.
2490
2491 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2492
2493         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2494         value; don't store value into `encoding_table' of `Lisp_Charset'.
2495         (mark_charset): `encoding_table' was deleted.
2496         (charset_description): Likewise.
2497         (make_charset): Likewise.
2498         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2499         `put_char_ccs_code_point'.
2500
2501         * chartab.h (Fput_char_attribute): New EXFUN.
2502
2503         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2504         is unified with normal symbol space.
2505         (Fget_char_attribute): Likewise.
2506         (Fput_char_attribute): Likewise; behavior of
2507         `put_char_ccs_code_point' is changed.
2508
2509         * char-ucs.h: Include "elhash.h".
2510         (Vchar_attribute_hash_table): New external variable.
2511         (struct Lisp_Charset): Delete `encoding_table'.
2512         (CHARSET_ENCODING_TABLE): New implementation; refer
2513         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2514         `Lisp_Charset'.
2515
2516 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2517
2518         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2519         (cs) == 0.
2520
2521 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2522
2523         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2524         `chinese-big5'.
2525
2526 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2527
2528         * chartab.c (uint8_byte_table_description): New constant.
2529         (uint8-byte-table): Use `uint8_byte_table_description'.
2530         (uint16_byte_table_description): New constant.
2531         (uint16-byte-table): Use `uint16_byte_table_description'.
2532
2533 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2534
2535         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2536         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2537
2538 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2539
2540         * mule-charset.c (Vcharset_ucs_ks): New variable.
2541         (Qucs_ks): New variable.
2542         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2543         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2544
2545         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2546
2547 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2548
2549         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2550         (Fdecode_char): Likewise.
2551
2552         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2553         chartab.h.
2554         (Fdefine_char): Modify for Fdecode_char.
2555         (Ffind_char): Likewise.
2556
2557         * mule-charset.c (Fdecode_char): Add new optional argument
2558         `defined-only'.
2559         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2560
2561 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2562
2563         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2564         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2565         (allocate_coding_system): Initialize initial-charsets of
2566         CODESYS_BIG5 in XEmacs UTF-2000.
2567         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2568         CODESYS_BIG5 in XEmacs UTF-2000.
2569         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2570         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2571
2572         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2573         variables.
2574         (Qideograph_hanziku_{1 .. 12}): Likewise.
2575         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2576         .. 12}'.
2577         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2578         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2579         `ideograph-hanziku-{1 .. 12}'.
2580
2581         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2582         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2583         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2584         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2585         (DECODE_DEFINED_CHAR): New inline function.
2586         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2587
2588 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2589
2590         * mule-charset.c (Vcharset_china3_jef): Renamed from
2591         `Vcharset_japanese_jef_china3'.
2592         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2593         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2594         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2595         (syms_of_mule_charset): Rename `china3-jef' from
2596         `japanese-jef-china3'.
2597         (complex_vars_of_mule_charset): Likewise; rename
2598         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2599
2600         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2601         `LEADING_BYTE_JEF_CHINA3'.
2602         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2603         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2604
2605 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2606
2607         * mule-charset.c (encode_builtin_char_1): Comment out special code
2608         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2609
2610         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2611         (MAX_CHAR_MOJIKYO_0): Comment out.
2612         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2613         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2614         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2615         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2616
2617 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2618
2619         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2620         (Qideograph_cbeta): New variable.
2621         (encode_builtin_char_1): Comment out special code for
2622         coded-charset `mojikyo' and `japanese-jef-china3'.
2623         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2624         (complex_vars_of_mule_charset): Add new coded-charset
2625         `ideograph-cbeta'.
2626
2627         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2628         (MIN_CHAR_CBETA): New macro.
2629         (MAX_CHAR_CBETA): New macro.
2630
2631 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2632
2633         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2634         (LEADING_BYTE_JEF_CHINA3): New macro.
2635         (MIN_CHAR_JEF_CHINA3): New macro.
2636         (MAX_CHAR_JEF_CHINA3): Likewise.
2637         (DECODE_CHAR): Fixed.
2638
2639 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2640
2641         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2642         (Qjapanese_jef_china3): New variable.
2643         (encode_builtin_char_1): Support `japanese-jef-china3'.
2644         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2645         (complex_vars_of_mule_charset): Add new coded-charset
2646         `japanese-jef-china3'.
2647
2648 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2649
2650         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2651         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2652         94^4, 96^3, 96^4, 128^n and 256^n set.
2653         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2654         (map_char_table): Likewise.
2655
2656 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2657
2658         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2659         UTF-2000.
2660
2661 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2662
2663         * chartab.h (get_char_id_table): New inline function.
2664
2665         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2666         function.
2667
2668 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2669
2670         * chartab.h (decode_char_table_range): New prototype in XEmacs
2671         UTF-2000.
2672         (put_char_id_table): New inline function in XEmacs UTF-2000.
2673
2674         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2675         function.
2676         (decode_char_table_range): Delete static declaration in XEmacs
2677         UTF-2000.
2678
2679 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2680
2681         * chartab.c (put_char_id_table): Use `put_char_table'.
2682
2683 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2684
2685         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2686         (map_over_uint16_byte_table): Likewise.
2687         (map_over_byte_table): Likewise.
2688         (map_char_table): Modify for `map_over_uint8_byte_table',
2689         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2690         UTF-2000.
2691
2692 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2693
2694         * chartab.c (struct map_char_table_for_charset_arg): New
2695         structure.
2696         (map_char_table_for_charset_fun): New function.
2697         (map_char_table): Use `map_char_table' for encoding_table of
2698         `range->charset'.
2699
2700 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2701
2702         * chartab.c (map_char_table): Check a character is found in
2703         range->charset instead of non default value is defined in
2704         char-table when range is CHARTAB_RANGE_ROW.
2705
2706 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2707
2708         * chartab.c (map_char_id_table): Deleted.
2709         (Fmap_char_attribute): Use `map_char_table' instead of
2710         `map_char_id_table'.
2711
2712 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2713
2714         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2715         UTF-2000.
2716         (update_syntax_table): Deleted in XEmacs UTF-2000.
2717
2718         * syntax.c (find_defun_start): Use `syntax_table' instead of
2719         `mirror_syntax_table' in XEmacs UTF-2000.
2720         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2721         UTF-2000.
2722         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2723         XEmacs UTF-2000.
2724         (Fmatching_paren): Likewise.
2725         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2726         in XEmacs UTF-2000.
2727         (find_start_of_comment): Likewise.
2728         (find_end_of_comment): Likewise.
2729         (Fforward_comment): Likewise.
2730         (scan_lists): Likewise.
2731         (char_quoted): Likewise.
2732         (Fbackward_prefix_chars): Likewise.
2733         (scan_sexps_forward): Likewise.
2734         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2735         (update_syntax_table): Likewise.
2736
2737         * search.c (skip_chars): Use `syntax_table' instead of
2738         `mirror_syntax_table' in XEmacs UTF-2000.
2739         (wordify): Likewise.
2740         (Freplace_match): Likewise.
2741
2742         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2743         `mirror_syntax_table' in XEmacs UTF-2000.
2744         (WORDCHAR_P_UNSAFE): Likewise.
2745         (re_match_2_internal): Likewise.
2746
2747         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2748         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2749
2750         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2751         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2752
2753         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2754         XEmacs UTF-2000.
2755
2756         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2757         UTF-2000.
2758         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2759         (char_table_description): Delete `mirror_table' in XEmacs
2760         UTF-2000.
2761         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2762         UTF-2000.
2763         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2764         (Fcopy_char_table): Likewise.
2765         (put_char_table): Don't call `update_syntax_table' in XEmacs
2766         UTF-2000.
2767
2768         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2769         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2770         (casify_region_internal): Likewise.
2771
2772         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2773
2774         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2775         `mirror_syntax_table' in XEmacs UTF-2000.
2776
2777         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2778         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2779         (Fexpand_abbrev): Likewise.
2780
2781 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2782
2783         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2784
2785 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2786
2787         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2788         (map_over_uint16_byte_table): Likewise.
2789         (map_over_byte_table): Likewise.
2790         (get_char_id_table): Refer `cit->default_value'.
2791         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2792         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2793         of character-id ranges.
2794         (mark_char_table): Mark `ct->default_value'.
2795         (char_table_description): Add `default_value'.
2796         (fill_char_table): Use `default_value'.
2797         (decode_char_table_range): Decode `nil' as
2798         `CHARTAB_RANGE_DEFAULT'.
2799         (get_char_id_table): Refer `cit->default_value'.
2800         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2801         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2802         temporary hack; check value of char-table is bound or not.
2803         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2804
2805         * chartab.h (struct Lisp_Char_Table): Add new member
2806         `default_value' in XEmacs UTF-2000.
2807         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2808         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2809         UTF-2000.
2810
2811 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2812
2813         * chartab.h (Lisp_Char_ID_Table): Deleted.
2814
2815         * chartab.c (char_table_description): Fix typo.
2816         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2817         `Lisp_Char_ID_Table'.
2818
2819 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2820
2821         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2822         `CHAR_ID_TABLE_P'.
2823
2824         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2825         `CHAR_ID_TABLE_P'.
2826
2827         * chartab.h (XCHAR_ID_TABLE): Deleted.
2828         (XSETCHAR_ID_TABLE): Deleted.
2829         (CHAR_ID_TABLE_P): Deleted.
2830
2831         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2832         `CHAR_ID_TABLE_P'.
2833         (Fget_composite_char): Likewise.
2834         (put_char_table): Likewise.
2835         (add_char_attribute_alist_mapper): Fixed.
2836         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2837         `CHAR_ID_TABLE_P'.
2838         (Fget_char_attribute): Likewise.
2839         (Fget_char_attribute): Likewise.
2840         (Fmap_char_attribute): Likewise.
2841
2842         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2843         `CHAR_ID_TABLE_P'.
2844         (encode_char_1): Likewise.
2845
2846 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2847
2848         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2849         `XCHAR_ID_TABLE'.
2850
2851         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2852         instead of `XCHAR_ID_TABLE'.
2853         (remove_char_ccs): Likewise.
2854
2855         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2856         `XCHAR_ID_TABLE'.
2857         (Fget_composite_char): Likewise.
2858         (Fchar_variants): Likewise.
2859         (put_char_table): Likewise.
2860         (add_char_attribute_alist_mapper): Likewise.
2861         (Fchar_attribute_alist): Likewise.
2862         (Fget_char_attribute): Likewise.
2863         (Fput_char_attribute): Likewise.
2864         (Fmap_char_attribute): Likewise.
2865         (Fmap_char_attribute): Likewise.
2866
2867         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2868         `XCHAR_ID_TABLE'.
2869         (encode_char_1): Likewise.
2870
2871 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2872
2873         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2874         `Lisp_Char_ID_Table'.
2875         (mark_char_id_table): Deleted.
2876         (print_char_id_table): Likewise.
2877         (char_id_table_equal): Likewise.
2878         (char_id_table_hash): Likewise.
2879         (char_id_table_description): Likewise.
2880         (char_id_table): Likewise.
2881         (make_char_id_table): Use `Fmake_char_table' and
2882         `fill_char_table'.
2883         (get_char_id_table): Use `Lisp_Char_Table' instead of
2884         `Lisp_Char_ID_Table'.
2885         (put_char_id_table): Likewise.
2886         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2887         `XCHAR_ID_TABLE'.
2888         (Fremove_char_attribute): Likewise.
2889         (syms_of_chartab): Don't define type `char-id-table'.
2890
2891         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2892         (char_id_table): Likewise.
2893         (GC_CHAR_ID_TABLE_P): Likewise.
2894         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2895         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2896         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2897         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2898         (get_char_id_table): Use `Lisp_Char_Table' instead of
2899         `Lisp_Char_ID_Table'.
2900         (put_char_id_table_0): Likewise.
2901         (put_char_id_table): Likewise.
2902
2903 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2904
2905         * chartab.h: Lisp_Byte_Table related codes are moved from
2906         chartab.h.
2907
2908         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2909
2910 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2911
2912         * chartab.h: Don't include "chartab.h".
2913         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2914         (Lisp_Char_ID_Table): Likewise.
2915         (char_id_table): Likewise.
2916         (XCHAR_ID_TABLE): Likewise.
2917         (XSETCHAR_ID_TABLE): Likewise.
2918         (CHAR_ID_TABLE_P): Likewise.
2919         (GC_CHAR_ID_TABLE_P): Likewise.
2920         (get_char_id_table): Likewise.
2921
2922         * char-ucs.h: Include "chartab.h".
2923         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2924         (Lisp_Char_ID_Table): Likewise.
2925         (char_id_table): Likewise.
2926         (XCHAR_ID_TABLE): Likewise.
2927         (XSETCHAR_ID_TABLE): Likewise.
2928         (CHAR_ID_TABLE_P): Likewise.
2929         (GC_CHAR_ID_TABLE_P): Likewise.
2930         (get_char_id_table): Likewise.
2931
2932 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2933
2934         * chartab.c (copy_uint8_byte_table): New function.
2935         (copy_uint16_byte_table): New function.
2936         (copy_byte_table): New function.
2937         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2938         characters to call.
2939         (map_over_uint16_byte_table): Likewise.
2940         (map_over_byte_table): Likewise.
2941         (get_byte_table): Move prototype to chartab.h.
2942         (put_byte_table): Likewise.
2943         (put_char_id_table_0): Moved to chartab.h.
2944         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2945         (char_table_entry_equal): Likewise.
2946         (char_table_entry_hash): Likewise.
2947         (char_table_entry_description): Likewise.
2948         (char_table_entry): Likewise.
2949         (make_char_table_entry): Likewise.
2950         (copy_char_table_entry): Likewise.
2951         (get_non_ascii_char_table_value): Likewise.
2952         (map_over_charset_ascii): Likewise.
2953         (map_over_charset_control_1): Likewise.
2954         (map_over_charset_row): Likewise.
2955         (map_over_other_charset): Likewise.
2956         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2957         (print_char_table): Likewise.
2958         (char_table_equal): Likewise.
2959         (char_table_hash): Likewise.
2960         (char_table_description): Likewise.
2961         (fill_char_table): Likewise.
2962         (Fcopy_char_table): Likewise.
2963         (get_char_table): Likewise.
2964         (Fget_range_char_table): Likewise.
2965         (put_char_table): Likewise.
2966         (map_char_table): Likewise.
2967         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2968         UTF-2000.
2969
2970 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2971
2972         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2973         `Vauto_fill_chars' in XEmacs UTF-2000.
2974
2975         * chartab.h (get_byte_table): New prototype [moved from
2976         chartab.c].
2977         (put_byte_table): Likewise [moved from chartab.c].
2978         (put_char_id_table_0): New inline function [moved from chartab.c].
2979         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2980         (Lisp_Char_Table_Entry): Likewise.
2981         (char_table_entry): Likewise.
2982         (XCHAR_TABLE_ENTRY): Likewise.
2983         (XSETCHAR_TABLE_ENTRY): Likewise.
2984         (CHAR_TABLE_ENTRYP): Likewise.
2985         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2986         (NUM_ASCII_CHARS): Likewise.
2987         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2988         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2989
2990 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2991
2992         * chartab.c (get_char_id_table): Change interface.
2993         (put_char_id_table_0): New function.
2994         (put_char_id_table): Change interface; new implementation.
2995         (Fget_composite_char): Modify for interface change of
2996         `get_char_id_table'.
2997         (Fchar_variants): Likewise.
2998         (add_char_attribute_alist_mapper): Likewise.
2999         (Fchar_attribute_alist): Likewise.
3000         (Fget_char_attribute): Likewise.
3001         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
3002         as same as character as the first argument like `put-char-table';
3003         modify for interface change of `put_char_id_table'.
3004         (Fremove_char_attribute): Modify for interface change of
3005         `put_char_id_table'.
3006
3007 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3008
3009         * text-coding.c: Sync up with XEmacs 21.2.41.
3010         (COMPOSE_ADD_CHAR): Modify for interface change of
3011         `get_char_id_table'.
3012
3013         * mule-charset.c (put_char_ccs_code_point): Modify for interface
3014         change of `put_char_id_table'.
3015         (remove_char_ccs): Likewise.
3016
3017         * chartab.h (put_char_id_table): Change interface.
3018
3019         * char-ucs.h (get_char_id_table): Change interface.
3020         (charset_code_point): Modify for interface change of
3021         `get_char_id_table'.
3022         (encode_char_1): Likewise.
3023
3024 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3025
3026         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
3027         argument `ccs'.
3028         (map_over_uint16_byte_table): Likewise.
3029         (map_over_byte_table): Likewise.
3030         (map_char_id_table): Add new argument `range' like
3031         `map_char_table'.
3032         (Fmap_char_attribute): Add new argument `range' like
3033         `Fmap_char_table'.
3034
3035 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3036
3037         * chartab.c (map_over_uint8_byte_table): Change interface of
3038         mapping function to use struct chartab_range instead of Emchar.
3039         (map_over_uint16_byte_table): Likewise.
3040         (map_over_byte_table): Likewise.
3041         (map_char_id_table): Likewise.
3042         (struct slow_map_char_id_table_arg): Deleted.
3043         (slow_map_char_id_table_fun): Deleted.
3044         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
3045         function `slow_map_char_table_fun' instead of struct
3046         `slow_map_char_id_table_arg' and function
3047         `slow_map_char_id_table_fun'.
3048
3049 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3050
3051         * mule-charset.c: Move char-it-table related codes to chartab.c.
3052         (Vutf_2000_version): Moved to chartab.c.
3053         (Fdefine_char): Likewise.
3054         (Ffind_char): Likewise.
3055         (syms_of_mule_charset): Move types `uint8-byte-table',
3056         `uint16-byte-table', `byte-table' and `char-id-table' to
3057         chartab.c; move functions `char_attribute_list,
3058         `find_char_attribute_table, `char_attribute_alist,
3059         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
3060         `map_char_attribute, `define_char, `find_char, `char_variants and
3061         `get_composite_char to chartab.c; move symbols `=>ucs',
3062         `->decomposition', `compat', `isolated', `initial', `medial',
3063         `final', `vertical', `noBreak', `fraction', `super', `sub',
3064         `circle', `square', `wide', `narrow', `small' and `font' to
3065         chartab.c.
3066         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
3067         setting codes for `Vcharacter_composition_table' and
3068         `Vcharacter_variant_table' to chartab.c.
3069         (complex_vars_of_mule_charset): Move setting code for
3070         `Vchar_attribute_hash_table' to chartab.c.
3071
3072         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3073         (make_char_id_table): New prototype.
3074         (put_char_id_table): Likewise.
3075         (Fget_char_attribute): Likewise.
3076
3077         * chartab.c: Move char-id-table related code from mule-charset.c.
3078         (Vutf_2000_version): Moved from mule-charset.c.
3079
3080         * char-ucs.h (Qucs): New external variable.
3081         (put_char_ccs_code_point): New prototype.
3082         (remove_char_ccs): Likewise.
3083
3084 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3085
3086         * mule-charset.c (Vcharset_ucs_jis): New variable.
3087         (Qucs_jis): Likewise.
3088         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3089         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3090
3091         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3092
3093 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3094
3095         * mule-charset.c (map_over_uint8_byte_table): New function.
3096         (map_over_uint16_byte_table): Likewise.
3097         (map_over_byte_table): Likewise.
3098         (map_char_id_table): Likewise.
3099         (slow_map_char_id_table_fun): Likewise.
3100         (Fmap_char_attribute): Likewise.
3101         (syms_of_mule_charset): Add new function `map-char-attribute'.
3102
3103 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3104
3105         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3106         (syms_of_mule_charset): Add new function `find-char'.
3107
3108 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3109
3110         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3111         XEmacs UTF-2000.
3112         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3113         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3114         XEmacs UTF-2000.
3115         (complex_vars_of_mule_charset): Add new coded-charset
3116         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3117         `ideograph-gt-pj-*'.
3118
3119         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3120
3121 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3122
3123         * mule-charset.c (encode_builtin_char_1): Purge codes about
3124         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3125         {MIN|MAX}_CHAR_HEBREW.
3126         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3127         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3128
3129         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3130         (MAX_CHAR_GREEK): Purged.
3131         (MIN_CHAR_CYRILLIC): Purged.
3132         (MAX_CHAR_CYRILLIC): Purged.
3133         (MIN_CHAR_HEBREW): Commented out.
3134         (MAX_CHAR_HEBREW): Likewise.
3135
3136 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3137
3138         * mule-charset.c (Qto_ucs): New variable.
3139         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3140         (Fdefine_char): Likewise.
3141         (syms_of_mule_charset): Add new symbol `=>ucs'.
3142
3143 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3144
3145         * mule-charset.c (Fdecode_char): Fixed.
3146
3147 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3148
3149         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3150         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3151         "tcvn5712-1".
3152
3153 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3154
3155         * mule-charset.c (Vcharset_ucs_big5): New variable.
3156         (Qucs_big5): Likewise.
3157         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3158         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3159
3160         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3161
3162 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3163
3164         * mule-charset.c (decode_builtin_char): Check Big5 code range
3165         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3166
3167 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3168
3169         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3170         (Qchinese_gb12345): Likewise.
3171         (Fdecode_builtin_char): Fixed.
3172         (syms_of_mule_charset): Add `chinese-gb12345'.
3173         (complex_vars_of_mule_charset): Add coded-charset
3174         `chinese-gb12345'.
3175
3176         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3177         (LEADING_BYTE_CHINESE_GB12345): New macro.
3178
3179 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3180
3181         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3182         and `latin-viscii-upper' for `latin-viscii'.
3183
3184 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3185
3186         * mule-charset.c (Fdecode_builtin_char): Comment out
3187         regularization code for ISO-IR GR representation.
3188
3189 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3190
3191         * mule-charset.c (decode_builtin_char): New function; renamed from
3192         `make_builtin_char'; return -1 instead of signal.
3193         (Fdecode_builtin_char): Use `decode_builtin_char'.
3194
3195         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3196         `make_builtin_char'.
3197         (DECODE_CHAR): Use `decode_builtin_char' instead of
3198         `make_builtin_char'; use mapping table of `chinese-big5' for
3199         `chinese-big5-{1,2}'.
3200
3201 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3202
3203         * text-coding.c (char_encode_big5): New function.
3204         (char_finish_big5): Likewise.
3205         (reset_encoding_stream): Use `char_encode_big5' and
3206         `char_finish_big5' for CODESYS_BIG5.
3207         (mule_encode): Don't use `encode_coding_big5'.
3208         (encode_coding_big5): Deleted.
3209
3210 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3211
3212         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3213         0x81- in XEmacs UTF-2000.
3214         (detect_coding_big5): Likewise.
3215
3216 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3217
3218         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3219         generate character-id if the CCS property does not have
3220         corresponding predefined character.
3221         (make_builtin_char): Return -1 if corresponding predefined
3222         character is not found.
3223         (Fdecode_char): Return nil if corresponding character is not
3224         found.
3225         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3226         don't map to builtin ucs space.
3227
3228 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3229
3230         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3231         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3232
3233 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3234
3235         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3236         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3237         (Qideograph_gt): Likewise.
3238         (Qideograph_gt_pj_{1..11}): Likewise.
3239         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3240         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3241         `ideograph-gt-pj-11'.
3242         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3243         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3244         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3245
3246         * char-ucs.h (LEADING_BYTE_GT): New macro.
3247         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3248         (MIN_CHAR_GT): Likewise.
3249         (MAX_CHAR_GT): Likewise.
3250
3251 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3252
3253         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3254         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3255
3256         * doprnt.c (unsigned_int_converters): Add `c'.
3257         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3258
3259         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3260         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3261         `MIN_CHAR_MOJIKYO'.
3262         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3263         (MAX_CHAR_MOJIKYO_0): New macro.
3264         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3265
3266 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3267
3268         * mule-charset.c (Fdefine_char): Delete cemented out code.
3269         (encode_builtin_char_1): Modify for new allocation of builtin
3270         Mojikyo characters.
3271
3272         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3273
3274 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3275
3276         * mule-charset.c (Vcharset_ucs_cns): New variable.
3277         (Qucs_cns): New variable.
3278         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3279         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3280
3281 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3282
3283         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3284
3285 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3286
3287         * search.c (search_buffer): Make `charset_base_code' as
3288         character-id >> 6 to eliminate the corresponding last byte in
3289         UTF-8 representation [I'm not sure it is right thing].
3290         (boyer_moore): Likewise.
3291
3292 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3293
3294         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3295         representation in MULE.
3296
3297 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3298
3299         * text-coding.c (Fmake_coding_system): Use
3300         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3301         `EXTERNAL_PROPERTY_LIST_LOOP'.
3302
3303 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3304
3305         * text-coding.c (decode_output_utf8_partial_char): New function.
3306         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3307
3308 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3309
3310         * text-coding.c (decode_coding_utf8): Output original byte
3311         sequence if it is broken; change order of conditions.
3312
3313         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3314         of conditions.
3315
3316         * mb-multibyte.h (BYTE_ASCII_P):
3317         Use bit ops for char-signedness safety.
3318         (BYTE_C0_P): Use bit ops for char-signedness safety.
3319         (BYTE_C1_P): Use bit ops for char-signedness safety.
3320
3321         * character.h: (XCHAR_OR_CHAR_INT):
3322         Always use inline function.
3323         Remove redundant type checking assert() - XINT will abort quite
3324         nicely.
3325
3326 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3327
3328         * text-coding.c: (Fencode_shift_jis_char):
3329         (Fencode_big5_char):
3330         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3331         Replace 0 with '\0' when working with bytes.
3332         Replace initial "(" with "\(" in docstrings.
3333
3334         (Fmake_coding_system):
3335         When type is ccl and value is vector, register it with a proper
3336         symbol.  And checks whether the given ccl program is valid.
3337         (mule_decode): When calling ccl_driver, if src indicates
3338         NULL pointer, set an empty string instead.
3339         (mule_encode): Likewise.
3340
3341         (detect_eol_type):
3342         (detect_coding_sjis):
3343         (decode_coding_sjis):
3344         (detect_coding_big5):
3345         (decode_coding_big5):
3346         (detect_coding_ucs4):
3347         (decode_coding_ucs4):
3348         (detect_coding_utf8):
3349         (decode_coding_utf8):
3350         (detect_coding_iso2022):
3351         (decode_coding_iso2022):
3352         (decode_coding_no_conversion):
3353         (mule_decode):
3354         Make all detecting and decoding functions take an Extbyte * arg.
3355         (text_encode_generic):
3356         (encode_coding_big5):
3357         (encode_coding_no_conversion):
3358         (mule_encode):
3359         Make all encoding functions take a Bufbyte * arg.
3360         Use size_t instead of unsigned int for memory sizes.
3361         Only cast to unsigned char whenever dereferencing Extbyte *.
3362
3363         (struct lrecord_description fcd_description_1): Use countof.
3364         (complex_vars_of_file_coding):
3365         Use countof instead of sizeof.
3366         Use CHECK_NATNUM instead of CHECK_INT.
3367
3368 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3369
3370         * mule-charset.c (Fget_char_attribute): Add new optional argument
3371         `default-value'.
3372         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3373         (remove_char_ccs): Likewise.
3374
3375 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3376
3377         * text-coding.c (char_encode_shift_jis): New implementation in
3378         UTF-2000.
3379         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3380         ...)'.
3381
3382         * mule-charset.c (Vcharset_chinese_big5): New variable in
3383         UTF-2000.
3384         (Qchinese_big5): New variable in UTF-2000.
3385         (BIG5_SAME_ROW): New macro in UTF-2000.
3386         (make_builtin_char): Use builtin characters of
3387         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3388         characters of `Vcharset_chinese_big5'.
3389         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3390         (complex_vars_of_mule_charset): Add new coded-charset
3391         `chinese-big5' in UTF-2000.
3392
3393         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3394         (Vcharset_chinese_big5): New external variable declaration.
3395         (Vcharset_japanese_jisx0208_1990): Likewise.
3396
3397 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3398
3399         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3400         function.
3401         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3402
3403 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3404
3405         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3406         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3407         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3408         `mojikyo-pj-*'.
3409
3410 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3411
3412         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3413
3414 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3415
3416         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3417         to 0.17.
3418
3419 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3420
3421         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3422         for `CHARSET_BY_ATTRIBUTES'.
3423         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3424         `CHARSET_BY_ATTRIBUTES'.
3425
3426         * text-coding.c (struct decoding_stream): Rename member `CH' to
3427         `CPOS'.
3428         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3429         (decode_coding_sjis): Likewise.
3430         (decode_coding_big5): Likewise.
3431         (decode_coding_ucs4): Likewise.
3432         (decode_coding_utf8): Likewise.
3433         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3434         `CHARSET_BY_ATTRIBUTES'.
3435         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3436         `str->counter'; decode 3, 4 bytes sets.
3437         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3438         sets.
3439         (decode_coding_no_conversion): Use `str->cpos' instead of
3440         `str->ch'.
3441
3442         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3443         (Qmojikyo_2022_1): New variable.
3444         (make_charset): Don't use `CHARSET_TYPE_*'.
3445         (range_charset_code_point): Support coded-charset
3446         `mojikyo-2022-1'.
3447         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3448         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3449         `CHARSET_BY_ATTRIBUTES'.
3450         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3451         `CHARSET_BY_ATTRIBUTES'.
3452         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3453         (complex_vars_of_mule_charset): Add new coded-charset
3454         `mojikyo-2022-1'.
3455
3456         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3457         interface; changed to inline function.
3458
3459         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3460         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3461         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3462         (CHARSET_TYPE_94): Deleted.
3463         (CHARSET_TYPE_94X94): Deleted.
3464         (CHARSET_TYPE_96): Deleted.
3465         (CHARSET_TYPE_96X96): Deleted.
3466         (CHARSET_TYPE_128): Deleted.
3467         (CHARSET_TYPE_128X128): Deleted.
3468         (CHARSET_TYPE_256): Deleted.
3469         (CHARSET_TYPE_256X256): Deleted.
3470         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3471         to inline function.
3472         (DECODE_MOJIKYO_2022): New inline function.
3473         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3474         `Vcharset_mojikyo_2022_1'.
3475
3476 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3477
3478         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3479         instead of `EQ'.
3480         (put_byte_table): Likewise.
3481         (char_id_table_equal): Use `get_byte_table' [new implementation].
3482
3483 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3484
3485         * mule-charset.c: Include <limits.h> in UTF-2000.
3486         (BT_UINT8_MIN): New macro in UTF-2000.
3487         (BT_UINT8_MAX): New macro in UTF-2000.
3488         (BT_UINT8_t): New macro in UTF-2000.
3489         (BT_UINT8_nil): New macro in UTF-2000.
3490         (BT_UINT8_unbound): New macro in UTF-2000.
3491         (INT_UINT8_P): New inline function in UTF-2000.
3492         (UINT8_VALUE_P): New inline function in UTF-2000.
3493         (UINT8_ENCODE): New inline function in UTF-2000.
3494         (UINT8_DECODE): New inline function in UTF-2000.
3495         (mark_uint8_byte_table): New function in UTF-2000.
3496         (print_uint8_byte_table): New function in UTF-2000.
3497         (uint8_byte_table_equal): New function in UTF-2000.
3498         (uint8_byte_table_hash): New function in UTF-2000.
3499         (make_uint8_byte_table): New function in UTF-2000.
3500         (uint8_byte_table_same_value_p): New function in UTF-2000.
3501         (BT_UINT16_MIN): New macro in UTF-2000.
3502         (BT_UINT16_MAX): New macro in UTF-2000.
3503         (BT_UINT16_t): New macro in UTF-2000.
3504         (BT_UINT16_nil): New macro in UTF-2000.
3505         (BT_UINT16_unbound): New macro in UTF-2000.
3506         (INT_UINT16_P): New inline function in UTF-2000.
3507         (UINT16_VALUE_P): New inline function in UTF-2000.
3508         (UINT16_ENCODE): New inline function in UTF-2000.
3509         (UINT16_DECODE): New inline function in UTF-2000.
3510         (UINT8_TO_UINT16): New inline function in UTF-2000.
3511         (mark_uint16_byte_table): New function in UTF-2000.
3512         (print_uint16_byte_table): New function in UTF-2000.
3513         (uint16_byte_table_equal): New function in UTF-2000.
3514         (uint16_byte_table_hash): New function in UTF-2000.
3515         (make_uint16_byte_table): New function in UTF-2000.
3516         (uint16_byte_table_same_value_p): New function in UTF-2000.
3517         (print_byte_table): New function in UTF-2000.
3518         (byte-table): Use `print_byte_table' as printer.
3519         (make_byte_table): Delete second argument `older'.
3520         (byte_table_same_value_p): New function in UTF-2000.
3521         (copy_byte_table): Deleted.
3522         (get_byte_table): New function in UTF-2000.
3523         (put_byte_table): New function in UTF-2000.
3524         (print_char_id_table): New function in UTF-2000.
3525         (char-id-table): Use `print_char_id_table' as printer.
3526         (make_char_id_table): Delete second argument `older'.
3527         (get_char_id_table): Use `get_byte_table [new implementation].
3528         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3529         implementation].
3530         (Ffind_char_attribute_table): New function in UTF-2000.
3531         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3532         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3533         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3534         (syms_of_mule_charset): Add new function
3535         `find-char-attribute-table' in UTF-2000.
3536
3537         * lrecord.h (enum lrecord_type): Add
3538         `lrecord_type_uint16_byte_table' and
3539         `lrecord_type_uint8_byte_table'.
3540
3541         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3542         (Lisp_Uint8_Byte_Table): New type.
3543         (XUINT8_BYTE_TABLE): New macro.
3544         (XSETUINT8_BYTE_TABLE): New macro.
3545         (UINT8_BYTE_TABLE_P): New macro.
3546         (GC_UINT8_BYTE_TABLE_P): New macro.
3547         (struct Lisp_Uint16_Byte_Table): New structure.
3548         (Lisp_Uint16_Byte_Table): New type.
3549         (XUINT16_BYTE_TABLE): New macro.
3550         (XSETUINT16_BYTE_TABLE): New macro.
3551         (UINT16_BYTE_TABLE_P): New macro.
3552         (GC_UINT16_BYTE_TABLE_P): New macro.
3553
3554 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3555
3556         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3557         (Vcharacter_ideographic_strokes_table): Deleted.
3558         (Vcharacter_total_strokes_table): Deleted.
3559         (Vcharacter_morohashi_daikanwa_table): Deleted.
3560         (Vcharacter_decomposition_table): Deleted.
3561         (Qname): Deleted because it is duplicated.
3562         (Qideographic_radical): Deleted.
3563         (Qideographic_strokes): Deleted.
3564         (Qtotal_strokes): Deleted.
3565         (Qmorohashi_daikanwa): Deleted.
3566         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3567         `ideographic-radical', `ideographic-strokes', `total-strokes',
3568         `morohashi-daikanwa' and `->decomposition'.
3569         (Fget_char_attribute): Likewise.
3570         (Fput_char_attribute): Likewise; use `make-vector' instead of
3571         `make_older_vector' for `->decomposition' value.
3572         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3573         `ideograph-daikanwa'.
3574         (syms_of_mule_charset): Delete builtin symbols `name',
3575         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3576         `morohashi-daikanwa'.
3577         (vars_of_mule_charset): Don't setup
3578         `Vcharacter_ideographic_radical_table',
3579         `Vcharacter_ideographic_strokes_table',
3580         `Vcharacter_total_strokes_table',
3581         `Vcharacter_morohashi_daikanwa_table' and
3582         `Vcharacter_decomposition_table'.
3583
3584 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3585
3586         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3587         `make_older_vector', `make_vector_newer_1' and
3588         `make_vector_newer'.
3589
3590         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3591         `make_older_vector' and `make_vector_newer'.
3592
3593         * config.h.in (HAVE_GGC): New macro.
3594
3595 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3596
3597         * mule-charset.c (struct char_attribute_list_closure): New
3598         structure in UTF-2000.
3599         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3600         (Fchar_attribute_list): Likewise.
3601         (Fset_charset_mapping_table): Use `make_vector_newer'.
3602         (Fdecode_builtin_char): New function in UTF-2000.
3603         (syms_of_mule_charset): Add new function `char-attribute-list' and
3604         `decode-builtin-char' in UTF-2000.
3605
3606         * lisp.h (make_vector_newer): New prototype.
3607
3608         * alloc.c (make_vector_newer_1): New function.
3609         (make_vector_newer): New function.
3610
3611 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3612
3613         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3614         50100)'.
3615
3616 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3617
3618         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3619         (Vcharacter_attribute_table): Deleted.
3620         (Vcharacter_name_table): Deleted.
3621         (put_char_attribute): Deleted.
3622         (remove_char_attribute): Deleted.
3623         (struct char_attribute_alist_closure): New structure.
3624         (add_char_attribute_alist_mapper): New function.
3625         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3626         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3627         (Fget_char_attribute): Likewise.
3628         (Fput_char_attribute): Likewise.
3629         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3630         of `remove_char_attribute'.
3631         (Fdefine_char): Return character.
3632         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3633         and `Vcharacter_name_table'.
3634         (complex_vars_of_mule_charset): Likewise
3635         `Vchar_attribute_hash_table'.
3636
3637 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3638
3639         * character.h (CHARC_CHARSET): New macro.
3640         (CHARC_CHARSET_ID): New macro.
3641         (CHARC_CODE_POINT): New macro.
3642         (CHARC_COLUMNS): New macro.
3643         (CHARC_TO_CHAR): New inline function.
3644         (CHARC_EQ): New inline function.
3645         (CHARC_ASCII_EQ): New inline function.
3646         (CHARC_IS_SPACE): New inline function.
3647         (ASCII_TO_CHARC): New inline function.
3648
3649         * char-ucs.h (encode_char_2): Deleted.
3650         (ENCODE_CHAR): Use `encode_char_1' again.
3651         (breakup_char_1): Likewise.
3652         (CHAR_TO_CHARC): New inline function.
3653
3654         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3655
3656 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3657
3658         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3659         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3660         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3661         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3662         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3663         `CHARC_IS_SPACE'.
3664         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3665
3666         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3667         `CHARC_CODE_POINT'.
3668         (x_output_display_block): Use `CHARC_CHARSET' and
3669         `CHARC_ASCII_EQ'.
3670
3671         * redisplay-tty.c (tty_output_display_block): Use
3672         `CHARC_ASCII_EQ'.
3673         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3674
3675         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3676
3677         * insdel.c (find_charsets_in_charc_string): Use
3678         `CHARC_CHARSET_ID'.
3679         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3680         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3681         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3682         (convert_charc_string_into_malloced_string): Likewise.
3683
3684 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3685
3686         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3687         instead of <Emchar_dynarr *> for buf; use
3688         `convert_bufbyte_string_into_charc_dynarr' instead of
3689         `convert_bufbyte_string_into_emchar_dynarr'; use
3690         `find_charsets_in_charc_string' instead of
3691         `find_charsets_in_emchar_string'.
3692
3693         * redisplay.h:
3694         - Include "character.h".
3695         (struct rune): New member `cglyph'; delete member `chr'.
3696
3697         * redisplay.c (redisplay_text_width_charc_string): New function;
3698         delete `redisplay_text_width_emchar_string'.
3699         (rtw_charc_dynarr): New variable; renamed from
3700         `rtw_emchar_dynarr'.
3701         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3702         `rtw_emchar_dynarr'; use
3703         `convert_bufbyte_string_into_charc_dynarr' instead of
3704         `convert_bufbyte_string_into_emchar_dynarr'; use
3705         `redisplay_text_width_charc_string' instead of
3706         `redisplay_text_width_emchar_string'.
3707         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3708         instead of `rtw_emchar_dynarr'; use
3709         `convert_bufbyte_string_into_charc_dynarr' instead of
3710         `convert_bufbyte_string_into_emchar_dynarr'.
3711         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3712         `redisplay_text_width_charc_string' instead of
3713         `redisplay_text_width_emchar_string'.
3714         (create_text_block): Modify for <struct rune> change.
3715         (generate_formatted_string_db): Likewise.
3716         (create_string_text_block): Likewise.
3717         (pixel_to_glyph_translation): Likewise.
3718
3719         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3720         instead of <const Emchar *>.
3721         (x_text_width): Likewise.
3722         (x_output_display_block): Use <Charc_dynarr *> instead
3723         <Emchar_dynarr *>; modify for <structure rune> change.
3724         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3725         *>.
3726
3727         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3728         <const Emchar *>; use `charc_string_displayed_columns' instead of
3729         `emchar_string_displayed_columns'.
3730         (tty_output_display_block): Use <Charc_dynarr *> instead of
3731         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3732         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3733         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3734         `tty_output_emchar_dynarr_dynarr'.
3735         (tty_output_charc_dynarr): New function; delete
3736         `tty_output_charc_dynarr'.
3737
3738         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3739         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3740         <Emchar_dynarr *> for buf; use
3741         `convert_bufbyte_string_into_charc_dynarr' instead of
3742         `convert_bufbyte_string_into_emchar_dynarr'.
3743
3744         * frame.c (title_string_charc_dynarr): New variable; renamed from
3745         `title_string_emchar_dynarr'.
3746         (generate_title_string): Use `title_string_charc_dynarr' instead
3747         of `title_string_emchar_dynarr'; use
3748         `convert_charc_string_into_malloced_string' instead of
3749         `convert_emchar_string_into_malloced_string'.
3750         (init_frame): Use `title_string_charc_dynarr' instead of
3751         `title_string_emchar_dynarr'.
3752
3753         * console.h:
3754         - Include "character.h".
3755         (struct console_methods): Use <const Charc *> instead of <const
3756         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3757         <Emchar_dynarr *> in output_string_method.
3758
3759         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3760         <Emchar_dynarr *>.
3761
3762         * console-stream.c (stream_text_width): Use <const Charc *>
3763         instead of <const Emchar *>.
3764
3765         * character.h (Charc_dynarr): New type.
3766
3767         * char-ucs.h (structure Charc): New structure; define new type
3768         `Charc'.
3769
3770         * char-lb.h (DECODE_CHAR): New inline function.
3771         (encode_char_1): New inline function.
3772         (ENCODE_CHAR): New macro.
3773         (structure Charc): New structure; define new type `Charc'.
3774
3775         * char-1byte.h (Vcharset_control_1): New macro.
3776         (Vcharset_latin_iso8859_1): New macro.
3777         (DECODE_CHAR): New inline function.
3778         (encode_char_1): New inline function.
3779         (ENCODE_CHAR): New macro.
3780         (structure Charc): New structure; define new type `Charc'.
3781
3782         * insdel.c (find_charsets_in_charc_string): New function; delete
3783         `find_charsets_in_emchar_string'.
3784         (charc_string_displayed_columns): New function; delete
3785         `emchar_string_displayed_columns'.
3786         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3787         `convert_bufbyte_string_into_emchar_dynarr'.
3788         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3789         `convert_charc_string_into_bufbyte_dynarr'.
3790         (convert_charc_string_into_malloced_string): New function; delete
3791         `convert_charc_string_into_malloced_string'.
3792
3793         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3794         `find_charsets_in_emchar_string'.
3795         (charc_string_displayed_columns): New prototype; delete
3796         `emchar_string_displayed_columns'.
3797         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3798         `convert_charc_string_into_bufbyte_dynarr'.
3799         (convert_charc_string_into_malloced_string): New prototype; delete
3800         `convert_charc_string_into_malloced_string'.
3801
3802 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3803
3804         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3805
3806 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3807
3808         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3809
3810         * char-ucs.h: Use <short> for <Charset_ID>.
3811
3812         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3813         <Charset_ID>.
3814
3815 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3816
3817         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3818         to 0.16.
3819
3820 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3821
3822         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3823         variable.
3824         (Qmorohashi_daikanwa): New variable.
3825         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3826         for `morohashi-daikanwa' attribute.
3827         (Fget_char_attribute): Likewise.
3828         (Fput_char_attribute): Likewise.
3829         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3830         has the same value of `ideograph-daikanwa'.
3831         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3832         (vars_of_mule_charset): Setup
3833         `Vcharacter_morohashi_daikanwa_table'.
3834
3835 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3836
3837         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3838         attributes.
3839         (add_charset_to_list_mapper): Add `key' instead of
3840         `XCHARSET_NAME (value)' to return aliases.
3841
3842 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3843
3844         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3845         variable.
3846         (Vcharacter_ideographic_strokes_table): New variable.
3847         (Qideographic_radical): New variable.
3848         (Qideographic_strokes): New variable.
3849         (Fchar_attribute_alist): Use
3850         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3851         attribute; use `Vcharacter_ideographic_strokes_table' for
3852         `ideographic-strokes' attribute.
3853         (Fget_char_attribute): Likewise.
3854         (Fput_char_attribute): Likewise.
3855         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3856         `ideographic-strokes'.
3857         (vars_of_mule_charset): Setup
3858         `Vcharacter_ideographic_radical_table' and
3859         `Vcharacter_ideographic_strokes_table'.
3860
3861 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3862
3863         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3864         (Qtotal_strokes): New variable.
3865         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3866         `total-strokes' attribute.
3867         (Fget_char_attribute): Likewise.
3868         (Fput_char_attribute): Likewise.
3869         (syms_of_mule_charset): Add new symbol `total-strokes'.
3870         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3871
3872 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3873
3874         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3875         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3876         are found.
3877         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3878         `->decomposition' attribute.
3879         (Fput_char_attribute): Likewise.
3880         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3881
3882 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3883
3884         * mule-charset.c (decoding_table_check_elements): New function.
3885         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3886
3887 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3888
3889         * mule-charset.c (Fset_charset_mapping_table): Use
3890         `put_char_ccs_code_point'.
3891
3892 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3893
3894         * mule-charset.c (decoding_table_put_char): New inline function.
3895         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3896
3897 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3898
3899         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3900         (XCHARSET_BYTE_SIZE): New macro.
3901         (decoding_table_remove_char): New inline function.
3902         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3903         `decoding_table_remove_char'.
3904         (remove_char_ccs): Use `decoding_table_remove_char'.
3905         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3906
3907 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3908
3909         * mule-charset.c (Vcharacter_name_table): New variable.
3910         (Qname): New variable.
3911         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3912         attribute.
3913         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3914         `Vcharacter_name_table' for `name' attribute.
3915         (Fremove_char_attribute): Use function `remove_char_ccs'.
3916         (put_char_ccs_code_point): New function.
3917         (remove_char_ccs): New function.
3918         (syms_of_mule_charset): Add new symbol `name'.
3919         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3920
3921 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3922
3923         * mule-charset.c (make_byte_table): Add new argument `older'.
3924         (make_char_id_table): Likewise.
3925         (copy_char_id_table): Comment out because it is not used.
3926         (put_char_id_table): Modify for `make_byte_table'.
3927         (Fput_char_attribute): Make encoding_table as older object;
3928         inherit older bit of `Vcharacter_composition_table'.
3929         (mark_charset): Don't mark `cs->encoding_table'.
3930         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3931         normal object; make `Vcharacter_composition_table' as an older
3932         object; delete staticpro for `Vcharacter_composition_table'; make
3933         `Vcharacter_variant_table' as a normal object.
3934
3935         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3936         (mark_object): Don't check older object in UTF-2000.
3937
3938         * lrecord.h (struct lrecord_header): Add new member `older' in
3939         UTF-2000.
3940         (set_lheader_implementation): Setup `SLI_header->older' in
3941         UTF-2000.
3942         (set_lheader_older_implementation): New macro in UTF-2000.
3943         (OLDER_RECORD_P): New macro in UTF-2000.
3944         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3945         (alloc_older_lcrecord): New prototype in UTF-2000.
3946         (alloc_older_lcrecord_type): New macro in UTF-2000.
3947
3948 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3949
3950         * mule-charset.c (byte_table_description): Use
3951         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3952         (char_id_table_description): Delete bogus `, 1'.
3953         (Fget_char_attribute): Refer encoding_table of each coded-charset
3954         to get value of coded-charset attribute of a character.
3955         (Fput_char_attribute): Use `make_older_vector' instead of
3956         `make_vector'; use encoding_table of each coded-charset to store
3957         value of coded-charset attribute of a character.
3958         (Fremove_char_attribute): Use encoding_table of each coded-charset
3959         to store value of coded-charset attribute of a character.
3960         (mark_charset): Mark `cs->encoding_table'; don't mark
3961         `cs->decoding_table'.
3962         (charset_description): Add description of new member
3963         `encoding_table'.
3964         (make_charset): Initialize `encoding_table'.
3965
3966         * char-ucs.h (struct Lisp_Charset): Add new member
3967         `encoding_table'.
3968         (CHARSET_ENCODING_TABLE): New macro.
3969         (XCHARSET_ENCODING_TABLE): New macro.
3970         (charset_code_point): New implementation.
3971         (encode_char_1): Likewise.
3972
3973         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3974         (disksave_object_finalization_1): Call finalizers of
3975         `all_older_lcrecords' in UTF-2000.
3976         (make_older_vector): New function in UTF-2000.
3977         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3978         UTF-2000.
3979
3980         * lisp.h (make_older_vector): New prototype in UTF-2000.
3981
3982 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3983
3984         * lrecord.h (enum lrecord_type): Rename
3985         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3986
3987         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3988         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3989         `get_char_code_table'.
3990
3991         * mule-charset.c (mark_char_id_table): Renamed from
3992         `mark_char_code_table'.
3993         (char_id_table_equal): Renamed from `char_code_table_equal'.
3994         (char_id_table_hash): Renamed from `char_code_table_hash'.
3995         (make_char_id_table): Renamed from `make_char_code_table'.
3996         (copy_char_id_table): Renamed from `copy_char_code_table'.
3997         (get_char_id_table): Renamed from `get_char_code_table'.
3998         (put_char_id_table): Renamed from `put_char_code_table'.
3999         (to_char_id): Renamed from `to_char_code'.
4000
4001         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
4002         `Lisp_Char_Code_Table'.
4003         (char_id_table): Renamed from `char_code_table'.
4004         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
4005         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
4006         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
4007         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
4008         (get_char_id_table): Renamed from `get_char_code_table'.
4009
4010 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4011
4012         * lrecord.h (enum lrecord_type): Rename
4013         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
4014
4015         * mule-charset.c (mark_byte_table): Renamed from
4016         `mark_char_byte_table'.
4017         (byte_table_equal): Renamed from `char_byte_table_equal'.
4018         (byte_table_hash): Renamed from `byte_table_hash'.
4019         (make_byte_table): Renamed from `make_byte_table'.
4020         (copy_byte_table): Renamed from `copy_char_byte_table'.
4021
4022         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
4023         `Lisp_Char_Byte_Table'.
4024         (byte_table): Renamed from `char_byte_table'.
4025         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
4026         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
4027         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
4028         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
4029
4030 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4031
4032         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
4033         (dfc_convert_to_internal_format): Likewise.
4034         
4035         * text-coding.c (Fcoding_system_canonical_name_p): New function.
4036         * text-coding.c (Fcoding_system_alias_p): New function.
4037         * text-coding.c (Fcoding_system_aliasee): New function.
4038         * text-coding.c (append_suffix_to_symbol): New function.
4039         * text-coding.c (dangling_coding_system_alias_p): New function.
4040         * text-coding.c (Ffind_coding_system):
4041         * text-coding.c (Fcopy_coding_system):
4042         * text-coding.c (encode_coding_no_conversion):
4043         * text-coding.c (syms_of_file_coding):
4044         * text-coding.c (vars_of_file_coding):
4045         Rewrite coding system alias code.
4046         Allow nested aliases, like symbolic links.
4047         Allow redefinition of coding system aliases.
4048         Prevent existence of dangling coding system aliases.
4049         Eliminate convert_to_external_format.
4050         Eliminate convert_to_internal_format.
4051         
4052         * text-coding.c: Change enum eol_type to eol_type_t.
4053
4054 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4055
4056         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
4057         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4058
4059         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
4060         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4061
4062 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4063
4064         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
4065         `ideograph-daikanwa'.
4066
4067         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
4068         (Vcharset_ucs_bmp): Likewise.
4069         (Vcharset_mojikyo): Add new extern variable definition.
4070         (Vcharset_latin_iso8859_2): Deleted because it is not used.
4071         (Vcharset_latin_iso8859_3): Likewise.
4072         (Vcharset_latin_iso8859_4): Likewise.
4073         (Vcharset_latin_iso8859_9): Likewise.
4074         (Vcharset_latin_viscii_lower): Likewise.
4075         (Vcharset_latin_viscii_upper): Likewise.
4076         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4077         `mojikyo' code-point is used to decode.
4078         (encode_char_2): New function [to convert `mojikyo' code-point to
4079         Mojikyo font encoding].
4080         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4081         (breakup_char_1): Likewise.
4082         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4083
4084 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4085
4086         * text-coding.c (Fmake_coding_system): Add document about
4087         `disable-composition' property.
4088
4089 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4090
4091         * text-coding.c (Qdisable_composition): New variable; delete
4092         `Qcomposite'.
4093         (Fmake_coding_system): Add new property `disable-composite';
4094         delete property `composite'.
4095         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4096         instead of `!CODING_SYSTEM_COMPOSITE'.
4097         (syms_of_file_coding): Add new symbol `disable-composition';
4098         delete symbol `composite'.
4099
4100         * file-coding.h (struct Lisp_Coding_System): Add
4101         `disable_composition'; delete `enable_composition'.
4102         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4103         `CODING_SYSTEM_COMPOSITE'.
4104         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4105         `XCODING_SYSTEM_COMPOSITE'.
4106
4107 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4108
4109         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4110         to 0.15.
4111
4112 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4113
4114         * text-coding.c (Qcomposite): New variable.
4115         (Fmake_coding_system): Add new property `composite'.
4116         (struct decoding_stream): Add `combined_char_count',
4117         `combined_chars' and `combining_table' in UTF-2000.
4118         (COMPOSE_FLUSH_CHARS): New macro.
4119         (COMPOSE_ADD_CHAR): New macro.
4120         (reset_decoding_stream): Reset `str->combined_char_count' and
4121         `str->combining_table' in UTF-2000.
4122         (decode_coding_iso2022): Modify for character-decomposition.
4123         (syms_of_file_coding): Add new symbol `composite'.
4124
4125 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4126
4127         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4128         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4129         of `Vcharacter_composition_table' if `->decomposition' property
4130         has only 1 element.
4131         (Qlatin_tcvn5712): New variable.
4132         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4133         (complex_vars_of_mule_charset): Add new coded-charset
4134         `latin-tcvn5712'.
4135
4136         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4137
4138 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4139
4140         * file-coding.h (struct Lisp_Coding_System): Add
4141         `enable_composition'.
4142         (CODING_SYSTEM_COMPOSITE): New macro.
4143         (XCODING_SYSTEM_COMPOSITE): New macro.
4144
4145 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4146
4147         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4148
4149 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4150
4151         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4152         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4153
4154 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4155
4156         * mule-charset.c (Vcharset_mojikyo): New variable.
4157         (Fdefine_char): Don't use coded-charset which does not have
4158         non-builtin character range to allocate character-id.
4159         (Qmojikyo): New variable.
4160         (syms_of_mule_charset): Add new symbol `mojikyo'.
4161         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4162
4163         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4164         (LEADING_BYTE_MOJIKYO): New macro.
4165         (MIN_CHAR_MOJIKYO): New macro.
4166         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4167         (MAX_CHAR_MOJIKYO): New macro.
4168
4169 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4170
4171         * mule-charset.c (remove_char_attribute): Fixed.
4172
4173 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4174
4175         * mule-charset.c (remove_char_attribute): New function.
4176         (Fremove_char_attribute): New function.
4177         (encode_builtin_char_1): Comment out builtin-support for
4178         greek-iso8859-7 and cyrillic-iso8859-5.
4179         (Fdecode_char): Check `code' is an integer.
4180         (syms_of_mule_charset): Add `remove-char-attribute'.
4181         (MIN_CHAR_GREEK): Deleted.
4182         (MAX_CHAR_GREEK): Likewise.
4183         (MIN_CHAR_CYRILLIC): Likewise.
4184         (MAX_CHAR_CYRILLIC): Likewise.
4185         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4186         MAX_CHAR_GREEK for `greek-iso8859-7'.
4187
4188         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4189         (MAX_CHAR_GREEK): Likewise.
4190         (MIN_CHAR_CYRILLIC): Likewise.
4191         (MAX_CHAR_CYRILLIC): Likewise.
4192
4193 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4194
4195         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4196         format is used without `ucs' property.
4197         (Fdecode_char): Fix problem with GR representation.
4198         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4199         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4200
4201 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4202
4203         * mule-charset.c (make_builtin_char): New function.
4204         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4205         (Fset_charset_mapping_table): Modify for new representation of
4206         code-point.
4207         (Fdecode_char): New function.
4208         (syms_of_mule_charset): Add new builtin function `decode-char' in
4209         UTF-2000.
4210
4211         * char-ucs.h (make_builtin_char): New prototype.
4212         (DECODE_CHAR): New inline function.
4213         (MAKE_CHAR): Use `DECODE_CHAR'.
4214
4215 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4216
4217         * text-coding.c (parse_charset_conversion_specs): Use
4218         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4219         `XCHARSET_TYPE'.
4220         (iso2022_designate): Likewise.
4221
4222         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4223         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4224
4225         * mule-charset.c (Vcharset_ucs): New variable.
4226         (print_charset): Change design; use `CHARSET_CHARS' and
4227         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4228         (make_charset): Change signature to specify `chars' and
4229         `dimension' instead of `type'.
4230         (range_charset_code_point): Modify for 256^n-set.
4231         (encode_builtin_char_1): Encode as `ucs' in default.
4232         (Fmake_charset): Modify for `make_charset'.
4233         (Fmake_reverse_direction_charset): Likewise.
4234         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4235         UTF-2000.
4236         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4237         for `make_charset'.
4238
4239         * char-ucs.h (Vcharset_ucs): New variable.
4240         (LEADING_BYTE_UCS): New macro.
4241         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4242         and `chars' to `unsigned short' from `unsigned int'.
4243         (CHARSET_TYPE): Deleted.
4244         (XCHARSET_TYPE): Deleted.
4245
4246 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4247
4248         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4249
4250         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4251         (ENCODE_CHAR): New macro.
4252
4253 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4254
4255         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4256         to 0.14 (Kawachi-Katakami).
4257
4258 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4259
4260         * text-coding.c (char_encode_shift_jis): Modify for
4261         `charset_code_point'.
4262         (char_encode_iso2022): Likewise.
4263
4264         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4265         (integer) instead of list of <Lisp_Object>s (integers) as the
4266         format of code-point of a coded-charset.
4267         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4268         (encode_builtin_char_1): New function; delete
4269         `split_builtin_char'.
4270         (charset_code_point): Return <int> instead of <Lisp_Object>.
4271         (Fsplit_char): Don't use `SPLIT_CHAR'.
4272
4273         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4274         prototype for `split_builtin_char'.
4275         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4276         (charset_code_point): Likewise.
4277         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4278         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4279
4280 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4281
4282         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4283         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4284
4285 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4286
4287         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4288
4289         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4290         (MAX_CHAR_OBS_94x94): Deleted.
4291
4292 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4293
4294         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4295
4296         * char-ucs.h (MAX_CHAR_BMP): New macro.
4297
4298 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4299
4300         * text-coding.c: Sync with r21-2-24.
4301
4302 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4303
4304         * file-coding.c: Modify for UTF-2000.
4305
4306 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4307
4308         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4309         to 0.13 (Takaida).
4310
4311 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4312
4313         * mule-charset.c (split_builtin_char): Delete builtin support for
4314         `katakana-jisx0201'.
4315         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4316         BMP area in builtin representation.
4317
4318         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4319         `Vcharset_katakana_jisx0201'.
4320
4321 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4322
4323         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4324         (Qisolated): New variable.
4325         (Qinitial): New variable.
4326         (Qmedial): New variable.
4327         (Qfinal): New variable.
4328         (Qvertical): New variable.
4329         (Qsmall): New variable.
4330         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4331         `Qvertical' and `Qsmall'.
4332         (Qmojikyo_pj_[1 .. 21]): New variable.
4333         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4334         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4335         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4336         .. 21]'.
4337
4338 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4339
4340         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4341         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4342         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4343
4344 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4345
4346         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4347         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4348         BMP.
4349         (Qjapanese_jisx0208_1990): New variable.
4350         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4351         (complex_vars_of_mule_charset): Add new coded-charset
4352         `japanese-jisx0208-1990'.
4353
4354         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4355         (MIN_CHAR_JIS_X0208_1990): New macro.
4356         (MAX_CHAR_JIS_X0208_1990): New macro.
4357
4358 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4359
4360         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4361         coded-charset is not found.
4362
4363 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4364
4365         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4366         (Fdefine_char): Use `Fmake_char'.
4367
4368 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4369
4370         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4371         (Vcharset_hiragana_jisx0208): Deleted.
4372         (Vcharset_katakana_jisx0208): Deleted.
4373         (Qideograph_daikanwa): New variable.
4374         (Qhiragana_jisx0208): Deleted.
4375         (Qkatakana_jisx0208): Deleted.
4376         (split_builtin_char): Split `ideograph-daikanwa'.
4377         (Fsplit_char): New implementation for UTF-2000.
4378         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4379         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4380         (complex_vars_of_mule_charset): Add new coded-charset
4381         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4382         `katakana-jisx0208'.
4383
4384         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4385         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4386         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4387         (MIN_CHAR_DAIKANWA): New macro.
4388         (MAX_CHAR_DAIKANWA): New macro.
4389
4390 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4391
4392         * data.c (Fstring_to_number): Don't recognize floating point if
4393         base is not 10.
4394
4395 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4396
4397         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4398
4399 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4400
4401         * mule-charset.c (Qsquare): New variable.
4402         (to_char_code): Add `Qsquare'.
4403         (syms_of_mule_charset): Add new symbol `square'.
4404
4405 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4406
4407         * mule-charset.c (Qcircle): New variable.
4408         (to_char_code): Add `Qcircle'.
4409         (syms_of_mule_charset): Add new symbol `circle'.
4410
4411 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4412
4413         * mule-charset.c (Qfont): New variable.
4414         (to_char_code): Add `Qfont'.
4415         (syms_of_mule_charset): Add new symbol `font'.
4416
4417 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4418
4419         * mule-charset.c (Qsub): New variable.
4420         (to_char_code): Add `Qsub'.
4421         (syms_of_mule_charset): Add new symbol `sub'.
4422
4423 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4424
4425         * mule-charset.c (Fput_char_attribute): Convert each element of
4426         VALUE to GL position if ATTRIBUTE is a GR-set,
4427
4428 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4429
4430         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4431         coded-charset is a GR-set.
4432
4433 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4434
4435         * mule-charset.c (Fput_char_attribute): Check each element of
4436         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4437
4438 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4439
4440         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4441         UTF-2000.
4442         (Qethiopic_ucs): New variable in UTF-2000.
4443         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4444         (complex_vars_of_mule_charset): Add new coded-charset
4445         `ethiopic-ucs' in UTF-2000.
4446
4447         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4448         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4449         9)'.
4450         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4451         10)'.
4452         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4453
4454 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4455
4456         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4457         `ascii'.
4458
4459 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4460
4461         * mule-charset.c (Vcharacter_variant_table): New variable.
4462         (Q_ucs): New variable.
4463         (Fchar_variants): New function.
4464         (Fput_char_attribute): Register `->ucs' value to
4465         `Vcharacter_variant_table'.
4466         (syms_of_mule_charset): Add new function `char-variants' and new
4467         symbol `->ucs'.
4468         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4469
4470 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4471
4472         * mule-charset.c (get_char_code_table): Allow negative character
4473         code.
4474         (put_char_code_table): Likewise.
4475         (Vcharacter_composition_table): New variable.
4476         (Q_decomposition): New variable.
4477         (Qwide): New variable.
4478         (Qnarrow): New variable.
4479         (Qcompat): New variable.
4480         (QnoBreak): New variable.
4481         (Qsuper): New variable.
4482         (Qfraction): New variable.
4483         (to_char_code): New function.
4484         (Fget_composite_char): New function.
4485         (Fput_char_attribute): Register `->decomposition' value to
4486         `Vcharacter_composition_table'.
4487         (syms_of_mule_charset): Add new function `get-composite-char', new
4488         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4489         `super' and `fraction'.
4490         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4491
4492 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4493
4494         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4495         character; copy the return value.
4496
4497 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4498
4499         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4500
4501         * mule-charset.c (range_charset_code_point): Must use make_int.
4502         (split_builtin_char): New function.
4503
4504 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4505
4506         * mule-charset.c (char_byte_table): Change name from
4507         "char-code-table" to "char-byte-table".
4508         (mark_char_code_table): New function.
4509         (char_code_table_equal): New function.
4510         (char_code_table_hash): New function.
4511         (char_code_table_description): New constant.
4512         (char_code_table): New type.
4513         (make_char_code_table): New function.
4514         (copy_char_code_table): New function.
4515         (get_char_code_table): Modify for `char_code_table' type.
4516         (put_char_code_table): Likewise.
4517         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4518         (Kashiwara).
4519
4520         * char-ucs.h (char_code_table): New type.
4521         (XCHAR_CODE_TABLE): New macro.
4522         (XSETCHAR_CODE_TABLE): New macro.
4523         (CHAR_CODE_TABLE_P): New macro.
4524         (GC_CHAR_CODE_TABLE_P): New macro.
4525         (struct Lisp_Char_Code_Table): New structure.
4526
4527 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4528
4529         * mule-charset.c (Fmake_charset): Setup byte_offset for
4530         {94|96}^n-set.
4531
4532 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4533
4534         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4535         character.
4536
4537 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4538
4539         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4540         is found.
4541
4542 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4543
4544         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4545         charset, it is regarded as a charset.
4546         (put_char_attribute): New function in UTF-2000.
4547         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4548         charset, mapping-table of the charset is modified.
4549         (Fdefine_char): New function in UTF-2000.
4550         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4551         `Fput_char_attribute'.
4552         (syms_of_mule_charset): Add new function `define-char' and new
4553         symbol `ucs' in UTF-2000.
4554         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4555
4556 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4557
4558         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4559         non-UTF-2000 configuration.
4560
4561 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4562
4563         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4564         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4565
4566         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4567         deleted.
4568         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4569         (Fset_charset_mapping_table): Likewise.
4570
4571         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4572         (CHARSET_ENCODING_TABLE): Delete.
4573         (XCHARSET_ENCODING_TABLE): Delete.
4574         (charset_code_point): New interface.
4575
4576 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4577
4578         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4579         instead of `charset_get_byte1' and `charset_get_byte2'.
4580
4581         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4582         (charset_get_byte2): Deleted.
4583
4584 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4585
4586         * char-ucs.h (SPLIT_CHAR): New inline function.
4587         (breakup_char_1): Use `SPLIT_CHAR'.
4588
4589         * mule-charset.c (range_charset_code_point): New function.
4590         (charset_code_point): New function.
4591
4592         * char-ucs.h (range_charset_code_point): New interface.
4593         (breakup_char_1): Use `range_charset_code_point'.
4594
4595 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4596
4597         * mule-charset.c (Fmake_charset): Delete unused local variable
4598         `code_offset'.
4599
4600         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4601         (breakup_char_1): Find a charset and code-point in
4602         `Vcharacter_attribute_table'.
4603
4604 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4605
4606         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4607         to 0.10 (Yao).
4608
4609 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4610
4611         * mule-charset.c (Vcharacter_attribute_table): New variable.
4612         (Fchar_attribute_alist): New function.
4613         (Fget_char_attribute): New function.
4614         (Fput_char_attribute): New function.
4615         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4616         too.
4617         (syms_of_mule_charset): Add new function `char-attribute-alist',
4618         `get-char-attribute' and `put-char-attribute'.
4619         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4620
4621 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4622
4623         * mule-charset.c (Fmake_charset): Just use
4624         `get_unallocated_leading_byte'.
4625
4626         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4627         sets; don't use final-byte based number for private sets.
4628
4629 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4630
4631         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4632         integer.
4633
4634 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4635
4636         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4637         to 0.9.
4638
4639 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4640
4641         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4642         of `CHAR_LEADING_BYTE' in UTF-2000.
4643
4644         * insdel.c (find_charsets_in_bufbyte_string): Use
4645         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4646         (find_charsets_in_emchar_string): Likewise.
4647
4648         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4649         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4650
4651         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4652         (CHAR_CHARSET_ID): New macro.
4653
4654 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4655
4656         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4657         charset-id - MIN_LEADING_BYTE.
4658         (put_char_table): Likewise.
4659
4660 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4661
4662         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4663         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4664         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4665         (CHARSET_ID_OFFSET): New macro.
4666         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4667         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4668         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4669         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4670         4).
4671         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4672         5).
4673         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4674         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4675         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4676         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4677         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4678
4679 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4680
4681         * mule-charset.c (next_allocated_leading_byte): New variable in
4682         UTF-2000.
4683         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4684         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4685         (get_unallocated_leading_byte): Simply use
4686         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4687         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4688         UTF-2000.
4689
4690         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4691         (MAX_LEADING_BYTE_PRIVATE): New macro.
4692         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4693         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4694
4695 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4696
4697         * mule-charset.c (Fmake_charset): Allocate final-byte based
4698         charset-id for 94-set, 96-set and 94x94-set.
4699
4700 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4701
4702         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4703         ambiguous `else'.
4704         (Fmake_charset): Likewise.
4705         (complex_vars_of_mule_charset): Modify the font registry of
4706         `ucs-bmp' not to match `Ethiopic-Unicode'.
4707
4708 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4709
4710         * mule-charset.c (complex_vars_of_mule_charset): Add font
4711         registory of `ucs-bmp'.
4712
4713 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4714
4715         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4716         coded-charsets in `default-coded-charset-priority-list' when
4717         breaking up a character.
4718
4719         * mule-charset.c (Vcharset_latin_viscii): New variable.
4720         (Qlatin_viscii): New variable.
4721         (make_charset): Don't use `decoding_table'.
4722         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4723         byte_offset.
4724         (Fset_charset_mapping_table): New implementation.
4725         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4726         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4727         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4728         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4729         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4730         charset `latin_viscii'.
4731
4732         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4733         (CHARSET_TYPE_94X94): Change to 1 from 2.
4734         (CHARSET_TYPE_96): Change to 2 from 1.
4735         (CHARSET_TYPE_128): New macro.
4736         (CHARSET_TYPE_128X128): Change to 5 from 4.
4737         (CHARSET_TYPE_256): New macro.
4738         (CHARSET_TYPE_256X256): Change to 7 from 5.
4739         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4740
4741 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4742
4743         * text-coding.c (char_encode_shift_jis): Refer
4744         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4745         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4746
4747         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4748         (char_byte_table_equal): New function in UTF-2000.
4749         (char_byte_table_hash): New function in UTF-2000.
4750         (char_byte_table_description): New constant in UTF-2000.
4751         (char_byte_table): New type in UTF-2000.
4752         (make_char_byte_table): New function in UTF-2000.
4753         (copy_char_byte_table): New function in UTF-2000.
4754         (make_char_code_table): New macro in UTF-2000.
4755         (get_char_code_table): New function in UTF-2000.
4756         (put_char_code_table): New function in UTF-2000.
4757         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4758         (charset_description): Add setting in UTF-2000.
4759         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4760         `CHARSET_TO_BYTE1_TABLE(cs)'.
4761         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4762         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4763         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4764         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4765         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4766         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4767         `CHARSET_TO_BYTE2_TABLE(cs)'.
4768
4769         * char-ucs.h (char_byte_table): New type.
4770         (XCHAR_BYTE_TABLE): New macro.
4771         (XSETCHAR_BYTE_TABLE): New macro.
4772         (CHAR_BYTE_TABLE_P): New macro.
4773         (GC_CHAR_BYTE_TABLE_P): New macro.
4774         (struct Lisp_Char_Byte_Table): New structure.
4775         (get_char_code_table): New interface.
4776         (Emchar_to_byte_table): Deleted.
4777         (get_byte_from_character_table): Deleted.
4778         (struct Lisp_Charset): Add `encoding_table'; delete
4779         `to_byte1_table' and `to_byte2_table'.
4780         (CHARSET_ENCODING_TABLE): New macro.
4781         (CHARSET_TO_BYTE1_TABLE): Deleted.
4782         (CHARSET_TO_BYTE2_TABLE): Deleted.
4783         (XCHARSET_ENCODING_TABLE): New macro.
4784         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4785         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4786
4787 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4788
4789         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4790         `vietnamese-viscii-*'.
4791
4792 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4793
4794         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4795         (Qvietnamese_viscii_upper): New variable.
4796         (Fdefine_charset_alias): New function.
4797         (syms_of_mule_charset): Add new function `define-charset-alias'.
4798         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4799         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4800         `latin-viscii-*'.
4801
4802 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4803
4804         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4805         (MAX_CHAR_OBS_94x94): New macro.
4806         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4807         for 94x94 sets.
4808
4809         * mule-charset.c (put_byte_from_character_table): Change unit size
4810         from 128 to 256.
4811         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4812         not defined.
4813         (Fmake_reverse_direction_charset): Modify dummy argument of
4814         `make_charset' for non-UTF-2000 environment.
4815
4816 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4817
4818         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4819
4820         * mule-charset.c (destroy_byte_from_character_table): New macro.
4821         (latin_jisx0201_to_ucs): Deleted.
4822         (latin_iso8859_2_to_ucs): Deleted.
4823         (latin_iso8859_3_to_ucs): Deleted.
4824         (latin_iso8859_4_to_ucs): Deleted.
4825         (latin_iso8859_9_to_ucs): Deleted.
4826         (latin_viscii_lower_to_ucs): Deleted.
4827         (latin_viscii_upper_to_ucs): Deleted.
4828         (mark_charset): Mark `cs->decoding_table'.
4829         (Fcharset_mapping_table): Fix DOC-string.
4830         (Fset_charset_mapping_table): New function.
4831         (syms_of_mule_charset): Add nwe function
4832         `set-charset-mapping-table'.
4833         (complex_vars_of_mule_charset): Don't setup and use
4834         `latin_*_to_ucs'.
4835
4836 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4837
4838         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4839         charset.
4840
4841 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4842
4843         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4844         (Vcharset_katakana_jisx0208): New variable.
4845         (Qhiragana_jisx0208): New variable.
4846         (Qkatakana_jisx0208): New variable.
4847         (make_charset): Add new argument `byte_offset'.
4848         (charset_get_byte1): Modify for new coded-charset definition; use
4849         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4850         `XCHARSET_BYTE_OFFSET'.
4851         (Fmake_charset): Modify for `make_charset'.
4852         (Fmake_reverse_direction_charset): Likewise.
4853         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4854         `katakana-jisx0208'.
4855         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4856         `.'  in font registry of charset `katakana-jisx0201',
4857         `latin-jisx0201', `vietnamese-viscii-lower' and
4858         `vietnamese-viscii-upper'; modify DOC-string of charset
4859         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4860         registry of charset `japanese-jisx0208' not to use font for JIS
4861         X0208:1990; add new charset `hiragana-jisx0208' and
4862         `katakana-jisx0208'.
4863
4864         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4865         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4866         (struct Lisp_Charset): Add `byte_offset'.
4867         (CHARSET_BYTE_OFFSET): New macro.
4868         (XCHARSET_UCS_MIN): New macro.
4869         (XCHARSET_UCS_MAX): New macro.
4870         (XCHARSET_CODE_OFFSET): New macro.
4871         (XCHARSET_BYTE_OFFSET): New macro.
4872         (MIN_CHAR_HIRAGANA): New macro.
4873         (MAX_CHAR_HIRAGANA): New macro.
4874         (MIN_CHAR_KATAKANA): New macro.
4875         (MAX_CHAR_KATAKANA): New macro.
4876         (MAKE_CHAR): Modify for new coded-charset definition; use
4877         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4878         `XCHARSET_BYTE_OFFSET'.
4879
4880 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4881
4882         * mule-charset.c (CHAR96): Deleted.
4883         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4884         <Lisp_Object>.
4885         (latin_iso8859_2_to_ucs): Likewise.
4886         (latin_iso8859_3_to_ucs): Likewise.
4887         (latin_iso8859_4_to_ucs): Likewise.
4888         (latin_iso8859_9_to_ucs): Likewise.
4889         (latin_viscii_lower_to_ucs): Likewise.
4890         (latin_viscii_upper_to_ucs): Likewise.
4891         (latin_tcvn5712_to_ucs): Commented out.
4892         (make_charset): Change type of argument `decoding_table' from
4893         <Emchar*> to <Lisp_Object> [vector of characters].
4894         (Fmake_charset): Modify for `make_charset'.
4895         (Fmake_reverse_direction_charset): Likewise.
4896         (Fcharset_mapping_table): New function in UTF-2000.
4897         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4898         UTF-2000.
4899         (complex_vars_of_mule_charset): Modify for type change of
4900         `*_to_ucs'; modify for `make_charset'.
4901
4902         * char-ucs.h (struct Lisp_Charset): Change type of
4903         `decoding_table' from <Emchar*> to <Lisp_Object>.
4904         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4905
4906 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4907
4908         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4909         error with non-UTF-2000-Mule.
4910
4911 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4912
4913         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4914         in lisp again].
4915         (Vcharset_chinese_cns11643_4): Likewise.
4916         (Vcharset_chinese_cns11643_5): Likewise.
4917         (Vcharset_chinese_cns11643_6): Likewise.
4918         (Vcharset_chinese_cns11643_7): Likewise.
4919         (Qchinese_cns11643_3): Likewise.
4920         (Qchinese_cns11643_4): Likewise.
4921         (Qchinese_cns11643_5): Likewise.
4922         (Qchinese_cns11643_6): Likewise.
4923         (Qchinese_cns11643_7): Likewise.
4924         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4925         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4926         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4927         (complex_vars_of_mule_charset): Likewise.
4928
4929 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4930
4931         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4932         96-set.
4933         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4934         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4935
4936 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4937
4938         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4939         0xFF60.
4940         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4941         (breakup_char_1): Likewise.
4942
4943         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4944         one of them includes the specified character.
4945
4946 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4947
4948         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4949
4950 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4951
4952         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4953
4954 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4955
4956         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4957         definition for non-UTF-2000 Mule.
4958         (latin_iso8859_3_to_ucs): Likewise.
4959         (latin_iso8859_4_to_ucs): Likewise.
4960         (latin_iso8859_9_to_ucs): Likewise.
4961         (latin_jisx0201_to_ucs): Likewise.
4962         (MIN_CHAR_THAI): Likewise.
4963         (MAX_CHAR_THAI): Likewise.
4964         (MIN_CHAR_GREEK): Likewise.
4965         (MAX_CHAR_GREEK): Likewise.
4966         (MIN_CHAR_HEBREW): Likewise.
4967         (MAX_CHAR_HEBREW): Likewise.
4968         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4969         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4970         (MIN_CHAR_CYRILLIC): Likewise.
4971         (MAX_CHAR_CYRILLIC): Likewise.
4972
4973 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4974
4975         * char-ucs.h (breakup_char_1): Use
4976         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4977         thai-tis620 and katakana-jisx0201 area.
4978
4979 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4980
4981         * char-ucs.h (breakup_char_1): Use
4982         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4983         area.
4984
4985         * text-coding.c (reset_encoding_stream): Fixed.
4986         (char_encode_ucs4): Delete `& 255'.
4987
4988         * char-ucs.h (breakup_char_1): Use
4989         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4990
4991 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4992
4993         * file-coding.c (Fmake_coding_system): Don't set up
4994         `codesys->fixed.size'.
4995         (encode_coding_no_conversion): Don't refer
4996         `str->codesys->fixed.size'.
4997
4998 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4999
5000         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
5001         (latin_a_char_to_byte1): Deleted.
5002         (latin_a_char_to_byte2): Deleted.
5003
5004 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5005
5006         * mule-charset.c (make_charset): Add new argument `ucs_min',
5007         `ucs_max' and `code_offset'.
5008         (charset_get_byte1): New implementation [delete specific charset
5009         depended implementations].
5010         (Fmake_charset): Modify for `make_charset'.
5011         (Fmake_reverse_direction_charset): Likewise.
5012         (complex_vars_of_mule_charset): Likewise.
5013
5014         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
5015         `code_offset'.
5016         (CHARSET_UCS_MIN): New macro.
5017         (CHARSET_UCS_MAX): New macro.
5018         (CHARSET_CODE_OFFSET): New macro.
5019         (MAKE_CHAR): Delete charset depended definitions [except
5020         katakana-jisx0201].
5021
5022 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
5023
5024         * char-ucs.h (breakup_char_1): Use
5025         `Vdefault_coded_charset_priority_list' for C0-Controls,
5026         Basic-Latin, C1-Controls and Latin-1-Supplement area.
5027
5028 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5029
5030         * char-ucs.h (charset_get_byte1): New function.
5031         (XCHARSET_GET_BYTE1): Deleted.
5032         (charset_get_byte2): New function.
5033         (XCHARSET_GET_BYTE2): Deleted.
5034         (Vdefault_coded_charset_priority_list): New external variable.
5035         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
5036         `Vdefault_preferred_coded_charset_list'.
5037
5038         * mule-charset.c (charset_get_byte1): New function.
5039         (charset_get_byte2): New function.
5040         (Vdefault_coded_charset_priority_list): New variable.
5041         (vars_of_mule_charset): Add new variable
5042         `default-coded-charset-priority-list'.
5043
5044 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5045
5046         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
5047         (XCHARSET_GET_BYTE2): New inline function.
5048         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
5049         `XCHARSET_GET_BYTE2'.
5050
5051 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5052
5053         * mule-charset.c (make_charset): Initialize
5054         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
5055         NULL if table is not defined.
5056
5057 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5058
5059         * text-coding.c (char_encode_shift_jis): Use
5060         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
5061         `ucs_to_latin_jisx0201'.
5062
5063         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
5064         (ucs_to_latin_iso8859_2): Deleted.
5065         (ucs_to_latin_iso8859_3): Deleted.
5066         (ucs_to_latin_iso8859_4): Deleted.
5067         (ucs_to_latin_iso8859_9): Deleted.
5068         (ucs_to_latin_viscii_lower): Deleted.
5069         (ucs_to_latin_viscii_upper): Deleted.
5070         (ucs_to_latin_tcvn5712): Deleted.
5071         (make_charset): Add new argument `decoding_table'; set up
5072         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5073         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5074         `decoding_table' is defined in UTF-2000.
5075         (Fmake_charset): Modify for `make_charset'.
5076         (Fmake_reverse_direction_charset): Likewise.
5077         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5078         and `GENERATE_96_SET'.
5079
5080         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5081         (ucs_to_latin_jisx0201): Deleted.
5082         (latin_iso8859_2_to_ucs): Deleted.
5083         (ucs_to_latin_iso8859_2): Deleted.
5084         (latin_iso8859_3_to_ucs): Deleted.
5085         (ucs_to_latin_iso8859_3): Deleted.
5086         (latin_iso8859_4_to_ucs): Deleted.
5087         (ucs_to_latin_iso8859_4): Deleted.
5088         (latin_iso8859_9_to_ucs): Deleted.
5089         (ucs_to_latin_iso8859_9): Deleted.
5090         (latin_viscii_lower_to_ucs): Deleted.
5091         (ucs_to_latin_viscii_lower): Deleted.
5092         (latin_viscii_upper_to_ucs): Deleted.
5093         (ucs_to_latin_viscii_upper): Deleted.
5094         (struct Lisp_Charset): Renamed `encoding_table' to
5095         `to_byte1_table'; add `to_byte2_table'.
5096         (CHARSET_DECODING_TABLE): New macro.
5097         (CHARSET_TO_BYTE1_TABLE): New macro.
5098         (CHARSET_TO_BYTE2_TABLE): New macro.
5099         (XCHARSET_DECODING_TABLE): New macro.
5100         (XCHARSET_TO_BYTE1_TABLE): New macro.
5101         (XCHARSET_TO_BYTE2_TABLE): New macro.
5102         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5103         tables.
5104         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5105         don't use `ucs_to_*' tables.
5106
5107 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5108
5109         * text-coding.c (Fmake_coding_system): Don't set up
5110         `codesys->fixed.size'.
5111         (encode_coding_no_conversion): Use `if' instead of `switch'.
5112
5113         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5114
5115 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5116
5117         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5118         (Fmake_charset): Modify for `make_charset'.
5119         (Fmake_reverse_direction_charset): Likewise.
5120         (complex_vars_of_mule_charset): Likewise.
5121
5122 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5123
5124         * text-coding.c (char_encode_shift_jis): Use table
5125         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5126
5127 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5128
5129         * text-coding.c (text_encode_generic): Use `if' instead of
5130         `switch'.
5131         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5132         decode JIS-Latin.
5133
5134 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5135
5136         * text-coding.c (encode_coding_sjis): Deleted.
5137         (char_encode_shift_jis): New function.
5138         (char_finish_shift_jis): New function.
5139         (reset_encoding_stream): Set up `encode_char' and `finish' for
5140         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5141         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5142         (char_encode_utf8): Treat `eol_type'.
5143
5144 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5145
5146         * file-coding.c (decode_coding_iso2022): Use
5147         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5148
5149 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5150
5151         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5152         to 0.7 (Hirano).
5153
5154 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5155
5156         * char-lb.h (CHAR_COLUMNS): New macro.
5157
5158 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5159
5160         * text-coding.c (char_encode_ucs4): New function.
5161         (char_finish_ucs4): New function.
5162         (encode_coding_ucs4): Deleted.
5163         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5164         (text_encode_generic): Delete local variable `charset' and `half'.
5165         (ucs_to_mule_table): Deleted.
5166         (mule_to_ucs_table): Deleted.
5167         (Fset_ucs_char): Deleted.
5168         (ucs_to_char): Deleted.
5169         (Fucs_char): Deleted.
5170         (Fset_char_ucs): Deleted.
5171         (Fchar_ucs): Deleted.
5172         (decode_ucs4): Deleted.
5173         (mule_char_to_ucs4): Deleted.
5174         (encode_ucs4): Deleted.
5175         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5176         (decode_coding_utf8): Likewise.
5177         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5178         (char_encode_iso2022): Fixed.
5179         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5180         `Fset_char_ucs' and `Fchar_ucs'.
5181         (complex_vars_of_file_coding): Don't initialize
5182         `ucs_to_mule_table'.
5183
5184         * objects-tty.c (tty_initialize_font_instance): Don't use
5185         `XCHARSET_COLUMNS'.
5186
5187         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5188         UTF-2000.
5189
5190         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5191         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5192
5193         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5194         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5195         (emchar_string_displayed_columns): Likewise.
5196
5197         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5198         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5199         (string_column_at_point): Likewise.
5200         (Fmove_to_column): Likewise.
5201
5202         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5203         `encoding_table' and `decoding_table'.
5204         (CHARSET_REP_BYTES): Deleted.
5205         (XCHARSET_REP_BYTES): Deleted.
5206         (XCHARSET_COLUMNS): Deleted.
5207         (CHAR_COLUMNS): New macro.
5208         (lookup_composite_char): Deleted unconditionally.
5209         (composite_char_string): Likewise.
5210
5211 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5212
5213         * char-ucs.h (Emchar_to_byte_table): New type.
5214         (get_byte_from_character_table): New function interface.
5215         (Vcharset_latin_jisx0201): New variable.
5216         (latin_jisx0201_to_ucs): New variable.
5217         (ucs_to_latin_jisx0201): New variable.
5218         (Vcharset_latin_iso8859_2): New variable.
5219         (latin_iso8859_2_to_ucs): New variable.
5220         (ucs_to_latin_iso8859_2): New variable.
5221         (Vcharset_latin_iso8859_3): New variable.
5222         (latin_iso8859_3_to_ucs): New variable.
5223         (ucs_to_latin_iso8859_3): New variable.
5224         (Vcharset_latin_iso8859_4): New variable.
5225         (latin_iso8859_4_to_ucs): New variable.
5226         (ucs_to_latin_iso8859_4): New variable.
5227         (Vcharset_latin_iso8859_9): New variable.
5228         (latin_iso8859_9_to_ucs): New variable.
5229         (ucs_to_latin_iso8859_9): New variable.
5230         (Vcharset_latin_viscii_lower): New variable.
5231         (latin_viscii_lower_to_ucs): New variable.
5232         (ucs_to_latin_viscii_lower): New variable.
5233         (Vcharset_latin_viscii_upper): New variable.
5234         (latin_viscii_upper_to_ucs): New variable.
5235         (ucs_to_latin_viscii_upper): New variable.
5236         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5237         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5238         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5239         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5240         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5241         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5242         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5243         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5244         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5245         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5246
5247         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5248         (Vcharset_latin_viscii_upper): New variable.
5249         (make_byte_from_character_table): New function.
5250         (put_byte_from_character_table): New function.
5251         (get_byte_from_character_table): New function.
5252         (CHAR96): New macro.
5253         (ucs_to_latin_jisx0201): New variable.
5254         (latin_jisx0201_to_ucs): New variable.
5255         (ucs_to_latin_iso8859_2): New variable.
5256         (latin_iso8859_2_to_ucs): New variable.
5257         (ucs_to_latin_iso8859_3): New variable.
5258         (latin_iso8859_3_to_ucs): New variable.
5259         (ucs_to_latin_iso8859_4): New variable.
5260         (latin_iso8859_4_to_ucs): New variable.
5261         (ucs_to_latin_iso8859_9): New variable.
5262         (latin_iso8859_9_to_ucs): New variable.
5263         (ucs_to_latin_viscii_lower): New variable.
5264         (latin_viscii_lower_to_ucs): New variable.
5265         (ucs_to_latin_viscii_upper): New variable.
5266         (latin_viscii_upper_to_ucs): New variable.
5267         (ucs_to_latin_tcvn5712): New variable.
5268         (latin_tcvn5712_to_ucs): New variable.
5269         (Qlatin_viscii_lower): New variable.
5270         (Qlatin_viscii_upper): New variable.
5271         (syms_of_mule_charset): Set up new symbol
5272         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5273         (complex_vars_of_mule_charset): Set up new charset
5274         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5275         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5276         `ucs_to_<CHARSET>' tables.
5277
5278 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5279
5280         * text-coding.c: New file.
5281
5282 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5283
5284         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5285
5286         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5287         (MAKE_CHAR): Modify for `ucs-bmp'.
5288         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5289         non-MULE characters of BMP.
5290
5291 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5292
5293         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5294         to 0.6.
5295
5296 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5297
5298         * lstream.h:
5299         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5300         - Include character.h for `CHAR_ASCII_P'.
5301
5302         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5303
5304         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5305         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5306
5307         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5308         (BYTE_C0_P): Likewise.
5309         (BYTE_C1_P): Likewise.
5310         (Lstream_get_emchar_1): Likewise.
5311         (Lstream_fput_emchar): Likewise.
5312         (Lstream_funget_emchar): Likewise.
5313         (copy_internal_to_external): Likewise.
5314         (copy_external_to_internal): Likewise.
5315
5316         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5317         (BYTE_C0_P): Likewise.
5318         (BYTE_C1_P): Likewise.
5319         (Lstream_get_emchar_1): Likewise.
5320         (Lstream_fput_emchar): Likewise.
5321         (Lstream_funget_emchar): Likewise.
5322         (copy_internal_to_external): Likewise.
5323         (copy_external_to_internal): Likewise.
5324
5325         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5326         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5327
5328         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5329         (BYTE_ASCII_P): Moved to mb-1byte.h.
5330
5331 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5332
5333         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5334
5335         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5336         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5337         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5338         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5339         (VALIDATE_CHARPTR_FORWARD): Likewise.
5340         (simple_charptr_emchar): Moved to mb-multibyte.h.
5341         (simple_set_charptr_emchar): Likewise.
5342         (simple_charptr_copy_char): Likewise.
5343         (non_ascii_charptr_emchar): Likewise.
5344         (non_ascii_set_charptr_emchar): Likewise.
5345         (non_ascii_charptr_copy_char): Likewise.
5346         (charptr_emchar): Moved to mb-*byte.h.
5347         (set_charptr_emchar): Likewise.
5348         (charptr_copy_char): Likewise.
5349
5350         * mb-1byte.h, mb-multibyte.h: New files.
5351
5352 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5353
5354         * mb-utf-8.h (MULTIBYTE): New macro.
5355         (MAX_EMCHAR_LEN): Moved from buffer.h.
5356         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5357
5358         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5359
5360         * mb-lb.h, multibyte.h: New files.
5361
5362         * char-1byte.h (Charset_ID): Moved from buffer.h.
5363         (MIN_LEADING_BYTE): Likewise.
5364         (LEADING_BYTE_ASCII): Likewise.
5365         (NUM_LEADING_BYTES): Likewise.
5366         (CHARSETP): Likewise.
5367         (CHARSET_BY_LEADING_BYTE): Likewise.
5368         (XCHARSET_LEADING_BYTE): Likewise.
5369         (XCHARSET_GRAPHIC): Likewise.
5370         (XCHARSET_COLUMNS): Likewise.
5371         (XCHARSET_DIMENSION): Likewise.
5372         (CHAR_CHARSET): Likewise.
5373         (CHAR_LEADING_BYTE): Likewise.
5374         (BREAKUP_CHAR): Likewise.
5375         (Vcharset_ascii): Likewise.
5376
5377         * buffer.h: Include multibyte.h unconditionally.
5378         (VALID_CHARPTR_P): Moved to multibyte.h.
5379         (ASSERT_VALID_CHARPTR): Likewise.
5380         (REAL_INC_CHARPTR): Likewise.
5381         (REAL_INC_CHARBYTIND): Likewise.
5382         (REAL_DEC_CHARPTR): Likewise.
5383         (INC_CHARPTR): Likewise.
5384         (INC_CHARBYTIND): Likewise.
5385         (DEC_CHARPTR): Likewise.
5386         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5387         (VALIDATE_CHARPTR_FORWARD): Likewise.
5388         (charptr_n_addr): Likewise.
5389         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5390         (simple_charptr_emchar): Moved to multibyte.h.
5391         (simple_set_charptr_emchar): Likewise.
5392         (simple_charptr_copy_char): Likewise.
5393         (non_ascii_charptr_emchar): Likewise.
5394         (non_ascii_set_charptr_emchar): Likewise.
5395         (non_ascii_charptr_copy_char): Likewise.
5396         (charptr_emchar): Likewise.
5397         (set_charptr_emchar): Likewise.
5398         (charptr_copy_char): Likewise.
5399         (charptr_emchar_n): Likewise.
5400         (Charset_ID): Moved to char-1byte.h.
5401         (Vcharset_ascii): Likewise.
5402         (CHAR_CHARSET): Likewise.
5403         (CHAR_LEADING_BYTE): Likewise.
5404         (LEADING_BYTE_ASCII): Likewise.
5405         (NUM_LEADING_BYTES): Likewise.
5406         (MIN_LEADING_BYTE): Likewise.
5407         (CHARSETP): Likewise.
5408         (CHARSET_BY_LEADING_BYTE): Likewise.
5409         (XCHARSET_LEADING_BYTE): Likewise.
5410         (XCHARSET_GRAPHIC): Likewise.
5411         (XCHARSET_COLUMNS): Likewise.
5412         (XCHARSET_DIMENSION): Likewise.
5413         (BREAKUP_CHAR): Likewise.
5414
5415 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5416
5417         * character.h: Add document about interface for characters.
5418
5419         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5420         (MAKE_CHAR): Delete comment about
5421         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5422         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5423         (BREAKUP_CHAR): Modify name of arguments.
5424         (CHAR_CHARSET): Modify name of argument.
5425
5426         * buffer.h: Delete document about Emchar accessors.
5427
5428 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5429
5430         * character.h (CHAR_INTP): Moved from buffer.h
5431         (CHAR_OR_CHAR_INTP): Likewise.
5432         (XCHAR_OR_CHAR_INT): Likewise.
5433         (CHECK_CHAR_COERCE_INT): Likewise.
5434
5435         * buffer.h (CHAR_INTP): Moved to character.h
5436         (CHAR_OR_CHAR_INTP): Likewise.
5437         (XCHAR_OR_CHAR_INT): Likewise.
5438         (CHECK_CHAR_COERCE_INT): Likewise.
5439
5440 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5441
5442         * character.h:
5443         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5444         - Include char-1byte.h, char-lb.h or char-ucs.h.
5445
5446         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5447
5448         * buffer.h: Include character unconditionally.
5449         (valid_char_p): Moved to char-*.h.
5450         (non_ascii_valid_char_p): Moved to char-lb.h.
5451
5452         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5453
5454 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5455
5456         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5457         in UTF-2000 because it is not ported yet and not to use
5458         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5459         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5460         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5461
5462         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5463         (CHAR_ASCII_P): Moved from character.h.
5464
5465         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5466         (CHAR_ASCII_P): Likewise.
5467         (CHAR_FIELD1_MASK): Deleted.
5468         (CHAR_FIELD2_MASK): Deleted.
5469         (CHAR_FIELD3_MASK): Deleted.
5470         (MAX_CHAR_BASIC_LATIN): New macro.
5471         (CHAR_FIELD1): Deleted.
5472         (CHAR_FIELD2_INTERNAL): Deleted.
5473         (CHAR_FIELD3_INTERNAL): Deleted.
5474         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5475         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5476         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5477         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5478         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5479         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5480         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5481         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5482         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5483         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5484         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5485         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5486         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5487         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5488         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5489         (MIN_CHAR_COMPOSITION): Deleted.
5490         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5491         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5492
5493 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5494
5495         * buffer.h: Include mb-utf-8.h in UTF-2000.
5496
5497         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5498
5499         * mb-utf-8.h: New file.
5500
5501 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5502
5503         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5504         instead of `int'.
5505
5506         * mule-charset.h, buffer.h (Charset_ID): New type.
5507
5508 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5509
5510         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5511         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5512         instead of `MULE_CHAR_PRIVATE_OFFSET',
5513         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5514         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5515         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5516
5517         * character.h (Vcharset_japanese_jisx0212): New variable
5518         definition.
5519
5520 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5521
5522         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5523         (charset_by_attributes): Delete array about direction.
5524         (latin_a_char_to_charset): New variable in UTF-2000.
5525         (latin_a_char_to_byte1): New variable in UTF-2000.
5526         (latin_a_char_to_byte2): New variable in UTF-2000.
5527         (Qucs_bmp): New variable.
5528         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5529         `Bufbyte'.
5530         (next_allocated_2_byte_leading_byte): Likewise.
5531         (non_ascii_set_charptr_emchar): Likewise.
5532         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5533         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5534         `charset_by_attributes'.
5535         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5536         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5537         and `CHARSET_BY_LEADING_BYTE'.
5538         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5539         `utf-2000-version' to `vars_of_mule_charset'.
5540         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5541         define `leading-code-private-11' in UTF-2000; move setting of
5542         `utf-2000-version' from `syms_of_mule_charset'.
5543         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5544         UTF-2000.
5545
5546         * character.h (Charset_ID): New type.
5547         (LEADING_BYTE_UCS_BMP): New macro.
5548         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5549         (CHARSET_ID_OFFSET_94): New macro.
5550         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5551         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5552         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5553         final-byte.
5554         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5555         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5556         (CHARSET_ID_OFFSET_96): New macro.
5557         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5558         CHARSET_ID_OFFSET_96 and final-byte.
5559         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5560         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5561         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5562         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5563         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5564         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5565         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5566         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5567         (LEADING_BYTE_THAI_TIS620): Likewise.
5568         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5569         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5570         (CHARSET_ID_OFFSET_94x94): New macro.
5571         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5572         CHARSET_ID_OFFSET_94x94 and final-byte.
5573         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5574         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5575         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5576         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5577         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5578         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5579         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5580         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5581         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5582         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5583         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5584         (CHARSET_TYPE_128X128): New macro.
5585         (CHARSET_TYPE_256X256): New macro.
5586         (XCHARSET_PRIVATE_P): Delete unconditionally.
5587         (charset_by_attributes): Delete array about direction.
5588         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5589         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5590         (MIN_CHAR_94): New macro.
5591         (MAX_CHAR_94): New macro.
5592         (MIN_CHAR_96): New macro.
5593         (MAX_CHAR_96): New macro.
5594         (MIN_CHAR_94x94): New macro.
5595         (MAX_CHAR_94x94): New macro.
5596         (MIN_CHAR_96x96): New macro.
5597         (MAX_CHAR_96x96): New macro.
5598         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5599         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5600         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5601         - 32)'.
5602         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5603         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5604         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5605         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5606         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5607         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5608         `XCHARSET_LEADING_BYTE' to make code-point.
5609         (latin_a_char_to_charset): New variable.
5610         (latin_a_char_to_byte1): New variable.
5611         (latin_a_char_to_byte2): New variable.
5612         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5613         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5614         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5615
5616         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5617         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5618         (find_charsets_in_emchar_string): Likewise.
5619         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5620
5621         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5622         `int'.
5623         (decode_coding_iso2022): Likewise.
5624
5625         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5626         of `unsigned char'.
5627
5628         * redisplay.c (redisplay_text_width_emchar_string): Use
5629         `Charset_ID' instead of `unsigned char'.
5630         (redisplay_frame_text_width_string): Likewise.
5631
5632         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5633         `unsigned char'.
5634
5635         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5636         instead of `unsigned char'.
5637         (face_cachel_charset_font_metric_info): Likewise.
5638
5639         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5640         (get_non_ascii_char_table_value): Likewise.
5641         (get_char_table): Likewise.
5642         (put_char_table): Likewise.
5643         (map_over_other_charset): Likewise.
5644         (map_char_table): Likewise.
5645
5646         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5647         instead of `unsigned char'.
5648
5649 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5650
5651         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5652         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5653
5654         * mule-charset.c (leading_code_private_11): Don't define in
5655         UTF-2000.
5656
5657         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5658         in UTF-2000 because it is not ported yet and not to use
5659         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5660
5661 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5662
5663         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5664
5665 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5666
5667         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5668         in UTF-2000.
5669
5670         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5671         of unsigned char to store leading-byte.
5672
5673         * chartab.c (get_non_ascii_char_table_value): Don't use
5674         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5675
5676         * file-coding.c (encode_coding_big5): Delete bogus implementation
5677         in UTF2000.
5678
5679         * character.h (LEADING_BYTE_*): Delete definition for
5680         non-UTF-2000.
5681         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5682         (LEADING_BYTE_PREFIX_P): Deleted.
5683         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5684         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5685         (BUFBYTE_LEADING_BYTE_P): Deleted.
5686         (CHARSET_PRIVATE_P): Deleted unconditionally.
5687         (rep_bytes_by_first_byte): Deleted unconditionally.
5688         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5689         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5690         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5691         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5692         (CHAR_FIELD2): Deleted.
5693         (CHAR_FIELD3): Deleted.
5694         (MAKE_CHAR): Delete definition for non-UTF-2000.
5695         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5696         (breakup_char_1): New implementation.
5697         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5698         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5699
5700 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5701
5702         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5703         condition.
5704
5705 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5706
5707         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5708         (CHARSET_PRIVATE_P): Likewise.
5709         (XCHARSET_PRIVATE_P): Likewise.
5710         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5711
5712         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5713         UTF2000.
5714         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5715
5716 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5717
5718         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5719         (NUM_LEADING_BYTES): Changed from 128 to 256.
5720         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5721         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5722         UTF2000.
5723         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5724
5725         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5726         UTF2000.
5727         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5728         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5729         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5730         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5731         (Qchinese_cns11643_3): New variable in UTF2000.
5732         (Qchinese_cns11643_4): New variable in UTF2000.
5733         (Qchinese_cns11643_5): New variable in UTF2000.
5734         (Qchinese_cns11643_6): New variable in UTF2000.
5735         (Qchinese_cns11643_7): New variable in UTF2000.
5736         (syms_of_mule_charset): Define `chinese-cns11643-3',
5737         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5738         and `chinese-cns11643-7' in UTF2000.
5739         (vars_of_mule_charset): Initialize
5740         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5741         + 1 in UTF2000.
5742         (complex_vars_of_mule_charset): Setup charset
5743         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5744         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5745
5746 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5747
5748         * mule-charset.c: Move setting for `leading-code-private-11' from
5749         `syms_of_mule_charset' to `vars_of_mule_charset'.
5750
5751 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5752
5753         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5754         and `NUM_LEADING_BYTES' in assert.
5755
5756 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5757
5758         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5759         instead of 128.
5760         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5761         `NUM_LEADING_BYTES' instead of 128.
5762
5763 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5764
5765         * mule-charset.h (charset_by_leading_byte): Use
5766         `NUM_LEADING_BYTES' instead of 128.
5767         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5768
5769         * mule-charset.c (charset_by_leading_byte): Use
5770         `NUM_LEADING_BYTES' instead of 128.
5771         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5772
5773         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5774         128.
5775
5776 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5777
5778         * mule-charset.c (syms_of_mule_charset): Update to
5779         0.4 (Shin-Imamiya).
5780
5781 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5782
5783         * file-coding.c (encode_coding_sjis): New implementation for
5784         UTF2000.  (decode_coding_sjis): Ditto.
5785
5786 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5787
5788         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5789         Don't define in UTF2000.
5790
5791         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5792         defined.
5793
5794         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5795         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5796         MULE.
5797
5798 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5799
5800         * config.h.in (CHAR_IS_UCS4): New macro.
5801
5802         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5803         conventional MULE representation.
5804         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5805
5806         * mule-charset.h: Reverted to original.
5807
5808         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5809         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5810         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5811
5812         * character.h: New file.
5813
5814         * file-coding.c (Fmake_coding_system): Set 1 to
5815         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5816         defined.
5817         (encode_coding_no_conversion): New implementation for UTF2000.
5818
5819         * file-coding.h (struct Lisp_Coding_System): Add new member
5820         `fixed.size'.
5821
5822 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5823
5824         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5825         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5826         (encode_coding_iso2022): New implementation for UTF2000.
5827
5828 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5829
5830         * mule-canna.c (c2mu): New implementation for UTF2000.
5831         (m2c): Likewise.
5832
5833 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5834
5835         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5836
5837 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5838
5839         * file-coding.c (reset_encoding_stream): Set 0 to
5840         `str->iso2022.current_char_boundary' in UTF2000.
5841         (encode_utf8): Don't define in UTF2000.
5842         (encode_coding_utf8): New implementation for UTF-8 representation
5843         of UTF2000.
5844         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5845
5846 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5847
5848         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5849
5850         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5851         UTF2000.
5852         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5853
5854         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5855
5856         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5857         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5858         as UTF-8 in UTF2000.
5859         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5860         (non_ascii_valid_char_p): Don't define in UTF2000.
5861         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5862         (Lstream_get_emchar_1): Likewise.
5863         (utf-2000-version): New variable in UTF2000.
5864
5865         * lread.c (read_escape): Add new reader `u'.
5866
5867         * insdel.c (three_to_one_table): Don't define in UTF2000.
5868         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5869         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5870         UTF2000.
5871         (bytind_to_bufpos_func): Likewise.
5872         (buffer_mule_signal_inserted_region): Likewise.
5873         (vars_of_insdel): Don't initialize `three_to_one_table'.
5874         (init_buffer_text): Use `buf->text->mule_size' instead of
5875         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5876         UTF2000.
5877
5878         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5879         UTF-8 representation in UTF2000.
5880         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5881         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5882         (decode_coding_iso2022): Don't define local variable `lb' in
5883         UTF2000; don't use LEADING_BYTE in UTF2000; use
5884         `DECODE_ADD_UCS_CHAR' in UTF2000.
5885         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5886
5887         * config.h.in (UTF2000): New macro.
5888
5889         * buffer.h (struct buffer_text): Add new member `mule_size' and
5890         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5891         (valid_char_p): Return always 1 in UTF2000.
5892         (MAX_EMCHAR_LEN): 6 in UTF2000.
5893         (three_to_one_table): Don't define in UTF2000.
5894         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5895         UTF2000.
5896         (real_bytind_to_bufpos): Likewise.
5897
5898         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5899
5900 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5901
5902         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5903         representation change.
5904         (Vutf_2000_version): New variable.
5905         (leading_code_private_11): New variable.
5906         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5907         `leading-code-private-11'.
5908
5909         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5910         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5911         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5912         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5913         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5914         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5915         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5916         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5917         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5918         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5919         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5920         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5921         (MIN_CHAR_GREEK): New macro.
5922         (MAX_CHAR_GREEK): New macro.
5923         (MIN_CHAR_CYRILLIC): New macro.
5924         (MAX_CHAR_CYRILLIC): New macro.
5925         (MIN_CHAR_HEBREW): New macro.
5926         (MAX_CHAR_HEBREW): New macro.
5927         (MIN_CHAR_THAI): New macro.
5928         (MAX_CHAR_THAI): New macro.
5929         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5930         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5931         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5932         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5933         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5934         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5935         (CHAR_FIELD2): New inline function.
5936         (CHAR_FIELD3): New inline function.
5937         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5938         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5939         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5940         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5941         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5942         (MIN_CHAR_COMPOSITION): Likewise.
5943         (CHAR_LEADING_BYTE): Modified for character representation change.
5944         (MAKE_CHAR): Likewise.
5945
5946         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5947         (Vcharset_greek_iso8859_7): Likewise.
5948         (Vcharset_cyrillic_iso8859_5): Likewise.
5949         (Vcharset_hebrew_iso8859_8): Likewise.
5950         (Vcharset_thai_tis620): Likewise.
5951         (Vcharset_katakana_jisx0201): Likewise.
5952
5953 2007-10-07  Vin Shelton  <acs@xemacs.org>
5954
5955         * XEmacs 21.4.21 is released
5956
5957 2007-08-14  Marcus Crestani  <crestani@xemacs.org>
5958
5959         * s/sol2.h: Fix for GCC lossage not needed with SunOS 5.10.
5960
5961 2007-02-17  Stephen J. Turnbull  <stephen@xemacs.org>
5962
5963         * glyphs-eimage.c (png_instantiate_unwind): Avoid recursion.
5964         (png_instantiate): Initialize setjmp_buffer early, and avoid
5965         recursive entry to error handler.
5966
5967 2007-06-23  Stephen J. Turnbull  <stephen@xemacs.org>
5968
5969         * linuxplay.c (linux_play_data_or_file): More 64-bit tweaking, and
5970         a typo fix.
5971
5972 2007-05-12  Aidan Kehoe  <kehoea@parhasard.net>
5973
5974         * event-Xt.c (x_reset_modifier_mapping):
5975         * event-gtk.c (gtk_reset_modifier_mapping):
5976         Zero out the device's modifier map once we've freed it, to prevent
5977         a double free on a re-entrant call. 
5978
5979 2007-05-17  Vin Shelton  <acs@xemacs.org>
5980
5981         * linuxplay.c (linux_play_data_or_file): Fix playing sound on
5982         64-bit linux.  Patch from Hans de Graaff.
5983
5984 2007-05-02  Vin Shelton  <acs@xemacs.org>
5985
5986         * dumper.c (pdump): Don't close pdump_fd (already closed by
5987         fclose() call.  Patch from Steve Higham.
5988         * callproc.c (Fold_call_process_internal): Don't close fd1 if it's
5989         already closed.  Patch inspired by Steve Higham.
5990
5991 2007-05-01  Vin Shelton  <acs@xemacs.org>
5992
5993         * nt.c (mswindows_stat): Tie _S_IEXEC permission to read access.
5994         (mswindows_fstat): Ditto.
5995         * sysfile.h: Under Windows, define X_OK to be the same as R_OK.
5996
5997 2007-02-08  Adrian Aichner  <adrian@xemacs.org>
5998
5999         * postgresql.c: Update Steve Baur's email address by his request.
6000         * postgresql.h: Ditto.
6001
6002 2007-01-04  Vin Shelton  <acs@xemacs.org>
6003
6004         * fileio.c (check_writable): Check old-style readonly bit only for
6005         non-directories.
6006
6007 2006-12-25  Benson I. Margulies  <benson@dchbk.us>
6008
6009         * src/fileio.c (check_writable): 
6010         Cope with the fact that the read-only attribute trumps Windows NTFS
6011         ACLS.
6012
6013
6014 2006-12-09  Vin Shelton  <acs@xemacs.org>
6015
6016         * XEmacs 21.4.20 is released
6017
6018 2006-12-08  Nelson Ferreira  <njsf@sxemacs.org>
6019
6020         * src/fns.c (XMALLOC_OR_ALLOCA,free_malloced_ptr,XMALLOC_UNBIND):
6021         relocated the definitions to be used sooner in file.
6022         (concat,plists_differ,mapcar1,Fmapconcat,Fmapcar): Use
6023         XMALLOC_OR_ALLOCA macro instead of alloca to prevent stack
6024         overflow.
6025
6026 2006-11-29  Aidan Kehoe  <kehoea@parhasard.net>
6027
6028         * sound.c (init_native_sound):
6029         Only X11 and GTK devices can possibly not be on the console of the
6030         associated machine. Fixes a crash when init_native_sound is called
6031         on a msprinter device. 
6032
6033 2006-11-14  Stephen J. Turnbull  <stephen@xemacs.org>
6034
6035         * buffer.c (buffer-file-name): Document invariant.
6036         (buffer-file-truename): Sync wording to buffer-file-name.
6037         Thanks to Nelson Ferreira <nelson.ferreira@ieee.org> for report
6038         and discussion.
6039
6040 2006-11-19  Benson Margulies  <benson@dchbk.us>
6041
6042         * fileio.c: Add code to use full Win32 API to check for write
6043         access.  Win32 has the general design policy that you aren't
6044         supposed to ask this question, since security checks change
6045         depending on asynchronous processes.  Nonetheless, there is a way,
6046         by acting as if we are a server doing interpretive access
6047         control.
6048
6049 2006-07-31  Aidan Kehoe <kehoea@parhasard.net>
6050
6051         * bytecode.c: Use xnew_array instead of alloca.
6052
6053 2006-07-04  Vin Shelton  <acs@xemacs.org>
6054
6055         * redisplay-msw.c: Fix tiny, but crucial typo.
6056
6057 2006-06-22  Jerry James  <james@xemacs.org>
6058
6059         * EmacsShell-sub.c (ChangeManaged):
6060         * device-x.c (x_IO_error_handler): Do not dereference d if it is
6061         NULL.
6062         * dgif_lib.c (DGifCloseFile): Do not dereference GifFile before
6063         checking if it is NULL.  Also fix a memory leak.
6064         * dialog-x.c (dbox_selection_callback): Ensure f is non-NULL, then
6065         dereference it, not the other way around.
6066         * dumper.c (pdump_register_object): Fix off-by-one array bounds
6067         overflow check.
6068         * dumper.c (pdump_register_struct): Ditto.
6069         * editfns.c (Ftemp_directory): Don't let a copy from (long) path
6070         to (short) warnpath overflow warnpath.
6071         * extents.c (detach_all_extents): Call extent_list_delete_all with
6072         a non-NULL parameter only.
6073         * glyphs-widget.c (widget_query_geometry): Guard against possibly
6074         NULL width and height.
6075         * input-method-xlib.c (XIM_SetGeometry): Do not dereference f or
6076         xic before checking if they are NULL.
6077         * keymap.c (where_is_recursive_mapper): Don't throw away the newly
6078         allocated array.
6079         * md5.c (Fmd5): Check whether Lstream_read encountered an error.
6080         * nas.c (Err): Fix a memory leak.
6081         * redisplay-gtk.c (gtk_output_display_block): Fix a Dynarr leak.
6082         Don't create the buffer if there is nothing to do.
6083         * redisplay-msw.c (mswindows_output_display_block): Ditto.
6084         * redisplay-output.c (redisplay_output_layout): Ditto.
6085         * redisplay-tty.c (tty_output_display_block): Ditto.
6086         * redisplay-x.c (x_output_display_block): Ditto.
6087         * scrollbar-gtk.c (gtk_free_scrollbar_instance): Do not
6088         dereference instance->scrollbar_data if it is NULL.
6089         * scrollbar-x.c (x_free_scrollbar_instance): Ditto.
6090         * scrollbar-msw.c (mswindows_free_scrollbar_instance): Ditto, but
6091         for sb->scrollbar_data.
6092         * sound.c (init_native_sound): Avoid a buffer overflow by
6093         allocating a buffer with the appropriate size.
6094
6095 2006-05-08  Stephen J. Turnbull  <stephen@xemacs.org>
6096
6097         * EmacsShell-sub.c (RootGeometryManager):
6098         Change garbage to useful messages under DEBUG_GEOMETRY_MANAGEMENT.
6099         Based on a suggestion by Francois L'Archeveque.
6100
6101 2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
6102
6103         * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
6104         current values found in GNU Emacs.
6105
6106 2006-03-17  Vin Shelton  <acs@xemacs.org>
6107
6108         * dialog-msw.c (handle_directory_dialog_box): Don't declare
6109         Q_title here.  LOCAL_FILE_FORMAT_TO_TSTR requires an lvalue.
6110
6111         * glyphs-msw.c (read_bitmap_data): change 'initialized' to
6112         'hex_initialized' because it conflicts with 'initialized' in
6113         lisp.h.
6114
6115 2006-01-28  Vin Shelton  <acs@xemacs.org>
6116
6117         * XEmacs 21.4.19 is released
6118
6119 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
6120
6121         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
6122
6123 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
6124
6125         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
6126         5000 to INT_MAX.
6127
6128 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6129
6130         * database.c: Suppress compiler warning under Cygwin.
6131         * database.c: Removed __FreeBSD__ check, should be handled by
6132         HAVE_U_xxx_T defines.
6133
6134 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
6135
6136         * console.c (stuff_buffered_input): Compile body only if
6137         HAVE_TTY.
6138
6139 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
6140
6141         * callproc.c: #include sysdir.h, so that any appropriate Mule
6142         magic happens with the chdir() call when calling a subprocess. 
6143
6144 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
6145
6146         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
6147         * mule-ccl.c: Check that a character set exists before using it
6148         to create a character. 
6149
6150 2005-12-06  Vin Shelton  <acs@xemacs.org>
6151
6152         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
6153         to INT_MAX.
6154
6155 2005-12-03  Vin Shelton <acs@xemacs.org>
6156
6157         * XEmacs 21.4.18 is released
6158
6159 2005-11-27  Kean Johnston <kean@armory.com>
6160
6161         * redisplay-tty.c (set_tty_modes):
6162         (reset_tty_modes): disable auto-margins if the terminal supports
6163         them.
6164         (init_tty_for_redisplay): fix cursor shape.
6165
6166 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
6167
6168         * mule-ccl.c (ccl_driver): Calculate the charset and position code
6169         for control-1 characters properly, both when reading multibyte
6170         characters and writing them. 
6171
6172 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
6173
6174         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
6175         * select-x.c (x_reply_selection_request): Use it; fix the bug we
6176         were seeing with incremental selection transfer failing. 
6177
6178 2005-11-26  Vin Shelton  <acs@xemacs.org>
6179
6180         * callproc.c (Fold_call_process_internal): Create the buffer if it
6181         does not already exist.  The original patch came from Ben Wing in
6182         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
6183
6184 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
6185
6186         * callproc.c: Process-related docstring improvements spurred by
6187         Norbert Koch.
6188
6189 2005-11-25  Vin Shelton  <acs@xemacs.org>
6190
6191         * depend: Regenerated.
6192
6193 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
6194
6195         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
6196         says it clashes with a global with the same name.
6197
6198 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
6199
6200         * sysdll.c (dll_open): Under MacOS X return NULL under the
6201         filename is NULL.  Fixes problems finding local symbols under 10.4
6202         (Tiger)
6203
6204 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6205         
6206         * config.h.in: New HAVE_U_INT*_T defines.
6207         
6208         * database.c: Only use u_int*_t typedefs if not already
6209         defined.
6210
6211 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
6212
6213         * src/process-unix.c (unix_open_network_stream): moved
6214           'portbuf' buffer out of an inner block as it is used in the
6215           entire function. With gcc4, the stack may get corrupted
6216           after leaving this block. This patches adjusts the size of
6217           the used buffer also; static '128' bytes are far too much
6218           currently and might not suffice for future architectures
6219           (e.g. for 512 bit ones ;)). Instead of, use only the really
6220           required space (max octets * ln(256)/ln(10) chars + space
6221           for '\0' and the sign)
6222
6223 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
6224
6225         * callproc.c: Include sysdir.h, so any necessary Mule processing
6226         is done on the current directory name before starting a new
6227         process.
6228
6229 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
6230
6231         * chartab.c (Fchar_table_p):
6232         (Fget_range_char_table):
6233         (Fput_char_table):
6234         (Fmap_char_table):
6235         Describe range representation and fix typo.
6236
6237 2005-02-12  Vin Shelton  <acs@xemacs.org>
6238
6239         * emacs.c (shut_down_emacs): Advise users to send email to the
6240         xemacs-beta list instead of crashes@xemacs.org.
6241
6242 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6243
6244         * process-unix.c (unix_send_process): Flush the last chunk, even
6245         when the pipe is blocked.
6246
6247 2005-02-06  Vin Shelton <acs@xemacs.org>
6248
6249         * XEmacs 21.4.17 is released
6250
6251 2005-01-31  Ben Wing  <ben@xemacs.org>
6252
6253         * emacs.c:
6254         Define assert_failed() always.
6255         * lisp.h:
6256         Always define ABORT().
6257
6258 2005-01-25  Ben Wing  <ben@xemacs.org>
6259
6260         * Makefile.in.in:
6261         * Makefile.in.in (%.o):
6262         Don't compile executable as Windows (-mwindows) under Cygwin.
6263         Semi-recent changes to Cygwin's executable-startup handling make
6264         it impossible to access the TTY this way.
6265
6266         Don't use special linker file under Cygwin (cygwin.sc) except
6267         when non-PDUMP (even in this case it is highly questionable); you
6268         get errors like
6269
6270       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6271    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6272
6273 2005-01-29  Ben Wing  <ben@xemacs.org>
6274
6275         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6276
6277         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6278
6279 2005-01-29  Ben Wing  <ben@xemacs.org>
6280
6281         * bytecode.c (optimize_compiled_function):
6282         * print.c (FROB):
6283         * print.c (long_to_string):
6284         Add casts to avoid warning.
6285         
6286         * glyphs-eimage.c:
6287         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6288         #### The better solution is to move the TIFF and JPEG code to
6289         different files.
6290         
6291         * glyphs-msw.c (mswindows_xbm_instantiate):
6292         Define __STDC__ to avoid problems with compface.h.
6293         
6294         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6295         * EmacsShell-sub.c:
6296         * EmacsShell-sub.c (ABORT):
6297         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6298         * EmacsShell-sub.c (RootGeometryManager):
6299         * EmacsShell.c:
6300         * EmacsShell.c (ABORT):
6301         * EmacsShell.c (EmacsShellUpdateSizeHints):
6302         * alloc.c (free_lcrecord):
6303         * alloca.c (i00afunc):
6304         * buffer.c (delete_from_buffer_alist):
6305         * buffer.c (MARKED_SLOT):
6306         * bytecode.c (execute_rare_opcode):
6307         * bytecode.c (optimize_byte_code):
6308         * bytecode.c (Ffetch_bytecode):
6309         * chartab.c (char_table_type_to_symbol):
6310         * chartab.c (Freset_char_table):
6311         * chartab.c (decode_char_table_range):
6312         * chartab.c (Fget_range_char_table):
6313         * chartab.c (check_valid_char_table_value):
6314         * chartab.c (map_char_table):
6315         * chartab.c (slow_map_char_table_fun):
6316         * chartab.c (chartab_instantiate):
6317         * cm.c (cmcheckmagic):
6318         * console-msw.c (DHEADER):
6319         * console.c (MARKED_SLOT):
6320         * data.c (finish_marking_weak_lists):
6321         * data.c (encode_weak_list_type):
6322         * debug.h (DASSERT):
6323         * device-gtk.c (gtk_init_device):
6324         * device-msw.c (mswindows_get_default_margin):
6325         * device-tty.c (tty_init_device):
6326         * device-x.c (get_device_from_display):
6327         * device-x.c (x_get_visual_depth):
6328         * doprnt.c (parse_doprnt_spec):
6329         * doprnt.c (get_doprnt_args):
6330         * dumper.c (pdump_get_indirect_count):
6331         * dumper.c (pdump_register_sub):
6332         * dumper.c (pdump_register_object):
6333         * dumper.c (pdump_register_struct):
6334         * dumper.c (pdump_dump_data):
6335         * dumper.c (pdump_reloc_one):
6336         * elhash.c (print_hash_table):
6337         * elhash.c (make_standard_lisp_hash_table):
6338         * elhash.c (hash_table_instantiate):
6339         * emacs.c:
6340         * emacs.c (Fforce_debugging_signal):
6341         * emacs.c (sort_args):
6342         * emacs.c (main):
6343         * emacs.c (assert_failed):
6344         * eval.c (throw_or_bomb_out):
6345         * eval.c (signal_1):
6346         * eval.c (Fsignal):
6347         * event-Xt.c:
6348         * event-Xt.c (emacs_Xt_mapping_action):
6349         * event-Xt.c (Xt_process_to_emacs_event):
6350         * event-msw.c:
6351         * event-stream.c (check_event_stream_ok):
6352         * event-stream.c (Fadd_timeout):
6353         * event-stream.c (Fadd_async_timeout):
6354         * event-stream.c (Fdiscard_input):
6355         * event-stream.c (execute_internal_event):
6356         * event-stream.c (Frecent_keys):
6357         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6358         * event-stream.c (lookup_command_event):
6359         * event-unixoid.c (poll_fds_for_input):
6360         * events.c:
6361         * events.c (mark_event):
6362         * events.c (event_equal):
6363         * events.c (event_hash):
6364         * events.c (Fmake_event):
6365         * events.c (Fdeallocate_event):
6366         * events.c (event_chain_find_previous):
6367         * events.c (event_to_character):
6368         * events.c (format_event_object):
6369         * events.c (Fevent_type):
6370         * events.c (event_pixel_translation):
6371         * events.c (Fevent_properties):
6372         * extents.c (extent_in_region_p):
6373         * extents.c (print_extent):
6374         * extents.c (process_extents_for_insertion_mapper):
6375         * extents.c (report_extent_modification_mapper):
6376         * extents.c (glyph_layout_to_symbol):
6377         * faces.c (face_validate):
6378         * file-coding.c (eol_type_to_symbol):
6379         * file-coding.c (subsidiary_coding_system):
6380         * file-coding.c (Fcoding_system_type):
6381         * file-coding.c (Fcoding_system_property):
6382         * file-coding.c (mule_decode):
6383         * file-coding.c (mule_encode):
6384         * file-coding.c (encode_coding_ucs4):
6385         * file-coding.c (encode_coding_utf8):
6386         * file-coding.c (parse_iso2022_esc):
6387         * file-coding.c (encode_coding_iso2022):
6388         * fileio.c:
6389         * fns.c (concat):
6390         * fns.c (Fsubseq):
6391         * fns.c (mapcar1):
6392         * fns.c (Fbase64_encode_region):
6393         * fns.c (Fbase64_encode_string):
6394         * fns.c (Fbase64_decode_region):
6395         * fns.c (Fbase64_decode_string):
6396         * font-lock.c (find_context):
6397         * font-lock.c (context_to_symbol):
6398         * frame-gtk.c (gtk_set_frame_pointer):
6399         * frame-gtk.c (gtk_update_frame_external_traits):
6400         * frame-x.c (x_wm_mark_shell_size_user_specified):
6401         * frame-x.c (x_wm_mark_shell_position_user_specified):
6402         * frame-x.c (x_wm_set_shell_iconic_p):
6403         * frame-x.c (x_wm_set_cell_size):
6404         * frame-x.c (x_wm_set_variable_size):
6405         * frame-x.c (x_wm_store_class_hints):
6406         * frame-x.c (x_wm_maybe_store_wm_command):
6407         * frame-x.c (x_initialize_frame_size):
6408         * frame-x.c (x_update_frame_external_traits):
6409         * frame.c:
6410         * frame.c (delete_frame_internal):
6411         * frame.c (mouse_pixel_position_1):
6412         * frame.c (change_frame_size_1):
6413         * free-hook.c (check_free):
6414         * free-hook.c (check_realloc):
6415         * free-hook.c (note_block_input):
6416         * free-hook.c (log_gcpro):
6417         * gccache-gtk.c (gc_cache_lookup):
6418         * glyphs-eimage.c (tiff_memory_write):
6419         * glyphs-gtk.c (gtk_finalize_image_instance):
6420         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6421         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6422         * glyphs-gtk.c (gtk_xpm_instantiate):
6423         * glyphs-gtk.c (gtk_unmap_subwindow):
6424         * glyphs-gtk.c (gtk_map_subwindow):
6425         * glyphs-gtk.c (gtk_button_redisplay):
6426         * glyphs-msw.c:
6427         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6428         * glyphs-x.c (init_image_instance_from_xbm_inline):
6429         * glyphs-x.c (extract_xpm_color_names):
6430         * glyphs-x.c (x_xpm_instantiate):
6431         * glyphs.c (get_image_instantiator_governing_domain):
6432         * glyphs.c (print_image_instance):
6433         * glyphs.c (image_instance_equal):
6434         * glyphs.c (image_instance_hash):
6435         * glyphs.c (encode_image_instance_type):
6436         * glyphs.c (make_image_instance_1):
6437         * glyphs.c (inherit_instantiate):
6438         * glyphs.c (image_instantiate):
6439         * glyphs.c (allocate_glyph):
6440         * glyphs.c (Fglyph_type):
6441         * glyphs.c (redisplay_subwindow):
6442         * glyphs.c (display_table_entry):
6443         * gtk-glue.c (xemacs_list_to_gtklist):
6444         * gtk-glue.c (xemacs_gtklist_to_list):
6445         * gtk-glue.c (xemacs_list_to_array):
6446         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6447         * gutter.c (gutter_was_visible):
6448         * gutter.c (get_gutter_coords):
6449         * input-method-xlib.c (get_XIM_input):
6450         * insdel.c (bufpos_to_bytind_func):
6451         * insdel.c (bytind_to_bufpos_func):
6452         * insdel.c (move_gap):
6453         * intl.c (x_get_composed_input):
6454         * keymap.c (keymap_lookup_directly):
6455         * keymap.c (keymap_delete_inverse_internal):
6456         * keymap.c (ensure_meta_prefix_char_keymapp):
6457         * keymap.c (accessible_keymaps_mapper_1):
6458         * keymap.c (where_is_recursive_mapper):
6459         * lisp.h:
6460         * lisp.h (ABORT):
6461         * lread.c (read_atom):
6462         * lstream.c (Lstream_delete):
6463         * lstream.c (make_lisp_buffer_stream_1):
6464         * macros.c (pop_kbd_macro_event):
6465         * malloc.c (malloc):
6466         * malloc.c (free):
6467         * marker.c (bi_marker_position):
6468         * marker.c (set_bi_marker_position):
6469         * menubar-gtk.c (menu_descriptor_to_widget_1):
6470         * menubar-msw.c (prune_menubar):
6471         * menubar-x.c (set_frame_menubar):
6472         * mule-charset.c (get_unallocated_leading_byte):
6473         * mule-charset.h (CHAR_LEADING_BYTE):
6474         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6475         * nt.c (init_environment):
6476         * nt.c (generate_inode_val):
6477         * ntproc.c (delete_child):
6478         * ntproc.c (_sys_read_ahead):
6479         * ntproc.c (create_child):
6480         * objects.c (color_instantiate):
6481         * objects.c (font_instantiate):
6482         * objects.c (face_boolean_instantiate):
6483         * print.c (printing_major_badness):
6484         * process-nt.c (nt_send_process):
6485         * process-unix.c (unix_send_process):
6486         * process.c (get_process):
6487         * ralloc.c (obtain):
6488         * ralloc.c (relinquish):
6489         * ralloc.c (relocate_blocs):
6490         * ralloc.c (resize_bloc):
6491         * ralloc.c (r_alloc_free):
6492         * ralloc.c (r_re_alloc):
6493         * ralloc.c (r_alloc_thaw):
6494         * ralloc.c (init_ralloc):
6495         * ralloc.c (Free_Addr_Block):
6496         * ralloc.c (r_alloc):
6497         * redisplay-gtk.c (gtk_output_display_block):
6498         * redisplay-msw.c (mswindows_output_display_block):
6499         * redisplay-output.c (get_next_display_block):
6500         * redisplay-output.c (get_cursor_size_and_location):
6501         * redisplay-output.c (redisplay_output_layout):
6502         * redisplay-output.c (redisplay_clear_region):
6503         * redisplay-tty.c (tty_output_display_block):
6504         * redisplay-x.c (x_output_display_block):
6505         * redisplay.c (add_propagation_runes):
6506         * redisplay.c (add_glyph_rune):
6507         * redisplay.c (create_text_block):
6508         * redisplay.c (add_margin_runes):
6509         * redisplay.c (create_left_glyph_block):
6510         * redisplay.c (create_right_glyph_block):
6511         * redisplay.c (create_string_text_block):
6512         * redisplay.c (regenerate_window):
6513         * redisplay.c (REGEN_INC_FIND_START_END):
6514         * redisplay.c (redisplay_frame):
6515         * redisplay.c (point_in_line_start_cache):
6516         * regex.c:
6517         * regex.c (ABORT):
6518         * regex.c (re_compile_fastmap):
6519         * regex.c (re_match_2_internal):
6520         * regex.c (regerror):
6521         * scrollbar-gtk.c (gtk_scrollbar_loop):
6522         * scrollbar-gtk.c (scrollbar_cb):
6523         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6524         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6525         * scrollbar-x.c (x_update_scrollbar_instance_status):
6526         * scrollbar-x.c (x_scrollbar_loop):
6527         * scrollbar-x.c (x_update_frame_scrollbars):
6528         * search.c (search_command):
6529         * search.c (Fmatch_data):
6530         * select-x.c (motif_clipboard_cb):
6531         * signal.c (interrupt_signal):
6532         * specifier.c (specifier_add_spec):
6533         * specifier.c (specifier_instance_from_inst_list):
6534         * specifier.c (specifier_instance):
6535         * specifier.h:
6536         * specifier.h (struct specifier_methods):
6537         * strftime.c (add_num_time_t):
6538         * sunplay.c (init_device):
6539         * symbols.c (Fsetplist):
6540         * symbols.c (do_symval_forwarding):
6541         * symbols.c (store_symval_forwarding):
6542         * symbols.c (Fset):
6543         * symbols.c (Fbuilt_in_variable_type):
6544         * symbols.c (decode_magic_handler_type):
6545         * symbols.c (handler_type_from_function_symbol):
6546         * syntax.c (update_syntax_cache):
6547         * sysdep.c (init_baud_rate):
6548         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6549         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6550         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6551         * toolbar.c (get_toolbar_coords):
6552         * ui-gtk.c (build_gtk_boxed):
6553         * ui-gtk.c (describe_gtk_arg):
6554         * ui-gtk.c (gtk_type_to_lisp):
6555         * ui-gtk.c (lisp_to_gtk_type):
6556         * ui-gtk.c (lisp_to_gtk_ret_type):
6557         * ui-gtk.c (lisp_to_flag):
6558         * unexnt.c (read_in_bss):
6559         * unexnt.c (map_in_heap):
6560         * window.c (real_window):
6561         * window.c (window_display_lines):
6562         * window.c (window_display_buffer):
6563         * window.c (set_window_display_buffer):
6564         * window.c (window_modeline_height):
6565         * window.c (unshow_buffer):
6566         * window.c (window_loop):
6567         * window.c (Fget_lru_window):
6568         * window.c (Fsplit_window):
6569         * window.c (Fset_window_configuration):
6570         * window.c (saved_window_index):
6571         * xgccache.c (gc_cache_lookup):
6572         abort() -> ABORT().  Eliminate preprocessor games with abort()
6573         since it creates huge problems in VC7, solvable only by including
6574         massive amounts of files in every compile (and not worth it).
6575
6576         * sysdep.c:
6577         * sysproc.h:
6578         Inclusion of process.h does not need to be before lisp.h any more.
6579         Move later and remove comment about abort().
6580
6581 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6582
6583         * regex.c (re_match_2_internal):
6584         Correctly initialize loop which clears uninitialized registers.
6585
6586 2005-01-28  Vin Shelton  <acs@xemacs.org>
6587
6588         * sheap.c (more_static_core): Applied Ben's version of the long
6589         string patch.
6590
6591 2005-01-24  Vin Shelton  <acs@xemacs.org>
6592
6593         * sheap.c (more_static_core): Reformatted printf string so
6594         gcc-3.3.3 will compile this on Cygwin.
6595
6596 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6597
6598         * console.c (function_key_map): Reference `key-binding'.
6599
6600         * keymap.c (Vkey_translation_map): Improve docstring.
6601
6602 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6603
6604         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6605         * window.c (window_loop): [fix] Take into account
6606         `allow-deletion-of-last-visible-frame' variable.
6607         * window.c (replace-buffer-in-windows): Ditto.
6608
6609 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6610
6611         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6612
6613 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6614
6615         * event-gtk.c: Recognise AltGr as a valid modifier.
6616
6617 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6618
6619         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6620
6621 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6622
6623         Fix backreference bug caught by test suite.
6624
6625         * regex.c (regex_compile):
6626         Make backref duplicate internal register.
6627
6628 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6629
6630         Documentation, code clarification, and warning suppression.
6631         
6632         * regex.c (regex_compile):
6633         Improve comments.
6634         (re_match_2_internal):
6635         Improve comments and avoid redundant braces.  [Most of the big hunk
6636         at l. 4710 is indentation; use diff -w to see the real changes.]
6637         (alt_match_null_string_p):
6638         (common_op_match_null_string_p):
6639         Avoid shadowing global on Mac OS X 10.4, at least.
6640
6641 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6642
6643         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6644         introduced with shy groups fix).  [Already applied, probably
6645         with the second "fix shy groups" patch of 2004-10-07.] 
6646
6647 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6648
6649         From Andrey Slusar <anrays@gmail.com>:
6650
6651         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6652
6653 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6654
6655         * Makefile (RECURSIVE_MAKE): Removed.
6656         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6657         handling parallel builds.
6658
6659 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6660
6661         * Makefile.in.in: Enable support for parallel builds.
6662
6663 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6664
6665         From Andrey Slusar <anrays@gmail.com>:
6666
6667         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6668         FreeBSD version is >= 199701 _and_ < 600006.
6669
6670 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6671
6672         * scrollbar.c (compute_scrollbar_instance_usage):
6673         Only call device method compute_scrollbar_instance_usage() if it
6674         is defined.
6675
6676 2004-12-05  Vin Shelton <acs@xemacs.org>
6677
6678         * XEmacs 21.4.16 is released
6679
6680 2004-12-04  Vin Shelton  <acs@xemacs.org>
6681
6682         * depend: Regenerated.
6683
6684 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6685
6686         * regex.c (re_match_2_internal): Map internal to external
6687         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6688         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6689
6690 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6691
6692         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6693         to fix a crash.  Also, check the buffer is live and it
6694         really exists in buffer_list.  If the buffer is not in the list,
6695         prepend it.
6696
6697 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6698
6699         Fix shy groups by implementing recording of all groups for
6700         repetition and backtracking.  Backport from 21.5.
6701         
6702         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6703         external_to_internal_register, external_to_internal_register_size,
6704         and update comments for re_nsub.
6705
6706         * regex.c (re_opcode_t): Update comments.
6707         (print_compiled_pattern): Ouput external_to_internal_register,
6708         external_to_internal_register_size, and re_ngroups for debugging.
6709         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6710         (regex_compile): Update header comment.
6711         Ensure that all groups are recorded so that repeat matches and
6712         backtracking work correctly.  Comment related warning for groups >
6713         255.
6714         (re_search_2): Construct map of API indexes (which count only
6715         nonshy groups) to internal register numbers, and keep it updated.
6716
6717 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6718
6719         * frame-gtk.c (gtk_make_frame_visible):
6720         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6721         show/hide.  This is what X uses and is prevents previously hidden
6722         widgets from suddenly reappearing.
6723         * gtk-xemacs.c (gtk_xemacs_paint):
6724         * gtk-xemacs.c (gtk_xemacs_draw):
6725         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6726         drawable.
6727         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6728         size and location changes so that they can be seen before the next
6729         idle event.  Without this rapid changes to scrollbar properties
6730         are not seen.
6731
6732 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6733
6734         * console-gtk.h:
6735         * console-gtk.h (struct gtk_frame):
6736         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6737           Add hash tables track tab_control callback data.
6738           Added #defines for GTK object data names.
6739           Declaration of gtk_widget_to_frame().
6740         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6741         * frame-gtk.c (gtk_widget_to_frame): New.
6742         * frame-gtk.c (gtk_create_widgets):
6743         * frame-gtk.c (allocate_gtk_frame_struct):
6744         * frame-gtk.c (gtk_mark_frame):
6745         Manage frame callbakc hash tables.
6746         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6747         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6748         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6749         of widget size.
6750         * glyphs-gtk.c (gtk_widget_query_geometry): New
6751         * glyphs-gtk.c (gtk_register_gui_item): New
6752         * glyphs-gtk.c (gtk_add_tab_item): New
6753         * glyphs-gtk.c (gtk_tab_control_callback): New
6754         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6755         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6756         Use correct list when loading item.
6757         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6758         Register new methods.
6759         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6760         default size, for widgets.
6761         * gui-x.c:  Improved comment.
6762         * menubar-gtk.c (__generic_button_callback): Use
6763         gtk_widget_to_frame instead of __get_channel.
6764         * scrollbar-gtk.c:
6765         * ui-gtk.c: Use symbolic names for GTK object data.
6766
6767 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6768
6769         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6770
6771 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6772
6773         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6774
6775 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6776
6777         * malloc.c (morecore): siz is a long because in some architectures
6778         (eg ia-64) an int cannot hold the address range.  Additional patch
6779         from the SuSe distribution.
6780
6781 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6782
6783         * emacs.c:
6784         * malloc.c: lim_data is a long because in some architectures
6785         (eg ia-64) an int cannot hold the address range.
6786         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6787         instead of ulimit() because ulimit() always returns -1.
6788
6789 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6790
6791         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6792
6793 2004-06-11  David Kastrup  <dak@gnu.org>
6794
6795         * search.c (match_limit): Don't flag an error if match-data
6796         exceeding the allocated search_regs.num_regs gets requested, just
6797         return Qnil.
6798
6799 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6800
6801         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6802         replace symbolic color entries with the real colors specified in
6803         xpm-color-symbols, before passing the XPM to gtk.
6804         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6805         instead of a GTK specific field, so that it is used in by generic
6806         code.
6807
6808 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6809
6810        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6811         coredump from deref of NULL ptr (ExtData)
6812
6813 2004-04-19  Jerry James  <james@xemacs.org>
6814
6815         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6816         VALBITS to compute the location of the sign bit.
6817         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6818         of VALBITS with EMACS_INT_MAX.
6819         * events.c (Fevent_timestamp): Ditto.
6820         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6821         compute the halfway point to timestamp wraparound.
6822         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6823         EMACS_INT_MIN instead of using VALBITS.
6824         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6825         incorrect number with VALBITS.
6826         * fns.c (Frandom): Correct number of integer bits in docstring.
6827         Use INT_VALBITS instead of VALBITS to compute the denominator.
6828         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6829         build random numbers.
6830
6831 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6832         * event-gtk.c:
6833         * event-gtk.c (gtk_event_to_emacs_event):
6834         * menubar-gtk.c:
6835         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6836         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6837         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6838         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6839         * menubar-gtk.c (__activate_menu):
6840         * menubar-gtk.c (convert_underscores):
6841         * menubar-gtk.c (remove_underscores):
6842         * menubar-gtk.c (menu_convert):
6843         * menubar-gtk.c (menu_descriptor_to_widget_1):
6844         * menubar-gtk.c (menu_descriptor_to_widget):
6845         * menubar-gtk.c (menu_can_reuse_widget):
6846         * menubar-gtk.c (menu_create_menubar):
6847         * menubar-gtk.c (gtk_popup_menu):
6848         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6849         Added support for Gtk menu bar and menu item mnemonics.
6850
6851 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6852
6853         * sysdll.c: (dll_function): Added support for finding symbols in
6854         Darwin shared libraries as well in Darwin bundles.
6855         * sysdll.c (image_for_address): New
6856         * sysdll.c (my_find_image): New
6857         * sysdll.c (search_linked_libs): New
6858
6859 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6860
6861         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6862         return to GTK requires a different API to marshalling data to use
6863         as GTK parameters.
6864         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6865
6866 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6867
6868         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6869
6870 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6871
6872         * glyphs.c (process_image_string_instantiator):
6873         (Fset_console_type_image_conversion_list):
6874         Stop GCC from warning about shadowing of `exp'.
6875
6876         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6877
6878 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6879
6880         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6881
6882 2004-02-03  Vin Shelton  <acs@xemacs.org>
6883
6884         * glyphs.c (image_instance_layout): Remove pointless assertion.
6885         * regex.c (regex_grow_registers): Return type is void.
6886
6887 2004-02-02  Vin Shelton <acs@xemacs.org>
6888
6889         * XEmacs 21.4.15 is released
6890
6891 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6892
6893         * device-x.c (x_error_handler): Don't call stderr_out
6894
6895 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6896
6897         * buffer.c (other-buffer): Clarify documentation of order of
6898         arguments for FSF Emacs.
6899
6900 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6901
6902         * window.c (Fdelete_window): Dirty the mirror structure _before_
6903         marking the window deleted.
6904
6905 2003-09-15  Jerry James  <james@xemacs.org>
6906
6907         * event-msw.c (debug_mswin_messages): Conditionally compile
6908         messages missing from the Cygwin headers.
6909
6910 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6911
6912         * data.c (eq_with_ebola_notice): Fix typo in comment.
6913         (Ftrue_list_p): Improve docstring.
6914
6915 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6916
6917         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6918
6919 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6920
6921         * search.c (trivial_regexp_p): Regexps containing "\{" are
6922         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6923         Stefan Monnier for suggesting a diagnosis.
6924
6925 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6926
6927         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6928
6929 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6930
6931         * search.c (Fsearch_forward):
6932         (Fsearch_backward):
6933         Document negative count.
6934
6935 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6936
6937         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6938
6939 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6940
6941         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6942
6943 2003-09-15  Vin Shelton  <acs@xemacs.org>
6944
6945         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6946         21.5.
6947
6948 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6949
6950         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6951         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6952         (re_match_2_internal): Use TRANSLATE instead of
6953         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6954         non-ASCII char case conversion.
6955
6956 2003-09-08  Mike Sperber  <mike@xemacs.org>
6957
6958         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6959         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6960
6961 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6962
6963        * .gdbinit (pobj): fix printing of symbol name.
6964
6965 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6966
6967         * frame-x.c (x_layout_widgets): When resizing is about to cause
6968         frame size slip, mark it for redisplay.
6969
6970 2003-08-18  Jerry James  <james@xemacs.org>
6971
6972         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6973
6974 2003-09-03  Vin Shelton <acs@xemacs.org>
6975
6976         * XEmacs 21.4.14 is released
6977
6978 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6979
6980         * config.h.in (REGEX_MALLOC): Make it configure'able.
6981
6982 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6983
6984         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6985         linking.
6986         * sysdll.c (dll_init):
6987         * sysdll.c (dll_open):
6988         * sysdll.c (dll_close):
6989         * sysdll.c (dll_function):
6990         * sysdll.c (dll_variable):
6991         * sysdll.c (dll_error):
6992         Add support for loading bundles using Darwin/MacOSX
6993         native API.
6994
6995 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6996
6997         * process.c (start-process-internal): Document coding systems.
6998
6999 2003-07-30  Jerry James  <james@xemacs.org>
7000
7001         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
7002
7003 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
7004
7005         * event-msw.c (mswindows_enqueue_mouse_button_event):
7006         * event-msw.c (mswindows_wnd_proc):
7007           enqueue button event when scrollwheel event isn't handled by 
7008           mswindows_handle_mousewheel_event, such as when the scrollbars
7009           are not showing.
7010
7011 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
7012
7013         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
7014
7015 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
7016
7017         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
7018
7019 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
7020
7021         * regex.c (re_match_2_internal): Fix matching degenerate word
7022         boundaries.
7023
7024 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
7025
7026         * XEmacs 21.4.13 is released
7027
7028 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
7029
7030         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
7031         * lisp.h (<inttypes.h>):
7032         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
7033         the definition.
7034
7035 2003-03-15  Martin Buchholz  <martin@xemacs.org>
7036
7037         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
7038         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
7039         Result: "temacs can only be run in -batch mode."
7040         Fix: Check xemacs executable candidate for directory-ness.
7041
7042 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
7043
7044         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
7045           they conflict with <sys/types.h>.
7046
7047 2003-02-14  Martin Buchholz  <martin@xemacs.org>
7048
7049         * database.c: Berkeley DB wants __STDC__ to be defined.
7050
7051 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7052
7053         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
7054
7055 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7056
7057         * process-unix.c (unix_send_process): Fix C++ compile error.
7058
7059 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
7060
7061         * Added .dylib as an acceptable shared library file extension
7062         * to support MacOSX.
7063
7064 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7065
7066         * EmacsFrameP.h (EmacsFramePart):
7067         Kludge to allow compiling with Motif1, but linking with Motif2.
7068
7069 2003-01-28  Martin Buchholz  <martin@xemacs.org>
7070
7071         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
7072
7073
7074 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
7075
7076         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
7077
7078 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
7079
7080         * sysdll.c: Included lisp.h to define needed alloca_array.
7081
7082 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7083
7084         Make XEmacs redisplay 10 times faster.
7085         If, that is, you're using a slow X connection and MoveOpaque.
7086         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
7087         Use compress_motion = TRUE.
7088         * EmacsFrame.c (emacsFrameClassRec): 
7089         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
7090         * EmacsManager.c (emacsManagerClassRec):
7091         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
7092
7093 2003-01-30  Vin Shelton  <acs@xemacs.org>
7094
7095         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
7096
7097 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
7098
7099         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
7100         Patch by Martin Buchholz.
7101
7102 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
7103
7104         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
7105         Thanks to icc for warning and Martin Buchholz for reporting.
7106
7107 2003-01-29  Vin Shelton <acs@xemacs.org>
7108
7109         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
7110
7111         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
7112         remember to multiply by the element size.
7113
7114 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
7115
7116         * XEmacs 21.4.12 "Portable Code" is released.
7117
7118 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
7119
7120         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
7121         * s/cygwin.sc: new linker file.
7122
7123 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
7124
7125         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
7126
7127         * redisplay-x.c (x_output_string): Use X11-specified types.
7128         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
7129         * emacs.c (__free_hook): Use typeof with Intel compiler.
7130         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
7131
7132 2003-01-08  Andy Piper  <andy@xemacs.org>
7133
7134         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
7135         reserve size during unexec().
7136
7137 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
7138
7139         * process-unix.c (unix_create_process): Don't let outchannel block.
7140
7141 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
7142
7143         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
7144         Needed for IsBadReadPtr().
7145
7146 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
7147
7148         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
7149
7150 2002-12-14  Ben Wing  <ben@xemacs.org>
7151
7152         * callint.c: Declaration error.
7153         * dumper.c (pdump):
7154         * dumper.c (pdump_load): Warning fix.
7155         * process.c: GCPRO error.
7156         * glyphs.c (unmap_subwindow):
7157         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
7158         * event-stream.c (maybe_kbd_translate): Wrong argument to
7159         character_to_event().
7160
7161         * alloc.c (garbage_collect_1):
7162         * emacs.c:
7163         * emacs.c (debug_can_access_memory):
7164         * emacs.c (fatal_error_signal):
7165         * emacs.c (mswindows_handle_hardware_exceptions):
7166         * emacs.c (main_1):
7167         * emacs.c (main):
7168         * emacs.c (assert_failed):
7169         * emacs.c (syms_of_emacs):
7170         * lisp.h:
7171         * print.c:
7172         * print.c (std_handle_out_va):
7173         * print.c (write_string_to_stdio_stream):
7174         * print.c (write_fmt_string):
7175         * print.c (printing_badness):
7176         * print.c (printing_major_badness):
7177         * print.c (print_internal):
7178         * print.c (debug_print_no_newline):
7179         * print.c (debug_backtrace):
7180         Be more defensive in handling bad values when printing.  Add code
7181         from trunk involving inhibit_non_essential_printing_operations.
7182         When going down or in debug_print(), don't do external conversion
7183         and such and try really, really hard when printing to avoid core
7184         dumping.  Add force-debugging-signal, debug_break().
7185
7186 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
7187
7188         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
7189         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
7190
7191 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
7192
7193         * database.c: Fix open_database. Berkeley DB API has changed in
7194         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
7195
7196 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
7197
7198         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
7199
7200 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
7201
7202         * event-Xt.c (Xt_timeout):
7203         (Xt_timeout_callback):
7204         (emacs_Xt_add_timeout):
7205         (emacs_Xt_remove_timeout):
7206         (Xt_timeout_to_emacs_event):
7207         Turn completed_timeouts from a stack into a queue.  Fixes
7208         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
7209
7210 2002-11-07  Wolfram Gloger  <wg@malloc.de>
7211
7212         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
7213         * emacs.c (main): Assert that mmap'd allocation is disabled.
7214
7215 2002-10-14  Andy Piper  <andy@xemacs.org>
7216
7217         * glyphs-widget.c (layout_query_geometry): add in fiddle
7218         factor. Include border text in width layout calculation.
7219         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
7220
7221 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
7222
7223         * XEmacs 21.4.10 "Military Intelligence" is released.
7224
7225 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
7226
7227         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
7228         using the NAS private array SoundFileInfo that no longer exists in
7229         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
7230         and earlier.  This is broken for some versions between 1.5a and
7231         1.5f.
7232
7233 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
7234
7235         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7236
7237         * emacs.c (shut_down_emacs): Improve crash message.
7238
7239 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7240
7241         * file-coding.c (determine_real_coding_system): Check for coding
7242         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7243         shebangs and Python PEP 263.
7244
7245 2002-10-08  Andy Piper  <andy@xemacs.org>
7246
7247         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7248         if static sizes haven't been set.
7249
7250 2002-08-30  Mike Alexander  <mta@arbortext.com>
7251
7252         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7253         to close a socket.
7254
7255 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7256
7257         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7258
7259 2002-09-20  Mike Sperber <mike@xemacs.org>
7260
7261         (This partially gets back my patch from 2002-07-20 without the
7262         bug.)
7263         * callproc.c (child_setup): Remove Ben's comment noting confusion
7264         over the file descriptors >= 3: close_process_descs() doesn't
7265         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7266         * process-unix.c (unix_create_process): Call
7267         begin_dont_check_for_quit to inhibit unwanted interaction (and
7268         thus breaking of X event synchronicity) in the child.
7269
7270 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7271
7272         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7273         widget.
7274
7275 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7276
7277         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7278         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7279         the xemacs process did not exit, but looped infinitely here.  This
7280         fixes that problem.
7281
7282 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7283
7284         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7285         (find_context): Improve comments.
7286
7287         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7288         (re_match_2): An XCHAR_TABLE operation was missing.
7289
7290         Many of the following changes were inspired by Andy Piper's (now
7291         obsolete) patch to make syntax-table text property lookup optional.
7292
7293         [Documentation]
7294
7295         * syntax.h (top level): Document semantics of syntax flags.
7296         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7297         * syntax.c, syntax.h (top level): Document syntax cache better in
7298         comments.
7299
7300         [Instrument syntax caching (temporary change)]
7301
7302         * syntax.h (enum syntax_cache_statistics_functions, struct
7303         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7304         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7305         * syntax.c (scan_words, Fforward_comment, scan_lists,
7306         Fbackward_prefix_characters):
7307         * font-lock.c (find_context):
7308         Use them to instrument syntax caching. 
7309         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7310         syntax_cache_statistics_function_names): New type and variables.
7311         * syntax.c (update_syntax_cache): Update and report statistics.
7312
7313         [Major syntax cache optimizations]
7314
7315         syntax.c (lookup_syntax_properties): Default off.
7316
7317         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7318         * syntax.c (update_syntax_cache):
7319         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7320
7321         [Minor syntax cache optimizations and code clarifications]
7322
7323         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7324         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7325         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7326         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7327         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7328         (Code clarification.)
7329
7330         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7331         scan_lists): Compute code from syncode, use Boolean macros instead
7332         of redundant masking operations.  (Code clarification; any decent
7333         compiler can do this optimization.)
7334
7335         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7336         for clarity.
7337
7338         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7339         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7340         use F*_single_property_change instead of F*_extent_change.
7341         Currently F*_single_property_change is _much_ less efficient.
7342
7343         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7344         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7345         syntax_cache.object properly, don't leave Qt or Qnil.
7346         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7347         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7348         tests for Qt or Qnil.
7349
7350 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7351
7352         * redisplay.c (point_in_line_start_cache): 
7353         * extents.c (print_extent_1):
7354         Fix warnings.
7355
7356         * extents.c (Fset_extent_property): Document `syntax-table' property.
7357
7358         * extents.h (Fnext_single_property_change): EXFUN it.
7359
7360 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7361
7362         * search.c (clear_unused_search_regs): New static function.
7363         (search_buffer): 
7364         (simple_search): 
7365         (boyer_moore):
7366         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7367         Minor clarifications in comments.
7368
7369         * regex.c (re_match_2_internal): Ensure no stale submatches.
7370
7371 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7372
7373         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7374
7375 2002-08-29  Jerry James  <james@xemacs.org>
7376
7377         * lisp.h: structrures -> structures.
7378
7379 2002-06-03  Andy Piper  <andy@xemacs.org>
7380
7381         * frame.c (frame_conversion_internal): add conversion appropriate
7382         for setting frame dimensions in pixels.
7383
7384         * console.h (struct console_methods): add device-specific widget
7385         layout functions.
7386
7387         * emacs.c (main_1): initialize glyph vars.
7388
7389         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7390         (handle_focus_event_2): new function. Allow focus to
7391         be set to a particular window and widget.
7392         (enqueue_focus_event): new function. Create a
7393         synthetic focus event.
7394         (emacs_Xt_handle_magic_event): call
7395         handle_focus_event_2.
7396
7397         * frame.c (Fset_frame_pixel_height): new function. Allow
7398         pixel-based sizing. Does the right thing on character-oriented
7399         displays.
7400         (Fset_frame_pixel_width): ditto.
7401         (Fset_frame_pixel_size): ditto.
7402         (syms_of_frame): declare.
7403
7404         * general-slots.h: add :vertically-justify and
7405         :horizontally-justify.
7406
7407         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7408         (mswindows_widget_border_width): new function.
7409         (mswindows_combo_box_instantiate): set border widths.
7410         (console_type_create_glyphs_mswindows): declare.
7411
7412         * glyphs-widget.c:
7413         (check_valid_justification): allow vertical and horizontal
7414         justification.
7415         (widget_border_width): new function. Call device methods.
7416         (widget_instance_border_width): ditto.
7417         (logical_unit_height): new function. Determine the height of a
7418         logical-unit. Logical units are intended to provide grid-like
7419         layout for subcontrols in a layout. If the layout is
7420         :vertically-justify top then subcontrols will be positioned on
7421         logical-unit boundaries, thus allowing adjacent subcontrols to
7422         line up.
7423         (widget_logical_unit_height): ditto for widgets.
7424         (redisplay_widget): misc cleanup.
7425         (widget_spacing): new function. Call device specific
7426         methods. Intended to be the default gap between adjacent widgets.
7427         (widget_query_geometry): use new spacing functions to determine
7428         appropriate geometry.
7429         (initialize_widget_image_instance): initialize horizontal and
7430         vertical justification.
7431         (widget_instantiate): use logica-units where appropriate for
7432         sizing large widgets.
7433         (button_query_geometry): use widget_instance_border_width.
7434         (tree_view_query_geometry): ditto.
7435         (tab_control_query_geometry): ditto.
7436         (edit_field_query_geometry): new function.
7437         (layout_update): pick up :justify, :horizontally-justify and
7438         :vertically-justify none of which worked previously. :justify is
7439         used as a fallback for both horizontal and vertical justification.
7440         (layout_query_geometry): use logical units to size appropriately.
7441         (layout_layout): ditto.
7442         (Fwidget_logical_to_character_width): new function. Allow users to
7443         convert from logical units to characters so that frame sizes can
7444         be set appropriately.
7445         (Fwidget_logical_to_character_height): ditto.
7446         (syms_of_glyphs_widget): declare.
7447         (image_instantiator_edit_fields): add edit_field_query_geometry.
7448         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7449         :horizontally-justify.
7450         (specifier_vars_of_glyphs_widget): new function. Declare
7451         Vwidget_border_width which is not yet used.
7452
7453         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7454         (x_widget_border_width): new function.
7455         (x_widget_instantiate): create a sensible name for widgets.
7456         (console_type_create_glyphs_x): declare x_widget_border_width.
7457
7458         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7459         (struct Lisp_Image_Instance): add :vertically-justify and
7460         :horizontally-justify.
7461         (LAYOUT_JUSTIFY_TOP): new.
7462         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7463         (ROUND_UP): new macro. Round argument up to next integral
7464         interval.
7465
7466         * redisplay-output.c (redisplay_output_layout): misc formatting.
7467
7468         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7469
7470 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7471
7472         * XEmacs 21.4.9 "Informed Management" is released.
7473
7474 2002-08-19  Andy Piper  <andy@xemacs.org>
7475
7476         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7477         win32 format.
7478
7479         * realpath.c (xrealpath): normalize drive spec also so that dir
7480         sep chars are not mixed on cygwin.
7481
7482 2002-08-06  Jerry James  <james@xemacs.org>
7483
7484         * window.c (Fsplit_window): Count only half of the divider width
7485         against the left window when splitting horizontally. 
7486
7487 2002-06-24  Andy Piper  <andy@xemacs.org>
7488
7489         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7490         toolbar was cleared.
7491
7492         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7493         function. Split out from mswindows_output_frame_toolbars.
7494         (mswindows_output_frame_toolbars): move clear pieces to
7495         mswindows_output_frame_toolbars.
7496
7497         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7498         out from gtk_output_frame_toolbars.
7499         (gtk_output_frame_toolbars): move clear pieces to
7500         gtk_clear_frame_toolbars.
7501
7502         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7503         the frame is cleared. How this ever worked before is a mystery.
7504         (x_output_frame_toolbars): Only output toolbars.
7505         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7506
7507         * gutter.c (update_gutter_geometry):
7508         Mark frame layout changed.
7509         (update_frame_gutter_geometry, update_frame_gutters):
7510         Respect frame_layout_changed.
7511
7512         * console.h (struct console_methods): add
7513         clear_frame_toolbars_method.
7514
7515         * redisplay.c (redisplay_frame): call
7516         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7517
7518         * toolbar.h: declare update_frame_toolbars_geometry.
7519
7520         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7521         out from update_frame_toolbars.  Call clear_frame_toolbars.
7522         (update_frame_toolbars): only output, do not change geometry.
7523
7524         * redisplay.c: add frame_layout_changed.
7525
7526         * redisplay.h: add frame_layout_changed.
7527         (CLASS_RESET_CHANGED_FLAGS): set it.
7528         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7529         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7530         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7531
7532         * device.h (struct device): add frame_layout_changed.
7533         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7534
7535         * frame.h (struct frame): add frame_layout_changed.
7536         (MARK_FRAME_LAYOUT_CHANGED): new.
7537
7538 2002-06-30  Mike Alexander  <mta@arbortext.com>
7539
7540         * event-msw.c (mswindows_need_event): Don't wait for a new message
7541         if the queue is not empty.  Suggested by Paul Moore.
7542
7543 2002-06-12  Andy Piper  <andy@xemacs.org>
7544
7545         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7546         for printing on accurately.
7547
7548 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7549
7550         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7551         WM_ACTIVATE message. Make sure that the frame is visible if the
7552         window is visible. This seemss to fix the problem where XEmacs
7553         appears to freeze after switching desktops with certain virtual
7554         window managers.
7555         (debug_output_mswin_message): Added code to output message
7556         parameters for WM_WINDOWPOSCHANGED, 
7557         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7558
7559 2002-05-25  Andy Piper  <andy@xemacs.org>
7560
7561         * select-x.c (vars_of_select_x): Fix docstring of
7562         x-selection-strict-motif-ownership
7563
7564 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7565
7566         * keymap.c (get_keymap):
7567         Add comment about do_autoload GCPROs own args.
7568
7569 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7570
7571         * bytecode.c (execute_optimized_program): check_opcode ifdef
7572         ERROR_CHECK_BYTE_CODE.
7573
7574 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7575
7576         Thanks to Ben Wing and Michael Sperber.
7577
7578         * eval.c (Fcommand_execute):
7579         (Feval):
7580         (Ffuncall):
7581         (Fmacroexpand_internal):
7582         (function_argcount):
7583         callint.c (Fcall_interactively):
7584         Add comment about do_autoload GCPROs own args.
7585
7586         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7587
7588         * eval.c (Ffuncall): Extra braces to placate GCC.
7589
7590 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7591
7592         * backtrace.h (grow_specpdl):
7593         (SPECPDL_RESERVE):
7594         * EmacsFrame.c (EmacsFrameSetValues):
7595         * eval.c (grow_specpdl):
7596         * ExternalShell.c (hack_event_masks_1):
7597         * glyphs-x.c (convert_EImage_to_XImage): 
7598         (x_finalize_image_instance):
7599         * ralloc.c (page_size):
7600         (r_alloc_sbrk):
7601         * xgccache.c (gc_cache_hash):
7602         Fix unsigned comparison warnings.
7603
7604 2002-07-29  Jerry James  <james@xemacs.org>
7605
7606         * lread.c (locate_file): Any nonnegative return value indicates
7607         success if MODE is nonnegative.
7608
7609 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7610
7611         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7612         argument. 
7613
7614 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7615
7616         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7617
7618         * dumper.c (pdump_get_indirect_count):
7619         (pdump_scan_by_alignment):
7620         (pdump_dump_root_struct_ptrs):
7621         (pdump_dump_rtables):
7622         (pdump_dump_root_objects):
7623         (pdump):
7624         * nas.c (WaveOpenDataForReading):
7625         * fns.c (print_bit_vector):
7626         * font-lock.c (SINGLE_SYNTAX_STYLE):
7627         * glyphs.c (check_for_ignored_expose):
7628         (find_matching_subwindow):
7629         * glyphs-eimage.c:
7630         * imgproc.c (get_histogram):
7631         * redisplay.c (point_in_line_start_cache):
7632         * redisplay-output.c (redisplay_unmap_subwindows):
7633         * symbols.c (defsymbol_massage_name_1):
7634         (defkeyword_massage_name):
7635         (deferror_massage_name_and_message):
7636         * redisplay-x.c (x_output_string): 
7637         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7638         * frame.h (struct frame):
7639         * filelock.c (current_lock_owner):
7640         * doprnt.c (emacs_doprnt_1):
7641         * lisp.h (struct Lisp_Bit_Vector):
7642         (DO_REALLOC):
7643         Fix warnings.
7644
7645 2002-02-13  Ben Wing  <ben@xemacs.org>
7646
7647         * event-stream.c (reset_key_echo):
7648         * event-stream.c (reset_this_command_keys):
7649         * event-stream.c (execute_command_event):
7650         If console is dead as a result of C-x 5 0, then post-command stuff
7651         needs to be careful and do only non-console-specific stuff.
7652
7653 2002-07-01  Mike Sperber <mike@xemacs.org>
7654
7655         * process-unix.c (unix_send_process): Mark coding_outstream as
7656         non-open upon SIGPIPE.
7657
7658         * event-stream.c (Fnext_event): Reorder switch cases to something
7659         that makes sense.
7660
7661 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7662
7663         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7664         Don't bogusly reinitialize ascii_character property.
7665
7666 2002-07-08  Mike Sperber <mike@xemacs.org>
7667
7668         * process.c (Fstart_process_internal): Do error checking before we
7669         fork off the child, so the child can't muck with the state of the
7670         parent.
7671
7672 2002-07-08  Mike Sperber <mike@xemacs.org>
7673
7674         * ralloc.c (init_ralloc): Allocate properly for pdump.
7675
7676 2002-06-12  Andy Piper  <andy@xemacs.org>
7677
7678         * glyphs.c (query_string_geometry): check the string.
7679
7680         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7681         widget names.
7682
7683 2002-06-17  Jerry James  <james@xemacs.org>
7684
7685         * sysdll.c: Remove RTLD_GLOBAL initialization.
7686         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7687
7688 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7689
7690         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7691
7692 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7693
7694         * sysdep.c (sys_rename): Make sys_rename work for the case where
7695         Windows rename sets errno to EACCES if target file exists.
7696
7697 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7698
7699         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7700         Fix detection of metric units to work on Win95
7701
7702 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7703
7704         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7705
7706 2002-04-25  Andy Piper  <andy@xemacs.org>
7707
7708         * redisplay.c (create_text_block): Remove extra comment trailer.
7709
7710 2002-04-24  Andy Piper  <andy@xemacs.org>
7711
7712         * redisplay.c (create_text_block): Don't actually add propagation
7713         data if the line ends after we have added a glyph.
7714
7715 2002-04-22  Andy Piper  <andy@xemacs.org>
7716
7717         * extents.c (extent_fragment_update): check for glyphs we have
7718         previously displayed.
7719         * extents.c (print_extent_1): warning removal.
7720         * extents.h: change prototype.
7721         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7722         widths correctly for wide glyphs.
7723         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7724         * redisplay.c (prop_type): add PROP_GLYPH.
7725         * redisplay.c (struct prop_block): add glyph type
7726         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7727         to the propagation data.
7728         * redisplay.c (create_text_block): if there is a glyph in the
7729         propagation data use it to salt extent_fragment_update.
7730         * redisplay.c (create_string_text_block): ditto.
7731
7732 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7733
7734         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7735         * redisplay-output.c (compare_runes): Compare them.
7736         * redisplay.c: Update copyright date.
7737         * redisplay.c (pos_data): Add need_baseline_computation field.
7738         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7739         need_baseline_computation; zero yoffset. Set max_pixmap_height
7740         for all pixmaps, not just automatically positioned ones.
7741         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7742         * redisplay.c (calculate_baseline): New, compute textual baseline.
7743         * redisplay.c (add_glyph_rune): Call them.
7744         * redisplay.c (create_text_block): Likewise.
7745         * redisplay.c (create_overlay_glyph_block): Likewise.
7746         * redisplay.c (add_margin_runes): Likewise.
7747         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7748
7749         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7750         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7751         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7752         * redisplay-msw.c (mswindows_output_string): Likewise.
7753         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7754         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7755         * redisplay-x.c (x_output_display_block): Likewise.
7756
7757 2002-03-28  Ben Wing  <ben@xemacs.org>
7758
7759         * redisplay.c: Fixed bug in redisplay
7760         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7761         and down of the lines, since they're bigger than the line
7762         size. (It was seen most obviously when there's a horizontal scroll
7763         bar, e.g. do C-h a glyph or something like that.) The problem was
7764         that the glyph-contrib-p setting on glyphs was ignored even if it
7765         was set properly, which it wasn't until now.
7766
7767 2002-04-24  Andy Piper  <andy@xemacs.org>
7768
7769         * lisp.h (Dynarr_end): Fix definition.
7770
7771 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7772
7773         * redisplay.c (mark_redisplay): Remove call to
7774         update_frame_window_mirror.
7775
7776 2001-11-15  Andy Piper  <andy@xemacs.org>
7777
7778         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7779         cygwin (again).
7780
7781 2002-02-13  Andy Piper  <andy@xemacs.org>
7782
7783         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7784         we did in fact enqueue the XM_MAPFRAME event.
7785
7786 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7787
7788         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7789         to fix problem switching between virtual desktops under virtuawin
7790         virtual window manager.
7791
7792 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7793
7794         * event-msw.c: Typo fix.
7795         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7796         magic XM_MAPFRAME event has been sent.
7797
7798 2001-11-23  Andy Piper  <andy@xemacs.org>
7799
7800         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7801
7802 2001-11-21  Andy Piper  <andy@xemacs.org>
7803
7804         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7805         mouse events outside the frame.
7806
7807 2002-03-20  Andy Piper  <andy@xemacs.org>
7808
7809         * menubar-msw.c (mswindows_popup_menu): warning removal.
7810         * dialog-msw.c (dialog_popped_down): ditto.
7811
7812 2001-12-11  Andy Piper  <andy@xemacs.org>
7813
7814         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7815         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7816         popup_up_p.
7817         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7818         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7819         * menubar-msw.c (mswindows_popup_menu): ditto.
7820
7821 2001-10-29  Andy Piper  <andy@xemacs.org>
7822
7823         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7824         cancels.
7825
7826 2002-01-03  Andy Piper  <andy@xemacs.org>
7827
7828         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7829         letters.
7830         (xrealpath): ditto.
7831
7832 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7833
7834         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7835         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7836         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7837         Detect and handle case where machine is set up for metric units
7838
7839 2002-04-02  Andy Piper  <andy@xemacs.org>
7840
7841         * dired-msw.c (mswindows_get_files): 
7842         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7843         completely handled by XEmacs. Suggested by Thomas Vogler
7844         <mail@thomas-vogler.de>.
7845
7846 2001-11-14  Andy Piper  <andy@xemacs.org>
7847
7848         * nt.c (REG_ROOT): change registry key to XEmacs.
7849
7850 2002-04-27  Andy Piper  <andy@xemacs.org>
7851
7852         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7853
7854 2002-04-26  Andy Piper  <andy@xemacs.org>
7855
7856         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7857         behavior.
7858
7859 2002-03-14  Mike Alexander  <mta@arbortext.com>
7860
7861         * event-msw.c (mswindows_unwait_process): New, remove process from
7862         wait list
7863         * process-nt.c (nt_finalize_process_data): Call
7864         mswindows_unwait_process
7865         * console-msw.h: Declare mswindows_unwait_process
7866
7867 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7868
7869         * editfns.c (Fdecode_time):
7870         (Fformat_time_string):
7871         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7872         (make_time): Warning elimination (change arg name).
7873
7874 2001-11-24  Andy Piper  <andy@xemacs.org>
7875
7876         * window.c (Fsplit_window): Doc return type.
7877
7878 2002-04-01  Andy Piper  <andy@xemacs.org>
7879
7880         * emacs.c (Fkill_emacs): Only output message box in interactive
7881         mode.
7882
7883 2002-04-26  Andy Piper  <andy@xemacs.org>
7884  
7885         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7886         cygwin.
7887
7888 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7889
7890         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7891         bit platform.
7892
7893 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7894
7895         * XEmacs 21.4.8 "Honest Recruiter" is released.
7896
7897 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7898
7899         Supersedes 2002-04-17 patch.
7900
7901         * process.h (PROCESS_LIVE_P): Use the process status as
7902         evidence of health, not the state of the input stream.
7903         (PROCESS_READABLE_P): Say if the process is readable
7904         from. (It may be dead nonetheless.)
7905         (CHECK_READABLE_PROCESS): Test for that condition.
7906
7907         * process.c (create_process): Use PROCESS_READABLE_P.
7908         (read_process_output, set_process_filter): Likewise.
7909
7910         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7911         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7912
7913         This code is #if 0'd, this is not the time to add new functions:
7914
7915         * process.c (Fprocess_readable_p): Report readability status.
7916         * process.c (Qprocess_readable_p): New, associated symbol...
7917         * process.c (syms_of_process): ... initialize it.
7918
7919 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7920
7921         * XEmacs 21.4.7 "Economic Science" is released.
7922
7923 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7924
7925         * process.h (PROCESS_LIVE_P): Use the process status as
7926         evidence of health, not the state of the input stream.
7927
7928 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7929
7930         * sysdep.c (sys_siglist): change "signum" to "signal"
7931
7932 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7933
7934         * s/darwin.h: New file.
7935         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7936         
7937 2002-04-23  Andreas Jaeger  <aj@suse.de>
7938
7939         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7940         which use lib64 for 64-bit libs.
7941         (START_FILES): Likewise.
7942
7943 2002-02-11  Mike Sperber  <mike@xemacs.org>
7944
7945         * device-x.c: 
7946         (x_IO_error_handler):
7947         (x_init_device): Temporarily keep device in static variable
7948         `device_being_initialized' so we can recover gracefully from
7949         internal XOpenDevice failure.  (XOpenDevice is documented to
7950         return NULL on failure, but sometimes calls the IO error handler
7951         instead.)
7952
7953 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7954
7955         * dired.c (Ffile_name_all_completions): Change documentation --
7956         remove reference to completion-ignored-extensions.
7957         * dired.c (vars_of_dired): Change documentation for
7958         completion-ignored-extensions -- remove reference to
7959         file-name-all-completions.
7960
7961 2002-03-06  Jerry James  <james@xemacs.org>
7962
7963         * emodules.c (emodules_load): Fix multiple loading of same module.
7964
7965 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7966         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7967         RTLD_LAZY to avoid incorrect symbol binding when using nested
7968         shared libraries on Solaris.
7969
7970 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7971
7972         * fileio.c (Ffind_file_name_handler): Improve docstring.
7973
7974 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7975
7976         * fns.c (Fmapconcat): Improve docstring.
7977
7978 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7979
7980         * device-gtk.c: Add prototype for
7981         emacs_gtk_selection_clear_event_handle.
7982         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7983         selection.  Setup signal handler for "selection_clear_event"
7984         (emacs_gtk_selection_clear_event_handle).
7985
7986         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7987         other applications owning the clipboard (based on
7988         x_handle_selection_clear).
7989
7990 2001-12-23  William M. Perry  <wmperry@gnu.org>
7991
7992         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7993         
7994 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7995
7996         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7997
7998 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7999
8000         * XEmacs 21.4.6 "Common Lisp" is released.
8001
8002 2001-12-16  Torsten Duwe  <duwe@caldera.de>
8003
8004         * search.c (Freplace_match): Add missing sub-expression functionality.
8005
8006         * buffer.c (decode_buffer): Add a check for pointer type to
8007         decode_buffer, before gcc's CSE optimization reorders a
8008         dereference in front of the allow_string test.
8009
8010 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
8011
8012         * window.c (window_loop): Fix bug that sometimes prevented
8013         window_loop() from iterating across multiple devices.  Also, at
8014         Ben's request, changed infloop-detecting code to abort() instead
8015         of silently terminating window_loop().
8016
8017 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
8018
8019         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
8020         * editfns.c (make_time): New function.
8021         (Fencode_time): Use it instead of wasteful_word_to_lisp.
8022         * lisp.h (make_time): Prototype and comment it.
8023         * dired.c (wasteful_word_to_lisp): Deprecate.
8024         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
8025
8026 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
8027
8028         * fileio.c (auto_save_1): Use current coding system, not
8029         escape-quoted.
8030
8031 2001-11-13  Ben Wing  <ben@xemacs.org>
8032
8033         * window.c:
8034         * window.c (window_truncation_on):
8035         * window.c (syms_of_window):
8036         truncate-partial-width-windows should respect the buffer being
8037         displayed, like other redisplay vars.
8038
8039 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
8040
8041         * event-stream.c (Fread_key_sequence): save current buffer.
8042
8043 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8044
8045         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
8046
8047 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8048
8049         * alloc.c (lcrecord_stats): Add space for types defined in modules.
8050
8051 2001-10-26  Mike Alexander  <mta@arbortext.com>
8052
8053         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
8054
8055 2001-10-25  Andy Piper  <andy@xemacs.org>
8056
8057         * ChangeLog:
8058         * dialog-msw.c (handle_directory_proc): new function.
8059          (handle_directory_dialog_box): new fucntion.
8060          (handle_file_dialog_box): use new directory dialog support.
8061          (mswindows_make_dialog_box_internal): ditto.
8062         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
8063         handling.
8064         (mswindows_find_frame): make global.
8065         * fileio.c (Fexpand_file_name): build fix.
8066         * general-slots.h: add Qdirectory.
8067         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
8068         handling.
8069         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
8070         cygwin not leaving win32 paths unchanged.
8071         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
8072         cygwin runtime to do path conversion.
8073         (Fmswindows_shell_execute): fix cygwin handling of URLs.
8074         (syms_of_win32): add new function.
8075         * window.c (window_loop): build fix.
8076
8077 2001-10-15  Andy Piper  <andy@xemacs.org>
8078
8079         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
8080
8081 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
8082
8083         * XEmacs 21.4.5 "Civil Service" is released.
8084
8085 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
8086
8087         * glyphs-x.c: Force buffer-tab highlight update when moving the
8088         buffer, avoiding an ugly black border, used for keyboard focus
8089         indication, on a widget that can never have keyboard focus, the
8090         buffer tab.
8091
8092 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
8093
8094         * process-unix.c (unix_open_multicast_group): Remove too much
8095         conversion between host and network byte order.
8096
8097 2001-09-10  Nix  <nix@esperi.demon.co.uk>
8098
8099         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
8100         before replacing them.
8101
8102         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
8103         operation.
8104
8105         * src/window.c (undedicate_windows): Use it.
8106         * src/window.h: Add prototype.
8107
8108 2001-09-17  Ben Wing  <ben@xemacs.org>
8109
8110         * fileio.c (normalize_filename):
8111         * fileio.c (Fexpand_file_name):
8112         Fix various C++ compile errors in Andy's recent code.
8113         
8114         * callint.c (Fcall_interactively):
8115         * editfns.c (Ftemp_directory):
8116         * editfns.c (Fuser_full_name):
8117         * emacs.c (argmatch):
8118         * lread.c (locate_file_map_suffixes):
8119         * redisplay-x.c (x_ring_bell):
8120         Fix sign-compare warnings.
8121         
8122 2001-09-08  Andy Piper  <andy@xemacs.org>
8123
8124         * fileio.c (normalize_filename): copied from nt.c
8125         * (Ffile_name_directory): enable win32 paths under cygwin.
8126         * (Ffile_name_nondirectory): ditto.
8127         * (directory_file_name): ditto.
8128         * (Fexpand_file_name): ditto.
8129         * (Ffile_truename): ditto.
8130         * (Fsubstitute_in_file_name): ditto.
8131         * (Ffile_name_absolute_p): ditto.
8132         * (Ffile_readable_p): ditto.
8133
8134 2001-09-08  Andy Piper  <andy@xemacs.org>
8135
8136         * device-msw.c (mswindows_finish_init_device): remove dde
8137         initialization.
8138         * device-msw.c (mswindows_init_dde): factor out from
8139         mswindows_finish_init_device()
8140         * device-msw.c (init_mswindows_very_early): new function
8141         initialize but don't enable dde.
8142         * emacs.c (main_1): call init_mswindows_very_early.
8143         * event-msw.c:
8144         * event-msw.c (mswindows_dde_callback): only execute when we are
8145         ready.
8146         * symsinit.h: declare init_mswindows_very_early.
8147
8148 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8149
8150         [sjt: This has been in 21.5 for months with no complaints.]
8151
8152         * console.h (struct console_methods): Added flags member.
8153         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
8154         (CONMETH_IMPL_FLAG):
8155         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
8156         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8157
8158         * device.c (window_system_pixelated_geometry): Use the above macros.
8159
8160         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
8161         implememntation flag.
8162         * device.h (DEVICE_DISPLAY_P): Use it.
8163
8164         * frame.c (delete_frame_internal): Use the above macro.
8165
8166         * redisplay.c (redisplay_device): Use it.
8167         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8168         (redisplay_frame): Ditto.
8169
8170         * device-msw.c (mswindows_device_implementation_flags): Removed.
8171         (msprinter_device_implementation_flags): Removed.
8172         (console_type_create_device_mswindows): Removed references to
8173         implementation_flags methods, set implementation flags here.
8174         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
8175
8176         * device-gtk.c (gtk_device_implementation_flags): Removed method.
8177         (console_type_create_device_gtk): Removed method declaration.
8178         Added commented out statement which semantically matches the
8179         commented out statement in the above removed method.
8180
8181 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
8182
8183         The attached patch fixes a few warnings. 
8184
8185         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
8186         * src/frame-gtk.c: guard against GNOME calls in GTK only
8187         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
8188         * src/select-gtk.c: prototype lisp_to_time
8189
8190 2001-06-08  Ben Wing  <ben@xemacs.org>
8191
8192         ------ gc-in-window-procedure fixes ------
8193         
8194         * alloc.c:
8195         * alloc.c (struct post_gc_action):
8196         * alloc.c (register_post_gc_action):
8197         * alloc.c (run_post_gc_actions):
8198         * alloc.c (garbage_collect_1):
8199         Create "post-gc actions", to avoid those dreaded "GC during window
8200         procedure" problems.
8201
8202         * event-msw.c:
8203         Abort, clean and simple, when GC in window procedure.  We want
8204         to flush these puppies out.
8205
8206         * glyphs-msw.c:
8207         * glyphs-msw.c (finalize_destroy_window):
8208         * glyphs-msw.c (mswindows_finalize_image_instance):
8209         Use a post-gc action when destroying subwindows.
8210
8211         * lisp.h:
8212         Declare register_post_gc_action().
8213
8214         * scrollbar-msw.c:
8215         * scrollbar-msw.c (unshow_that_mofo):
8216         Use a post-gc action when unshowing scrollbar windows, if in gc.
8217
8218         * redisplay.c (mark_redisplay):
8219         Add comment about the utter evilness of what's going down here.
8220
8221         ------ cygwin setitimer fixes ------
8222         
8223         * Makefile.in.in (sheap_objs):
8224         * Makefile.in.in (profile_objs):
8225         * Makefile.in.in (objs):
8226         Compile profile.c only when HAVE_SETITIMER.
8227         
8228         * nt.c (mswindows_sigset):
8229         * nt.c (mswindows_sighold):
8230         * nt.c (mswindows_sigrelse):
8231         * nt.c (mswindows_sigpause):
8232         * nt.c (mswindows_raise):
8233         * nt.c (close_file_data):
8234         Style fixes.
8235         
8236         * nt.c:
8237         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8238         
8239         * profile.c:
8240         * profile.c (Fstart_profiling):
8241         * profile.c (Fstop_profiling):
8242         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8243         instead of just plain setitimer().
8244         
8245         * signal.c:
8246         * signal.c (set_one_shot_timer):
8247         * signal.c (alarm):
8248         Define qxe_setitimer() as an encapsulation around setitimer() --
8249         call setitimer() directly unless Cygwin or MS Win, in which case
8250         we use our simulated version in win32.c.
8251         
8252         * systime.h:
8253         * systime.h (struct itimerval):
8254         * systime.h (ITIMER_REAL):
8255         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8256         comment about "qxe" and the policy regarding encapsulation.
8257
8258         * win32.c:
8259         * win32.c (setitimer_helper_proc):
8260         * win32.c (setitimer_helper_period):
8261         * win32.c (setitimer_helper):
8262         * win32.c (mswindows_setitimer):
8263         Move setitimer() emulation here, so Cygwin can use it.
8264         Rename a couple of functions and variables to be longer and more
8265         descriptive.  In setitimer_helper_proc(), send the signal
8266         using either mswindows_raise() or (on Cygwin) kill().  If for
8267         some reason we are still getting lockups, we'll change the kill()
8268         to directly invoke the signal handlers.
8269
8270         ------ windows shell fixes ------
8271         
8272         * callproc.c:
8273         * ntproc.c:
8274         Comments about how these two files must die.
8275
8276         * callproc.c (init_callproc):
8277         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8278         not just COMSPEC. (more correct and closer to FSF.) Don't
8279         force a value for SHELL into the environment. (Comments added
8280         to explain why not.)
8281         
8282         * nt.c (init_user_info):
8283         Don't shove a fabricated SHELL into the environment.  See above.
8284
8285 2001-06-01  Ben Wing  <ben@xemacs.org>
8286
8287         * Makefile.in.in (ldflags):
8288         eliminate that pesky "defaulting to 00401000" warning.
8289         * nt.h:
8290         eliminate warnings.
8291
8292 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8293
8294         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8295         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8296
8297 2001-04-24  Jerry James <james@xemacs.org>
8298
8299         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8300         correct order.
8301
8302 2001-06-01  Ben Wing  <ben@xemacs.org>
8303
8304         * event-msw.c (debug_mswin_messages):
8305         conditionalize the messages that were causing compile errors.
8306         (if only macros could generate #ifdef statements ...)
8307
8308 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8309
8310         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8311
8312 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8313
8314         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8315
8316 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8317
8318         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8319         * process-unix.c (unix_canonicalize_host_name):
8320         sysdep.c (init_system_name):
8321         Use it to conditionally support IPv6 canonicalization.
8322
8323 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8324
8325         * event-msw.c:
8326         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8327
8328 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8329
8330         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8331         attempt is made to scroll when no scroll bar is available.
8332
8333 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8334
8335         * input-method-motif.c (XIM_delete_frame): New callback.
8336         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8337         got deleted from 21.4.3.)
8338
8339 2001-06-01  Ben Wing  <ben@xemacs.org>
8340
8341         * nt.c (mswindows_utime):
8342         * nt.c (close_file_data):
8343         fix off-by-one-indirection error.
8344
8345 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8346
8347         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8348         because set_file_times() now takes Lisp_Object path, instead of
8349         char*.
8350         * nt.c: Include buffer.h.
8351         * nt.c (convert_from_time_t): New.
8352         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8353         not set mtime correctly.
8354         * nt.h: Declare mswindows_utime().
8355         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8356         path, instead of char*.
8357         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8358
8359 2001-05-30  Ben Wing  <ben@xemacs.org>
8360
8361         For 21.4:
8362
8363         (Stephen, just take all event-msw.c patches.  This includes
8364         the "iconify" fix below.)
8365
8366         * event-msw.c:
8367         * event-msw.c (mswindows_dequeue_dispatch_event):
8368         * event-msw.c (assert):
8369         * event-msw.c (emacs_mswindows_quit_p):
8370         * event-msw.c (debug_mswin_messages):
8371         * event-msw.c (debug_output_mswin_message):
8372         * event-msw.c (vars_of_event_mswindows):
8373         Fix yet more problems with C-g handling.
8374         Implement debug-mswindows-events.
8375         
8376 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8377
8378         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8379         
8380 2001-05-23  Ben Wing  <ben@xemacs.org>
8381
8382         * event-msw.c (winsock_writer):
8383         * event-msw.c (winsock_closer):
8384         prior kludgy code was clobbering the buffer, thinking it was
8385         "unused" space to store an unneeded return value; instead, use
8386         the variable we've already got staring us in the face.
8387
8388 2001-05-17  Andy Piper  <andy@xemacs.org>
8389
8390         * sysfile.h: don't assume that file attributes are boolean
8391
8392 2001-05-23  Ben Wing  <ben@xemacs.org>
8393
8394         * device-msw.c (msprinter_init_device):
8395         signal an error rather than crash with an unavailable network
8396         printer (from Mike Alexander).
8397         
8398         * event-msw.c:
8399         * event-msw.c (struct winsock_stream):
8400         * event-msw.c (winsock_writer):
8401         * event-msw.c (winsock_closer):
8402         * event-msw.c (make_winsock_stream_1):
8403         cleanup headers.  fix (hopefully) an error with data corruption
8404         when sending to a network connection.
8405
8406         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8407         to handle the ~user prefix by (a) always assuming we're referencing
8408         ourselves and not even verifying the user -- hence any file with
8409         a tilde as its first char is invalid! (b) if there wasn't a slash
8410         following the filename, the pointer was set *past* the end of
8411         file and we started reading from uninitialized memory.  Now we
8412         simply treat these as files, always.
8413
8414         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8415         
8416 2001-05-19  Ben Wing  <ben@xemacs.org>
8417
8418         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8419
8420         * process-nt.c:
8421         * process-nt.c (vars_of_process_nt):
8422         remove unused mswindows-quote-process-args.  rec for 21.4.
8423         
8424 2001-05-12  Ben Wing  <ben@xemacs.org>
8425
8426         * event-msw.c (mswindows_dde_callback):
8427         * event-msw.c (mswindows_wnd_proc):
8428         eliminate cygwin warnings.
8429
8430 2001-05-06  Ben Wing  <ben@xemacs.org>
8431
8432         * console-msw.h:
8433         * device-msw.c:
8434         * device-msw.c (print_dialog_worker):
8435         * device-msw.c (mswindows_handle_print_dialog_box):
8436         * device-msw.c (syms_of_device_mswindows):
8437         * dialog-msw.c (mswindows_make_dialog_box_internal):
8438         * general-slots.h:
8439         implement printing the selection when it's selected.
8440
8441 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8442
8443         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8444
8445 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8446
8447         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8448         EMACS_INT is signed.
8449
8450 2001-04-15  Michael Lausch  <mla@1012surf.net>
8451
8452         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8453         gtk_widget_request_size() to give scrollbar >0 width for
8454         GTK >1.2.8.
8455
8456 2001-05-30  William M. Perry  <wmperry@gnu.org>
8457
8458         * event-gtk.c: Check for buttons as modifier keys.
8459
8460 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8461
8462         * s\mingw32.h:
8463         Properly find MinGW's <process.h> inside Cygwin's restructured
8464         include directories.  Don't try to include <cygwin/version.h>
8465         since we are dropping support for MinGW in versions of Cygwin
8466         earlier than b21.
8467         * nt.c:
8468         Drop support for MinGW in versions of Cygwin before b21.
8469         * sysdep.c:
8470         Properly find MinGW's <process.h> inside Cygwin's restructured
8471         include directories.
8472         * syswindows.h:
8473         Drop support for MinGW in versions of Cygwin before b21.
8474         * unexcw.c:
8475         Even though a.out.h is no longer detected by configure, allow
8476         MinGW to use it until we figure out how to do the job with Win32.
8477
8478 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8479
8480         * syntax.c (find_start_of_comment):
8481         Fix `unbalanced parentheses' bug when dealing with mixed comment
8482         styles in c++/java/etc. mode
8483
8484 2001-05-29  Mike Alexander  <mta@arbortext.com>
8485
8486         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8487         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8488
8489 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8490
8491         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8492
8493 2001-03-31  Mike Sperber <mike@xemacs.org>
8494
8495         * search.c (Freplace_match): Support FSF-style specification of
8496         match subexpression when applied to a buffer.
8497
8498 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8499
8500         * event-stream.c (is_scrollbar_event): add missing semicolon
8501
8502 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8503
8504         * Makefile.in.in: Use TAR macro instead of hardcoding
8505           tar.  Allows use of GNU tar instead of system tar
8506
8507 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8508
8509         * event-stream.c (is_scrollbar_event): add missing semicolon
8510
8511 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8512
8513         * XEmacs 21.4.3 "Academic Rigor" is released.
8514
8515 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8516
8517         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8518
8519 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8520
8521         * buffer.c (Vcase_fold_search): Remove obsolete
8522           comment about non ASCII case-fold-search.  This
8523           bug has been fixed by case-table changes.
8524
8525 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8526
8527         * event-msw.c: Restore include of events-mod.h.
8528
8529 2001-04-22   zhaoway  <zw@debian.org>
8530
8531         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8532         !HAVE_SCROLLBARS.
8533
8534 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8535
8536         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8537
8538 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8539
8540         * mule-charset.c (Fmake_charset): Add missing else.
8541
8542 2001-04-23  Ben Wing  <ben@xemacs.org>
8543
8544         * event-msw.c (FAKE_MOD_QUIT):
8545         * event-msw.c (mswindows_dequeue_dispatch_event):
8546         * event-msw.c (mswindows_wnd_proc):
8547         * event-msw.c (emacs_mswindows_quit_p):
8548         Get critical quit working.
8549
8550 2001-05-05  Ben Wing  <ben@xemacs.org>
8551
8552         * console-msw.h:
8553         * device-msw.c:
8554         * device-msw.c (mswindows_get_default_margin):
8555         * frame-msw.c (mswindows_size_frame_internal):
8556         * frame-msw.c (msprinter_init_frame_1):
8557         * frame-msw.c (vars_of_frame_mswindows):
8558         Change top/bottom margin defaults to 0.5 inches.
8559
8560 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8561
8562         Fix link error with gcc 3.0 on Linux.
8563         * terminfo.c (UP): Remove.
8564         * terminfo.c (BC): Remove.
8565         * terminfo.c (PC): Remove.
8566         They weren't used, and in any case, these symbols should be
8567         defined in the *library*.
8568
8569 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8570
8571         * s/aix4.h: Fix crash with xlc -O3.
8572         Improve comment explaining how -O3 works.
8573
8574 2001-04-15  Ben Wing  <ben@xemacs.org>
8575
8576         * event-stream.c:
8577         * event-stream.c (Fnext_event):
8578         * event-stream.c (is_scrollbar_event):
8579         * event-stream.c (execute_command_event):
8580         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8581         crash' problem.  His fix introduces other problems.  We filter
8582         out scrollbar events specifically, making them somewhat invisible
8583         to command-building, and not appearing in `this-command-keys'.
8584         More work is still needed (see comments in event-stream.c), but
8585         this fixes all the major problems.
8586
8587 2001-04-20  Ben Wing  <ben@xemacs.org>
8588
8589         * .cvsignore: Added stuff for Windows.
8590
8591 2001-04-28  Ben Wing  <ben@xemacs.org>
8592
8593         * buffer.c (Ferase_buffer):
8594         * editfns.c (buffer_insert1):
8595         * editfns.c (Finsert_before_markers):
8596         * editfns.c (Finsert_string):
8597         * editfns.c (Finsert_char):
8598         * editfns.c (Fdelete_region):
8599         * editfns.c (Fwiden):
8600         * editfns.c (Fnarrow_to_region):
8601         remove bogus lines setting zmacs_region_stays to 0.
8602         
8603 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8604
8605         * process-unix.c (unix_open_network_stream): If connect() fails
8606         invalidate file descriptor after closing it.
8607
8608 2001-03-08  Mike Alexander  <mta@arbortext.com>
8609
8610         * event-msw.c (mswindows_need_event_in_modal_loop):
8611         Don't dispatch a message if we didn't get one.
8612         (mswindows_need_event):
8613         Terminate the correct process when one exits instead of the first
8614         one on Vprocess_list and look for process termination when in
8615         mswindows_protect_modal_loop.
8616
8617 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8618
8619         * XEmacs 21.4.1 "Copyleft" is released.
8620
8621 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8622
8623         * input-method-motif.c (XIM_delete_frame): New callback.
8624         (XIM_init_frame): Register it.
8625
8626 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8627
8628         * XEmacs 21.4.0 "Solid Vapor" is released.
8629
8630 2001-04-15  Ben Wing  <ben@xemacs.org>
8631
8632         * cmdloop.c (call_command_loop):
8633         Fix braino in bit-rotting code.
8634         
8635 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8636
8637         * extents.c (Fset_extent_endpoints): Force creation of extent info
8638         in buffer_or_string.
8639
8640         * extents.c (process_extents_for_insertion_mapper): Correctly
8641         check for open-open zero-length extents.
8642
8643 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8644
8645         * lisp.h: New typedefs Memory_count, Element_count.
8646         * regex.c:
8647         * regex.h:
8648         Sign-compare warning elimination: several unsigned -> signed.
8649         Based on work by Ben Wing <ben@xemacs.org>.
8650
8651 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8652
8653         * XEmacs 21.2.47 "Zephir" is released.
8654
8655 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8656
8657         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8658
8659 2001-04-03  Mike Sperber <mike@xemacs.org>
8660
8661         * search.c: Revert previous patch due because of release.
8662
8663 2001-03-30  Ben Wing  <ben@xemacs.org>
8664
8665         * s\cygwin32.h:
8666         Add missing killpg prototype.
8667
8668         * elhash.c:
8669         Add a comment about fixing problems when a new entry is added
8670         while mapping.
8671
8672         * frame-msw.c (mswindows_init_frame_1):
8673         Fix compile warnings.
8674
8675         * menubar.c (vars_of_menubar):
8676         Provide `menu-accelerator-support' to indicate that we properly
8677         support %_ in menu specifications, so that package code can
8678         conditionalize on this (and remove %_ from menu specifications
8679         on older versions).
8680
8681         * event-msw.c:
8682         * scrollbar-msw.c:
8683         * scrollbar-msw.c (can_scroll):
8684         * scrollbar-msw.h:
8685         Fix handling of mouse wheel under Windows to follow standards --
8686         now scrolls window under pointer, not selected window.
8687
8688 2001-03-31  Mike Sperber <mike@xemacs.org>
8689
8690         * search.c (Freplace_match): Support FSF-style specification of
8691         match subexpression when applied to a buffer.
8692
8693 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8694
8695         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8696         function to modify KEYMAP, so map over a copy of the hash table.
8697
8698 2001-03-21  Martin Buchholz <martin@xemacs.org>
8699
8700         * XEmacs 21.2.46 "Urania" is released.
8701
8702 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8703
8704         * realpath.c (xrealpath): Make file-truename work with symlinks to
8705         /cygdrive paths on cygwin. Always lowercase drive-letters on
8706         native windows.
8707         (cygwin_readlink): Don't try to find canonical filename unless
8708         file exists.
8709
8710 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8711
8712         * ChangeLog: Log GTK merge.
8713
8714         * dumper.c:
8715         * select-x.c:
8716         * specifier.c:
8717         * symeval.h:
8718         Revert gratuitous whitespace changes from GTK merge.
8719
8720         * emacs.c: Document end of complex #ifdef @ l. 1495.
8721
8722
8723 2001-03-12  Andy Piper  <andy@xemacs.org>
8724
8725         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8726         have to do likewise.
8727
8728 2001-03-12  Andy Piper  <andy@xemacs.org>
8729
8730         * sysdep.c: we only support mingw now.
8731
8732 2001-03-09  Andy Piper  <andy@xemacs.org>
8733
8734         * unexcw.c (copy_executable_and_dump_data_section): making approx
8735         overrun a warning only.
8736
8737 2001-03-10  William M. Perry  <wmperry@aventail.com>
8738
8739         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8740         satisfy Stephen's identical-after-cpp plea.
8741
8742 2001-03-02  Ben Wing  <ben@xemacs.org>
8743
8744         * cmds.c:
8745         * cmds.c (Fforward_char):
8746         * syntax.c:
8747         * window.c:
8748
8749         Augment documentation of the most common motion commands to make
8750         note of the shifted-motion support.
8751         
8752 2001-03-02  Ben Wing  <ben@xemacs.org>
8753
8754         * nt.c (mswindows_fstat):
8755         * nt.c (mswindows_stat):
8756         * search.c (boyer_moore):
8757         Fix compile warnings under Windows.
8758         
8759         * sysdep.c (sys_readdir):
8760         Fix buggy filename-conversion code under Mule.
8761
8762 2001-03-09  William M. Perry  <wmperry@aventail.com>
8763
8764         * Makefile.in.in:
8765         * config.h.in:
8766         * console.c:
8767         * console.h:
8768         * device.c:
8769         * device.h:
8770         * dragdrop.c:
8771         * emacs.c:
8772         * event-stream.c:
8773         * events.c:
8774         * events.h:
8775         * faces.c:
8776         * frame.h:
8777         * general-slots.h:
8778         * glyphs.c:
8779         * gutter.c:
8780         * inline.c:
8781         * lisp.h:
8782         * lrecord.h:
8783         * make-src-depend:
8784         * redisplay-output.c:
8785         * redisplay.c:
8786         * symsinit.h:
8787         * sysfile.h:
8788         * toolbar.c:
8789         * window.c:
8790         The Great GTK Merge.
8791
8792         * ChangeLog.GTK:
8793         * console-gtk.c:
8794         * console-gtk.h:
8795         * device-gtk.c:
8796         * emacs-marshals.c:
8797         * emacs-widget-accessors.c:
8798         * event-gtk.c:
8799         * frame-gtk.c:
8800         * gccache-gtk.c:
8801         * gccache-gtk.h:
8802         * glade.c:
8803         * glyphs-gtk.c:
8804         * glyphs-gtk.h:
8805         * gtk-glue.c:
8806         * gtk-xemacs.c:
8807         * gtk-xemacs.h:
8808         * gui-gtk.c:
8809         * gui-gtk.h:
8810         * menubar-gtk.c:
8811         * native-gtk-toolbar.c:
8812         * objects-gtk.c:
8813         * objects-gtk.h:
8814         * redisplay-gtk.c:
8815         * scrollbar-gtk.c:
8816         * scrollbar-gtk.h:
8817         * select-gtk.c:
8818         * toolbar-gtk.c:
8819         * ui-byhand.c:
8820         * ui-gtk.c:
8821         * ui-gtk.h:
8822         The Great GTK Merge: new files.
8823
8824 2001-02-26  Ben Wing  <ben@xemacs.org>
8825
8826         Reapplied Lstream change.
8827
8828 2001-02-26  Ben Wing  <ben@xemacs.org>
8829
8830         Undid the last change, since it is more controversial than I
8831         thought.  It should be back in at some point soon.
8832         
8833 2001-02-25  Ben Wing  <ben@xemacs.org>
8834
8835         * buffer.c:
8836         * callproc.c (Fold_call_process_internal):
8837         * event-msw.c (ntpipe_slurp_reader):
8838         * event-msw.c (ntpipe_shove_writer):
8839         * event-msw.c (winsock_reader):
8840         * event-msw.c (winsock_writer):
8841         * file-coding.c:
8842         * file-coding.c (detect_eol_type):
8843         * file-coding.c (detect_coding_type):
8844         * file-coding.c (determine_real_coding_system):
8845         * file-coding.c (Fdetect_coding_region):
8846         * file-coding.c (decoding_reader):
8847         * file-coding.c (decoding_writer):
8848         * file-coding.c (mule_decode):
8849         * file-coding.c (Fdecode_coding_region):
8850         * file-coding.c (encoding_reader):
8851         * file-coding.c (encoding_writer):
8852         * file-coding.c (mule_encode):
8853         * file-coding.c (Fencode_coding_region):
8854         * file-coding.c (detect_coding_sjis):
8855         * file-coding.c (decode_coding_sjis):
8856         * file-coding.c (encode_coding_sjis):
8857         * file-coding.c (detect_coding_big5):
8858         * file-coding.c (decode_coding_big5):
8859         * file-coding.c (encode_coding_big5):
8860         * file-coding.c (detect_coding_ucs4):
8861         * file-coding.c (decode_coding_ucs4):
8862         * file-coding.c (encode_coding_ucs4):
8863         * file-coding.c (detect_coding_utf8):
8864         * file-coding.c (decode_coding_utf8):
8865         * file-coding.c (encode_coding_utf8):
8866         * file-coding.c (detect_coding_iso2022):
8867         * file-coding.c (decode_coding_iso2022):
8868         * file-coding.c (encode_coding_iso2022):
8869         * file-coding.c (decode_coding_no_conversion):
8870         * file-coding.c (encode_coding_no_conversion):
8871         * glyphs-x.c (write_lisp_string_to_temp_file):
8872         * gpmevent.c (tty_get_foreign_selection):
8873         * lisp.h:
8874         * lstream.c:
8875         * lstream.c (Lstream_flush_out):
8876         * lstream.c (Lstream_adding):
8877         * lstream.c (Lstream_write_1):
8878         * lstream.c (Lstream_write):
8879         * lstream.c (Lstream_raw_read):
8880         * lstream.c (Lstream_read_more):
8881         * lstream.c (Lstream_read):
8882         * lstream.c (Lstream_unread):
8883         * lstream.c (Lstream_fputc):
8884         * lstream.c (stdio_reader):
8885         * lstream.c (stdio_writer):
8886         * lstream.c (filedesc_reader):
8887         * lstream.c (filedesc_writer):
8888         * lstream.c (lisp_string_reader):
8889         * lstream.c (struct fixed_buffer_stream):
8890         * lstream.c (make_fixed_buffer_input_stream):
8891         * lstream.c (make_fixed_buffer_output_stream):
8892         * lstream.c (fixed_buffer_reader):
8893         * lstream.c (fixed_buffer_writer):
8894         * lstream.c (struct resizing_buffer_stream):
8895         * lstream.c (resizing_buffer_writer):
8896         * lstream.c (dynarr_writer):
8897         * lstream.c (lisp_buffer_reader):
8898         * lstream.c (lisp_buffer_writer):
8899         * lstream.h:
8900         * lstream.h (lstream_implementation):
8901         * lstream.h (struct lstream):
8902         * md5.c (Fmd5):
8903         * process-nt.c (nt_send_process):
8904         * process-unix.c (unix_send_process):
8905         
8906         Correct Lstream lossage due to mixing of signed and unsigned
8907         quantities.  All Lstream uses of size_t and ssize_t are now a
8908         single signed data type Lstream_data_count.  This fixes problems
8909         under Windows with sending large quantities of data to a process,
8910         and may well fix other subtle bugs.
8911
8912 2001-02-23  Martin Buchholz <martin@xemacs.org>
8913
8914         * XEmacs 21.2.45 "Thelxepeia" is released.
8915
8916 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8917
8918         * lisp-union.h (XSETINT): 
8919         (XSETCHAR):
8920         (XSETOBJ): 
8921         Reverse previous change of 2001-02-06.
8922
8923 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8924
8925         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8926         buffers.
8927         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8928         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8929         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8930         * regex.c (POS_AS_IN_BUFFER): removed
8931         * regex.c (re_search_2):
8932         * regex.c (re_match_2):
8933         Don't use an offset of 1 when calculating buffer positions, since
8934         `BI_BUF_BEGV' does it already.
8935
8936 2001-02-18  Wim Dumon  <wim@easics.be>
8937
8938         * insdel.c (prepare_to_modify_buffer): Also check for
8939         supersession when clash-detection is enabled. 
8940
8941 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8942
8943         * regex.c (re_match_2_internal):
8944         Convert temp characters from 'const unsigned char' to 're_char'.
8945         Fix crashing bug with extended characters under mule.
8946         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8947         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8948         font-lock, pdump, and new syntax-table code.
8949         * syntax.c (find_start_of_comment):
8950         (find_end_of_comment):
8951         (forward-comment):
8952         Fix crashing bugs involving moving beyond end of buffer.
8953         * syntax.c (find_start_of_comment):
8954         Fixed logic to allow proper detection of cases where the same
8955         character is used to end both a two-char comment start and a
8956         two-char comment end sequence. Fixes `(forward-comment -1)'.
8957         * syntax.c (find_start_of_comment):
8958         Return position just past last comment-end character for all cases
8959         (previously was only done for two-char comment-end sequences).
8960         * syntax.c (forward-comment):
8961         Take value returned from `find_end_of_comment', rather than
8962         incrementing it.
8963         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8964         Properly deal with BUFFERP (syntax_cache.object)
8965
8966 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8967
8968         * alloc.c (Fgarbage_collect): 
8969         * alloc.c (make_bit_vector_from_byte_vector):
8970         -Wsign-compare-correctness.
8971
8972 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8973
8974         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8975         (XSETCHAR): Likewise.
8976         (XSETOBJ): Likewise.
8977
8978 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8979
8980         * mule-canna.c (canna-func-delete_previous): 
8981         Rename to canna-func-delete-previous.
8982
8983 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8984
8985         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8986
8987 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8988
8989         * font-lock.c (find_context): Fix C++ compile errors introduced by
8990         recent patch
8991
8992 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8993
8994         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8995         pragma, but earlier ones barf on the same pragma.
8996
8997 2001-02-06  Mike Sperber <mike@xemacs.org>
8998
8999         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
9000         `configure-mule-lisp-directory'.
9001
9002 2001-02-12  Martin Buchholz  <martin@xemacs.org>
9003
9004         Make sure dump-id.c is compiled in the same way as other .c's.
9005         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
9006         * dump-id.h: Remove.
9007         * emacs.c: Move dump-id.h into dumper.h.
9008         * dumper.h: Move dump-id.h into dumper.h.
9009         * Makefile.in.in:
9010         Use standard .c.o rule for building dump-id.o.
9011         Remove preprocessor flags from link command.
9012         Add dump-id.o to ${otherobjs} if PDUMP.
9013
9014 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
9015
9016         Port FSF 20.7 syntax table improvements.
9017         * syntax.c.
9018         * syntax.h.
9019
9020         Fixups for new syntax table stuff.
9021         * dired.c: Include syntax.c.
9022         (Fdirectory_files): Initialize regex_match_object and
9023         regex_emacs_buffer.
9024         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
9025         and Fget_char_property.
9026
9027         Use ported FSF 20.7 syntax table improvements.
9028         * font-lock.c.
9029         * regex.c.
9030         * search.c.
9031         
9032 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9033
9034         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
9035         Unixware's enum boolean from sys/types.h.
9036
9037 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9038
9039         Fix support for building with latest Purify.
9040         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
9041         (PURIFY_FLAGS): Likewise.
9042
9043 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9044
9045         * fileio.c (lisp_string_set_file_times): New.
9046         * fileio.c (Fcopy_file): Use it.
9047         Fixes bug:
9048         (copy-file filename non-ascii-filename t t)
9049         ==> No such file or directory, non-ascii-filename
9050
9051 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9052
9053         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
9054         USHRT_MAX seems clearer than ~0 anyways.
9055
9056 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9057
9058         dumper improvements.  Inspired by Olivier.
9059         * dumper.c (pdump_max_align): New.
9060         * dumper.c (pdump_add_entry): Use pdump_max_align.
9061         * dumper.c (pdump_get_entry_list): Likewise.
9062         * dumper.c (pdump_scan_by_alignment): Likewise.
9063         Don't iterate through unnecessary alignments.
9064         * dumper.c (pdump_file_get): No need to align result of malloc().
9065         * dumper.c (pdump_mallocadr): Remove.  
9066         The result of malloc() is guaranteed to be maximally aligned.
9067         * dumper.c: s/elmt/elt/g;
9068         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
9069         * dumper.c (pdump_alert_undump_object): Likewise.
9070         * dumper.c (pdump_align_table): 
9071         Don't support alignments > 64.
9072         Store ALIGNOF's, not shift counts, in table.
9073
9074 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9075
9076         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
9077         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
9078         * systime.h: Use HAVE_UTIME.
9079         * sysdep.c (struct utimbuf): Remove.
9080         * sysdep.c (set_file_times): Prefer utime() to utimes().
9081         * config.h.in (HAVE_UTIME): New.
9082         * config.h.in (HAVE_UTIME_H): Remove.
9083         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
9084
9085 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9086
9087         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
9088
9089 2001-02-08  Martin Buchholz  <martin@xemacs.org>
9090
9091         * s/irix6-0.h: Use the standard system memmove, not bcopy.
9092
9093 2001-02-08  Martin Buchholz <martin@xemacs.org>
9094
9095         * XEmacs 21.2.44 "Thalia" is released.
9096
9097 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9098
9099         Fixes crashes in kill-emacs on some systems.
9100         * process-unix.c (unix_kill_child_process):
9101         It's OK for kill() to fail with ESRCH.
9102
9103 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9104
9105         Contortions to make .gdbinit tricks work on most systems.
9106         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
9107         * alloc.c (dbg_valmask): Make non-const.
9108         * alloc.c (dbg_typemask): Make non-const.
9109         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
9110         * alloc.c (dbg_valbits): Make non-const.
9111         * alloc.c (dbg_gctypebits): Make non-const.
9112         * .gdbinit (decode_object): Make it work with AIX cc.
9113
9114 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9115
9116         * elhash.c (make_general_lisp_hash_table):
9117         Use simpler and more efficient calloc to clear entries.
9118
9119 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9120
9121         * window.c (window_scroll): Work around an AIX C compiler bug.
9122         Fixes 'scroll-up' does nothing problem with xlC.
9123
9124 2001-02-05  Martin Buchholz  <martin@xemacs.org>
9125
9126         * .gdbinit: Remove obsolete comment.
9127
9128 2001-01-31  Mike Alexander  <mta@arbortext.com>
9129
9130         * select.c (Fown_selection_internal): Set owned_p for device
9131         method correctly.
9132
9133 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9134
9135         Port to g++ 2.97.
9136         "not" cannot be used as a macro name as it is an operator in C++
9137         * config.h.in: Stop #defining `not'.
9138         * chartab.c (check_category_char): not ==> not_p
9139         * chartab.h: Likewise.
9140         * regex.c (re_match_2_internal): Likewise.
9141
9142 2001-02-02  Martin Buchholz  <martin@xemacs.org>
9143
9144         * lisp-disunion.h: Fix up comments.
9145
9146 2001-01-31  Martin Buchholz  <martin@xemacs.org>
9147
9148         * keymap.c (define_key_check_and_coerce_keysym):
9149         (syms_of_keymap):
9150         Support mouse-6 and mouse-7 bindings in the obvious way.
9151
9152 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9153
9154         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
9155
9156 2001-01-30  Martin Buchholz  <martin@xemacs.org>
9157
9158         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
9159         Previous patch missed DEFVAR_INT_MAGIC.
9160         Make sure future DEFVAR_foo use correct types.
9161         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
9162         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
9163         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
9164         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
9165         * (DEFVAR_INT): Likewise.
9166         * redisplay.c (vertical_clip): Should be of type Fixnum.
9167         * redisplay.c (horizontal_clip): Likewise.
9168         * lisp.h (dump_add_opaque_int): New.
9169         (dump_add_opaque_fixnum): New.
9170
9171 2001-01-29  Andy Piper  <andy@xemacs.org>
9172
9173         * glyphs-widget.c (check_valid_int_or_function): allow symbols
9174         since they can be eval'ed
9175
9176 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9177
9178         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
9179         Oops, XEmacs redefines `class'.  Use `typename' instead.
9180
9181 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9182
9183         * dumper.c: Fix C++ compile errors.
9184
9185 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9186
9187         * tparam.c: Use correct prototypes.
9188
9189 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9190
9191         * sysproc.h: #include util.h for NetBSD's openpty.
9192
9193 2001-01-27  Martin Buchholz  <martin@xemacs.org>
9194
9195         More 64-bit correctness.
9196         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
9197         Use a typedef `fixnum' for the type used for DEFVAR_INT.
9198         Fix up comments.
9199         This finally finishes the 64-bit SGI port.
9200         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
9201         * symbols.c: Fix up comments and type casts.
9202         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
9203         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
9204         * symeval.h (Fixnum): New type.
9205         * symeval.h (symbol_value_type): Fix up comment.
9206
9207         * commands.h:
9208         * nt.c:
9209         * emacs.c:
9210         * data.c:
9211         * redisplay.c:
9212         * abbrev.c:
9213         * dired-msw.c:
9214         * event-Xt.c:
9215         * eldap.c:
9216         * window.c:
9217         * sound.c:
9218         * event-stream.c:
9219         * eval.c:
9220         * buffer.c:
9221         * mule-canna.c: A million DEFVAR_INTs here...
9222         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
9223         * extents.c:
9224         * cmdloop.c:
9225         * lisp.h:
9226         * select-x.c:
9227         * console-x.h:
9228         * event-msw.c:
9229         * mule-wnnfns.c:
9230         * hpplay.c:
9231         * ralloc.c:
9232         * alloc.c:
9233         * keymap.c:
9234         * profile.c:
9235         s/int/Fixnum/g in DEFVAR_INT declarations.
9236
9237 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9238
9239         Port pdump to SGI alignment-sensitive environment.
9240         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9241         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9242         properly aligned.
9243         Define and use aligned reading and writing macros.
9244         Use buffered stdio instead of posix i/o for faster dumping.
9245         Eliminate kludgy 256 byte space for header.
9246         Read and write from dump file using structs for alignment safety.
9247         * dumper.c (pdump_align_stream): New.
9248         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9249         * dumper.c (PDUMP_READ_ALIGNED): New.
9250         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9251         * dumper.c (pdump_static_Lisp_Object): New struct.
9252         * dumper.c (pdump_static_pointer): New struct.
9253         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9254         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9255         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9256         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9257
9258         * dumper.c (pdump_backtrace):
9259         * dumper.c (pdump_get_indirect_count):
9260         * dumper.c (pdump_register_object):
9261         * dumper.c (pdump_register_struct):
9262         * dumper.c (pdump_reloc_one):
9263         * dumper.c (pdump_scan_by_alignment):
9264         * dumper.c (pdump_dump_from_root_struct_ptrs):
9265         * dumper.c (pdump_dump_opaques):
9266         * dumper.c (pdump_dump_rtables):
9267         * dumper.c (pdump_dump_from_root_objects):
9268         * dumper.c (pdump):
9269         * dumper.c (pdump_load_finish):
9270         Use aligned reading and writing.
9271
9272         * dumper.c (pdump_free): Make static.
9273         * dumper.c (pdump_hFile): Likewise.
9274         * dumper.c (pdump_hMap): Likewise.
9275
9276 2001-01-26  Martin Buchholz <martin@xemacs.org>
9277
9278         * XEmacs 21.2.43 "Terspichore" is released.
9279
9280 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9281
9282         Type fiddling for window_config.saved_windows_count
9283         * window.c (struct window_config): 
9284         Make saved_windows_count member unsigned.
9285         * window.c (sizeof_window_config_for_n_windows): 
9286         Make parameter unsigned.
9287         * window.c (mark_window_config):
9288         * window.c (window_config_equal):
9289         * window.c (free_window_configuration):
9290         * window.c (Fset_window_configuration):
9291         * window.c (count_windows):
9292         * window.c (Fcurrent_window_configuration):
9293         * window.c (reinit_vars_of_window):
9294         Update all callers and users.
9295
9296 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9297
9298         Alignment correctness for flexible arrays.
9299         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9300         Make alignment-correct. Add interesting comments.
9301         * alloc.c (size_vector):
9302         * alloc.c (make_vector_internal):
9303         * alloc.c (make_bit_vector_internal):
9304         * alloc.c (sweep_bit_vectors_1):
9305         * fns.c (size_bit_vector):
9306         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9307         * window.c (sizeof_window_config_for_n_windows): 
9308         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9309
9310 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9311
9312         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9313
9314 2001-01-23  Andy Piper  <andy@xemacs.org>
9315
9316         * select.c (Fown_selection_internal): pass owned_p
9317
9318         * select-msw.c (mswindows_own_selection): New Signature.
9319
9320         * console.h (struct console_methods): add owned_p to
9321         _own_selection.
9322
9323         * select-x.c (x_own_selection): pass owned_p
9324         (hack_motif_clipboard_selection): use owned_p
9325         (vars_of_select_x): new variable -
9326         x_selection_strict_motif_ownership.
9327
9328 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9329
9330         * specifier.h (specifier_data_offset): Remove pointless parens.
9331         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9332
9333 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9334
9335         Make Lisp_Object sizeof methods be alignment-correct.
9336         pdump must restore objects to the same alignment as the C compiler
9337         assumes.  It really matters on SGIs.
9338         * lstream.c (aligned_sizeof_lstream): New.
9339         (sizeof_lstream): Use aligned_sizeof_lstream.
9340         (Lstream_new): Likewise.
9341         * opaque.c (aligned_sizeof_opaque): New.
9342         (sizeof_opaque): Use aligned_sizeof_opaque.
9343         (make_opaque): Likewise.
9344         * specifier.c (aligned_sizeof_specifier): New.
9345         (sizeof_specifier): Use aligned_sizeof_specifier.
9346         (make_specifier_internal): Likewise.
9347
9348 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9349
9350         * lstream.h (struct lstream): Use max_align_t for trailing data.
9351         * specifier.h (struct Lisp_Specifier): Likewise.
9352
9353 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9354
9355         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9356         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9357         (CCL_SUSPEND): Likewise.
9358         (CCL_INVALID_CMD): Likewise.
9359         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9360         (ccl_driver): Likewise.
9361         (CCL_WRITE_CHAR): Macro hygiene.
9362         (CCL_WRITE_STRING): Macro hygiene.
9363
9364 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9365
9366         Port "portable" dumper to SunOS 4 and HP-UX.
9367         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9368         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9369         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9370
9371 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9372
9373         * lisp.h (ALIGNOF): A better definition for C++.
9374
9375 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9376
9377         Macro hygiene.
9378         Fix printf warnings: int format, long int arg.
9379         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9380         (PUSH_FAILURE_POINT): Use correct printf formats.
9381         (POP_FAILURE_POINT): Use correct printf formats.  
9382         Use do {...} while (0)
9383
9384 2001-01-20  Martin Buchholz <martin@xemacs.org>
9385
9386         * XEmacs 21.2.42 "Poseidon" is released.
9387
9388 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9389
9390         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9391
9392 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9393
9394         De-kludgify FIXED_TYPE free list frobbing.
9395         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9396         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9397         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9398         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9399         * alloc.c (LRECORD_FREE_P): New.
9400         * alloc.c (MARK_LRECORD_AS_FREE): New.
9401         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9402         * alloc.c (STRUCT_FREE_P): Deleted.
9403         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9404         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9405         * alloc.c (STRING_CHARS_FREE_P): New.
9406         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9407         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9408         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9409         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9410         * alloc.c (resize_string): Use new definitions.
9411         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9412         * alloc.c (verify_string_chars_integrity): Use new definitions.
9413         * alloc.c (compact_string_chars): Use new definitions.
9414         * alloc.c: Update monster comments.
9415         * lrecord.h (lrecord_type): Add some new lrecord types for
9416         alloc.c's use.
9417
9418 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9419
9420         Improve alignment hackery.
9421         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9422         (max_align_t): Moved from opaque.h - general purpose.
9423         (ALIGN_PTR): Use size_t, not long.
9424         * opaque.h (max_align_t): Move to lisp.h.
9425
9426 2001-01-18  Norbert Koch  <nk@LF.net>
9427
9428         * gui.h: Fix and add prototypes to fix build problems.
9429
9430 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9431
9432         temacs is going away, so `dump-temacs' is now a bad name.
9433         * .dbxrc (dump-temacs): Rename to `dmp'.
9434         * .gdbinit (dump-temacs): Rename to `dmp'.
9435
9436 2001-01-17  Andy Piper  <andy@xemacs.org>
9437
9438         * glyphs.c (print_image_instance): comment to make martin happy.
9439
9440         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9441         change.
9442
9443         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9444         activation.
9445         (mswindows_tab_control_redisplay): warning suppression.
9446
9447         * glyphs-widget.c (widget_update): re-write to cope with updated
9448         items.
9449         (widget_instantiate): use new gui_item functions.
9450         (tab_control_update): deleted.
9451         (progress_gauge_update): deleted.
9452         (image_instantiator_progress_guage): take out update reference.
9453         (image_instantiator_tree_view): ditto.
9454         (image_instantiator_tab_control): ditto.
9455
9456         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9457         Right the new way.
9458         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9459         return whether anything was changed.
9460         (update_gui_item_keywords): as it sounds.
9461
9462         * gui.h: declare widget_gui_parse_item_keywords.
9463
9464         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9465         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9466
9467 2001-01-17  Martin Buchholz <martin@xemacs.org>
9468
9469         * XEmacs 21.2.41 "Polyhymnia" is released.
9470
9471 2001-01-16  Didier Verna  <didier@xemacs.org>
9472
9473         * glyphs.c (image_instantiate): don't use fallbacks when
9474         instantiating a face's background pixmap by inheritance.
9475
9476 2001-01-14  Mike Sperber <mike@xemacs.org>
9477
9478         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9479         Conditionalize accordingly.
9480
9481 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9482
9483         * dumper.c (pdump_file_get): Fix a compiler warning.
9484
9485 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9486
9487         Make Purify happy when pdumping.
9488         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9489         iniitalizing all bits of new lisp object memory.
9490         * symbols.c (Fmake_local_variable): Likewise.
9491         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9492         * symbols.c (Fdefvaralias): Likewise.
9493         * mule-charset.c (vars_of_mule_charset): Likewise.
9494
9495 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9496         Add the `-nd' flag when running pre-dump operations under the debugger.
9497         * .dbxrc (run-temacs): Add `-nd'.
9498         * .dbxrc (update-elc): Likewise.
9499         * .dbxrc (dump-temacs): Likewise.
9500         * .gdbinit (run-temacs): Likewise.
9501         * .gdbinit (check-temacs): Likewise.
9502         * .gdbinit (update-elc): Likewise.
9503         * .gdbinit (dump-temacs): Likewise.
9504
9505 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9506
9507         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9508         export OBJECT_MODE=64
9509         configure --pdump --use-union-type=no
9510         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9511         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9512
9513         * miscplay.c (sndcnv8U_2mono):
9514         Avoid two uses of `++' in the same expression.
9515         Suppresses a GCC warning.
9516
9517 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9518
9519         Make sure future compilers don't miscompile alloc.c.
9520         * alloc.c:
9521         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9522         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9523
9524 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9525
9526         * dumper.c: A little post-pdump-rename comment fixup.
9527
9528 2001-01-09  Jerry James  <james@eecs.ku.edu>
9529
9530         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9531
9532 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9533
9534         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9535         script:
9536         #!/bin/sh
9537         replace_symbol () {
9538           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9539         }
9540
9541         replace_symbol pdump_wire_lists pdump_weak_object_chains
9542         replace_symbol pdump_wire_list dump_add_weak_object_chain
9543
9544         replace_symbol pdump_wires pdump_root_objects
9545         replace_symbol pdump_wire dump_add_root_object
9546
9547         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9548         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9549
9550         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9551         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9552         replace_symbol dumpstructinfo pdump_root_struct_ptr
9553         replace_symbol dumpstruct dump_add_root_struct_ptr
9554
9555         replace_symbol dumpopaque dump_add_opaque
9556         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9557         replace_symbol dumpopaqueinfos pdump_opaques
9558         replace_symbol dumpopaqueinfo pdump_opaque
9559
9560         replace_symbol nb_structdump nb_root_struct_ptrs
9561         replace_symbol nb_opaquedump nb_opaques
9562
9563         replace_symbol align_table pdump_align_table
9564         replace_symbol dump_header pdump_header
9565
9566         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9567         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9568
9569
9570 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9571
9572         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9573         optimizing bytecount_to_charcount().
9574
9575 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9576
9577         * config.h.in:
9578         (HAVE_DLFCN_H): Removed.
9579         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9580
9581 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9582
9583         Portable dumper maintainability improvements.
9584         * alloc.c (staticpro):
9585         * alloc.c (staticpro_nodump):
9586         * alloc.c (garbage_collect_1):
9587         * alloc.c (reinit_alloc_once_early):
9588         * alloc.c (init_alloc_once_early):
9589         * alloc.c: Move dumper functions to alloc.c.
9590         * dumper.c (pdump_backtrace):
9591         * dumper.c (pdump_dump_structs):
9592         * dumper.c (pdump_dump_opaques):
9593         * dumper.c (pdump_dump_rtables):
9594         * dumper.c (pdump_dump_wired):
9595         * dumper.c (pdump):
9596         * dumper.c (pdump_load_check):
9597         * dumper.c (pdump_load_finish):
9598         * dumper.c (pdump_file_unmap):
9599         * dumper.c (pdump_file_get):
9600         * dumper.c (pdump_resource_free):
9601         * dumper.c (pdump_resource_get):
9602         * dumper.c (pdump_file_free):
9603         * dumper.c (pdump_file_try):
9604         * dumper.c (pdump_load):
9605         Remove fixed size limits on staticpro(), staticpro_nodump(),
9606         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9607         Remove custom code for dumping lrecord_implementations_table - use
9608         dumpopaque instead.
9609         Remove (most of the) custom code for dumping staticpros - dump it
9610         like any other dynarr.
9611
9612         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9613         * dumper.c: Moved functions from alloc.c.
9614         * alloc.c (dumpstruct): Moved to dumper.c.
9615         * alloc.c (dumpopaque): Likewise.
9616         * alloc.c (pdump_wire): Likewise.
9617         * alloc.c (pdump_wire_list): Likewise.
9618
9619         * lisp.h (Dynarr_sizeof): New.
9620         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9621         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9622         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9623
9624         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9625         * lisp.h (dumpopaque): ditto.
9626         * lisp.h (pdump_wire): ditto.
9627         * lisp.h (pdump_wire_list): ditto.
9628
9629 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9630
9631         * make-src-depend (PrintPatternDeps):
9632         Use `sort' to make output independent of perl version.
9633
9634 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9635
9636         Port to Netbsd 1.5.
9637         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9638         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9639
9640 2001-01-03  Didier Verna  <didier@xemacs.org>
9641
9642         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9643         that `focus_frame' is alive before thinking of calling
9644         `redisplay_redraw_cursor' on it.
9645
9646 2001-01-08  Martin Buchholz <martin@xemacs.org>
9647
9648         * XEmacs 21.2.40 is released.
9649
9650 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9651
9652         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9653
9654 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9655
9656         * alloc.c (dbg_valmask): Make const.
9657         * alloc.c (dbg_typemask): Make const.
9658         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9659         * alloc.c (dbg_valbits): Make const.
9660         * alloc.c (dbg_gctypebits): Make const.
9661
9662 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9663
9664         * redisplay-x.c (x_bevel_area):
9665         redisplay.h (struct rune):
9666         Typo fixes in comments.
9667
9668 2001-01-05  Andy Piper  <andy@xemacs.org>
9669
9670         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9671         adjustment.
9672
9673         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9674
9675 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9676
9677         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9678
9679         * mule-ccl.c (stack_idx_of_map_multiple):
9680         Non const global data must not be initialized!
9681         Found by MIYASHITA Hisashi.
9682
9683 2001-01-02  Andy Piper  <andy@xemacs.org>
9684
9685         * frame.c (change_frame_size): make sure frame size is always
9686         marked as changed.
9687
9688         * glyphs.c (image_instance_layout): minor code reuse.
9689
9690         * window.c (Fcurrent_window_configuration): revert previous
9691         change.
9692
9693 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9694
9695         * glyphs.h:
9696         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9697
9698 2000-12-31  Andy Piper  <andy@xemacs.org>
9699
9700         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9701         when widget gets unmapped.
9702
9703         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9704         function. Make sure widgets losing focus don't just drop it.
9705         (handle_focus_event_1): record the widget with focus.
9706
9707 2000-12-31  Andy Piper  <andy@xemacs.org>
9708
9709         * window.c (allocate_window): use
9710         make_image_instance_cache_hash_table.
9711         (make_dummy_parent): ditto.
9712         (Fset_window_configuration): ditto.
9713
9714         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9715
9716         * glyphs.c (process_image_string_instantiator): use
9717         INSTANTIATOR_TYPE.
9718         (get_image_instantiator_governing_domain): ditto.
9719         (normalize_image_instantiator): ditto.
9720         (instantiate_image_instantiator): ditto.
9721         (make_image_instance_1): ditto.
9722         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9723         (instantiator_eq_equal): new function for use with instance hash
9724         tables.
9725         (instantiator_eq_hash): ditto.
9726         (make_image_instance_cache_hash_table): create a suitable hash
9727         table for storing image instances.
9728
9729         * elhash.h (hash_table_weakness): new internal weakness type
9730         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9731         declare new functions.
9732
9733         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9734         another weakness type for glyphs.
9735         (make_standard_lisp_hash_table): new function split out from
9736         make_general_lisp_hash_table.
9737         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9738         (hash_table_instantiate): ditto.
9739         (Fmake_hash_table): ditto.
9740
9741 2000-12-31  Martin Buchholz <martin@xemacs.org>
9742
9743         * XEmacs 21.2.39 is released.
9744
9745 2000-12-29  Andy Piper  <andy@xemacs.org>
9746
9747         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9748
9749         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9750         the frame has changed so that we pick up geometry changes such as
9751         menubar visibility.
9752
9753 2000-12-28  Andy Piper  <andy@xemacs.org>
9754
9755         * lastfile.c (my_ebss): make a char array so we can pad the
9756         bss. Fixes cygwin unexec.
9757
9758         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9759
9760 2000-12-26  Andy Piper  <andy@xemacs.org>
9761
9762         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9763         comments and try and be more precise about a non-/SIGIO world.
9764         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9765         SIGIO.
9766
9767         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9768         we don't normalize to zero width or height.
9769
9770 2000-12-24  Andy Piper  <andy@xemacs.org>
9771
9772         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9773
9774 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9775
9776         * s/sco5.h: SCO 5 has pty support.
9777
9778 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9779
9780         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9781         input-method-xlib.c contains whole contents of input-method-xfs.c,
9782         so we can use input-method-xlib.c's code for USE_XFONTSET
9783         using #ifdefs.
9784         * input-method-xfs.c: removed.
9785
9786 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9787
9788         * file-coding.h (enum coding_category_type): reorder enumerators to
9789         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9790         (now one greater than largest real coding_category_type enumerator).
9791         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9792         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9793         Fcoding_category_list, Fset_coding_priority_list,
9794         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9795         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9796
9797 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9798
9799         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9800         * redisplay-output.c (redisplay_output_window): Clear top of window
9801         when face is changed.
9802         * redisplay-x.c (x_redraw_exposed_window): Call
9803         redisplay_clear_top_of_window.
9804         * redisplay.h: Publish redisplay_clear_top_of_window.
9805
9806 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9807
9808         * buffer.c (Fkill_buffer): Map over all devices.
9809         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9810         (list_windows): New function.
9811         (list_all_windows): Ditto.
9812         (Freplace_buffer_in_windows): Use them.
9813
9814 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9815
9816         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9817         (Fopen_database): Use `db_create' instead of `db_open'.
9818         (syms_of_database): Initialize Qqueue.
9819
9820 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9821
9822         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9823         buffer_local_face_property.
9824         * buffer.h (struct buffer): New member buffer_local_face_property.
9825         * window.c (Fset_window_buffer):  Mark window's face as changed
9826         when buffer has buffer local face.
9827         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9828         * objects.c (color_after_change): Set buffer_local_face_property
9829         when locale of face specifier is buffer.
9830         * objects.c (font_after_change): Ditto.
9831         * objects.c (face_boolean_after_change): Ditto.
9832         * glyphs.c (image_after_change): Ditto.
9833
9834 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9835
9836         * nt.c (mswindows_fstat): Report file permissions, volume serial
9837         number, etc. Code adapted from FSF Emacs 20.7.
9838
9839 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9840
9841         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9842         of stat when we don't have symbolic links, to make sure
9843         mswindows_stat is called on mswindows.
9844
9845 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9846
9847         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9848
9849 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9850
9851         * doprnt.c (emacs_doprnt_1): More printing fixes.
9852         Make printing of numbers compatible with libc and FSF Emacs.
9853         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9854         Use the system printf to do most of the hard work of formatting,
9855         instead of doprnt_1().
9856         Calculate memory to allocate for format string.
9857         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9858         (doprnt_1): Cleaner code and documentation.
9859
9860 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9861
9862         * Makefile.in.in: Use the loop variable to install headers.
9863
9864 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9865
9866         * window.c (Fsplit_window): Don't invalidate face cache.
9867
9868 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9869
9870         * minibuf.c (Fall_completions): Undo the previous change
9871         which removed checking elements start with space.
9872
9873 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9874
9875         * mule-canna.c: Didier suppression.
9876
9877 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9878
9879         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9880         (warning suppression).  Add English comment translations.
9881
9882 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9883
9884         * unexelfsgi.c (unexec): Better test for mmap failure.
9885
9886 2000-12-05  Martin Buchholz <martin@xemacs.org>
9887
9888         * XEmacs 21.2.38 is released.
9889
9890 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9891
9892         * redisplay.c (bar-cursor): Make a user variable.
9893
9894         * symsinit.h: Add init_postgresql_from_environment.
9895
9896 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9897
9898         * regex.c: Convert to clean C.
9899
9900 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9901
9902         * realpath.c:
9903         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9904         initialization.
9905         (sys_readlink): renamed to system_readlink to avoid conflict with
9906         the other sys_readlink.
9907
9908 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9909
9910         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9911
9912 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9913
9914         * postgresql.c (init_postgresql_from_environment): new function.
9915         (vars_of_postgresql): Move code initializing Lisp variables out and
9916         into init_postgresql_from_environment.
9917         emacs.c (main_1): Call init_postgresql_from_environment if and only
9918         if running a dumped XEmacs.
9919
9920 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9921
9922         * buffer.c: Make find-file-compare-truenames default to true on
9923         windows.
9924
9925         * realpath.c (win32_abs_start):
9926         (cygwin_readlink):
9927         (win32_readlink): New functions.
9928         (xrealpath): Return really real filenames on windows.
9929
9930         * fileio.c (Ffile_truename): Make file-truename work on windows.
9931
9932 2000-11-29  Didier Verna  <didier@xemacs.org>
9933
9934         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9935         * faces.c (update_face_cachel_data): use it.
9936         * faces.c (add_face_cachel): use it. Complete background pixmap
9937         frobbing in face cache if `update_face_cachel_data' has not done so.
9938
9939 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9940
9941         * search.c (string_match_1): Don't set last_thing_searched
9942         when search failed.
9943
9944 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9945
9946         * buffer.c: Include casetab.h
9947         (common_init_complex_vars_of_buffer): Use new case-table object.
9948         * buffer.h: Include casetab.h
9949         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9950         (DOWNCASE_TABLE_OF): Ditto.
9951         * bufslots.h: Remove char-tables and add case-table.
9952         * casetab.c: Include casetab.h
9953         (CASE_TABLE_P): Removed.
9954         (mark_case_table): New function.
9955         (allocate_case_table): New function.
9956         (Fcase_table_p): Use new case-table.
9957         (case_table_char): New function.
9958         (Fget_case_table): Ditto.
9959         (Fput_case_table): Ditto.
9960         (Fput_case_table_pair): Ditto.
9961         (Fcopy_case_table): Ditto.
9962         (Fcurrent_case_table): Return case-table.
9963         (Fstandard_case_table): Return case-table.
9964         (Fset_case_table): Fix doc-string.
9965         (set_case_table): Use case-table
9966         (syms_of_casetab): DEFSUBR new functions.
9967         (complex_vars_of_casetab): Set up standard case-table.
9968         * casetab.h: New file.
9969         * editfns.c: Include casetab.h
9970         (Fcompare_buffer_substrings): Use case-table.
9971         * inline.c: Include casetab.h
9972         * lisp.h: Remove bogus extern.
9973         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9974         * search.c: Include casetab.h
9975         (TRANSLATE_ASCII): Removed.
9976         (TRANSLATE): Unconditionally translate character.
9977         (looking_at_1): Use case-table.
9978         (string_match_1): Ditto.
9979         (fast_string_match): Ditto.
9980         (search_command): Ditto.
9981         (search_buffer): Separate boyer_moore.  Check whether
9982         boyer_moore is possible.
9983         (simple_search): New function.
9984         (boyer_moore): Separated from search_buffer. Translate char.
9985
9986 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9987
9988         * regex.c (RE_TR_ASCII): Removed.
9989         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9990         (PATFETCH): Call PATFETCH_RAW.
9991         (PATFETCH_RAW): Fetch Emchar.
9992         (PATUNFETCH): Decrement charptr.
9993         (GET_BUFFER_SPACE): Rename b to buf_end.
9994         (BUF_PUSH): Ditto.
9995         (BUF_PUSH_2): Ditto.
9996         (BUF_PUSH_3): Ditto.
9997         (EXTEND_BUFFER): Ditto.
9998         (SET_LIST_BIT): Ditto.
9999         (regex_compile): Ditto.  Translate non ASCII char.
10000         (compile_range): Ditto.
10001         (re_search_2): Ditto.
10002         (re_match_2_internal): Compare Emchar.
10003         (bcmp_translate): Ditto.
10004
10005 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
10006
10007         * lisp.h (basic char/int typedefs):  comment improvement.
10008
10009 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
10010
10011         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
10012         unstomp inhibit_site_lisp.  Improve comments.
10013
10014 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
10015
10016         * mule-charset.c (Fcharset_property):  improve type checking, comments.
10017
10018 2000-11-28  Andy Piper  <andy@xemacs.org>
10019
10020         * redisplay-output.c (redisplay_output_subwindow): make sure we do
10021         clipped display for windows in the gutter also.
10022         (redisplay_display_boxes_in_window_p): change semantics of return
10023         codes to be more intuitive.
10024
10025         * gutter.h: declare display_boxes_in_gutter_p.
10026
10027         * gutter.c (display_boxes_in_gutter_p): new function for
10028         redisplay.
10029
10030 2000-11-22  Andy Piper  <andy@xemacs.org>
10031
10032         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
10033         autodetect domain.
10034
10035 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
10036
10037         * callproc.c (Fold_call_process_internal):
10038         * gpm.c (Freceive_gpm_event):
10039         (tty_get_foreign_selection): Might be just warning supression.
10040         * fileio.c (Fwrite_region_internal):
10041         (Fset_visited_file_modtime):
10042         * keymap.c (event_matches_key_specifier_p):
10043         Initialize GCPROed variable.
10044
10045         * menubar-x.c (command_builder_find_menu_accelerator):
10046         Initialize before use.
10047
10048 2000-11-23  Andy Piper  <andy@xemacs.org>
10049
10050         * unexcw.c (unexec): make the resulting executable executable.
10051
10052 2000-11-21  Martin Buchholz  <martin@xemacs.org>
10053
10054         * doc.c (get_doc_string):
10055         Use size_t, not int, for result of XSTRING_LENGTH.
10056
10057         * cmds.c (Fdelete_char):
10058         * cmds.c (Fpoint_at_eol):
10059         * cmds.c (Fself_insert_command):
10060         Use EMACS_INT, not int, for result of XINT.
10061         Someday, someone will want to insert more than 2**31 identical characters.
10062
10063         * cmds.c (Fdelete_char):
10064         * cmds.c (Fdelete_backward_char):
10065         * syntax.c (Fforward_word):
10066         * syntax.c (Fforward_comment):
10067         Make COUNT argument optional, for consistency with forward-char et al.
10068
10069 2000-11-22  Martin Buchholz  <martin@xemacs.org>
10070
10071         * lisp.h:
10072         * print.c (long_to_string):
10073         Return a useful value: the pointer at end of data written.
10074
10075         * doprnt.c:
10076         Use `static const char * const' for constant strings.
10077         (union printf_arg): Delete `i', `ui' members.
10078         (get_doprnt_args):
10079         (emacs_doprnt_1):
10080         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
10081         Do all printf-ing via the `l' specifier.
10082         Use EMACS_INT instead of int.
10083         Optimize.
10084
10085 2000-11-20  Didier Verna  <didier@xemacs.org>
10086
10087         * faces.c (update_face_cachel_data): don't frob the background
10088         pixmap when the window is being created. The face is needed but
10089         does not exist yet.
10090
10091 2000-11-20  Andy Piper  <andy@xemacs.org>
10092
10093         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
10094         messing with a debug environment.
10095
10096 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10097
10098         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
10099
10100 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10101
10102         * casetab.c (Fcase_table_p): Fix compile error and crash.
10103
10104 2000-11-18  Philip Aston  <philipa@mail.com>
10105
10106         * s/cygwin32.h: Cygwin has SVR4-like pty support.
10107
10108 2000-11-18  Martin Buchholz  <martin@xemacs.org>
10109
10110         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
10111         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
10112
10113 2000-11-17  Martin Buchholz  <martin@xemacs.org>
10114
10115         * config.h.in: Define HAVE_ELF_H if elf.h exists.
10116         * unexelf.c: Use HAVE_ELF_H.
10117         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
10118         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
10119         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
10120         Greg Harrington <greg_harrington@hotmail.com> provided a machine
10121         for testing.
10122         So this is an unexelfsgi.c from a different line of development.
10123
10124 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10125
10126         * regex.c (RE_TR_ASCII): New function.
10127         (RE_TRANSLATE): Call it.
10128
10129 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10130
10131         * buffer.h (TRT_TABLE_OF): Remove assert.
10132         (IN_TRT_TABLE_DOMAIN): Removed.
10133
10134 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10135
10136         * free-hook.c (log_gcpro):
10137         (show_gcprohist): Add support for GCPRO5.
10138
10139 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
10140
10141         * emacs.c (main_1): Improve -sd error message when --pdump=no.
10142
10143 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
10144
10145         * symeval.h: Declare flush_all_buffer_local_cache.
10146
10147         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
10148         (flush_buffer_local_cache): Added.
10149         (flush_all_buffer_local_cache): Added.
10150
10151         * lrecord.h: Remove unused XD_LO_RESET_NIL.
10152
10153         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
10154         (pdump_dump_data): Ditto.
10155         (pdump_reloc_one): Ditto.
10156         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
10157         before dumping.
10158
10159
10160 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10161
10162         * buffer.c: Remove if 0'ed entry.
10163         * buffer.h: Rewrite TRT to use char-table.
10164         * bufslots.h: Remove mirror tables.
10165         * casetab.c: Remove mirror tables.
10166         (CASE_TABLE_P): New macro.
10167         (Fcase_table_p): Element of a case table is string or char-table.
10168         (make_mirror_trt_table): Removed.
10169         (set_case_table): Setup char-table from strings for backward
10170         compatibility.
10171         * dired.c (Fdirectory_files):
10172         * dired-msw.c: (mswindows_get_files):
10173         * lisp.h: Change prototype of re_pattern_buffer.
10174         * regex.c: (RE_TRANSLATE): New macro.
10175         (TRANSLATE_P): Ditto.
10176         Change translate to type RE_TRANSLATE_TYPE.
10177         * regex.h: Define RE_TRANSLATE_TYPE
10178         * search.c (TRANSLATE): New macro.
10179         (TRANSLATE_ASCII): New macro.
10180         Translate table is changed to Lisp_Object.
10181         (signal_failure): Inhibit return.
10182
10183 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10184
10185         * device-msw.c:
10186         * eldap.c:
10187         * event-Xt.c:
10188         * event-stream.c:
10189         * print.c:
10190         Do UNGCPRO before return.
10191
10192 2000-11-14  Martin Buchholz <martin@xemacs.org>
10193
10194         * XEmacs 21.2.37 is released.
10195
10196 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10197
10198         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
10199         Add comments about discarded return value.
10200
10201 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10202
10203         * callint.c:
10204         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
10205
10206 2000-10-27  Andy Piper  <andy@xemacs.org>
10207
10208         * gutter.c (Fset_default_gutter_position): default left and right
10209         gutters to visible.
10210         (calculate_gutter_size): calculate resonable heuristic for left
10211         and right gutter sizes.
10212         (specifier_vars_of_gutter): change left and right gutter sizes to
10213         autodetect.
10214         (calculate_gutter_size_from_display_lines): new function.
10215         (output_gutter): check for resizing on left and right gutters.
10216         (clear_gutter): don't special case top and left gutters.
10217         (specifier_vars_of_gutter): use new signature for
10218         set_specifier_caching.
10219
10220         * glyphs-x.c (x_redisplay_widget): spelling fix.
10221         * glyphs.c (specifier_vars_of_glyphs):
10222         * menubar.c (specifier_vars_of_menubar):
10223         * redisplay.c (specifier_vars_of_redisplay):
10224         * toolbar.c (specifier_vars_of_toolbar):
10225         * window.c (specifier_vars_of_window):
10226         * scrollbar.c (specifier_vars_of_scrollbar):
10227         (complex_vars_of_scrollbar): use new signature for
10228         set_specifier_caching.
10229
10230         * specifier.c (set_specifier_caching): include recompute flag.
10231         (recompute_one_cached_specifier_in_window): always recompute if
10232         flag set.
10233         (recompute_one_cached_specifier_in_frame): ditto.
10234
10235         * specifier.h (struct specifier_caching): add recompute flag.
10236
10237 2000-10-24  Andy Piper  <andy@xemacs.org>
10238
10239         * unexcw.c (copy_executable_and_dump_data_section): add new
10240         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10241         5.0 happy.
10242
10243 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10244
10245         * console-x.h (x_device): New member modifier_release_time.
10246         * event-Xt.c (x_handle_sticky_modifiers):
10247         Bound interval modifier keys are sticky.
10248         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10249         * events.h: extern it.
10250
10251 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10252
10253         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10254
10255 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10256
10257         * event-stream.c (execute_command_event): Preserve current_events
10258         and the like when event is misc-user-event.
10259         Inhibit quit during the call to maybe_echo_keys.
10260
10261 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10262
10263         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10264         symlink when buffer is killed.
10265         (inhibit_clash_detection): New variable.
10266
10267 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10268
10269         * console.c (Fset_input_method): Trigger redisplay on tty.
10270
10271 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10272
10273         * process.c (Fprocess_status): Revert to previous behavior:
10274         (process-status "nosuchprocess") ==> nil
10275
10276 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10277
10278         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10279         Work around another GCC 2.95.2 optimizer bug.
10280
10281 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10282
10283         * process.c (Fget_process): Use LIST_LOOP_2.
10284         (kill_buffer_processes): Use LIST_LOOP_2.
10285
10286         * minibuf.c (Fall_completions):
10287         Delete old non-functional code for FSF fourth argument.
10288
10289         * frame.c (frame_matches_frame_spec):
10290         Renamed from `frame_matches_frametype'.  Update all callers.
10291         (device_matches_device_spec):
10292         Renamed from 'device_matches_console_spec'.  Update all callers.
10293
10294         * doc.c (Fsubstitute_command_keys):
10295         Remove buffer overflow crash.  Small code cleanups.
10296
10297         * casetab.c (check_case_table): Simpler code.
10298
10299         * window.c (Freplace_buffer_in_windows):
10300         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10301         (and similar implementation) as Fdelete_windows_on.
10302         Update all callers.
10303
10304         * alloc.c (Fmake_list):
10305         * alloc.c (make_vector):
10306         * alloc.c (Fmake_vector):
10307         * alloc.c (make_bit_vector):
10308         * alloc.c (Fmake_bit_vector):
10309         * alloc.c (Fbit_vector):
10310         * alloc.c (Fmake_string):
10311         * alloc.c (Fpurecopy):
10312         * alloc.c (Fmemory_limit):
10313         * buffer.c:
10314         * buffer.c (Fget_buffer):
10315         * buffer.c (Fkill_buffer):
10316         * buffer.c (complex_vars_of_buffer):
10317         * bytecode.c (Fcompiled_function_stack_depth):
10318         * callint.c (Fprefix_numeric_value):
10319         * event-stream.c:
10320         * event-stream.c (Fread_key_sequence):
10321         * casetab.c:
10322         * casetab.c (Fcase_table_p):
10323         * casetab.c (check_case_table):
10324         * casetab.c (Fset_case_table):
10325         * casetab.c (Fset_standard_case_table):
10326         * chartab.c:
10327         * chartab.c (Fchar_table_type):
10328         * chartab.c (Freset_char_table):
10329         * chartab.c (Fget_char_table):
10330         * chartab.c (Fget_range_char_table):
10331         * chartab.c (Fput_char_table):
10332         * chartab.c (Fmap_char_table):
10333         * chartab.c (Fcategory_table_p):
10334         * chartab.c (Fcheck_category_at):
10335         * chartab.c (Fchar_in_category_p):
10336         * chartab.c (Fcategory_table):
10337         * chartab.c (Fcopy_category_table):
10338         * chartab.c (Fset_category_table):
10339         * chartab.c (Fcategory_designator_p):
10340         * chartab.c (Fcategory_table_value_p):
10341         * cmds.c (Fdelete_char):
10342         * cmds.c (Fdelete_backward_char):
10343         * cmds.c (Fself_insert_command):
10344         * cmds.c (Fself_insert_internal):
10345         * console.c (Fvalid_console_type_p):
10346         * console.c (Fcdfw_console):
10347         * console.c (Fconsole_type):
10348         * console.c (Fconsole_name):
10349         * console.c (Fconsole_device_list):
10350         * console.c (Fconsole_on_window_system_p):
10351         * data.c:
10352         * data.c (Feq):
10353         * data.c (Fold_eq):
10354         * data.c (Fsubr_interactive):
10355         * data.c (Fchar_to_int):
10356         * data.c (Fint_to_char):
10357         * data.c (Fsetcar):
10358         * data.c (Fsetcdr):
10359         * data.c (Fnumber_to_string):
10360         * data.c (Fstring_to_number):
10361         * data.c (Frem):
10362         * database.c (mark_database):
10363         * database.c (finalize_database):
10364         * database.c (Fdatabase_live_p):
10365         * database.c (Fdatabasep):
10366         * device-x.c (Fx_get_resource):
10367         * device.c (Fdfw_device):
10368         * dired.c:
10369         * dired.c (Ffile_name_completion):
10370         * dired.c (Ffile_name_all_completions):
10371         * dired.c (Fuser_name_completion):
10372         * dired.c (Fuser_name_completion_1):
10373         * dired.c (Fuser_name_all_completions):
10374         * doc.c (Fdocumentation):
10375         * doc.c (Fdocumentation_property):
10376         * doc.c (Fsubstitute_command_keys):
10377         * editfns.c:
10378         * editfns.c (Fchar_to_string):
10379         * editfns.c (Fstring_to_char):
10380         * editfns.c (Ftemp_directory):
10381         * editfns.c (Finsert_char):
10382         * editfns.c (Fbuffer_substring_no_properties):
10383         * editfns.c (Fnarrow_to_region):
10384         * editfns.c (Fchar_equal):
10385         * editfns.c (Fchar_Equal):
10386         * editfns.c (Ftranspose_regions):
10387         * emacs.c (Fdump_emacs):
10388         * eval.c (Fthrow):
10389         * eval.c (Fcommand_execute):
10390         * eval.c (Fautoload):
10391         * eval.c (Fbacktrace):
10392         * eval.c (Fbacktrace_frame):
10393         * events.c:
10394         * events.c (Fcopy_event):
10395         * events.c (Fcharacter_to_event):
10396         * events.c (Fevent_button):
10397         * events.c (Fevent_process):
10398         * extents.c:
10399         * extents.c (Fnext_extent_change):
10400         * extents.c (Fextent_property):
10401         * faces.c (Ffacep):
10402         * faces.c (Fmake_face):
10403         * file-coding.c:
10404         * file-coding.c (Fencode_shift_jis_char):
10405         * file-coding.c (Fencode_big5_char):
10406         * fileio.c (Ffile_name_directory):
10407         * fileio.c (Ffile_name_nondirectory):
10408         * fileio.c (Ffile_name_as_directory):
10409         * fileio.c (Fdirectory_file_name):
10410         * fileio.c (Ffile_truename):
10411         * fileio.c (Fsubstitute_in_file_name):
10412         * fileio.c (Ffile_modes):
10413         * fileio.c (Fset_file_modes):
10414         * fileio.c (Fset_default_file_modes):
10415         * fileio.c (Fverify_visited_file_modtime):
10416         * floatfns.c (Facos):
10417         * floatfns.c (Fasin):
10418         * floatfns.c (Fatan):
10419         * floatfns.c (Fcos):
10420         * floatfns.c (Fsin):
10421         * floatfns.c (Ftan):
10422         * floatfns.c (Fbessel_j0):
10423         * floatfns.c (Fbessel_j1):
10424         * floatfns.c (Fbessel_jn):
10425         * floatfns.c (Fbessel_y0):
10426         * floatfns.c (Fbessel_y1):
10427         * floatfns.c (Fbessel_yn):
10428         * floatfns.c (Ferf):
10429         * floatfns.c (Ferfc):
10430         * floatfns.c (Flog_gamma):
10431         * floatfns.c (Fexp):
10432         * floatfns.c (Fexpt):
10433         * floatfns.c (Flog):
10434         * floatfns.c (Flog10):
10435         * floatfns.c (Fsqrt):
10436         * floatfns.c (Fcube_root):
10437         * floatfns.c (Facosh):
10438         * floatfns.c (Fasinh):
10439         * floatfns.c (Fatanh):
10440         * floatfns.c (Fcosh):
10441         * floatfns.c (Fsinh):
10442         * floatfns.c (Ftanh):
10443         * floatfns.c (Fabs):
10444         * floatfns.c (Ffloat):
10445         * floatfns.c (Flogb):
10446         * floatfns.c (Fceiling):
10447         * floatfns.c (Ffloor):
10448         * floatfns.c (Fround):
10449         * floatfns.c (Ftruncate):
10450         * floatfns.c (Ffceiling):
10451         * floatfns.c (Fffloor):
10452         * floatfns.c (Ffround):
10453         * floatfns.c (Fftruncate):
10454         * fns.c (Fstring_equal):
10455         * fns.c (Fstring_lessp):
10456         * fns.c (concat2):
10457         * fns.c (concat3):
10458         * fns.c (vconcat2):
10459         * fns.c (vconcat3):
10460         * fns.c (Fsubstring):
10461         * fns.c (Fassoc):
10462         * fns.c (Fold_assoc):
10463         * fns.c (assoc_no_quit):
10464         * fns.c (Fassq):
10465         * fns.c (Fold_assq):
10466         * fns.c (assq_no_quit):
10467         * fns.c (Frassoc):
10468         * fns.c (Fold_rassoc):
10469         * fns.c (Frassq):
10470         * fns.c (Fold_rassq):
10471         * fns.c (rassq_no_quit):
10472         * fns.c (Fremassoc):
10473         * fns.c (remassoc_no_quit):
10474         * fns.c (Fremassq):
10475         * fns.c (remassq_no_quit):
10476         * fns.c (Fremrassoc):
10477         * fns.c (Fremrassq):
10478         * fns.c (remrassq_no_quit):
10479         * fns.c (Fsort):
10480         * fns.c (Fplist_get):
10481         * fns.c (Fplist_put):
10482         * fns.c (Fplist_remprop):
10483         * fns.c (Fplist_member):
10484         * fns.c (Flax_plist_get):
10485         * fns.c (Flax_plist_put):
10486         * fns.c (Flax_plist_remprop):
10487         * fns.c (Flax_plist_member):
10488         * fns.c (Fequal):
10489         * fns.c (Fold_equal):
10490         * fns.c (Frequire):
10491         * fns.c (Fbase64_encode_region):
10492         * fns.c (Fbase64_encode_string):
10493         * fns.c (Fbase64_decode_region):
10494         * frame.c:
10495         * frame.c (frame_matches_frame_spec):
10496         * frame.c (device_matches_device_spec):
10497         * frame.c (next_frame):
10498         * frame.c (previous_frame):
10499         * frame.c (Fnext_frame):
10500         * frame.c (Fprevious_frame):
10501         * frame.c (Fframe_property):
10502         * frame.c (Fset_frame_height):
10503         * frame.c (Fset_frame_size):
10504         * frame.h:
10505         * glyphs.c:
10506         * glyphs.c (if):
10507         * glyphs.c (decode_error_behavior_flag):
10508         * glyphs.c (Fmake_image_instance):
10509         * indent.c (Findent_to):
10510         * intl.c (Fignore_defer_gettext):
10511         * keymap.c (Fkeymapp):
10512         * keymap.c (Flookup_key):
10513         * lread.c:
10514         * lread.c (Fload_internal):
10515         * lread.c (Feval_buffer):
10516         * lread.c (Feval_region):
10517         * macros.c (Fexecute_kbd_macro):
10518         * marker.c (set_marker_internal):
10519         * marker.c (Fset_marker):
10520         * marker.c (set_marker_restricted):
10521         * marker.c (Fcopy_marker):
10522         * marker.c (noseeum_copy_marker):
10523         * menubar.c:
10524         * menubar.c (Fpopup_menu):
10525         * minibuf.c:
10526         * mule-charset.c (Fcharset_name):
10527         * mule-charset.c (Fchar_charset):
10528         * mule-charset.c (Fchar_octet):
10529         * mule-charset.c (Fsplit_char):
10530         * mule-wnnfns.c (Fwnn_open):
10531         * mule-wnnfns.c (Fwnn_dict_comment):
10532         * mule-wnnfns.c (Fwnn_quit_henkan):
10533         * mule-wnnfns.c (Fwnn_word_toroku):
10534         * mule-wnnfns.c (Fwnn_word_sakujo):
10535         * mule-wnnfns.c (Fwnn_word_use):
10536         * mule-wnnfns.c (Fwnn_hindo_set):
10537         * objects.c:
10538         * objects.c (Fmake_color_instance):
10539         * objects.c (Fmake_font_instance):
10540         * print.c (Fwrite_char):
10541         * process.c:
10542         * process.c (mark_process):
10543         * process.c (print_process):
10544         * process.c (get_process_from_usid):
10545         * process.c (Fprocessp):
10546         * process.c (Fprocess_live_p):
10547         * process.c (Fget_process):
10548         * process.c (Fget_buffer_process):
10549         * process.c (get_process):
10550         * process.c (Fprocess_id):
10551         * process.c (Fprocess_name):
10552         * process.c (Fprocess_command):
10553         * process.c (init_process_io_handles):
10554         * process.c (start_process_unwind):
10555         * process.c (Fstart_process_internal):
10556         * process.c (Fopen_multicast_group_internal):
10557         * process.c (Fset_process_window_size):
10558         * process.c (read_process_output):
10559         * process.c (send_process):
10560         * process.c (Fprocess_tty_name):
10561         * process.c (Fset_process_buffer):
10562         * process.c (Fprocess_buffer):
10563         * process.c (Fprocess_mark):
10564         * process.c (set_process_filter):
10565         * process.c (Fset_process_filter):
10566         * process.c (Fprocess_filter):
10567         * process.c (Fprocess_send_region):
10568         * process.c (Fprocess_send_string):
10569         * process.c (exec_sentinel):
10570         * process.c (Fset_process_sentinel):
10571         * process.c (Fprocess_sentinel):
10572         * process.c (status_notify):
10573         * process.c (Fprocess_status):
10574         * process.c (Fprocess_exit_status):
10575         * process.c (process_send_signal):
10576         * process.c (Fprocess_send_eof):
10577         * process.c (deactivate_process):
10578         * process.c (remove_process):
10579         * process.c (Fdelete_process):
10580         * process.c (kill_buffer_processes):
10581         * process.c (Fprocess_kill_without_query):
10582         * process.c (Fprocess_kill_without_query_p):
10583         * rangetab.c:
10584         * rangetab.c (Fget_range_table):
10585         * rangetab.c (Fput_range_table):
10586         * rangetab.c (Fremove_range_table):
10587         * rangetab.c (Fclear_range_table):
10588         * search.c:
10589         * search.c (Fskip_chars_forward):
10590         * search.c (Fskip_chars_backward):
10591         * search.c (Fskip_syntax_forward):
10592         * search.c (Fskip_syntax_backward):
10593         * search.c (search_command):
10594         * search.c (Freplace_match):
10595         * search.c (Fregexp_quote):
10596         * select.c (Fown_selection_internal):
10597         * select.c (Fselection_owner_p):
10598         * select.c (Fselection_exists_p):
10599         * select.c (Fget_selection_internal):
10600         * specifier.c:
10601         * symbols.c:
10602         * symbols.c (Fintern):
10603         * symbols.c (Fintern_soft):
10604         * symbols.c (Funintern):
10605         * symbols.c (Fapropos_internal):
10606         * symbols.c (Fset_default):
10607         * syntax.c:
10608         * syntax.c (Fsyntax_table_p):
10609         * syntax.c (Fcopy_syntax_table):
10610         * syntax.c (Fset_syntax_table):
10611         * syntax.c (Fchar_syntax):
10612         * syntax.c (syntax_match):
10613         * syntax.c (Fmatching_paren):
10614         * syntax.c (Fforward_word):
10615         * syntax.c (scan_lists):
10616         * syntax.c (Fscan_lists):
10617         * syntax.c (Fscan_sexps):
10618         * syntax.c (Fparse_partial_sexp):
10619         * toolbar.c (Fcheck_toolbar_button_syntax):
10620         * tooltalk.doc:
10621         * window.c:
10622         * window.c (Fwindowp):
10623         * window.c (Fwindow_live_p):
10624         * window.c (Fwindow_point):
10625         * window.c (Fdelete_window):
10626         * window.c (Fnext_window):
10627         * window.c (Fprevious_window):
10628         * window.c (Fother_window):
10629         * window.c (window_loop):
10630         * window.c (Fget_lru_window):
10631         * window.c (Fsplit_window):
10632         * window.c (Fenlarge_window):
10633         * window.c (Fenlarge_window_pixels):
10634         * window.c (Fshrink_window):
10635         * window.c (Fshrink_window_pixels):
10636         * window.c (change_window_height):
10637         * window.c (Fwindow_configuration_p):
10638         * window.c (Fcurrent_window_configuration):
10639         * window.h:
10640         * casefiddle.c (casify_object):
10641         * casefiddle.c (Fupcase):
10642         * casefiddle.c (Fdowncase):
10643         * casefiddle.c (Fcapitalize):
10644         * casefiddle.c (Fupcase_initials):
10645         * casefiddle.c (casify_region_internal):
10646         * casefiddle.c (casify_region):
10647         * casefiddle.c (Fupcase_region):
10648         * casefiddle.c (Fdowncase_region):
10649         * casefiddle.c (Fcapitalize_region):
10650         * casefiddle.c (Fupcase_initials_region):
10651         * casefiddle.c (Fupcase_word):
10652         * casefiddle.c (Fdowncase_word):
10653         * casefiddle.c (Fcapitalize_word):
10654         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10655         Replace 0 with '\0' when working with bytes.
10656         Replace initial "(" with "\(" in docstrings.
10657
10658 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10659
10660         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10661
10662         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10663
10664 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10665
10666         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10667
10668 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10669
10670         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10671         correctly.
10672
10673 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10674
10675         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10676         (inhibit_auto_save_session): New variable.
10677         (vars_of_fileio): Declare and initialize them.
10678         * fileio.c (Fdo_auto_save): Don't create session file if
10679         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10680
10681 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10682
10683         * sgiplay.c (play_internal): C++ compilability.
10684         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10685         * callproc.c (Fold_call_process_internal):
10686         Remove unused vars `env', `first'.
10687         * scrollbar.c (update_scrollbar_instance):
10688         #### unused var `current_window'.
10689         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10690         etc. within #ifdef NOT_YET.
10691         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10692         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10693         * specifier.c (specifier_instance):
10694         #### unused var `tag'.
10695         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10696
10697 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10698
10699         * fns.c (Fbutlast):
10700         * fns.c (list_sort):
10701         * fns.c (Ffillarray):
10702         * fns.c (bytecode_nconc2):
10703         * fns.c (Fnconc):
10704         * fns.c (mapcar1):
10705         * fns.c (Fmapconcat):
10706         Be pedantically 64-bit correct.  For the time when someone will
10707         want to have a list with length > 2**32.
10708
10709         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10710         Work around MIPSpro compiler bug.
10711
10712         * process-unix.c (unix_kill_child_process): Add snarky comment.
10713         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10714
10715         * config.h.in: Oops, _getpt ==> _getpty
10716
10717 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10718
10719         * config.h.in:
10720         * regex.c:
10721         Use void*, not char*, as return type of alloca().
10722
10723         * alloc.c (free_marker): Side effect inside assert expression!
10724
10725 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10726
10727         * mule-charset.c (Fset_charset_ccl_program): To check
10728         if the given ccl program is valid, use setup_ccl_program()
10729         instead of CHECK_VECTOR().
10730         (Fmake_charset): Likewise.
10731
10732 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10733
10734         * faces.c (get_extent_fragment_face_cache_index):
10735         Fix cachel.merged_faces memory leak.
10736
10737 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10738
10739         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10740         Reset MSB of octets obtained by DECODE_SJIS
10741         because of the incompatibility with Emacs.
10742         (ccl_driver)<CCL_ENCODE_SJIS>:
10743         Set MSB of octets before passing them to
10744         ENCODE_SJIS because of the incompatibility
10745         with Emacs.
10746
10747 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10748
10749         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10750         (DECLARE_LRECORD): Undo the last change.
10751         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10752
10753 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10754
10755         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10756         the implementation to lrecord_implementations_table.
10757
10758 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10759
10760         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10761         initial value of `lrecord_type_##c_name' and
10762         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10763         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10764         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10765         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10766         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10767
10768 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10769
10770         * miscplay.c (sndcnv8S_2mono):
10771         (sndcnv2monounsigned):
10772         (sndcnvULaw_2linear):
10773         (sndcnv16swap):
10774         Remove implementation-defined behavior.
10775
10776 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10777
10778         * input-method-xlib.c: Warning suppression.
10779
10780 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10781
10782         * mule-ccl.c: Sync up with Emacs 21.0.90.
10783         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10784         Do nothing.
10785         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10786         Likewise.
10787         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10788         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10789         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10790         leading char belongs to official 2-dimensional charset.
10791         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10792         write the given character as is.  Otherwise,
10793         if it is a multibyte char, convert it by
10794         non_ascii_set_charptr_emchar, then write it.
10795         (CCL_WRITE_STRING): Likewise.
10796         (ccl_get_compiled_code): New function.
10797         (setup_ccl_program): When ccl_prog is invalid,
10798         return -1.
10799         (Fregister_code_conversion_map): New function.
10800         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10801
10802         * mule-ccl.h: Sync up with Emacs 21.0.90.
10803         (Fregister_ccl_program): export it.
10804
10805         * redisplay-msw.c (separate_textual_runs):
10806         If ccl program is not valid, don't do ccl conversion.
10807
10808         * redisplay-x.c (separate_textual_runs): Ditto.
10809
10810         * file-coding.c (Fmake_coding_system):
10811         When type is ccl and value is vector, register it
10812         with a proper symbol.  And checks whether the
10813         given ccl program is valid.
10814         (mule_decode): When calling ccl_driver, if src indicates
10815         NULL pointer, set an empty string instead.
10816         (mule_encode): Likewise.
10817
10818 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10819
10820         The following large batch of changes gets us back to a state of
10821         C++ compilability.  Extbyte is now a char, which means that
10822         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10823
10824         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10825
10826         * sound.c (Fplay_sound): Type correctness.
10827
10828         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10829         (x_get_window_property): Type correctness.
10830         (receive_incremental_selection): unsigned char ==> Extbyte
10831         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10832         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10833         (Fx_store_cutbuffer_internal): Type correctness.
10834
10835         * process-unix.c (try_to_initialize_subtty): Type correctness.
10836
10837         * objects-x.c (x_print_color_instance): Type correctness.
10838         (x_print_font_instance): Type correctness.
10839         (x_list_fonts): SExtbyte ==> Extbyte.
10840         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10841         (x_find_charset_font): SExtbyte ==> Extbyte.
10842         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10843         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10844         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10845         Use bufbyte_strcmp.
10846
10847         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10848         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10849         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10850         (BYTE_C0_P): Use bit ops for char-signedness safety.
10851         (BYTE_C1_P): Use bit ops for char-signedness safety.
10852         (CHARSET_BY_LEADING_BYTE):
10853         (CHARSET_BY_ATTRIBUTES):
10854         Always use inline function.
10855         Use type_checking_assert.
10856         Hide chlook.
10857
10858         * mule-charset.c (non_ascii_charptr_copy_char):
10859         Modify to work with both ASCII and non-ASCII characters.
10860         Improve docs and variable names.
10861         Replace over-clever fall-through switch with a simple loop.
10862         (Lstream_get_emchar_1):
10863         Replace over-clever fall-through switch with a simple loop.
10864
10865         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10866         Warning suppression.
10867
10868         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10869         the return value of Lstream_getc, which could be EOF as well.
10870
10871         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10872
10873         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10874         APIs can be used on Extbytes without casts.  Risky!
10875         (SExtbyte): Remove.
10876         (UExtbyte): Remove.
10877
10878         * input-method-xlib.c (XIM_init_device):
10879         Use Xlib.h instead of IntrinsicP.h.
10880         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10881         which will break in X11R7.
10882         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10883         to call XRegisterIMInstantiateCallback with correct types.
10884
10885         * gui-x.c (button_item_to_widget_value): Type correctness.
10886
10887         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10888
10889         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10890         (xbm_instantiate_1): Type correctness.
10891         (BUILD_GLYPH_INST):  Type correctness.
10892
10893         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10894
10895         * file-coding.c:
10896         (decode_coding_sjis):
10897         (decode_coding_big5):
10898         (decode_coding_ucs4):
10899         (decode_coding_utf8):
10900         (decode_coding_iso2022):
10901         (decode_coding_no_conversion):
10902         Make all decoding functions take an Extbyte * arg.
10903         (encode_coding_sjis):
10904         (encode_coding_big5):
10905         (encode_coding_ucs4):
10906         (encode_coding_utf8):
10907         (encode_coding_iso2022):
10908         (encode_coding_no_conversion):
10909         Make all encoding functions take a Bufbyte * arg.
10910         Use size_t instead of unsigned int for memory sizes.
10911         Only cast to unsigned char whenever dereferencing Extbyte *.
10912
10913         * doc.c (unparesseuxify_doc_string): Type correctness.
10914
10915         * console-x.c (split_up_display_spec):
10916         Rewrite without using details of internal string representation.
10917         (x_semi_canonicalize_device_connection): Type correctness.
10918
10919         * config.h.in:
10920         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10921         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10922         (HAVE_XFREE386): Removed.
10923
10924         * buffer.h (DEC_CHARPTR): `const' correctness.
10925         (bufbyte_strcmp): New.
10926         (bufbyte_memcmp): New.
10927
10928         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10929
10930         * buffer.h (XCHAR_OR_CHAR_INT):
10931         Always use inline function.
10932         Remove redundant type checking assert() - XINT will abort quite nicely.
10933
10934 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10935
10936         * search.c (Freplace_match): Set newtext to an empty string.
10937
10938 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10939
10940         * s/decosf1-3.h: Remove #include of stropts.h
10941         * s/ptx.h: Remove #include of stropts.h
10942         * s/usg5-4.h: Remove #include of stropts.h
10943         * sysproc.h:
10944         * config.h.in:
10945         Use stropts.h, not sys/stropts.h.
10946         Use strtio.h, not sys/strtio.h.
10947
10948 2000-10-04  Martin Buchholz <martin@xemacs.org>
10949
10950         * XEmacs 21.2.36 is released.
10951
10952 2000-09-21  Andy Piper  <andy@xemacs.org>
10953
10954         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10955         changes still involve copying the widget tree.
10956         (update_widget_face): make sure a change is register in the widget
10957         tree. Call update_tab_widget_face appropriately.
10958         (update_tab_widget_face): ditto.
10959         (x_tab_control_redisplay): make sure non-structural changes still
10960         involve copying the widget tree.
10961
10962 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10963
10964         * lread.c (locate_file): Check the path element is non-nil.
10965
10966 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10967
10968         * lisp.h: Warning suppression for SCO compilers.
10969
10970         * redisplay-tty.c (reset_tty_modes): Fix crash.
10971         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10972
10973 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10974
10975         Big signal/process handling overhaul.  Bugs fixed:
10976         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10977         M-x comint-kill-subjob should work for both values nil and t of
10978         process-connection-type. It was broken on most platforms.
10979         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10980         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10981         * process-unix.c: Signal/Process handling overhaul.
10982         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10983         (allocate_pty): Use all available modern methods of allocating
10984         ptys, falling back to old style BSD allocation as a last resort.
10985         Use allegedly more secure Unix98 pty allocation by default.
10986         (allocate_pty_the_old_fashioned_way): New. the last resort.
10987         (unix_create_process): Push ptem, ldterm, ttcompat where
10988         available.  Autoconfiscate.
10989         (try_to_initialize_subtty): New.
10990         (unix_kill_child_process): Proper signal handling for ptys on most
10991         platforms, using special knowledge of AIX, BSD, etc...
10992         (unix_create_process): Always disconnect_controlling_terminal() for
10993         subprocesses, whether using ptys or not.
10994         * process.h: Remove old getpt-dependent PTY code.
10995         * process.c (Fprocess_send_signal): New, obvious generic function.
10996         (decode_signal): New.
10997         (Finterrupt_process):
10998         (Fkill_process):
10999         (Fquit_process):
11000         (Fstop_process):
11001         (Fcontinue_process):
11002         (Fsignal_process): Use decode_signal.
11003         (process_send_signal):
11004         Many docstring corrections.
11005         Allow any signal to be sent to a process object.
11006         * config.h.in: Add symbols for big signal/process overhaul.
11007         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
11008         * sysproc.h: Include process-related headers, where available:
11009         sys/stropts.h sys/strtio.h pty.h libutil.h
11010         * s/irix4-0.h:
11011         * s/irix5-0.h:
11012         * s/cygwin32.h:
11013         * s/gnu.h:
11014         * s/linux.h:
11015         * s/hpux.h:
11016         * s/aix3-1.h:
11017         Remove old S&M pty stuff.
11018         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
11019         * systty.h: Simplify cpp hackery, improve comments.
11020         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
11021
11022         * editfns.c (Fformat_time_string):
11023         Be a little more paranoid with the return value of ctime.
11024
11025         * fileio.c (check_executable):
11026         (check_writable):
11027         Use symbolic constants X_OK, W_OK.
11028
11029         * console-x.c (split_up_display_spec): Fix a warning.
11030
11031 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11032
11033         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
11034         * ntproc.c (sys_spawnve): make_string ==> build_string
11035         Small clarity improvements.
11036
11037 2000-09-30  Martin Buchholz  <martin@xemacs.org>
11038
11039         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
11040
11041         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
11042
11043         * config.h.in (HAVE_STRCASECMP): Remove.
11044
11045 2000-09-29  Martin Buchholz  <martin@xemacs.org>
11046
11047         * redisplay-output.c (redisplay_output_pixmap):
11048         Cleaner and possibly more 64-bit correct code.
11049
11050 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
11051
11052         * dumper.c (pdump_load_finish): move restoration of
11053         `noninteractive1' to emacs.c (main_1).
11054         * emacs.c (main_1): protect LISP-visible command-line flags
11055         from pdump_load().
11056
11057 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
11058
11059         * Makefile.in.in (versionclean):  Use EXE_TARGET and
11060         DUMP_TARGET instead of literal program names.
11061
11062 2000-09-20  Martin Buchholz  <martin@xemacs.org>
11063
11064         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
11065
11066 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11067
11068         * *: Spelling mega-patch
11069
11070 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11071
11072         * fns.c (bad_bad_turtle):
11073         Delete "Eek!" comment, since we fixed the bug to which it refers.
11074
11075 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11076
11077         * alloca.c: Replace REGISTER with register.
11078
11079 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
11080
11081         * file-coding.c (ucs_to_char): Use countof.
11082
11083 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11084
11085         * file-coding.c: (ucs_to_char):
11086         (complex_vars_of_file_coding):
11087         Use countof instead of sizeof.
11088         Use CHECK_NATNUM instead of CHECK_INT.
11089
11090         * sysdep.c (strcasecmp): Remove.
11091         * device-x.c (ascii_strcasecmp): New.
11092         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
11093         Avoid using non-standard non-portable strcasecmp.
11094
11095 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11096
11097         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
11098         * font-lock.c: remove reference to emacsfns.h.
11099         * search.c: small doc improvement.
11100         * event-Xt.c: correct file names in comments.
11101         * console-x.h Correct file names in comments.
11102         * frame.c: Correct file names in comments.
11103         * event-stream.c: remove Energize from comments.
11104
11105 2000-09-15  Martin Buchholz  <martin@xemacs.org>
11106
11107         * symeval.h (DEFERROR_STANDARD):
11108         (DEFERROR):
11109         (DEFSYMBOL):
11110         (DEFSYMBOL_NO_DUMP):
11111         (DEFSYMBOL_MULTIWORD_PREDICATE):
11112         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
11113         (DEFKEYWORD):
11114         The construct &##name is not sensible C.
11115         Fixes compilation errors with Unixware native compiler.
11116
11117 2000-09-14  Martin Buchholz  <martin@xemacs.org>
11118
11119         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
11120         (next_frame_internal): Removed.  We now just have next_frame.
11121         (next_frame):
11122         Write a simpler and cleaner one-pass algorithm.
11123         Remove called_from_delete_device arg and #ifdefed-out code.
11124         (previous_frame):
11125         Renamed from prev_frame.  Update callers.
11126         Cleaned up to have an analogous implementation to next_frame.
11127         (other_visible_frames_internal): Remove the
11128         called_from_delete_device bogus arg, and hence, remove this
11129         function.  Just use other_visible_frames().
11130
11131         * window.c (Fnext_window):
11132         Prettify docstring.
11133         Since next_frame() is guaranteed to return a frame, remove check
11134         for nil inserted in previous patch.
11135         (Fprevious_window):
11136         Prettify docstring.
11137         Make code look more like Fnext_window.
11138         (window_loop):
11139         Respect the `console' arg when iterating through windows.
11140         Fixes bug: (get-buffer-window buffer t device) not respecting
11141         the `device' arg.
11142         This function needs more work, as others have pointed out.
11143
11144         * frame.h: Rename prev_frame to previous_frame.
11145         device_matches_console_spec no longer takes a `frame' arg.
11146
11147         * s/gnu.h:
11148         * s/linux.h:
11149         * s/hpux.h:
11150         Use EMACS_BLOCK_SIGNAL instead of sigblock.
11151         From "Golubev I. N." <gin@mo.msk.ru>.
11152
11153         * make-src-depend: Fix typo.
11154
11155 2000-09-13  Martin Buchholz  <martin@xemacs.org>
11156
11157         * window.c (Fnext_window):
11158         next_frame() might return nil, not a frame.
11159         Fixes this crash:
11160         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11161
11162         * frame.c (next_frame_internal):
11163         We've passed a frame if we've passed its device.
11164         Fixes this crash:
11165         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11166 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
11167
11168 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11169
11170         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11171         Allow option to suppress accelerators in menu/dialog items.
11172         (populate_or_checksum_helper): Pass dialog title through above.
11173
11174 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11175
11176         * event-msw.c (mswindows_key_to_emacs_keysym):
11177         Add "pause" key, fix "menu" key.
11178
11179 2000-09-09  Martin Buchholz  <martin@xemacs.org>
11180
11181         * eval.c (reinit_vars_of_eval):
11182         Increase max_lisp_eval_depth to 1000,
11183         required for thai-xtis.el to byte-compile under some circumstances.
11184
11185 2000-09-04  Martin Buchholz  <martin@xemacs.org>
11186
11187         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
11188         From Kenichi Handa.
11189
11190 2000-09-01  Martin Buchholz  <martin@xemacs.org>
11191
11192         * make-src-depend: Make the generated Makefiles smaller.
11193
11194         * s/hpux.h (SETUP_SLAVE_PTY):
11195         Provide a %d in the format string for the errno argument.
11196
11197         * editfns.c (Ftemp_directory):
11198         Warning fix.
11199         Avoid buffer overrun on very long file name.
11200
11201         * input-method-xlib.c (XIM_init_device):
11202         6th parameter of XRegisterIMInstantiateCallback has different
11203         pointer types on different OSes, so simply cast to (void *).
11204
11205         * unexhp9k800.c: Warning fixes.  Fiddly changes.
11206
11207         * sysdll.c (dll_open):
11208         shl_load will hang hard if passed a NULL filename.
11209         Simply return NULL for compatibility with dlopen.
11210         * sysdll.c: Conform to XEmacs coding standards.
11211
11212         * sysdep.c (get_pty_max_bytes):
11213         Support pty input lines longer than 512 bytes on HP-UX 10.20.
11214
11215 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11216
11217         * tooltalk.c: Add #include <syssignal.h>
11218
11219 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
11220
11221         * s/hpux.h: Don't use undefined function sigunblock().
11222
11223 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11224
11225         * config.h.in: Add HAVE_BALLOON_HELP.
11226         * emacs.c: Use HAVE_BALLOON_HELP.
11227         * Makefile.in.in (x_objs):
11228         Make Balloon Help conditional on finding shape.h.
11229
11230 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
11231
11232         * syntax.c (regex_emacs_buffer_p): New variable.
11233         * syntax.h (regex_emacs_buffer_p): extern.
11234         * search.c (looking_at_1):
11235         (string_match_1):
11236         (fast_string_match):
11237         (search_buffer): Set regex_emacs_buffer_p.
11238         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11239         when before_dot, at_dot, after_dot.
11240
11241 2000-08-23  Andy Piper  <andy@xemacs.org>
11242
11243         * gui-x.c (popup_selection_callback): Only set action_occurred
11244         when we really have an image instance.
11245         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11246
11247 2000-08-23  Andy Piper  <andy@xemacs.org>
11248
11249         * gui-msw.c (mswindows_handle_gui_wm_command): set
11250         action_occurred.
11251         * gui-x.c (popup_selection_callback): ditto.
11252
11253         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11254         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11255         (struct Lisp_Image_Instance): add action_occurred flag.
11256
11257         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11258         (image_instance_changed): ditto.
11259         (reset_frame_subwindow_instance_cache): only unmap windows - do
11260         not remove them from the cache also.
11261
11262         * glyphs-widget.c (tab_control_update): better debug.
11263         (progress_gauge_update): ditto.
11264         (layout_update): ditto.
11265         (layout_instantiate): ditto.
11266         (tab_control_order_only_changed): cope with null pending items.
11267
11268         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11269         debug. Force selection of an item when an action occurred. Cope
11270         with null pending_items.
11271         (mswindows_progress_gauge_redisplay): better debug.
11272         * glyphs-x.c (x_tab_control_redisplay): ditto.
11273
11274         * redisplay.c (redisplay_frame): reset the frame cache if the
11275         frame is garbaged.
11276
11277         * window.c (Fset_window_configuration): potentially re-enable
11278         frame cache reset.
11279         (window_unmap_subwindows): need to finalize instances here since
11280         it is only used in mark_window_as_deleted.
11281
11282 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11283
11284         * nas.c (SndOpenDataForReading):
11285         nas.c (WaveOpenDataForReading):
11286         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11287         Somehow escaped from the 2000-08-14 patch.
11288
11289 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11290
11291         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11292         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11293
11294 2000-08-21  Andy Piper  <andy@xemacs.org>
11295
11296         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11297         window if it is not already displayed.
11298
11299         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11300         it is not already displayed.
11301
11302         * window.c (Fset_window_configuration): don't reset the frame
11303         cache.
11304
11305         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11306         instances from the frame cache if we are actually finalizing them.
11307         (reset_frame_subwindow_instance_cache): reset frame cache only
11308         after unmapping everything.
11309         (map_subwindow): set displayed flag after mapping.
11310
11311 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11312
11313         * data.c (indirect_function):
11314         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11315
11316         * eval.c (function_argcount):
11317         Use original function when signaling errors.
11318
11319 2000-08-18  Andy Piper  <andy@xemacs.org>
11320
11321         * frame.c (delete_frame_internal): use new
11322         free_frame_subwindow_instances name.
11323
11324         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11325         (add_tab_item): make return type correct.
11326         (mswindows_tab_control_instantiate): assert index of tab.
11327         (mswindows_tab_control_redisplay): Re-code to use
11328         gui_item_equal_sans_selected and gui_item_list_find_selected.
11329
11330         * glyphs-widget.c (tab_control_update): Correct comment.
11331
11332         * window.c (window_unmap_subwindows): use new
11333         unmap_subwindow_instance_cache_mapper.
11334         (window_unmap_subwindows_cache_mapper): deleted.
11335         (Fset_window_configuration): comparisons should now be with
11336         EQ. Preserve the subwindow instance cache across configuration
11337         changes.
11338         (allocate_window): ditto.
11339         (make_dummy_parent): ditto.
11340
11341         * glyphs.c (free_frame_subwindow_instances): rename from
11342         free_frame_subwindow_instance_cache. finalize all instances rather
11343         than just those in the display cache.
11344         (finalize_all_subwindow_instances): walk windows unmapping and
11345         finalizing subwindows.
11346         (unmap_subwindow_instance_cache_mapper): moved from
11347         window.c. Allow finalization as well as unmapping.
11348
11349         * gui.c (gui_item_list_find_selected): new function.
11350
11351         * gui.h (gui_item_list_find_selected): declare.
11352
11353         * glyphs-x.c (x_tab_control_redisplay): pick tab
11354         explicitly. Re-code to use gui_item_equal_sans_selected and
11355         gui_item_list_find_selected.
11356
11357         * glyphs-x.h: add lwlib-utils.h
11358
11359         * buffer.c (Frecord_buffer): undo previous change.
11360
11361 2000-08-09  Vin Shelton  <acs@xemacs.org>
11362
11363         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11364         possible.  Create temporary files more securely.  The patch was
11365         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11366         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11367         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11368         for details.
11369
11370 2000-08-07  Ben Wing  <ben@xemacs.org>
11371
11372         * getloadavg.c: remove duplicate (and windows-breaking)
11373         includes of fcntl.h and sys/file.h.
11374
11375         * nt.c: remove duplicate getloadavg() definition.
11376
11377         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11378         encodings.
11379
11380 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11381
11382         * eval.c (function_argcount): If function needs to be autoloaded
11383         actually use the loaded definition.
11384         GCPRO function.
11385
11386 2000-08-05  Ben Wing  <ben@xemacs.org>
11387
11388         * getloadavg.c: add prototype for getloadavg().  remove
11389         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11390         of the code).  remove duplicate header includes.
11391
11392         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11393
11394         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11395         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11396         useful load average.
11397
11398         * alloc.c (reinit_alloc_once_early): removed references to
11399         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11400         the lisp vars are the only things referencing the malloc_sbrk_*
11401         vars, and they were already if 0'd out.  these vars only exist
11402         in the older malloc.c, which is basically unused, and they're
11403         only for informational purposes.
11404
11405         * m\*.h: removed useless VIRT_ADDR_VARIES.
11406
11407         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11408
11409 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11410
11411         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11412         color if the image is a mono pixmap.
11413
11414 2000-07-30  Ben Wing  <ben@xemacs.org>
11415
11416         * Makefile.in.in (release):
11417         Remove stray @.
11418
11419         * buffer.c (directory_is_current_directory):
11420         * dired-msw.c (mswindows_get_files):
11421         * dired.c:
11422         * dired.c (Fdirectory_files):
11423         * dired.c (file_name_completion_stat):
11424         * dired.c (Ffile_attributes):
11425         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11426         preprocessor tricks, to avoid problems on some machines
11427         (e.g. SCO).
11428
11429         * callproc.c (egetenv): GC docs.
11430
11431         * console-msw.h:
11432         * console-msw.h (struct mswindows_dialog_id):
11433         * lrecord.h (lrecord_type):
11434         New object for use with MSW dialogs.
11435
11436         * console.h (struct console_methods):
11437         New enable/disable frame methods, for proper modal dialogs.
11438
11439         * device-msw.c (msprinter_default_printer): Fix to follow
11440         proper Mule conventions.
11441
11442         * device-msw.c:
11443         * device-msw.c (signal_open_printer_error):
11444         * device-msw.c (msprinter_init_device):
11445         * device-msw.c (ensure_not_printing):
11446         * device-msw.c (plist_get_margin):
11447         * device-msw.c (Fmsprinter_select_settings):
11448         * device-msw.c (finalize_devmode):
11449         * device-msw.c (Fmsprinter_settings_despecialize):
11450         * device-msw.c (signal_enum_priner_error):
11451         * extents.c (decode_extent):
11452         * extents.c (decode_map_extents_flags):
11453         * extents.c (decode_extent_at_flag):
11454         * extents.c (Fextent_at):
11455         * extents.c (Fextents_at):
11456         * extents.c (symbol_to_glyph_layout):
11457         [[[[2]]]] Use structured errors.
11458
11459         * dialog-msw.c:
11460         * dialog-msw.c (mswindows_is_dialog_msg):
11461         * dialog-msw.c (mark_mswindows_dialog_id):
11462         * dialog-msw.c (dialog_proc):
11463         * dialog-msw.c (handle_question_dialog_box):
11464         * dialog-msw.c (syms_of_dialog_mswindows):
11465         Define new object to clean up marking; use it as a dialog identifier.
11466         Call new delete-dialog-box-hook.
11467
11468         * dialog-x.c (dbox_selection_callback):
11469         * dialog-x.c (dbox_descriptor_to_widget_value):
11470         * dialog-x.c (x_make_dialog_box_internal):
11471         Call new delete-dialog-box-hook.
11472         Return an id.
11473
11474         * dialog.c:
11475         * dialog.c (syms_of_dialog):
11476         * dialog.c (vars_of_dialog):
11477         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11478
11479         * eval.c:
11480         * eval.c (signal_call_debugger):
11481         when noninteractive, output stack traces on the console instead
11482         of in a (never-seen) buffer.
11483
11484         * eval.c (signal_type_error):
11485         * eval.c (invalid_argument_2):
11486         * lisp.h:
11487         new funs for use w/structured errors.
11488
11489         * event-Xt.c:
11490         * event-Xt.c (x_to_emacs_keysym):
11491         * event-Xt.c (describe_event):
11492         * event-Xt.c (emacs_Xt_event_handler):
11493         * event-Xt.c (vars_of_event_Xt):
11494         * event-msw.c:
11495         * event-msw.c (mswindows_wnd_proc):
11496         * event-msw.c (vars_of_event_mswindows):
11497         rename {x,mswindows}-debug-events to debug-{}-events for
11498         consistency with other debug-foo variables.
11499
11500         * event-stream.c:
11501         document next-event more clearly.
11502
11503         * fileio.c (Ffile_name_directory):
11504         * fileio.c (Ffile_name_nondirectory):
11505         * fileio.c (Funhandled_file_name_directory):
11506         * fileio.c (file_name_as_directory):
11507         * fileio.c (Ffile_name_as_directory):
11508         * fileio.c (directory_file_name):
11509         * fileio.c (Fdirectory_file_name):
11510         * fileio.c (Fmake_temp_name):
11511         * fileio.c (Ffile_truename):
11512         * fileio.c (Fsubstitute_in_file_name):
11513         * fileio.c (expand_and_dir_to_file):
11514         * fileio.c (barf_or_query_if_file_exists):
11515         * fileio.c (check_executable):
11516         * fileio.c (Ffile_exists_p):
11517         * fileio.c (Ffile_writable_p):
11518         * fileio.c (Ffile_directory_p):
11519         * fileio.c (Ffile_regular_p):
11520         * fileio.c (Ffile_modes):
11521         * fileio.c (Ffile_newer_than_file_p):
11522         * fileio.c (Fverify_visited_file_modtime):
11523         * fileio.c (Fset_visited_file_modtime):
11524         * fileio.c (auto_save_1):
11525         (1). (2).
11526         fix up gcpro's.
11527
11528         * frame-msw.c:
11529         * frame-msw.c (mswindows_init_frame_1):
11530         * frame-msw.c (mswindows_enable_frame):
11531         * frame-msw.c (error_frame_unsizable):
11532         * frame-msw.c (msprinter_init_frame_1):
11533         * frame-msw.c (msprinter_init_frame_3):
11534         * frame-msw.c (console_type_create_frame_mswindows):
11535         (2).
11536         implement new enable/disable frame methods.
11537
11538         * frame-x.c:
11539         * frame-x.c (x_enable_frame):
11540         * frame-x.c (console_type_create_frame_x):
11541         implement new enable/disable frame methods.
11542
11543         * frame.c:
11544         * frame.c (Fdisable_frame):
11545         * frame.c (syms_of_frame):
11546         * frame.h (struct frame):
11547         implement new enable/disable frame methods/functions.
11548
11549         * general-slots.h:
11550         add initial-focus.
11551
11552         * glyphs-msw.c (mswindows_widget_instantiate):
11553         comment that initial-focus should be implemented.
11554
11555         * glyphs-widget.c:
11556         * glyphs-widget.c (check_valid_instantiator):
11557         * glyphs-widget.c (check_valid_orientation):
11558         * glyphs-widget.c (check_valid_tab_orientation):
11559         * glyphs-widget.c (check_valid_justification):
11560         * glyphs-widget.c (check_valid_border):
11561         * glyphs-widget.c (check_valid_callback):
11562         * glyphs-widget.c (check_valid_int_or_function):
11563         * glyphs-widget.c (check_valid_string_or_vector):
11564         * glyphs-widget.c (check_valid_item_list_1):
11565         * glyphs-widget.c (widget_validate):
11566         * glyphs-widget.c (combo_box_validate):
11567         * glyphs-widget.c (widget_instantiate):
11568         * glyphs-widget.c (syms_of_glyphs_widget):
11569         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11570         * glyphs-widget.c (image_instantiator_combo_box):
11571         * glyphs-widget.c (image_instantiator_scrollbar):
11572         * glyphs-widget.c (image_instantiator_tab_control):
11573         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11574         (2).
11575         support (unimplemented) keyword initial-focus.
11576         reindent long macros.
11577
11578         * glyphs-x.c (x_redisplay_widget):
11579         * glyphs-x.c (x_button_instantiate):
11580         * glyphs-x.c (x_button_redisplay):
11581         * glyphs-x.c (x_progress_gauge_instantiate):
11582         * glyphs-x.c (x_edit_field_instantiate):
11583         * glyphs-x.c (x_combo_box_instantiate):
11584         * glyphs-x.c (x_tab_control_instantiate):
11585         * glyphs-x.c (x_label_instantiate):
11586         * gui-x.c:
11587         * gui-x.c (button_item_to_widget_value):
11588         * gui-x.c (gui_items_to_widget_values_1):
11589         * gui-x.c (gui_item_children_to_widget_values):
11590         * gui-x.c (gui_items_to_widget_values):
11591         * gui-x.h:
11592         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11593         add new flag to gui-parsing routines to indicate whether
11594         accelerator specs should be supported.
11595
11596         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11597
11598         * glyphs.h (struct Lisp_Image_Instance):
11599         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11600         add initial-focus flag.
11601
11602         * gui.c:
11603         * gui.c (syms_of_gui):
11604         * gui.c (vars_of_gui):
11605         clean up menu-no-selection-hook.
11606
11607         * gui.h:
11608         support delete-dialog-box-hook.
11609
11610         * lread.c (Fload_internal):
11611         * lread.c (locate_file_in_directory_mapper):
11612         (1).
11613
11614         * lrecord.h:
11615         * lrecord.h (struct toolbar_button):
11616         * lrecord.h (syms_of_toolbar):
11617         document how to create a new object.
11618
11619         * menubar-msw.c (mswindows_char_is_accelerator):
11620         may be called on frames w/o menus.
11621
11622         * menubar.c (vars_of_menubar):
11623         clean up :filter docs.
11624
11625         * nt.c (readdir):
11626         * ntproc.c:
11627         (1).
11628
11629         * process-nt.c:
11630         * process-nt.c (validate_signal_number):
11631         * process-nt.c (signal_cannot_launch):
11632         * process-nt.c (nt_create_process):
11633         * process-nt.c (nt_send_process):
11634         * process-nt.c (nt_kill_child_process):
11635         * process-nt.c (nt_open_network_stream):
11636         * process-nt.c (syms_of_process_nt):
11637         (2).
11638         delete quote-handling.  call new lisp code that does it better.
11639
11640         * process-unix.c (connect_to_file_descriptor):
11641         * process-unix.c (allocate_pty):
11642         * process-unix.c (unix_send_process):
11643         * process-unix.c (unix_kill_child_process):
11644         * process-unix.c (unix_open_network_stream):
11645         * process-unix.c (unix_open_multicast_group):
11646         (1). (2).
11647
11648         * process.c:
11649         * process.c (Fstart_process_internal):
11650         (2).  need to canonicalize process path even if absolute.
11651
11652         * select-msw.c (symbol_to_ms_cf):
11653         * select-msw.c (ms_cf_to_symbol):
11654         * select-msw.c (cf_is_autofreed):
11655         * select-msw.c (mswindows_destroy_selection):
11656         * select.c:
11657         * select.c (syms_of_select):
11658         * select.h:
11659         support dibv5, fix bugs. (from Mike Alexander)
11660
11661         * select.c (Fget_selection_internal):
11662         * select.c (select_convert_out):
11663
11664         * sysdep.c:
11665         * sysdep.c (xemacs_stat):
11666         renamed.
11667
11668         * sysdep.c (mkdir):
11669         * sysdep.c (rmdir):
11670         but keep original stat() here because we provide encapsulation
11671         around these funs.
11672
11673         * sysfile.h:
11674         * sysfile.h (fstat):
11675         remove stat garbage.
11676
11677         * syswindows.h:
11678         fix X/MSW conflict.
11679         don't include tchar.h.  it's inappropriate because it makes
11680         compile-time distinctions when we want runtime distinctions.
11681         (we provide our own tchar replacements)
11682
11683         * toolbar.c:
11684         use default object printer for toolbar-button.
11685
11686         * unexcw.c:
11687         make sure we don't encapsulate.
11688
11689         * window.c (vars_of_window):
11690         emphasize that temp-buffer-show-hook is obsolete.
11691
11692 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11693
11694         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11695         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11696
11697         * events.c (Fevent_timestamp_lessp):
11698         Not 64-bit clean.  Use EMACS_INT, not int.
11699
11700 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11701
11702         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11703         unsigned int and changed the last enum to
11704         lrecord_type_last_built_in_type.
11705         (lrecord_implementations_table): changed prototype to know how
11706         long the array is supposed to be.
11707         (lrecord_type_count): new unsigned int to keep track of the
11708         current number of lisp lrecord types.
11709         (DEFINE_EXTERNAL_LRECORD):
11710         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11711         dynamic-modules to declare new lisp types. They are the same
11712         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11713         int for each new type, and increment lrecord_type_count by 1.
11714
11715         * alloc.c (lrecord_implementations_table): Changed to reference
11716         lrecord_type_last_built_in_type for the size of the array.
11717         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11718
11719 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11720
11721         * glyphs.h (check_valid_item_list): Renamed from
11722         check_valid_item_list_1.
11723
11724 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11725
11726         * select.c (Qselect_coerce): New.
11727         * select.c (Vselection_coercion_alist): New.
11728         * select.c (syms_of_select): Declare.
11729         * select.c (get-selection-internal): Use it.
11730         Use the new select-coerce functionality.
11731
11732         * select.c (select_coerce): New.
11733         * select.h (select_coerce): Declare.
11734         New function to coerce one type of data into another.
11735
11736 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11737
11738         * callproc.c (Fcall_process_internal):
11739         (Fcall_process_internal):
11740         * process-unix.c (unix_create_process):
11741         Save and restore the value of errno, so that error messages are accurate.
11742
11743 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11744
11745         * elhash.c (print_hash_table):
11746         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11747         Prettify docstrings and indentation.
11748
11749 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11750
11751         * window.c (Fwindow_pixel_edges): Subtract frame border and
11752         gutter size.
11753
11754 2000-07-31  Andy Piper  <andy@xemacs.org>
11755
11756         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11757         will acknowledge the change.
11758
11759         * glyphs.h: declare tab_control_order_only_changed.
11760
11761         * glyphs-x.c (x_tab_control_redisplay): use
11762         tab_control_order_only_changed.
11763
11764         * glyphs-widget.c (tab_control_order_only_changed): new function.
11765
11766         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11767         tab_control_order_only_changed.
11768
11769         * gui.c (gui_item_equal_sans_selected): new function.
11770         (gui_item_equal): use it.
11771
11772         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11773         :properties in favor of :items..
11774
11775         * glyphs-widget.c (check_valid_item_list): rename from
11776         check_valid_item_list_1.
11777         (check_valid_item_list_1): renamed.
11778         (combo_box_validate): deprecate :properties in favor of :items.
11779         (widget_instantiate): ditto.
11780         (tab_control_update): ditto.
11781         (image_instantiator_combo_box): ditto.
11782         (image_instantiator_tree_view): ditto.
11783         (image_instantiator_tab_control): ditto.
11784         (layout_post_instantiate): remove dead code.
11785
11786         * print.c (debug_print_no_newline): only write to debugger if in
11787         WIN32_NATIVE.
11788
11789         * elhash.c (Fmake_hash_table): update doc string.
11790
11791         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11792         messages whilst in GC. This at least stops XEmacs crashing but has
11793         the potential for wierd behaviour.
11794
11795 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11796
11797         * config.h.in:
11798         Make existence of s&m files optional.
11799
11800         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11801         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11802         * s/gnu.h: Remove HAVE_GETLOADAVG.
11803         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11804         * s/sol2.h: Remove HAVE_GETLOADAVG.
11805         * lisp.h: Remove getloadavg() declaration.
11806         * fns.c:
11807         Include <sys/loadavg.h> if available.
11808         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11809         * config.h.in:  Group together getloadavg()-related macros.
11810         Use only configure-time tests to detect getloadavg().
11811
11812 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11813
11814         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11815
11816 2000-07-25  Andy Piper  <andy@xemacs.org>
11817
11818         * syswindows.h: add tchar.h for native builds.
11819
11820         * frame.c (syms_of_frame): remove set-glyph-image.
11821
11822         * general-slots.h: add Qset_glyph_image.
11823
11824         * glyphs-widget.c (layout_update): add domain arg to
11825         set-glyph-image.
11826         (syms_of_glyphs_widget): remove set-glyph-image.
11827
11828 2000-07-23  Ben Wing  <ben@xemacs.org>
11829
11830         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11831         Vpopup_frame_list.
11832
11833 2000-07-22  Andy Piper  <andy@xemacs.org>
11834
11835         * symsinit.h: add syms_of_win32().
11836
11837         * gui-msw.c (syms_of_gui_mswindows): remove
11838         Fmswindows_shell_execute.
11839         (Fmswindows_shell_execute): moved to win32.c.
11840
11841         * emacs.c (main_1): add syms_of_win32 ().
11842
11843         * win32.c (init_potentially_nonexistent_functions): rewrite in
11844         compiler-friendly terms.
11845         (Fmswindows_shell_execute): move here from gui-msw.c.
11846         (syms_of_win32): new.
11847
11848         * device-msw.c (Fmswindows_printer_list): clean up args to
11849         EnumPrinters.
11850         Don't include tchar under cygwin or mingw.
11851         (msprinter_default_printer): make cygwin-friendly.
11852
11853 2000-07-21  Andy Piper  <andy@xemacs.org>
11854
11855         * glyphs-widget.c (image_instantiator_tree_view): use tab
11856         control's update function.
11857         (layout_property): new function. Retrieve items.
11858
11859         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11860         function. Re-populate the tree view from the pending items.
11861
11862         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11863         is designated the parent if the domain is an image instance. This
11864         is needed so that dirtiness can be cascade up the hierarchy and
11865         thus for layout children to be redisplayed correctly.
11866         (allocate_image_instance): rename glyph -> parent.
11867
11868         * redisplay.h: change redisplay_output_layout signature.
11869
11870         * redisplay-msw.c (mswindows_output_display_block): use domain
11871         arg.
11872
11873         * redisplay-x.c (x_output_display_block): use domain arg.
11874
11875 2000-07-10  Andy Piper  <andy@xemacs.org>
11876
11877         * window.c (Fset_window_configuration): add comment.
11878
11879         * redisplay-output.c (compare_runes):
11880         (redisplay_output_subwindow): redisplay rather than update subwindow.
11881         (redisplay_output_layout): ditto.
11882
11883         * redisplay-msw.c (mswindows_frame_output_end):
11884         (mswindows_frame_output_end): make defer window pos optional.
11885
11886         * lisp.h: add Flast.
11887
11888         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11889         normalize method. Change update method to be for changed
11890         instantiators. Add redisplay method. Change signature of layout
11891         method.
11892         (struct Lisp_Image_Instance): add instantiator.
11893         (IMAGE_INSTANCE_INSTANTIATOR): new.
11894         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11895         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11896         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11897
11898         * glyphs.c:
11899         (find_instantiator_differences): new function.
11900         (Fset_instantiator_property): new convenience function.
11901         (check_image_instance_structure): strictly check for vector
11902         instantiators.
11903         (normalize_image_instantiator): make non-static.
11904         (instantiate_image_instantiator): pass on dest_mask and use new
11905         signatures for image_instance_layout and friends.
11906         (mark_image_instance): mark the instantiator. Mark the subwindow
11907         face not the widget face.
11908         (image_instance_equal): add instantiator.
11909         (image_instance_hash): ditto.
11910         (allocate_image_instance): ditto.
11911         (Fset_image_instance_property): removed.
11912         (Fimage_instance_file_name): ditto.
11913         (Fcolorize_image_instance): ditto.
11914         (image_instance_layout): add offsets to be set.
11915         (update_image_instance): new function. update an image instance
11916         from its changed instantiator.
11917         (inherit_normalize): add dest_mask.
11918         (xbm_normalize): ditto.
11919         (xface_normalize): ditto.
11920         (xpm_normalize): ditto.
11921         (text_update): set_property -> update.
11922         (image_instantiate): use the glyph identity as a hash key, not the
11923         instantiator.
11924         (glyph_width): use new image_instance_layout signature.
11925         (glyph_ascent): ditto.
11926         (glyph_descent): ditto.
11927         (glyph_height): ditto.
11928         (glyph_query_geometry): ressurrect.
11929         (glyph_layout): ditto.
11930         (redisplay_subwindow): update -> redisplay.
11931         (syms_of_glyphs): add Fset_instantiator_property.
11932         (image_instantiator_format_create): set_property -> update.
11933
11934         * glyphs-x.c:
11935         (autodetect_normalize): add dest_maks to signature.
11936         (x_redisplay_subwindow): update -> redisplay.
11937         (x_redisplay_widget): ditto.
11938         (x_button_redisplay): ditto.
11939         (x_progress_gauge_redisplay): ditto.
11940         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11941         stacking order.
11942         (console_type_create_glyphs_x): update -> redisplay.
11943         (image_instantiator_format_create_glyphs_x): ditto.
11944
11945         * glyphs-widget.c:
11946         (check_valid_instantiator): disallow glyphs in the instantiator,
11947         they must now be vectors.
11948         (check_valid_instantiator_list): ditto.
11949         (glyph_instantiator_to_glyph): use internal symbol rather than
11950         intern.
11951         (widget_update): renamed from widget_set_property. Call cascaded
11952         update methods.
11953         (redisplay_widget): renamed from update_widget.
11954         (widget_layout): image_instance_layout now takes position as well
11955         as size.
11956         (widget_normalize): ditto.
11957         (widget_instantiate): ditto.
11958         (tab_control_query_geometry) ditto.:
11959         (tab_control_update): renamed from tab_control_set_property.
11960         (progress_gauge_update): set_property -> update.
11961         (layout_normalize): rewrite so that child instantiators are
11962         normalized also.
11963         (layout_update): new function. Create glyphs from the normalized
11964         children and cope with any other layout keywords. We do not
11965         instantiate children here that will be take care of by
11966         redisplay_output_layout.
11967         (layout_instantiate): call layout_update and not much else.
11968         (layout_post_instantiate): not sure whether this is needed
11969         anymore.
11970         (layout_query_geometry): query glyph geometry rather than
11971         image_instance geometry.
11972         (layout_layout): set offsets from pass in parameters. Use glyph
11973         geometry and layout functions rather than image instance ones.
11974         (native_layout_layout): ditto.
11975         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11976         (image_instantiator_widget): set_property -> update.
11977         (image_instantiator_buttons): ditto.
11978         (image_instantiator_progress_guage): ditto.
11979         (image_instantiator_tab_control): ditto.
11980         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11981         (image_instantiator_layout): add update method.
11982
11983         * glyphs-msw.c (bmp_normalize):
11984         (mswindows_resource_normalize): add dest_mask so that it can be
11985         proprogated by layout_normalize.
11986         (begin_defer_window_pos): make optional because it may not be the
11987         right thing to do and it introduces differences with X.
11988         (mswindows_unmap_subwindow): ditto.
11989         (mswindows_map_subwindow): ditto.
11990         (mswindows_redisplay_subwindow): renamed from
11991         mswindows_update_subwindow.
11992         (mswindows_redisplay_widget): ditto.
11993         (mswindows_button_redisplay): renamed from
11994         mswindows_button_update. Update is now what the instantiation
11995         function does for a changed instantiator.
11996         (mswindows_progress_gauge_instantiate): set the progress value
11997         here if appropriate.
11998         (mswindows_tab_control_redisplay): cope with re-ordering of the
11999         members of the tab widget by simply selecting the new top
12000         widget. This makes things appear ok if you click on a tab.
12001         (mswindows_combo_box_instantiate): image_instance_layout now takes
12002         position as well as size.
12003         (mswindows_progress_gauge_redisplay): renamed from
12004         mswindows_progress_gauge_update.
12005         (console_type_create_glyphs_mswindows): fix update -> redisplay.
12006         (image_instantiator_format_create_glyphs_mswindows): ditto.
12007
12008         * glyphs-eimage.c (jpeg_normalize):
12009         (gif_normalize):
12010         (png_normalize):
12011         (tiff_normalize): add dest_mask so that it can be proprogated by
12012         layout_normalize.
12013
12014         * elhash.c:
12015         (print_hash_table):
12016         (hash_table_weakness_validate):
12017         (decode_hash_table_weakness):
12018         (Fhash_table_weakness):
12019         (Fhash_table_type):
12020         (syms_of_elhash): use Ben's naming scheme for hashtable types..
12021
12022         * console.h (struct console_methods): move update_* to
12023         redisplay_*.
12024
12025 2000-07-20  Ben Wing  <ben@xemacs.org>
12026
12027         * *.[ch] (XSETOBJ): remove unused middle argument.
12028         lisp-disunion.h: correct wrap_object() to one argument.
12029
12030 2000-07-15  Ben Wing  <ben@xemacs.org>
12031
12032         * s/cygwin32.h:
12033         * s/cygwin32.h (CYGWIN_CONV_PATH):
12034         Add missing logb prototype for v1.1.
12035         Use post-b20 names and alias to pre-b20 names when pre-b20.
12036
12037         * s/windowsnt.h: [5].
12038
12039 2000-07-15  Ben Wing  <ben@xemacs.org>
12040
12041         * Makefile.in.in (x_objs):
12042         * Makefile.in.in (sheap_objs):
12043         * Makefile.in.in (objs):
12044         added win32.o, cosmetic cleanups.
12045
12046         * alloc.c (Fmake_byte_code):
12047         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
12048         etc. macros which declare their own args now.
12049
12050         * alloc.c (syms_of_alloc):
12051         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
12052
12053         * buffer.c:
12054         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
12055
12056         * buffer.c (Fget_file_buffer):
12057         Fixed GCPRO problem.
12058
12059         * buffer.c (get_truename_buffer):
12060         Fixed comment about GC checking.
12061
12062         * buffer.c (syms_of_buffer):
12063         Undeclared those dedicated frame funs.
12064         [2].
12065
12066         * buffer.h:
12067         Define convenience macros for internal/external conversions.
12068         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
12069         and Qenvironment_variable_encoding for cleaner code.
12070
12071         * bufslots.h:
12072         Remove dedicated-frame; in lisp.
12073
12074         * bytecode.c (funcall_compiled_function):
12075         [1].
12076
12077         * bytecode.c (syms_of_bytecode):
12078         [2].
12079
12080         * console-msw.c:
12081         * console-msw.c (mswindows_show_console): Rewrote.
12082
12083         * console-msw.c (Fmswindows_debugging_output): New.
12084         Sends to OutputDebugString (special MSWin debugger interface).
12085
12086         * console-msw.c (Fmswindows_message_box):
12087         Fixed stupid bugs so it works when called from kill-emacs.
12088
12089         * console-msw.c (syms_of_console_mswindows):
12090         Declare Fmswindows_debugging_output.
12091
12092         * console-msw.h:
12093         New MSWin prototypes.
12094
12095         * console-msw.h (struct mswindows_frame):
12096         New entry last-click-mods for improved button-modifier support.
12097
12098         * console-msw.h (FRAME_MSWINDOWS_POPUP):
12099         New struct entry `popup' with corresponding accessor.
12100
12101         * console-x.c:
12102         * console-x.c (split_up_display_spec):
12103         * console-x.c (get_display_arg_connection):
12104         * console-x.c (x_semi_canonicalize_console_connection):
12105         * console-x.c (x_canonicalize_device_connection):
12106         [[[6]]]: Change char to more specific type.
12107         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
12108
12109         * console-x.c (x_semi_canonicalize_console_connection):
12110         * console-x.c (x_canonicalize_device_connection):
12111         [[[9]]]: Fix up error signalling to use new structured error system.
12112
12113         * console-x.h:
12114         [[[4]]]: Define codesys aliases:
12115         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
12116         Qx_color_name_encoding, Qx_display_name_encoding.
12117
12118         * console.h (struct console_methods):
12119         New method make_dialog_box_internal supersedes older
12120         popup_dialog_box method.
12121
12122         * data.c:
12123         Define many new errors, part of new structured errors.
12124
12125         * data.c (init_errors_once_early):
12126         * data.c (syms_of_data):
12127         [2].
12128
12129         * device-msw.c (mswindows_init_device):
12130         [[[5]]]: Cleanup to support NT 3.51.
12131
12132         * device-msw.c (decode_devmode): Cleanup.
12133
12134         * device-msw.c (mswindows_handle_print_setup_dialog_box):
12135         * device-msw.c (mswindows_handle_print_dialog_box):
12136         * device-msw.c (mswindows_handle_page_setup_dialog_box):
12137         * device-msw.c (syms_of_device_mswindows):
12138         Delete the dialog box primitives recently introduced by Kirill and
12139         instead interface to general dialog box interface.
12140
12141         * device-x.c:
12142         * device-x.c (compute_x_app_name):
12143         * device-x.c (x_init_device):
12144         * device-x.c (Fx_valid_keysym_name_p):
12145         * device-x.c (Fx_set_font_path):
12146         [6].
12147         [7].
12148
12149         * device.h (wrap_device): New.
12150         First of its kind; meant to replace XSETDEVICE.
12151
12152         * dialog-msw.c: Many file-dialog symbols.
12153
12154         * dialog-msw.c (mswindows_register_popup_frame): New.
12155         * dialog-msw.c (mswindows_is_dialog_msg): New.
12156         For supporting kbd traversal in dialog boxes.
12157
12158         * dialog-msw.c (dialog_proc):
12159         Support hitting ESC in dialogs.
12160
12161         * dialog-msw.c (struct):
12162         Common dialog box errors.
12163
12164         * dialog-msw.c (handle_file_dialog_box): New.
12165         Add file dialog code.
12166
12167         * dialog-msw.c (handle_question_dialog_box):
12168         Redo existing code to support new question dialog syntax.
12169
12170         * dialog-msw.c (console_type_create_dialog_mswindows):
12171         We support new dialog console method.
12172
12173         * dialog-msw.c (syms_of_dialog_mswindows):
12174         * dialog-msw.c (vars_of_dialog_mswindows):
12175         New file dialog symbols, vars.
12176
12177         * dialog-x.c:
12178         * dialog-x.c (maybe_run_dbox_text_callback):
12179         * dialog-x.c (dbox_descriptor_to_widget_value):
12180         * dialog-x.c (x_make_dialog_box_internal):
12181         * dialog-x.c (console_type_create_dialog_x):
12182         Mule-ize entire file.
12183         Redo to support question dialog syntax.
12184         [6].
12185
12186         * dialog.c:
12187         * dialog.c (Fmake_dialog_box_internal):
12188         * dialog.c (syms_of_dialog):
12189         Kill old popup-dialog-box, replace with new primitive.
12190         Just call device method or signal error.
12191
12192         * eldap.c (Fldap_open):
12193         * eldap.c (Fldap_search_basic):
12194         * eldap.c (Fldap_add):
12195         * eldap.c (Fldap_modify):
12196         [1].
12197         [7].
12198
12199         * emacs.c:
12200         * emacs.c (make_arg_list_1):
12201         * emacs.c (make_arg_list):
12202         Mule-ize call to dll_init().
12203         [6].
12204         [8].
12205
12206         * emacs.c (make_argc_argv):
12207         * emacs.c (free_argc_argv):
12208         * emacs.c (init_cmdargs):
12209         * emacs.c (main_1):
12210         * emacs.c (Fkill_emacs):
12211         * emacs.c (Fdump_emacs):
12212         Update comments about what can be used in syms_* etc.
12213         Call init_win32() when necessary.
12214         Fix up MS Win dialog box in kill-buffer to actually work right.
12215         [7].
12216
12217         * eval.c:
12218         * eval.c (For):
12219         * eval.c (Fand):
12220         * eval.c (Fprogn):
12221         * eval.c (Fprog1):
12222         * eval.c (Fprog2):
12223         * eval.c (FletX):
12224         * eval.c (Flet):
12225         * eval.c (condition_case_3):
12226         * eval.c (Feval):
12227         * eval.c (function_argcount):
12228         * eval.c (funcall_lambda):
12229         [1].
12230
12231         * eval.c (type_error): New.
12232         * eval.c (maybe_type_error): New.
12233         * eval.c (continuable_type_error): New.
12234         * eval.c (maybe_continuable_type_error): New.
12235         * eval.c (type_error_with_frob): New.
12236         * eval.c (maybe_type_error_with_frob): New.
12237         * eval.c (continuable_type_error_with_frob): New.
12238         * eval.c (maybe_continuable_type_error_with_frob): New.
12239         New functions for use with structured errors.
12240
12241         * event-Xt.c:
12242         * event-Xt.c (x_event_to_emacs_event):
12243         Buttons are now modifiers too.
12244
12245         * event-Xt.c (emacs_Xt_current_event_timestamp):
12246         Implement new event method.
12247         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12248
12249         * event-msw.c:
12250         * event-msw.c (ntpipe_shove_writer): [5].
12251         * event-msw.c (mswindows_enqueue_mouse_button_event):
12252         * event-msw.c (mswindows_drain_windows_queue):
12253         * event-msw.c (mswindows_wnd_proc): [7].
12254         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12255         * event-msw.c (mswindows_modifier_state):
12256         Throughout: support new button modifiers.
12257
12258         * event-msw.c (emacs_mswindows_current_event_timestamp):
12259         Implement new event method.
12260         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12261
12262         * event-stream.c:
12263         * event-stream.c (event_stream_current_event_timestamp): New.
12264         * event-stream.c (maybe_kbd_translate): New functionality.
12265         * event-stream.c (vars_of_event_stream):
12266         Document new kbd-translate-table functionality.
12267
12268         * event-stream.c (Fcurrent_event_timestamp): New.
12269         New primitive for use in fabricated events.
12270         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12271
12272         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12273
12274         * events.c:
12275         * events.c (Fmake_event):
12276         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12277         [1].
12278         [9].
12279
12280         * events.c (format_event_object): fix gcc warnings.
12281
12282         * events.c (Fevent_timestamp): Document new primitives.
12283
12284         * events.c (TIMESTAMP_HALFSPACE): New.
12285
12286         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12287         comparing timestamps correctly (half-space algorithm).
12288
12289         * events.c (Fevent_modifier_bits): Doc fix.
12290
12291         * events.c (Fevent_modifiers): Major doc addition.
12292         * events.c (event_x_y_pixel_internal): Typo fix.
12293         * events.c (syms_of_events): Declare new primitives.
12294
12295         * events.h:
12296         Update long comment for button modifiers, timestamps.
12297
12298         * events.h (struct event_stream):
12299         New current_event_timestamp method.
12300
12301         * extents.c:
12302         * extents.c (extent_in_region_p):
12303         * extents.c (decode_extent):
12304         * extents.c (Fset_extent_parent):
12305         * extents.c (decode_map_extents_flags):
12306         Fix gcc warnings.
12307         [9].
12308
12309         * extents.c (struct extent_at_arg):
12310         * extents.c (decode_extent_at_flag):
12311         * extents.c (extent_at_mapper):
12312         * extents.c (extent_at_bytind):
12313         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12314         * extents.c (Fextents_at): New primitive. [9].
12315         * extents.c (symbol_to_glyph_layout): [9].
12316         Support new primitive `extents-at'.
12317
12318
12319         * extents.c (get_text_property_bytind):
12320         extent_at_bytind has another arg.
12321         [9].
12322
12323         * extents.c (syms_of_extents): New primitive.
12324
12325         * file-coding.c (Fmake_coding_system): [1].
12326         * file-coding.c (subsidiary_coding_system): fix gcc warning
12327         * file-coding.c (syms_of_file_coding): [2].
12328
12329         * fileio.c (Fexpand_file_name):
12330         * fileio.c (Fsysnetunam):
12331         * fileio.c (Ffile_exists_p):
12332         * fileio.c (Ffile_executable_p):
12333         * fileio.c (Fverify_visited_file_modtime):
12334         Clean up GCPROing.
12335
12336         * fileio.c (syms_of_fileio): [2].
12337
12338         * filelock.c (lock_file_1):
12339         * filelock.c (current_lock_owner):
12340         * filelock.c (lock_if_free):
12341         * filelock.c (lock_file):
12342         * filelock.c (unlock_file):
12343         Clean up GCPROing.
12344
12345         * fns.c (concat): Fix gcc warning.
12346
12347         * fns.c (Fmember):
12348         * fns.c (Fold_member):
12349         * fns.c (Fmemq):
12350         * fns.c (Fold_memq):
12351         * fns.c (memq_no_quit):
12352         * fns.c (Fassoc):
12353         * fns.c (Fold_assoc):
12354         * fns.c (Fassq):
12355         * fns.c (Fold_assq):
12356         * fns.c (assq_no_quit):
12357         * fns.c (Frassoc):
12358         * fns.c (Fold_rassoc):
12359         * fns.c (Frassq):
12360         * fns.c (Fold_rassq):
12361         * fns.c (rassq_no_quit):
12362         * fns.c (Fdelete):
12363         * fns.c (Fold_delete):
12364         * fns.c (Fdelq):
12365         * fns.c (Fold_delq):
12366         * fns.c (delq_no_quit):
12367         * fns.c (Fremassoc):
12368         * fns.c (Fremassq):
12369         * fns.c (remassq_no_quit):
12370         * fns.c (Fremrassoc):
12371         * fns.c (Fremrassq):
12372         * fns.c (remrassq_no_quit):
12373         * fns.c (Freverse):
12374         * fns.c (mapcar1):
12375         [1].
12376
12377         * frame-msw.c (mswindows_init_frame_1):
12378         * frame-msw.c (mswindows_delete_frame):
12379         Register popups with dialog code so keyboard traversing works.
12380
12381         * frame-tty.c (tty_raise_frame_no_select): [1].
12382
12383         * frame-x.c:
12384         * frame-x.c (x_set_frame_text_value):
12385         * frame-x.c (x_set_frame_properties):
12386         * frame-x.c (x_create_widgets):
12387         [7].
12388
12389         * frame.c:
12390         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12391
12392         * frame.h (wrap_frame): New.
12393         Macro like wrap_device.
12394
12395         * general.c:
12396         * general.c (SYMBOL):
12397         * general.c (syms_of_general):
12398         Major reorg.  This is now just a wrapper and symbols themselves
12399         are listed in general-slots.h.
12400
12401         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12402         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12403
12404         * glyphs-msw.c (mswindows_native_layout_instantiate):
12405         Add DS_CONTROL so keyboard traversal will work.
12406
12407         * glyphs-widget.c:
12408         * glyphs-widget.c (syms_of_glyphs_widget):
12409         Move some symbols to general-slots.h.
12410
12411         * glyphs-x.c:
12412         * glyphs-x.c (xbm_instantiate_1):
12413         * glyphs-x.c (x_xbm_instantiate):
12414         * glyphs-x.c (x_xface_instantiate):
12415         * glyphs-x.c (autodetect_instantiate):
12416         * glyphs-x.c (cursor_font_instantiate):
12417         * glyphs-x.c (x_update_widget):
12418         * glyphs-x.c (x_widget_instantiate):
12419         * glyphs.c (bitmap_to_lisp_data):
12420         * glyphs.c (pixmap_to_lisp_data):
12421         [7].
12422
12423         * glyphs.c (syms_of_glyphs):
12424         [2].
12425
12426         * gui-x.c:
12427         * gui-x.c (print_widget_value):
12428         * gui-x.c (menu_separator_style_and_to_external):
12429         * gui-x.c (add_accel_and_to_external):
12430         * gui-x.c (button_item_to_widget_value):
12431         * gui-x.c (gui_items_to_widget_values_1):
12432         * gui-x.c (gui_items_to_widget_values):
12433         * gui-x.c (syms_of_gui_x):
12434         * gui-x.c (vars_of_gui_x):
12435         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12436         [9].
12437
12438         * gui-x.h:
12439         Muleize, prototype changes matching gui-x.c.
12440
12441         * gui.c:
12442         * gui.c (separator_string_p):
12443         * gui.c (gui_item_add_keyval_pair):
12444         * gui.c (make_gui_item_from_keywords_internal):
12445         * gui.c (signal_too_long_error):
12446         * gui.c (parse_gui_item_tree_item):
12447         * gui.c (syms_of_gui):
12448         * gui.c (vars_of_gui):
12449         * gui.h:
12450         menu-no-selection-hook moved here (used by MSWin).
12451         Move some symbols to general-slots.h.
12452         [6].
12453         [9].
12454
12455         * insdel.c (get_buffer_pos_char):
12456         * insdel.c (get_buffer_range_char):
12457         Add GC comments.
12458
12459         * keymap.c (keymap_lookup_directly):
12460         * keymap.c (keymap_store):
12461         * keymap.c (ensure_meta_prefix_char_keymapp):
12462         * keymap.c (describe_map):
12463         * keymap.h:
12464         Support new button modifiers.
12465
12466         * lisp-disunion.h (wrap_object):
12467         * lisp-disunion.h (XSETOBJ):
12468         Rename make_obj to wrap_object.
12469
12470         * lisp-union.h:
12471         * lisp-union.h (make_int):
12472         * lisp-union.h (make_char):
12473         Support wrap_object.
12474
12475         * lisp.h:
12476         * lisp.h (LIST_LOOP):
12477         * lisp.h (EXTERNAL_LIST_LOOP):
12478         * lisp.h (LIST_LOOP_2):
12479         * lisp.h (EXTERNAL_LIST_LOOP_1):
12480         * lisp.h (EXTERNAL_LIST_LOOP_2):
12481         * lisp.h (EXTERNAL_LIST_LOOP_3):
12482         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12483         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12484         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12485         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12486         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12487         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12488         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12489         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12490         * lisp.h (struct Lisp_Symbol):
12491         * lisp.h (maybe_continuable_error_with_frob):
12492         Fix up section comments.
12493         Add new types for char to indicate usage.
12494         Delete symbols auto-generated from general-slots.h.
12495         Add prototypes for structured error functions.
12496         Add long comments describing looping macros and change interface
12497         so that lvalues are automatically declared.
12498         Add NO_DECLARE macro in case callers want to declare lvalues
12499         themselves.
12500
12501         * lread.c (read_syntax_error):
12502         * lread.c (continuable_read_syntax_error):
12503         * lread.c (read_structure):
12504         * lread.c (sequence_reader):
12505         * lread.c (read_list_conser):
12506         * lread.c (read_compiled_function):
12507         Rename syntax_error and continuable_syntax_error to avoid clash
12508         with same-named structured error functions.
12509
12510         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12511         * menubar-msw.c (populate_menu_add_item):
12512         * menubar-msw.c (populate_or_checksum_helper):
12513         [5].
12514         [9].
12515
12516         * menubar-x.c:
12517         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12518         Mule-ize whole file.
12519
12520         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12521
12522         * mule-charset.c (Fmake_charset):
12523         * mule-wnnfns.c (Fwnn_set_param):
12524         [1].
12525
12526         * ntproc.c (create_child):
12527         * ntproc.c (Fwin32_set_current_locale):
12528         Add comments portending doom.
12529
12530         * objects-msw.c:
12531         * objects-msw.c (old_font_enum_callback_2):
12532         * objects-msw.c (font_enum_callback_1):
12533         * objects-msw.c (mswindows_enumerate_fonts):
12534         [5].
12535
12536         * objects-x.c:
12537         * objects-x.c (allocate_nearest_color):
12538         * objects-x.c (x_parse_nearest_color):
12539         * objects-x.c (x_initialize_color_instance):
12540         * objects-x.c (x_print_color_instance):
12541         * objects-x.c (x_finalize_color_instance):
12542         * objects-x.c (x_valid_color_name_p):
12543         * objects-x.c (x_initialize_font_instance):
12544         * objects-x.c (x_print_font_instance):
12545         * objects-x.c (valid_x_font_name_p):
12546         * objects-x.c (truename_via_FONT_prop):
12547         * objects-x.c (truename_via_random_props):
12548         * objects-x.c (truename_via_XListFonts):
12549         * objects-x.c (x_font_truename):
12550         * objects-x.c (x_font_instance_truename):
12551         * objects-x.c (x_font_instance_properties):
12552         * objects-x.c (x_list_fonts):
12553         * objects-x.c (x_find_charset_font):
12554         Mule-ize entire file.
12555         [7].
12556
12557         * objects-x.h:
12558         Mule-verify.
12559
12560         * print.c:
12561         * print.c (std_handle_out_external):
12562         * print.c (debug_print_no_newline):
12563         * print.c (syms_of_print):
12564         Output to all debugger kinds in debug-print.
12565         Fix console-output code under MSWin to actually work.
12566
12567         * process-nt.c (send_signal):
12568         * process-nt.c (nt_create_process):
12569         Use newer Unicode macros.
12570
12571         * process-unix.c (unix_create_process):
12572         * process-unix.c (unix_canonicalize_host_name):
12573         * process-unix.c (unix_open_network_stream):
12574         [7].
12575
12576         * scrollbar-x.c:
12577         Mule-verify.
12578
12579         * search.c (syms_of_search):
12580         [2].
12581
12582         * select-msw.c (mswindows_destroy_selection):
12583         Use LIST_LOOP_2.
12584
12585         * select-x.c (symbol_to_x_atom):
12586         [7].
12587
12588         * select.c (syms_of_select):
12589         [2].
12590
12591         * sound.c (Fplay_sound_file):
12592         [7].
12593
12594         * specifier.c:
12595         * specifier.c (decode_specifier_type):
12596         * specifier.c (Fvalid_specifier_locale_type_p):
12597         * specifier.c (check_valid_locale_or_locale_type):
12598         * specifier.c (decode_locale):
12599         * specifier.c (decode_locale_type):
12600         * specifier.c (decode_locale_list):
12601         * specifier.c (check_valid_domain):
12602         * specifier.c (decode_specifier_tag_set):
12603         * specifier.c (Fcanonicalize_tag_set):
12604         * specifier.c (Fdefine_specifier_tag):
12605         * specifier.c (Fspecifier_tag_predicate):
12606         * specifier.c (check_valid_inst_list):
12607         * specifier.c (check_valid_spec_list):
12608         * specifier.c (decode_how_to_add_specification):
12609         * specifier.c (check_modifiable_specifier):
12610         * specifier.c (specifier_add_spec):
12611         * specifier.c (boolean_validate):
12612         * specifier.c (display_table_validate):
12613         [9].
12614
12615         * specifier.c (syms_of_specifier):
12616         Move some symbols to general-slots.h.
12617         [2].
12618
12619         * symbols.c:
12620         * symbols.c (Fmapatoms):
12621         * symbols.c (Fapropos_internal):
12622         Add GCPROs.
12623
12624         * symbols.c (set_default_buffer_slot_variable):
12625         * symbols.c (set_default_console_slot_variable):
12626         [1].
12627
12628         * symbols.c (defsymbol_massage_name_1):
12629         * symbols.c (defkeyword_massage_name):
12630         * symbols.c (deferror_1):
12631         * symbols.c (deferror):
12632         * symbols.c (deferror_massage_name_and_message):
12633         * symeval.h:
12634         * symeval.h (DEFSYMBOL):
12635         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12636
12637         * symbols.c (syms_of_symbols):
12638         [2].
12639
12640         * symsinit.h:
12641         * symsinit.h (init_win32): New.
12642         Also new is syms_of_dialog_mswindows.
12643
12644         * syswindows.h:
12645         Add new Unicode macros, missing Cygwin wide-char functions,
12646         convenience conversion macros for Qmswindows_tstr, macros for
12647         encapsulating required MSWin <-> Cygwin filename conversions,
12648         prototype for dynamically-extracted (not in NT 3.51) functions.
12649
12650         * toolbar-x.c:
12651         Mule-verify.
12652
12653         * tooltalk.c (Fadd_tooltalk_message_arg):
12654         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12655         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12656         [7].
12657
12658         * tooltalk.c (syms_of_tooltalk):
12659         [2].
12660
12661         * unexnt.c:
12662         * unexnt.c (unexec):
12663         Fix up headers, declaration of unexec() to be more standard.
12664
12665 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12666
12667         * offix.h: Revert change to guard macros - they're used in offix.c!
12668
12669 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12670
12671         * lisp.h: Defsubred Fdelete.
12672
12673         * console-msw.h:  (msprinter_default_printer): Added.
12674
12675         * console-msw.c (msprinter_canonicalize_console_connection):
12676         (msprinter_canonicalize_device_connection): Added.
12677
12678         * device-msw.c (msprinter_default_printer):
12679         (Fmswingows_get_default_printer):
12680         (signal_enum_priner_error):
12681         (Fmswingows_printer_list): Added.
12682
12683 2000-07-19  Martin Buchholz <martin@xemacs.org>
12684
12685         * XEmacs 21.2.35 is released.
12686
12687 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12688
12689         * select-x.c (x_handle_selection_request):
12690         Text selected in xemacs and pasted into xterm failed to appear.
12691         Spelling fixes and cosmetic changes.
12692
12693 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12694
12695         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12696         XEmacs frame (fix for doubling chars in dialog boxes).
12697
12698 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12699
12700         * select.c (select_convert_in, select_convert_out):
12701         Don't call intern() every time.
12702
12703         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12704         * select.c (vars_of_select): Initialise them.
12705
12706 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12707
12708         * select.c (selection-coercible-types): New.
12709
12710         * select.c (own-selection-internal):
12711         * select.c (get-selection-internal):
12712         MULE bug fix - these should default to COMPOUND_TEXT and not
12713         STRING for MULE. I think.
12714
12715         * select.c (select_convert_out): Use selection-coercible-types
12716         to find types that we can attempt to perform coercions on.
12717
12718 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12719
12720         * mule-wnnfns.c:
12721         * mule-canna.c:
12722         Add coding: cookie to identify encoding.
12723
12724         * mule-canna.c (CANNA_mode_keys): make static.
12725         Use proper prototypes, even for functions of no arguments.
12726         Remove external prototype for Fding().
12727
12728         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12729
12730         * select.c (syms_of_select): Add missing DEFSUBR.
12731
12732 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12733
12734         * select.c (get_selection_internal, own_selection_internal):
12735         Make the type default to STRING, rather than placing a nil type
12736         into Vselection_alist.
12737
12738 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12739
12740         * gpmevent.c (tty_selection_exists_p):
12741         * gpmevent.c (tty_own_selection):
12742         Updated parameter lists.
12743
12744 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12745
12746         * select.h (selection-alist): Removed declaration.
12747
12748         * select.h (get_local_selection):
12749         * select.c (get_local_selection):
12750         Made static.
12751
12752         * select.h (convert_selection): Removed declaration.
12753         * select.c (convert_selection): Removed.
12754         This function belongs in Lisp.
12755
12756         * select.h (select_convert_in): Declare.
12757         * select.h (select_convert_out): Declare.
12758         * select.c (select_convert_in): New.
12759         * select.c (select_convert_out): New.
12760         New conversion functions for other files to call.
12761
12762         * select.h (select_notify_buffer_kill): Declare.
12763         * select.c (select_notify_buffer_kill): New.
12764         New functions that get called from kill-buffer.
12765
12766         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12767         X-specific lisp code.
12768
12769         * select.h: Declare some of the lisp-visible functions for
12770         external use.
12771
12772         * select.c (clean_local_selection_data): Removed. This was
12773         a disgusting function, and previously should have been in
12774         select-x.c in any case. The functionality is now provided
12775         in select-convert-from-integer (select.el).
12776
12777         * select.c (available-selection-types): Fixed stupidity where
12778         INTEGER and ATOM got added twice. Also add STRING when we see an
12779         extent.
12780
12781         * select.c (get-selection-internal): Removed symbol stripping. No
12782         longer causes conversion when data comes from the internal cache.
12783
12784         * select.c (syms_of_select): Added new functions.
12785
12786         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12787         error checking - previously this called abort!
12788
12789         * select-x.c (x_own_selection): Changed comment.
12790
12791         * select-x.c (x_handle_selection_request): Use select_convert_out.
12792         Don't mess with selection-alist; it's an internal variable of select.c.
12793
12794         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12795
12796         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12797         rather than messing with selection-alist.
12798
12799         * select-msw.c (mswindows_get_foreign_selection):
12800         Use TO_INTERNAL_FORMAT rather than hacking.
12801
12802 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12803
12804         * process-unix.c (unix_open_multicast_group):
12805         (unix_open_multicast_group): Remove useless casts.
12806
12807 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12808
12809         * sound.c (Fplay_sound): Fix `unused variable' warning.
12810
12811         * emacs.c (main): Use correct type for _environ on SCO5.
12812
12813 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12814
12815         * console.h (own_selection_method):
12816         * console.h (selection_exists_p_method):
12817         * console.h (available_selection_types_method): New.
12818         * console.h (register_selection_data_type_method): New.
12819         * console.h (selection_data_type_name): New.
12820
12821         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12822         function & alist to track GlobalAlloc()'d handles that need
12823         releasing when the clipboard data gets replaced or emptied.
12824
12825         * event-msw.c (mswindows_wnd_proc): Call it.
12826
12827         * lisp.h, general.c (Qappend): New symbol representing a
12828         `how-to-add' mode.
12829
12830         * select.c (own-selection-internal):
12831         * select.c (selection-exists-p):
12832         * select.c (available-selection-types): New.
12833         * select.c (register-selection-data-type): New.
12834         * select.c (selection-data-type-name): New.  New functions to deal
12835         with device-specific selection data formats.
12836         * select.c (selection-converter-out-alist): Renamed.
12837         * select.c (selection-converter-in-alist): New.
12838         * select.c (selection-appender-alist): New.  Added new alists.
12839         * select.c (syms_of_select, vars_of_select): Added new symbols &
12840         variables.
12841         * select.c (get_local_selection): Split.
12842         * select.c: Removed spurious type checking - selections may now be
12843         of any type, not just strings.
12844         * select.c (own-selection-internal):
12845
12846         * select.h, select.c (convert_selection): New. Created
12847         convert_selection() function based on get_local_selection().
12848         * select.h, select.c (QCF_*): New symbols representing mswindows
12849         clipboard formats.
12850         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12851         symbols representing `how-to-add' modes.
12852
12853         * select-msw.c (x_sym_p): New.
12854         * select-msw.c (symbol_to_ms_cf): New.
12855         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12856         symbols & clipboard formats. Can also handle string names.
12857         * select-msw.c (mswindows_own_selection):
12858         * select-msw.c (mswindows_selection_exists_p):
12859         Added `data-type' parameter. Use it.
12860         * select-msw.c (mswindows_available_selection_types): New.
12861         * select-msw.c (mswindows_register_selection_data_type): New.
12862         * select-msw.c (mswindows_selection_data_type_name): New.
12863         * select-msw.c (mswindows_own_selection):
12864         * select-msw.c (mswindows_get_foreign_selection):
12865         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12866         * select-msw.c (console_create_select_mswindows): Added new methods.
12867         * select-msw.c (mswindows_destroy_selection): New.
12868         * select-msw.c (Vhandle_alist): New list.
12869         * select-msw.c (mswindows_own_selection):
12870
12871         * select-x.c (x_own_selection):
12872         * select-x.c (x_selection_exists_p):
12873         * select-x.c: Added some comments about maybe using new
12874         functionality.
12875         * select-x.c (x_own_selection):
12876
12877         * specifier.c: Remove definition of Qappend (now in general.c)
12878         * specifier.c (syms_of_specifier): Remove Qappend.
12879
12880 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12881
12882         * config.h.in: Add socklen_t.
12883
12884         * s/decosf4-0.h: No special compiler flags needed or desired.
12885         In particular, undefine _BSD for DEC OSF 4.0.
12886
12887 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12888
12889         * redisplay-msw.c (msprinter_frame_output_end): Added.
12890         (console_type_create_redisplay_mswindows): Referred the above.
12891
12892         * frame.c (setup_frame_without_minibuffer): Do not create a
12893         default minibuffer frame on a printer device.
12894
12895         * frame-msw.c (apply_dc_geometry): Added.
12896         (msprinter_start_page):
12897         (msprinter_init_frame_3):
12898         (msprinter_eject_page): Use it.
12899
12900         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12901         and removed residual duplex and orientation properties.
12902
12903 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12904
12905         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12906
12907         * unexalpha.c: Remove system prototypes from C sources!
12908
12909 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12910
12911         * eval.c: Remove references to M-x edit-options in DEFUNs for
12912         `defvar' and `defconst'.
12913
12914 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12915
12916         * config.h.in: Remove SMART_INCLUDE hackery.
12917
12918         PostgreSQL hacking:
12919         * config.h.in: Don't use SMART_INCLUDE.
12920
12921         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12922         * inline.c: Simply #include "postgresql.h"
12923         * postgresql.c:
12924         - Don't use SMART_INCLUDE
12925         - Use simply "const".
12926         - Use standard doc string conventions.
12927         - Use correct type for result of PQstatus.
12928
12929 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12930
12931         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12932
12933         C++ compilation changes.
12934         * config.h.in (EXTERN_C): Define.
12935         * config.h.in (not): This is also a C++ keyword.
12936         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12937         * cm.c: Use EXTERN_C.
12938         * redisplay-tty.c: Use EXTERN_C.
12939         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12940
12941 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12942
12943         * general.c: Remove duplicate definition for Qfunction.
12944
12945 2000-07-08  Ben Wing  <ben@xemacs.org>
12946
12947         * device-msw.c (msprinter_init_device):
12948         * device-msw.c (sync_printer_with_devmode):
12949         * device-msw.c (handle_devmode_changes):
12950         * device-msw.c (print_dialog_worker):
12951         * device-msw.c (Fmsprinter_apply_settings):
12952         * device-msw.c (hash_devmode):
12953         * device-msw.c (Fmsprinter_settings_despecialize):
12954         use Qmswindows_tstr, not Qctext.
12955
12956         * vm-limit.c (check_memory_limits):
12957         avoid infinite loop printing warning messages.
12958
12959 2000-07-05  Craig Lanning  <lanning@scra.org>
12960
12961         * Makefile.in.in: Add support for including the Windows resources
12962         when building with the cygwin and mingw targets.
12963
12964         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12965         not set or not correct.
12966         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12967         (init_initial_directory): Don't try to use $PWD on the
12968         WIN32_NATIVE target.
12969
12970         * s\cygwin32.h:
12971         [[Add -mwindows to eliminate console window.]] not required --ben
12972         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12973         (MAIL_USE_POP): removed; now handled by configure.
12974
12975         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12976         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12977         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12978         (MAIL_USE_POP): removed; now handled by configure.
12979         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12980         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12981         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12982         constant string.
12983         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12984         up from <winsock.h> via systime.h.
12985         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12986         (getpagesize): from Dan Holmsand, added.
12987         Added #endif which was left dangling by Ben's mega patch; added
12988         comment to help prevent this in the future.
12989
12990         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12991
12992 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12993
12994         * console-msw.h (struct mswindows_device): Removed unnecessary
12995         cached device geometry values.
12996         Added update_tick and an accessor macro.
12997         (Lisp_Devmode): Added lrecord declaration.
12998         (struct msprinter_device): Contain devmode as a Lisp object.
12999         Added mswindows_get_selected_frame_hwnd();
13000
13001         * console.h (struct console_methods): Indentation nitpicking.
13002
13003         * device-msw.c (mswindows_init_device): Do not initialize geometry
13004         cache. Initialize update tick.
13005         (mswindows_device_system_metrics): Ask the device for its geometry.
13006         (global_free_2_maybe):
13007         (devmode_to_hglobal):
13008         (handle_printer_changes):
13009         (ensure_not_printing):
13010         (print_dialog_worker):
13011         (Fmsprinter_print_setup_dialog):
13012         (Fmsprinter_print_dialog):
13013         (plist_get_margin):
13014         (plist_set_margin):
13015         (Fmsprinter_page_setup_dialog): Added functions.
13016         (sync_printer_with_devmode):
13017         (handle_devmode_changes):
13018         (Fmsprinter_get_settings):
13019         (Fmsprinter_select_settings):
13020         (Fmsprinter_apply_settings):
13021         (allocate_devmode):
13022         (Fmsprinter_settings_copy):
13023         (Fmsprinter_settings_despecialize):
13024         (print_devmode):
13025         (finalize_devmode):
13026         (equal_devmode):
13027         (hash_devmode): Added functions
13028         (syms_of_device_mswindows): Init devmode lrecord class.
13029
13030         * device.h: Added an exfun for find-device.
13031
13032         * event-msw.c (mswindows_wnd_proc): Do not update the cached
13033         geometry; although, recreate the device compatible DC.
13034
13035         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
13036         (msprinter_init_frame_3):
13037         (msprinter_frame_property):
13038         (msprinter_internal_frame_property_p):
13039         (msprinter_frame_properties):
13040         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
13041         print job properties (will move to device settings).
13042
13043         * lisp.h: Added symbols.
13044
13045         * general.c (syms_of_general): Declared them.
13046
13047         * hash.c (string_hash): Added.
13048
13049         * lrecord.h (lrecord_type): Added devmode lrecord type.
13050
13051 2000-07-02  Mike Sperber <mike@xemacs.org>
13052
13053         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
13054         FreeBSD 4.0.
13055
13056 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
13057
13058         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
13059         integer.
13060
13061 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
13062
13063         * data.c (Fstring_to_number): Don't recognize floating point if
13064         base is not 10.
13065
13066 2000-06-22  Martin Buchholz  <martin@xemacs.org>
13067
13068         * glyphs-widget.c (tab_control_query_geometry):
13069         (widget_query_geometry):
13070         (button_query_geometry):
13071         * glyphs.c (text_query_geometry):
13072         Enforce type correctness.
13073
13074 2000-06-18  Martin Buchholz  <martin@xemacs.org>
13075
13076         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
13077         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
13078
13079 2000-06-17  Martin Buchholz  <martin@xemacs.org>
13080
13081         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
13082         conflicts with gcc's fixincluded version of FOO.h.
13083
13084         * glyphs.h (image_instance_geometry): Remove trailing `,'
13085
13086 2000-06-08  Mike Alexander  <mta@arbortext.com>
13087
13088         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
13089         (shove_thread): Don't write the same output twice
13090         (make_ntpipe_output_stream): Increase priority of shove thread
13091         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
13092         chance to run
13093         (ntpipe_shove_closer): Don't delete the pipe until we're done with
13094         it.
13095
13096 2000-06-12  Ben Wing  <ben@xemacs.org>
13097
13098         * s\mingw32.h (sigset):
13099         * s\windowsnt.h (sigset):
13100         rename msw_ to mswindows_ for consistency with general convention.
13101
13102 2000-06-12  Ben Wing  <ben@xemacs.org>
13103
13104         * console-msw.c:
13105         * console-msw.c (mswindows_get_console_hwnd):
13106         * console-msw.c (mswindows_ensure_console_allocated):
13107         * console-msw.c (mswindows_hide_console):
13108         * console-msw.c (mswindows_show_console):
13109         * console-msw.c (mswindows_ensure_console_buffered):
13110         * console-msw.c (mswindows_output_console_string):
13111         * console-msw.c (mswindows_windows9x_p):
13112         * console-msw.h:
13113         * device-msw.c (mswindows_get_workspace_coords):
13114         * device-msw.c (mswindows_device_system_metrics):
13115         * dialog-msw.c (mswindows_popup_dialog_box):
13116         * event-msw.c (mswindows_wnd_proc):
13117         * frame-msw.c (mswindows_size_frame_internal):
13118         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
13119         * menubar-msw.c (displayable_menu_item):
13120         * menubar-msw.c (mswindows_char_is_accelerator):
13121         * nt.c:
13122         * nt.c (mswindows_sigset):
13123         * nt.c (mswindows_sigrelse):
13124         * nt.c (mswindows_sigpause):
13125         * nt.c (mswindows_raise):
13126         * nt.c (timer_proc):
13127         * ntproc.c:
13128         * ntproc.c (find_child_console):
13129         * ntproc.c (sys_kill):
13130         * print.c:
13131         * print.c (std_handle_out_external):
13132         * process-nt.c (find_child_console):
13133         * process-nt.c (send_signal_the_95_way):
13134         * process-nt.c (ensure_console_window_exists):
13135         * process-nt.c (nt_create_process):
13136         * syssignal.h:
13137         rename msw_ to mswindows_ for consistency with general convention.
13138
13139         * emacs.c:
13140         * dumper.c:
13141         include nt.h, not syswindows.h.
13142
13143         * nt.c (mswindows_fstat):
13144         * nt.c (mswindows_stat):
13145         prefix mswindows_ instead of attempting to directly override the
13146         library functions.  fix declarations.
13147
13148         * nt.h:
13149         include syswindows.h.  move some sysdep.h stuff here.
13150
13151         * ntheap.h:
13152         include syswindows.h, not <windows.h>.
13153
13154         * ntplay.c:
13155         clean up headers.
13156
13157         * sysdep.c:
13158         clean up headers.
13159
13160         * sysdep.c (sys_fstat):
13161         * sysdep.c (sys_stat):
13162         call mswindows versions when appropriate.
13163
13164         * sysdep.h:
13165         move mswin decls to nt.h.
13166
13167         * syswindows.h:
13168         add long comment describing appropriate use of the various windows
13169         headers.
13170
13171 2000-06-11  Ben Wing  <ben@xemacs.org>
13172
13173         * device-x.c: Correct doc string for sixth arg of x-get-resource.
13174
13175 2000-06-10  Ben Wing  <ben@xemacs.org>
13176
13177         * Makefile.in.in (release):
13178         Correction to make sure xemacs.exe always dumped when correct.
13179
13180         * alloca.c:
13181         * balloon_help.c:
13182         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
13183
13184         * buffer.c (set_buffer_internal):
13185         [[[[2]]]]: Remove HAVE_FEP code.
13186
13187         * buffer.c (init_initial_directory):
13188         [3].
13189
13190         * bytecode.c:
13191         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
13192         individual files.
13193
13194         * callproc.c:
13195         * callproc.c (call_process_cleanup):
13196         * callproc.c (Fold_call_process_internal):
13197         * callproc.c (child_setup):
13198         * callproc.c (getenv_internal):
13199         * callproc.c (init_callproc):
13200         * callproc.c (vars_of_callproc):
13201         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
13202         __CYGWIN32__ -> CYGWIN.
13203         DOS_NT -> WIN32_NATIVE.
13204         Remove MSDOS support/references, converting to WIN32_NATIVE
13205           where correct.
13206         __MINGW32__ -> MINGW.
13207         Fix windows.h includes.
13208         Remove bogus HAVE_NTGUI.
13209
13210         * config.h.in:
13211         [2].
13212
13213         * console-msw.c:
13214         mswindows_message_outputted added for use in allowing startup
13215         errors on the console to be seen.
13216
13217         * console-msw.c (msw_ensure_console_allocated):
13218         * console-msw.c (msw_output_console_string):
13219         * console-msw.c (DHEADER):
13220         * console-msw.c (DOPAQUE_DATA):
13221         * console-msw.c (DEVENT):
13222         * console-msw.c (DCONS):
13223         * console-msw.c (DCONSCDR):
13224         * console-msw.c (DSTRING):
13225         * console-msw.c (DVECTOR):
13226         * console-msw.c (DSYMBOL):
13227         * console-msw.c (DSYMNAME):
13228         Fix warnings.
13229
13230         * console-stream.c (stream_init_console):
13231         Fix text/binary problems.
13232
13233         * device-msw.c:
13234         * device-msw.c (mswindows_finish_init_device):
13235         * device-msw.c (mswindows_delete_device):
13236         [1].
13237
13238         * device.c (handle_asynch_device_change):
13239         [3].
13240
13241         * dgif_lib.c:
13242         * dgif_lib.c (DGifOpenFileName):
13243         * dgif_lib.c (DGifOpenFileHandle):
13244         * dgif_lib.c (DGifGetLine):
13245         * dgif_lib.c (DGifGetPixel):
13246         Added config.h/lisp.h, fix up includes.
13247         [1].
13248
13249         * dired-msw.c:
13250         [4].
13251
13252         * dired.c:
13253         * dired.c (file_name_completion):
13254         * dired.c (Ffile_attributes):
13255         * dired.c (syms_of_dired):
13256         [1].
13257
13258         * dumper.c:
13259         * dumper.c (pdump_file_unmap):
13260         * dumper.c (pdump_load):
13261         [1].
13262
13263         * editfns.c:
13264         * editfns.c (Ftemp_directory):
13265         * editfns.c (user_login_name):
13266         * editfns.c (Fuser_real_login_name):
13267         * editfns.c (get_home_directory):
13268         [1].
13269
13270         * elhash.c (finish_marking_weak_hash_tables):
13271         [[[[5]]]]: Fix GCC warnings.
13272
13273         * emacs.c:
13274         * emacs.c (mswindows_handle_hardware_exceptions):
13275         * emacs.c (make_arg_list_1):
13276         * emacs.c (main_1):
13277         * emacs.c (Fkill_emacs):
13278         * emacs.c (Fdump_emacs):
13279         [1].
13280         Fix problems with nested crashes, add long comment.
13281
13282         * event-Xt.c (init_event_Xt_late):
13283         [1].
13284
13285         * event-msw.c:
13286         * event-msw.c (mswindows_dde_callback):
13287         * event-msw.c (mswindows_handle_sticky_modifiers):
13288         * event-msw.c (mswindows_wnd_proc):
13289         [1].
13290         [5].
13291
13292         * events.c (character_to_event):
13293         [1].
13294
13295         * fileio.c:
13296         * fileio.c (Ffile_name_directory):
13297         * fileio.c (Ffile_name_nondirectory):
13298         * fileio.c (directory_file_name):
13299         * fileio.c (Fexpand_file_name):
13300         * fileio.c (Fsubstitute_in_file_name):
13301         * fileio.c (Ffile_name_absolute_p):
13302         * fileio.c (check_executable):
13303         * fileio.c (Ffile_readable_p):
13304         * fileio.c (Ffile_accessible_directory_p):
13305         * fileio.c (Ffile_modes):
13306         * fileio.c (Funix_sync):
13307         * fileio.c (vars_of_fileio):
13308         [1]. [4].
13309
13310         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13311
13312         Expand getdefdir defn.
13313         Fix bogus rename() comment.
13314
13315         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13316         to use standard XEmacs include files, e.g. sysfile.h, rather
13317         than system-specific includes.
13318
13319         * fns.c:
13320         * fns.c (Fsubseq):
13321         [5]. [6].
13322
13323         * frame.c (vars_of_frame):
13324         [1].
13325
13326         * getloadavg.c:
13327         * getloadavg.c (getloadavg):
13328         [1]. [6].
13329         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13330         (We don't use it elsewhere in the code; just add a comment.)
13331
13332         * gif_io.c:
13333         [6].
13334         Add config.h.
13335
13336         * glyphs-msw.c:
13337         * glyphs-msw.c (mswindows_resource_instantiate):
13338         [1].
13339
13340         * glyphs-x.c (x_native_layout_instantiate):
13341         [5].
13342
13343         * gui-msw.c (Fmswindows_shell_execute):
13344         [1].
13345
13346         * insdel.c:
13347         [4].
13348
13349         * lisp.h:
13350         [4]. [5].
13351
13352         * lread.c (locate_file_in_directory_mapper):
13353         [1].
13354
13355         * lstream.c:
13356         [4].
13357
13358         * mem-limits.h:
13359         * mem-limits.h (get_lim_data):
13360         [1].
13361
13362         * menubar-msw.c:
13363         [4].
13364
13365         * ndir.h:
13366         [1].
13367
13368         * nt.c:
13369         * nt.c (getwd):
13370         * nt.c (closedir):
13371         * nt.c (rva_to_section):
13372         * nt.c (mswindows_executable_type):
13373         [1]. [6].
13374         Fix closedir() defn.
13375
13376         * nt.h:
13377         [[[[8]]]]: *_OK defs moved to sysfile.h.
13378
13379         * ntproc.c:
13380         [6]. [7].
13381
13382         * objects-x.c:
13383         [4].
13384
13385         * print.c:
13386         * print.c (std_handle_out_external):
13387         [1]. [4].
13388
13389         * process-nt.c:
13390         * process-nt.c (nt_create_process):
13391         [6].
13392         try to fix process quoting somewhat.
13393
13394         * process-unix.c (unix_create_process):
13395         [1].
13396
13397         * process.c:
13398         * process.c (vars_of_process):
13399         Add Vnull_device.
13400
13401         * process.h:
13402         [1].
13403
13404         * realpath.c:
13405         * realpath.c (xrealpath):
13406         [1].
13407
13408         * redisplay-tty.c (init_tty_for_redisplay):
13409         [3].
13410
13411         * redisplay.c:
13412         [4]. [6].
13413
13414         * scrollbar-msw.c:
13415         [4].
13416
13417         * sheap.c:
13418         * sheap.c (more_static_core):
13419         * sheap.c (report_sheap_usage):
13420         [5]. [6].
13421
13422         * signal.c:
13423         * signal.c (alarm_signal):
13424         [1]. [6].
13425
13426         * sound.c:
13427         [6].
13428
13429         * strftime.c:
13430         * strftime.c (zone_name):
13431         [1]. [5].
13432
13433         * symsinit.h (init_sunpro):
13434         [1].
13435
13436         * syscommctrl.h:
13437         commctrl.h not in Cygwin b20.1.
13438
13439         * sysdep.c:
13440         * sysdep.c (endif):
13441         * sysdep.c (sys_subshell):
13442         * sysdep.c (init_baud_rate):
13443         * sysdep.c (emacs_get_tty):
13444         * sysdep.c (emacs_set_tty):
13445         * sysdep.c (tty_init_sys_modes_on_device):
13446         * sysdep.c (init_system_name):
13447         * sysdep.c (sys_open):
13448         * sysdep.c (interruptible_open):
13449         * sysdep.c (sys_fopen):
13450         * sysdep.c (sys_mkdir):
13451         * sysdep.c (sys_rename):
13452         * sysdep.c (get_process_times_1):
13453         [1]. [6].
13454
13455         * sysdep.h:
13456         [1].
13457
13458         * sysdir.h:
13459         * sysdir.h (DIRENTRY_NONEMPTY):
13460         [1]. [6].
13461
13462         * sysdll.c (dll_init):
13463         * sysdll.h:
13464         [1].
13465
13466         * sysfile.h:
13467         [1]. [6]. [8].
13468         added text/binary defs.
13469
13470         * sysfloat.h:
13471         [1].
13472
13473         * sysproc.h:
13474         * sysproc.h (EDESTADDRREQ):
13475         * sysproc.h (poll_fds_for_input):
13476         [1]. [6].
13477
13478         * syspwd.h:
13479         [6].
13480
13481         * syssignal.h:
13482         [1].
13483
13484         * systime.h:
13485         [1]. [6].
13486
13487         * systty.h:
13488         [1].
13489
13490         * syswindows.h:
13491         [1].
13492         Always define WIN32_LEAN_AND_MEAN.
13493
13494         * unexcw.c (unexec):
13495         [5].
13496
13497         * unexec.c:
13498         * unexec.c (copy_text_and_data):
13499         * unexec.c (adjust_lnnoptrs):
13500         [1].
13501
13502         * unexnt.c:
13503         * unexnt.c (_start):
13504         [1].
13505
13506 2000-06-07  Ben Wing  <ben@xemacs.org>
13507
13508         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13509         was used only as a model.  We've long since extracted any useful
13510         logic or code out of this. (I just did an exhaustive search.)
13511
13512         * s\msdos.h: Removed.
13513
13514         * s\windows95.h: Removed.
13515
13516 2000-06-10  Ben Wing  <ben@xemacs.org>
13517
13518         * s\cygwin32.h:
13519         [1]. [5].
13520         Don't use extern with fun defs.
13521
13522         * s\mingw32.h:
13523         [1]. [7].
13524         Remove nt\inc include.
13525         Remove getdisk, getdefdir. (The former is unused, the latter
13526         expanded in fileio.h.)
13527
13528         * s\windowsnt.h:
13529         * s\windowsnt.h (WIN32_NATIVE):
13530         * s\windowsnt.h (HAVE_STRCASECMP):
13531         [1]. [7].
13532         Add long comment about preprocessor changes.
13533         Remove getdisk, getdefdir. (The former is unused, the latter
13534         expanded in fileio.h.)
13535
13536 2000-06-10  Ben Wing  <ben@xemacs.org>
13537
13538         * m\arm.h:
13539         * m\delta.h:
13540         * m\intel386.h:
13541         * m\sequent.h:
13542         * m\template.h:
13543         * m\windowsnt.h:
13544         [1].
13545         Remove bogus/unused NO_SOCK_SIGIO.
13546
13547 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13548
13549         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13550         not an Emchar.
13551
13552 2000-06-04  Mike Sperber <mike@xemacs.org>
13553
13554         * casetab.c (set_case_table): For `set-standard-case-table',
13555         actually deposit the new case tables where the rest of XEmacs can
13556         see them.
13557
13558 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13559
13560         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13561
13562 2000-06-05  Ben Wing  <ben@xemacs.org>
13563
13564         * callproc.c (child_setup): Don't do close_load_descs() under
13565         MS Windows.  Put in a comment explaining why.
13566
13567 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13568
13569         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13570         Toolkit shell" which breaks `kill-compilation' on Windows NT
13571         native, retaining STDERR handling improvements.
13572
13573 2000-06-01  Andreas Jaeger  <aj@suse.de>
13574
13575         * s/s390.h: Support for S390, based on a patch by Martin
13576         Schwidefsky <schwidefsky@de.ibm.com>.
13577
13578 2000-05-30  Andy Piper  <andy@xemacs.org>
13579
13580         * window.c (allocate_window):
13581         (make_dummy_parent):
13582         (Fset_window_configuration): use new hashtable type.
13583
13584         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13585         (struct image_instantiator_methods):
13586         (struct Lisp_Image_Instance): make instance geometry signed.
13587
13588         * glyphs.c (instantiate_image_instantiator):
13589         (image_instance_query_geometry):
13590         (image_instance_layout):
13591         (image_instance_layout):
13592         (query_string_geometry):
13593         (text_query_geometry):
13594         (image_instantiate):
13595         (image_instantiate):
13596         (cache_subwindow_instance_in_frame_maybe):
13597         (subwindow_query_geometry): make instance geometry signed.
13598
13599         * glyphs-widget.c (widget_query_geometry):
13600         (widget_layout):
13601         (button_query_geometry):
13602         (tree_view_query_geometry):
13603         (tab_control_query_geometry):
13604         (layout_query_geometry):
13605         (layout_layout):
13606         (native_layout_layout): make instance geometry signed.
13607
13608 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13609
13610         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13611         constant.
13612
13613         * general.c (syms_of_general): Add Qfull_assoc symbol.
13614
13615         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13616         correctly.
13617         (decode_weak_list_type): Decode full-assoc type.
13618         (encode_weak_list_type): Encode full-assoc type.
13619         (Fmake_weak_list): Update doc string.
13620
13621 2000-05-30  Andy Piper  <andy@xemacs.org>
13622
13623         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13624
13625         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13626         (decode_hash_table_weakness): ditto.
13627         (Fhash_table_weakness): ditto.
13628         (Fhash_table_type): ditto.
13629         (finish_marking_weak_hash_tables): ditto.
13630         (hash_table_weakness_validate): ditto.
13631         (syms_of_elhash): ditto.
13632
13633 2000-05-28  Martin Buchholz <martin@xemacs.org>
13634
13635         * XEmacs 21.2.34 is released.
13636
13637 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13638
13639         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13640         start cache.
13641         (updating_line_start_cache): Gone.
13642         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13643         generic code to force a minimum of 1 line laid out in the
13644         CMOTION_DISP case.
13645
13646 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13647
13648         * glyphs.c (instantiate_image_instantiator): Check for initialized
13649         height & width no longer special cases IMAGE_NOTHING.
13650         (nothing_instantiate): Set height and width of instance.
13651
13652 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13653
13654         * unexelf.c (unexec): Search for ".data" section.
13655         Initialize new_data2_offset from old_data_index.
13656         Remove redundant check for ElfW.
13657
13658 2000-05-23  Andy Piper  <andy@xemacs.org>
13659
13660         * glyphs.c (get_image_instantiator_governing_domain): allow more
13661         specific domains as the governing domain rather than expecting an
13662         exact match. This fixes problems with layouts.
13663
13664 2000-05-22  Andy Piper  <andy@xemacs.org>
13665
13666         * redisplay-output.c (compare_runes): check for non-images
13667
13668         * glyphs.c (set_glyph_dirty_p): ditto.
13669         (update_glyph_cachel_data): ditto.
13670
13671         * glyphs-widget.c (layout_post_instantiate): ditto.
13672         (layout_post_instantiate): ditto.
13673
13674         * event-msw.c (mswindows_wnd_proc): warning removal.
13675
13676 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13677
13678         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13679
13680         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13681
13682         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13683
13684         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13685         (mswindows_executable_type): mingw32 now has enough headers for
13686         this to work.
13687
13688 2000-05-20  Andy Piper  <andy@xemacs.org>
13689
13690         * console-msw.c (mswindows_output_last_error): ; -> ,
13691
13692 2000-05-12  Andy Piper  <andy@xemacs.org>
13693
13694         * console-msw.c (FROB): compare ints with ints.
13695
13696 2000-05-11  Andy Piper  <andy@xemacs.org>
13697
13698         * glyphs-x.c (x_finalize_image_instance): make minimal build
13699         happy.
13700
13701 2000-05-20  Ben Wing  <ben@xemacs.org>
13702
13703         * event-Xt.c:
13704         * event-Xt.c (vars_of_event_Xt):
13705         move modifier-keys-are-sticky to event-stream.c.
13706
13707         * event-msw.c:
13708         * event-msw.c (mswindows_enqueue_mouse_button_event):
13709         * event-msw.c (key_needs_default_processing_p):
13710         * event-msw.c (XEMSW_LCONTROL):
13711         * event-msw.c (mswindows_handle_sticky_modifiers):
13712         * event-msw.c (FROB):
13713         * event-msw.c (clear_sticky_modifiers):
13714         * event-msw.c (output_modifier_keyboard_state):
13715         * event-msw.c (output_alt_keyboard_state):
13716         * event-msw.c (mswindows_wnd_proc):
13717         * event-msw.c (mswindows_modifier_state):
13718         * event-msw.c (emacs_mswindows_handle_magic_event):
13719         implement sticky modifiers.
13720
13721         * event-stream.c:
13722         * event-stream.c (vars_of_event_stream):
13723         move modifier-keys-are-sticky here.
13724
13725         * lisp.h:
13726         add CHECK_FUNCTION.
13727
13728         * rangetab.c:
13729         implement map-range-table.
13730
13731
13732 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13733
13734         * redisplay-tty.c (reset_tty_modes):
13735         (tty_redisplay_shutdown): Adjust argument type to
13736         tty_frame_output_end.
13737
13738 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13739
13740         * eval.c (Fbacktrace): Don't output a line with only right
13741         parenthesis.
13742
13743 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13744
13745         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13746         (Fpq_reset_poll): Ditto.
13747
13748 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13749
13750         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13751
13752 2000-05-16  Ben Wing  <ben@xemacs.org>
13753
13754         * buffer.c:
13755         * buffer.c (dfc_convert_to/from_internal_format):
13756         * buffer.c (reinit_vars_of_buffer):
13757         Fix conversion functions to allow reentrancy.
13758
13759         * console-msw.c:
13760         * console-msw.c (mswindows_output_last_error):
13761         New fun, generally useful -- output a human-readable
13762         version of GetLastError() on the console.
13763
13764         * console-msw.h:
13765         * console-msw.h (struct mswindows_frame):
13766         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13767
13768         * console-stream.c (stream_output_begin):
13769         * console-stream.c (stream_output_end):
13770         * console-stream.c (stream_output_vertical_divider):
13771         * console-stream.c (stream_clear_region):
13772         * console-stream.c (stream_flash):
13773         * console-stream.c (console_type_create_stream):
13774         Delete blank stream methods, not needed.
13775
13776         * console.h (struct console_methods):
13777         Split begin/end methods into window and frame.
13778
13779         * event-msw.c:
13780         * event-msw.c (mswindows_handle_paint):
13781         * event-msw.c (output_alt_keyboard_state):
13782         * event-msw.c (mswindows_wnd_proc):
13783         * event-msw.c (vars_of_event_mswindows):
13784         Comment about problems with ignored-expose.
13785         Define mswindows-debug-events; not really implemented.
13786
13787         * frame-msw.c (mswindows_init_frame_1):
13788         random cleanups.
13789
13790         * glyphs-msw.c:
13791         * glyphs-msw.c (begin_defer_window_pos):
13792         * glyphs-msw.c (mswindows_unmap_subwindow):
13793         * glyphs-msw.c (mswindows_map_subwindow):
13794         * glyphs-msw.c (mswindows_resize_subwindow):
13795         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13796
13797         * glyphs.c (make_image_instance_1):
13798         Fix crash.
13799
13800         * gutter.c (Fredisplay_gutter_area):
13801         Use new begin/end methods.
13802
13803         * lisp.h (Dynarr_new2):
13804         New creation fun.
13805
13806         * redisplay-msw.c:
13807         * redisplay-msw.c (mswindows_frame_output_begin):
13808         * redisplay-msw.c (mswindows_frame_output_end):
13809         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13810         New begin/end methods -- handle DeferWindowPos.
13811
13812         * redisplay-output.c (redisplay_move_cursor):
13813         * redisplay-output.c (redraw_cursor_in_window):
13814         * redisplay-output.c (redisplay_update_line):
13815         * redisplay-output.c (redisplay_output_window):
13816         New begin/end methods.
13817
13818         * redisplay-tty.c:
13819         * redisplay-tty.c (tty_frame_output_begin):
13820         * redisplay-tty.c (tty_frame_output_end):
13821         * redisplay-tty.c (console_type_create_redisplay_tty):
13822         New begin/end methods.
13823
13824         * redisplay-x.c:
13825         * redisplay-x.c (x_window_output_begin):
13826         * redisplay-x.c (x_window_output_end):
13827         * redisplay-x.c (console_type_create_redisplay_x):
13828         New begin/end methods.
13829
13830         * redisplay.c (redisplay_frame):
13831         * redisplay.c (Fredisplay_echo_area):
13832         New begin/end methods.
13833         use MAYBE_DEVMETH for clear_frame; it may not exist.
13834
13835         * window.h (WINDOW_XFRAME):
13836         WINDOW_XFOO macros -- get locale and decode struct pointer.
13837
13838
13839 2000-05-12  Ben Wing  <ben@xemacs.org>
13840
13841         * emacs.c:
13842         * emacs.c (ensure_no_quitting_from_now_on):
13843         * emacs.c (fatal_error_signal):
13844         * emacs.c (mswindows_handle_hardware_exceptions):
13845         * emacs.c (main):
13846         * emacs.c (Fkill_emacs):
13847         * emacs.c (shut_down_emacs):
13848         * emacs.c (assert_failed):
13849         various improvements in fatal error handling.
13850
13851         * eval.c:
13852         move preparing_for_armageddon to emacs.c.
13853
13854         * lisp.h:
13855         declare fatal_error_in_progress.
13856
13857         * print.c:
13858         * print.c (std_handle_out_external):
13859         * print.c (std_handle_out_va):
13860         * print.c (stderr_out):
13861         * print.c (stdout_out):
13862         use console under mswin when no standard output.
13863         don't do code conversion during fatal error.
13864
13865         * scrollbar.c (Fscrollbar_page_up):
13866         * scrollbar.c (Fscrollbar_page_down):
13867         fix missing else.  reindent.
13868
13869 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13870
13871         Emergency fix.
13872
13873         * glyphs.h (GLYPH_CACHEL_DESCENT):
13874         (GLYPH_CACHEL_DESCENT):
13875         (GLYPH_CACHEL_DESCENT):
13876         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13877         used in case these are inline functions.
13878         Use more absurd values to error check.
13879
13880         include window.h for error check functions.
13881
13882 2000-05-11  Ben Wing  <ben@xemacs.org>
13883
13884         * cmdloop.c (Freally_early_error_handler):
13885         Display message box under windows; otherwise, message will disappear
13886         before it can be viewed.
13887
13888         * console-msw.c:
13889         * console-msw.c (Fmswindows_message_box):
13890         * console-msw.c (FROB):
13891         * console-msw.c (syms_of_console_mswindows):
13892         Define new fun `mswindows-message-box'.
13893         #### I will merge this into `popup-dialog-box'; just give me
13894         a bit of time.
13895
13896         * general.c:
13897         * general.c (syms_of_general):
13898         Some new symbols used in `mswindows-message-box'.
13899
13900         * glyphs.c:
13901         * glyphs.c (Fset_image_instance_property):
13902         put warning in this fun.
13903
13904         * glyphs.h:
13905         * glyphs.h (GLYPH_CACHEL_WIDTH):
13906         * glyphs.h (GLYPH_CACHEL_ASCENT):
13907         * glyphs.h (GLYPH_CACHEL):
13908         * glyphs.h (GLYPH_CACHEL_GLYPH):
13909         define error-checking versions to try to catch a bug i've seen --
13910         redisplay gets in an infinite loop because the glyph width of the
13911         continuation glyph is 65535.
13912
13913         * lisp.h:
13914         Extern message-box stuff.
13915
13916         * window.c (allocate_window):
13917         * window.c (make_dummy_parent):
13918         * window.c (Fset_window_configuration):
13919         Use EQUAL not EQ for subwindow caches to make them work a bit
13920         better. (Something is still very broken.)
13921
13922
13923 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13924
13925         * glyphs.c (image_instantiate): Suppress gcc warnings.
13926         (Fmake_image_instance): Fix doc string.
13927         * specifier.c (Fmake_specifier): Ditto.
13928
13929 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13930
13931         * paths.h.in (PATH_LOCK): Removed.
13932         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13933         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13934
13935 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13936
13937         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13938         Document (featurep '(and xemacs 21.02)).
13939
13940 2000-05-09  Ben Wing  <ben@xemacs.org>
13941
13942         * buffer.c (complex_vars_of_buffer):
13943         update modeline-format doc.
13944
13945         * device.h:
13946         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13947
13948         * emacs.c:
13949         timeline of all released versions of Emacs, for use in creating
13950         authorship comments and in synching up.
13951
13952         * glyphs-widget.c (image_instantiator_buttons):
13953         * glyphs-widget.c (image_instantiator_edit_fields):
13954         * glyphs-widget.c (image_instantiator_combo_box):
13955         * glyphs-widget.c (image_instantiator_scrollbar):
13956         * glyphs-widget.c (image_instantiator_progress_guage):
13957         * glyphs-widget.c (image_instantiator_tree_view):
13958         * glyphs-widget.c (image_instantiator_tab_control):
13959         * glyphs-widget.c (image_instantiator_labels):
13960         * glyphs-widget.c (image_instantiator_layout):
13961         * glyphs-widget.c (image_instantiator_native_layout):
13962         rename decode_domain method to governing_domain.
13963
13964         * glyphs.c:
13965         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13966         * glyphs.c (add_entry_to_device_ii_format_list):
13967         make sure we don't put an entry more than once into the list.
13968         * glyphs.c (check_instance_cache_mapper):
13969         *************************************************************
13970         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13971         HAVE BEEN GETTING.
13972         *************************************************************
13973         * glyphs.c (get_image_instantiator_governing_domain):
13974         clean up, expand on new concept of governing domain.
13975         * glyphs.c (instantiate_image_instantiator):
13976         * glyphs.c (allocate_image_instance):
13977         use governing_domain instead of cache_domain in naming.
13978         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13979         * glyphs.c (make_image_instance_1):
13980         * glyphs.c (Fmake_image_instance):
13981         allow for any domain (not just device), and process the
13982         governing domain correctly.  very big doc fix.
13983         * glyphs.c (Fimage_instance_domain):
13984         new primitive, to retrieve the governing domain of an image instance.
13985         * glyphs.c (image_instantiate):
13986         use new governing_domain stuff.  this fixes a crash you could get
13987         by instantiating certain widget glyphs in frame locales. (should
13988         signal an error instead of crashing.)
13989         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13990         * glyphs.c (Fglyphp): clean up doc.
13991         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13992         * glyphs.c (syms_of_glyphs):
13993         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13994         * glyphs.c (image_instantiator_format_create): add some comments about
13995         bogus code.
13996         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13997         for current-display-table. (Apparently Hrjove implemented in 1998 a
13998         design I wrote up in 1996, but didn't update the doc string.)
13999
14000         * glyphs.h: clean up a doc string.
14001         * glyphs.h (governing_domain):
14002         * glyphs.h (struct image_instantiator_methods):
14003         changes for governing_domain stuff.
14004
14005         * gutter.c:
14006         * gutter.c (Fgutter_specifier_p):
14007         * gutter.c (Fgutter_size_specifier_p):
14008         * gutter.c (Fgutter_visible_specifier_p):
14009         * objects.c:
14010         * objects.c (Fcolor_specifier_p):
14011         * objects.c (Ffont_specifier_p):
14012         * objects.c (Fface_boolean_specifier_p):
14013         doc strings moved to make-*-specifier.
14014
14015         * redisplay.c (add_disp_table_entry_runes_1):
14016         * redisplay.c (generate_fstring_runes):
14017         * redisplay.c (screen):
14018         add random comments and doc strings.
14019
14020         * specifier.c:
14021         * specifier.c (Fmake_specifier):
14022         major overhaul of this doc string.
14023
14024         * specifier.c (Fvalid_specifier_domain_p):
14025         comment about the bogosity of image instances being domains.
14026         * specifier.c (decode_domain):
14027         now non-static, used in glyphs.c.
14028         * specifier.c (specifier_instance):
14029         comment about the bogosity of image instances being domains.
14030         * specifier.c (Fgeneric_specifier_p):
14031         move doc string to make-generic-specifier.
14032         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
14033         rebackslashify.
14034
14035         * specifier.h:
14036         * specifier.h (DOMAIN_FRAME):
14037         * specifier.h (DOMAIN_LIVE_P):
14038         * specifier.h (DOMAIN_XDEVICE):
14039         rebackslashify.
14040         add comments about problems with these macros.
14041         prototype for decode_domain.
14042
14043         * toolbar.c:
14044         * toolbar.c (Ftoolbar_specifier_p):
14045         move doc string to `make-toolbar-specifier'.
14046
14047         * window.c (window_unmap_subwindows_cache_mapper):
14048         *************************************************************
14049         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14050         HAVE BEEN GETTING.
14051         *************************************************************
14052
14053 2000-05-09  Andy Piper  <andy@xemacs.org>
14054
14055         * glyphs.h: declare reset_frame_subwindow_instance_cache.
14056
14057         * window.c (Fset_window_configuration): reset the frame subwindow
14058         cache and re-initialize the window subwindow caches.
14059
14060         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
14061
14062 2000-05-09  Ben Wing  <ben@xemacs.org>
14063
14064         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
14065         DWORD.
14066
14067 2000-04-26  Mike Woolley  <mike@bulsara.com>
14068
14069         * ntheap.c: Changed recreate_heap to limit the amount reserved
14070         for the heap to that which is actually available. Also now
14071         displays a message box (with some dignostics) in the event that
14072         it still can't start.
14073
14074 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14075
14076         * callproc.c (Fold_call_process_internal): GCPRO path
14077
14078 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
14079
14080         Patch by Bill Perry.
14081
14082         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
14083         back data instead of #ifdef.
14084         (Fscrollbar_page_down): ditto.
14085
14086 2000-05-07  Ben Wing  <ben@xemacs.org>
14087
14088         * buffer.h:
14089         Kludge for defining Qmswindows_tstr.
14090
14091         * nt.c:
14092         * nt.c (open_input_file):
14093         * nt.c (open_output_file):
14094         * nt.c (rva_to_section):
14095         * nt.c (mswindows_executable_type):
14096         Move all memory-mapped-file routines here (some were in unexnt.c,
14097         which is bad because they are used by process-nt.c, and unexnt
14098         won't be around when portable dumping).  Synched the above routines
14099         with FSF 20.6.
14100
14101         * nt.h:
14102         Removed ifdef'd out bogus code.
14103         Fixed some prototypes.
14104
14105         * nt.h (file_data):
14106         * nt.h (OFFSET_TO_RVA):
14107         * nt.h (RVA_TO_OFFSET):
14108         * nt.h (RVA_TO_PTR):
14109         Moved the memory-mapped-file structures, macros and prototypes
14110         here, to parallel nt.c.  ntheap.h should really be removed
14111         entirely, and it's a non-portable-dumper specific file.
14112
14113         * ntheap.h (round_to_next):
14114         Moved the memory-mapped-file structures, macros and prototypes
14115         to nt.h.
14116
14117         * ntproc.c (compare_env):
14118         Moved rva_to_section and mswindows_executable_type to nt.c.
14119         Moved compare_env to process-nt.c.
14120         ntproc.c will die, one day.
14121
14122         * ntproc.c (sys_spawnve):
14123         Account for win32_ -> mswindows_.
14124
14125         * process-nt.c:
14126         * process-nt.c (struct nt_process_data):
14127         * process-nt.c (ensure_console_window_exists):
14128         * process-nt.c (compare_env):
14129         * process-nt.c (nt_create_process):
14130         * process-nt.c (nt_kill_process_by_pid):
14131         * process-nt.c (syms_of_process_nt):
14132         * process-nt.c (vars_of_process_nt):
14133         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
14134         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
14135         changes).  Eliminate our old `nt-quote-process-args' mechanism.
14136         Synch up nt_create_process with FSF 20.6 sys_spawnve.
14137         Move compare_env here from ntproc.c.
14138
14139         * process.c (Fprocess_send_region):
14140         Takes an optional fourth argument, BUFFER, which should fix some
14141         problems with call-process.
14142
14143         * syscommctrl.h:
14144         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
14145
14146         * syswindows.h:
14147         Move ICC_BAR_CLASSES to syscommctrl.h.
14148         Add preliminary macros for MSWindows/Mule.  More to come.
14149
14150         * unexnt.c:
14151         * unexnt.c (unexec):
14152         open_output_file moved to nt.c.
14153
14154
14155 2000-05-05  Andy Piper  <andy@xemacs.org>
14156
14157         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
14158         instance from the frame cache also since GC may catch up too late
14159         to make frame deletion sane.
14160
14161 2000-05-04  Andy Piper  <andy@xemacs.org>
14162
14163         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
14164         (x_finalize_image_instance): ungcpro on deletion.
14165
14166         * glyphs.c (image_instantiator_format_create): give pointers a
14167         query geometry method so that the geometry is at least set.
14168
14169         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
14170         initialize layouts if using widgets.
14171
14172 2000-05-03  Andy Piper  <andy@xemacs.org>
14173
14174         * nt.c: remove bogus reference to sysmmsystem.h
14175
14176         * gui-x.c (popup_selection_callback): fix no selection abort.
14177
14178 2000-05-02  Andy Piper  <andy@xemacs.org>
14179
14180         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
14181         (mswindows_widget_instantiate): ditto.
14182
14183         * glyphs-widget.c (initialize_widget_image_instance): initialize
14184         children correctly.
14185         (widget_instantiate): cope with children and items in the same
14186         instance.
14187
14188         * glyphs.c (mark_image_instance): cope with children as a first
14189         class member.
14190         (image_instance_equal): ditto.
14191         (image_instance_hash): ditto.
14192         (image_instance_changed): ditto.
14193
14194 2000-04-30  Andy Piper  <andy@xemacs.org>
14195
14196         * glyphs.c (subwindow_query_geometry): new function. Return some
14197         defaults.
14198         (subwindow_instantiate): don't assign dimensions if none have been
14199         given.
14200         (image_instantiator_format_create): add subwindow_query_geometry.
14201         (print_image_instance): cope with layouts as widgets.
14202
14203 2000-04-29  Andy Piper  <andy@xemacs.org>
14204
14205         * frame.c (delete_frame_internal): call
14206         free_frame_subwindow_instance_cache so that all subwindows are
14207         finalized before their parent.
14208         (mark_frame): remove subwindow_cachels.
14209         (Fmake_frame): remove subwindow_cachel manipulation.
14210         (allocate_frame_core): subwindow_instance_cache is a weak list.
14211         (delete_frame_internal): set subwindow_instance_cache to nil.
14212
14213         * glyphs-msw.c (mswindows_finalize_image_instance): make double
14214         finalization safe.
14215         (mswindows_finalize_image_instance): use the device
14216         not the domain as the domain may have died already.
14217
14218         * glyphs-x.c (x_finalize_image_instance): ditto.
14219         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
14220         HEIGHT.
14221
14222         * redisplay-output.c (redisplay_unmap_subwindows): update for
14223         subwindow instance cache as a weak list.
14224         (redisplay_unmap_subwindows_maybe): ditto.
14225         (redisplay_unmap_subwindows_except_us): ditto.
14226
14227         * glyphs.c (unmap_subwindow): error checking will check the domain
14228         so don't deal with it here. Don't use cachels anymore.
14229         (map_subwindow): ditto.
14230         (update_subwindow_cachel_data): remove old accessor names.
14231         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14232         (Fresize_subwindow): don't update cachel.
14233         (mark_subwindow_cachels):
14234         (update_subwindow_cachel_data):
14235         (add_subwindow_cachel):
14236         (get_subwindow_cachel_index):
14237         (update_subwindow_cachel):
14238         (reset_subwindow_cachels):
14239         (mark_subwindow_cachels_as_not_updated): deleted.
14240         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14241         subwindow instance to the frame cache.
14242         (find_matching_subwindow): update for subwindow instance cache as
14243         a weak list.
14244         (update_widget_instances): ditto.
14245         (image_instance_type_to_mask):inlined.
14246         (free_frame_subwindow_instance_cache): new function. finalize all
14247         subwindows that are instantiated.
14248
14249         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14250         of cachel information.
14251         (IMAGE_INSTANCE_DISPLAY_X):
14252         (IMAGE_INSTANCE_DISPLAY_Y):
14253         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14254         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14255         (XIMAGE_INSTANCE_DISPLAY_X):
14256         (XIMAGE_INSTANCE_DISPLAY_Y):
14257         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14258         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14259         remove subwindow_cachel structure and function references.
14260         (image_instance_type_to_mask): inline from glyphs.c
14261
14262         * redisplay.c (redisplay_frame): remove subwindow_cachel
14263         references.
14264
14265         * frame.h (struct frame): remove subwindow_cachels.
14266         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14267
14268         * frameslots.h: add subwindow_instance_cache.
14269
14270         * window.c (replace_window): check subwindow cache of replacement.
14271         (window_unmap_subwindows_cache_mapper):
14272         (window_unmap_subwindows): new functions. Unmap all subwindows
14273         cached on this window.
14274         (mark_window_as_deleted): unmap all subwindows.
14275
14276 2000-04-27  Andy Piper  <andy@xemacs.org>
14277
14278         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14279
14280         * glyphs-widget.c (widget_layout): return something.
14281         (layout_layout): return something. Fail if not initialized.
14282         (layout_query_geometry): ditto.
14283         (image_instantiator_native_layout): new function. Initialized the
14284         native layout type.
14285         (widget_instantiate): don't do layout stuff here.
14286
14287         * glyphs.c (instantiate_image_instantiator): reorded calling or
14288         instantiate and post_instantiate with layout in between.
14289         (image_instance_layout): be more selective about deciding whether
14290         the layout has been done or not.
14291
14292         * glyphs.h (struct image_instantiator_methods): return a value
14293         from layout_method.
14294
14295 2000-04-26  Andy Piper  <andy@xemacs.org>
14296
14297         * glyphs.c (allocate_image_instance): make initial width and
14298         height unspecified. Set initialized to 0.
14299
14300         * syscommctrl.h new file. Encapsulates commctrl.h.
14301
14302         * syswindows.h new file. Encapsulates windows.h.
14303
14304         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14305         * nt.c: ditto.
14306         * console-msw.h: ditto.
14307
14308         * redisplay-tty.c (tty_output_display_block): remove layout references.
14309
14310         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14311         window handle rather than just the frame.
14312
14313         * glyphs.c (mark_image_instance): remove layout references.
14314         (print_image_instance): ditto.
14315         (image_instance_equal): ditto.
14316         (image_instance_hash): ditto.
14317         (decode_image_instance_type): ditto.
14318         (encode_image_instance_type): ditto.
14319         (image_instantiate): ditto.
14320         (allocate_glyph): ditto.
14321         (Fimage_instance_height): ditto.
14322         (Fimage_instance_width): ditto.
14323         (update_subwindow): ditto.
14324
14325         * redisplay-x.c (x_output_display_block): recode for layouts as
14326         widgets.
14327
14328         * redisplay-output.c (redisplay_output_layout): recode for layouts
14329         as widgets.
14330         (compare_runes): remove layout references.
14331
14332         * redisplay-msw.c (mswindows_output_display_block): recode for
14333         layouts as widgets.
14334
14335         * glyphs-widget.c (image_instantiator_layout): remove
14336         layout_possible_dest_types.
14337         (layout_possible_dest_types): deleted.
14338
14339         * glyphs.h (image_instance_type): remove layout references.
14340         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14341         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14342         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14343
14344 2000-04-25  Andy Piper  <andy@xemacs.org>
14345
14346         * glyphs-widget.c (image_instantiator_buttons):
14347         (image_instantiator_edit_fields):
14348         (image_instantiator_combo_box):
14349         (image_instantiator_scrollbar):
14350         (image_instantiator_progress_guage):
14351         (image_instantiator_tree_view):
14352         (image_instantiator_tab_control):
14353         (image_instantiator_labels):
14354         (image_instantiator_layout): call default post_instantiate method.
14355         (widget_post_instantiate): new function. Simply lays out the
14356         widgets.
14357
14358         * glyphs.h (struct image_instantiator_methods): add
14359         post_instantiate method.
14360
14361         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14362         method calls.
14363
14364 2000-04-23  Andy Piper  <andy@xemacs.org>
14365
14366         * glyphs.h (struct image_instantiator_methods): add
14367         decode_domain_method.
14368         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14369         derived from the domain.
14370         (IMAGE_INSTANCE_FRAME): new accessor.
14371         (XIMAGE_INSTANCE_FRAME): ditto.
14372
14373         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14374         instead of _SUBWINDOW_FRAME.
14375         (finalize_image_instance): ditto.
14376         (Fimage_instance_foreground): ditto.
14377         (Fimage_instance_background): ditto.
14378         (image_instantiate): ditto.
14379         (update_subwindow_cachel): ditto.
14380         (update_subwindow): ditto.
14381         (unmap_subwindow): ditto.
14382         (map_subwindow): ditto
14383         (subwindow_instantiate): ditto.
14384         * glyphs-msw.c (mswindows_update_widget): ditto.
14385         (mswindows_progress_gauge_instantiate): ditto.
14386         (mswindows_tab_control_update): ditto.
14387         * glyphs-x.c (x_update_widget): ditto.
14388         (x_widget_instantiate): ditto.
14389         (x_tab_control_instantiate): ditto.
14390         (x_tab_control_update): ditto.
14391         * event-msw.c (mswindows_wnd_proc): ditto
14392
14393         * glyphs-widget.c (image_instantiator_layout): use
14394         subwindow_decode_domain.
14395         (image_instantiator_buttons): ditto.
14396         (image_instantiator_edit_fields): ditto.
14397         (image_instantiator_combo_box): ditto.
14398         (image_instantiator_scrollbar): ditto.
14399         (image_instantiator_progress_guage): ditto.
14400         (image_instantiator_tree_view): ditto.
14401         (image_instantiator_tab_control): ditto.
14402         (image_instantiator_labels): ditto.
14403         (image_instantiator_layout): ditto.
14404
14405         * glyphs.c: add instance error checking to many functions.
14406         (instantiate_image_instantiator): decode device from cache_domain.
14407         (image_instantiate): partially rewrite by using
14408         decode_image_instantiator_domain to determine what domain the
14409         instance needs to be cached in.
14410         (decode_image_instantiator_domain): new function. Determine what
14411         domain the image needs to be cached in.
14412         (check_window_subwindow_cache): new error checking function.
14413         (check_instance_cache_mapper): ditto.
14414         (check_image_instance_structure): ditto.
14415         (subwindow_decode_domain): new function. Encodes a window as a
14416         subwindow's cache domain.
14417         (image_instantiator_format_create): use it for text and
14418         subwindows.
14419
14420 2000-04-21  Andy Piper  <andy@xemacs.org>
14421
14422         * glyphs.c (image_instance_device): new function.
14423         (image_instance_frame): new function.
14424         (image_instance_window): new function.
14425         (image_instance_live_p): new function.
14426
14427         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14428         cache to nil.
14429
14430         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14431         (IMAGE_INSTANCE_DOMAIN): new accessor.
14432         (XIMAGE_INSTANCE_DOMAIN): ditto.
14433
14434         * glyphs-x.c (x_finalize_image_instance): device->domain.
14435
14436         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14437         (mswindows_finalize_image_instance): ditto.
14438
14439         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14440         (gif_instantiate): ditto.
14441         (png_instantiate): ditto.
14442         (tiff_instantiate): ditto.
14443
14444         * glyphs.c (instantiate_image_instantiator): use domain rather
14445         than device.
14446         (mark_image_instance): device -> domain.
14447         (print_image_instance): ditto.
14448         (finalize_image_instance): ditto.
14449         (image_instance_equal): ditto.
14450         (allocate_image_instance): ditto.
14451         (Fcolorize_image_instance): ditto.
14452         (query_string_geometry): ditto.
14453         (image_instantiate): ditto
14454         (query_string_font): ditto.
14455         (image_instantiate): ditto.
14456         (update_subwindow): ditto.
14457         (unmap_subwindow): ditto.
14458         (map_subwindow): ditto.
14459         (subwindow_instantiate): ditto.
14460
14461         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14462         (DOMAIN_FRAME): ditto.
14463         (DOMAIN_WINDOW): ditto.
14464         (DOMAIN_LIVE_P): ditto.
14465         (XDOMAIN_DEVICE): ditto.
14466         (XDOMAIN_FRAME): ditto.
14467         (XDOMAIN_WINDOW): ditto.
14468
14469         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14470         a valid specifier domain.
14471
14472 2000-04-19  Andy Piper  <andy@xemacs.org>
14473
14474         * glyphs-widget.c (syms_of_glyphs_widget): remove
14475         widget-callback-current-channel.
14476         (vars_of_glyphs_widget): ditto.
14477         * glyphs.h: ditto
14478
14479         * gui.c (get_gui_callback): revert to previous behaviour.
14480
14481 2000-04-18  Andy Piper  <andy@xemacs.org>
14482
14483         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14484         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14485         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14486
14487         * glyphs.c (image_instance_equal): add margin_width.
14488         (image_instance_hash): ditto.
14489
14490         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14491         (layout_query_geometry): ditto.
14492         (layout_layout): ditto.
14493         (syms_of_glyphs_widget): add margin-width.
14494         (image_instantiator_layout): allow margin-width.
14495
14496         * glyphs.c (update_widget_instances): make a normal function.
14497         (syms_of_glyphs): remove Qupdate_widget_instances.
14498         * glyphs.h: ditto.
14499
14500         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14501         so that we don't corrupt ideas about the last event or
14502         command. Remove widget-callback-current-channel fiddling.
14503         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14504
14505 2000-05-01  Martin Buchholz <martin@xemacs.org>
14506
14507         * XEmacs 21.2.33 is released.
14508
14509 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14510
14511         * make-src-depend: Allow dots in header file name.
14512
14513 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14514
14515         * mule-charset.h (struct charset_lookup): Add
14516         next_allocated_1_byte_leading_byte and
14517         next_allocated_2_byte_leading_byte.
14518         * mule-charset.c: Move above two variables so that those values
14519         will be dumped.
14520
14521 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14522
14523         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14524         when string length is zero.
14525         (find_charsets_in_emchar_string): Ditto.
14526
14527 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14528
14529         * lisp.h: extern Qdialog and Qmenubar.
14530
14531         * gui-x.c: added events.h.
14532                 also fixed typo which made the file uncompilable.
14533
14534         * general.c: Added Qmenubar and Qdialog
14535
14536 2000-04-28  Ben Wing  <ben@xemacs.org>
14537
14538         * frame-msw.c (mswindows_init_frame_1):
14539         * frame-msw.c (mswindows_mark_frame):
14540         * event-msw.c (mswindows_enqueue_dispatch_event):
14541         * console-msw.h:
14542         * console-msw.h (struct mswindows_frame):
14543         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14544         there are now three hash tables for callbacks.
14545         mswindows_enqueue_dispatch_event is no longer static.
14546
14547         * dialog-x.c (maybe_run_dbox_text_callback):
14548         * dialog-x.c (dbox_descriptor_to_widget_value):
14549         switch to new cons3 form for callbacks.
14550
14551         * glyphs-msw.c (mswindows_register_gui_item):
14552         * glyphs-msw.c (mswindows_widget_instantiate):
14553         * glyphs-msw.c (add_tree_item):
14554         * glyphs-msw.c (add_tab_item):
14555         new image instance parameter, so it can be passed to callback-ex.
14556         respect :callback-ex as well as :callback.
14557
14558         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14559         add :callback-ex.
14560
14561         * glyphs.c (print_image_instance):
14562         prettify, e.g. now prints widget type.
14563
14564         * gui-x.h:
14565         certain funs have new image instance parameter.
14566
14567         * gui.c:
14568         * gui.c (get_gui_callback):
14569         * gui.c (gui_item_add_keyval_pair):
14570         * gui.c (gui_item_init):
14571         * gui.c (gui_add_item_keywords_to_plist):
14572         * gui.c (mark_gui_item):
14573         * gui.c (gui_item_hash):
14574         * gui.c (gui_item_equal):
14575         * gui.c (copy_gui_item):
14576         * gui.c (syms_of_gui):
14577         recognize callback-ex in a number of places.
14578         also, fix the annoying "can't get out of yes-no dialog" bug.
14579
14580         * gui.h:
14581         * gui.h (struct Lisp_Gui_Item):
14582         recognize callback-ex in a number of places.
14583
14584         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14585         new parameter in button_item_to_widget_value.
14586
14587         * glyphs-x.c (x_update_widget):
14588         * glyphs-x.c (x_button_instantiate):
14589         * glyphs-x.c (x_button_update):
14590         * glyphs-x.c (x_progress_gauge_instantiate):
14591         * glyphs-x.c (x_edit_field_instantiate):
14592         * glyphs-x.c (x_combo_box_instantiate):
14593         * glyphs-x.c (x_tab_control_instantiate):
14594         * glyphs-x.c (x_label_instantiate):
14595         new image instance parameter in various places.
14596
14597         * event-Xt.c:
14598         * event-Xt.c (enqueue_Xt_dispatch_event):
14599         this fun gets exported.
14600
14601         * gui-msw.c:
14602         * gui-msw.c (mswindows_handle_gui_wm_command):
14603         handle both :callback and :callback-ex, and generate our own
14604         event because it's one of the callback-ex arguments.
14605
14606         * gui-x.c:
14607         * gui-x.c (popup_selection_callback):
14608         handle both :callback and :callback-ex, and generate our own
14609         event because it's one of the callback-ex arguments.
14610         * gui-x.c (button_item_to_widget_value):
14611         * gui-x.c (gui_items_to_widget_values_1):
14612         * gui-x.c (gui_item_children_to_widget_values):
14613         * gui-x.c (gui_items_to_widget_values):
14614         new image instance parameter in various places.
14615
14616         * fns.c (Freplace_list):
14617         fix small typo in doc string.
14618
14619         * lisp.h:
14620         declare enqueue_Xt_dispatch_event.
14621
14622 2000-04-28  Ben Wing  <ben@xemacs.org>
14623
14624         * buffer.c:
14625         * buffer.c (Frecord_buffer):
14626         * buffer.c (syms_of_buffer):
14627         delete record-buffer-hook.
14628
14629         * fns.c:
14630         * fns.c (Freplace_list):
14631         * fns.c (syms_of_fns):
14632         new primitive replace-list.
14633
14634         * frameslots.h:
14635         slot for old buffer-alist.
14636
14637         * lisp.h:
14638         exfun replace-list.
14639
14640         * redisplay.c:
14641         * redisplay.c (redisplay_frame):
14642         * redisplay.c (syms_of_redisplay):
14643         * redisplay.c (vars_of_redisplay):
14644         new hook buffer-list-changed-hook.
14645         call it.
14646
14647 2000-04-27  Ben Wing  <ben@xemacs.org>
14648
14649         * extents.h: extern in_modeline_generation.
14650
14651         * redisplay.c (generate_formatted_string_db): set
14652         in_modeline_generation.
14653
14654         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14655         flags if in modeline generation.  otherwise frame-modified-tick
14656         is ticked far too often.
14657         Declare in_modeline_generation.
14658
14659 2000-04-26  Ben Wing  <ben@xemacs.org>
14660
14661         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14662         option.
14663         (vars_of_emacs): add quick-build as an error-checking option.
14664         A bit kludgy, but there doesn't seem much point in creating
14665         a real var for this.
14666
14667         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14668
14669 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14670
14671         * redisplay.h (struct display_line): Add a new variable,
14672         line_continuation.
14673
14674         * redisplay.c (create_text_block): Set dl->line_continuation if
14675         the line continues.
14676         (create_string_text_block): Ditto.
14677         (regenerate_window_incrementally): Use line_continuation instead
14678         of searching continuation glyph.
14679         (add_margin_runes): Call add_glyph_rune.
14680         (add_glyph_rune): Handle margin glyph.
14681
14682 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14683
14684         * filelock.c (fill_in_lock_file_name):
14685         ANSIfy.
14686         Check for IS_ANY_SEP instead of '/'.
14687         (lock_file_1):
14688         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14689         Never check errno without first seeing that system call failed.
14690         (unlock_file): Add GCPRO.
14691         (Flock_buffer): Fix docstring.
14692         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14693
14694 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14695
14696         * sysdep.c (get_pty_max_bytes):
14697         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14698         strings longer than 252 bytes.
14699
14700         * md5.c: Unconditionally include ANSI header <limits.h>
14701
14702         * glyphs-x.c (convert_EImage_to_XImage):
14703         * lisp-union.h (union Lisp_Object):
14704         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14705
14706 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14707
14708         * filelock.c (current_lock_owner): Remove unused variable o, p.
14709
14710 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14711
14712         * callint.c: Remove multiply defined symbol Qlet
14713         (syms_of_callint): ditto.
14714
14715 2000-04-14  Andy Piper  <andy@xemacs.org>
14716
14717         * general.c (syms_of_general): add last-command, this-command, let
14718         and funcall.
14719
14720         * lisp.h: declare various symbols.
14721
14722         * glyphs.h: declare Qwidget_callback_current_channel;
14723
14724         * glyphs-widget.c (syms_of_glyphs_widget): add
14725         Qgui_callback_current_channel.
14726         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14727
14728         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14729         widget-callback-current-channel when invoking the interactive
14730         arg. Also bind last-command and next-command when invoking the
14731         widget updates.
14732         * gui-x.c (popup_selection_callback): ditto.
14733
14734         * gui.c (get_gui_callback): massage args so that we are always
14735         calling eval. This allows us to add our own variable bindings
14736         outside.
14737
14738         * glyphs-x.c (x_button_instantiate): use
14739         gui_items_to_widget_values since this is GC safe.
14740         (x_progress_gauge_instantiate): ditto.
14741         (x_edit_field_instantiate): ditto.
14742         (x_label_instantiate): ditto.
14743
14744         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14745         (emacs_Xt_event_widget_focus_out): new function
14746         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14747         focus.
14748         (emacs_Xt_event_add_widget_actions): new function. add focus
14749         functions as actions.
14750         (init_event_Xt_late): use it.
14751
14752 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14753
14754         * event-stream.c (Fdispatch_event): Doc fix.
14755
14756 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14757
14758         * postgresql.c: Remove all references to PQsetenv*.
14759
14760         * postgresql.h: Remove references to PGsetenvHandler object.
14761         * lrecord.h (lrecord_type): Ditto.
14762
14763 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14764
14765         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14766         real_heigh and real_width members, and accessor macros for these.
14767
14768         * glyphs-msw.c (init_image_instance_geometry): New function.
14769         (init_image_instance_from_dibitmap): Use it.
14770         (mswindows_resource_instantiate): Use it.
14771         (init_image_instance_from_xbm_inline): Use it.
14772         (mswindows_initialize_image_instance_mask): Use real bitmap
14773         geometry.
14774         (mswindows_create_resized_bitmap): Ditto.
14775         (mswindows_create_resized_mask): Ditto.
14776
14777         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14778         and bitmap to their surface size.
14779
14780 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14781
14782         * process-unix.c (unix_send_process): Guard against process MIA
14783         after Faccept_process_output.
14784
14785 2000-04-11  Ben Wing  <ben@xemacs.org>
14786
14787         * eval.c (unbind_to_hairy): fix brokenness introduced by
14788         nanosecond speed improvements.
14789
14790 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14791
14792         * sunplay.c (init_device): To play sounds correctly, the device
14793         apparently needs to be initialized at least once by XEmacs.  Make
14794         it so.
14795
14796 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14797
14798         * redisplay.c (add_margin_runes): Add text image glyph
14799           handling.
14800
14801 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14802
14803         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14804         gcc is newer than 2.5.
14805
14806 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14807
14808         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14809
14810         * fns.c (size_bit_vector):
14811         * alloc.c (size_vector):
14812         (make_vector_internal):
14813         (make_bit_vector_internal):
14814         (sweep_bit_vectors_1):
14815         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14816
14817 2000-04-06  Andy Piper  <andy@xemacs.org>
14818
14819         * gmalloc.c (malloc): undo previous change.
14820         (malloc): ditto.
14821         (free): ditto.
14822         (realloc): ditto.
14823
14824 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14825
14826         * line-number.c (buffer_line_number): Revert to former version.
14827
14828 2000-04-06  Andy Piper  <andy@xemacs.org>
14829
14830         * gmalloc.c (malloc): add error checking.
14831         (malloc): ditto.
14832         (free): ditto.
14833         (realloc): ditto.
14834
14835         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14836         button_item_to_widget_value arg.
14837
14838         * glyphs-x.c (x_button_instantiate): add extra
14839         button_item_to_widget_value arg.
14840         (x_progress_gauge_instantiate): ditto.
14841         (x_edit_field_instantiate): ditto.
14842         (x_label_instantiate): ditto.
14843
14844         * gui-x.c (gui_items_to_widget_values_1): add extra
14845         button_item_to_widget_value arg.
14846         (button_item_to_widget_value): add extra menu_item_p arg.
14847
14848         * gui-x.h: change signature of button_item_to_widget_value.
14849
14850         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14851         button_item_to_widget_value arg.
14852
14853 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14854
14855         * buffer.h (struct buffer): auto_save_modified should be long.
14856
14857 2000-04-05  Andy Piper  <andy@xemacs.org>
14858
14859         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14860         type.
14861         (button_query_geometry): give a little more room so that athena
14862         buttons fit.
14863
14864 2000-04-05  Andy Piper  <andy@xemacs.org>
14865
14866         * faces.c (complex_vars_of_faces): The widget face should inherit
14867         the font of the gui-element face.
14868
14869 2000-04-04  Andy Piper  <andy@xemacs.org>
14870
14871         * glyphs-x.c (x_button_update): new function. unconditionally
14872         update a button's state when the instance is dirty.
14873         (image_instantiator_format_create_glyphs_x): add x_button_update.
14874         (x_widget_instantiate): remove old resize cruft.
14875
14876 2000-04-02  Andy Piper  <andy@xemacs.org>
14877
14878         * frame.c (change_frame_size_1): The introduction of gutters means
14879         that we need to allow 0 as a potential frame dimension.
14880
14881 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14882
14883         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14884         image glyph if allow_cursor.
14885         (add_hscroll_rune): Don't allow cursor to border glyph.
14886         (create_text_block): Ditto.
14887
14888         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14889         text not in buffer.
14890         (redisplay_output_layout): Call ensure_face_cachel_complete for
14891         text image glyph.
14892
14893
14894 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14895
14896         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14897
14898         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14899         not in buffer
14900
14901         * redisplay-tty.c (tty_output_display_block): Delete the routine
14902         for text image glyph
14903         * redisplay-x.c (x_output_display_block): ditto
14904         * redisplay-msw.c (mswindows_output_display_block): ditto
14905
14906 2000-02-02  Mike Alexander  <mta@arbortext.com>
14907
14908         Note: Some of these were committed by accident as part of other
14909         patches.
14910
14911         * regex.c (regex_compile): Avoid compiler warnings.
14912
14913         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14914
14915         * nt.h: Declare term_ntproc correctly.
14916
14917         * nt.c: Remove incorrect declaration of get_home_directory which
14918         is declared correctly in lisp.h.
14919
14920         * keymap.c (get_keyelt): Avoid compiler warnings.
14921         (raw_lookup_key_mapper): Avoid compiler warnings.
14922
14923         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14924
14925         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14926
14927         * filemode.c (mode_string): Avoid compiler warnings.
14928
14929         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14930         avoid warning.
14931
14932         * events-mod.h: Undef some things that winuser.h defines differently.
14933
14934         * data.c (Faset): Avoid compiler warnings.
14935
14936         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14937
14938 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14939
14940         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14941         Fall through to simple beep on error.
14942         Replace "extern" by real header file.
14943
14944         * linuxplay.c: Use nativesound.h
14945         (play_sound_data): Return error code. Be less verbose on error.
14946
14947         * sunplay.c: Use nativesound.h
14948         (play_sound_data): Return error code. Be less verbose on error.
14949
14950         * ntplay.c: Use nativesound.h
14951         (play_sound_data): Return fake error code
14952
14953         * sgiplay.c: Use nativesound.h
14954         (play_sound_data): Return error code
14955
14956         * hpplay.c: Use nativesound.h, partially implement
14957         new error code. Break compilation until finished.
14958         (play_sound_data): error code.
14959
14960         * nativesound.h (play_sound_file):
14961           (play_sound_data): Prototype in new header.
14962
14963 2000-03-31  Andy Piper  <andy@xemacs.org>
14964
14965         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14966         for toggle and radio buttons.
14967         (image_instantiator_buttons): use it.
14968
14969 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14970
14971         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14972         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14973         found. Scrollbar event probably belonged to some old config.
14974
14975 2000-03-31  Andy Piper  <andy@xemacs.org>
14976
14977         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14978         than 1.
14979         (initialize_widget_image_instance): default layout to
14980         LAYOUT_HORIZONTAL rather than 0.
14981         (widget_instantiate): reverse the item list at the end rather than
14982         every iteration.
14983         (layout_layout): re-code for the border text at the front of the
14984         item list rather than at the end.
14985         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14986         provided by the user.
14987         (widget_query_geometry): comment.
14988
14989 2000-03-30  Andy Piper  <andy@xemacs.org>
14990
14991         * glyphs-widget.c (image_instantiator_layout): allow standard
14992         widget keywords in layouts.
14993
14994         * gutter.c (output_gutter): cope with nil gutter contents.
14995
14996         * frame.c (Fset_frame_properties): add gutter docs.
14997
14998 2000-03-29  Andy Piper  <andy@xemacs.org>
14999
15000         * toolbar-msw.c (TBSTYLE_FLAT): add.
15001         (mswindows_output_toolbar): minor fiddling.
15002
15003 2000-03-29  Andy Piper  <andy@xemacs.org>
15004
15005         * gutter.c (output_gutter): force gutter size recalculation if
15006         what we are trying to display won't fit.
15007         (update_gutter_geometry): new function. A per-gutter version of
15008         update_frame_gutter_geometry.
15009         (update_frame_gutter_geometry): use it.
15010         (redraw_exposed_gutter): add extra debugging output.
15011
15012 2000-03-28  Mike Alexander  <mta@arbortext.com>
15013
15014         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
15015         (pdump_file_unmap): Implement it on Windows
15016         (pdump_file_get): Save alocated handles for pdump_file_unmap
15017
15018 2000-03-28  Andy Piper  <andy@xemacs.org>
15019
15020         * gui.c (get_gui_callback): treat Quit specially.
15021
15022 2000-03-27  Andy Piper  <andy@xemacs.org>
15023
15024         * glyphs.c (image_instantiate): be careful to check in the same
15025         way we assigned.
15026
15027 2000-03-27  Didier Verna  <didier@xemacs.org>
15028
15029         * config.h.in: define the proper SMART_INCLUDE macro.
15030         handle renaming of `foo_h_path' to `foo_h_file'.
15031
15032         * database.c: ditto.
15033
15034         * emacs.c: ditto.
15035
15036         * linuxplay.c: ditto.
15037
15038         * terminfo.c: ditto.
15039
15040         * tooltalk.h: ditto.
15041
15042 2000-03-27  Andy Piper  <andy@xemacs.org>
15043
15044         * glyphs-msw.c (mswindows_update_widget): make sure the widget
15045         gets updated whenever the face might have changed.
15046
15047 2000-03-26  Mike Alexander  <mta@arbortext.com>
15048
15049         * dumper.c (pdump_resource_free): Fix the comment.
15050
15051 2000-03-21  Olivier Galibert  <galibert@pobox.com>
15052
15053         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
15054
15055 2000-03-22  Mike Alexander  <mta@arbortext.com>
15056
15057         * dumper.c: Include Windows headers on Windows
15058         (pdump_resource_free): Add a body to the function
15059         (pdump_load): exe_name -> exe_path and add some comments.
15060
15061 2000-03-25  Mike Alexander  <mta@arbortext.com>
15062
15063         * gui.c (copy_gui_item_tree): Return a value in all cases
15064
15065 2000-03-21  Didier Verna  <didier@xemacs.org>
15066
15067         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
15068         lwlib/config.h.in.
15069         (SMART_INCLUDE): new macro.
15070         (POSTGRES_INCLUDE): new macro to include postgresql headers from
15071         the proper location.
15072
15073         * postgresql.c: use it.
15074
15075         * inline.c: ditto.
15076
15077 2000-03-24  Andy Piper  <andy@xemacs.org>
15078
15079         * gutter.c (redraw_exposed_gutters): must be "in display" when we
15080         do this.
15081
15082 2000-03-24  Andy Piper  <andy@xemacs.org>
15083
15084         * redisplay-output.c (compare_runes): use image_instance_changed
15085         to detect changes. Do not depend on glyphs_changed, only depend on
15086         dirtiness.
15087          (redisplay_output_layout): add debug messages.
15088         (compare_runes): ditto.
15089
15090         * glyphs.h: declare new functions.
15091         (struct Lisp_Image_Instance): remove percent and associated
15092         accessors.
15093
15094         * gui.h: declare new copying functions.
15095
15096         * gui.c (copy_gui_item_tree): new function.
15097         (copy_gui_item): new function.
15098         (gui_item_id_hash): revert to standard hash.
15099         (gui_item_hash): ditto.
15100         (gui_item_hash_internal): deleted.
15101         (mark_gui_item): mark value.
15102         (gui_item_add_keyval_pair): add value.
15103         (gui_item_init): ditto.
15104         (gui_add_item_keywords_to_plist): ditto.
15105         (gui_item_equal): ditto.
15106         (syms_of_gui): add Q_value.
15107
15108         * glyphs-x.c (x_progress_gauge_update): use pending items and
15109         value for setting the state.
15110         (x_update_widget): don't set items from pending here.
15111
15112         * glyphs-widget.c (update_widget): update items here.
15113         (progress_gauge_set_property): use items for storing value. Put
15114         new value in pending items.
15115
15116         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
15117         items for new value. Convert percent -> value.
15118         (mswindows_tab_control_update): don't update items here.
15119
15120         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
15121         (update_subwindow): ditto.
15122         (image_instance_changed): new function. Compare hash values and
15123         past and present widget items.
15124         (image_instantiate): We more careful about where we instantiate
15125         things.
15126         (image_instantiate): add error checking.
15127
15128         * gutter.c (syms_of_gutter): use -hook.
15129
15130 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
15131
15132         * console-tty.c (Fset_console_tty_input_coding_system): Use
15133         Qkeyboard.
15134         (Fset_console_tty_output_coding_system): Use Qterminal.
15135         (tty_init_console): Use Qkeyboard and Qterminal.
15136
15137 2000-03-21  Ben Wing  <ben@xemacs.org>
15138
15139         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
15140         From Mike Alexander <mta@arbortext.com>.
15141
15142 2000-03-21  Ben Wing  <ben@xemacs.org>
15143
15144         * event-msw.c (mswindows_need_event): Horrible kludge to fix
15145         process brokenness.  Proper implementation to come.
15146         * callproc.c:
15147         Rename call-process-internal to old-call-process-internal.
15148         New impl. in process.el.
15149
15150 2000-03-21  Martin Buchholz  <martin@xemacs.org>
15151
15152         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
15153
15154 2000-03-20  Andy Piper  <andy@xemacs.org>
15155
15156         * glyphs.c (full_list_hash): make hashes of the same elements in
15157         different orders return different values.
15158
15159 2000-03-20  Martin Buchholz <martin@xemacs.org>
15160
15161         * XEmacs 21.2.32 is released.
15162
15163 2000-03-20  Martin Buchholz  <martin@xemacs.org>
15164
15165         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
15166         (DFC_MALLOC_USE_CONVERTED_DATA):
15167         Add aliasing-safe casts to allow use with char* or unsigned char*
15168         lvalues.
15169
15170         * eldap.c (Fldap_open):
15171         (Fldap_search_basic):
15172         (Fldap_add):
15173         (Fldap_modify):
15174         Make C++-compilable.
15175         Make sure GCPRO'ed variables are initialized.
15176         Use temp variables to avoid repeated calls to Flength.
15177
15178 2000-03-16  Martin Buchholz  <martin@xemacs.org>
15179
15180         * sysfile.h:
15181         Make sure PATH_MAX is always defined.
15182         Include limits.h for PATH_MAX.
15183         Deprecate use of MAXPATHLEN.
15184
15185 2000-03-10  Martin Buchholz  <martin@xemacs.org>
15186
15187         * emacs.c: Add reinit_vars_of_fileio.
15188         * symsinit.h: Add reinit_vars_of_fileio.
15189         * fileio.c (reinit_vars_of_fileio): New.
15190         * fileio.c (Fmake_temp_name):
15191         Initialize temp_name random number from microseconds to make
15192         collisions even less likely.  Initialize always at process startup
15193         time.  (make-temp-name) used to return the same file name twice in
15194         a row when PDUMP.
15195         Random stylistic fiddling.
15196         Comment fixes.
15197
15198 2000-03-20  Andy Piper  <andy@xemacs.org>
15199
15200         * glyphs.c (image_instantiate): allow text glyphs to be
15201         instantiated in the minibuffer window.
15202
15203 2000-03-19  Andy Piper  <andy@xemacs.org>
15204
15205         * glyphs.c (image_instance_hash): be careful about which items we
15206         hash on.
15207
15208         * glyphs-widget.c (tab_control_set_property): record into pending
15209         items rather than the actual items.
15210
15211         * glyphs-x.c (x_update_widget): use pending items to update with.
15212
15213         * glyphs-msw.c (mswindows_tab_control_update): use pending items
15214         to update with.
15215
15216         * glyphs.c (mark_image_instance): mark pending items.
15217
15218         * window.c (Fset_window_configuration): record the buffer.
15219         (Fselect_window): totally revert previous change which breaks many
15220         things.
15221
15222 2000-03-18  Andy Piper  <andy@xemacs.org>
15223
15224         * glyphs-msw.c (mswindows_tab_control_update): force selected
15225         item.
15226
15227         * glyphs.c (image_instantiate): don't allow the minibuffer as a
15228         window domain cache, otherwise we get inconsistencies at
15229         startup. There is something fishy at startup which can lead to the
15230         minibuffer being the selected window when the gutter content is
15231         instantiated.
15232
15233         * gui.c (parse_gui_item_tree_list): add probably unnecessary
15234         gcpros.
15235         (parse_gui_item_tree_children): ditto.
15236         (parse_gui_item_tree_item): ditto.
15237
15238         * glyphs.c (Fupdate_widget_instances): return something.
15239
15240 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15241
15242         * window.c (Fselect_window): Undo 2000-03-17 change.
15243
15244 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15245
15246         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15247         against v7.0 libraries.  Insta-coredump city until the postgres
15248         folks fix it.
15249
15250 2000-03-17  Andy Piper  <andy@xemacs.org>
15251
15252         * faces.c (complex_vars_of_faces): don't give the widget face an
15253         inherited background pixmap.
15254
15255         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15256         selected item.
15257
15258         * event-stream.c (Fdispatch_non_command_events): return something.
15259
15260         * gutter.c (output_gutter): use widget face.
15261         (clear_gutter): ditto.
15262
15263         * NEWS: adjust again.
15264
15265         * window.c (Fselect_window): make sure this runs to completion to
15266         avoid oddities with Fset_window_configuration.
15267         (Fcurrent_window_configuration): in general do not save the
15268         minibuffer as the selected window.
15269
15270         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15271
15272 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15273
15274         * emacs.c (Frunning_temacs_p): Revert previous patch.
15275         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15276
15277 2000-03-16  Andy Piper  <andy@xemacs.org>
15278
15279         * glyphs-x.c (x_tab_control_update): if no widget values then
15280         return.
15281
15282         * NEWS: update for new features.
15283
15284         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15285         synthetic event to the native system.
15286         (reinit_vars_of_event_Xt): set force_event_pending to
15287         emacs_Xt_force_event_pending.
15288
15289         * events.h (struct event_stream): add force_event_pending.
15290
15291         * specifier.c (recompute_one_cached_specifier_in_window): add
15292         comment.
15293
15294         * redisplay.c (redisplay_frame): don't call
15295         update_frame_subwindows. Reset subwindow cachels when
15296         subwindows_changed, removing this was an optimization too far.
15297
15298         * redisplay-output.c (compare_runes): reorganize so that we catch
15299         glyph changes when we want them. Set optimize_output when this
15300         would help layouts.
15301         (redisplay_output_layout): remove frame_really_changed, use
15302         optimize_output instead.
15303
15304         * redisplay-msw.c (mswindows_output_display_block): reset
15305         optimize_output after outputting a glyph.
15306         * redisplay-x.c (x_output_display_block): ditto.
15307         * redisplay-tty.c (tty_output_display_block): ditto.
15308
15309         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15310         functions.
15311         (gutter_specs_changed): do specific gutter positions.
15312         (top_gutter_specs_changed): new function. Only update the
15313         specified gutter specs.
15314         (bottom_gutter_specs_changed): ditto.
15315         (left_gutter_specs_changed): ditto.
15316         (right_gutter_specs_changed): ditto.
15317
15318         * gui.c (gui_item_hash_internal): new function, does a real hash.
15319         (gui_item_id_hash): use it.
15320         (gui_item_hash): hash the eval'ed gui_item.
15321
15322         * gui-x.c (popup_selection_callback): send an eval event to call
15323         Fupdate_widget_instances.
15324
15325         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15326         to call Fupdate_widget_instances.
15327
15328         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15329         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15330
15331         * glyphs.c: (update_frame_subwindows): deleted.
15332         (Fupdate_widget_instances): new function for updating the dirty
15333         state of widgets that might have changed.
15334         (syms_of_glyphs): add Qupdate_widget_instances.
15335         (full_list_hash): hash a list completely.
15336         (image_instance_hash): use it for items and properties.
15337
15338         * frame-msw.c (mswindows_size_frame_internal): remove unused
15339         variable.
15340
15341         * faces.h (struct face_cachel): fix comment.
15342
15343         * event-stream.c (Fdispatch_non_command_events): new
15344         function. Process non-command events, forcing an event cycle
15345         beforehand.
15346         (syms_of_event_stream): declare.
15347         (event_stream_force_event_pending): new function. Force an event
15348         on the native event queue so that an event cycle will occur next
15349         time we check.
15350
15351         * event-msw.c:
15352         (struct ntpipe_shove_stream):
15353         (mswindows_enqueue_dispatch_event):
15354         (mswindows_dequeue_dispatch_event):
15355         (mswindows_cancel_dispatch_event):
15356         (mswindows_pump_outstanding_events):
15357         (mswindows_drain_windows_queue):
15358         (mswindows_handle_paint):
15359         (mswindows_wnd_proc):
15360         (mswindows_key_to_emacs_keysym):
15361         (get_process_input_waitable):
15362         (emacs_mswindows_delete_stream_pair): re-indent file.
15363         (mswindows_need_event): do not process further fds if the windows
15364         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15365         fixes the 100% cpu problem.
15366         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15367
15368 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15369
15370         * alloc.h: New.
15371         * dumper.h: New.
15372         * dumper.c: New.
15373
15374         * emacs.c: Moved dump file searching to dumper.c.
15375         (Frunning_temacs_p): Fixed.
15376
15377         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15378         last_lrecord_type_index_assigned.
15379
15380 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15381
15382         * symsinit.h: Added reinit parameter to init_console_stream
15383         declaration.
15384
15385         * lisp.h: Added file parameter to pdump_load declaration.
15386
15387         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15388         support.  Added dump file searching.
15389
15390         * config.h.in: Added EMACS_PROGNAME.
15391
15392         * console-stream.c (init_console_stream): Fix reinitialisation
15393         when running from temacs.
15394
15395         * alloc.c (pdump): Add id support.
15396         (pdump_load): Add file parameter and signature/id support.
15397
15398         * Makefile.in.in: Add full pdump support.
15399
15400 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15401
15402         * postgresql.c: Update documentation to reflect latest code
15403         status.
15404         (print_result): Show tuple counts in printed representation when
15405         appropriate.
15406         (Fpq_put_nbytes): MULE-ize.
15407         (Fpq_get_line_async): Ditto.
15408
15409 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15410
15411         * postgresql.c (Fpq_lo_import): Fix return value.
15412         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15413
15414 2000-03-13  Ben Wing  <ben@xemacs.org>
15415
15416         * alloc.c (pdump_load):
15417         Fix compile warning under mswin.
15418
15419 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15420
15421         * postgresql.c: Mule-ization, bug fixes.
15422         Use PG_CODING to encapsulate coding system name changes.
15423         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15424         (pg-coding-system): Create.
15425
15426         (Fpq_conn_defaults): Mule-ize.
15427         (Fpq_connectdb): Mule-ize & bug fix.
15428         (Fpq_connect_start): Mule-ize.
15429         (Fpq_set_client_encoding): Mule-ize.
15430         (Fpq_finish): Document `DEAD' connection status.
15431         (Fpq_clear): Ditto.
15432         (Fpq_pgconn): Mule-ize.
15433         (Fpq_exec): Mule-ize & bug fix.
15434         (Fpq_send_query): Ditto.
15435         (Fpq_get_result): Ditto.
15436         (Fpq_res_status): Mule-ize.
15437         (Fpq_result_error_message): Mule-ize.
15438         (Fpq_ntuples): fix comments.
15439         (Fpq_fname): Mule-ize.
15440         (Fpq_fnumber): Mule-ize.
15441         (Fpq_ftype): fix comments.
15442         (Fpq_get_value): Mule-ize.
15443         (Fpq_cmd_status): Ditto.
15444         (Fpq_cmd_tuples): Ditto.
15445         (Fpq_oid_value): Ditto.
15446         (Fpq_notifies): Ditto.
15447         (Fpq_lo_import): Ditto.
15448         (Fpq_lo_export): Ditto.
15449         (Fpq_get_line): Ditto.
15450         (Fpq_put_line): Mule-ize and bug fix.
15451         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15452
15453 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15454
15455         * postgresql.c (vars_of_postgresql): Mule-ize.
15456         (Fpq_conn_defaults): Ditto.
15457
15458 2000-03-12  Ben Wing  <ben@xemacs.org>
15459
15460         * alloc.c (Fmake_byte_code):
15461         * alloc.c (debug_string_purity_print):
15462         * alloc.c (pdump_backtrace):
15463         * alloc.c (pdump_get_indirect_count):
15464         * alloc.c (pdump_register_sub):
15465         * alloc.c (pdump_register_object):
15466         * alloc.c (pdump_register_struct):
15467         * alloc.c (pdump_dump_data):
15468         * alloc.c (pdump_reloc_one):
15469         Minor cleanups.
15470
15471         * console-msw.c:
15472         * console-msw.c (GetConsoleHwnd):
15473         * console-msw.c (msw_hide_console):
15474         * console-msw.c (msw_show_console):
15475         * console-msw.c (msw_ensure_console_buffered):
15476         * console-msw.c (msw_output_console_string):
15477         * console-msw.c (console_type_create_mswindows):
15478
15479         a) Added functions to manipulate the console window for use with
15480         shell support.
15481
15482         b) Added support for writing text to the console, which is now
15483         used under Windows when xemacs is not being run non-interactively,
15484         to write text that would otherwise be destined for stdout because
15485         under these circumstances, text written to stdout tends to
15486         disappear and not be seen.
15487
15488         * console-msw.h:
15489         * event-Xt.c:
15490         * event-Xt.c (x_event_to_emacs_event):
15491         * event-Xt.c (describe_event_window):
15492         * events-mod.h (XEMACS_MOD_CONTROL):
15493         * events.c:
15494         * events.c (Fmake_event):
15495         * events.c (character_to_event):
15496         * events.c (event_to_character):
15497         * events.c (format_event_object):
15498         * events.c (Fevent_modifiers):
15499         * events.h:
15500         * events.h (struct key_data):
15501         * events.h (struct button_data):
15502         * events.h (struct misc_user_data):
15503         * frame-x.c (Fcde_start_drag_internal):
15504         * frame-x.c (Foffix_start_drag_internal):
15505         * gpmevent.c (Freceive_gpm_event):
15506         * keymap.c:
15507         * keymap.c (bucky_sym_to_bucky_bit):
15508         * keymap.c (control_meta_superify):
15509         * keymap.c (make_key_description):
15510         * keymap.c (keymap_lookup_directly):
15511         * keymap.c (create_bucky_submap):
15512         * keymap.c (keymap_store):
15513         * keymap.c (define_key_check_and_coerce_keysym):
15514         * keymap.c (define_key_parser):
15515         * keymap.c (define_key_alternate_name):
15516         * keymap.c (Fdefine_key):
15517         * keymap.c (raw_lookup_key_mapper):
15518         * keymap.c (struct map_keymap_unsorted_closure):
15519         * keymap.c (map_keymap_unsorted_mapper):
15520         * keymap.c (map_keymap_sort_predicate):
15521         * keymap.c (map_keymap_sorted):
15522         * keymap.c (accessible_keymaps_mapper_1):
15523         * keymap.c (where_is_recursive_mapper):
15524         * keymap.c (describe_map_mapper):
15525         * keymap.c (describe_map_sort_predicate):
15526         * keymap.c (describe_map):
15527         * keymap.c (complex_vars_of_keymap):
15528         And a number of other files, the key modifier preprocessor
15529         constants that xemacs uses have names that conflict with constants
15530         defined under MS Windows for other purposes, so they were renamed
15531         to begin with the prefix XEMACS_. The variables that hold such
15532         modifiers were changed to consistently be of type int to fix
15533         various compile warnings.
15534
15535         * console.c (complex_vars_of_console):
15536         * device.c:
15537         * device-msw.c:
15538         * device-msw.c (mswindows_finish_init_device):
15539         * device-msw.c (msw_get_workspace_coords):
15540         * device-msw.c (mswindows_device_system_metrics):
15541         and various other files, added support for a new
15542         device property called offset-workspace which returns the position
15543         of the upper left corner of the workspace area and goes along with
15544         the existing size-workspace property.
15545
15546         * dialog-msw.c:
15547         * dialog-msw.c (push_bufbyte_string_as_unicode):
15548         * dialog-msw.c (mswindows_popup_dialog_box):
15549         Added support for XEmacs-style accelerator specifications in
15550         button text.  Note: I didn't add support for this under X Windows,
15551         and somebody needs to do this.
15552
15553         * dialog.c:
15554         * dialog.c (Fpopup_dialog_box):
15555         Documented the support for accelerators that was just mentioned.
15556
15557         editfns.c (get_home_directory): Changed behavior under Windows
15558         when HOME not defined; former behavior was irretrievably broken.
15559
15560         * emacs.c:
15561         * emacs.c (main_1):
15562         * emacs.c (main):
15563         * minibuf.c (clear_echo_area_internal):
15564         * minibuf.c (echo_area_append):
15565         * print.c:
15566         * print.c (std_handle_out_external):
15567         * print.c (std_handle_out_va):
15568         * print.c (fatal):
15569         * print.c (write_string_to_stdio_stream):
15570         * print.c (output_string):
15571         * print.c (debug_print):
15572         * print.c (debug_backtrace):
15573         * print.c (debug_short_backtrace):
15574         Cleaned up the code that prints text to stdout so that this can be
15575         changed to output into a console window instead under MS Windows,
15576         as described above.
15577
15578         * eval.c:
15579         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15580         * eval.c (internal_catch):
15581         * eval.c (unwind_to_catch):
15582         * eval.c (throw_or_bomb_out):
15583         * eval.c (condition_case_1):
15584         * eval.c (signal_1):
15585         * eval.c (check_error_state_sanity):
15586         * eval.c (call_with_suspended_errors_1):
15587         * eval.c (call_with_suspended_errors):
15588         * eval.c (reinit_vars_of_eval):
15589         Added code to catch throw loops and check for a pesky bug that may
15590         be gone now.
15591
15592         * event-msw.c:
15593         * event-msw.c (key_needs_default_processing_p):
15594         * event-msw.c (mswindows_wnd_proc):
15595         * event-msw.c (mswindows_modifier_state):
15596         * event-msw.c (emacs_mswindows_quit_p):
15597         * event-msw.c (vars_of_event_mswindows):
15598         a) Added support for using the alt key to select menu items as is
15599         standard under MS Windows.  This is controlled using the variable
15600         menu-accelerator-enabled, just like under X Windows.  There is an
15601         option on the options menu to turn this support on.  I really
15602         think that it should be on by default under Windows, but I'm not
15603         going to make this change yet.
15604
15605         b)  Added support for dynamic display size changes under Windows.
15606
15607         * event-stream.c:
15608         * event-stream.c (maybe_echo_keys):
15609         * event-stream.c (Fnext_event):
15610         * event-stream.c (command_builder_find_leaf):
15611         * event-stream.c (lookup_command_event):
15612         * event-stream.c (execute_command_event):
15613         * event-stream.c (pre_command_hook):
15614         * event-stream.c (post_command_hook):
15615         * event-stream.c (syms_of_event_stream):
15616         * event-stream.c (vars_of_event_stream):
15617         * event-stream.c (complex_vars_of_event_stream):
15618         * events.h (struct command_builder):
15619
15620         a) Tried to clean up a little bit the horribly written x-specific
15621         accelerator code that crept into this file.  I moved this code
15622         into menubar-x.c where it belongs. I also needed to move the
15623         command builder structure into the file events.h because it is
15624         accessed directly by this accelerator code.  What I didn't do, but
15625         which should be done at some point, is to properly abstract this
15626         code using device methods instead of the kludgy way that it
15627         currently hooks into the event code.
15628
15629         b) Added the lisp variables this-command-properties and
15630         last-command- properties, which should be used to synchronize two
15631         adjacent commands in preference to playing games with the variable
15632         this-command, which is typically what happens.
15633
15634         c) Added some slightly nasty code to hook into the lisp support
15635         for shifted- motion-key selection.  This is actually necessary for
15636         somewhat complicated reasons, which are described in
15637         simple.el. (NB: I think the proper thing would be to have the code
15638         that calls the pre and post command hooks also call out to generic
15639         lisp functions in simple.el, where all built-in stuff could be
15640         added.  I will think about this more.)
15641
15642         * event-unixoid.c (poll_fds_for_input):
15643         * lread.c (readchar):
15644         * redisplay-tty.c (tty_clear_frame):
15645         * redisplay-x.c (x_get_gc):
15646         * signal.c (interrupt_signal):
15647         And a whole bunch of other files: fixed up places that printed
15648         directly to stderr to instead call the function stderr_out so that
15649         the changes I made under Windows work correctly.
15650
15651         * filemode.c (mode_string):
15652         Warning fixes.
15653
15654         * frame-msw.c:
15655         * frame-msw.c (mswindows_size_frame_internal):
15656         Fixed the computation of frame size and position to keep the frame
15657         within the workspace area, rather than within the physical
15658         dimensions of the screen, so that the frame doesn't overlap window
15659         manager decorations, such as the start menu and toolbar, typically
15660         at the bottom of the screen.
15661
15662         * frame.c (vars_of_frame):
15663         Changed the default frame title format under MS Windows to consist
15664         of buffername-XEmacs, which is standard under MS Windows.  I think
15665         it might be a good idea to change this everywhere because I think
15666         it is superior to the current frame title format, but this is the
15667         kind of change that is likely to cause some people to get annoyed,
15668         so I'm not making it.
15669
15670         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15671
15672         * gui-msw.c (mswindows_handle_gui_wm_command):
15673         Fixed compile warnings.
15674
15675         * gui-x.c:
15676         * gui-x.c (strdup_and_add_accel):
15677         * gui-x.c (button_item_to_widget_value):
15678         * gui-x.h:
15679         Added code to automatically put an accelerator onto the beginning
15680         of menu items that don't have one as is now the standard, and is
15681         described more later.  Also fixed things so that the menu item
15682         name can be an evaluated expression, again a new standard.
15683
15684         * gui.c:
15685         * gui.c (gui_item_add_keyval_pair):
15686         * gui.c (make_gui_item_from_keywords_internal):
15687         * gui.c (gui_add_item_keywords_to_plist):
15688         * gui.c (gui_item_accelerator):
15689         * gui.c (gui_name_accelerator):
15690         * gui.c (gui_item_included_p):
15691         * gui.c (gui_item_display_flush_left):
15692         * gui.c (gui_item_display_flush_right):
15693         * gui.c (parse_gui_item_tree_item):
15694         * gui.c (parse_gui_item_tree_children):
15695         * gui.c (parse_gui_item_tree_list):
15696         Mule-ized.  Cleanup.  GCPRO addition.
15697
15698         * line-number.c (buffer_line_number):
15699         * lisp.h:
15700         * lisp.h (EMACS_INT_MAX):
15701         Added the manifest constant EMACS_INT_MIN corresponding to the
15702         existing constant EMACS_INT_MAX.  This is partially to fix compile
15703         warnings under Windows, and partly for cleanliness.
15704
15705         * menubar-msw.c:
15706         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15707         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15708         * menubar-msw.c (displayable_menu_item):
15709         * menubar-msw.c (populate_menu_add_item):
15710         * menubar-msw.c (populate_or_checksum_helper):
15711         * menubar-msw.c (populate_menu):
15712         * menubar-msw.c (update_frame_menubar_maybe):
15713         * menubar-msw.c (prune_menubar):
15714         * menubar-msw.c (msw_char_is_accelerator):
15715         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15716         * menubar-msw.c (mswindows_handle_wm_command):
15717         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15718         * menubar-msw.c (mswindows_handle_wm_initmenu):
15719         * menubar-msw.c (mswindows_update_frame_menubars):
15720         * menubar-msw.c (mswindows_free_frame_menubars):
15721         * menubar-msw.c (mswindows_popup_menu):
15722         Fixed a bug in handling accelerators where an extra character
15723         would be displayed in the menu item.  Also generalized the
15724         function displayable_menu_item because it is now used by the
15725         dialog box code as well.  And finally, added code in the functions
15726         that create the menubar to extract a list of accelerators for the
15727         top level menubar, which is used in the event code to determine
15728         whether a particular alt-key combination should be used to invoke
15729         a menu item, or should be passed through to access the standard
15730         XEmacs keymap binding for this key combination.
15731
15732         Much needed GCPROing.
15733
15734         * menubar-x.c:
15735         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15736         * menubar-x.c (menu_item_descriptor_to_widget_value):
15737         * menubar-x.c (restore_in_menu_callback):
15738         * menubar-x.c (x_popup_menu):
15739         * menubar-x.c (menu_move_up):
15740         * menubar-x.c (menu_move_down):
15741         * menubar-x.c (menu_move_left):
15742         * menubar-x.c (menu_move_right):
15743         * menubar-x.c (menu_select_item):
15744         * menubar-x.c (command_builder_operate_menu_accelerator):
15745         * menubar-x.c (menu_accelerator_junk_on_error):
15746         * menubar-x.c (command_builder_find_menu_accelerator):
15747         * menubar-x.c (Faccelerate_menu):
15748         * menubar.h:
15749         Moved a whole bunch of code here that was previously in
15750         event-stream.c as described above.  There is also code connected
15751         to the new standard of adding an accelerator to the beginning of
15752         menu items that don't have one as described above and below.
15753
15754         * menubar.c:
15755         * menubar.c (menu_parse_submenu_keywords):
15756         * menubar.c (Fmenu_find_real_submenu):
15757         * menubar.c (Fnormalize_menu_item_name):
15758         * menubar.c (syms_of_menubar):
15759         * menubar.c (vars_of_menubar):
15760         * menubar.c (complex_vars_of_menubar):
15761
15762         a) Cleaned up a bunch of documentation and improved it.
15763
15764         b) XEmacs now automatically adds an accelerator onto the beginning
15765         of any menu items that don't have one.  I did this because there
15766         will inevitably be some menu items on the main menubar that don't
15767         have accelerators on them because the package that adds that
15768         particular menu item hasn't yet been fixed up to have accelerators
15769         in them and it looked rather strange to have some items with and
15770         some items without accelerators, especially since even in items
15771         without accelerators, you can, at least under windows, still
15772         access the item through an accelerator corresponding to the first
15773         character in the item's name.  If people don't like this behavior,
15774         I can add a variable to turn it off optionally, but I'm not sure
15775         this is a good idea because we really do need to have accelerators
15776         on all of the menu items, and if a package doesn't like the
15777         accelerators being put on the first character, then it should put
15778         the accelerators where they belong.
15779
15780         c) I made a behavior change, which is that the descriptor that
15781         specifies the text of the menu item, which formerly was just a
15782         string, can now also be an evaluated expression.  This makes this
15783         descriptor parallel with all of the others, which could also be
15784         evaluated expressions.  This also obviates the need for the
15785         keyword :label, which was previously listed in the documentation
15786         as unimplemented, and which was for the same purpose.
15787
15788         d) GCPROing.
15789
15790         * ntproc.c:
15791         * ntproc.c (new_child):
15792         * ntproc.c (sys_spawnve):
15793         * ntproc.c (find_child_console):
15794         * ntproc.c (sys_kill):
15795         Fixed compile warnings.  By the way, this file should really go
15796         away entirely, and this will happen as soon as Kirill makes his
15797         final round of process cleanups, which affect the function
15798         call-process.
15799
15800         * process-nt.c:
15801         * process-nt.c (struct nt_process_data):
15802         * process-nt.c (find_process_from_pid):
15803         * process-nt.c (send_signal_the_nt_way):
15804         * process-nt.c (enable_child_signals):
15805         * process-nt.c (find_child_console):
15806         * process-nt.c (send_signal_the_95_way):
15807         * process-nt.c (nt_finalize_process_data):
15808         * process-nt.c (ensure_console_window_exists):
15809         * process-nt.c (nt_create_process):
15810         * process-nt.c (nt_kill_child_process):
15811         * process-nt.c (nt_kill_process_by_pid):
15812         * process-nt.c (nt_open_network_stream):
15813         * process-nt.c (vars_of_process_nt):
15814         Copied over code from Emacs 20.5 to correctly send signals to sub-
15815         processes under Windows 95.  Also added code to automatically
15816         create and hide console window when a sub-process is created under
15817         Windows 95, which obviates the need for the separate runemacs.exe
15818         executable, and finally implemented some variables that were
15819         implemented in Emacs 20.5, but previously not in XEmacs.  These
15820         include mswindows- start-process-share-console and
15821         mswindows-start-process-inherit-error-mode. (Both of these only
15822         apply to Windows 95.)
15823
15824         * regex.c (regex_compile): Fixed a compile warning.
15825
15826         * select-msw.c:
15827         * select-msw.c (mswindows_own_selection):
15828         * select-msw.c (mswindows_get_foreign_selection):
15829         * select-msw.c (mswindows_disown_selection):
15830         * select-msw.c (console_type_create_select_mswindows):
15831         * select-msw.c (syms_of_select_mswindows):
15832         Cleaned up the file and implemented the device method
15833         selection_exists_p, which had accidentally been left out.  Also
15834         removed four lisp functions that were remnants from before the
15835         time when the selection code was properly device abstracted.
15836         These functions are no longer needed because there are generic
15837         equivalents, and because they were added recently and don't exist
15838         in FSF Emacs, I don't think there's any problem with just deleting
15839         them.
15840
15841         * sysdep.c:
15842         * sysdep.c (sys_subshell):
15843         Fixed a compile warning, although in this case there's probably
15844         something wrong with this code, and it ought to be looked into
15845         more thoroughly by somebody who understands it.
15846
15847         * window.c:
15848         * window.c (Fwindow_text_area_height):
15849         * window.c (Fwindow_width):
15850         * window.c (Fwindow_full_width):
15851         * window.c (Fwindow_pixel_width):
15852         * window.c (debug_print_window):
15853         * window.c (syms_of_window):
15854         Added functions window-text-area-height and window-full-width,
15855         which are functions for returning various width and height
15856         characteristics of a window. (One of these functions is necessary
15857         for making the file dialog box work correctly, and the other one
15858         was added for completeness.)  Also added a table to the
15859         documentation for window-height which describes the entire scheme
15860         for accessing width and height characteristics of a window.
15861
15862 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15863
15864         * nt.c (fstat): Added a comment for another problem with
15865         non-encapsulated [f]stat(), reported by Adrian Aichner
15866         <aichner@ecf.teradyne.com>.
15867
15868 2000-03-11  Andy Piper  <andy@xemacs.org>
15869
15870         * window.c (make_dummy_parent): initialize subwindow instance
15871         cache.
15872         (Fset_window_configuration): zero extent_modiff.
15873
15874 2000-03-10  Andy Piper  <andy@xemacs.org>
15875
15876         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15877         more changes can be triggered.
15878         (Fredisplay_frame): ditto.
15879         (Fredraw_device): ditto.
15880         (Fredisplay_device): ditto.
15881         (redisplay_frame): make non-static.
15882         (redisplay_frame): call update_frame_gutter_geometry outside of
15883         display proper.
15884
15885         * gutter.h: declare update_frame_gutter_geometry.
15886
15887         * redisplay.h: declare redisplay_frame.
15888
15889         * gutter.c (update_frame_gutter_geometry): move geometry changes
15890         in update_frame_gutters here. Geometry changes can only occur
15891         outside of redisplay.
15892         (update_frame_gutters): remove geometry change code.
15893         (Fredisplay_gutter_area): make sure that we are in display when we
15894         update and that we have flushed any size changes.
15895
15896 2000-03-11  Andy Piper  <andy@xemacs.org>
15897
15898         * alloc.c (pdump_dump_data): remove i & count shadows.
15899
15900 2000-02-27  Mike Alexander  <mta@arbortext.com>
15901
15902         * sysdep.h: Declare pdump_read_file
15903
15904         * sysdep.c (pdump_read_file): New function
15905
15906         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15907         dump data
15908
15909 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15910
15911         * lrecord.h: add `lrecord_type_pgsetenv'.
15912
15913 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15914
15915         * symsinit.h: declare (vars|syms)_of* functions.
15916         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15917
15918 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15919
15920         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15921
15922         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15923         GCCs.
15924
15925         * emacs.c (main_1): Call postgres initialization code.
15926
15927         * postgresql.h: New file.  PostgreSQL RDBMS support.
15928         * postgresql.c: New file.
15929
15930 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15931
15932         * redisplay-output.c (redisplay_output_display_block): Disable
15933         redundant code.
15934
15935 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15936
15937         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15938         (Fcanna_henkan_next): Ditto.
15939         (Fcanna_bunsetu_henkou): Ditto.
15940         (Fcanna_henkan_kakutei): Ditto.
15941         (Fcanna_henkan_end): Ditto.
15942         (Fcanna_henkan_quit): Ditto.
15943         (Fcanna_henkan_next): Set retun value correctly.
15944         (c2mu): Use unsigned char instead of signed char.
15945
15946 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15947
15948         * emacs.c (main_1): Always call syms_of_gui.
15949         * inline.c: include gui.h
15950
15951 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15952
15953         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15954         converted to Lisp_Object.
15955         (Qtop_bottom): New variable.
15956         (syms_of_redisplay): Initialize it.
15957         * redisplay.h (Vvisible_bell): Ditto.
15958         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15959         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15960         only flash top and bottom.
15961
15962 2000-03-08  Andy Piper  <andy@xemacs.org>
15963
15964         * buffer.c (Frename_buffer): record new buffer name the right way.
15965
15966 2000-03-08  Andy Piper  <andy@xemacs.org>
15967
15968         * glyphs.c (update_subwindow): increase hash depth so that widget
15969         items get picked up properly.
15970
15971         * redisplay-output.c (compare_runes): increase hash depth so that
15972         widget items get picked up properly.
15973
15974 2000-03-08  Andy Piper  <andy@xemacs.org>
15975
15976         * gutter.c (output_gutter): add some debug.
15977
15978         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15979         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15980         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15981
15982         * redisplay-output.c (compare_runes): use display_hash to
15983         determine if glyphs really are not the same.
15984
15985         * glyphs.c (update_subwindow): check display_hash to see if
15986         anything really needs to be updated. If not then do
15987         nothing. Record the display_hash after updating.
15988         (image_instance_equal): compare the image_instance face also.
15989
15990 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15991
15992         * redisplay.h: Fix comment style.
15993
15994 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15995
15996         * consle-msw.h (struct mswindows_frame):
15997         Added new member paint_pending to indicate whether a WM_PAINT
15998         magic event has been queued for this frame.
15999
16000         * event-msw.c (mswindows_drain_windows_queue):
16001         Don't queue a WM_PAINT magic event if one is already queued.
16002         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
16003
16004         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
16005
16006 2000-03-07  Didier Verna  <didier@xemacs.org>
16007
16008         * dired.c: #include `regex.h' after `sysfile.h'.
16009
16010 2000-03-06  Martin Buchholz  <martin@xemacs.org>
16011
16012         * sound.c (init_nas_sound): Fix compiler warning.
16013
16014         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
16015         (FREE_STRUCT_P):
16016         (MARK_STRUCT_AS_FREE):
16017         (MARK_STRUCT_AS_NOT_FREE):
16018         Make `gcc -fstrict-aliasing' work properly.
16019
16020 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16021
16022         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
16023         (mswindows_delete_device): Call CoUnnitialize().
16024
16025         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
16026
16027 2000-02-25    <CraigL@DyCon.com>
16028
16029         * process-nt.c: MinGW now has <shellapi.h>, but still needs
16030         <errno.h>.
16031
16032         * sysdep.c: This extern declaration for environ prevents MinGW
16033         from finding the variable in CRTDLL.DLL.
16034
16035         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
16036         windows headers.
16037         (SHGFI_EXETYPE): ..
16038         (WM_MOUSEWHEEL): ..
16039         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
16040         definitions.
16041         (MMRESULT): Removed, now defined in cygwin's windows headers.
16042         (TIMECAPS): ..
16043         (uid_t,gid_t,pid_t,ssize_t): ..
16044         (_timeb): Removed, MinGW defines both _timeb and timeb.
16045         (HAVE_H_ERRNO): Added.
16046         (HAVE_TZNAME): Added, configure is not detecting this.
16047
16048 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
16049
16050         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
16051         * syntax.c (syntax_match): Use it.
16052
16053         * cmds.c: Import auto-fill-chars from FSF Emacs.
16054         (Vauto_fill_chars): New variables.
16055         (internal_self_insert): Check Vauto_fill_chars.
16056         (vars_of_cmds):
16057         Declare auto-fill-chars as a Lisp variable and initialize it.
16058
16059 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16060
16061         * fileio.c (Fmake_symbolic_link):
16062         (Ffile_symlink_p):
16063         Run handlers even if local machine doesn't have symlinks.
16064
16065 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16066
16067         * event-msw.c (mswindows_drain_windows_queue):
16068         Don't generate paint magic events for non-XEmacs frames.
16069
16070 2000-03-05  Andy Piper  <andy@xemacs.org>
16071
16072         * redisplay.c (redisplay_frame): generate_displayable_area and
16073         friends assumes that we are not in GC, we therefore have to make
16074         sure that this doesn't happen.
16075
16076         * gutter.c (calculate_gutter_size): generate_displayable_area
16077         assumes that we are not in GC, we therefore have to make sure that
16078         this doesn't happen.
16079
16080 2000-03-05  Martin Buchholz  <martin@xemacs.org>
16081
16082         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
16083
16084 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
16085
16086         * redisplay.c (regenerate_window): Make sure we set a sane value
16087         for end_pos even if we jump out of the loop.
16088         (regenerate_window): Answer Ben's question :-).
16089         (start_end_of_last_line): Add may_error argument.
16090         (start_of_last_line):
16091         (end_of_last_line): Pass may_error = 0.
16092         (end_of_last_line_may_error): New function.
16093         (pixel_to_glyph_translation): Use it, so we don't crash in
16094         event_to_glyph.
16095
16096 2000-03-04  Andy Piper  <andy@xemacs.org>
16097
16098         * window.h (struct window): add gutter_extent_modiff.
16099
16100         * window.c (allocate_window): zero out gutter_extent_modiff.
16101
16102         * redisplay.h: declare sync_display_line_structs.
16103
16104         * redisplay.c (add_glyph_rune): add a better comment.
16105
16106         * redisplay-output.c (sync_display_line_structs): made non-static.
16107         (compare_runes): remove unneccesary glyph cachel access.
16108
16109         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
16110
16111         * gutter.c (output_gutter): don't output the gutter if extent
16112         changes only involve extents in buffers. use 4 sets of display
16113         lines.
16114         (gutter_extent_signal_changed_region_maybe): new function. Mark
16115         extents in gutters as changed.
16116         (update_frame_gutters): use 4 sets of display lines.
16117         (reset_gutter_display_lines): ditto.
16118         (free_frame_gutters): ditto.
16119         (redraw_exposed_gutter): force output of gutters.
16120
16121         * frame.h (struct frame): add 4 sets of gutter display lines.
16122
16123         * extents.c: (extent_changed_for_redisplay): signal changes to
16124         extents in strings in the gutter as well as extents in buffers.
16125
16126 2000-03-02  Andy Piper  <andy@xemacs.org>
16127
16128         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
16129
16130         * frame.c (Fmake_frame): make sure the gutters get initialized
16131         after the frame is visible.
16132         (set_frame_selected_window): re-arrange compilation macros a
16133         little.
16134         (change_frame_size_1): mark gutters changed.
16135
16136         * device.c (Fset_device_class): mark gutters changed.
16137
16138 2000-03-01  Andy Piper  <andy@xemacs.org>
16139
16140         * window.c (window_top_frame_gutter_height): deleted.
16141         (window_bottom_frame_gutter_height): ditto.
16142         (window_left_frame_gutter_height): ditto.
16143         (window_right_frame_gutter_height): ditto.
16144         (window_top_gutter_height): don't use them.
16145         (window_bottom_gutter_height): ditto.
16146         (window_left_gutter_width): ditto.
16147         (window_right_gutter_width): ditto.
16148         (Fsplit_window): ditto.
16149         (Fwindow_pixel_edges): don't use border dimensions here.
16150
16151         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
16152         (update_scrollbar_instance): ditto.
16153
16154         * redisplay.c (generate_modeline): don't take gutters into account.
16155         (generate_modeline): ditto.
16156         (redisplay_frame): small gutter display optimization.
16157
16158         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
16159
16160         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
16161         gutters into account.
16162
16163         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
16164         for window position and type.
16165
16166         * gutter.c (get_gutter_coords): fix for frame gutters.
16167         (update_frame_gutters): update frame geometry if the gutters have
16168         changed.
16169         (init_frame_gutters): record current gutter geometries.
16170
16171         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
16172         var.
16173         (mswindows_widget_instantiate): ditto.
16174
16175         * frame.h (struct frame): add current_gutter_bounds.
16176
16177         * frame.c (change_frame_size_1): position window and minibuffer
16178         appropriately taking into account the frame gutters.
16179
16180         * frame-x.c: (x_initialize_frame_size): take into account the
16181         frame gutters.
16182
16183 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16184
16185         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
16186
16187 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16188
16189         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
16190
16191 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16192
16193         * file-coding.c (reset_decoding_stream): Clear previous
16194         detection state when autodetect.
16195
16196 2000-02-29  Didier Verna  <didier@xemacs.org>
16197
16198         * extents.c (set_extent_glyph_1): don't require extents to be
16199         attached.
16200
16201 2000-02-27  Andy Piper  <andy@xemacs.org>
16202
16203         * gutter.c (Fset_default_gutter_position): don't default left and
16204         right gutter visibility to t.
16205         (Fset_default_gutter_position): run
16206         default-gutter-position-changed-hook.
16207         (syms_of_gutter): add default-gutter-position-changed-hook.
16208
16209 2000-02-26  Andy Piper  <andy@xemacs.org>
16210
16211         * specifier.c (Fmake_specifier): add gutter references.
16212
16213         * gutter.h (RAW_WINDOW_GUTTER): new macro.
16214
16215         * lisp.h: declare Fvalid_plist_p.
16216
16217         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
16218         as changed.
16219         (default_gutter_visible_p_changed_in_window): invalidate gutter as
16220         well as its visibility so that it gets reconstructed.
16221         (construct_window_gutter_spec): new function. Construct a string
16222         to be displayed in the gutter from a plist of strings. Take care
16223         to only use elements that are declared as visible.
16224         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
16225         WINDOW_GUTTER.
16226         (gutter_validate): allow plists of strings in the specifier.
16227         (gutter_specs_changed): construct the real_gutter from the gutter
16228         specs using construct_window_gutter_spec.
16229         (gutter_visible_validate): gutter-visible is a new specifier type.
16230         (Fgutter_visible_specifier_p): new function for the new specifier.
16231         (syms_of_gutter): declare gutter-visible and
16232         Fgutter_visible_specifier_p.
16233         (specifier_type_create_gutter): intitalize new gutter-visible
16234         specifier.
16235         (reinit_specifier_type_create_gutter): ditto.
16236         (specifier_vars_of_gutter): use new specifier type for gutter
16237         visibility.
16238         (init_frame_gutters): construct real_gutter correctly.
16239         (Fgutter_specifier_p): beef up documentation.
16240         (Fgutter_size_specifier_p): ditto.
16241
16242         * winslots.h: add real_gutter slots.
16243
16244 2000-02-25  Andy Piper  <andy@xemacs.org>
16245
16246         * device-msw.c: Be kind to older cygwin versions. From Raymond
16247         Toy <toy@rtp.ericsson.se>.
16248
16249         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16250         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16251
16252 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16253
16254         * elhash.c (MARK_OBJ): Practice macro hygiene.
16255
16256 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16257
16258         * miscplay.c: s/__inline__/inline/g;
16259         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16260         (get_device_compdc): INLINE ==> static inline
16261         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16262         find -name '*.h' | \
16263         xargs global-replace \
16264         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16265
16266 2000-02-25  Andy Piper  <andy@xemacs.org>
16267
16268         * window.c (window_top_frame_gutter_height): new function.
16269         (window_top_window_gutter_height): ditto.
16270         (window_top_gutter_height): use them.
16271         (window_bottom_frame_gutter_height): new function.
16272         (window_bottom_window_gutter_height): ditto.
16273         (window_bottom_gutter_height): use them.
16274         (window_left_window_gutter_width): new function.
16275         (window_left_frame_gutter_width): ditto.
16276         (window_left_gutter_width): use them.
16277         (window_right_window_gutter_width): new function.
16278         (window_right_frame_gutter_width): ditto.
16279         (window_right_gutter_width): use them.
16280         (window_pixel_height): new function. calulate window pixel height
16281         with frame gutter involvement.
16282         (Fsplit_window): calculate new sizes taking frame gutters into
16283         account.
16284         (window_char_height_to_pixel_height): don't include frame gutters.
16285         (window_char_height): use window_pixel_height.
16286         (window_pixheight): rename from window_pixel_height.
16287         (change_window_height): use it.
16288         (window_pixel_height_to_char_height): don't include frame gutters.
16289         (window_char_width_to_pixel_width): ditto.
16290
16291 2000-02-25  Andy Piper  <andy@xemacs.org>
16292
16293         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16294         if it is.
16295
16296 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16297
16298         * alloc.c (staticpro):
16299         (staticpro_nodump):
16300         (dumpstruct):
16301         (dumpopaque):
16302         (pdump_wire):
16303         (pdump_wire_list):
16304         (compact_string_chars):
16305         (pdump_dump_wired):
16306         Convert:  if (foo) abort();  ==>  assert (! foo);
16307
16308         * eldap.c (Fldap_search_basic):
16309         (Fldap_add):
16310         (Fldap_modify):
16311         (Fldap_delete):
16312         Fix compiler warnings, and possible crashes if (random) return
16313         value were to be used.
16314
16315 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16316
16317         * device-msw.c: Workaround ResetDC failure.
16318
16319         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16320         applying a devmode.
16321
16322         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16323         (mswindows_text_width): Do not start printer page.
16324
16325         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16326
16327         * glyphs-msw.c: Added image methods to msprinter console and
16328         msprinter-specific image instantiation.
16329
16330 2000-02-20  Mike Alexander  <mta@arbortext.com>
16331
16332         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16333         to avoid crashes when selection-sets-clipboard is on
16334         (mswindows_own_selection): ditto
16335
16336 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16337
16338         * glyphs-msw.c:
16339         * redisplay-msw.c (get_frame_dc):
16340         (get_frame_compdc):
16341         * console-msw.h:
16342         * device-msw.c (mswindows_init_device):
16343         (mswindows_delete_device):
16344         (msprinter_init_device):
16345         (msprinter_delete_device):
16346         * frame-msw.c (mswindows_init_frame_1):
16347         (mswindows_delete_frame):
16348         (msprinter_init_frame_3):
16349         (msprinter_delete_frame): Move compatible DC to device object from
16350         frame object, for both mswindows and msprinter. Only one at a time
16351         is needed, it is a real waste to have one per frame!
16352
16353 2000-02-23  Andy Piper  <andy@xemacs.org>
16354
16355         * glyphs.c: add dynamic width and height elements.
16356         (image_instance_equal): ditto.
16357
16358         * glyphs-widget.c (widget_query_geometry): calculate width and
16359         height dynamically if required.
16360         (initialize_widget_image_instance): initialize dynamic dimensions.
16361         (widget_instantiate): pick-up dynamic dimensions.
16362
16363         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16364         dynamic determination. Add appropriate macros.
16365
16366         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16367         dimensions safe.
16368         (WINDOW_GUTTER_SIZE): ditto.
16369         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16370
16371         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16372         inline.
16373         (get_frame_dc): ditto.
16374
16375         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16376         here.
16377
16378 2000-02-23  Martin Buchholz <martin@xemacs.org>
16379
16380         * XEmacs 21.2.31 is released.
16381
16382 2000-02-22  Ben Wing <ben@xemacs.org>
16383
16384         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16385
16386 2000-02-22  Andy Piper  <andy@xemacs.org>
16387
16388         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16389
16390 2000-02-21  Mike Sperber <mike@xemacs.org>
16391
16392         * .dbxrc:
16393         * .gdbinit:
16394         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16395         variables.
16396
16397 2000-02-21  Mike Sperber <mike@xemacs.org>
16398
16399         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16400
16401 2000-02-21  Martin Buchholz <martin@xemacs.org>
16402
16403         * XEmacs 21.2.30 is released.
16404
16405 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16406
16407         Performance hacking.
16408         * *.c (syms_of_*):
16409         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16410         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16411         * emacs.c (main_1):
16412         * lisp.h (DEFUN):
16413         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16414         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16415         * symeval.h (DEFVAR_SYMVAL_FWD):
16416         * symbols.c (guts_of_unbound_marker):
16417         Make all c_readonly objects also lisp_readonly and marked for life.
16418         * lrecord.h (struct lrecord_implementation):
16419         Document flags better.
16420         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16421         * lrecord.h (DECLARE_LRECORD):
16422         * lrecord.h (XSETRECORD):
16423         * lrecord.h (RECORDP):
16424         * lrecord.h (RECORD_TYPEP):
16425         * lrecord.h (RECORD_MARKER): New.
16426         * lrecord.h (error_check_*):
16427         * lrecord.h (CONCHECK_NONRECORD):
16428         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16429         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16430         * lrecord.h (set_lheader_implementation):
16431         * lrecord.h (enum lrecord_type): New.
16432         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16433         * alloc.c (disksave_object_finalization_1):
16434         * alloc.c (mark_object):
16435         * alloc.c (lrecord_type_index):
16436         * alloc.c (tick_lcrecord_stats):
16437         * alloc.c (Fgarbage_collect):
16438         * alloc.c (init_alloc_once_early):
16439         * alloc.c (pdump_load):
16440         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16441         * alloc.c (lrecord_type_index): Delete.
16442         Make lisp object type indexes be constant.
16443           Makes (byte-compile) 5% faster.
16444         Put all marker functions into their own array.
16445           Makes (garbage-collect) 5% faster.
16446         Optimize SYMBOL_VALUE_MAGIC_P.
16447           Makes (byte-compile) 2-3% faster.
16448         * config.h.in (gc_checking_assert): New.
16449         * alloc.c: Use gc_checking_assert().
16450         * .dbxrc: Make compatible with new object type implementation.
16451         * .gdbinit: Make compatible with new object type implementation.
16452         * alloc.c: Delete all symbols defined only for debugging, such as
16453         Lisp_Type_Vector and lrecord_charset.
16454
16455 2000-02-21  Andy Piper  <andy@xemacs.org>
16456
16457         * gui-msw.c (Fmswindows_shell_execute): fix file location
16458         problems.
16459
16460         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16461         unshowing so that set_window_buffer doesn't undo
16462         kill_buffer_hook's hard work.
16463
16464         * glyphs-widget.c (tab_control_query_geometry): don't count the
16465         first item when calculating geometry.
16466
16467         * glyphs.c (map_subwindow): remove redundant code.
16468         (update_frame_subwindows): be more circumspect about when to
16469         update subwindows.
16470
16471         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16472         when items haven't changed. Update faces if faces have changed as
16473         well as just the widget face.
16474         (x_tab_control_update): Update faces if faces have changed as well
16475         as just the widget face.
16476
16477 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16478
16479         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16480         registration.
16481         (build_syscolor_string): Use mswindows_color_to_string to try to
16482         get a named color.
16483         (mswindows_device_system_metrics): Reverse the foreground and
16484         background colors so that they match the documentation.
16485
16486         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16487         they match the default Windows palette.
16488         (mswindows_color_to_string): New function.
16489
16490 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16491
16492         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16493
16494 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16495
16496         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16497         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16498
16499         * symbols.c (init_symbols_once_early): Removed obsolete
16500         DATA_SEG_BITS related kludge.
16501         (defvar_magic): Ditto.
16502
16503         * malloc.c: Removed obsolete DATA_SEG_BITS
16504         * ralloc.c: Ditto.
16505         * mem-limits.h: Ditto.
16506
16507         * Makefile.in.in: Removed obsolete HAVE_SHM
16508         * emacs.c: Ditto.
16509
16510 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16511
16512         *  device-msw.c (mswindows_delete_device): Free DDE string
16513         handles.
16514
16515 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16516
16517         * keymap.c (get_keyelt):
16518         * unexnt.c (unexec):
16519         * vm-limit.c (memory_warnings):
16520         * ntheap.c (recreate_heap):
16521         * ntheap.h (UNINIT_PTR):
16522         * select-msw.c (Fmswindows_get_clipboard):
16523         (Fmswindows_set_clipboard):
16524         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16525         * objects-msw.c:
16526         * menubar-msw.c (displayable_menu_item):
16527         * glyphs-msw.c:
16528         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16529         * sysdep.c (sys_subshell):
16530         * process-nt.c (nt_create_process):
16531         * nt.c (normalize_filename):
16532         (dostounix_filename):
16533         (unixtodos_filename):
16534         * ntproc.c (win32_executable_type):
16535         * ntplay.c (play_sound_data_1):
16536         (play_sound_file):
16537         * editfns.c (get_home_directory):
16538         * event-msw.c (struct winsock_stream):
16539         (mswindows_dde_callback):
16540         * device-msw.c (msprinter_init_device):
16541         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16542
16543         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16544         mswindows_clear_toolbar were swapped!
16545
16546         * objects-msw.c:(colormap_t):
16547         (fontmap_t):
16548         * emacs.c (struct standard_args): Fixed const jumble.
16549
16550         * glyphs-widget.c (update_widget): Fixed comparison notation.
16551
16552         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16553
16554         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16555         __declspec(noreturn) syntax.
16556
16557 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16558
16559         * eldap.c (Fldap_open):
16560         (Fldap_search_basic):
16561         (Fldap_add):
16562         (Fldap_modify):
16563         Use new coding system conversion macros.
16564
16565 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16566
16567         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16568
16569 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16570
16571         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16572         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16573
16574         * eldap.c (Qadd, Qreplace): New constant symbols
16575         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16576         interruptions by XEmacs signals
16577         Remove unnecessary calls to slow_down_interrupts and
16578         speed_up_interrupts
16579         (Fldap_search_basic): Renamed from Fldap_search_internal
16580         Added new optional parameter VERBOSE that triggers the
16581         display of progress messages
16582         Remove unnecessary calls to slow_down_interrupts and
16583         speed_up_interrupts
16584         LDAP result code analysis rewritten
16585         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16586         (syms_of_eldap): Define the new symbols and functions
16587
16588
16589 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16590
16591         * realpath.c: Determine PATH_MAX maximally portably.
16592
16593         * insdel.c (bytecount_to_charcount): Optimize.
16594         The function used to be optimized for entirely ASCII sequences.
16595         Now it is optimized for successive characters from the same
16596         charset.  This also wins big for _mostly_ ASCII sequences.
16597
16598         * fileio.c (Ffile_truename): convert return from realpath() using
16599         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16600         - Rewrite GCPROing slightly.
16601
16602         * sysdep.c (sys_open): Do filename conversion, like all other
16603         sys_* functions.  Fixes bug:
16604         (let ((file-name-coding-system 'iso-8859-2))
16605            (write-region x y latin2-name))
16606         ==> writes filename using internal encoding.
16607
16608 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16609
16610         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16611         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16612         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16613         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16614         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16615         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16616         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16617         (CONST_IF_NOT_DEBUG): Delete.
16618         * alloc.c (this_one_is_unmarkable): Delete.
16619         (mark_object): Don't check for this_one_is_unmarkable. Use the
16620         c_readonly flag instead.
16621         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16622
16623 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16624
16625         * event-msw.c (mswindows_drain_windows_queue):
16626         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16627         away redundant repaint events.
16628
16629 2000-02-17  Andy Piper  <andy@xemacs.org>
16630
16631         * redisplay.h: declare mark_redisplay_structs.
16632
16633         * redisplay.c (redisplay_window):
16634         (redisplay_frame): don't check subwindows_state_changed.
16635         (mark_redisplay): mark gutters here.
16636
16637         * glyphs.c: (instantiate_image_instantiator): always layout if we
16638         haven't done so already.
16639         (allocate_image_instance): don't mark as dirty.
16640         (update_subwindow): bind inhibit_quit.
16641
16642         * gutter.c (mark_gutters): new function.
16643
16644         * glyphs-x.c (x_update_widget): Always resize to get round a
16645         widget bug.
16646
16647         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16648         breaking absolutely everything.
16649
16650         * gutter.h: declare mark_gutters.
16651
16652 2000-02-16  Martin Buchholz <martin@xemacs.org>
16653
16654         * XEmacs 21.2.29 is released.
16655
16656 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16657
16658         * fns.c (size_bit_vector): Fix computation of the size.
16659
16660 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16661
16662         * *.[ch]: Change CONST to const globally.
16663         find -name '*.[ch]' | \
16664         xargs global-replace \
16665         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16666         - Remove vestigial references to CONST_IS_LOSING
16667
16668 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16669
16670         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16671         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16672         events instead of dispatching them directly.
16673         (mswindows_handle_paint): New function to do repainting.
16674         (mswindows_wnd_proc):
16675         (emacs_mswindows_handle_magic_event): Call above function.
16676
16677 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16678
16679         * objects-msw.c (mswindows_create_font_variant): Return the new
16680         font handle.
16681         (initialize_font_instance): Get font metrics from the underlined
16682         variant of the font to cope with the case where the underlined
16683         font has a bigger descent.
16684
16685 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16686
16687         * gui.c (gui_item_accelerator): Return the first underlined
16688         character in item name.
16689
16690 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16691
16692         * lisp.h: Added Qprinter.
16693
16694         * general.c (syms_of_general): Initialized it.
16695
16696         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16697         (get_frame_dc):
16698         (get_frame_compdc): Made inline.
16699
16700         * console.h (struct console_methods): Added eject_page method.
16701
16702         * frame.h: Added FRAME_DISPLAY_P and friends.
16703         Aligned backslahes in many macros in more readable fashion.
16704         Added page_number to struct frame, and an accessor macro
16705         for it.
16706
16707         * defice.h: Added DEVICE_DISPLAY_P and friends.
16708
16709         * device.c (Fdevice_printer_p): Used these.
16710
16711         * frame.c (allocate_frame_core): Initialize page number.
16712         (Fprint_job_page_number):
16713         (Fprint_job_eject_page): Implemented.
16714
16715         * frame-msw.c (msprinter_eject_page): Added method.
16716         (msprinter_start_page): Added.
16717
16718         * window.c (Fwindow_truncated_p): Fixed docstring.
16719         (Fwindow_last_line_visible_height): Implemented.
16720
16721 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16722
16723         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16724
16725 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16726
16727         * syntax.c (scan_words): Always advance at least one character.
16728
16729 2000-02-13  Andy Piper  <andy@xemacs.org>
16730
16731         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16732         to make sure the glyph is in the cachels.
16733
16734         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16735         global image instance flag.
16736         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16737         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16738
16739         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16740         (Fset_image_instance_property): mark layout as changed.
16741         (invalidate_glyph_geometry_maybe): mark layout as changed.
16742         (glyph_width): use new NEEDS_LAYOUT macro.
16743         (glyph_ascent): ditto.
16744         (glyph_descent): ditto.
16745         (glyph_height): ditto.
16746         (image_instance_layout): mark layout as clean after laying out.
16747         (update_subwindow): don't mark layout as clean here.
16748
16749         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16750         should no longer be needed.
16751
16752         * glyphs-x.c (x_update_widget): sanitize asserts.
16753         (x_finalize_image_instance): sanitize assignment to widgets.
16754
16755         * glyphs-widget.c (widget_instantiate): don't need to clear the
16756         layout flag here.
16757
16758 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16759
16760         * sysdep.c (getcwd): Use standard prototype.
16761         * sysdep.h (getcwd): Use standard prototype.
16762
16763         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16764         (sequence, start, end).
16765         Remove redundant type checking.
16766         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16767         view of `caller-protects') to avoid a crash where the real fix was
16768         found elsewhere.
16769
16770 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16771
16772         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16773
16774         * s/sol2.h: Remove feature macro initialization.
16775
16776         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16777         (vector_hash): New.  Code from internal_hash.
16778         * lrecord.h:
16779         Fix up allocation subsystem comments.
16780
16781         * config.h.in: Add __EXTENSIONS__ for Solaris.
16782
16783         * systime.h (EMACS_GETTIMEOFDAY): New.
16784         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16785         Remove Solaris-specific code.
16786         Use void* for the (ignored) second arg for gettimeofday().
16787
16788         * elhash.c (hash_table_hash): Implement it, finally.
16789         * elhash.c:  Use hashcode_t.
16790
16791         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16792         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16793
16794         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16795         * fns.c (size_bit_vector):
16796         * alloc.c (size_vector):
16797         (make_vector_internal):
16798         (make_bit_vector_internal):
16799         (sweep_bit_vectors_1):
16800         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16801
16802 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16803
16804         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16805         Include strings.h to avoid warnings for bzero and strcasecmp.
16806
16807 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16808
16809         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16810         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16811
16812         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16813         sequence.
16814
16815 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16816
16817         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16818         use a value field instead.
16819         (symbol_value_forward_forward): Use value field.
16820         (DEFVAR_SYMVAL_FWD): Use value field.
16821         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16822         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16823         (DEFVAR_CONST_INT): Ditto.
16824         (DEFVAR_BOOL): Ditto.
16825         (DEFVAR_CONST_BOOL): Ditto.
16826         (DEFVAR_INT_MAGIC): Ditto.
16827         (DEFVAR_BOOL_MAGIC): Ditto.
16828
16829         * symbols.c (guts_of_unbound_marker): Use value field.
16830         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16831         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16832
16833         * lisp.h: Declare dumpopaque and noninteractive1.
16834
16835         * alloc.c (dumpopaque): Added.
16836         (pdump_dump_opaquevec): Added.
16837         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16838         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16839         noninteractive.
16840
16841 2000-02-10  Andy Piper  <andy@xemacs.org>
16842
16843         * glyphs.c (image_instance_layout): if the size changes, mark it
16844         as such.
16845
16846         * redisplay-output.c (redisplay_output_layout): Update the
16847         subwindow here.
16848         (redisplay_output_subwindow): ditto.
16849
16850         * glyphs.c (update_subwindow): make sure we reset flags for
16851         layouts as well as everything else.
16852
16853         * glyphs-widget.c (layout_layout): don't need to set the instances
16854         dimensions here.
16855
16856 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16857
16858         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16859         not HAVE_DLOPEN, which is a lower-level thing.
16860
16861         * .cvsignore: Ignore gmon.out
16862
16863 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16864
16865         * .cvsignore: Ignore portable dumper xemacs.dmp file
16866
16867 2000-02-09  Andy Piper  <andy@xemacs.org>
16868
16869         * redisplay-output.c (redisplay_output_layout): be more clever
16870         about when we output based on the changed flags.
16871
16872         * glyphs.h (struct image_instantiator_methods): add update_method.
16873         (struct Lisp_Image_Instance): add changed flags. Declare new
16874         macros for manipulating them.
16875
16876         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16877         (image_instance_parent_glyph): find an image_instance's parent
16878         glyph or image_instance.
16879         (image_instance_layout): mark the size as changed.
16880         (set_image_instance_dirty_p): new function. mark an image
16881         instance, plus all of its parents, as dirty.
16882         (Fset_image_instance_property): use it.
16883         (Fglyph_animated_timeout_handler): use it.
16884         (update_subwindow): call update_widget and device methods for
16885         update_subwindow. Mark all changed flags as clean.
16886         (Fresize_subwindow): mark size as changed.
16887
16888         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16889         failures.
16890         (x_update_subwindow): only resize subwindows here.
16891         (x_update_widget): new function. Update all changed properties of
16892         a widget.
16893         (x_resize_subwindow): deleted.
16894         (x_widget_set_property): deleted.
16895         (x_progress_gauge_set_property): deleted.
16896         (x_progress_gauge_update): new function. Implement recorded
16897         changes.
16898         (x_tab_control_update): ditto.
16899         (x_tab_control_set_property): deleted.
16900         (console_type_create_glyphs_x): declare new functions.
16901         (image_instantiator_format_create_glyphs_x): ditto.
16902
16903         * glyphs-widget.c (widget_set_property): mark text changed.
16904         (update_widget): new function. Update properties of a widget.
16905         (widget_instantiate): for layouts make sure we set their
16906         children's parent correctly.
16907         (tab_control_set_property): new function. Record changes that will
16908         take place under redisplay's control.
16909         (progress_gauge_set_property): ditto.
16910         (image_instantiator_progress_guage): declare new functions.
16911         (image_instantiator_tab_control): ditto.
16912
16913         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16914         now.
16915         (mswindows_update_widget): new function. Update all properties on
16916         a widget that have changed.
16917         (mswindows_button_update): new function. Update a button's set
16918         state.
16919         (mswindows_tab_control_update): new function. Update the items in
16920         a tab.
16921         (mswindows_tab_control_set_property): deleted.
16922         (mswindows_progress_gauge_update): new function. Update the
16923         progress gauge's progress.
16924         (mswindows_widget_set_property): deleted. This is all done
16925         asynchronously now.
16926         (mswindows_progress_gauge_set_property): ditto.
16927         (console_type_create_glyphs_mswindows): declare new methods.
16928         (image_instantiator_format_create_glyphs_mswindows): ditto.
16929
16930         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16931         (msprinter_set_frame_properties): ditto.
16932
16933         * console.h (struct console_methods): Add update_widget_method.
16934
16935 2000-02-09  Andy Piper  <andy@xemacs.org>
16936
16937         * gui-msw.c (Fmswindows_shell_execute): Make
16938         mswindows-shell-execute industrial strength.
16939
16940 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16941
16942         * lrecord.h: Make macro argument `props' match member function `plist'.
16943         * fns.c (Fget):
16944         * fns.c (Fput):
16945         * fns.c (Fremprop):
16946         * fns.c (Fobject_plist):
16947         * alloc.c:
16948         * symbols.c:
16949         Object property list frobbing cleanup.
16950         - Allow any lisp object (compared with `eq'), not just symbols, as
16951           keys in object plists.
16952         - Move symbol plist frobbing into symbols.c, where it belongs.
16953         - Move string plist frobbing into alloc.c, where it belongs.
16954         - Everything's an lrecord now, so no need to test for symbolp, etc.
16955         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16956
16957         * extents.c: Reorder code to remove declarations.
16958
16959         * frame.h (store_in_alist): Remove useless declaration.
16960
16961 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16962
16963         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16964         * config.h.in: Add HAVE_XCONVERTCASE.
16965
16966 2000-02-07  Andy Piper  <andy@xemacs.org>
16967
16968         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16969         it breaks many things.
16970
16971 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16972
16973         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16974         actually can start a common comment type.
16975         * src/syntax.h (SYNTAX_END_P): ditto for end.
16976
16977 2000-02-07  Martin Buchholz <martin@xemacs.org>
16978
16979         * XEmacs 21.2.28 is released.
16980
16981 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16982
16983         * event-Xt.c (x_keysym_to_character): New.
16984         (maybe_define_x_key_as_self_inserting_character): New.
16985         (x_has_keysym): New.
16986         Auto-define all keys on the keyboard as self-insert-key.
16987
16988 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16989
16990         * menubar.c (vars_of_menubar): A small code simplification.
16991
16992         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16993
16994         * ExternalShell.c:
16995         * ExternalClient.c:
16996         * EmacsShell-sub.c:
16997         * EmacsManager.c:
16998         * EmacsFrame.c:
16999         Use consistent style for specifying X resources.
17000
17001         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
17002         This makes (dontusethis-set-symbol-value-handler) actually usable.
17003
17004         * lrecord.h (lrecord_decription_type):
17005         * alloc.c (pdump_register_sub):
17006         (pdump_dump_data):
17007         (pdump_reloc_one):
17008         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
17009         Comply with XEmacs coding style.
17010         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
17011         args, and XD_LISP_OBJECT_ARRAY with 3 args.
17012
17013         * keymap.c (Faccessible_keymaps):
17014         Make (accessible-keymaps map "\C-h") do the Right Thing.
17015         Make (accessible-keymaps map []) do the Right Thing.
17016         Make (accessible-keymaps map "") do the Right Thing.
17017         (check_keymap_definition_loop): New function.
17018         (keymap_store_internal): Keep luser from shooting self in foot,
17019           via (define-key ctl-x-4-map "p" global-map).
17020         Remove fullness slot from struct Lisp_Keymap, since hash tables
17021         are now reliable.
17022         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
17023
17024 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17025
17026         * redisplay.c (init_redisplay): Fix small memory leak.
17027         * elhash.h:
17028         * elhash.c (pdump_reorganize_hash_table):
17029         Rename from reorganize_hash_table. Change prototype.
17030         Reuse the original memory for hentries.  Save 100k.
17031         * alloc.c (PDUMP_READ): new macro.
17032         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
17033         * alloc.c: No need to #ifndef before #undef.
17034
17035         * print.c: Allow debug_print() to print readably by modifying
17036         debug_print_readably.  Use consistent variable names.
17037
17038         * .dbxrc: Try to get things to work even if stopped in a function
17039         without source available by explicitly specifying source files.
17040 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17041
17042         * unexnt.c (_start): Removed bogus code which caused loading heap
17043         from differrent executable file.
17044         Removed bogus assignment to _fmode, which caused inconsistencies.
17045
17046 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17047
17048         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
17049         Have spawnve encapsulation regard DONT_ENCAPSULATE.
17050         Do not preliminary `#define signal sigset'.
17051
17052         * systime.h: Do not prototype environ on windows nt and cygwin,
17053         this conflicts with system header.
17054
17055         * syssignal.h: Use correct define for WINDOWSNT
17056
17057         * sysdep.h: Do not prototype environ on windows nt, this conflicts
17058         with system header.
17059
17060         * sysdep.c (near start of file): Fixed commentary and rearranged
17061         ifdefs in readable order.
17062         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
17063         (start_of_text):
17064         (end_of_text):
17065         (end_of_data): Do not compile in if using PDUMP.
17066
17067         * symsinit.h: Prototyped vars_of_nt().
17068
17069         * ntproc.c (windows9x_p): Added, instead of os_subtype.
17070         (find_child_console): Use it.
17071         (sys_kill): Use it.
17072
17073         * ntheap.h: Do not extern os_subtype.
17074
17075         * ntheap.c (cache_system_info): Do not cache unneeded:
17076         nt_major_version, nt_minor_version and os_subtype.
17077         (recreate_heap): Do not compile in when PDUMPing.
17078
17079         * nt.c (geteuid and friends): Use the new varibale
17080         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
17081         (init_user_info): Removed the above mentioned hackery.
17082         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
17083         stat has been fixed in the C runtime.
17084         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
17085
17086         * file-coding.c (struct file_coding_dump): Do not define
17087         ucs_to_mule_table in the struct if not MULE.
17088         (struct struct lrecord_description fcd_description_1): Do not dump
17089         the above.
17090
17091         * emacs.c (main_1): Call vars_of_nt().
17092         (right before Fdump_emacs_data): Don't need lastfile if using both
17093         portabe dumper and system malloc.
17094
17095         * alloc.c (Fmemory_limit): Conditionalized out.
17096         (pdump): Use OPEN_BINARY for the portable dump file.
17097         (pdump_load): Ditto.
17098
17099 2000-02-02  Mike Alexander  <mta@arbortext.com>
17100
17101         * nt.c (convert_time): Set tm_isdst before calling mktime and
17102         avoid calling it at all if the compiler supports 64 bit integers.
17103         Also initialize utc_base_ft before using it.
17104
17105 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17106
17107         * frame.c (change_frame_size_1): Take f->internal_border_width
17108         into consideration when calculating the width of the frame.
17109
17110 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17111
17112         * window.c (frame_min_height):
17113         (frame_size_valid_p):
17114         (frame_pixsize_valid_p): Added.
17115         (check_frame_size): Generalized.
17116
17117         * window.h: Prototyped the above.
17118
17119         * lisp.h:
17120         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
17121         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
17122         Deleted Vwin32_* and Vbinary_process_* unused variables.
17123
17124         * device-msw.c (msprinter_init_device): Do not get printer font
17125         list; Added DEVMODE functions.
17126
17127         * frame-msw.c: Added lots of printer code.
17128
17129         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
17130         general.c.
17131
17132         * console-msw.h: Added more msprinter device private slots.
17133
17134 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17135
17136         * event-msw.c (key_needs_default_processing_p): Added.
17137         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
17138
17139 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17140
17141         * glyphs.c (image_instance_layout): Mark image instance as clean
17142         after layout.
17143         (glyph_dirty_p): Removed redundant function.
17144         (invalidate_glyph_geometry_maybe): Added.
17145         (update_glyph_cachel_data): Call it.
17146
17147         * glyphs.h: Prototyped it.
17148
17149         * redisplay.c (add_glyph_rune): Call it.
17150         (redisplay_window): Reset glyphs cachels when frame faces have
17151         changed, thus forcing recomputation of built-in border glyphs.
17152
17153 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17154
17155         * Makefile.in.in: Make portable dumper and purify play well together.
17156         Add imperfect, but better than nothing, support for pdump.
17157         Remove xemacs.dmp when temacs is re-generated.
17158         Don't ignore errors when dumping xemacs.
17159
17160         * symbols.c (maybe_call_magic_handler): Remove one magic number.
17161
17162 2000-01-28  Andy Piper  <andy@xemacs.org>
17163
17164         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
17165         (setup_normal_frame): ditto.
17166         (setup_frame_without_minibuffer): ditto.
17167         (setup_minibuffer_frame): ditto.
17168         (delete_frame_internal): ditto.
17169         (Fmake_frame_invisible): ditto.
17170         (Ficonify_frame): ditto.
17171
17172         * window.h: change Fset_window_buffer signature.
17173
17174         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
17175         (Fset_window_buffer): allow recording of buffer if the window is
17176         the selected window.
17177         (window_loop): Use new Fset_window signature.
17178
17179 2000-01-23  Daniel Pittman  <daniel@danann.net>
17180
17181         * config.h.in: Added template for `HAVE_ATHENA_3D'
17182
17183 2000-01-29  Andy Piper  <andy@xemacs.org>
17184
17185         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
17186
17187         * gutter.c (output_gutter): Don't output if the window isn't live.
17188
17189 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17190
17191         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
17192         of 01/12/00: Moved SetFocus back here where it belongs.
17193
17194 2000-01-23  Andy Piper  <andy@xemacs.org>
17195
17196         * s/cygwin32.h: declare printer things.
17197
17198 2000-01-26  Andy Piper  <andy@xemacs.org>
17199
17200         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
17201         Alexander.
17202
17203 2000-01-24  Andy Piper  <andy@xemacs.org>
17204
17205         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
17206         (mswindows_button_instantiate): Make sure glyph is a pixmap.
17207
17208         * glyphs-widget.c (widget_instantiate): Avoid shadows.
17209
17210         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
17211
17212         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
17213
17214         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
17215         (mswindows_output_display_block): Avoid local shadows.
17216
17217         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
17218         (mswindows_enqueue_mouse_button_event): ditto.
17219         (mswindows_handle_gui_wm_command): remove declaration.
17220
17221         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
17222         warnings.
17223
17224         * console-msw.h: Avoid shadows.
17225         (mswindows_get_toolbar_button_text):
17226         (emacs_mswindows_create_stream_pair):
17227         (emacs_mswindows_delete_stream_pair):
17228         (mswindows_handle_toolbar_wm_command): declare.
17229
17230         * device-msw.c (build_syscolor_string): Avoid shadows.
17231
17232 2000-01-23  Andy Piper  <andy@xemacs.org>
17233
17234         * glyphs-widget.c (widget_instantiate): reverse the items for
17235         layouts so that children are in the expected order.
17236
17237 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17238
17239         * ralloc.c: safe_bcopy ==> memmove
17240         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17241         * s/msdos.h: Remove BCOPY macros.
17242         * insdel.c (gap_right): Remove BCOPY conditional code.
17243         * insdel.c (gap_left): Remove BCOPY conditional code.
17244         XEmacs demands a working ANSI C compiler - hence memmove.
17245
17246         * regex.c (regex_compile): Remove accidental use of trigraphs.
17247
17248 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17249
17250         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17251         event timestamp.
17252
17253 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17254
17255         * event-msw.c (mswindows_drain_windows_queue): Added the
17256         parameter.
17257         (mswindows_need_event): Commented the call to
17258         mswindows_drain_windows_queue().
17259         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17260         only.
17261
17262         * console-msw.h: Moved a few function prototypes here from
17263         event-msw.c.
17264
17265         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17266         parameter from unsigned short to unsigned long.
17267         (Fmswindows_shell_execute): Added return value.
17268
17269 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17270
17271         * sysdep.c (init_system_name):
17272           process-unix.c (unix_canonicalized_host_name):
17273         Don't call freeaddrinfo() if getaddrinfo() fails.
17274
17275         * process-unix.c (unix_open_unix_network_stream):
17276         Moved the code to get a port # into address loop.
17277
17278 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17279
17280         * buffer.c (reinit_vars_of_buffer):
17281         The right place to initialize conversion_in_dynarr and
17282         conversion_out_dynarr.
17283
17284         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17285
17286         * process-unix.c (unix_canonicalize_host_name): Muleize.
17287         (unix_open_network_stream): Muleize.
17288
17289         * buffer.h: Fix up prototypes for ralloc.c functions.
17290
17291 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17292         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17293         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17294                 instead of gethostbyname()
17295         * process-unix.c: In unix_canonicalize_host_name() and
17296                 unix_open_network_stream(), add code to use getaddrinfo()
17297                 instead of gethostbyname().
17298
17299 2000-01-27  Daniel Pittman <daniel@danann.net>
17300
17301         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17302         libs when built with flat Athena.
17303
17304 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17305
17306         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17307         Use coding standards for function prototypes.
17308
17309 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17310
17311         * dialog-msw.c (push_lisp_string_as_unicode):
17312         * doc.c (unparesseuxify_doc_string):
17313         * dired.c (Fuser_name_completion_1):
17314         * dired.c (Fuser_name_all_completions):
17315         * dired.c (free_user_cache):
17316         * dired.c (user_name_completion):
17317         * console-x.c (get_display_arg_connection):
17318         * minibuf.c (clear_echo_area_internal):
17319         * minibuf.c (echo_area_append):
17320         * eldap.c (Fldap_open):
17321         * eldap.c (Fldap_search_internal):
17322         * frame-x.c (x_set_frame_text_value):
17323         * frame-x.c (x_set_frame_properties):
17324         * frame-x.c (x_create_widgets):
17325         * redisplay-tty.c (term_get_fkeys_1):
17326         * objects-x.c (x_parse_nearest_color):
17327         * objects-x.c (x_valid_color_name_p):
17328         * objects-x.c (x_initialize_font_instance):
17329         * objects-x.c (x_list_fonts):
17330         * objects-x.c (x_find_charset_font):
17331         * tooltalk.c (Fadd_tooltalk_message_arg):
17332         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17333         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17334         * process-unix.c (unix_create_process):
17335         * ntproc.c (sys_spawnve):
17336         * sound.c (Fplay_sound_file):
17337         * sound.c (Fplay_sound):
17338         * buffer.c (init_initial_directory):
17339         * buffer.c (init_buffer):
17340         * editfns.c (init_editfns):
17341         * editfns.c (Ftemp_directory):
17342         * editfns.c (Fuser_full_name):
17343         * editfns.c (uncache_home_directory):
17344         * editfns.c (get_home_directory):
17345         * editfns.c (Fuser_home_directory):
17346         * editfns.c (Fformat_time_string):
17347         * editfns.c (Fcurrent_time_string):
17348         * gui-x.c (button_item_to_widget_value):
17349         * database.c (Fopen_database):
17350         * event-Xt.c (x_to_emacs_keysym):
17351         * event-Xt.c (x_event_to_emacs_event):
17352         * event-Xt.c (describe_event_window):
17353         * event-msw.c (mswindows_wnd_proc):
17354         * glyphs-eimage.c (jpeg_instantiate):
17355         * glyphs-eimage.c (gif_instantiate):
17356         * glyphs-eimage.c (png_instantiate):
17357         * glyphs-eimage.c (tiff_instantiate):
17358         * glyphs-x.c (xbm_instantiate_1):
17359         * glyphs-x.c (x_xbm_instantiate):
17360         * glyphs-x.c (x_xface_instantiate):
17361         * glyphs-x.c (autodetect_instantiate):
17362         * glyphs-x.c (cursor_font_instantiate):
17363         * glyphs-x.c (x_widget_instantiate):
17364         * glyphs-x.c (x_widget_set_property):
17365         * glyphs-x.c (x_widget_property):
17366         * glyphs-x.c (BUILD_GLYPH_INST):
17367         * print.c (write_string_to_stdio_stream):
17368         * print.c (output_string):
17369         * print.c (Falternate_debugging_output):
17370         * print.c (Fexternal_debugging_output):
17371         * glyphs-msw.c (extract_xpm_color_names):
17372         * glyphs-msw.c (mswindows_xpm_instantiate):
17373         * glyphs-msw.c (bmp_instantiate):
17374         * glyphs-msw.c (resource_name_to_resource):
17375         * glyphs-msw.c (mswindows_resource_instantiate):
17376         * glyphs-msw.c (xbm_instantiate_1):
17377         * glyphs-msw.c (mswindows_xbm_instantiate):
17378         * glyphs-msw.c (mswindows_xface_instantiate):
17379         * glyphs-msw.c (mswindows_widget_instantiate):
17380         * glyphs-msw.c (add_tree_item):
17381         * glyphs-msw.c (add_tab_item):
17382         * glyphs-msw.c (mswindows_combo_box_instantiate):
17383         * glyphs-msw.c (mswindows_widget_property):
17384         * glyphs-msw.c (mswindows_combo_box_property):
17385         * glyphs-msw.c (mswindows_widget_set_property):
17386         * console.c (stuff_buffered_input):
17387         * objects-msw.c (mswindows_initialize_color_instance):
17388         * objects-msw.c (mswindows_valid_color_name_p):
17389         * objects-msw.c (mswindows_list_fonts):
17390         * objects-msw.c (mswindows_font_instance_truename):
17391         * bytecode.c (optimize_compiled_function):
17392         * select-x.c (symbol_to_x_atom):
17393         * select-x.c (x_atom_to_symbol):
17394         * select-x.c (hack_motif_clipboard_selection):
17395         * select-x.c (selection_data_to_lisp_data):
17396         * select-x.c (lisp_data_to_selection_data):
17397         * select-x.c (Fx_get_cutbuffer_internal):
17398         * select-x.c (Fx_store_cutbuffer_internal):
17399         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17400         * buffer.h (TO_INTERNAL_FORMAT): New function.
17401         * emacs.c (make_arg_list_1):
17402         * emacs.c (make_argc_argv):
17403         * emacs.c (main_1):
17404         * emacs.c (Fdump_emacs):
17405         * emacs.c (split_string_by_emchar_1):
17406         * file-coding.h:
17407         * lisp.h:
17408         * lstream.h:
17409         * symsinit.h:
17410         * device-x.c (x_init_device):
17411         * device-x.c (Fx_valid_keysym_name_p):
17412         * device-x.c (Fx_get_font_path):
17413         * device-x.c (Fx_set_font_path):
17414         * glyphs.c (bitmap_to_lisp_data):
17415         * glyphs.c (pixmap_to_lisp_data):
17416         * alloc.c (make_ext_string): Use coding system arguments.  Update
17417         all callers.
17418         * alloc.c (build_string):
17419         * callproc.c (child_setup):
17420         * callproc.c (init_callproc):
17421         * fileio.c (lisp_strerror):
17422         * fileio.c (directory_file_name):
17423         * fileio.c (Fexpand_file_name):
17424         * fileio.c (Ffile_truename):
17425         * fileio.c (Fsysnetunam):
17426         * fileio.c (Fdo_auto_save):
17427         * sysdep.c (sys_readdir):
17428         * tests.c: New file.  Allow adding C tests.
17429         Replace GET_* macros with a more comprehensible and flexible
17430         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17431         Modify all calls.
17432         Any coding system can be used to do format conversion.
17433         Eliminate enum external_data_format.
17434         Eliminate convert_to_external_format.
17435         Eliminate convert_to_internal_format.
17436         Make sure file-name, keyboard, terminal, and ctext are always
17437         defined as coding systems or aliases.  Make
17438         file-name-coding-system, terminal-coding-system, and
17439         keyboard-coding-system magical variables that are equivalent to
17440         defining the corresponding coding system aliases.
17441
17442         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17443         * file-coding.c (Fcoding_system_alias_p): New function.
17444         * file-coding.c (Fcoding_system_aliasee): New function.
17445         * file-coding.c (append_suffix_to_symbol): New function.
17446         * file-coding.c (dangling_coding_system_alias_p): New function.
17447         * file-coding.c (Ffind_coding_system):
17448         * file-coding.c (Fcopy_coding_system):
17449         * file-coding.c (encode_coding_no_conversion):
17450         * file-coding.c (syms_of_file_coding):
17451         * file-coding.c (vars_of_file_coding):
17452         Rewrite coding system alias code.
17453         Allow nested aliases, like symbolic links.
17454         Allow redefinition of coding system aliases.
17455         Prevent existence of dangling coding system aliases.
17456
17457         * dired.c (Fuser_name_completion_1):
17458         * dired.c (Fuser_name_all_completions):
17459         A crash would happen if user did QUIT in the middle of building
17460         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17461
17462         * lisp.h:
17463         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17464
17465         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17466         an unsigned char *.  Update all callers.
17467
17468 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17469
17470         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17471
17472 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17473
17474         * elhash.c (hentry_description): Use more portable definition.
17475         (resize_hash_table): Initialize new hentries using
17476         xnew_array_and_zero, thereby simplifying the code.
17477
17478         * mule-charset.c (make_charset): Make sure entire object is
17479         initialized, to avoid Purify warnings.
17480
17481         * alloc.c (resize_string): Fix unlikely crash with big strings.
17482
17483 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17484
17485         * realpath.c (xrealpath):
17486         Don't call getwd().
17487
17488 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17489
17490         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17491
17492 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17493
17494         * unexelfsgi.c (unexec): Change the way we decide which segment
17495         should be extended.
17496
17497         Assumption that .bss section should be outside the PT_LOADable
17498         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17499         it's present) is inside the 'data' segment. This would fail the
17500         test which was used to find a segment to grow and cover new
17501         heap. Instead of this assumption, I created another one - on IRIX
17502         the segment to grow should start below .bss and it's address
17503         should extent above the end of .bss. Once this segment is
17504         identified, it's grown to accommodate the new heap and new
17505         zero-length .bss section is added at the end of .data2.
17506
17507 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17508
17509         * eval.c (Feval): Wrong number of arguments should use original
17510         function, not the indirect_function version of it.
17511
17512 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17513
17514         * glyphs-x.c (x_button_instantiate): Don't add image if
17515         it is not a pixmap.
17516         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17517         is relative.
17518
17519 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17520
17521         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17522         declaration.
17523         (DEFVAR_INT_MAGIC): Ditto.
17524         (DEFVAR_BOOL_MAGIC): Ditto.
17525         * glyphs.h: Reindent backslash.
17526
17527 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17528
17529         * glyphs-widget.c (layout_query_geometry):
17530         (layout_layout): Use correct types for gheight, gwidth.
17531
17532 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17533
17534         * EmacsManager.c (QueryGeometry): Purified.
17535
17536 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17537
17538         * alloc.c (make_float): Make sure entire object is initialized, to
17539         avoid Purify warnings.
17540         (pdump_register_sub): Remove useless assignment.
17541         (pdump): Use xmalloc, not malloc.
17542         (pdump_load): Use xmalloc, not malloc.
17543
17544 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17545
17546         * callproc.c:
17547         * dired-msw.c:
17548         * fileio.c:
17549         * process-nt.c:
17550         * redisplay-msw.c:
17551         * sysdep.c: Removed redundant #include <windows.h>
17552
17553 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17554
17555         * frame.c (delete_frame_internal): Do not delete device when its
17556         implementation so declares.
17557         (delete_frame_internal): Set device selected frame to nil when
17558         last frame goes away.
17559
17560         * device-msw.c (msprinter_device_system_metrics): Implemented.
17561         (mswindows_device_system_metrics): Added 'device-dpi property.
17562
17563         * device.c: (Fdevice_printer_p): Added.
17564         Added 'offset-workspace device metric.
17565
17566         * console.h (device_metrics): Declared DM_offset_workspace.
17567
17568 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17569
17570         * fileio.c (Ffile_truename): Remove pointless and confusing
17571         initialization of elen.
17572
17573         * glyphs-widget.c: Compiler warning fixes.
17574
17575 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17576
17577         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17578         instead of a Lisp_Object as argument to make it consistent with
17579         the other LIVE_P macros.
17580         (CHECK_LIVE_PROCESS): New macro.
17581
17582         * process.c: Declare Qprocess_live_p.
17583         (Fprocess_live_p): New function.
17584         (create_process): Use PROCESS_LIVE_P.
17585         (read_process_output): Ditto.
17586         (set_process_filter): Ditto.
17587         (Fdelete_process): Ditto.
17588         (kill_buffer_processes): Ditto
17589         (process_send_signal): Use CHECK_LIVE_PROCESS.
17590         (Fprocess_input_coding_system): Check whether process is still
17591         alive (fix PR#1061).
17592         (Fprocess_output_coding_system): Ditto.
17593         (Fprocess_coding_system): Ditto.
17594         (Fset_process_input_coding_system): Ditto.
17595         (Fset_process_output_coding_system): Ditto.
17596
17597 2000-01-23  Andy Piper  <andy@xemacs.org>
17598
17599         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17600         layout and widget.
17601
17602         * glyphs.c (mark_image_instance): take into account changed
17603         image_instance format.
17604         (image_instance_equal): ditto.
17605         (image_instance_hash): ditto.
17606
17607         * glyphs-widget.c (widget_instantiate): Incorporate layout
17608         instantiation here. Delay layout of the layout until later.
17609         (layout_instantiate): deleted.
17610         (layout_query_geometry): new function. get the geometry of a
17611         layout.
17612         (layout_layout): layout a layout dynamically.
17613         (image_instantiator_widget): New function - splitting up
17614         image_instantiator_format_create_glyphs_widget for netwinder
17615         compilation.
17616         (image_instantiator_buttons):
17617         (image_instantiator_edit_fields):
17618         (image_instantiator_combo_box):
17619         (image_instantiator_scrollbar):
17620         (image_instantiator_progress_guage):
17621         (image_instantiator_tree_view):
17622         (image_instantiator_tab_control):
17623         (image_instantiator_labels):
17624         (image_instantiator_layout): ditto.
17625         (image_instantiator_format_create_glyphs_widget): Call preceding
17626         functions.
17627
17628 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17629
17630         * process.c (Fset_process_coding_system):
17631         * device-x.c (Fx_keysym_hash_table):
17632         Docstring fixes.
17633
17634         * lstream.c (Lstream_write): Return documented value, not 0.
17635
17636         * fileio.c (directory_file_name):
17637         (Fsubstitute_in_file_name):
17638         (Fsubstitute_insert_file_contents_internal):
17639         (Fwrite_region_internal):
17640         * emacs.c:
17641         * sysdep.c:
17642         * getloadavg.c:
17643         * systty.h:
17644         Remove vestigial APOLLO-conditional code.
17645
17646 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17647
17648         * getpagesize.h: Add guard macros.
17649         * libsst.h: Add guard macros.
17650         * libst.h: Add guard macros.
17651         * line-number.h: Add guard macros.
17652         * ndir.h: Add guard macros.
17653         * sysfloat.h: Add guard macros.
17654         * sysfile.h: Add guard macros.
17655         * sysproc.h: Add guard macros.
17656         * syswait.h: Add guard macros.
17657         * xintrinsic.h: Add guard macros.
17658         * xintrinsicp.h: Add guard macros.
17659         * xmmanager.h: Add guard macros.
17660         * xmmanagerp.h: Add guard macros.
17661         * xmprimitive.h: Add guard macros.
17662         * xmu.h: Add guard macros.
17663         * gpmevent.h: Add copyright statement. Add guard macros.
17664         * miscplay.h: Add guard macros.
17665         * *.h: Use consistent C-standards-approved guard macro names.
17666
17667         * opaque.c (make_opaque): Switch parameter order.
17668         * opaque.h (make_opaque): Switch parameter order.
17669         Update all callers.
17670         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17671
17672         * config.h.in (type_checking_assert): Added.
17673         (bufpos_checking_assert): Added.
17674
17675 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17676
17677         * alloc.c: Harmless pdump changes.
17678         - Use countof().
17679         - spell alignment correctly.
17680         * sysdep.c: Use countof()
17681
17682 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17683
17684         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17685         initially_selected_for_input() console method, default to 0.
17686         (semi_canonicalize_console_connection): Try to delegate to
17687         canonicalize_console_connection if no such console method.
17688         (canonicalize_console_connection): Vice versa.
17689         (print_console): Do not print nil connection.
17690
17691         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17692         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17693         (XDEVIMPF_FRAMELESS_OK): Added.
17694         (CONSOLE_INHERITS_METHOD): Added.
17695
17696         * console-msw.c (mswindows_canonicalize_console_connection):
17697         Added.
17698         (mswindows_canonicalize_device_connection): Added.
17699
17700         * console-msw.h (struct msprinter_device): Added this struct and
17701         accessor macros.
17702         (mswindows_device): Made fontlist a lisp object.
17703
17704         * device.c (semi_canonicalize_device_connection):  Try to delegate
17705         to canonicalize_device_connection if no such console method.
17706         (canonicalize_device_connection): Vice versa.
17707         (print_device): Do not print nil connection.
17708
17709         * device-msw.c (mswindows_init_device): Call InitCommonControls
17710         when have widgets.
17711         (mswindows_delete_device): Removed fontlist deallocation.
17712         (mswindows_mark_device): Added.
17713
17714         * events.c (event_equal): Added abort() at unreached code.
17715         (event_hash): Ditto.
17716
17717         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17718         fallback tags of Windows devices.
17719
17720         * general.c (syms_of_general): Initialized Qmsprinter.
17721
17722         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17723         of fallback tags of Windows devices.
17724
17725         * lisp.h: Declared Qmsprinter.
17726
17727         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17728         of strings.
17729         (mswindows_list_fonts): Ditto.
17730         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17731         that it can be used by both mswindows and msprinter devices.
17732         (initialize_font_instance): Added.
17733         (mswindows_initialize_font_instance): Use it.
17734         (msprinter_initialize_font_instance): Added.
17735
17736         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17737         and implementation flags check.
17738         (redisplay_without_hooks): Changed the call to the above.
17739         (Fredraw_device): Ditto.
17740         (Fredisplay_device): Ditto.
17741
17742         * redisplay-msw.c (get_frame_dc): Implemented.
17743         (get_frame_compdc): Implemented.
17744         (many functions): Use the two functions above to get device
17745         contexts, ether for a window or a printer.
17746
17747 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17748
17749         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17750         initialization here.
17751         (init_symbols_once_early): Call it.
17752         * emacs.c (main_1): Call it.
17753         * symsinit.h: Declare it.
17754
17755 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17756
17757         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17758         Lisp_Object.
17759         (pdump_backtrace): Ditto.
17760         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17761         (pdump_get_entry): Abort if trying to register a null pointer.
17762         (pdump_dump_data): Cleanup types when relocating.
17763         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17764         (pdump_dump_rtables): Remove bad casts.
17765         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17766         Lisp_Object instead of a EMACS_INT for the hashtable
17767         reorganization.
17768
17769 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17770
17771         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17772
17773         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17774
17775         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17776
17777         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17778
17779 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17780
17781         * faces.h (FACE_STRIKETHRU_P): Added.
17782
17783         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17784         of font variants.
17785
17786         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17787         (mswindows_set_dc_font): New function, aware of font variants,
17788         separated from mswindows_update_dc.
17789
17790         * objects-msw.h (struct mswindows_font_instance_data): Added
17791         definition.
17792
17793         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17794         cached fonts and the data structure.
17795         (mswindows_initialize_font_instance): Added creation of font data
17796         structure.
17797         (mswindows_print_font_instance): Print at least something.
17798         (mswindows_create_font_variant): Implemented.
17799         (mswindows_get_hfont): Implemented.
17800
17801 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17802
17803         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17804         prototyping problem with msvc.
17805
17806         * emacs.c (main_1): added syms_of_gui_mswindows() call
17807
17808         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17809         syms_of_gui_mswindows() function
17810
17811         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17812
17813 2000-01-18  Martin Buchholz <martin@xemacs.org>
17814
17815         * XEmacs 21.2.27 is released.
17816
17817 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17818
17819         * glyphs-eimage.c (struct tiff_error_struct):
17820         (tiff_error_func):
17821         (tiff_warning_func):
17822         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17823
17824         * unexmips.c:
17825         * unexhp9k3.c:
17826         * unexfreebsd.c:
17827         * unexec.c: Remove vestigial Lucid C code.
17828         * unexalpha.c:
17829         * unexaix.c:
17830         * termcap.c:
17831         * libsst.c: Ansify.
17832         Remove declarations of errno and strerror().
17833
17834         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17835
17836         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17837
17838 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17839
17840         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17841         Optimize.
17842
17843 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17844
17845         * md5.c:
17846         * file-coding.c:
17847         * file-coding.h:
17848         Change enum eol_type to eol_type_t.
17849
17850 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17851
17852         * gui.c (get_gui_callback): Check cons before accessing car.
17853
17854 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17855
17856         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17857         (XSETSPECIFIER_TYPE): Ditto.
17858
17859 2000-01-17  Didier Verna  <didier@xemacs.org>
17860
17861         * redisplay.c (generate_fstring_runes): compute string size in
17862         characters, not bytes.
17863
17864 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17865
17866         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17867
17868 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17869
17870         * print.c (print_error_message): Call print_prepare().
17871
17872 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17873
17874         * .dbxrc: Renamed from dbxrc.
17875
17876         * events.c (event_to_character):
17877         Use `assert (foo)' instead of `if (!foo) abort()'
17878
17879         * .gdbinit (xtype): Add documentation.
17880         * .gdbinit (check-temacs): New function.
17881         * .gdbinit (check-xemacs): New function.
17882         * dbxrc (check-xemacs): New function.
17883         * dbxrc (check-xemacs): New function.
17884
17885 2000-01-14  Andy Piper  <andy@xemacs.org>
17886
17887         * glyphs-widget.c (widget_query_geometry): Make sure that we
17888         calculate default dimensions correctly.
17889
17890 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17891
17892         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17893
17894         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17895         pdump_wire'd variable.
17896
17897         * emacs.c: (main_1): Conditionalized calls to
17898         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17899
17900 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17901
17902         * window.c (Fset_window_configuration):
17903         * sysdep.c (_start):
17904         * input-method-motif.c (res):
17905         * event-Xt.c (Xt_process_to_emacs_event):
17906         Simple compiler warning fixes.
17907
17908         * bytecode.c (funcall_compiled_function): Use the original
17909         function symbol on the backtrace list in preference to the
17910         compiled_function object in error messages.
17911
17912 2000-01-13  Andy Piper  <andy@xemacs.org>
17913
17914         * glyphs-x.c (update_widget_face): Make sure we update the widget
17915         background as well as foreground.
17916
17917 2000-01-13  Andy Piper  <andy@xemacs.org>
17918
17919         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17920         fields to subwindow.
17921         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17922         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17923         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17924         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17925
17926         * glyphs-widget.c (check_valid_tab_orientation): new function.
17927         (initialize_widget_image_instance): zero orientation and
17928         justification.
17929         (widget_instantiate): pick up orientation.
17930         (tab_control_query_geometry): return appropriate values for
17931         vertical tabs.
17932
17933         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17934         appropriate creation flags for left, right and bottom tabs.
17935
17936         * s/cygwin32.h: add tab definitions.
17937
17938 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17939
17940         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17941         frame upon hiding a subwindow.
17942         (mswindows_button_instantiate): Changed the push button style to
17943         BS_PUSHBUTTON.
17944         (mswindows_button_instantiate): Removed button BS_NOTIFY
17945         style.
17946         (mswindows_button_instantiate): Removed redundant check for
17947         a disabled gui item.
17948         (mswindows_button_instantiate): Made use of WS_TABSTOP
17949         consistent: "operable" controls (edit, button, tree, scroll) have
17950         this style, "display-only" ones (static, progress gauge) do
17951         not. This style is currently ignored by XEmacs though. Also,
17952         removed the WS_EX_CONTROLPARENT style - it is not for children,
17953         it is for their parents!
17954         (mswindows_edit_field_instantiate): Ditto.
17955         (mswindows_progress_gauge_instantiate): Ditto.
17956         (mswindows_tree_view_instantiate): Ditto.
17957         (mswindows_tab_control_instantiate): Ditto.
17958         (mswindows_scrollbar_instantiate): Ditto.
17959         (mswindows_combo_box_instantiate): Ditto.
17960         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17961         style to the "clip" window.
17962         (mswindows_button_instantiate): Removed compilation warning by
17963         equally typing terms of the ?: operator.
17964
17965 2000-01-12  Didier Verna  <didier@xemacs.org>
17966
17967         * redisplay.c (generate_fstring_runes): new parameter holding the
17968         last modeline-format extent.
17969         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17970         extent, fill the glyph block with it.
17971         (generate_fstring_runes): handle these parameters.
17972         (generate_formatted_string_db): ditto.
17973
17974         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17975         glyphs'extents in the modeline.
17976
17977 1999-01-11  Mike Woolley  <mike@bulsara.com>
17978
17979         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17980         256Mb, as a workaround for the non-starting problem many people
17981         have experienced.
17982
17983 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17984
17985         * console-tty.c (Fset_console_tty_output_coding_system):
17986         Force redrawing tty frame.
17987
17988 2000-01-10  Didier Verna  <didier@xemacs.org>
17989
17990         * redisplay.c (generate_fstring_runes): fix size computation bug.
17991
17992 2000-01-09  William M. Perry <wmperry@aventail.com>
17993
17994         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17995
17996 2000-01-09  Andy Piper  <andy@xemacs.org>
17997
17998         * glyphs-msw.c: index -> i to avoid shadows.
17999         (xbm_create_bitmap_from_data): make static.
18000         (check_valid_string_or_int): deleted.
18001         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
18002
18003         * glyphs-x.c (x_update_subwindow): remove unused args.
18004
18005         * glyphs.c (glyph_image_instance): return the thing. Don't set the
18006         back pointer - this is done in allocate_image_instance.
18007         (query_string_font): return Qnil to make the compiler happy.
18008         (unmap_subwindow): set to ~0 to make the compiler happy.
18009         (glyph_query_geometry): comment out until used.
18010         (glyph_layout): ditto.
18011
18012 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
18013
18014         * insdel.c (signal_after_change): Remove extraneous unbind_to().