update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2008-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule-charset.c: Move definition of `=jis-x0208@1978' to
4         lisp/mule/mule-conf.el.
5
6 2008-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * mule-charset.c (Qpartial): New variable in XEmacs CHISE.
9         (make_charset): Add new argument `partial'.
10         (Fmake_charset): Add new property 'partial in XEmacs CHISE.
11         (Fmake_reverse_direction_charset): Modify for `make_charset'.
12         (syms_of_mule_charset): Add new builtin symbol `partial' in XEmacs
13         CHISE.
14         (complex_vars_of_mule_charset): Modify for `make_charset'; specify
15         `=jis-x0208' as a partial coded-charset.
16
17 2008-08-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
18
19         * text-coding.c (decode_add_er_char): Fix problem when a character
20         represented by an entity-reference is not defined.
21
22 2008-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
23
24         * char-ucs.h, chartab.c, fns.c, mule-charset.c: Rename Qmap_* to
25         Qrep_*.
26
27 2007-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
28
29         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.24
30         (Kasagi).
31
32 2006-06-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
33
34         * concord.c (Fconcord_object_put): Add reversed links when FEATURE
35         is a relation feature.
36
37 2006-06-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
38
39         * chartab.c (syms_of_chartab): Define
40         `{<-|->}{subsumptive|denotational}' when HAVE_CONCORD is defined.
41
42         * chartab.h (Q_denotational): New extern when UTF2000 or
43         HAVE_CONCORD is defined.
44         (Q_denotational_from): Likewise.
45         (Q_subsumptive): Likewise.
46         (Q_subsumptive_from): Likewise.
47
48 2006-06-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
49
50         * concord.c (concord_object_put): New function.
51         (Fconcord_object_put): Use `concord_object_put'.
52
53 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
54
55         * concord.c (Fconcord_define_object): New function.
56         (syms_of_concord): Add new builtin function
57         `concord-define-object'.
58
59 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
60
61         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
62         (Kamo).
63
64 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
65
66         * concord.c: Add EXFUN for Fconcord_object_get.
67         (Vconcord_genre_object_hash_table): New variable.
68         (concord_genre_cache_get_object): New function.
69         (concord_genre_cache_put_object): New function.
70         (Fconcord_make_object): Use object cache; put object-ID into `=id'
71         feature.
72         (Fconcord_object_put): Call `concord_index_sync' after
73         `concord_index_strid_put_obj'.
74         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
75
76 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
77
78         * concord.c (Fconcord_decode_object): Do GCPRO for
79         Fconcord_make_object.
80         (func_for_each_object): Likewise; do GCPRO for
81         for_each_object_closure->function.
82         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
83         for_each_object_closure->function, for_each_object_closure->genre,
84         for_each_object_closure->ds and for_each_object_closure->ret.
85         (concord_object_validate): Do GCPRO for Fconcord_make_object.
86
87 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
88
89         * concord.c: Add EXFUNs for Fconcord_decode_object and
90         Fconcord_object_put.
91         (Fconcord_make_object): Change order of arguments.
92         (Fconcord_decode_object): Modify for Fconcord_make_object.
93         (func_for_each_object): Likewise.
94         (concord_object_validate): Likewise.
95         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
96
97 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
98
99         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
100
101 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
102
103         * concord.c (Fconcord_decode_object): Try to use readable print
104         form as a key of Concord-index.
105         (Fconcord_object_get): Try to use readable print form as an ID of
106         Concord-object.
107         (Fconcord_object_put): Try to use readable print form as an ID of
108         Concord-object and a feature value.
109         (Fconcord_object_spec): Try to use readable print form as an ID of
110         Concord-object.
111
112 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
113
114         * concord.c (print_concord_object): Support readable form.
115
116 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
117
118         * emacs.c (main_1): Call `structure_type_create_concord' when
119         HAVE_CONCORD is defined.
120
121         * symsinit.h (structure_type_create_concord): New prototype.
122
123         * concord.c (Qconcord_object): New variable.
124         (Qgenre): Likewise.
125         (Q_id): Likewise.
126         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
127         for directory.
128         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
129         char*> for genre-name.
130         (Fconcord_feature_list): Likewise.
131         (Fconcord_make_object): Likewise.
132         (Fconcord_decode_object): Likewise; use <char*> instead of
133         <unsigned char*> for feature_name and strid.
134         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
135         c_obj and feature_name.
136         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
137         char*> for c_value.
138         (struct closure_for_object_spec): Use <char*> instead of <unsigned
139         char*> for member `object_id'.
140         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
141         char*> for feature-name.
142         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
143         for c_obj.
144         (func_for_each_object): Cast to avoid warnings.
145         (Fconcord_foreach_object_in_feature): Use <char*> instead of
146         <unsigned char*> for genre_name and feature_name.
147         (concord_name_validate): New function.
148         (concord_object_validate): Likewise.
149         (concord_object_instantiate): Likewise.
150         (syms_of_concord): Add new builtin symbols `concord-object',
151         `genre' and `=id'.
152         (structure_type_create_concord): New function.
153
154 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
155
156         * concord.c (Vconcord_ds_hash_table): New variable.
157         (Vconcord_genre_hash_table): New variable.
158         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
159         (Fconcord_ds_directory): New function.
160         (Fconcord_assign_genre): New function.
161         (Fconcord_genre_directory): New function.
162         (Fconcord_genre_ds): New function.
163         (Fconcord_feature_list): Allow to omit `ds'.
164         (Fconcord_make_object): Likewise.
165         (Fconcord_decode_object): Likewise.
166         (Fconcord_foreach_object_in_feature): Likewise.
167         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
168         Fconcord_assign_genre, Fconcord_genre_directory and
169         Fconcord_genre_ds.
170         (vars_of_concord): Setup Vconcord_ds_hash_table and
171         Vconcord_genre_hash_table.
172
173 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
174
175         * concord.c (struct closure_for_each_object): Add new member
176         `ret'.
177         (func_for_each_object): Setup the return value to
178         `for_each_object_closure->ret'.
179         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
180         returns the value instead of Qt.
181
182 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
183
184         * concord.c: New file.
185
186 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
187
188         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
189         `lrecord_type_concord_object'.
190
191 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
192
193         * symsinit.h (syms_of_concord): New prototype.
194         (vars_of_concord): New prototype.
195
196         * emacs.c (main_1): Setup symbols and variable about concord if
197         HAVE_CONCORD is defined.
198
199         * config.h.in (HAVE_CONCORD): New macro.
200
201 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
202
203         * chartab.c (Fput_char_attribute): For each character relation
204         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
205
206 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
207
208         * chartab.c (Fput_char_attribute): Use
209         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
210         calling `put_char_composition'.
211
212 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
213
214         * chartab.c (Q_halfwidth_of): New variable.
215         (put_char_composition): Return `<-halfwidth' instead of
216         `=decomposition' for compatibility mapping to single character
217         tagged `narrow'.
218         (Fput_char_attribute): Convert char-specs in value of
219         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
220         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
221         for `<-halfwidth'.
222         (syms_of_chartab): Add new symbol `<-halfwidth'.
223
224 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
225
226         * chartab.c (put_char_composition): Return
227         `<-formed@{isolated|initial|medial|final}' for compatibility
228         mapping to single character tagged
229         `{isolated|initial|medial|final}'.
230
231 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
232
233         * chartab.c (Q_compat_of): Deleted.
234         (put_char_composition): Return `<-FOO' for compatibility mapping
235         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
236         of `symbol_name (XSYMBOL(...))'.
237         (Fput_char_attribute): Convert char-specs in value of
238         `{<-|->}font[^*]*' to characters and put reverse links.
239         (Fsave_char_attribute_table): Don't refer Q_compat_of.
240         (syms_of_chartab): Delete builtin symbol `<-compat'.
241
242 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
243
244         * chartab.c (Q_circled_of): New variable.
245         (put_char_composition): Return `<-circled' instead of
246         `=decomposition' for compatibility mapping to single character
247         tagged `circle'.
248         (Fput_char_attribute): Convert char-specs in value of
249         `{<-|->}circled[^*]*' to characters and put reverse links.
250         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
251         for `<-circled'.
252         (syms_of_chartab): Add new symbol `<-circled'.
253
254 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
255
256         * chartab.c (Qto_decomposition_at_circled): New variable.
257         (put_char_composition): Return `=>decomposition@circled' instead
258         of `=decomposition' for compatibility decomposition mapping tagged
259         `circle'.
260         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
261
262 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
263
264         * chartab.c (Q_subscript_of): New variable.
265         (put_char_composition): Return `<-subscript' instead of
266         `=decomposition' for compatibility mapping to single character
267         tagged `sub'.
268         (Fput_char_attribute): Convert char-specs in value of
269         `{<-|->}subscript[^*]*' to characters and put reverse links.
270         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
271         for `<-subscript'.
272         (syms_of_chartab): Add new symbol `<-subscript'.
273
274 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
275
276         * chartab.c (Q_superscript_of): New variable.
277         (put_char_composition): Return `<-superscript' instead of
278         `=decomposition' for compatibility mapping to single character
279         tagged `super'.
280         (Fput_char_attribute): Convert char-specs in value of
281         `{<-|->}superscript[^*]*' to characters and put reverse links.
282         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
283         for `<-superscript'.
284         (syms_of_chartab): Add new symbol `<-superscript'.
285
286 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
287
288         * chartab.c (Qto_decomposition_at_compat): Deleted.
289         (Qto_decomposition_at_superscript): New variable.
290         (put_char_composition): Use `=>decomposition@superscript' instead
291         of `=decomposition' for compatibility decomposition mapping tagged
292         `super'.
293         (Fput_char_attribute): Fix condition about `put_char_composition'.
294         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
295         add news symbol `=>decomposition@superscript'.
296
297 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
298
299         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
300         for compatibility decomposition mapping tagged FOO.
301         (Fput_char_attribute): Modify for `put_char_composition'.
302
303 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
304
305         * chartab.c (Qto_decomposition_at_compat): New variable.
306         (Q_compat_of): Renamed from `Q_compatibility_of'.
307         (put_char_composition): Rename `Q_compatibility_of' to
308         `Q_compat_of'; return `=>decomposition@compat' for compatibility
309         decomposition mapping.
310         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
311         `Q_compat_of'.
312         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
313         `<-compatibility' to `<-compat'.
314
315 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
316
317         * chartab.c (Q_compatibility_of): New variable.
318         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
319         object is proved to be a cons cell; return `<-compatibility' if
320         the first element of argument `value' is `compat'.
321         (Fput_char_attribute): Eliminate the first value if
322         `put_char_composition' returns `<-compatibility'.
323         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
324         for `<-compatibility'.
325         (syms_of_chartab): Add new symbol `<-compatibility'.
326
327 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
328
329         * chartab.c (Q_canonical): New variable.
330         (put_char_composition): Return a feature name: return
331         `->canonical' if argument `value' specifies single character.
332         (Fput_char_attribute): Use `put_char_composition' to determine
333         feature name for `=decomposition' or `->denotational'.
334         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
335         for `->canonical'.
336         (syms_of_chartab): Add new symbol `->canonical'.
337
338 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
339
340         * chartab.c (Qmap_decomposition): New variable.
341         (Fput_char_attribute): Convert `->decomposition' to
342         `=decomposition'.
343         (syms_of_chartab): Add new symbol `=decomposition'.
344
345 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
346
347         * chartab.c (Fget_range_char_table): Fix serious problem when
348         `range' is nil.
349
350 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
351
352         * chartab.c (char_table_get_db): Use `read_from_c_string'.
353
354 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
355
356         * lread.c (read_from_c_string): New function.
357
358         * lisp.h (read_from_c_string): New prototype.
359
360 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
361
362         * chartab.c (Fput_char_attribute): Convert char-specs in value of
363         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
364         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
365         for `{<-|->}Oracle-Bones[^*]*'.
366
367 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
368
369         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
370         (Kizu).
371
372 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
373
374         * text-coding.c (Qccs_priority_list): New variable in XEmacs
375         CHISE.
376         (Fmake_coding_system): Support new property `ccs-priority-list' in
377         XEmacs CHISE.
378         (Fcoding_system_property): Likewise.
379         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
380         Vdefault_coded_charset_priority_list in XEmacs CHISE.
381         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
382         XEmacs CHISE.
383         (complex_vars_of_file_coding): Define new coding-system-property
384         `ccs-priority-list' in XEmacs CHISE.
385
386         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
387
388 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
389
390         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
391         changed to normal function.
392         (encode_char_2): Likewise.
393
394         * mule-charset.c (decoding_table_put_char): Copied from
395         char-ucs.h; changed to normal function.
396         (encode_char_2): Likewise.
397
398 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
399
400         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
401         New extern.
402         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
403         (encode_char_2_search_children): New inline function.
404         (encode_char_2): Refer
405         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
406         and use `encode_char_2_search_children'.
407
408 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
409
410         * mule-charset.c
411         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
412         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
413         (vars_of_mule_charset): Add new variable
414         `display-coded-charset-priority-use-inheritance' and
415         `display-coded-charset-priority-use-hierarchy-order'.
416
417 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
418
419         * char-ucs.h (Q_subsumptive): New extern.
420         (Q_denotational): Likewise.
421         (encode_char_2): Search children specified by `->subsumptive' and
422         `->denotational'.
423
424 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
425
426         * mule-charset.c (complex_vars_of_mule_charset): Modify the
427         X-registry of `ucs-bmp'.
428
429 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
430
431         * chartab.c (char-variants): Refer `->subsumptive',
432         `->denotational' and `->identical' as same as `->ucs-unified'.
433
434 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
435
436         * chartab.c (Fput_char_attribute): Convert char-specs in value of
437         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
438         links.
439
440 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
441
442         * text-coding.c: Add EXFUN for `Fregexp_quote'.
443         (decode_add_er_char): Fix problem about infinite loop when a CCS
444         specified in `coded-charset-entity-reference-alist' is not
445         existed.
446
447 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
448
449         * mule-charset.c (syms_of_mule_charset): Rename
450         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
451
452 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
453
454         * fns.c (simplify_char_spec): Don't allocate new character-object
455         if specified char_spec does not have any CCS-features.
456
457         * chartab.h: Add EXFUN for Fdefine_char.
458
459         * chartab.c: Delete EXFUN for Fdefine_char.
460
461 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
462
463         * fns.c (simplify_char_spec): Use Fdefine_char instead of
464         Ffind_char for char-spec.
465
466 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
467
468         * lisp-disunion.h (XCHARVAL): Fix condition about
469         SIZEOF_EMACS_INT.
470
471 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
472
473         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
474         <int> for `code'.
475         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
476         point; use <Emchar> instead of <int> for character-id.
477
478 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
479
480         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
481         (make_char): Likewise.
482         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
483         environment.
484         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
485         instead of <int> as the type of return value; use <Lisp_Object>
486         instead of <Emchar> as the type of argument.
487         (XCHARVAL[macro version]): Cast the result into <Emchar>.
488
489         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
490         syntaxcode> instead of <int>.
491
492 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
493
494         * chartab.c (put_char_composition): Use DECODE_CHAR to get
495         character corresponding with UCS code point.
496         (Fput_char_attribute): Likewise.
497
498         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
499         character in the UCS decoding-table if the char-id is not equal to
500         the UCS code point.
501
502 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
503
504         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
505         for aliases; write `description'; write
506         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
507         not 0.
508
509 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
510
511         * chartab.c (Fsave_char_attribute_table): Don't use
512         `save_charset_properties'.
513
514         * mule-charset.c (Fsave_charset_properties): Renamed from
515         `save_charset_properties' and changed to Lisp function again;
516         write property `type' as `CCS'; write properties `final-byte' and
517         `mother' if they exists.
518         (syms_of_mule_charset): Revive builtin function
519         `save-charset-properties' when HAVE_LIBCHISE is defined.
520
521 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
522
523         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
524         instead of Vexec_directory.
525         (char_attribute_system_db_file): Likewise.
526
527 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
528
529         * chartab.c (Fsave_char_attribute_table): Use
530         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
531         defined.
532
533         * mule-charset.c (save_charset_properties): Renamed from
534         `Fsave_charset_properties'; changed to non-Lisp function.
535         (syms_of_mule_charset): Abolish builtin function
536         `save-charset-properties'.
537
538 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
539
540         * mule-charset.c (Fsave_charset_properties): New function when
541         HAVE_LIBCHISE is defined.
542         (syms_of_mule_charset): Add new builtin function
543         `save-charset-properties' when HAVE_LIBCHISE is defined.
544
545 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
546
547         * chartab.c (Fput_char_attribute): Convert char-specs in value of
548         `{<-|->}ancient[^*]*' to characters and put reverse links.
549         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
550         for `{<-|->}ancient[^*]*'.
551
552 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
553
554         * chartab.c (Fput_char_attribute): Convert char-specs in value of
555         `{<-|->}original[^*]*' to characters and put reverse links.
556         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
557         for `{<-|->}original[^*]*'.
558
559 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
560
561         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
562
563 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
564
565         * mule-charset.c (Qsystem_char_id): New variable.
566
567         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
568         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
569
570 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
571
572         * chartab.c (Fput_char_attribute): When processing a reference of
573         a character, put into the end of the reversed reference of each
574         target character.
575
576 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
577
578         * chartab.c (Q_same): Deleted.
579         (Q_same_of): Deleted.
580         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
581         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
582         for `{<-|->}same'.
583         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
584
585 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
586
587         * chartab.c (Q_vulgar): Deleted.
588         (Q_vulgar_of): Deleted.
589         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
590         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
591         for `{<-|->}vulgar'.
592         (syms_of_chartab): Don't define `{<-|->}vulgar'.
593
594 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
595
596         * chartab.c (Fput_char_attribute): Convert char-specs in value of
597         `{<-|->}wrong[^*]*' to characters and put reverse links.
598         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
599         for `{<-|->}wrong[^*]*'.
600
601 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
602
603         * chartab.c (Q_vulgar): New variable.
604         (Q_vulgar_of): New variable.
605         (Fput_char_attribute): Convert char-specs in value of
606         `{->|<-}vulgar' to characters and put reverse links.
607         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
608         for `{->|<-}vulgar'.
609         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
610
611 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
612
613         * text-coding.c (decode_add_er_char): Must to quote prefix string
614         as regexp.
615
616 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
617
618         * mule-charset.c (put_char_ccs_code_point): Store characters of
619         =ucs whose code_points >= 0xF0000.
620
621 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
622
623         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
624         CHISE.
625         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
626         CHISE.
627         (complex_vars_of_mule_charset): Add new coded-charset
628         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
629         builtin characters over 0xEFFFF.
630
631         * chartab.c (syms_of_chartab): Don't define symbol
632         `system-char-id' in every case.
633
634         * char-ucs.h (Qsystem_char_id): New extern variable.
635         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
636
637 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
638
639         * text-coding.c (char_encode_utf8): Try to use entity-references
640         for U-000F0000 ...  U-0010FFFF.
641
642 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
643
644         * text-coding.c (ER_BUF_SIZE): New macro.
645         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
646         `er_buf'.
647         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
648         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
649
650 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
651
652         * chartab.c (find_char_feature_in_family): New function.
653         (Fchar_feature): Use `find_char_feature_in_family' with
654         `->identical', `<-subsumptive' and `<-denotational'.
655
656 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
657
658         * text-coding.c (char_encode_as_entity_reference): Allow prefix
659         within 8 characters; fix infinite loop.
660
661 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
662
663         * chartab.c (Q_same): New variable.
664         (Q_same_of): New variable.
665         (Fput_char_attribute): Convert char-specs in value of
666         `{->|<-}same' to characters and put reverse links.
667         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
668         for `{->|<-}same'.
669         (syms_of_chartab): Add new symbols `{->|<-}same'.
670
671 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
672
673         * chartab.c (Q_component): New variable.
674         (Q_component_of): Likewise.
675         (Fput_char_attribute): Convert char-specs in value of
676         `{->|<-}ideographic-component-forms' to characters and put reverse
677         links.
678         (syms_of_chartab): Add new symbols
679         `{->|<-}ideographic-component-forms'.
680
681 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
682
683         * chartab.c (Q_identical): New variable.
684         (Q_identical_from): New variable.
685         (Fchar_feature): Regard `->identical' as a feature to find
686         ancestors.
687         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
688         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
689         for `{->|<-}identical'.
690         (syms_of_chartab): Add new symbols `{->|<-}identical'.
691
692 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
693
694         * char-ucs.h (encode_char_2): New inline function.
695         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
696
697 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
698
699         * chartab.c (Fput_char_attribute): Convert char-specs to
700         characters in value of `ideographic-structure'.
701         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
702         for `{<-|->}simplified(@...)'.
703         (Fdefine_char): Try to use predefined character's id.
704
705 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
706
707         * fns.c (simplify_char_spec): Try to convert builtin chars to
708         defined chars.
709
710 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
711
712         * chartab.c (Fput_char_attribute): Convert char-specs in value of
713         `<-simplified[^*]*' to characters and put reverse links.
714
715 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
716
717         * chartab.c (Q_subsumptive): Renamed from Q_unified.
718         (Q_subsumptive_from): Renamed from Q_unified_from.
719         (Fchar_feature): Use `Q_subsumptive_from' instead of
720         `Q_unified_from'.
721         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
722         `Q_unified'.
723         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
724         `<-unified' to `<-subsumptive'.
725
726 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
727
728         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
729         inheritance itself; fix typo; stop recursive search if cyclic
730         inheritance is found.
731
732 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
733
734         * chartab.c (Q_denotational): New variable.
735         (Q_denotational_from): New variable.
736         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
737         (put_char_attribute): New function.
738         (Fput_char_attribute): Use `put_char_attribute'; regard
739         `->denotational' and `<-denotational' as same as `->unified' and
740         `<-unified'.
741         (syms_of_chartab): Add new symbols `->denotational' and
742         `<-denotational'.
743
744 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
745
746         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
747         `Fget_char_attribute'.
748         (Fchar_variants): Likewise.
749         (get_char_table): Likewise.
750         (Fchar_feature): New function.
751         (put_char_composition): Use `Fchar_feature' instead of
752         `Fget_char_attribute'.
753         (Fput_char_attribute): Likewise; don't put the target character
754         into its `->unified' value.
755         (syms_of_chartab): Add new builtin function `char-feature'.
756
757 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
758
759         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
760         `Fget_char_attribute'.
761         (char_encode_utf8): Likewise.
762
763         * chartab.h: Add an EXFUN for `Fchar_feature'.
764
765 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
766
767         * chartab.c (Vnext_defined_char_id): New variable.
768         (Fput_char_attribute): Accept characters in `->unified'.
769         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
770         new characters which are not related with builtin char-id ranges.
771         (vars_of_chartab): Add new variable `next-defined-char-id'.
772
773 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
774
775         * chartab.c (Q_unified): New variable.
776         (Q_unified_from): New variable.
777         (Fput_char_attribute): Add code for `->unified'.
778         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
779         XEmacs CHISE.
780
781 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
782
783         * mule-charset.c (decode_ccs_conversion): New function.
784         (decode_defined_char): Use `decode_ccs_conversion'.
785         (decode_builtin_char): Likewise.
786
787 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
788
789         * char-ucs.h: Change some charset-ids of private coded-charsets.
790
791 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
792
793         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
794         (char_encode_as_entity_reference): Likewise.
795         (decode_coding_big5): Modify for `decode_defined_char' and
796         `DECODE_CHAR'.
797         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
798         avoid compiler warning.
799         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
800
801         * mule-charset.c (decode_defined_char): Add new argument
802         `without_inheritance'.
803         (Fdecode_char): Add new optional argument `without_inheritance'.
804         (Fdecode_builtin_char): Modify for `Fdecode_char'.
805
806         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
807         (simplify_char_spec): Likewise.
808
809         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
810         setting.
811
812         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
813         (map_char_table): Likewise.
814         (Fdefine_char): Use `Fdecode_char' without inheritance.
815         (Ffind_char): Modify for `Fdecode_char'.
816
817         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
818
819         * char-ucs.h (decode_defined_char): Add new argument
820         `without_inheritance'.
821         (DECODE_CHAR): Likewise.
822         (MAKE_CHAR): Modify for `DECODE_CHAR'.
823
824 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
825
826         * chartab.c (Vchise_system_db_directory): New variable.
827         (vars_of_chartab): Add new variable `chise-system-db-directory'.
828
829 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
830
831         * chartab.c: EXFUN `Fmount_char_attribute_table'.
832         (print_chartab_range): Don't define when `UTF2000' is defined.
833         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
834         `CHISE_DS_open'.
835
836 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
837
838         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
839         and optional argument `rehash' is specified, call
840         `open_chise_data_source_maybe' before
841         `chise_ds_foreach_char_feature_name' is called.
842
843 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
844
845         * chartab.c (char_attribute_list_reset_map_func): New function
846         when HAVE_LIBCHISE is defined.
847         (Fchar_attribute_list): Add new optional argument `rehash' when
848         HAVE_LIBCHISE is defined.
849         (open_chise_data_source_maybe): Use "chise-db" instead of
850         "char-db".
851         (char_attribute_system_db_file): Likewise.
852         (Fload_char_attribute_table): Use
853         `chise_feature_foreach_char_with_value' instead of
854         `chise_char_feature_value_iterate'.
855
856 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
857
858         * chartab.c (Vchise_db_directory): New variable.
859         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
860
861 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
862
863         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
864         instead of HAVE_CHISE to specify using with libchise.
865
866         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
867
868         * chartab.h: Don't use HAVE_CHISE_CLIENT.
869
870         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
871         defined or HAVE_LIBCHISE_LIBCHISE is defined.
872         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
873         is defined.
874         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
875         HAVE_CHISE to specify using with libchise.
876         (syms_of_chartab): Don't define symbol `system-char-id' when
877         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
878
879 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
880
881         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
882         specify CHISE DB support.
883         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
884         of `char_attribute_system_db_file' to check feature DB file.
885
886         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
887         HAVE_CHISE_CLIENT to specify CHISE DB support.
888
889         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
890         specify CHISE DB support.
891         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
892         not defined.
893         (Freset_char_attribute_table): Use `chise_feature_setup_db'
894         instead of `char_attribute_system_db_file' to check feature DB
895         file.
896
897 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
898
899         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
900         `HAVE_CHISE_CLIENT'.
901
902 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
903
904         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
905         (Fsave_charset_mapping_table): Don't use
906         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
907
908         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
909         (HAVE_LIBCHISE): New macro.
910
911         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
912
913         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
914         (Fsave_char_attribute_table): Don't use
915         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
916
917 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
918
919         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
920         defined.
921         (save_uint16_byte_table): Likewise.
922         (save_byte_table): Likewise.
923         (char_table_get_db): Use `chise_ds_load_char_feature_value'
924         instead of `chise_char_load_feature_value'.
925         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
926
927 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
928
929         * chartab.h (struct Lisp_Char_Table): Delete member
930         `feature_table' if CHISE is defined.
931
932         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
933         (Fcopy_char_table): Likewise.
934         (char_table_open_db_maybe): Likewise.
935         (char_table_close_db_maybe): Likewise.
936         (char_table_get_db): Likewise.
937         (Fmount_char_attribute_table): Likewise.
938         (Fload_char_attribute_table): Likewise.
939
940 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
941
942         * mule-charset.c (load_char_decoding_entry_maybe): Use
943         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
944         `chise_ccs_decode'.
945
946 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
947
948         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
949         instead of `chise_open_data_source'.
950         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
951         `chise_ds_close'.
952
953 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
954
955         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
956         instead of `chise_ds_open_feature_table'.
957         (char_table_close_db_maybe): Don't use `chise_ft_close'.
958
959 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
960
961         * mule-charset.c (Fsave_charset_mapping_table): Use
962         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
963         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
964         `chise_ccs_sync' instead of `chise_ccst_close'.
965         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
966
967         * chartab.c (open_chise_data_source_maybe): Modify for
968         `chise_open_data_source'.
969         (char_table_open_db_maybe): Modify for
970         `chise_ds_open_feature_table'.
971
972 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
973
974         * mule-charset.c (load_char_decoding_entry_maybe): Use
975         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
976         `chise_ccst_close'.
977
978 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
979
980         * mule-charset.c (Fsave_charset_mapping_table): Use
981         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
982         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
983         `chise_dt_put_char' and `chise_dt_close'.
984         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
985         `chise_ccs_decode' and `chise_ccst_close' instead of
986         `chise_ds_open_decoding_table', `chise_dt_get_char' and
987         `chise_dt_close'.
988
989         * chartab.c (char_table_get_db): Use
990         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
991         (load_char_attribute_table_map_func): Modify for
992         `chise_char_feature_value_iterate'.
993         (Fload_char_attribute_table): Use
994         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
995
996 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
997
998         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
999
1000 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1001
1002         * chartab.c (put_char_table): Modify for inherited coded-charsets
1003         in XEmacs CHISE.
1004
1005 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1006
1007         * chartab.c (Fput_char_table_map_function): Fixed.
1008         (word_boundary_p): Don't check charset in XEmacs CHISE.
1009
1010 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1011
1012         * mule-charset.c (Fsave_charset_mapping_table): Use
1013         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
1014         instead of `chise_open_decoding_table'; refer
1015         `default_chise_data_source'; use `chise_dt_close' instead of
1016         `chise_close_decoding_table'.
1017         (load_char_decoding_entry_maybe): Likewise.
1018
1019         * chartab.c (default_chise_data_source): New variable when `CHISE'
1020         is defined.
1021         (Fcopy_char_table): `ct->ds' is deleted.
1022         (open_chise_data_source_maybe): New function.
1023         (Fclose_char_data_source): New function.
1024         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
1025         use `chise_ds_open_feature_table' instead of
1026         `chise_open_feature_table'.
1027         (char_table_close_db_maybe): Use `chise_ft_close' instead of
1028         `chise_close_feature_table'; `cit->ds' is deleted.
1029         (syms_of_chartab): Add new builtin function
1030         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
1031
1032         * chartab.h (default_chise_data_source): New extern variable.
1033         (open_chise_data_source_maybe): New prototype.
1034         (struct Lisp_Char_Table): Delete `ds'.
1035
1036 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1037
1038         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
1039         `CHISE' is defined.
1040
1041 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1042
1043         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
1044         not defined; add code for non-libchise setting.
1045         (char_table_close_db_maybe): Likewise.
1046         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1047         defined.
1048         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1049         even if `CHISE' is not defined.
1050         (Freset_char_attribute_table): Likewise.
1051         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1052         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1053         `char_table_get_db'.
1054         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1055         `char_table_close_db_maybe' even if `CHISE' is not defined.
1056
1057 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1058
1059         * chartab.c (char_table_open_db_maybe): New function.
1060         (char_table_close_db_maybe): New function.
1061         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1062         (Freset_char_attribute_table): Likewise.
1063         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1064         `char_table_close_db_maybe'.
1065         (Fload_char_attribute_table): Likewise.
1066
1067 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1068
1069         * chartab.c: Don't include <chise.h> because it is included in
1070         chartab.h.
1071         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1072         defined.
1073         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1074         `CHISE' is defined.
1075         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1076         `CHISE' is defined.
1077         (Fclose_char_attribute_table): Close `ct->feature_table' and
1078         `ct->ds' when `CHISE' is defined.
1079         (Freset_char_attribute_table): Likewise.
1080         (load_char_attribute_maybe): Use `cit->ds' and
1081         `cit->feature_table' when `CHISE' is defined.
1082         (Fload_char_attribute_table): Likewise.
1083
1084         * chartab.h: Include <chise.h> when `CHISE' is defined.
1085         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1086         when `CHISE' is defined.
1087
1088 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1089
1090         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1091         is defined.
1092         (char_table_description): Likewise.
1093         (Fmake_char_table): Likewise.
1094         (Fcopy_char_table): Likewise.
1095         (Fmount_char_attribute_table): Likewise.
1096         (Fclose_char_attribute_table): Likewise.
1097         (Freset_char_attribute_table): Likewise.
1098         (load_char_attribute_maybe): Likewise.
1099         (Fload_char_attribute_table): Likewise.
1100
1101         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1102         defined.
1103
1104 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1105
1106         * chartab.c (load_char_attribute_table_map_func): New function
1107         when CHISE is defined.
1108         (Qload_char_attribute_table_map_function): Don't define when CHISE
1109         is defined.
1110         (Fload_char_attribute_table_map_function): Likewise.
1111         (Fload_char_attribute_table): Use libchise when `CHISE' is
1112         defined.
1113         (syms_of_chartab): Don't define
1114         `load-char-attribute-table-map-function' when CHISE is defined.
1115
1116 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1117
1118         * chartab.c: Include <chise.h> when `CHISE' is defined.
1119         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1120
1121 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1122
1123         * mule-charset.c (charset_code_point): Fix problem when searching
1124         in mother CCS fails with `defined_only' mode.
1125
1126 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1127
1128         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1129         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1130         (put_char_composition): Likewise.
1131         (Fput_char_attribute): Likewise.
1132         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1133
1134 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1135
1136         * chartab.c (Q_ucs): Deleted.
1137         (Fput_char_attribute): Don't refer `->ucs'.
1138         (Fdefine_char): Likewise.
1139         (Ffind_char): Likewise.
1140         (syms_of_chartab): Delete `->ucs'.
1141
1142 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1143
1144         * mule-charset.c (Qmap_cns11643_2): Renamed from
1145         `Qchinese_cns11643_2'.
1146         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1147         `chinese-cns11643-2'.
1148         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1149         `=cns11643-2'.
1150
1151 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1152
1153         * mule-charset.c (Qmap_cns11643_1): Renamed from
1154         `Qchinese_cns11643_1'.
1155         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1156         `chinese-cns11643-1'.
1157         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1158         `=cns11643-1'.
1159
1160 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1161
1162         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1163         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1164         `chinese-gb12345'.
1165         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1166         `=gb12345'.
1167
1168 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1169
1170         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1171         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1172         `chinese-gb2312'.
1173         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1174         `=gb2312'.
1175
1176 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1177
1178         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1179         (syms_of_mule_charset): Add new symbol `=big5' instead of
1180         `chinese-big5'.
1181         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1182
1183 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1184
1185         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1186         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1187         `korean-ksc5601'.
1188         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1189         `=ks-x1001'.
1190
1191 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1192
1193         * mule-charset.c (Qmap_jis_x0212): Renamed from
1194         `Qjapanese_jisx0212'.
1195         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1196         `japanese-jisx0212'.
1197         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1198         `=jis-x0212'.
1199
1200 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1201
1202         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1203         `Qjapanese_jisx0208'.
1204         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1205         of `japanese-jisx0208'.
1206         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1207         `=jis-x0208-1983'.
1208
1209 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1210
1211         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1212         `Qjapanese_jisx0208_1978'.
1213         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1214         of `japanese-jisx0208-1978'.
1215         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1216         `=jis-x0208-1978'.
1217
1218 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1219
1220         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1221         only for XEmacs CHISE.
1222
1223 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1224
1225         * char-ucs.h: Compact non-ISO-IR charset-ids.
1226         (LEADING_BYTE_UCS): Changed to -177.
1227         (LEADING_BYTE_CONTROL_1): Changed to -77.
1228         (LEADING_BYTE_UCS_BMP): Changed to -176.
1229         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1230
1231 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1232
1233         * mule-charset.c (Qiso_ir): New variable.
1234         (Fmake_charset): Recognise new property `iso-ir'.
1235         (syms_of_mule_charset): Add new symbol `iso-ir'.
1236
1237 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1238
1239         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1240         n to -n; charset-id of non ISO-IR sets are changed to positive
1241         numbers.
1242
1243 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1244
1245         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1246         for &MCS-XXXXXXXX; values.
1247
1248 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1249
1250         * mule.c (Vxemacs_chise_version): Renamed from
1251         `Vutf_2000_version'.
1252         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1253         `utf-2000-version' as an alias for `xemacs-chise-version'.
1254
1255 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1256
1257         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1258         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1259         defined.
1260
1261         * config.h.in (CHISE): New macro.
1262
1263 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1264
1265         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1266         of `ucs'.
1267         (Qmap_ucs): New variable.
1268         (syms_of_mule_charset): Add new symbol `=ucs'.
1269         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1270
1271         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1272         (simplify_char_spec): Likewise.
1273
1274         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1275
1276         * char-ucs.h (Qmap_ucs): New extern variable.
1277
1278 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1279
1280         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1281         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1282         don't define it when UTF2000 is not defined.
1283         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1284         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1285         when UTF2000 is not defined.
1286         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1287         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1288
1289 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1290
1291         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1292
1293         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1294         (Qucs_gb): Deleted.
1295         (syms_of_mule_charset): Delete `ucs-gb'.
1296         (complex_vars_of_mule_charset): Likewise.
1297
1298 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1299
1300         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1301
1302         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1303         (Qucs_cns): Deleted.
1304         (syms_of_mule_charset): Delete `ucs-cns'.
1305         (complex_vars_of_mule_charset): Likewise.
1306
1307 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1308
1309         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1310
1311         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1312         (Qucs_jis): Deleted.
1313         (syms_of_mule_charset): Delete `ucs-jis'.
1314         (complex_vars_of_mule_charset): Likewise.
1315
1316 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1317
1318         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1319
1320         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1321         (Qucs_ks): Deleted.
1322         (syms_of_mule_charset): Delete `ucs-ks'.
1323         (complex_vars_of_mule_charset): Likewise.
1324
1325 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1326
1327         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1328         (Qideograph_daikanwa_2): Deleted.
1329         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1330         (complex_vars_of_mule_charset): Likewise.
1331
1332         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1333         (LEADING_BYTE_DAIKANWA_1): Deleted.
1334         (LEADING_BYTE_DAIKANWA_2): Deleted.
1335         (MIN_CHAR_DAIKANWA): Deleted.
1336         (MAX_CHAR_DAIKANWA): Deleted.
1337
1338 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1339
1340         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1341         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1342         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1343
1344         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1345         (Vcharset_ideograph_daikanwa): Deleted.
1346         (Qideograph_hanziku_{1..12}): Deleted.
1347         (Qideograph_daikanwa): Deleted.
1348         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1349         Vcharset_ideograph_daikanwa.
1350         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1351         `ideograph-hanziku-{1..12}'.
1352         (complex_vars_of_mule_charset): Likewise.
1353
1354 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1355
1356         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1357
1358         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1359         (Qideograph_gt_pj_{1..11}): Deleted.
1360         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1361         (complex_vars_of_mule_charset): Likewise.
1362
1363 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1364
1365         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1366         (Vcharset_ideograph_gt): Deleted.
1367         (Qucs_big5): Deleted.
1368         (Qideograph_gt): Deleted.
1369         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1370         `ideograph-gt'.
1371         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1372         and `ideograph-gt'.
1373
1374         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1375         (LEADING_BYTE_GT): Deleted.
1376         (MIN_CHAR_GT): Deleted.
1377         (MAX_CHAR_GT): Deleted.
1378
1379 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1380
1381         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1382
1383 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1384
1385         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1386         (save_uint16_byte_table): Likewise.
1387         (save_byte_table): Likewise; convert values by it.
1388         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1389         for `ideographic-structure'.
1390         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1391         as the filter for `ideographic-structure'.
1392
1393 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1394
1395         * chartab.c (put_char_composition): New function.
1396         (Fput_char_attribute): Use `put_char_composition'; use
1397         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1398
1399         * fns.c (simplify_char_spec): New function.
1400         (char_ref_simplify_spec): New function.
1401         (Fchar_refs_simplify_char_specs): New function.
1402         (syms_of_fns): Add new builtin function
1403         `char-refs-simplify-char-specs'.
1404
1405 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1406
1407         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1408         (Qideograph_cbeta): Deleted.
1409         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1410         (complex_vars_of_mule_charset): Likewise.
1411
1412         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1413         (MIN_CHAR_CBETA): Comment out.
1414         (MAX_CHAR_CBETA): Likewise.
1415
1416 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1417
1418         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1419         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1420         CHISE client feature.
1421
1422 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1423
1424         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1425
1426 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1427
1428         * mule-charset.c (charset_lookup_description_1): Use
1429         `NUM_LEADING_BYTES' in UTF-2000.
1430
1431 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1432
1433         * char-ucs.h (GC_CHARSETP): Deleted.
1434
1435 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1436
1437         * char-ucs.h (MAX_CHAR_GT): Updated.
1438
1439 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1440
1441         * text-coding.c: Sync with XEmacs 21.4.10.
1442
1443 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1444
1445         * mule-charset.c (Vcharset_china3_jef): Deleted.
1446         (Qchina3_jef): Deleted.
1447         (syms_of_mule_charset): Don't define `china3-jef'.
1448         (complex_vars_of_mule_charset): Likewise.
1449
1450         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1451         (MIN_CHAR_CHINA3_JEF): Comment out.
1452         (MAX_CHAR_CHINA3_JEF): Comment out.
1453
1454 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1455
1456         * mule-charset.c (Vcharset_ucs_gb): New variable.
1457         (Qucs_gb): New variable.
1458         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1459         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1460
1461         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1462
1463 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1464
1465         * mule-charset.c (charset_code_point): if a coded-charset has a
1466         final-byte, don't inherit the builtin range of the mother CCS.
1467
1468 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1469
1470         * mule-charset.c (charset_code_point): Fix problem about
1471         inheritance.
1472
1473 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1474
1475         * mule-charset.c (decode_builtin_char): Reorganized.
1476
1477 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1478
1479         * text-coding.c (char_encode_as_entity_reference): Modify for
1480         `charset_code_point'.
1481         (char_encode_shift_jis): Likewise.
1482         (char_encode_big5): Likewise.
1483         (char_encode_utf8): Likewise.
1484         (char_encode_iso2022): Likewise.
1485
1486         * mule-charset.c (charset_code_point): Add new argument
1487         `defined_only'.
1488         (Fencode_char): Add new optional argument `defined_only'.
1489
1490         * chartab.c (put_char_table): Modify for `charset_code_point'.
1491
1492         * char-ucs.h (charset_code_point): Add new argument
1493         `defined_only'.
1494         (encode_char_1): Modify for `charset_code_point'.
1495
1496 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1497
1498         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1499         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1500
1501 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1502
1503         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1504         (Qjis_x0208): Likewise.
1505         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1506         XCHARSET_FINAL(charset).
1507         (charset_code_point): Modify condition for final-byte based
1508         builtin-chars.
1509         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1510         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1511         in UTF-2000; specify `=jis-x0208' as the mother of
1512         `japanese-jisx0208-1978', `japanese-jisx0208' and
1513         `japanese-jisx0208-1990' in UTF-2000.
1514
1515 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1516
1517         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1518
1519 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1520
1521         * text-coding.c (decode_coding_utf16): Support UTF-16.
1522         (char_encode_utf16): Fixed.
1523
1524 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1525
1526         * text-coding.c (Qutf16): New variable in MULE.
1527         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1528         (Fcoding_system_type): Add `utf-16' in MULE.
1529         (struct detection_state): Add a structure for utf16 in MULE.
1530         (detect_coding_type): Setup st->utf16.mask in MULE.
1531         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1532         MULE.
1533         (reset_encoding_stream): Use `char_encode_utf16' and
1534         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1535         (detect_coding_utf16): New function [incomplete].
1536         (decode_coding_utf16): New function [support only UCS-2].
1537         (char_encode_utf16): New function.
1538         (char_finish_utf16): New function.
1539         (syms_of_file_coding): Add new symbol `utf-16'; setup
1540         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1541
1542         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1543         UTF-2000.
1544         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1545         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1546
1547 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1548
1549         * chartab.c (put_char_table): When a charset is specified as a
1550         range in UTF-2000, don't support builtin characters.
1551
1552 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1553
1554         * mule-charset.c (decode_defined_char): Don't refer external
1555         database if Qunbound or Qnil are found.
1556         (Fsave_charset_mapping_table): Don't define it if
1557         HAVE_CHISE_CLIENT is not defined.
1558         (Freset_charset_mapping_table): New function.
1559         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1560         found in external database.
1561         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1562         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1563         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1564
1565 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1566
1567         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1568         not.
1569
1570 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1571
1572         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1573         Q_lowercase, Q_uppercase in UTF-2000.
1574
1575         * chartab.c (get_char_table): Add special code for the standard
1576         case table to use character attribute `->downcase' and
1577         `->uppercase' for case operations in UTF-2000.
1578
1579         * casetab.c (Qflippedcase): New variable in UTF-2000.
1580         (Q_lowercase): Likewise.
1581         (Q_uppercase): Likewise.
1582         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1583         and `->uppercase' in UTF-2000.
1584         (complex_vars_of_casetab): Assign attribute name `downcase' to
1585         downcase and CANON table of Vstandard_case_table in UTF-2000;
1586         assign attribute name `flippedcase' to upcase and EQV table of
1587         Vstandard_case_table in UTF-2000.
1588
1589 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1590
1591         * text-coding.c (decode_add_er_char): Support isolated-chars.
1592         (char_encode_as_entity_reference): Likewise.
1593
1594 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1595
1596         * emacs.c (Vutf_2000_lisp_directory): New variable.
1597         (Vconfigure_utf_2000_lisp_directory): Likewise.
1598         (complex_vars_of_emacs): Add new variable
1599         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1600
1601 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1602
1603         * char-ucs.h (DECODE_CHAR): Delete special code for
1604         `chinese-big5-1' and `chinese-big5-2'.
1605
1606         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1607         (Qbig5_2): Likewise.
1608         (decode_defined_char): Support CONVERSION_BIG5_1 and
1609         CONVERSION_BIG5_2.
1610         (decode_builtin_char): Likewise.
1611         (charset_code_point): Likewise.
1612         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1613         'conversion in UTF-2000.
1614         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1615         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1616         `chinese-big5-2' as children of `chinese-big5'.
1617
1618         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1619         (CONVERSION_BIG5_2): New macro.
1620
1621 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1622
1623         * text-coding.c (char_encode_big5): Support entity-reference.
1624
1625 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1626
1627         * text-coding.c (char_encode_as_entity_reference): New function.
1628         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1629
1630 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1631
1632         * text-coding.c (decode_coding_big5): Support entity-reference
1633         decoding feature.
1634
1635 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1636
1637         * text-coding.c (allocate_coding_system): Initialize initial
1638         charsets for CODESYS_UTF8.
1639         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1640         charset-g2 for CODESYS_UTF8.
1641         (decode_coding_utf8): Use charset-g0.
1642         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1643         to force variants to map to UCS.
1644
1645 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1646
1647         * text-coding.c (Qutf_8_mcs): New variable.
1648         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1649         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1650         instead of `utf-8' in UTF-2000.
1651
1652 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1653
1654         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1655         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1656         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1657         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1658         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1659         CONVERSION_96x96x96x96 are introduced.
1660         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1661         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1662         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1663
1664         * char-ucs.h (CONVERSION_94): New macro.
1665         (CONVERSION_96): New macro.
1666         (CONVERSION_94x94): New macro.
1667         (CONVERSION_96x96): New macro.
1668         (CONVERSION_94x94x94): New macro.
1669         (CONVERSION_96x96x96): New macro.
1670         (CONVERSION_94x94x94x60): New macro.
1671         (CONVERSION_94x94x94x94): New macro.
1672         (CONVERSION_96x96x96x96): New macro.
1673
1674 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1675
1676         * chartab.c (Vcharacter_variant_table): Deleted.
1677         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1678         of `Vcharacter_variant_table'.
1679         (Fput_char_attribute): Likewise.
1680         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1681         (complex_vars_of_chartab): Likewise.
1682
1683 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1684
1685         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1686
1687         * fns.c (Qideographic_structure): New variable.
1688         (Qkeyword_char): New variable.
1689         (ids_format_unit): New function.
1690         (Fideographic_structure_to_ids): New function.
1691         (syms_of_fns): Add new symbols `ideographic-structure' and
1692         `:char'; add new builtin function `ideographic-structure-to-ids'.
1693
1694         * data.c (Fchar_ref_p): New function.
1695         (syms_of_data): Add new builtin function `char-ref-p'.
1696
1697         * chartab.h: Add an EXFUN for `Ffind_char'.
1698
1699 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1700
1701         * text-coding.c (Vcharacter_composition_table): Deleted.
1702         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1703         in every UTF-2000.
1704
1705         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1706         UTF-2000.
1707         (Vcharacter_composition_table): Deleted.
1708         (Fget_composite_char): Use the implementation for external-DB
1709         support in every UTF-2000.
1710         (Fput_char_attribute): Likewise.
1711         (char_attribute_system_db_file): Don't define if external-DB
1712         feature is not available.
1713         (Fsave_char_attribute_table): Likewise.
1714         (Fmount_char_attribute_table): Likewise.
1715         (Fclose_char_attribute_table): Likewise.
1716         (Freset_char_attribute_table): Likewise.
1717         (Fload_char_attribute_table): Likewise.
1718         (syms_of_chartab): Don't define `save-char-attribute-table',
1719         `mount-char-attribute-table', `reset-char-attribute-table',
1720         `close-char-attribute-table' and `load-char-attribute-table' if
1721         external-DB feature is not available.
1722         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1723
1724 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1725
1726         * text-coding.c (Qcomposition): Add extern if external-DB feature
1727         is supported.
1728         (Vcharacter_composition_table): Don't add extern if external-DB
1729         feature is supported.
1730         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1731         character composition rule if external-DB feature is supported.
1732
1733         * chartab.c (Vcharacter_composition_table): Don't define if
1734         external-DB feature is supported.
1735         (Qcomposition): New variable.
1736         (Fget_composite_char): New implementation for external-DB support.
1737         (Fput_char_attribute): Use `composition' property of each
1738         character instead of `Vcharacter_composition_table' to store
1739         character-composition rules if external-DB feature is supported.
1740         (syms_of_chartab): Add new symbol `composition'.
1741         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1742         external-DB feature is supported.
1743
1744 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1745
1746         * chartab.c (Vchar_db_stingy_mode): New variable.
1747         (load_char_attribute_maybe): Close database if
1748         Vchar_db_stingy_mode is not NIL.
1749         (Fload_char_attribute_table_map_function): Use
1750         `get_char_id_table_0' instead of `get_char_id_table'.
1751         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1752
1753         * chartab.h (get_char_id_table_0): New inline function.
1754         (get_char_id_table): Use `get_char_id_table_0'.
1755
1756 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1757
1758         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1759         and `COMPOSE_ADD_CHAR'.
1760         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1761
1762 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1763
1764         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1765         instead of `DECODE_ADD_UCS_CHAR'.
1766         (COMPOSE_ADD_CHAR): Likewise.
1767
1768 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1769
1770         * text-coding.c (decode_flush_er_chars): New inline function.
1771         (decode_add_er_char): New function.
1772         (decode_coding_utf8): Use `decode_flush_er_chars' and
1773         `decode_add_er_char'.
1774
1775 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1776
1777         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1778         done before `decode_output_utf8_partial_char'.
1779
1780         * mule-charset.c (complex_vars_of_mule_charset): Specify
1781         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1782         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1783
1784 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1785
1786         * mule-charset.c (decode_defined_char): New function; search
1787         mother.
1788         (decode_builtin_char): Don't search mother if
1789         XCHARSET_MAX_CODE(charset) == 0.
1790         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1791         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1792         (Fdecode_char): Use `decode_defined_char' instead of
1793         `DECODE_DEFINED_CHAR'.
1794         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1795         mother of `Vcharset_ucs_jis'.
1796
1797         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1798         instead of `DECODE_DEFINED_CHAR'.
1799
1800         * char-ucs.h (decode_defined_char): Renamed from
1801         `DECODE_DEFINED_CHAR'; changed to normal function.
1802         (DECODE_CHAR): Use `decode_defined_char' instead of
1803         `DECODE_DEFINED_CHAR'.
1804
1805         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1806
1807 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1808
1809         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1810
1811         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1812         variable.
1813         (Quse_entity_reference): New variable.
1814         (Qd): New variable.
1815         (Qx): New variable.
1816         (QX): New variable.
1817         (coding_system_description): Add description for
1818         `ccs_priority_list'.
1819         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1820         (allocate_coding_system): Initialize `ccs_priority_list' in
1821         UTF-2000.
1822         (Fmake_coding_system): Add description about
1823         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1824         (codesys).
1825         (Fcoding_system_property): Accept `disable-composition' and
1826         `use-entity-reference' in UTF-2000.
1827         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1828         in UTF-2000.
1829         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1830         (decode_coding_utf8): Decode entity-reference if
1831         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1832         (char_encode_utf8): Encode non-Unicode characters as
1833         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1834         (str->codesys).
1835         (syms_of_file_coding): Add new symbols `use-entity-reference',
1836         `d', `x', `X'.
1837         (vars_of_file_coding): Add new variable
1838         `coded-charset-entity-reference-alist'.
1839         (complex_vars_of_file_coding): Declare `disable-composition' and
1840         `use-entity-reference' to be coding-system-properties in UTF-2000.
1841
1842         * file-coding.h (struct Lisp_Coding_System): Add new member
1843         `use_entity_reference' and `ccs_priority_list'.
1844         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1845         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1846         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1847
1848 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1849
1850         * chartab.c (save_uint8_byte_table): Don't clear the table.
1851         (save_uint16_byte_table): Likewise.
1852         (save_byte_table): Likewise.
1853         (Fmount_char_attribute_table): New function.
1854         (syms_of_chartab): Add new builtin function
1855         `mount-char-attribute-table'.
1856
1857 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1858
1859         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1860         "w+" mode.
1861         (load_char_decoding_entry_maybe): Open database as read-only mode.
1862
1863         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1864         open database as "w+" mode.
1865         (load_char_attribute_maybe): Open database as read-only mode.
1866         (Fload_char_attribute_table): Likewise.
1867
1868 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1869
1870         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1871         (char_table_description): Delete member `db_file'.
1872         (Fmake_char_table): Don't refer `ct->db_file'.
1873         (Fcopy_char_table): Likewise.
1874         (Fsave_char_attribute_table): Likewise.
1875         (Fclose_char_attribute_table): Likewise.
1876         (Freset_char_attribute_table): Likewise.
1877         (load_char_attribute_maybe): Likewise.
1878         (Fload_char_attribute_table): Likewise.
1879
1880         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1881
1882 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1883
1884         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1885         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1886         `ct->db' is living.
1887         (load_char_attribute_maybe): Likewise.
1888         (Fload_char_attribute_table): Likewise.
1889
1890 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1891
1892         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1893         `ct->db_file' unconditionally.
1894
1895 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1896
1897         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1898         UTF-2000.
1899         (char_table_description): Add description for `db_file' and `db'
1900         in UTF-2000.
1901         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1902         UTF-2000.
1903         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1904         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1905         (Fclose_char_attribute_table): New function.
1906         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1907         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1908         and `cit->db'.
1909         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1910         (syms_of_chartab): Add new builtin function
1911         `Fclose_char_attribute_table'.
1912
1913 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1914
1915         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1916         `db' in UTF-2000.
1917         (load_char_attribute_maybe): Change interface.
1918         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1919
1920 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1921
1922         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1923
1924 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1925
1926         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1927         instead of `DECODE_CHAR' for mother; don't use special code for
1928         chinese-big5 to use code space of chinese-big5-1 and
1929         chinese-big5-2.
1930         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1931         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1932
1933         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1934         (MAX_CHAR_BIG5_CDP): Revival.
1935
1936 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1937
1938         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1939         the XLFD registry-encoding name of `chinese-big5'.
1940
1941 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1942
1943         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1944         (Qchinese_big5_cdp): Deleted.
1945         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1946         (complex_vars_of_mule_charset): Delete coded-charset
1947         `chinese-big5-cdp'.
1948
1949         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1950         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1951         `CHARSET_ID_OFFSET - n' for private CCS.
1952         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1953         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1954         of `MIN_LEADING_BYTE'.
1955         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1956         `(CHARSET_ID_OFFSET - 97)'.
1957         (MIN_CHAR_BIG5_CDP): Deleted.
1958         (MAX_CHAR_BIG5_CDP): Deleted.
1959
1960 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1961
1962         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1963
1964 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1965
1966         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1967         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1968         chartab.c].
1969
1970         * chartab.c (Vutf_2000_version): Moved to mule.c.
1971         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1972
1973 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1974
1975         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1976         when HAVE_CHISE_CLIENT is not defined.
1977
1978         * mule.c (vars_of_mule): Provide feature `chise' when
1979         HAVE_CHISE_CLIENT is defined.
1980
1981 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1982
1983         * config.h.in (UTF2000): Add comment.
1984         (HAVE_CHISE_CLIENT): New macro.
1985
1986 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1987
1988         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1989         CONSP.
1990         (Fput_char_attribute): Likewise.
1991         (char_attribute_system_db_file): Encode file-name of attribute.
1992         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1993         the initial value.
1994
1995 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1996
1997         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1998         (Fsave_charset_mapping_table): Use
1999         `char_attribute_system_db_file'.
2000         (load_char_decoding_entry_maybe): Likewise.
2001
2002         * chartab.h (Qsystem_char_id): New external variable.
2003         (char_attribute_system_db_file): New prototype.
2004
2005         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
2006         (char_attribute_system_db_file): New function.
2007         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
2008         (Freset_char_attribute_table): Likewise.
2009         (load_char_attribute_maybe): Likewise.
2010         (Fload_char_attribute_table): Likewise.
2011         (syms_of_chartab): Add new symbol `system-char-id'.
2012
2013 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2014
2015         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
2016         `XCHARSET_GRAPHIC(ccs)'.
2017
2018 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2019
2020         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
2021
2022 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2023
2024         * chartab.c (Q_ucs_variants): New variable.
2025         (syms_of_chartab): Add new symbol `->ucs-variants'.
2026         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
2027         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
2028         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
2029
2030         * mule-charset.c (load_char_decoding_entry_maybe): New function.
2031
2032         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
2033         `HAVE_DATABASE' is defined.
2034         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
2035         `HAVE_DATABASE' is defined.
2036
2037 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2038
2039         * chartab.c (Fsave_char_attribute_table): Don't clear internal
2040         attribute-table.
2041         (Freset_char_attribute_table): New function.
2042         (syms_of_chartab): Add new builtin function
2043         `reset-char-attribute-table'.
2044
2045 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2046
2047         * chartab.c (load_char_attribute_maybe): Don't make directories.
2048
2049 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2050
2051         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2052
2053         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2054         for decoding-table.
2055
2056 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2057
2058         * mule-charset.c (Fsave_charset_mapping_table): Use
2059         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2060
2061         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2062         instead of `XCHARSET_CHARS'.
2063
2064 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2065
2066         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2067         (XCHARSET_BYTE_SIZE): Likewise.
2068
2069         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2070         mule-charset.c].
2071         (XCHARSET_BYTE_SIZE): Likewise.
2072
2073 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2074
2075         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2076         data-directory to store database.
2077         (Fsave_char_attribute_table): Likewise.
2078         (load_char_attribute_maybe): Likewise.
2079         (Fload_char_attribute_table): Likewise.
2080
2081 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2082
2083         * mule-charset.c (Fsave_charset_mapping_table): New function.
2084         (syms_of_mule_charset): Add new builtin function
2085         `save-charset-mapping-table'.
2086
2087 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2088
2089         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2090         (get_ccs_octet_table): New inline function.
2091         (put_ccs_octet_table): Likewise.
2092         (decoding_table_put_char): Use `get_ccs_octet_table' and
2093         `put_ccs_octet_table'.
2094         (decoding_table_remove_char): Use `decoding_table_put_char'.
2095         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2096
2097         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2098         into encoding_table.
2099         (make_charset): Use Qunbound instead Qnil as initial value of
2100         decoding_table.
2101
2102 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2103
2104         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2105         element is Qunloaded.
2106         (map_over_uint16_byte_table): Likewise.
2107         (map_over_byte_table): Likewise.
2108         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2109         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2110         database support, load encoding-table of the specified
2111         coded-charset if it is not loaded yet.
2112         (save_uint8_byte_table): New function of UTF-2000 with external
2113         database support.
2114         (save_uint16_byte_table): Likewise.
2115         (save_byte_table): Likewise.
2116         (Fput_char_attribute): Don't store value into external database
2117         even if the external database feature is supported in UTF-2000;
2118         set `attribute' as name of char-table if the external database
2119         feature is supported.
2120         (Fsave_char_attribute_table): New function in UTF-2000.
2121         (syms_of_chartab): Add new builtin function
2122         `save-char-attribute-table' in UTF-2000.
2123
2124 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2125
2126         * chartab.c (char_attribute_table_to_put): New variable in
2127         UTF-2000.
2128         (Qput_char_table_map_function): Likewise.
2129         (value_to_put): Likewise.
2130         (Fput_char_table_map_function): New function in UTF-2000.
2131         (put_char_table): Use `Fmap_char_attribute' for
2132         CHARTAB_RANGE_CHARSET in UTF-2000.
2133         (Fput_char_attribute): Store symbol instead of string in
2134         `XCHAR_TABLE_NAME (table)'.
2135         (load_char_attribute_maybe): Likewise.
2136         (syms_of_chartab): Add new symbol/function
2137         `put-char-table-map-function'.
2138
2139 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2140
2141         * database.h: Add new EXFUN for `Fmap_database'.
2142
2143         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2144         (syms_of_database): Likewise.
2145
2146         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2147         UTF-2000.
2148         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2149         (XCHAR_TABLE_UNLOADED): Likewise.
2150
2151         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2152         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2153         HAVE_DATABASE is defined.
2154         (char_attribute_table_to_load): New variable of UTF-2000 with
2155         external database support.
2156         (Qload_char_attribute_table_map_function): Likewise.
2157         (Fload_char_attribute_table_map_function): New function of
2158         UTF-2000 with external database support.
2159         (Fload_char_attribute_table): New function of UTF-2000.
2160         (Fmap_char_attribute): Call Fload_char_attribute_table if
2161         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2162         (syms_of_chartab): Add new symbol and function
2163         `load-char-attribute-table-map-function' in UTF-2000 with external
2164         database support; add new function `load-char-attribute-table' in
2165         UTF-2000.
2166
2167 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2168
2169         * chartab.h (load_char_attribute_maybe): New prototype for
2170         UTF-2000 with DATABASE support.
2171         (get_char_id_table): Use `load_char_attribute_maybe' if
2172         HAVE_DATABASE is defined.
2173
2174         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2175         with DATABASE support.
2176
2177 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2178
2179         * chartab.c (Fput_char_attribute): Use S-expression as key of
2180         external database.
2181
2182         * chartab.h (get_char_id_table): Use S-expression as key of
2183         external database.
2184
2185 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2186
2187         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2188         if an element is not loaded, load the corresponding attributes
2189         from an external database.
2190         (map_over_uint16_byte_table): Likewise.
2191         (map_over_byte_table): Likewise.
2192         (map_char_table): Modify for `map_over_uint8_byte_table',
2193         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2194         element is not loaded, load the corresponding attributes from an
2195         external database.
2196         (Fput_char_attribute): Change initial values to Qunloaded.
2197
2198         * chartab.h (get_char_id_table): If a character attribute is not
2199         loaded and the attribute value is not found in an external
2200         database, store Qunbound as the attribute value.
2201
2202 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2203
2204         * chartab.c (BT_UINT8_unloaded): New macro.
2205         (UINT8_VALUE_P): Accept Qunloaded.
2206         (UINT8_ENCODE): Likewise.
2207         (UINT8_DECODE): Likewise.
2208         (BT_UINT16_unloaded): New macro.
2209         (UINT16_VALUE_P): Accept Qunloaded.
2210         (UINT16_ENCODE): Likewise.
2211         (UINT16_DECODE): Likewise.
2212         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2213         BT_UINT16_unloaded.
2214         (mark_char_table): Mark `ct->name' in UTF-2000.
2215         (char_table_description): Add `name' in UTF-2000.
2216         (Fmake_char_table): Initialize `ct->name'.
2217         (Fcopy_char_table): Copy `ct->name'.
2218         (Fput_char_attribute): Store value into an external database if
2219         HAVE_DATABASE is defined.
2220
2221         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2222         UTF-2000.
2223         (CHAR_TABLE_NAME): New macro in UTF-2000.
2224         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2225         (get_char_id_table): Try to read an external database if Qunloaded
2226         is stored in a table.
2227
2228         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2229         Qunloaded.
2230
2231 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2232
2233         * database.h: Add EXFUN definitions for Fopen_database,
2234         Fput_database, Fget_database and Fclose_database.
2235
2236         * data.c (Qunloaded): New variable in UTF-2000.
2237
2238         * lisp.h (Qunloaded): New variable in UTF-2000.
2239
2240 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2241
2242         * mule-charset.c (put_char_ccs_code_point): Modify for
2243         `decoding_table_remove_char' and `decoding_table_put_char'.
2244         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2245
2246         * char-ucs.h (decoding_table_remove_char): Change arguments to
2247         hide decoding_table vector.
2248         (decoding_table_put_char): Likewise.
2249
2250 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2251
2252         * mule-charset.c (decoding_table_remove_char): Moved to
2253         char-ucs.h.
2254         (decoding_table_put_char): Likewise.
2255
2256         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2257         from mule-charset.c].
2258         (decoding_table_remove_char): New inline function [moved from
2259         mule-charset.c].
2260         (decoding_table_put_char): Likewise.
2261
2262 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2263
2264         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2265         extension.
2266
2267 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2268
2269         * mule-charset.c (decode_builtin_char): Support mother charsets.
2270
2271 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2272
2273         * mule-charset.c (Q94x94x60): New variable.
2274         (charset_code_point): Support conversion `94x94x60'.
2275         (Fmake_charset): Likewise.
2276         (syms_of_mule_charset): Add new symbol `94x94x60'.
2277
2278         * char-ucs.h (CONVERSION_94x94x60): New macro.
2279
2280 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2281
2282         * mule-charset.c (charset_code_point): Unify code about
2283         `code-offset'.
2284
2285 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2286
2287         * mule-charset.c (charset_code_point): Merge code about builtin
2288         characters into code about mother charsets; don't use
2289         `range_charset_code_point'.
2290         (range_charset_code_point): Deleted.
2291
2292 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2293
2294         * mule-charset.c (Qcode_offset): New variable.
2295         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2296         `max-code'; accept new property `code-offset'.
2297         (syms_of_mule_charset): Add new symbol `code-offset'.
2298
2299 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2300
2301         * mule-charset.c (range_charset_code_point): Fixed.
2302
2303 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2304
2305         * mule-charset.c (decode_builtin_char): Change semantics of
2306         code-offset of coded-charset.
2307         (charset_code_point): Likewise.
2308         (range_charset_code_point): Likewise.
2309         (complex_vars_of_mule_charset): Modify for the change.
2310
2311 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2312
2313         * mule-charset.c (Fencode_char): Reverse arguments.
2314
2315         * mule-charset.c (charset_code_point): Fixed.
2316
2317 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2318
2319         * mule-charset.c (Vcharset_mojikyo): Deleted.
2320         (Vcharset_mojikyo_2022_1): Deleted.
2321         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2322         (Qmin_code): New variable in UTF-2000.
2323         (Qmax_code): Likewise.
2324         (Qmother): Likewise.
2325         (Qconversion): Likewise.
2326         (Q94x60): Likewise.
2327         (Qmojikyo): Deleted.
2328         (Qmojikyo_2022_1): Deleted.
2329         (Qmojikyo_pj_{1..22}): Deleted.
2330         (mark_charset): Mark `cs->mother'.
2331         (charset_description): Add description for `mother'.
2332         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2333         new arguments `mother' and `conversion'; use
2334         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2335         (charset_code_point): Moved from char-ucs.h; support `mother'
2336         charset feature.
2337         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2338         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2339         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2340         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2341         allow 2 as the value of `graphic' in UTF-2000; add new properties
2342         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2343         require `final' in UTF-2000; modify for `make_charset'.
2344         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2345         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2346         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2347         (Fencode_char): New function.
2348         (syms_of_mule_charset): Add new builtin function `encode-char' in
2349         UTF-2000; add new symbols `min-code', `max-code', `mother',
2350         `conversion' and `94x60'; delete symbols `mojikyo',
2351         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2352         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2353         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2354         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2355
2356         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2357         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2358
2359         * char-ucs.h (Vcharset_mojikyo): Deleted.
2360         (Vcharset_mojikyo_2022_1): Deleted.
2361         (LEADING_BYTE_MOJIKYO): Deleted.
2362         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2363         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2364         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2365         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2366         add new member `mother'; add new member `conversion'.
2367         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2368         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2369         (CHARSET_MOTHER): New macro.
2370         (CHARSET_CONVERSION): New macro.
2371         (CONVERSION_IDENTICAL): New macro.
2372         (CONVERSION_94x60): New macro.
2373         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2374         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2375         (XCHARSET_MOTHER): New macro.
2376         (XCHARSET_CONVERSION): New macro.
2377         (MIN_CHAR_MOJIKYO): Deleted.
2378         (MAX_CHAR_MOJIKYO): Deleted.
2379         (DECODE_MOJIKYO_2022): Deleted.
2380         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2381         (charset_code_point): Changed to non-inline function.
2382         (encode_char_1): Use `charset_code_point'.
2383         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2384
2385 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2386
2387         * lread.c (read_compiled_function): Fix prototype.
2388         (read_vector): Likewise.
2389
2390 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2391
2392         * lrecord.h (struct lrecord_header): Delete `older'.
2393         (set_lheader_implementation): Delete code for `older'.
2394         (set_lheader_older_implementation): Deleted.
2395         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2396         (OLDER_RECORD_P): Deleted.
2397         (OLDER_RECORD_HEADER_P): Deleted.
2398         (alloc_older_lcrecord): Deleted.
2399         (alloc_older_lcrecord_type): Deleted.
2400
2401         * alloc.c (all_older_lcrecords): Deleted.
2402         (alloc_older_lcrecord): Deleted.
2403         (disksave_object_finalization_1): Delete code for older objects.
2404         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2405         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2406
2407 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2408
2409         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2410         instead of `make_older_vector'.
2411         (put_char_ccs_code_point): Likewise.
2412         (mark_charset): Mark `cs->decoding_table'.
2413         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2414
2415         * lisp.h (make_older_vector): Deleted.
2416         (make_vector_newer): Deleted.
2417
2418         * config.h.in (HAVE_GGC): Deleted.
2419
2420         * alloc.c (make_older_vector): Deleted.
2421         (make_vector_newer_1): Deleted.
2422         (make_vector_newer): Deleted.
2423
2424 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2425
2426         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2427         (Qideograph_daikanwa_2): New variable.
2428         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2429         (complex_vars_of_mule_charset): Add new coded-charset
2430         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2431         `LEADING_BYTE_DAIKANWA'.
2432
2433         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2434         (LEADING_BYTE_DAIKANWA_1): New macro.
2435         (LEADING_BYTE_DAIKANWA_2): New macro.
2436         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2437
2438 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2439
2440         * mule-charset.c (complex_vars_of_mule_charset): Change
2441         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2442         the second revised version.
2443
2444 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2445
2446         * mule-charset.c (Vcharset_ucs_smp): New variable.
2447         (Vcharset_ucs_sip): New variable.
2448         (Qucs_smp): New variable.
2449         (Qucs_sip): New variable.
2450         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2451         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2452         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2453         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2454         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2455         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2456
2457         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2458         (LEADING_BYTE_UCS_SIP): New macro.
2459         (MIN_CHAR_SMP): New macro.
2460         (MAX_CHAR_SMP): New macro.
2461         (MIN_CHAR_SIP): New macro.
2462         (MAX_CHAR_SIP): New macro.
2463
2464 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2465
2466         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2467         utf-2000.
2468
2469 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2470
2471         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2472         value; don't store value into `encoding_table' of `Lisp_Charset'.
2473         (mark_charset): `encoding_table' was deleted.
2474         (charset_description): Likewise.
2475         (make_charset): Likewise.
2476         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2477         `put_char_ccs_code_point'.
2478
2479         * chartab.h (Fput_char_attribute): New EXFUN.
2480
2481         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2482         is unified with normal symbol space.
2483         (Fget_char_attribute): Likewise.
2484         (Fput_char_attribute): Likewise; behavior of
2485         `put_char_ccs_code_point' is changed.
2486
2487         * char-ucs.h: Include "elhash.h".
2488         (Vchar_attribute_hash_table): New external variable.
2489         (struct Lisp_Charset): Delete `encoding_table'.
2490         (CHARSET_ENCODING_TABLE): New implementation; refer
2491         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2492         `Lisp_Charset'.
2493
2494 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2495
2496         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2497         (cs) == 0.
2498
2499 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2500
2501         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2502         `chinese-big5'.
2503
2504 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2505
2506         * chartab.c (uint8_byte_table_description): New constant.
2507         (uint8-byte-table): Use `uint8_byte_table_description'.
2508         (uint16_byte_table_description): New constant.
2509         (uint16-byte-table): Use `uint16_byte_table_description'.
2510
2511 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2512
2513         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2514         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2515
2516 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2517
2518         * mule-charset.c (Vcharset_ucs_ks): New variable.
2519         (Qucs_ks): New variable.
2520         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2521         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2522
2523         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2524
2525 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2526
2527         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2528         (Fdecode_char): Likewise.
2529
2530         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2531         chartab.h.
2532         (Fdefine_char): Modify for Fdecode_char.
2533         (Ffind_char): Likewise.
2534
2535         * mule-charset.c (Fdecode_char): Add new optional argument
2536         `defined-only'.
2537         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2538
2539 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2540
2541         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2542         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2543         (allocate_coding_system): Initialize initial-charsets of
2544         CODESYS_BIG5 in XEmacs UTF-2000.
2545         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2546         CODESYS_BIG5 in XEmacs UTF-2000.
2547         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2548         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2549
2550         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2551         variables.
2552         (Qideograph_hanziku_{1 .. 12}): Likewise.
2553         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2554         .. 12}'.
2555         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2556         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2557         `ideograph-hanziku-{1 .. 12}'.
2558
2559         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2560         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2561         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2562         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2563         (DECODE_DEFINED_CHAR): New inline function.
2564         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2565
2566 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2567
2568         * mule-charset.c (Vcharset_china3_jef): Renamed from
2569         `Vcharset_japanese_jef_china3'.
2570         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2571         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2572         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2573         (syms_of_mule_charset): Rename `china3-jef' from
2574         `japanese-jef-china3'.
2575         (complex_vars_of_mule_charset): Likewise; rename
2576         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2577
2578         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2579         `LEADING_BYTE_JEF_CHINA3'.
2580         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2581         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2582
2583 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2584
2585         * mule-charset.c (encode_builtin_char_1): Comment out special code
2586         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2587
2588         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2589         (MAX_CHAR_MOJIKYO_0): Comment out.
2590         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2591         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2592         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2593         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2594
2595 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2596
2597         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2598         (Qideograph_cbeta): New variable.
2599         (encode_builtin_char_1): Comment out special code for
2600         coded-charset `mojikyo' and `japanese-jef-china3'.
2601         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2602         (complex_vars_of_mule_charset): Add new coded-charset
2603         `ideograph-cbeta'.
2604
2605         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2606         (MIN_CHAR_CBETA): New macro.
2607         (MAX_CHAR_CBETA): New macro.
2608
2609 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2610
2611         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2612         (LEADING_BYTE_JEF_CHINA3): New macro.
2613         (MIN_CHAR_JEF_CHINA3): New macro.
2614         (MAX_CHAR_JEF_CHINA3): Likewise.
2615         (DECODE_CHAR): Fixed.
2616
2617 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2618
2619         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2620         (Qjapanese_jef_china3): New variable.
2621         (encode_builtin_char_1): Support `japanese-jef-china3'.
2622         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2623         (complex_vars_of_mule_charset): Add new coded-charset
2624         `japanese-jef-china3'.
2625
2626 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2627
2628         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2629         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2630         94^4, 96^3, 96^4, 128^n and 256^n set.
2631         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2632         (map_char_table): Likewise.
2633
2634 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2635
2636         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2637         UTF-2000.
2638
2639 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2640
2641         * chartab.h (get_char_id_table): New inline function.
2642
2643         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2644         function.
2645
2646 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2647
2648         * chartab.h (decode_char_table_range): New prototype in XEmacs
2649         UTF-2000.
2650         (put_char_id_table): New inline function in XEmacs UTF-2000.
2651
2652         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2653         function.
2654         (decode_char_table_range): Delete static declaration in XEmacs
2655         UTF-2000.
2656
2657 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2658
2659         * chartab.c (put_char_id_table): Use `put_char_table'.
2660
2661 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2662
2663         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2664         (map_over_uint16_byte_table): Likewise.
2665         (map_over_byte_table): Likewise.
2666         (map_char_table): Modify for `map_over_uint8_byte_table',
2667         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2668         UTF-2000.
2669
2670 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2671
2672         * chartab.c (struct map_char_table_for_charset_arg): New
2673         structure.
2674         (map_char_table_for_charset_fun): New function.
2675         (map_char_table): Use `map_char_table' for encoding_table of
2676         `range->charset'.
2677
2678 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2679
2680         * chartab.c (map_char_table): Check a character is found in
2681         range->charset instead of non default value is defined in
2682         char-table when range is CHARTAB_RANGE_ROW.
2683
2684 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2685
2686         * chartab.c (map_char_id_table): Deleted.
2687         (Fmap_char_attribute): Use `map_char_table' instead of
2688         `map_char_id_table'.
2689
2690 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2691
2692         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2693         UTF-2000.
2694         (update_syntax_table): Deleted in XEmacs UTF-2000.
2695
2696         * syntax.c (find_defun_start): Use `syntax_table' instead of
2697         `mirror_syntax_table' in XEmacs UTF-2000.
2698         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2699         UTF-2000.
2700         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2701         XEmacs UTF-2000.
2702         (Fmatching_paren): Likewise.
2703         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2704         in XEmacs UTF-2000.
2705         (find_start_of_comment): Likewise.
2706         (find_end_of_comment): Likewise.
2707         (Fforward_comment): Likewise.
2708         (scan_lists): Likewise.
2709         (char_quoted): Likewise.
2710         (Fbackward_prefix_chars): Likewise.
2711         (scan_sexps_forward): Likewise.
2712         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2713         (update_syntax_table): Likewise.
2714
2715         * search.c (skip_chars): Use `syntax_table' instead of
2716         `mirror_syntax_table' in XEmacs UTF-2000.
2717         (wordify): Likewise.
2718         (Freplace_match): Likewise.
2719
2720         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2721         `mirror_syntax_table' in XEmacs UTF-2000.
2722         (WORDCHAR_P_UNSAFE): Likewise.
2723         (re_match_2_internal): Likewise.
2724
2725         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2726         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2727
2728         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2729         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2730
2731         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2732         XEmacs UTF-2000.
2733
2734         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2735         UTF-2000.
2736         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2737         (char_table_description): Delete `mirror_table' in XEmacs
2738         UTF-2000.
2739         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2740         UTF-2000.
2741         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2742         (Fcopy_char_table): Likewise.
2743         (put_char_table): Don't call `update_syntax_table' in XEmacs
2744         UTF-2000.
2745
2746         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2747         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2748         (casify_region_internal): Likewise.
2749
2750         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2751
2752         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2753         `mirror_syntax_table' in XEmacs UTF-2000.
2754
2755         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2756         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2757         (Fexpand_abbrev): Likewise.
2758
2759 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2760
2761         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2762
2763 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2764
2765         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2766         (map_over_uint16_byte_table): Likewise.
2767         (map_over_byte_table): Likewise.
2768         (get_char_id_table): Refer `cit->default_value'.
2769         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2770         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2771         of character-id ranges.
2772         (mark_char_table): Mark `ct->default_value'.
2773         (char_table_description): Add `default_value'.
2774         (fill_char_table): Use `default_value'.
2775         (decode_char_table_range): Decode `nil' as
2776         `CHARTAB_RANGE_DEFAULT'.
2777         (get_char_id_table): Refer `cit->default_value'.
2778         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2779         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2780         temporary hack; check value of char-table is bound or not.
2781         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2782
2783         * chartab.h (struct Lisp_Char_Table): Add new member
2784         `default_value' in XEmacs UTF-2000.
2785         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2786         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2787         UTF-2000.
2788
2789 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2790
2791         * chartab.h (Lisp_Char_ID_Table): Deleted.
2792
2793         * chartab.c (char_table_description): Fix typo.
2794         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2795         `Lisp_Char_ID_Table'.
2796
2797 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2798
2799         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2800         `CHAR_ID_TABLE_P'.
2801
2802         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2803         `CHAR_ID_TABLE_P'.
2804
2805         * chartab.h (XCHAR_ID_TABLE): Deleted.
2806         (XSETCHAR_ID_TABLE): Deleted.
2807         (CHAR_ID_TABLE_P): Deleted.
2808
2809         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2810         `CHAR_ID_TABLE_P'.
2811         (Fget_composite_char): Likewise.
2812         (put_char_table): Likewise.
2813         (add_char_attribute_alist_mapper): Fixed.
2814         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2815         `CHAR_ID_TABLE_P'.
2816         (Fget_char_attribute): Likewise.
2817         (Fget_char_attribute): Likewise.
2818         (Fmap_char_attribute): Likewise.
2819
2820         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2821         `CHAR_ID_TABLE_P'.
2822         (encode_char_1): Likewise.
2823
2824 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2825
2826         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2827         `XCHAR_ID_TABLE'.
2828
2829         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2830         instead of `XCHAR_ID_TABLE'.
2831         (remove_char_ccs): Likewise.
2832
2833         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2834         `XCHAR_ID_TABLE'.
2835         (Fget_composite_char): Likewise.
2836         (Fchar_variants): Likewise.
2837         (put_char_table): Likewise.
2838         (add_char_attribute_alist_mapper): Likewise.
2839         (Fchar_attribute_alist): Likewise.
2840         (Fget_char_attribute): Likewise.
2841         (Fput_char_attribute): Likewise.
2842         (Fmap_char_attribute): Likewise.
2843         (Fmap_char_attribute): Likewise.
2844
2845         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2846         `XCHAR_ID_TABLE'.
2847         (encode_char_1): Likewise.
2848
2849 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2850
2851         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2852         `Lisp_Char_ID_Table'.
2853         (mark_char_id_table): Deleted.
2854         (print_char_id_table): Likewise.
2855         (char_id_table_equal): Likewise.
2856         (char_id_table_hash): Likewise.
2857         (char_id_table_description): Likewise.
2858         (char_id_table): Likewise.
2859         (make_char_id_table): Use `Fmake_char_table' and
2860         `fill_char_table'.
2861         (get_char_id_table): Use `Lisp_Char_Table' instead of
2862         `Lisp_Char_ID_Table'.
2863         (put_char_id_table): Likewise.
2864         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2865         `XCHAR_ID_TABLE'.
2866         (Fremove_char_attribute): Likewise.
2867         (syms_of_chartab): Don't define type `char-id-table'.
2868
2869         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2870         (char_id_table): Likewise.
2871         (GC_CHAR_ID_TABLE_P): Likewise.
2872         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2873         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2874         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2875         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2876         (get_char_id_table): Use `Lisp_Char_Table' instead of
2877         `Lisp_Char_ID_Table'.
2878         (put_char_id_table_0): Likewise.
2879         (put_char_id_table): Likewise.
2880
2881 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2882
2883         * chartab.h: Lisp_Byte_Table related codes are moved from
2884         chartab.h.
2885
2886         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2887
2888 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2889
2890         * chartab.h: Don't include "chartab.h".
2891         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2892         (Lisp_Char_ID_Table): Likewise.
2893         (char_id_table): Likewise.
2894         (XCHAR_ID_TABLE): Likewise.
2895         (XSETCHAR_ID_TABLE): Likewise.
2896         (CHAR_ID_TABLE_P): Likewise.
2897         (GC_CHAR_ID_TABLE_P): Likewise.
2898         (get_char_id_table): Likewise.
2899
2900         * char-ucs.h: Include "chartab.h".
2901         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2902         (Lisp_Char_ID_Table): Likewise.
2903         (char_id_table): Likewise.
2904         (XCHAR_ID_TABLE): Likewise.
2905         (XSETCHAR_ID_TABLE): Likewise.
2906         (CHAR_ID_TABLE_P): Likewise.
2907         (GC_CHAR_ID_TABLE_P): Likewise.
2908         (get_char_id_table): Likewise.
2909
2910 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2911
2912         * chartab.c (copy_uint8_byte_table): New function.
2913         (copy_uint16_byte_table): New function.
2914         (copy_byte_table): New function.
2915         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2916         characters to call.
2917         (map_over_uint16_byte_table): Likewise.
2918         (map_over_byte_table): Likewise.
2919         (get_byte_table): Move prototype to chartab.h.
2920         (put_byte_table): Likewise.
2921         (put_char_id_table_0): Moved to chartab.h.
2922         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2923         (char_table_entry_equal): Likewise.
2924         (char_table_entry_hash): Likewise.
2925         (char_table_entry_description): Likewise.
2926         (char_table_entry): Likewise.
2927         (make_char_table_entry): Likewise.
2928         (copy_char_table_entry): Likewise.
2929         (get_non_ascii_char_table_value): Likewise.
2930         (map_over_charset_ascii): Likewise.
2931         (map_over_charset_control_1): Likewise.
2932         (map_over_charset_row): Likewise.
2933         (map_over_other_charset): Likewise.
2934         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2935         (print_char_table): Likewise.
2936         (char_table_equal): Likewise.
2937         (char_table_hash): Likewise.
2938         (char_table_description): Likewise.
2939         (fill_char_table): Likewise.
2940         (Fcopy_char_table): Likewise.
2941         (get_char_table): Likewise.
2942         (Fget_range_char_table): Likewise.
2943         (put_char_table): Likewise.
2944         (map_char_table): Likewise.
2945         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2946         UTF-2000.
2947
2948 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2949
2950         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2951         `Vauto_fill_chars' in XEmacs UTF-2000.
2952
2953         * chartab.h (get_byte_table): New prototype [moved from
2954         chartab.c].
2955         (put_byte_table): Likewise [moved from chartab.c].
2956         (put_char_id_table_0): New inline function [moved from chartab.c].
2957         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2958         (Lisp_Char_Table_Entry): Likewise.
2959         (char_table_entry): Likewise.
2960         (XCHAR_TABLE_ENTRY): Likewise.
2961         (XSETCHAR_TABLE_ENTRY): Likewise.
2962         (CHAR_TABLE_ENTRYP): Likewise.
2963         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2964         (NUM_ASCII_CHARS): Likewise.
2965         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2966         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2967
2968 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2969
2970         * chartab.c (get_char_id_table): Change interface.
2971         (put_char_id_table_0): New function.
2972         (put_char_id_table): Change interface; new implementation.
2973         (Fget_composite_char): Modify for interface change of
2974         `get_char_id_table'.
2975         (Fchar_variants): Likewise.
2976         (add_char_attribute_alist_mapper): Likewise.
2977         (Fchar_attribute_alist): Likewise.
2978         (Fget_char_attribute): Likewise.
2979         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2980         as same as character as the first argument like `put-char-table';
2981         modify for interface change of `put_char_id_table'.
2982         (Fremove_char_attribute): Modify for interface change of
2983         `put_char_id_table'.
2984
2985 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2986
2987         * text-coding.c: Sync up with XEmacs 21.2.41.
2988         (COMPOSE_ADD_CHAR): Modify for interface change of
2989         `get_char_id_table'.
2990
2991         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2992         change of `put_char_id_table'.
2993         (remove_char_ccs): Likewise.
2994
2995         * chartab.h (put_char_id_table): Change interface.
2996
2997         * char-ucs.h (get_char_id_table): Change interface.
2998         (charset_code_point): Modify for interface change of
2999         `get_char_id_table'.
3000         (encode_char_1): Likewise.
3001
3002 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3003
3004         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
3005         argument `ccs'.
3006         (map_over_uint16_byte_table): Likewise.
3007         (map_over_byte_table): Likewise.
3008         (map_char_id_table): Add new argument `range' like
3009         `map_char_table'.
3010         (Fmap_char_attribute): Add new argument `range' like
3011         `Fmap_char_table'.
3012
3013 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3014
3015         * chartab.c (map_over_uint8_byte_table): Change interface of
3016         mapping function to use struct chartab_range instead of Emchar.
3017         (map_over_uint16_byte_table): Likewise.
3018         (map_over_byte_table): Likewise.
3019         (map_char_id_table): Likewise.
3020         (struct slow_map_char_id_table_arg): Deleted.
3021         (slow_map_char_id_table_fun): Deleted.
3022         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
3023         function `slow_map_char_table_fun' instead of struct
3024         `slow_map_char_id_table_arg' and function
3025         `slow_map_char_id_table_fun'.
3026
3027 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3028
3029         * mule-charset.c: Move char-it-table related codes to chartab.c.
3030         (Vutf_2000_version): Moved to chartab.c.
3031         (Fdefine_char): Likewise.
3032         (Ffind_char): Likewise.
3033         (syms_of_mule_charset): Move types `uint8-byte-table',
3034         `uint16-byte-table', `byte-table' and `char-id-table' to
3035         chartab.c; move functions `char_attribute_list,
3036         `find_char_attribute_table, `char_attribute_alist,
3037         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
3038         `map_char_attribute, `define_char, `find_char, `char_variants and
3039         `get_composite_char to chartab.c; move symbols `=>ucs',
3040         `->decomposition', `compat', `isolated', `initial', `medial',
3041         `final', `vertical', `noBreak', `fraction', `super', `sub',
3042         `circle', `square', `wide', `narrow', `small' and `font' to
3043         chartab.c.
3044         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
3045         setting codes for `Vcharacter_composition_table' and
3046         `Vcharacter_variant_table' to chartab.c.
3047         (complex_vars_of_mule_charset): Move setting code for
3048         `Vchar_attribute_hash_table' to chartab.c.
3049
3050         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3051         (make_char_id_table): New prototype.
3052         (put_char_id_table): Likewise.
3053         (Fget_char_attribute): Likewise.
3054
3055         * chartab.c: Move char-id-table related code from mule-charset.c.
3056         (Vutf_2000_version): Moved from mule-charset.c.
3057
3058         * char-ucs.h (Qucs): New external variable.
3059         (put_char_ccs_code_point): New prototype.
3060         (remove_char_ccs): Likewise.
3061
3062 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3063
3064         * mule-charset.c (Vcharset_ucs_jis): New variable.
3065         (Qucs_jis): Likewise.
3066         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3067         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3068
3069         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3070
3071 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3072
3073         * mule-charset.c (map_over_uint8_byte_table): New function.
3074         (map_over_uint16_byte_table): Likewise.
3075         (map_over_byte_table): Likewise.
3076         (map_char_id_table): Likewise.
3077         (slow_map_char_id_table_fun): Likewise.
3078         (Fmap_char_attribute): Likewise.
3079         (syms_of_mule_charset): Add new function `map-char-attribute'.
3080
3081 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3082
3083         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3084         (syms_of_mule_charset): Add new function `find-char'.
3085
3086 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3087
3088         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3089         XEmacs UTF-2000.
3090         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3091         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3092         XEmacs UTF-2000.
3093         (complex_vars_of_mule_charset): Add new coded-charset
3094         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3095         `ideograph-gt-pj-*'.
3096
3097         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3098
3099 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3100
3101         * mule-charset.c (encode_builtin_char_1): Purge codes about
3102         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3103         {MIN|MAX}_CHAR_HEBREW.
3104         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3105         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3106
3107         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3108         (MAX_CHAR_GREEK): Purged.
3109         (MIN_CHAR_CYRILLIC): Purged.
3110         (MAX_CHAR_CYRILLIC): Purged.
3111         (MIN_CHAR_HEBREW): Commented out.
3112         (MAX_CHAR_HEBREW): Likewise.
3113
3114 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3115
3116         * mule-charset.c (Qto_ucs): New variable.
3117         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3118         (Fdefine_char): Likewise.
3119         (syms_of_mule_charset): Add new symbol `=>ucs'.
3120
3121 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3122
3123         * mule-charset.c (Fdecode_char): Fixed.
3124
3125 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3126
3127         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3128         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3129         "tcvn5712-1".
3130
3131 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3132
3133         * mule-charset.c (Vcharset_ucs_big5): New variable.
3134         (Qucs_big5): Likewise.
3135         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3136         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3137
3138         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3139
3140 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3141
3142         * mule-charset.c (decode_builtin_char): Check Big5 code range
3143         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3144
3145 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3146
3147         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3148         (Qchinese_gb12345): Likewise.
3149         (Fdecode_builtin_char): Fixed.
3150         (syms_of_mule_charset): Add `chinese-gb12345'.
3151         (complex_vars_of_mule_charset): Add coded-charset
3152         `chinese-gb12345'.
3153
3154         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3155         (LEADING_BYTE_CHINESE_GB12345): New macro.
3156
3157 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3158
3159         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3160         and `latin-viscii-upper' for `latin-viscii'.
3161
3162 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3163
3164         * mule-charset.c (Fdecode_builtin_char): Comment out
3165         regularization code for ISO-IR GR representation.
3166
3167 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3168
3169         * mule-charset.c (decode_builtin_char): New function; renamed from
3170         `make_builtin_char'; return -1 instead of signal.
3171         (Fdecode_builtin_char): Use `decode_builtin_char'.
3172
3173         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3174         `make_builtin_char'.
3175         (DECODE_CHAR): Use `decode_builtin_char' instead of
3176         `make_builtin_char'; use mapping table of `chinese-big5' for
3177         `chinese-big5-{1,2}'.
3178
3179 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3180
3181         * text-coding.c (char_encode_big5): New function.
3182         (char_finish_big5): Likewise.
3183         (reset_encoding_stream): Use `char_encode_big5' and
3184         `char_finish_big5' for CODESYS_BIG5.
3185         (mule_encode): Don't use `encode_coding_big5'.
3186         (encode_coding_big5): Deleted.
3187
3188 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3189
3190         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3191         0x81- in XEmacs UTF-2000.
3192         (detect_coding_big5): Likewise.
3193
3194 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3195
3196         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3197         generate character-id if the CCS property does not have
3198         corresponding predefined character.
3199         (make_builtin_char): Return -1 if corresponding predefined
3200         character is not found.
3201         (Fdecode_char): Return nil if corresponding character is not
3202         found.
3203         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3204         don't map to builtin ucs space.
3205
3206 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3207
3208         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3209         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3210
3211 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3212
3213         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3214         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3215         (Qideograph_gt): Likewise.
3216         (Qideograph_gt_pj_{1..11}): Likewise.
3217         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3218         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3219         `ideograph-gt-pj-11'.
3220         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3221         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3222         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3223
3224         * char-ucs.h (LEADING_BYTE_GT): New macro.
3225         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3226         (MIN_CHAR_GT): Likewise.
3227         (MAX_CHAR_GT): Likewise.
3228
3229 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3230
3231         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3232         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3233
3234         * doprnt.c (unsigned_int_converters): Add `c'.
3235         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3236
3237         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3238         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3239         `MIN_CHAR_MOJIKYO'.
3240         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3241         (MAX_CHAR_MOJIKYO_0): New macro.
3242         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3243
3244 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3245
3246         * mule-charset.c (Fdefine_char): Delete cemented out code.
3247         (encode_builtin_char_1): Modify for new allocation of builtin
3248         Mojikyo characters.
3249
3250         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3251
3252 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3253
3254         * mule-charset.c (Vcharset_ucs_cns): New variable.
3255         (Qucs_cns): New variable.
3256         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3257         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3258
3259 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3260
3261         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3262
3263 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3264
3265         * search.c (search_buffer): Make `charset_base_code' as
3266         character-id >> 6 to eliminate the corresponding last byte in
3267         UTF-8 representation [I'm not sure it is right thing].
3268         (boyer_moore): Likewise.
3269
3270 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3271
3272         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3273         representation in MULE.
3274
3275 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3276
3277         * text-coding.c (Fmake_coding_system): Use
3278         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3279         `EXTERNAL_PROPERTY_LIST_LOOP'.
3280
3281 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3282
3283         * text-coding.c (decode_output_utf8_partial_char): New function.
3284         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3285
3286 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3287
3288         * text-coding.c (decode_coding_utf8): Output original byte
3289         sequence if it is broken; change order of conditions.
3290
3291         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3292         of conditions.
3293
3294         * mb-multibyte.h (BYTE_ASCII_P):
3295         Use bit ops for char-signedness safety.
3296         (BYTE_C0_P): Use bit ops for char-signedness safety.
3297         (BYTE_C1_P): Use bit ops for char-signedness safety.
3298
3299         * character.h: (XCHAR_OR_CHAR_INT):
3300         Always use inline function.
3301         Remove redundant type checking assert() - XINT will abort quite
3302         nicely.
3303
3304 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3305
3306         * text-coding.c: (Fencode_shift_jis_char):
3307         (Fencode_big5_char):
3308         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3309         Replace 0 with '\0' when working with bytes.
3310         Replace initial "(" with "\(" in docstrings.
3311
3312         (Fmake_coding_system):
3313         When type is ccl and value is vector, register it with a proper
3314         symbol.  And checks whether the given ccl program is valid.
3315         (mule_decode): When calling ccl_driver, if src indicates
3316         NULL pointer, set an empty string instead.
3317         (mule_encode): Likewise.
3318
3319         (detect_eol_type):
3320         (detect_coding_sjis):
3321         (decode_coding_sjis):
3322         (detect_coding_big5):
3323         (decode_coding_big5):
3324         (detect_coding_ucs4):
3325         (decode_coding_ucs4):
3326         (detect_coding_utf8):
3327         (decode_coding_utf8):
3328         (detect_coding_iso2022):
3329         (decode_coding_iso2022):
3330         (decode_coding_no_conversion):
3331         (mule_decode):
3332         Make all detecting and decoding functions take an Extbyte * arg.
3333         (text_encode_generic):
3334         (encode_coding_big5):
3335         (encode_coding_no_conversion):
3336         (mule_encode):
3337         Make all encoding functions take a Bufbyte * arg.
3338         Use size_t instead of unsigned int for memory sizes.
3339         Only cast to unsigned char whenever dereferencing Extbyte *.
3340
3341         (struct lrecord_description fcd_description_1): Use countof.
3342         (complex_vars_of_file_coding):
3343         Use countof instead of sizeof.
3344         Use CHECK_NATNUM instead of CHECK_INT.
3345
3346 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3347
3348         * mule-charset.c (Fget_char_attribute): Add new optional argument
3349         `default-value'.
3350         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3351         (remove_char_ccs): Likewise.
3352
3353 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3354
3355         * text-coding.c (char_encode_shift_jis): New implementation in
3356         UTF-2000.
3357         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3358         ...)'.
3359
3360         * mule-charset.c (Vcharset_chinese_big5): New variable in
3361         UTF-2000.
3362         (Qchinese_big5): New variable in UTF-2000.
3363         (BIG5_SAME_ROW): New macro in UTF-2000.
3364         (make_builtin_char): Use builtin characters of
3365         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3366         characters of `Vcharset_chinese_big5'.
3367         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3368         (complex_vars_of_mule_charset): Add new coded-charset
3369         `chinese-big5' in UTF-2000.
3370
3371         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3372         (Vcharset_chinese_big5): New external variable declaration.
3373         (Vcharset_japanese_jisx0208_1990): Likewise.
3374
3375 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3376
3377         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3378         function.
3379         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3380
3381 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3382
3383         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3384         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3385         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3386         `mojikyo-pj-*'.
3387
3388 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3389
3390         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3391
3392 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3393
3394         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3395         to 0.17.
3396
3397 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3398
3399         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3400         for `CHARSET_BY_ATTRIBUTES'.
3401         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3402         `CHARSET_BY_ATTRIBUTES'.
3403
3404         * text-coding.c (struct decoding_stream): Rename member `CH' to
3405         `CPOS'.
3406         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3407         (decode_coding_sjis): Likewise.
3408         (decode_coding_big5): Likewise.
3409         (decode_coding_ucs4): Likewise.
3410         (decode_coding_utf8): Likewise.
3411         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3412         `CHARSET_BY_ATTRIBUTES'.
3413         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3414         `str->counter'; decode 3, 4 bytes sets.
3415         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3416         sets.
3417         (decode_coding_no_conversion): Use `str->cpos' instead of
3418         `str->ch'.
3419
3420         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3421         (Qmojikyo_2022_1): New variable.
3422         (make_charset): Don't use `CHARSET_TYPE_*'.
3423         (range_charset_code_point): Support coded-charset
3424         `mojikyo-2022-1'.
3425         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3426         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3427         `CHARSET_BY_ATTRIBUTES'.
3428         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3429         `CHARSET_BY_ATTRIBUTES'.
3430         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3431         (complex_vars_of_mule_charset): Add new coded-charset
3432         `mojikyo-2022-1'.
3433
3434         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3435         interface; changed to inline function.
3436
3437         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3438         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3439         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3440         (CHARSET_TYPE_94): Deleted.
3441         (CHARSET_TYPE_94X94): Deleted.
3442         (CHARSET_TYPE_96): Deleted.
3443         (CHARSET_TYPE_96X96): Deleted.
3444         (CHARSET_TYPE_128): Deleted.
3445         (CHARSET_TYPE_128X128): Deleted.
3446         (CHARSET_TYPE_256): Deleted.
3447         (CHARSET_TYPE_256X256): Deleted.
3448         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3449         to inline function.
3450         (DECODE_MOJIKYO_2022): New inline function.
3451         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3452         `Vcharset_mojikyo_2022_1'.
3453
3454 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3455
3456         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3457         instead of `EQ'.
3458         (put_byte_table): Likewise.
3459         (char_id_table_equal): Use `get_byte_table' [new implementation].
3460
3461 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3462
3463         * mule-charset.c: Include <limits.h> in UTF-2000.
3464         (BT_UINT8_MIN): New macro in UTF-2000.
3465         (BT_UINT8_MAX): New macro in UTF-2000.
3466         (BT_UINT8_t): New macro in UTF-2000.
3467         (BT_UINT8_nil): New macro in UTF-2000.
3468         (BT_UINT8_unbound): New macro in UTF-2000.
3469         (INT_UINT8_P): New inline function in UTF-2000.
3470         (UINT8_VALUE_P): New inline function in UTF-2000.
3471         (UINT8_ENCODE): New inline function in UTF-2000.
3472         (UINT8_DECODE): New inline function in UTF-2000.
3473         (mark_uint8_byte_table): New function in UTF-2000.
3474         (print_uint8_byte_table): New function in UTF-2000.
3475         (uint8_byte_table_equal): New function in UTF-2000.
3476         (uint8_byte_table_hash): New function in UTF-2000.
3477         (make_uint8_byte_table): New function in UTF-2000.
3478         (uint8_byte_table_same_value_p): New function in UTF-2000.
3479         (BT_UINT16_MIN): New macro in UTF-2000.
3480         (BT_UINT16_MAX): New macro in UTF-2000.
3481         (BT_UINT16_t): New macro in UTF-2000.
3482         (BT_UINT16_nil): New macro in UTF-2000.
3483         (BT_UINT16_unbound): New macro in UTF-2000.
3484         (INT_UINT16_P): New inline function in UTF-2000.
3485         (UINT16_VALUE_P): New inline function in UTF-2000.
3486         (UINT16_ENCODE): New inline function in UTF-2000.
3487         (UINT16_DECODE): New inline function in UTF-2000.
3488         (UINT8_TO_UINT16): New inline function in UTF-2000.
3489         (mark_uint16_byte_table): New function in UTF-2000.
3490         (print_uint16_byte_table): New function in UTF-2000.
3491         (uint16_byte_table_equal): New function in UTF-2000.
3492         (uint16_byte_table_hash): New function in UTF-2000.
3493         (make_uint16_byte_table): New function in UTF-2000.
3494         (uint16_byte_table_same_value_p): New function in UTF-2000.
3495         (print_byte_table): New function in UTF-2000.
3496         (byte-table): Use `print_byte_table' as printer.
3497         (make_byte_table): Delete second argument `older'.
3498         (byte_table_same_value_p): New function in UTF-2000.
3499         (copy_byte_table): Deleted.
3500         (get_byte_table): New function in UTF-2000.
3501         (put_byte_table): New function in UTF-2000.
3502         (print_char_id_table): New function in UTF-2000.
3503         (char-id-table): Use `print_char_id_table' as printer.
3504         (make_char_id_table): Delete second argument `older'.
3505         (get_char_id_table): Use `get_byte_table [new implementation].
3506         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3507         implementation].
3508         (Ffind_char_attribute_table): New function in UTF-2000.
3509         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3510         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3511         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3512         (syms_of_mule_charset): Add new function
3513         `find-char-attribute-table' in UTF-2000.
3514
3515         * lrecord.h (enum lrecord_type): Add
3516         `lrecord_type_uint16_byte_table' and
3517         `lrecord_type_uint8_byte_table'.
3518
3519         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3520         (Lisp_Uint8_Byte_Table): New type.
3521         (XUINT8_BYTE_TABLE): New macro.
3522         (XSETUINT8_BYTE_TABLE): New macro.
3523         (UINT8_BYTE_TABLE_P): New macro.
3524         (GC_UINT8_BYTE_TABLE_P): New macro.
3525         (struct Lisp_Uint16_Byte_Table): New structure.
3526         (Lisp_Uint16_Byte_Table): New type.
3527         (XUINT16_BYTE_TABLE): New macro.
3528         (XSETUINT16_BYTE_TABLE): New macro.
3529         (UINT16_BYTE_TABLE_P): New macro.
3530         (GC_UINT16_BYTE_TABLE_P): New macro.
3531
3532 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3533
3534         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3535         (Vcharacter_ideographic_strokes_table): Deleted.
3536         (Vcharacter_total_strokes_table): Deleted.
3537         (Vcharacter_morohashi_daikanwa_table): Deleted.
3538         (Vcharacter_decomposition_table): Deleted.
3539         (Qname): Deleted because it is duplicated.
3540         (Qideographic_radical): Deleted.
3541         (Qideographic_strokes): Deleted.
3542         (Qtotal_strokes): Deleted.
3543         (Qmorohashi_daikanwa): Deleted.
3544         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3545         `ideographic-radical', `ideographic-strokes', `total-strokes',
3546         `morohashi-daikanwa' and `->decomposition'.
3547         (Fget_char_attribute): Likewise.
3548         (Fput_char_attribute): Likewise; use `make-vector' instead of
3549         `make_older_vector' for `->decomposition' value.
3550         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3551         `ideograph-daikanwa'.
3552         (syms_of_mule_charset): Delete builtin symbols `name',
3553         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3554         `morohashi-daikanwa'.
3555         (vars_of_mule_charset): Don't setup
3556         `Vcharacter_ideographic_radical_table',
3557         `Vcharacter_ideographic_strokes_table',
3558         `Vcharacter_total_strokes_table',
3559         `Vcharacter_morohashi_daikanwa_table' and
3560         `Vcharacter_decomposition_table'.
3561
3562 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3563
3564         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3565         `make_older_vector', `make_vector_newer_1' and
3566         `make_vector_newer'.
3567
3568         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3569         `make_older_vector' and `make_vector_newer'.
3570
3571         * config.h.in (HAVE_GGC): New macro.
3572
3573 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3574
3575         * mule-charset.c (struct char_attribute_list_closure): New
3576         structure in UTF-2000.
3577         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3578         (Fchar_attribute_list): Likewise.
3579         (Fset_charset_mapping_table): Use `make_vector_newer'.
3580         (Fdecode_builtin_char): New function in UTF-2000.
3581         (syms_of_mule_charset): Add new function `char-attribute-list' and
3582         `decode-builtin-char' in UTF-2000.
3583
3584         * lisp.h (make_vector_newer): New prototype.
3585
3586         * alloc.c (make_vector_newer_1): New function.
3587         (make_vector_newer): New function.
3588
3589 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3590
3591         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3592         50100)'.
3593
3594 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3595
3596         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3597         (Vcharacter_attribute_table): Deleted.
3598         (Vcharacter_name_table): Deleted.
3599         (put_char_attribute): Deleted.
3600         (remove_char_attribute): Deleted.
3601         (struct char_attribute_alist_closure): New structure.
3602         (add_char_attribute_alist_mapper): New function.
3603         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3604         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3605         (Fget_char_attribute): Likewise.
3606         (Fput_char_attribute): Likewise.
3607         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3608         of `remove_char_attribute'.
3609         (Fdefine_char): Return character.
3610         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3611         and `Vcharacter_name_table'.
3612         (complex_vars_of_mule_charset): Likewise
3613         `Vchar_attribute_hash_table'.
3614
3615 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3616
3617         * character.h (CHARC_CHARSET): New macro.
3618         (CHARC_CHARSET_ID): New macro.
3619         (CHARC_CODE_POINT): New macro.
3620         (CHARC_COLUMNS): New macro.
3621         (CHARC_TO_CHAR): New inline function.
3622         (CHARC_EQ): New inline function.
3623         (CHARC_ASCII_EQ): New inline function.
3624         (CHARC_IS_SPACE): New inline function.
3625         (ASCII_TO_CHARC): New inline function.
3626
3627         * char-ucs.h (encode_char_2): Deleted.
3628         (ENCODE_CHAR): Use `encode_char_1' again.
3629         (breakup_char_1): Likewise.
3630         (CHAR_TO_CHARC): New inline function.
3631
3632         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3633
3634 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3635
3636         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3637         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3638         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3639         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3640         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3641         `CHARC_IS_SPACE'.
3642         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3643
3644         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3645         `CHARC_CODE_POINT'.
3646         (x_output_display_block): Use `CHARC_CHARSET' and
3647         `CHARC_ASCII_EQ'.
3648
3649         * redisplay-tty.c (tty_output_display_block): Use
3650         `CHARC_ASCII_EQ'.
3651         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3652
3653         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3654
3655         * insdel.c (find_charsets_in_charc_string): Use
3656         `CHARC_CHARSET_ID'.
3657         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3658         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3659         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3660         (convert_charc_string_into_malloced_string): Likewise.
3661
3662 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3663
3664         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3665         instead of <Emchar_dynarr *> for buf; use
3666         `convert_bufbyte_string_into_charc_dynarr' instead of
3667         `convert_bufbyte_string_into_emchar_dynarr'; use
3668         `find_charsets_in_charc_string' instead of
3669         `find_charsets_in_emchar_string'.
3670
3671         * redisplay.h:
3672         - Include "character.h".
3673         (struct rune): New member `cglyph'; delete member `chr'.
3674
3675         * redisplay.c (redisplay_text_width_charc_string): New function;
3676         delete `redisplay_text_width_emchar_string'.
3677         (rtw_charc_dynarr): New variable; renamed from
3678         `rtw_emchar_dynarr'.
3679         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3680         `rtw_emchar_dynarr'; use
3681         `convert_bufbyte_string_into_charc_dynarr' instead of
3682         `convert_bufbyte_string_into_emchar_dynarr'; use
3683         `redisplay_text_width_charc_string' instead of
3684         `redisplay_text_width_emchar_string'.
3685         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3686         instead of `rtw_emchar_dynarr'; use
3687         `convert_bufbyte_string_into_charc_dynarr' instead of
3688         `convert_bufbyte_string_into_emchar_dynarr'.
3689         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3690         `redisplay_text_width_charc_string' instead of
3691         `redisplay_text_width_emchar_string'.
3692         (create_text_block): Modify for <struct rune> change.
3693         (generate_formatted_string_db): Likewise.
3694         (create_string_text_block): Likewise.
3695         (pixel_to_glyph_translation): Likewise.
3696
3697         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3698         instead of <const Emchar *>.
3699         (x_text_width): Likewise.
3700         (x_output_display_block): Use <Charc_dynarr *> instead
3701         <Emchar_dynarr *>; modify for <structure rune> change.
3702         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3703         *>.
3704
3705         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3706         <const Emchar *>; use `charc_string_displayed_columns' instead of
3707         `emchar_string_displayed_columns'.
3708         (tty_output_display_block): Use <Charc_dynarr *> instead of
3709         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3710         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3711         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3712         `tty_output_emchar_dynarr_dynarr'.
3713         (tty_output_charc_dynarr): New function; delete
3714         `tty_output_charc_dynarr'.
3715
3716         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3717         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3718         <Emchar_dynarr *> for buf; use
3719         `convert_bufbyte_string_into_charc_dynarr' instead of
3720         `convert_bufbyte_string_into_emchar_dynarr'.
3721
3722         * frame.c (title_string_charc_dynarr): New variable; renamed from
3723         `title_string_emchar_dynarr'.
3724         (generate_title_string): Use `title_string_charc_dynarr' instead
3725         of `title_string_emchar_dynarr'; use
3726         `convert_charc_string_into_malloced_string' instead of
3727         `convert_emchar_string_into_malloced_string'.
3728         (init_frame): Use `title_string_charc_dynarr' instead of
3729         `title_string_emchar_dynarr'.
3730
3731         * console.h:
3732         - Include "character.h".
3733         (struct console_methods): Use <const Charc *> instead of <const
3734         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3735         <Emchar_dynarr *> in output_string_method.
3736
3737         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3738         <Emchar_dynarr *>.
3739
3740         * console-stream.c (stream_text_width): Use <const Charc *>
3741         instead of <const Emchar *>.
3742
3743         * character.h (Charc_dynarr): New type.
3744
3745         * char-ucs.h (structure Charc): New structure; define new type
3746         `Charc'.
3747
3748         * char-lb.h (DECODE_CHAR): New inline function.
3749         (encode_char_1): New inline function.
3750         (ENCODE_CHAR): New macro.
3751         (structure Charc): New structure; define new type `Charc'.
3752
3753         * char-1byte.h (Vcharset_control_1): New macro.
3754         (Vcharset_latin_iso8859_1): New macro.
3755         (DECODE_CHAR): New inline function.
3756         (encode_char_1): New inline function.
3757         (ENCODE_CHAR): New macro.
3758         (structure Charc): New structure; define new type `Charc'.
3759
3760         * insdel.c (find_charsets_in_charc_string): New function; delete
3761         `find_charsets_in_emchar_string'.
3762         (charc_string_displayed_columns): New function; delete
3763         `emchar_string_displayed_columns'.
3764         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3765         `convert_bufbyte_string_into_emchar_dynarr'.
3766         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3767         `convert_charc_string_into_bufbyte_dynarr'.
3768         (convert_charc_string_into_malloced_string): New function; delete
3769         `convert_charc_string_into_malloced_string'.
3770
3771         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3772         `find_charsets_in_emchar_string'.
3773         (charc_string_displayed_columns): New prototype; delete
3774         `emchar_string_displayed_columns'.
3775         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3776         `convert_charc_string_into_bufbyte_dynarr'.
3777         (convert_charc_string_into_malloced_string): New prototype; delete
3778         `convert_charc_string_into_malloced_string'.
3779
3780 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3781
3782         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3783
3784 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3785
3786         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3787
3788         * char-ucs.h: Use <short> for <Charset_ID>.
3789
3790         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3791         <Charset_ID>.
3792
3793 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3794
3795         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3796         to 0.16.
3797
3798 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3799
3800         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3801         variable.
3802         (Qmorohashi_daikanwa): New variable.
3803         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3804         for `morohashi-daikanwa' attribute.
3805         (Fget_char_attribute): Likewise.
3806         (Fput_char_attribute): Likewise.
3807         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3808         has the same value of `ideograph-daikanwa'.
3809         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3810         (vars_of_mule_charset): Setup
3811         `Vcharacter_morohashi_daikanwa_table'.
3812
3813 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3814
3815         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3816         attributes.
3817         (add_charset_to_list_mapper): Add `key' instead of
3818         `XCHARSET_NAME (value)' to return aliases.
3819
3820 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3821
3822         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3823         variable.
3824         (Vcharacter_ideographic_strokes_table): New variable.
3825         (Qideographic_radical): New variable.
3826         (Qideographic_strokes): New variable.
3827         (Fchar_attribute_alist): Use
3828         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3829         attribute; use `Vcharacter_ideographic_strokes_table' for
3830         `ideographic-strokes' attribute.
3831         (Fget_char_attribute): Likewise.
3832         (Fput_char_attribute): Likewise.
3833         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3834         `ideographic-strokes'.
3835         (vars_of_mule_charset): Setup
3836         `Vcharacter_ideographic_radical_table' and
3837         `Vcharacter_ideographic_strokes_table'.
3838
3839 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3840
3841         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3842         (Qtotal_strokes): New variable.
3843         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3844         `total-strokes' attribute.
3845         (Fget_char_attribute): Likewise.
3846         (Fput_char_attribute): Likewise.
3847         (syms_of_mule_charset): Add new symbol `total-strokes'.
3848         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3849
3850 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3851
3852         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3853         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3854         are found.
3855         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3856         `->decomposition' attribute.
3857         (Fput_char_attribute): Likewise.
3858         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3859
3860 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3861
3862         * mule-charset.c (decoding_table_check_elements): New function.
3863         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3864
3865 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3866
3867         * mule-charset.c (Fset_charset_mapping_table): Use
3868         `put_char_ccs_code_point'.
3869
3870 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3871
3872         * mule-charset.c (decoding_table_put_char): New inline function.
3873         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3874
3875 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3876
3877         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3878         (XCHARSET_BYTE_SIZE): New macro.
3879         (decoding_table_remove_char): New inline function.
3880         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3881         `decoding_table_remove_char'.
3882         (remove_char_ccs): Use `decoding_table_remove_char'.
3883         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3884
3885 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3886
3887         * mule-charset.c (Vcharacter_name_table): New variable.
3888         (Qname): New variable.
3889         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3890         attribute.
3891         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3892         `Vcharacter_name_table' for `name' attribute.
3893         (Fremove_char_attribute): Use function `remove_char_ccs'.
3894         (put_char_ccs_code_point): New function.
3895         (remove_char_ccs): New function.
3896         (syms_of_mule_charset): Add new symbol `name'.
3897         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3898
3899 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3900
3901         * mule-charset.c (make_byte_table): Add new argument `older'.
3902         (make_char_id_table): Likewise.
3903         (copy_char_id_table): Comment out because it is not used.
3904         (put_char_id_table): Modify for `make_byte_table'.
3905         (Fput_char_attribute): Make encoding_table as older object;
3906         inherit older bit of `Vcharacter_composition_table'.
3907         (mark_charset): Don't mark `cs->encoding_table'.
3908         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3909         normal object; make `Vcharacter_composition_table' as an older
3910         object; delete staticpro for `Vcharacter_composition_table'; make
3911         `Vcharacter_variant_table' as a normal object.
3912
3913         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3914         (mark_object): Don't check older object in UTF-2000.
3915
3916         * lrecord.h (struct lrecord_header): Add new member `older' in
3917         UTF-2000.
3918         (set_lheader_implementation): Setup `SLI_header->older' in
3919         UTF-2000.
3920         (set_lheader_older_implementation): New macro in UTF-2000.
3921         (OLDER_RECORD_P): New macro in UTF-2000.
3922         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3923         (alloc_older_lcrecord): New prototype in UTF-2000.
3924         (alloc_older_lcrecord_type): New macro in UTF-2000.
3925
3926 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3927
3928         * mule-charset.c (byte_table_description): Use
3929         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3930         (char_id_table_description): Delete bogus `, 1'.
3931         (Fget_char_attribute): Refer encoding_table of each coded-charset
3932         to get value of coded-charset attribute of a character.
3933         (Fput_char_attribute): Use `make_older_vector' instead of
3934         `make_vector'; use encoding_table of each coded-charset to store
3935         value of coded-charset attribute of a character.
3936         (Fremove_char_attribute): Use encoding_table of each coded-charset
3937         to store value of coded-charset attribute of a character.
3938         (mark_charset): Mark `cs->encoding_table'; don't mark
3939         `cs->decoding_table'.
3940         (charset_description): Add description of new member
3941         `encoding_table'.
3942         (make_charset): Initialize `encoding_table'.
3943
3944         * char-ucs.h (struct Lisp_Charset): Add new member
3945         `encoding_table'.
3946         (CHARSET_ENCODING_TABLE): New macro.
3947         (XCHARSET_ENCODING_TABLE): New macro.
3948         (charset_code_point): New implementation.
3949         (encode_char_1): Likewise.
3950
3951         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3952         (disksave_object_finalization_1): Call finalizers of
3953         `all_older_lcrecords' in UTF-2000.
3954         (make_older_vector): New function in UTF-2000.
3955         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3956         UTF-2000.
3957
3958         * lisp.h (make_older_vector): New prototype in UTF-2000.
3959
3960 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3961
3962         * lrecord.h (enum lrecord_type): Rename
3963         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3964
3965         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3966         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3967         `get_char_code_table'.
3968
3969         * mule-charset.c (mark_char_id_table): Renamed from
3970         `mark_char_code_table'.
3971         (char_id_table_equal): Renamed from `char_code_table_equal'.
3972         (char_id_table_hash): Renamed from `char_code_table_hash'.
3973         (make_char_id_table): Renamed from `make_char_code_table'.
3974         (copy_char_id_table): Renamed from `copy_char_code_table'.
3975         (get_char_id_table): Renamed from `get_char_code_table'.
3976         (put_char_id_table): Renamed from `put_char_code_table'.
3977         (to_char_id): Renamed from `to_char_code'.
3978
3979         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3980         `Lisp_Char_Code_Table'.
3981         (char_id_table): Renamed from `char_code_table'.
3982         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3983         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3984         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3985         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3986         (get_char_id_table): Renamed from `get_char_code_table'.
3987
3988 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3989
3990         * lrecord.h (enum lrecord_type): Rename
3991         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3992
3993         * mule-charset.c (mark_byte_table): Renamed from
3994         `mark_char_byte_table'.
3995         (byte_table_equal): Renamed from `char_byte_table_equal'.
3996         (byte_table_hash): Renamed from `byte_table_hash'.
3997         (make_byte_table): Renamed from `make_byte_table'.
3998         (copy_byte_table): Renamed from `copy_char_byte_table'.
3999
4000         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
4001         `Lisp_Char_Byte_Table'.
4002         (byte_table): Renamed from `char_byte_table'.
4003         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
4004         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
4005         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
4006         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
4007
4008 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4009
4010         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
4011         (dfc_convert_to_internal_format): Likewise.
4012         
4013         * text-coding.c (Fcoding_system_canonical_name_p): New function.
4014         * text-coding.c (Fcoding_system_alias_p): New function.
4015         * text-coding.c (Fcoding_system_aliasee): New function.
4016         * text-coding.c (append_suffix_to_symbol): New function.
4017         * text-coding.c (dangling_coding_system_alias_p): New function.
4018         * text-coding.c (Ffind_coding_system):
4019         * text-coding.c (Fcopy_coding_system):
4020         * text-coding.c (encode_coding_no_conversion):
4021         * text-coding.c (syms_of_file_coding):
4022         * text-coding.c (vars_of_file_coding):
4023         Rewrite coding system alias code.
4024         Allow nested aliases, like symbolic links.
4025         Allow redefinition of coding system aliases.
4026         Prevent existence of dangling coding system aliases.
4027         Eliminate convert_to_external_format.
4028         Eliminate convert_to_internal_format.
4029         
4030         * text-coding.c: Change enum eol_type to eol_type_t.
4031
4032 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4033
4034         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
4035         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4036
4037         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
4038         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4039
4040 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4041
4042         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
4043         `ideograph-daikanwa'.
4044
4045         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
4046         (Vcharset_ucs_bmp): Likewise.
4047         (Vcharset_mojikyo): Add new extern variable definition.
4048         (Vcharset_latin_iso8859_2): Deleted because it is not used.
4049         (Vcharset_latin_iso8859_3): Likewise.
4050         (Vcharset_latin_iso8859_4): Likewise.
4051         (Vcharset_latin_iso8859_9): Likewise.
4052         (Vcharset_latin_viscii_lower): Likewise.
4053         (Vcharset_latin_viscii_upper): Likewise.
4054         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4055         `mojikyo' code-point is used to decode.
4056         (encode_char_2): New function [to convert `mojikyo' code-point to
4057         Mojikyo font encoding].
4058         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4059         (breakup_char_1): Likewise.
4060         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4061
4062 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4063
4064         * text-coding.c (Fmake_coding_system): Add document about
4065         `disable-composition' property.
4066
4067 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4068
4069         * text-coding.c (Qdisable_composition): New variable; delete
4070         `Qcomposite'.
4071         (Fmake_coding_system): Add new property `disable-composite';
4072         delete property `composite'.
4073         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4074         instead of `!CODING_SYSTEM_COMPOSITE'.
4075         (syms_of_file_coding): Add new symbol `disable-composition';
4076         delete symbol `composite'.
4077
4078         * file-coding.h (struct Lisp_Coding_System): Add
4079         `disable_composition'; delete `enable_composition'.
4080         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4081         `CODING_SYSTEM_COMPOSITE'.
4082         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4083         `XCODING_SYSTEM_COMPOSITE'.
4084
4085 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4086
4087         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4088         to 0.15.
4089
4090 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4091
4092         * text-coding.c (Qcomposite): New variable.
4093         (Fmake_coding_system): Add new property `composite'.
4094         (struct decoding_stream): Add `combined_char_count',
4095         `combined_chars' and `combining_table' in UTF-2000.
4096         (COMPOSE_FLUSH_CHARS): New macro.
4097         (COMPOSE_ADD_CHAR): New macro.
4098         (reset_decoding_stream): Reset `str->combined_char_count' and
4099         `str->combining_table' in UTF-2000.
4100         (decode_coding_iso2022): Modify for character-decomposition.
4101         (syms_of_file_coding): Add new symbol `composite'.
4102
4103 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4104
4105         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4106         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4107         of `Vcharacter_composition_table' if `->decomposition' property
4108         has only 1 element.
4109         (Qlatin_tcvn5712): New variable.
4110         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4111         (complex_vars_of_mule_charset): Add new coded-charset
4112         `latin-tcvn5712'.
4113
4114         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4115
4116 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4117
4118         * file-coding.h (struct Lisp_Coding_System): Add
4119         `enable_composition'.
4120         (CODING_SYSTEM_COMPOSITE): New macro.
4121         (XCODING_SYSTEM_COMPOSITE): New macro.
4122
4123 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4124
4125         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4126
4127 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4128
4129         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4130         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4131
4132 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4133
4134         * mule-charset.c (Vcharset_mojikyo): New variable.
4135         (Fdefine_char): Don't use coded-charset which does not have
4136         non-builtin character range to allocate character-id.
4137         (Qmojikyo): New variable.
4138         (syms_of_mule_charset): Add new symbol `mojikyo'.
4139         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4140
4141         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4142         (LEADING_BYTE_MOJIKYO): New macro.
4143         (MIN_CHAR_MOJIKYO): New macro.
4144         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4145         (MAX_CHAR_MOJIKYO): New macro.
4146
4147 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4148
4149         * mule-charset.c (remove_char_attribute): Fixed.
4150
4151 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4152
4153         * mule-charset.c (remove_char_attribute): New function.
4154         (Fremove_char_attribute): New function.
4155         (encode_builtin_char_1): Comment out builtin-support for
4156         greek-iso8859-7 and cyrillic-iso8859-5.
4157         (Fdecode_char): Check `code' is an integer.
4158         (syms_of_mule_charset): Add `remove-char-attribute'.
4159         (MIN_CHAR_GREEK): Deleted.
4160         (MAX_CHAR_GREEK): Likewise.
4161         (MIN_CHAR_CYRILLIC): Likewise.
4162         (MAX_CHAR_CYRILLIC): Likewise.
4163         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4164         MAX_CHAR_GREEK for `greek-iso8859-7'.
4165
4166         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4167         (MAX_CHAR_GREEK): Likewise.
4168         (MIN_CHAR_CYRILLIC): Likewise.
4169         (MAX_CHAR_CYRILLIC): Likewise.
4170
4171 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4172
4173         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4174         format is used without `ucs' property.
4175         (Fdecode_char): Fix problem with GR representation.
4176         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4177         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4178
4179 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4180
4181         * mule-charset.c (make_builtin_char): New function.
4182         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4183         (Fset_charset_mapping_table): Modify for new representation of
4184         code-point.
4185         (Fdecode_char): New function.
4186         (syms_of_mule_charset): Add new builtin function `decode-char' in
4187         UTF-2000.
4188
4189         * char-ucs.h (make_builtin_char): New prototype.
4190         (DECODE_CHAR): New inline function.
4191         (MAKE_CHAR): Use `DECODE_CHAR'.
4192
4193 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4194
4195         * text-coding.c (parse_charset_conversion_specs): Use
4196         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4197         `XCHARSET_TYPE'.
4198         (iso2022_designate): Likewise.
4199
4200         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4201         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4202
4203         * mule-charset.c (Vcharset_ucs): New variable.
4204         (print_charset): Change design; use `CHARSET_CHARS' and
4205         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4206         (make_charset): Change signature to specify `chars' and
4207         `dimension' instead of `type'.
4208         (range_charset_code_point): Modify for 256^n-set.
4209         (encode_builtin_char_1): Encode as `ucs' in default.
4210         (Fmake_charset): Modify for `make_charset'.
4211         (Fmake_reverse_direction_charset): Likewise.
4212         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4213         UTF-2000.
4214         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4215         for `make_charset'.
4216
4217         * char-ucs.h (Vcharset_ucs): New variable.
4218         (LEADING_BYTE_UCS): New macro.
4219         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4220         and `chars' to `unsigned short' from `unsigned int'.
4221         (CHARSET_TYPE): Deleted.
4222         (XCHARSET_TYPE): Deleted.
4223
4224 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4225
4226         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4227
4228         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4229         (ENCODE_CHAR): New macro.
4230
4231 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4232
4233         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4234         to 0.14 (Kawachi-Katakami).
4235
4236 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4237
4238         * text-coding.c (char_encode_shift_jis): Modify for
4239         `charset_code_point'.
4240         (char_encode_iso2022): Likewise.
4241
4242         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4243         (integer) instead of list of <Lisp_Object>s (integers) as the
4244         format of code-point of a coded-charset.
4245         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4246         (encode_builtin_char_1): New function; delete
4247         `split_builtin_char'.
4248         (charset_code_point): Return <int> instead of <Lisp_Object>.
4249         (Fsplit_char): Don't use `SPLIT_CHAR'.
4250
4251         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4252         prototype for `split_builtin_char'.
4253         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4254         (charset_code_point): Likewise.
4255         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4256         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4257
4258 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4259
4260         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4261         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4262
4263 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4264
4265         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4266
4267         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4268         (MAX_CHAR_OBS_94x94): Deleted.
4269
4270 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4271
4272         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4273
4274         * char-ucs.h (MAX_CHAR_BMP): New macro.
4275
4276 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4277
4278         * text-coding.c: Sync with r21-2-24.
4279
4280 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4281
4282         * file-coding.c: Modify for UTF-2000.
4283
4284 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4285
4286         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4287         to 0.13 (Takaida).
4288
4289 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4290
4291         * mule-charset.c (split_builtin_char): Delete builtin support for
4292         `katakana-jisx0201'.
4293         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4294         BMP area in builtin representation.
4295
4296         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4297         `Vcharset_katakana_jisx0201'.
4298
4299 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4300
4301         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4302         (Qisolated): New variable.
4303         (Qinitial): New variable.
4304         (Qmedial): New variable.
4305         (Qfinal): New variable.
4306         (Qvertical): New variable.
4307         (Qsmall): New variable.
4308         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4309         `Qvertical' and `Qsmall'.
4310         (Qmojikyo_pj_[1 .. 21]): New variable.
4311         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4312         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4313         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4314         .. 21]'.
4315
4316 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4317
4318         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4319         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4320         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4321
4322 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4323
4324         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4325         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4326         BMP.
4327         (Qjapanese_jisx0208_1990): New variable.
4328         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4329         (complex_vars_of_mule_charset): Add new coded-charset
4330         `japanese-jisx0208-1990'.
4331
4332         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4333         (MIN_CHAR_JIS_X0208_1990): New macro.
4334         (MAX_CHAR_JIS_X0208_1990): New macro.
4335
4336 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4337
4338         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4339         coded-charset is not found.
4340
4341 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4342
4343         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4344         (Fdefine_char): Use `Fmake_char'.
4345
4346 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4347
4348         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4349         (Vcharset_hiragana_jisx0208): Deleted.
4350         (Vcharset_katakana_jisx0208): Deleted.
4351         (Qideograph_daikanwa): New variable.
4352         (Qhiragana_jisx0208): Deleted.
4353         (Qkatakana_jisx0208): Deleted.
4354         (split_builtin_char): Split `ideograph-daikanwa'.
4355         (Fsplit_char): New implementation for UTF-2000.
4356         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4357         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4358         (complex_vars_of_mule_charset): Add new coded-charset
4359         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4360         `katakana-jisx0208'.
4361
4362         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4363         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4364         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4365         (MIN_CHAR_DAIKANWA): New macro.
4366         (MAX_CHAR_DAIKANWA): New macro.
4367
4368 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4369
4370         * data.c (Fstring_to_number): Don't recognize floating point if
4371         base is not 10.
4372
4373 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4374
4375         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4376
4377 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4378
4379         * mule-charset.c (Qsquare): New variable.
4380         (to_char_code): Add `Qsquare'.
4381         (syms_of_mule_charset): Add new symbol `square'.
4382
4383 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4384
4385         * mule-charset.c (Qcircle): New variable.
4386         (to_char_code): Add `Qcircle'.
4387         (syms_of_mule_charset): Add new symbol `circle'.
4388
4389 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4390
4391         * mule-charset.c (Qfont): New variable.
4392         (to_char_code): Add `Qfont'.
4393         (syms_of_mule_charset): Add new symbol `font'.
4394
4395 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4396
4397         * mule-charset.c (Qsub): New variable.
4398         (to_char_code): Add `Qsub'.
4399         (syms_of_mule_charset): Add new symbol `sub'.
4400
4401 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4402
4403         * mule-charset.c (Fput_char_attribute): Convert each element of
4404         VALUE to GL position if ATTRIBUTE is a GR-set,
4405
4406 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4407
4408         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4409         coded-charset is a GR-set.
4410
4411 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4412
4413         * mule-charset.c (Fput_char_attribute): Check each element of
4414         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4415
4416 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4417
4418         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4419         UTF-2000.
4420         (Qethiopic_ucs): New variable in UTF-2000.
4421         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4422         (complex_vars_of_mule_charset): Add new coded-charset
4423         `ethiopic-ucs' in UTF-2000.
4424
4425         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4426         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4427         9)'.
4428         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4429         10)'.
4430         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4431
4432 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4433
4434         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4435         `ascii'.
4436
4437 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4438
4439         * mule-charset.c (Vcharacter_variant_table): New variable.
4440         (Q_ucs): New variable.
4441         (Fchar_variants): New function.
4442         (Fput_char_attribute): Register `->ucs' value to
4443         `Vcharacter_variant_table'.
4444         (syms_of_mule_charset): Add new function `char-variants' and new
4445         symbol `->ucs'.
4446         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4447
4448 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4449
4450         * mule-charset.c (get_char_code_table): Allow negative character
4451         code.
4452         (put_char_code_table): Likewise.
4453         (Vcharacter_composition_table): New variable.
4454         (Q_decomposition): New variable.
4455         (Qwide): New variable.
4456         (Qnarrow): New variable.
4457         (Qcompat): New variable.
4458         (QnoBreak): New variable.
4459         (Qsuper): New variable.
4460         (Qfraction): New variable.
4461         (to_char_code): New function.
4462         (Fget_composite_char): New function.
4463         (Fput_char_attribute): Register `->decomposition' value to
4464         `Vcharacter_composition_table'.
4465         (syms_of_mule_charset): Add new function `get-composite-char', new
4466         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4467         `super' and `fraction'.
4468         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4469
4470 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4471
4472         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4473         character; copy the return value.
4474
4475 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4476
4477         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4478
4479         * mule-charset.c (range_charset_code_point): Must use make_int.
4480         (split_builtin_char): New function.
4481
4482 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4483
4484         * mule-charset.c (char_byte_table): Change name from
4485         "char-code-table" to "char-byte-table".
4486         (mark_char_code_table): New function.
4487         (char_code_table_equal): New function.
4488         (char_code_table_hash): New function.
4489         (char_code_table_description): New constant.
4490         (char_code_table): New type.
4491         (make_char_code_table): New function.
4492         (copy_char_code_table): New function.
4493         (get_char_code_table): Modify for `char_code_table' type.
4494         (put_char_code_table): Likewise.
4495         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4496         (Kashiwara).
4497
4498         * char-ucs.h (char_code_table): New type.
4499         (XCHAR_CODE_TABLE): New macro.
4500         (XSETCHAR_CODE_TABLE): New macro.
4501         (CHAR_CODE_TABLE_P): New macro.
4502         (GC_CHAR_CODE_TABLE_P): New macro.
4503         (struct Lisp_Char_Code_Table): New structure.
4504
4505 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4506
4507         * mule-charset.c (Fmake_charset): Setup byte_offset for
4508         {94|96}^n-set.
4509
4510 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4511
4512         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4513         character.
4514
4515 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4516
4517         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4518         is found.
4519
4520 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4521
4522         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4523         charset, it is regarded as a charset.
4524         (put_char_attribute): New function in UTF-2000.
4525         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4526         charset, mapping-table of the charset is modified.
4527         (Fdefine_char): New function in UTF-2000.
4528         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4529         `Fput_char_attribute'.
4530         (syms_of_mule_charset): Add new function `define-char' and new
4531         symbol `ucs' in UTF-2000.
4532         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4533
4534 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4535
4536         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4537         non-UTF-2000 configuration.
4538
4539 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4540
4541         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4542         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4543
4544         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4545         deleted.
4546         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4547         (Fset_charset_mapping_table): Likewise.
4548
4549         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4550         (CHARSET_ENCODING_TABLE): Delete.
4551         (XCHARSET_ENCODING_TABLE): Delete.
4552         (charset_code_point): New interface.
4553
4554 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4555
4556         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4557         instead of `charset_get_byte1' and `charset_get_byte2'.
4558
4559         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4560         (charset_get_byte2): Deleted.
4561
4562 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4563
4564         * char-ucs.h (SPLIT_CHAR): New inline function.
4565         (breakup_char_1): Use `SPLIT_CHAR'.
4566
4567         * mule-charset.c (range_charset_code_point): New function.
4568         (charset_code_point): New function.
4569
4570         * char-ucs.h (range_charset_code_point): New interface.
4571         (breakup_char_1): Use `range_charset_code_point'.
4572
4573 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4574
4575         * mule-charset.c (Fmake_charset): Delete unused local variable
4576         `code_offset'.
4577
4578         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4579         (breakup_char_1): Find a charset and code-point in
4580         `Vcharacter_attribute_table'.
4581
4582 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4583
4584         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4585         to 0.10 (Yao).
4586
4587 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4588
4589         * mule-charset.c (Vcharacter_attribute_table): New variable.
4590         (Fchar_attribute_alist): New function.
4591         (Fget_char_attribute): New function.
4592         (Fput_char_attribute): New function.
4593         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4594         too.
4595         (syms_of_mule_charset): Add new function `char-attribute-alist',
4596         `get-char-attribute' and `put-char-attribute'.
4597         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4598
4599 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4600
4601         * mule-charset.c (Fmake_charset): Just use
4602         `get_unallocated_leading_byte'.
4603
4604         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4605         sets; don't use final-byte based number for private sets.
4606
4607 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4608
4609         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4610         integer.
4611
4612 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4613
4614         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4615         to 0.9.
4616
4617 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4618
4619         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4620         of `CHAR_LEADING_BYTE' in UTF-2000.
4621
4622         * insdel.c (find_charsets_in_bufbyte_string): Use
4623         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4624         (find_charsets_in_emchar_string): Likewise.
4625
4626         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4627         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4628
4629         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4630         (CHAR_CHARSET_ID): New macro.
4631
4632 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4633
4634         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4635         charset-id - MIN_LEADING_BYTE.
4636         (put_char_table): Likewise.
4637
4638 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4639
4640         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4641         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4642         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4643         (CHARSET_ID_OFFSET): New macro.
4644         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4645         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4646         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4647         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4648         4).
4649         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4650         5).
4651         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4652         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4653         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4654         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4655         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4656
4657 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4658
4659         * mule-charset.c (next_allocated_leading_byte): New variable in
4660         UTF-2000.
4661         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4662         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4663         (get_unallocated_leading_byte): Simply use
4664         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4665         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4666         UTF-2000.
4667
4668         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4669         (MAX_LEADING_BYTE_PRIVATE): New macro.
4670         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4671         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4672
4673 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4674
4675         * mule-charset.c (Fmake_charset): Allocate final-byte based
4676         charset-id for 94-set, 96-set and 94x94-set.
4677
4678 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4679
4680         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4681         ambiguous `else'.
4682         (Fmake_charset): Likewise.
4683         (complex_vars_of_mule_charset): Modify the font registry of
4684         `ucs-bmp' not to match `Ethiopic-Unicode'.
4685
4686 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4687
4688         * mule-charset.c (complex_vars_of_mule_charset): Add font
4689         registory of `ucs-bmp'.
4690
4691 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4692
4693         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4694         coded-charsets in `default-coded-charset-priority-list' when
4695         breaking up a character.
4696
4697         * mule-charset.c (Vcharset_latin_viscii): New variable.
4698         (Qlatin_viscii): New variable.
4699         (make_charset): Don't use `decoding_table'.
4700         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4701         byte_offset.
4702         (Fset_charset_mapping_table): New implementation.
4703         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4704         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4705         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4706         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4707         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4708         charset `latin_viscii'.
4709
4710         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4711         (CHARSET_TYPE_94X94): Change to 1 from 2.
4712         (CHARSET_TYPE_96): Change to 2 from 1.
4713         (CHARSET_TYPE_128): New macro.
4714         (CHARSET_TYPE_128X128): Change to 5 from 4.
4715         (CHARSET_TYPE_256): New macro.
4716         (CHARSET_TYPE_256X256): Change to 7 from 5.
4717         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4718
4719 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4720
4721         * text-coding.c (char_encode_shift_jis): Refer
4722         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4723         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4724
4725         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4726         (char_byte_table_equal): New function in UTF-2000.
4727         (char_byte_table_hash): New function in UTF-2000.
4728         (char_byte_table_description): New constant in UTF-2000.
4729         (char_byte_table): New type in UTF-2000.
4730         (make_char_byte_table): New function in UTF-2000.
4731         (copy_char_byte_table): New function in UTF-2000.
4732         (make_char_code_table): New macro in UTF-2000.
4733         (get_char_code_table): New function in UTF-2000.
4734         (put_char_code_table): New function in UTF-2000.
4735         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4736         (charset_description): Add setting in UTF-2000.
4737         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4738         `CHARSET_TO_BYTE1_TABLE(cs)'.
4739         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4740         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4741         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4742         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4743         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4744         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4745         `CHARSET_TO_BYTE2_TABLE(cs)'.
4746
4747         * char-ucs.h (char_byte_table): New type.
4748         (XCHAR_BYTE_TABLE): New macro.
4749         (XSETCHAR_BYTE_TABLE): New macro.
4750         (CHAR_BYTE_TABLE_P): New macro.
4751         (GC_CHAR_BYTE_TABLE_P): New macro.
4752         (struct Lisp_Char_Byte_Table): New structure.
4753         (get_char_code_table): New interface.
4754         (Emchar_to_byte_table): Deleted.
4755         (get_byte_from_character_table): Deleted.
4756         (struct Lisp_Charset): Add `encoding_table'; delete
4757         `to_byte1_table' and `to_byte2_table'.
4758         (CHARSET_ENCODING_TABLE): New macro.
4759         (CHARSET_TO_BYTE1_TABLE): Deleted.
4760         (CHARSET_TO_BYTE2_TABLE): Deleted.
4761         (XCHARSET_ENCODING_TABLE): New macro.
4762         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4763         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4764
4765 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4766
4767         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4768         `vietnamese-viscii-*'.
4769
4770 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4771
4772         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4773         (Qvietnamese_viscii_upper): New variable.
4774         (Fdefine_charset_alias): New function.
4775         (syms_of_mule_charset): Add new function `define-charset-alias'.
4776         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4777         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4778         `latin-viscii-*'.
4779
4780 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4781
4782         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4783         (MAX_CHAR_OBS_94x94): New macro.
4784         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4785         for 94x94 sets.
4786
4787         * mule-charset.c (put_byte_from_character_table): Change unit size
4788         from 128 to 256.
4789         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4790         not defined.
4791         (Fmake_reverse_direction_charset): Modify dummy argument of
4792         `make_charset' for non-UTF-2000 environment.
4793
4794 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4795
4796         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4797
4798         * mule-charset.c (destroy_byte_from_character_table): New macro.
4799         (latin_jisx0201_to_ucs): Deleted.
4800         (latin_iso8859_2_to_ucs): Deleted.
4801         (latin_iso8859_3_to_ucs): Deleted.
4802         (latin_iso8859_4_to_ucs): Deleted.
4803         (latin_iso8859_9_to_ucs): Deleted.
4804         (latin_viscii_lower_to_ucs): Deleted.
4805         (latin_viscii_upper_to_ucs): Deleted.
4806         (mark_charset): Mark `cs->decoding_table'.
4807         (Fcharset_mapping_table): Fix DOC-string.
4808         (Fset_charset_mapping_table): New function.
4809         (syms_of_mule_charset): Add nwe function
4810         `set-charset-mapping-table'.
4811         (complex_vars_of_mule_charset): Don't setup and use
4812         `latin_*_to_ucs'.
4813
4814 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4815
4816         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4817         charset.
4818
4819 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4820
4821         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4822         (Vcharset_katakana_jisx0208): New variable.
4823         (Qhiragana_jisx0208): New variable.
4824         (Qkatakana_jisx0208): New variable.
4825         (make_charset): Add new argument `byte_offset'.
4826         (charset_get_byte1): Modify for new coded-charset definition; use
4827         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4828         `XCHARSET_BYTE_OFFSET'.
4829         (Fmake_charset): Modify for `make_charset'.
4830         (Fmake_reverse_direction_charset): Likewise.
4831         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4832         `katakana-jisx0208'.
4833         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4834         `.'  in font registry of charset `katakana-jisx0201',
4835         `latin-jisx0201', `vietnamese-viscii-lower' and
4836         `vietnamese-viscii-upper'; modify DOC-string of charset
4837         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4838         registry of charset `japanese-jisx0208' not to use font for JIS
4839         X0208:1990; add new charset `hiragana-jisx0208' and
4840         `katakana-jisx0208'.
4841
4842         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4843         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4844         (struct Lisp_Charset): Add `byte_offset'.
4845         (CHARSET_BYTE_OFFSET): New macro.
4846         (XCHARSET_UCS_MIN): New macro.
4847         (XCHARSET_UCS_MAX): New macro.
4848         (XCHARSET_CODE_OFFSET): New macro.
4849         (XCHARSET_BYTE_OFFSET): New macro.
4850         (MIN_CHAR_HIRAGANA): New macro.
4851         (MAX_CHAR_HIRAGANA): New macro.
4852         (MIN_CHAR_KATAKANA): New macro.
4853         (MAX_CHAR_KATAKANA): New macro.
4854         (MAKE_CHAR): Modify for new coded-charset definition; use
4855         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4856         `XCHARSET_BYTE_OFFSET'.
4857
4858 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4859
4860         * mule-charset.c (CHAR96): Deleted.
4861         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4862         <Lisp_Object>.
4863         (latin_iso8859_2_to_ucs): Likewise.
4864         (latin_iso8859_3_to_ucs): Likewise.
4865         (latin_iso8859_4_to_ucs): Likewise.
4866         (latin_iso8859_9_to_ucs): Likewise.
4867         (latin_viscii_lower_to_ucs): Likewise.
4868         (latin_viscii_upper_to_ucs): Likewise.
4869         (latin_tcvn5712_to_ucs): Commented out.
4870         (make_charset): Change type of argument `decoding_table' from
4871         <Emchar*> to <Lisp_Object> [vector of characters].
4872         (Fmake_charset): Modify for `make_charset'.
4873         (Fmake_reverse_direction_charset): Likewise.
4874         (Fcharset_mapping_table): New function in UTF-2000.
4875         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4876         UTF-2000.
4877         (complex_vars_of_mule_charset): Modify for type change of
4878         `*_to_ucs'; modify for `make_charset'.
4879
4880         * char-ucs.h (struct Lisp_Charset): Change type of
4881         `decoding_table' from <Emchar*> to <Lisp_Object>.
4882         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4883
4884 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4885
4886         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4887         error with non-UTF-2000-Mule.
4888
4889 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4890
4891         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4892         in lisp again].
4893         (Vcharset_chinese_cns11643_4): Likewise.
4894         (Vcharset_chinese_cns11643_5): Likewise.
4895         (Vcharset_chinese_cns11643_6): Likewise.
4896         (Vcharset_chinese_cns11643_7): Likewise.
4897         (Qchinese_cns11643_3): Likewise.
4898         (Qchinese_cns11643_4): Likewise.
4899         (Qchinese_cns11643_5): Likewise.
4900         (Qchinese_cns11643_6): Likewise.
4901         (Qchinese_cns11643_7): Likewise.
4902         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4903         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4904         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4905         (complex_vars_of_mule_charset): Likewise.
4906
4907 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4908
4909         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4910         96-set.
4911         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4912         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4913
4914 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4915
4916         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4917         0xFF60.
4918         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4919         (breakup_char_1): Likewise.
4920
4921         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4922         one of them includes the specified character.
4923
4924 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4925
4926         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4927
4928 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4929
4930         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4931
4932 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4933
4934         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4935         definition for non-UTF-2000 Mule.
4936         (latin_iso8859_3_to_ucs): Likewise.
4937         (latin_iso8859_4_to_ucs): Likewise.
4938         (latin_iso8859_9_to_ucs): Likewise.
4939         (latin_jisx0201_to_ucs): Likewise.
4940         (MIN_CHAR_THAI): Likewise.
4941         (MAX_CHAR_THAI): Likewise.
4942         (MIN_CHAR_GREEK): Likewise.
4943         (MAX_CHAR_GREEK): Likewise.
4944         (MIN_CHAR_HEBREW): Likewise.
4945         (MAX_CHAR_HEBREW): Likewise.
4946         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4947         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4948         (MIN_CHAR_CYRILLIC): Likewise.
4949         (MAX_CHAR_CYRILLIC): Likewise.
4950
4951 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4952
4953         * char-ucs.h (breakup_char_1): Use
4954         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4955         thai-tis620 and katakana-jisx0201 area.
4956
4957 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4958
4959         * char-ucs.h (breakup_char_1): Use
4960         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4961         area.
4962
4963         * text-coding.c (reset_encoding_stream): Fixed.
4964         (char_encode_ucs4): Delete `& 255'.
4965
4966         * char-ucs.h (breakup_char_1): Use
4967         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4968
4969 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4970
4971         * file-coding.c (Fmake_coding_system): Don't set up
4972         `codesys->fixed.size'.
4973         (encode_coding_no_conversion): Don't refer
4974         `str->codesys->fixed.size'.
4975
4976 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4977
4978         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4979         (latin_a_char_to_byte1): Deleted.
4980         (latin_a_char_to_byte2): Deleted.
4981
4982 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4983
4984         * mule-charset.c (make_charset): Add new argument `ucs_min',
4985         `ucs_max' and `code_offset'.
4986         (charset_get_byte1): New implementation [delete specific charset
4987         depended implementations].
4988         (Fmake_charset): Modify for `make_charset'.
4989         (Fmake_reverse_direction_charset): Likewise.
4990         (complex_vars_of_mule_charset): Likewise.
4991
4992         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4993         `code_offset'.
4994         (CHARSET_UCS_MIN): New macro.
4995         (CHARSET_UCS_MAX): New macro.
4996         (CHARSET_CODE_OFFSET): New macro.
4997         (MAKE_CHAR): Delete charset depended definitions [except
4998         katakana-jisx0201].
4999
5000 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
5001
5002         * char-ucs.h (breakup_char_1): Use
5003         `Vdefault_coded_charset_priority_list' for C0-Controls,
5004         Basic-Latin, C1-Controls and Latin-1-Supplement area.
5005
5006 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5007
5008         * char-ucs.h (charset_get_byte1): New function.
5009         (XCHARSET_GET_BYTE1): Deleted.
5010         (charset_get_byte2): New function.
5011         (XCHARSET_GET_BYTE2): Deleted.
5012         (Vdefault_coded_charset_priority_list): New external variable.
5013         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
5014         `Vdefault_preferred_coded_charset_list'.
5015
5016         * mule-charset.c (charset_get_byte1): New function.
5017         (charset_get_byte2): New function.
5018         (Vdefault_coded_charset_priority_list): New variable.
5019         (vars_of_mule_charset): Add new variable
5020         `default-coded-charset-priority-list'.
5021
5022 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5023
5024         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
5025         (XCHARSET_GET_BYTE2): New inline function.
5026         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
5027         `XCHARSET_GET_BYTE2'.
5028
5029 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5030
5031         * mule-charset.c (make_charset): Initialize
5032         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
5033         NULL if table is not defined.
5034
5035 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5036
5037         * text-coding.c (char_encode_shift_jis): Use
5038         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
5039         `ucs_to_latin_jisx0201'.
5040
5041         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
5042         (ucs_to_latin_iso8859_2): Deleted.
5043         (ucs_to_latin_iso8859_3): Deleted.
5044         (ucs_to_latin_iso8859_4): Deleted.
5045         (ucs_to_latin_iso8859_9): Deleted.
5046         (ucs_to_latin_viscii_lower): Deleted.
5047         (ucs_to_latin_viscii_upper): Deleted.
5048         (ucs_to_latin_tcvn5712): Deleted.
5049         (make_charset): Add new argument `decoding_table'; set up
5050         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5051         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5052         `decoding_table' is defined in UTF-2000.
5053         (Fmake_charset): Modify for `make_charset'.
5054         (Fmake_reverse_direction_charset): Likewise.
5055         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5056         and `GENERATE_96_SET'.
5057
5058         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5059         (ucs_to_latin_jisx0201): Deleted.
5060         (latin_iso8859_2_to_ucs): Deleted.
5061         (ucs_to_latin_iso8859_2): Deleted.
5062         (latin_iso8859_3_to_ucs): Deleted.
5063         (ucs_to_latin_iso8859_3): Deleted.
5064         (latin_iso8859_4_to_ucs): Deleted.
5065         (ucs_to_latin_iso8859_4): Deleted.
5066         (latin_iso8859_9_to_ucs): Deleted.
5067         (ucs_to_latin_iso8859_9): Deleted.
5068         (latin_viscii_lower_to_ucs): Deleted.
5069         (ucs_to_latin_viscii_lower): Deleted.
5070         (latin_viscii_upper_to_ucs): Deleted.
5071         (ucs_to_latin_viscii_upper): Deleted.
5072         (struct Lisp_Charset): Renamed `encoding_table' to
5073         `to_byte1_table'; add `to_byte2_table'.
5074         (CHARSET_DECODING_TABLE): New macro.
5075         (CHARSET_TO_BYTE1_TABLE): New macro.
5076         (CHARSET_TO_BYTE2_TABLE): New macro.
5077         (XCHARSET_DECODING_TABLE): New macro.
5078         (XCHARSET_TO_BYTE1_TABLE): New macro.
5079         (XCHARSET_TO_BYTE2_TABLE): New macro.
5080         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5081         tables.
5082         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5083         don't use `ucs_to_*' tables.
5084
5085 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5086
5087         * text-coding.c (Fmake_coding_system): Don't set up
5088         `codesys->fixed.size'.
5089         (encode_coding_no_conversion): Use `if' instead of `switch'.
5090
5091         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5092
5093 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5094
5095         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5096         (Fmake_charset): Modify for `make_charset'.
5097         (Fmake_reverse_direction_charset): Likewise.
5098         (complex_vars_of_mule_charset): Likewise.
5099
5100 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5101
5102         * text-coding.c (char_encode_shift_jis): Use table
5103         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5104
5105 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5106
5107         * text-coding.c (text_encode_generic): Use `if' instead of
5108         `switch'.
5109         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5110         decode JIS-Latin.
5111
5112 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5113
5114         * text-coding.c (encode_coding_sjis): Deleted.
5115         (char_encode_shift_jis): New function.
5116         (char_finish_shift_jis): New function.
5117         (reset_encoding_stream): Set up `encode_char' and `finish' for
5118         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5119         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5120         (char_encode_utf8): Treat `eol_type'.
5121
5122 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5123
5124         * file-coding.c (decode_coding_iso2022): Use
5125         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5126
5127 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5128
5129         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5130         to 0.7 (Hirano).
5131
5132 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5133
5134         * char-lb.h (CHAR_COLUMNS): New macro.
5135
5136 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5137
5138         * text-coding.c (char_encode_ucs4): New function.
5139         (char_finish_ucs4): New function.
5140         (encode_coding_ucs4): Deleted.
5141         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5142         (text_encode_generic): Delete local variable `charset' and `half'.
5143         (ucs_to_mule_table): Deleted.
5144         (mule_to_ucs_table): Deleted.
5145         (Fset_ucs_char): Deleted.
5146         (ucs_to_char): Deleted.
5147         (Fucs_char): Deleted.
5148         (Fset_char_ucs): Deleted.
5149         (Fchar_ucs): Deleted.
5150         (decode_ucs4): Deleted.
5151         (mule_char_to_ucs4): Deleted.
5152         (encode_ucs4): Deleted.
5153         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5154         (decode_coding_utf8): Likewise.
5155         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5156         (char_encode_iso2022): Fixed.
5157         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5158         `Fset_char_ucs' and `Fchar_ucs'.
5159         (complex_vars_of_file_coding): Don't initialize
5160         `ucs_to_mule_table'.
5161
5162         * objects-tty.c (tty_initialize_font_instance): Don't use
5163         `XCHARSET_COLUMNS'.
5164
5165         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5166         UTF-2000.
5167
5168         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5169         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5170
5171         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5172         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5173         (emchar_string_displayed_columns): Likewise.
5174
5175         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5176         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5177         (string_column_at_point): Likewise.
5178         (Fmove_to_column): Likewise.
5179
5180         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5181         `encoding_table' and `decoding_table'.
5182         (CHARSET_REP_BYTES): Deleted.
5183         (XCHARSET_REP_BYTES): Deleted.
5184         (XCHARSET_COLUMNS): Deleted.
5185         (CHAR_COLUMNS): New macro.
5186         (lookup_composite_char): Deleted unconditionally.
5187         (composite_char_string): Likewise.
5188
5189 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5190
5191         * char-ucs.h (Emchar_to_byte_table): New type.
5192         (get_byte_from_character_table): New function interface.
5193         (Vcharset_latin_jisx0201): New variable.
5194         (latin_jisx0201_to_ucs): New variable.
5195         (ucs_to_latin_jisx0201): New variable.
5196         (Vcharset_latin_iso8859_2): New variable.
5197         (latin_iso8859_2_to_ucs): New variable.
5198         (ucs_to_latin_iso8859_2): New variable.
5199         (Vcharset_latin_iso8859_3): New variable.
5200         (latin_iso8859_3_to_ucs): New variable.
5201         (ucs_to_latin_iso8859_3): New variable.
5202         (Vcharset_latin_iso8859_4): New variable.
5203         (latin_iso8859_4_to_ucs): New variable.
5204         (ucs_to_latin_iso8859_4): New variable.
5205         (Vcharset_latin_iso8859_9): New variable.
5206         (latin_iso8859_9_to_ucs): New variable.
5207         (ucs_to_latin_iso8859_9): New variable.
5208         (Vcharset_latin_viscii_lower): New variable.
5209         (latin_viscii_lower_to_ucs): New variable.
5210         (ucs_to_latin_viscii_lower): New variable.
5211         (Vcharset_latin_viscii_upper): New variable.
5212         (latin_viscii_upper_to_ucs): New variable.
5213         (ucs_to_latin_viscii_upper): New variable.
5214         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5215         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5216         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5217         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5218         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5219         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5220         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5221         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5222         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5223         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5224
5225         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5226         (Vcharset_latin_viscii_upper): New variable.
5227         (make_byte_from_character_table): New function.
5228         (put_byte_from_character_table): New function.
5229         (get_byte_from_character_table): New function.
5230         (CHAR96): New macro.
5231         (ucs_to_latin_jisx0201): New variable.
5232         (latin_jisx0201_to_ucs): New variable.
5233         (ucs_to_latin_iso8859_2): New variable.
5234         (latin_iso8859_2_to_ucs): New variable.
5235         (ucs_to_latin_iso8859_3): New variable.
5236         (latin_iso8859_3_to_ucs): New variable.
5237         (ucs_to_latin_iso8859_4): New variable.
5238         (latin_iso8859_4_to_ucs): New variable.
5239         (ucs_to_latin_iso8859_9): New variable.
5240         (latin_iso8859_9_to_ucs): New variable.
5241         (ucs_to_latin_viscii_lower): New variable.
5242         (latin_viscii_lower_to_ucs): New variable.
5243         (ucs_to_latin_viscii_upper): New variable.
5244         (latin_viscii_upper_to_ucs): New variable.
5245         (ucs_to_latin_tcvn5712): New variable.
5246         (latin_tcvn5712_to_ucs): New variable.
5247         (Qlatin_viscii_lower): New variable.
5248         (Qlatin_viscii_upper): New variable.
5249         (syms_of_mule_charset): Set up new symbol
5250         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5251         (complex_vars_of_mule_charset): Set up new charset
5252         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5253         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5254         `ucs_to_<CHARSET>' tables.
5255
5256 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5257
5258         * text-coding.c: New file.
5259
5260 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5261
5262         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5263
5264         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5265         (MAKE_CHAR): Modify for `ucs-bmp'.
5266         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5267         non-MULE characters of BMP.
5268
5269 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5270
5271         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5272         to 0.6.
5273
5274 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5275
5276         * lstream.h:
5277         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5278         - Include character.h for `CHAR_ASCII_P'.
5279
5280         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5281
5282         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5283         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5284
5285         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5286         (BYTE_C0_P): Likewise.
5287         (BYTE_C1_P): Likewise.
5288         (Lstream_get_emchar_1): Likewise.
5289         (Lstream_fput_emchar): Likewise.
5290         (Lstream_funget_emchar): Likewise.
5291         (copy_internal_to_external): Likewise.
5292         (copy_external_to_internal): Likewise.
5293
5294         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5295         (BYTE_C0_P): Likewise.
5296         (BYTE_C1_P): Likewise.
5297         (Lstream_get_emchar_1): Likewise.
5298         (Lstream_fput_emchar): Likewise.
5299         (Lstream_funget_emchar): Likewise.
5300         (copy_internal_to_external): Likewise.
5301         (copy_external_to_internal): Likewise.
5302
5303         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5304         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5305
5306         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5307         (BYTE_ASCII_P): Moved to mb-1byte.h.
5308
5309 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5310
5311         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5312
5313         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5314         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5315         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5316         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5317         (VALIDATE_CHARPTR_FORWARD): Likewise.
5318         (simple_charptr_emchar): Moved to mb-multibyte.h.
5319         (simple_set_charptr_emchar): Likewise.
5320         (simple_charptr_copy_char): Likewise.
5321         (non_ascii_charptr_emchar): Likewise.
5322         (non_ascii_set_charptr_emchar): Likewise.
5323         (non_ascii_charptr_copy_char): Likewise.
5324         (charptr_emchar): Moved to mb-*byte.h.
5325         (set_charptr_emchar): Likewise.
5326         (charptr_copy_char): Likewise.
5327
5328         * mb-1byte.h, mb-multibyte.h: New files.
5329
5330 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5331
5332         * mb-utf-8.h (MULTIBYTE): New macro.
5333         (MAX_EMCHAR_LEN): Moved from buffer.h.
5334         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5335
5336         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5337
5338         * mb-lb.h, multibyte.h: New files.
5339
5340         * char-1byte.h (Charset_ID): Moved from buffer.h.
5341         (MIN_LEADING_BYTE): Likewise.
5342         (LEADING_BYTE_ASCII): Likewise.
5343         (NUM_LEADING_BYTES): Likewise.
5344         (CHARSETP): Likewise.
5345         (CHARSET_BY_LEADING_BYTE): Likewise.
5346         (XCHARSET_LEADING_BYTE): Likewise.
5347         (XCHARSET_GRAPHIC): Likewise.
5348         (XCHARSET_COLUMNS): Likewise.
5349         (XCHARSET_DIMENSION): Likewise.
5350         (CHAR_CHARSET): Likewise.
5351         (CHAR_LEADING_BYTE): Likewise.
5352         (BREAKUP_CHAR): Likewise.
5353         (Vcharset_ascii): Likewise.
5354
5355         * buffer.h: Include multibyte.h unconditionally.
5356         (VALID_CHARPTR_P): Moved to multibyte.h.
5357         (ASSERT_VALID_CHARPTR): Likewise.
5358         (REAL_INC_CHARPTR): Likewise.
5359         (REAL_INC_CHARBYTIND): Likewise.
5360         (REAL_DEC_CHARPTR): Likewise.
5361         (INC_CHARPTR): Likewise.
5362         (INC_CHARBYTIND): Likewise.
5363         (DEC_CHARPTR): Likewise.
5364         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5365         (VALIDATE_CHARPTR_FORWARD): Likewise.
5366         (charptr_n_addr): Likewise.
5367         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5368         (simple_charptr_emchar): Moved to multibyte.h.
5369         (simple_set_charptr_emchar): Likewise.
5370         (simple_charptr_copy_char): Likewise.
5371         (non_ascii_charptr_emchar): Likewise.
5372         (non_ascii_set_charptr_emchar): Likewise.
5373         (non_ascii_charptr_copy_char): Likewise.
5374         (charptr_emchar): Likewise.
5375         (set_charptr_emchar): Likewise.
5376         (charptr_copy_char): Likewise.
5377         (charptr_emchar_n): Likewise.
5378         (Charset_ID): Moved to char-1byte.h.
5379         (Vcharset_ascii): Likewise.
5380         (CHAR_CHARSET): Likewise.
5381         (CHAR_LEADING_BYTE): Likewise.
5382         (LEADING_BYTE_ASCII): Likewise.
5383         (NUM_LEADING_BYTES): Likewise.
5384         (MIN_LEADING_BYTE): Likewise.
5385         (CHARSETP): Likewise.
5386         (CHARSET_BY_LEADING_BYTE): Likewise.
5387         (XCHARSET_LEADING_BYTE): Likewise.
5388         (XCHARSET_GRAPHIC): Likewise.
5389         (XCHARSET_COLUMNS): Likewise.
5390         (XCHARSET_DIMENSION): Likewise.
5391         (BREAKUP_CHAR): Likewise.
5392
5393 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5394
5395         * character.h: Add document about interface for characters.
5396
5397         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5398         (MAKE_CHAR): Delete comment about
5399         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5400         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5401         (BREAKUP_CHAR): Modify name of arguments.
5402         (CHAR_CHARSET): Modify name of argument.
5403
5404         * buffer.h: Delete document about Emchar accessors.
5405
5406 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5407
5408         * character.h (CHAR_INTP): Moved from buffer.h
5409         (CHAR_OR_CHAR_INTP): Likewise.
5410         (XCHAR_OR_CHAR_INT): Likewise.
5411         (CHECK_CHAR_COERCE_INT): Likewise.
5412
5413         * buffer.h (CHAR_INTP): Moved to character.h
5414         (CHAR_OR_CHAR_INTP): Likewise.
5415         (XCHAR_OR_CHAR_INT): Likewise.
5416         (CHECK_CHAR_COERCE_INT): Likewise.
5417
5418 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5419
5420         * character.h:
5421         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5422         - Include char-1byte.h, char-lb.h or char-ucs.h.
5423
5424         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5425
5426         * buffer.h: Include character unconditionally.
5427         (valid_char_p): Moved to char-*.h.
5428         (non_ascii_valid_char_p): Moved to char-lb.h.
5429
5430         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5431
5432 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5433
5434         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5435         in UTF-2000 because it is not ported yet and not to use
5436         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5437         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5438         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5439
5440         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5441         (CHAR_ASCII_P): Moved from character.h.
5442
5443         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5444         (CHAR_ASCII_P): Likewise.
5445         (CHAR_FIELD1_MASK): Deleted.
5446         (CHAR_FIELD2_MASK): Deleted.
5447         (CHAR_FIELD3_MASK): Deleted.
5448         (MAX_CHAR_BASIC_LATIN): New macro.
5449         (CHAR_FIELD1): Deleted.
5450         (CHAR_FIELD2_INTERNAL): Deleted.
5451         (CHAR_FIELD3_INTERNAL): Deleted.
5452         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5453         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5454         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5455         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5456         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5457         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5458         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5459         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5460         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5461         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5462         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5463         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5464         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5465         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5466         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5467         (MIN_CHAR_COMPOSITION): Deleted.
5468         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5469         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5470
5471 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5472
5473         * buffer.h: Include mb-utf-8.h in UTF-2000.
5474
5475         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5476
5477         * mb-utf-8.h: New file.
5478
5479 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5480
5481         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5482         instead of `int'.
5483
5484         * mule-charset.h, buffer.h (Charset_ID): New type.
5485
5486 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5487
5488         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5489         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5490         instead of `MULE_CHAR_PRIVATE_OFFSET',
5491         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5492         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5493         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5494
5495         * character.h (Vcharset_japanese_jisx0212): New variable
5496         definition.
5497
5498 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5499
5500         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5501         (charset_by_attributes): Delete array about direction.
5502         (latin_a_char_to_charset): New variable in UTF-2000.
5503         (latin_a_char_to_byte1): New variable in UTF-2000.
5504         (latin_a_char_to_byte2): New variable in UTF-2000.
5505         (Qucs_bmp): New variable.
5506         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5507         `Bufbyte'.
5508         (next_allocated_2_byte_leading_byte): Likewise.
5509         (non_ascii_set_charptr_emchar): Likewise.
5510         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5511         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5512         `charset_by_attributes'.
5513         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5514         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5515         and `CHARSET_BY_LEADING_BYTE'.
5516         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5517         `utf-2000-version' to `vars_of_mule_charset'.
5518         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5519         define `leading-code-private-11' in UTF-2000; move setting of
5520         `utf-2000-version' from `syms_of_mule_charset'.
5521         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5522         UTF-2000.
5523
5524         * character.h (Charset_ID): New type.
5525         (LEADING_BYTE_UCS_BMP): New macro.
5526         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5527         (CHARSET_ID_OFFSET_94): New macro.
5528         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5529         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5530         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5531         final-byte.
5532         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5533         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5534         (CHARSET_ID_OFFSET_96): New macro.
5535         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5536         CHARSET_ID_OFFSET_96 and final-byte.
5537         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5538         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5539         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5540         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5541         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5542         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5543         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5544         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5545         (LEADING_BYTE_THAI_TIS620): Likewise.
5546         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5547         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5548         (CHARSET_ID_OFFSET_94x94): New macro.
5549         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5550         CHARSET_ID_OFFSET_94x94 and final-byte.
5551         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5552         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5553         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5554         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5555         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5556         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5557         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5558         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5559         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5560         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5561         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5562         (CHARSET_TYPE_128X128): New macro.
5563         (CHARSET_TYPE_256X256): New macro.
5564         (XCHARSET_PRIVATE_P): Delete unconditionally.
5565         (charset_by_attributes): Delete array about direction.
5566         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5567         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5568         (MIN_CHAR_94): New macro.
5569         (MAX_CHAR_94): New macro.
5570         (MIN_CHAR_96): New macro.
5571         (MAX_CHAR_96): New macro.
5572         (MIN_CHAR_94x94): New macro.
5573         (MAX_CHAR_94x94): New macro.
5574         (MIN_CHAR_96x96): New macro.
5575         (MAX_CHAR_96x96): New macro.
5576         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5577         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5578         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5579         - 32)'.
5580         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5581         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5582         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5583         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5584         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5585         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5586         `XCHARSET_LEADING_BYTE' to make code-point.
5587         (latin_a_char_to_charset): New variable.
5588         (latin_a_char_to_byte1): New variable.
5589         (latin_a_char_to_byte2): New variable.
5590         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5591         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5592         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5593
5594         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5595         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5596         (find_charsets_in_emchar_string): Likewise.
5597         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5598
5599         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5600         `int'.
5601         (decode_coding_iso2022): Likewise.
5602
5603         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5604         of `unsigned char'.
5605
5606         * redisplay.c (redisplay_text_width_emchar_string): Use
5607         `Charset_ID' instead of `unsigned char'.
5608         (redisplay_frame_text_width_string): Likewise.
5609
5610         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5611         `unsigned char'.
5612
5613         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5614         instead of `unsigned char'.
5615         (face_cachel_charset_font_metric_info): Likewise.
5616
5617         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5618         (get_non_ascii_char_table_value): Likewise.
5619         (get_char_table): Likewise.
5620         (put_char_table): Likewise.
5621         (map_over_other_charset): Likewise.
5622         (map_char_table): Likewise.
5623
5624         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5625         instead of `unsigned char'.
5626
5627 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5628
5629         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5630         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5631
5632         * mule-charset.c (leading_code_private_11): Don't define in
5633         UTF-2000.
5634
5635         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5636         in UTF-2000 because it is not ported yet and not to use
5637         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5638
5639 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5640
5641         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5642
5643 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5644
5645         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5646         in UTF-2000.
5647
5648         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5649         of unsigned char to store leading-byte.
5650
5651         * chartab.c (get_non_ascii_char_table_value): Don't use
5652         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5653
5654         * file-coding.c (encode_coding_big5): Delete bogus implementation
5655         in UTF2000.
5656
5657         * character.h (LEADING_BYTE_*): Delete definition for
5658         non-UTF-2000.
5659         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5660         (LEADING_BYTE_PREFIX_P): Deleted.
5661         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5662         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5663         (BUFBYTE_LEADING_BYTE_P): Deleted.
5664         (CHARSET_PRIVATE_P): Deleted unconditionally.
5665         (rep_bytes_by_first_byte): Deleted unconditionally.
5666         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5667         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5668         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5669         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5670         (CHAR_FIELD2): Deleted.
5671         (CHAR_FIELD3): Deleted.
5672         (MAKE_CHAR): Delete definition for non-UTF-2000.
5673         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5674         (breakup_char_1): New implementation.
5675         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5676         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5677
5678 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5679
5680         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5681         condition.
5682
5683 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5684
5685         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5686         (CHARSET_PRIVATE_P): Likewise.
5687         (XCHARSET_PRIVATE_P): Likewise.
5688         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5689
5690         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5691         UTF2000.
5692         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5693
5694 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5695
5696         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5697         (NUM_LEADING_BYTES): Changed from 128 to 256.
5698         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5699         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5700         UTF2000.
5701         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5702
5703         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5704         UTF2000.
5705         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5706         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5707         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5708         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5709         (Qchinese_cns11643_3): New variable in UTF2000.
5710         (Qchinese_cns11643_4): New variable in UTF2000.
5711         (Qchinese_cns11643_5): New variable in UTF2000.
5712         (Qchinese_cns11643_6): New variable in UTF2000.
5713         (Qchinese_cns11643_7): New variable in UTF2000.
5714         (syms_of_mule_charset): Define `chinese-cns11643-3',
5715         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5716         and `chinese-cns11643-7' in UTF2000.
5717         (vars_of_mule_charset): Initialize
5718         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5719         + 1 in UTF2000.
5720         (complex_vars_of_mule_charset): Setup charset
5721         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5722         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5723
5724 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5725
5726         * mule-charset.c: Move setting for `leading-code-private-11' from
5727         `syms_of_mule_charset' to `vars_of_mule_charset'.
5728
5729 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5730
5731         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5732         and `NUM_LEADING_BYTES' in assert.
5733
5734 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5735
5736         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5737         instead of 128.
5738         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5739         `NUM_LEADING_BYTES' instead of 128.
5740
5741 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5742
5743         * mule-charset.h (charset_by_leading_byte): Use
5744         `NUM_LEADING_BYTES' instead of 128.
5745         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5746
5747         * mule-charset.c (charset_by_leading_byte): Use
5748         `NUM_LEADING_BYTES' instead of 128.
5749         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5750
5751         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5752         128.
5753
5754 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5755
5756         * mule-charset.c (syms_of_mule_charset): Update to
5757         0.4 (Shin-Imamiya).
5758
5759 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5760
5761         * file-coding.c (encode_coding_sjis): New implementation for
5762         UTF2000.  (decode_coding_sjis): Ditto.
5763
5764 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5765
5766         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5767         Don't define in UTF2000.
5768
5769         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5770         defined.
5771
5772         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5773         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5774         MULE.
5775
5776 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5777
5778         * config.h.in (CHAR_IS_UCS4): New macro.
5779
5780         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5781         conventional MULE representation.
5782         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5783
5784         * mule-charset.h: Reverted to original.
5785
5786         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5787         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5788         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5789
5790         * character.h: New file.
5791
5792         * file-coding.c (Fmake_coding_system): Set 1 to
5793         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5794         defined.
5795         (encode_coding_no_conversion): New implementation for UTF2000.
5796
5797         * file-coding.h (struct Lisp_Coding_System): Add new member
5798         `fixed.size'.
5799
5800 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5801
5802         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5803         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5804         (encode_coding_iso2022): New implementation for UTF2000.
5805
5806 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5807
5808         * mule-canna.c (c2mu): New implementation for UTF2000.
5809         (m2c): Likewise.
5810
5811 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5812
5813         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5814
5815 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5816
5817         * file-coding.c (reset_encoding_stream): Set 0 to
5818         `str->iso2022.current_char_boundary' in UTF2000.
5819         (encode_utf8): Don't define in UTF2000.
5820         (encode_coding_utf8): New implementation for UTF-8 representation
5821         of UTF2000.
5822         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5823
5824 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5825
5826         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5827
5828         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5829         UTF2000.
5830         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5831
5832         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5833
5834         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5835         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5836         as UTF-8 in UTF2000.
5837         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5838         (non_ascii_valid_char_p): Don't define in UTF2000.
5839         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5840         (Lstream_get_emchar_1): Likewise.
5841         (utf-2000-version): New variable in UTF2000.
5842
5843         * lread.c (read_escape): Add new reader `u'.
5844
5845         * insdel.c (three_to_one_table): Don't define in UTF2000.
5846         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5847         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5848         UTF2000.
5849         (bytind_to_bufpos_func): Likewise.
5850         (buffer_mule_signal_inserted_region): Likewise.
5851         (vars_of_insdel): Don't initialize `three_to_one_table'.
5852         (init_buffer_text): Use `buf->text->mule_size' instead of
5853         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5854         UTF2000.
5855
5856         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5857         UTF-8 representation in UTF2000.
5858         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5859         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5860         (decode_coding_iso2022): Don't define local variable `lb' in
5861         UTF2000; don't use LEADING_BYTE in UTF2000; use
5862         `DECODE_ADD_UCS_CHAR' in UTF2000.
5863         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5864
5865         * config.h.in (UTF2000): New macro.
5866
5867         * buffer.h (struct buffer_text): Add new member `mule_size' and
5868         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5869         (valid_char_p): Return always 1 in UTF2000.
5870         (MAX_EMCHAR_LEN): 6 in UTF2000.
5871         (three_to_one_table): Don't define in UTF2000.
5872         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5873         UTF2000.
5874         (real_bytind_to_bufpos): Likewise.
5875
5876         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5877
5878 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5879
5880         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5881         representation change.
5882         (Vutf_2000_version): New variable.
5883         (leading_code_private_11): New variable.
5884         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5885         `leading-code-private-11'.
5886
5887         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5888         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5889         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5890         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5891         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5892         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5893         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5894         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5895         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5896         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5897         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5898         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5899         (MIN_CHAR_GREEK): New macro.
5900         (MAX_CHAR_GREEK): New macro.
5901         (MIN_CHAR_CYRILLIC): New macro.
5902         (MAX_CHAR_CYRILLIC): New macro.
5903         (MIN_CHAR_HEBREW): New macro.
5904         (MAX_CHAR_HEBREW): New macro.
5905         (MIN_CHAR_THAI): New macro.
5906         (MAX_CHAR_THAI): New macro.
5907         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5908         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5909         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5910         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5911         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5912         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5913         (CHAR_FIELD2): New inline function.
5914         (CHAR_FIELD3): New inline function.
5915         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5916         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5917         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5918         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5919         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5920         (MIN_CHAR_COMPOSITION): Likewise.
5921         (CHAR_LEADING_BYTE): Modified for character representation change.
5922         (MAKE_CHAR): Likewise.
5923
5924         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5925         (Vcharset_greek_iso8859_7): Likewise.
5926         (Vcharset_cyrillic_iso8859_5): Likewise.
5927         (Vcharset_hebrew_iso8859_8): Likewise.
5928         (Vcharset_thai_tis620): Likewise.
5929         (Vcharset_katakana_jisx0201): Likewise.
5930
5931 2007-10-07  Vin Shelton  <acs@xemacs.org>
5932
5933         * XEmacs 21.4.21 is released
5934
5935 2007-08-14  Marcus Crestani  <crestani@xemacs.org>
5936
5937         * s/sol2.h: Fix for GCC lossage not needed with SunOS 5.10.
5938
5939 2007-02-17  Stephen J. Turnbull  <stephen@xemacs.org>
5940
5941         * glyphs-eimage.c (png_instantiate_unwind): Avoid recursion.
5942         (png_instantiate): Initialize setjmp_buffer early, and avoid
5943         recursive entry to error handler.
5944
5945 2007-06-23  Stephen J. Turnbull  <stephen@xemacs.org>
5946
5947         * linuxplay.c (linux_play_data_or_file): More 64-bit tweaking, and
5948         a typo fix.
5949
5950 2007-05-12  Aidan Kehoe  <kehoea@parhasard.net>
5951
5952         * event-Xt.c (x_reset_modifier_mapping):
5953         * event-gtk.c (gtk_reset_modifier_mapping):
5954         Zero out the device's modifier map once we've freed it, to prevent
5955         a double free on a re-entrant call. 
5956
5957 2007-05-17  Vin Shelton  <acs@xemacs.org>
5958
5959         * linuxplay.c (linux_play_data_or_file): Fix playing sound on
5960         64-bit linux.  Patch from Hans de Graaff.
5961
5962 2007-05-02  Vin Shelton  <acs@xemacs.org>
5963
5964         * dumper.c (pdump): Don't close pdump_fd (already closed by
5965         fclose() call.  Patch from Steve Higham.
5966         * callproc.c (Fold_call_process_internal): Don't close fd1 if it's
5967         already closed.  Patch inspired by Steve Higham.
5968
5969 2007-05-01  Vin Shelton  <acs@xemacs.org>
5970
5971         * nt.c (mswindows_stat): Tie _S_IEXEC permission to read access.
5972         (mswindows_fstat): Ditto.
5973         * sysfile.h: Under Windows, define X_OK to be the same as R_OK.
5974
5975 2007-02-08  Adrian Aichner  <adrian@xemacs.org>
5976
5977         * postgresql.c: Update Steve Baur's email address by his request.
5978         * postgresql.h: Ditto.
5979
5980 2007-01-04  Vin Shelton  <acs@xemacs.org>
5981
5982         * fileio.c (check_writable): Check old-style readonly bit only for
5983         non-directories.
5984
5985 2006-12-25  Benson I. Margulies  <benson@dchbk.us>
5986
5987         * src/fileio.c (check_writable): 
5988         Cope with the fact that the read-only attribute trumps Windows NTFS
5989         ACLS.
5990
5991
5992 2006-12-09  Vin Shelton  <acs@xemacs.org>
5993
5994         * XEmacs 21.4.20 is released
5995
5996 2006-12-08  Nelson Ferreira  <njsf@sxemacs.org>
5997
5998         * src/fns.c (XMALLOC_OR_ALLOCA,free_malloced_ptr,XMALLOC_UNBIND):
5999         relocated the definitions to be used sooner in file.
6000         (concat,plists_differ,mapcar1,Fmapconcat,Fmapcar): Use
6001         XMALLOC_OR_ALLOCA macro instead of alloca to prevent stack
6002         overflow.
6003
6004 2006-11-29  Aidan Kehoe  <kehoea@parhasard.net>
6005
6006         * sound.c (init_native_sound):
6007         Only X11 and GTK devices can possibly not be on the console of the
6008         associated machine. Fixes a crash when init_native_sound is called
6009         on a msprinter device. 
6010
6011 2006-11-14  Stephen J. Turnbull  <stephen@xemacs.org>
6012
6013         * buffer.c (buffer-file-name): Document invariant.
6014         (buffer-file-truename): Sync wording to buffer-file-name.
6015         Thanks to Nelson Ferreira <nelson.ferreira@ieee.org> for report
6016         and discussion.
6017
6018 2006-11-19  Benson Margulies  <benson@dchbk.us>
6019
6020         * fileio.c: Add code to use full Win32 API to check for write
6021         access.  Win32 has the general design policy that you aren't
6022         supposed to ask this question, since security checks change
6023         depending on asynchronous processes.  Nonetheless, there is a way,
6024         by acting as if we are a server doing interpretive access
6025         control.
6026
6027 2006-07-31  Aidan Kehoe <kehoea@parhasard.net>
6028
6029         * bytecode.c: Use xnew_array instead of alloca.
6030
6031 2006-07-04  Vin Shelton  <acs@xemacs.org>
6032
6033         * redisplay-msw.c: Fix tiny, but crucial typo.
6034
6035 2006-06-22  Jerry James  <james@xemacs.org>
6036
6037         * EmacsShell-sub.c (ChangeManaged):
6038         * device-x.c (x_IO_error_handler): Do not dereference d if it is
6039         NULL.
6040         * dgif_lib.c (DGifCloseFile): Do not dereference GifFile before
6041         checking if it is NULL.  Also fix a memory leak.
6042         * dialog-x.c (dbox_selection_callback): Ensure f is non-NULL, then
6043         dereference it, not the other way around.
6044         * dumper.c (pdump_register_object): Fix off-by-one array bounds
6045         overflow check.
6046         * dumper.c (pdump_register_struct): Ditto.
6047         * editfns.c (Ftemp_directory): Don't let a copy from (long) path
6048         to (short) warnpath overflow warnpath.
6049         * extents.c (detach_all_extents): Call extent_list_delete_all with
6050         a non-NULL parameter only.
6051         * glyphs-widget.c (widget_query_geometry): Guard against possibly
6052         NULL width and height.
6053         * input-method-xlib.c (XIM_SetGeometry): Do not dereference f or
6054         xic before checking if they are NULL.
6055         * keymap.c (where_is_recursive_mapper): Don't throw away the newly
6056         allocated array.
6057         * md5.c (Fmd5): Check whether Lstream_read encountered an error.
6058         * nas.c (Err): Fix a memory leak.
6059         * redisplay-gtk.c (gtk_output_display_block): Fix a Dynarr leak.
6060         Don't create the buffer if there is nothing to do.
6061         * redisplay-msw.c (mswindows_output_display_block): Ditto.
6062         * redisplay-output.c (redisplay_output_layout): Ditto.
6063         * redisplay-tty.c (tty_output_display_block): Ditto.
6064         * redisplay-x.c (x_output_display_block): Ditto.
6065         * scrollbar-gtk.c (gtk_free_scrollbar_instance): Do not
6066         dereference instance->scrollbar_data if it is NULL.
6067         * scrollbar-x.c (x_free_scrollbar_instance): Ditto.
6068         * scrollbar-msw.c (mswindows_free_scrollbar_instance): Ditto, but
6069         for sb->scrollbar_data.
6070         * sound.c (init_native_sound): Avoid a buffer overflow by
6071         allocating a buffer with the appropriate size.
6072
6073 2006-05-08  Stephen J. Turnbull  <stephen@xemacs.org>
6074
6075         * EmacsShell-sub.c (RootGeometryManager):
6076         Change garbage to useful messages under DEBUG_GEOMETRY_MANAGEMENT.
6077         Based on a suggestion by Francois L'Archeveque.
6078
6079 2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
6080
6081         * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
6082         current values found in GNU Emacs.
6083
6084 2006-03-17  Vin Shelton  <acs@xemacs.org>
6085
6086         * dialog-msw.c (handle_directory_dialog_box): Don't declare
6087         Q_title here.  LOCAL_FILE_FORMAT_TO_TSTR requires an lvalue.
6088
6089         * glyphs-msw.c (read_bitmap_data): change 'initialized' to
6090         'hex_initialized' because it conflicts with 'initialized' in
6091         lisp.h.
6092
6093 2006-01-28  Vin Shelton  <acs@xemacs.org>
6094
6095         * XEmacs 21.4.19 is released
6096
6097 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
6098
6099         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
6100
6101 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
6102
6103         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
6104         5000 to INT_MAX.
6105
6106 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6107
6108         * database.c: Suppress compiler warning under Cygwin.
6109         * database.c: Removed __FreeBSD__ check, should be handled by
6110         HAVE_U_xxx_T defines.
6111
6112 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
6113
6114         * console.c (stuff_buffered_input): Compile body only if
6115         HAVE_TTY.
6116
6117 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
6118
6119         * callproc.c: #include sysdir.h, so that any appropriate Mule
6120         magic happens with the chdir() call when calling a subprocess. 
6121
6122 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
6123
6124         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
6125         * mule-ccl.c: Check that a character set exists before using it
6126         to create a character. 
6127
6128 2005-12-06  Vin Shelton  <acs@xemacs.org>
6129
6130         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
6131         to INT_MAX.
6132
6133 2005-12-03  Vin Shelton <acs@xemacs.org>
6134
6135         * XEmacs 21.4.18 is released
6136
6137 2005-11-27  Kean Johnston <kean@armory.com>
6138
6139         * redisplay-tty.c (set_tty_modes):
6140         (reset_tty_modes): disable auto-margins if the terminal supports
6141         them.
6142         (init_tty_for_redisplay): fix cursor shape.
6143
6144 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
6145
6146         * mule-ccl.c (ccl_driver): Calculate the charset and position code
6147         for control-1 characters properly, both when reading multibyte
6148         characters and writing them. 
6149
6150 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
6151
6152         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
6153         * select-x.c (x_reply_selection_request): Use it; fix the bug we
6154         were seeing with incremental selection transfer failing. 
6155
6156 2005-11-26  Vin Shelton  <acs@xemacs.org>
6157
6158         * callproc.c (Fold_call_process_internal): Create the buffer if it
6159         does not already exist.  The original patch came from Ben Wing in
6160         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
6161
6162 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
6163
6164         * callproc.c: Process-related docstring improvements spurred by
6165         Norbert Koch.
6166
6167 2005-11-25  Vin Shelton  <acs@xemacs.org>
6168
6169         * depend: Regenerated.
6170
6171 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
6172
6173         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
6174         says it clashes with a global with the same name.
6175
6176 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
6177
6178         * sysdll.c (dll_open): Under MacOS X return NULL under the
6179         filename is NULL.  Fixes problems finding local symbols under 10.4
6180         (Tiger)
6181
6182 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6183         
6184         * config.h.in: New HAVE_U_INT*_T defines.
6185         
6186         * database.c: Only use u_int*_t typedefs if not already
6187         defined.
6188
6189 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
6190
6191         * src/process-unix.c (unix_open_network_stream): moved
6192           'portbuf' buffer out of an inner block as it is used in the
6193           entire function. With gcc4, the stack may get corrupted
6194           after leaving this block. This patches adjusts the size of
6195           the used buffer also; static '128' bytes are far too much
6196           currently and might not suffice for future architectures
6197           (e.g. for 512 bit ones ;)). Instead of, use only the really
6198           required space (max octets * ln(256)/ln(10) chars + space
6199           for '\0' and the sign)
6200
6201 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
6202
6203         * callproc.c: Include sysdir.h, so any necessary Mule processing
6204         is done on the current directory name before starting a new
6205         process.
6206
6207 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
6208
6209         * chartab.c (Fchar_table_p):
6210         (Fget_range_char_table):
6211         (Fput_char_table):
6212         (Fmap_char_table):
6213         Describe range representation and fix typo.
6214
6215 2005-02-12  Vin Shelton  <acs@xemacs.org>
6216
6217         * emacs.c (shut_down_emacs): Advise users to send email to the
6218         xemacs-beta list instead of crashes@xemacs.org.
6219
6220 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6221
6222         * process-unix.c (unix_send_process): Flush the last chunk, even
6223         when the pipe is blocked.
6224
6225 2005-02-06  Vin Shelton <acs@xemacs.org>
6226
6227         * XEmacs 21.4.17 is released
6228
6229 2005-01-31  Ben Wing  <ben@xemacs.org>
6230
6231         * emacs.c:
6232         Define assert_failed() always.
6233         * lisp.h:
6234         Always define ABORT().
6235
6236 2005-01-25  Ben Wing  <ben@xemacs.org>
6237
6238         * Makefile.in.in:
6239         * Makefile.in.in (%.o):
6240         Don't compile executable as Windows (-mwindows) under Cygwin.
6241         Semi-recent changes to Cygwin's executable-startup handling make
6242         it impossible to access the TTY this way.
6243
6244         Don't use special linker file under Cygwin (cygwin.sc) except
6245         when non-PDUMP (even in this case it is highly questionable); you
6246         get errors like
6247
6248       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6249    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6250
6251 2005-01-29  Ben Wing  <ben@xemacs.org>
6252
6253         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6254
6255         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6256
6257 2005-01-29  Ben Wing  <ben@xemacs.org>
6258
6259         * bytecode.c (optimize_compiled_function):
6260         * print.c (FROB):
6261         * print.c (long_to_string):
6262         Add casts to avoid warning.
6263         
6264         * glyphs-eimage.c:
6265         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6266         #### The better solution is to move the TIFF and JPEG code to
6267         different files.
6268         
6269         * glyphs-msw.c (mswindows_xbm_instantiate):
6270         Define __STDC__ to avoid problems with compface.h.
6271         
6272         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6273         * EmacsShell-sub.c:
6274         * EmacsShell-sub.c (ABORT):
6275         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6276         * EmacsShell-sub.c (RootGeometryManager):
6277         * EmacsShell.c:
6278         * EmacsShell.c (ABORT):
6279         * EmacsShell.c (EmacsShellUpdateSizeHints):
6280         * alloc.c (free_lcrecord):
6281         * alloca.c (i00afunc):
6282         * buffer.c (delete_from_buffer_alist):
6283         * buffer.c (MARKED_SLOT):
6284         * bytecode.c (execute_rare_opcode):
6285         * bytecode.c (optimize_byte_code):
6286         * bytecode.c (Ffetch_bytecode):
6287         * chartab.c (char_table_type_to_symbol):
6288         * chartab.c (Freset_char_table):
6289         * chartab.c (decode_char_table_range):
6290         * chartab.c (Fget_range_char_table):
6291         * chartab.c (check_valid_char_table_value):
6292         * chartab.c (map_char_table):
6293         * chartab.c (slow_map_char_table_fun):
6294         * chartab.c (chartab_instantiate):
6295         * cm.c (cmcheckmagic):
6296         * console-msw.c (DHEADER):
6297         * console.c (MARKED_SLOT):
6298         * data.c (finish_marking_weak_lists):
6299         * data.c (encode_weak_list_type):
6300         * debug.h (DASSERT):
6301         * device-gtk.c (gtk_init_device):
6302         * device-msw.c (mswindows_get_default_margin):
6303         * device-tty.c (tty_init_device):
6304         * device-x.c (get_device_from_display):
6305         * device-x.c (x_get_visual_depth):
6306         * doprnt.c (parse_doprnt_spec):
6307         * doprnt.c (get_doprnt_args):
6308         * dumper.c (pdump_get_indirect_count):
6309         * dumper.c (pdump_register_sub):
6310         * dumper.c (pdump_register_object):
6311         * dumper.c (pdump_register_struct):
6312         * dumper.c (pdump_dump_data):
6313         * dumper.c (pdump_reloc_one):
6314         * elhash.c (print_hash_table):
6315         * elhash.c (make_standard_lisp_hash_table):
6316         * elhash.c (hash_table_instantiate):
6317         * emacs.c:
6318         * emacs.c (Fforce_debugging_signal):
6319         * emacs.c (sort_args):
6320         * emacs.c (main):
6321         * emacs.c (assert_failed):
6322         * eval.c (throw_or_bomb_out):
6323         * eval.c (signal_1):
6324         * eval.c (Fsignal):
6325         * event-Xt.c:
6326         * event-Xt.c (emacs_Xt_mapping_action):
6327         * event-Xt.c (Xt_process_to_emacs_event):
6328         * event-msw.c:
6329         * event-stream.c (check_event_stream_ok):
6330         * event-stream.c (Fadd_timeout):
6331         * event-stream.c (Fadd_async_timeout):
6332         * event-stream.c (Fdiscard_input):
6333         * event-stream.c (execute_internal_event):
6334         * event-stream.c (Frecent_keys):
6335         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6336         * event-stream.c (lookup_command_event):
6337         * event-unixoid.c (poll_fds_for_input):
6338         * events.c:
6339         * events.c (mark_event):
6340         * events.c (event_equal):
6341         * events.c (event_hash):
6342         * events.c (Fmake_event):
6343         * events.c (Fdeallocate_event):
6344         * events.c (event_chain_find_previous):
6345         * events.c (event_to_character):
6346         * events.c (format_event_object):
6347         * events.c (Fevent_type):
6348         * events.c (event_pixel_translation):
6349         * events.c (Fevent_properties):
6350         * extents.c (extent_in_region_p):
6351         * extents.c (print_extent):
6352         * extents.c (process_extents_for_insertion_mapper):
6353         * extents.c (report_extent_modification_mapper):
6354         * extents.c (glyph_layout_to_symbol):
6355         * faces.c (face_validate):
6356         * file-coding.c (eol_type_to_symbol):
6357         * file-coding.c (subsidiary_coding_system):
6358         * file-coding.c (Fcoding_system_type):
6359         * file-coding.c (Fcoding_system_property):
6360         * file-coding.c (mule_decode):
6361         * file-coding.c (mule_encode):
6362         * file-coding.c (encode_coding_ucs4):
6363         * file-coding.c (encode_coding_utf8):
6364         * file-coding.c (parse_iso2022_esc):
6365         * file-coding.c (encode_coding_iso2022):
6366         * fileio.c:
6367         * fns.c (concat):
6368         * fns.c (Fsubseq):
6369         * fns.c (mapcar1):
6370         * fns.c (Fbase64_encode_region):
6371         * fns.c (Fbase64_encode_string):
6372         * fns.c (Fbase64_decode_region):
6373         * fns.c (Fbase64_decode_string):
6374         * font-lock.c (find_context):
6375         * font-lock.c (context_to_symbol):
6376         * frame-gtk.c (gtk_set_frame_pointer):
6377         * frame-gtk.c (gtk_update_frame_external_traits):
6378         * frame-x.c (x_wm_mark_shell_size_user_specified):
6379         * frame-x.c (x_wm_mark_shell_position_user_specified):
6380         * frame-x.c (x_wm_set_shell_iconic_p):
6381         * frame-x.c (x_wm_set_cell_size):
6382         * frame-x.c (x_wm_set_variable_size):
6383         * frame-x.c (x_wm_store_class_hints):
6384         * frame-x.c (x_wm_maybe_store_wm_command):
6385         * frame-x.c (x_initialize_frame_size):
6386         * frame-x.c (x_update_frame_external_traits):
6387         * frame.c:
6388         * frame.c (delete_frame_internal):
6389         * frame.c (mouse_pixel_position_1):
6390         * frame.c (change_frame_size_1):
6391         * free-hook.c (check_free):
6392         * free-hook.c (check_realloc):
6393         * free-hook.c (note_block_input):
6394         * free-hook.c (log_gcpro):
6395         * gccache-gtk.c (gc_cache_lookup):
6396         * glyphs-eimage.c (tiff_memory_write):
6397         * glyphs-gtk.c (gtk_finalize_image_instance):
6398         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6399         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6400         * glyphs-gtk.c (gtk_xpm_instantiate):
6401         * glyphs-gtk.c (gtk_unmap_subwindow):
6402         * glyphs-gtk.c (gtk_map_subwindow):
6403         * glyphs-gtk.c (gtk_button_redisplay):
6404         * glyphs-msw.c:
6405         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6406         * glyphs-x.c (init_image_instance_from_xbm_inline):
6407         * glyphs-x.c (extract_xpm_color_names):
6408         * glyphs-x.c (x_xpm_instantiate):
6409         * glyphs.c (get_image_instantiator_governing_domain):
6410         * glyphs.c (print_image_instance):
6411         * glyphs.c (image_instance_equal):
6412         * glyphs.c (image_instance_hash):
6413         * glyphs.c (encode_image_instance_type):
6414         * glyphs.c (make_image_instance_1):
6415         * glyphs.c (inherit_instantiate):
6416         * glyphs.c (image_instantiate):
6417         * glyphs.c (allocate_glyph):
6418         * glyphs.c (Fglyph_type):
6419         * glyphs.c (redisplay_subwindow):
6420         * glyphs.c (display_table_entry):
6421         * gtk-glue.c (xemacs_list_to_gtklist):
6422         * gtk-glue.c (xemacs_gtklist_to_list):
6423         * gtk-glue.c (xemacs_list_to_array):
6424         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6425         * gutter.c (gutter_was_visible):
6426         * gutter.c (get_gutter_coords):
6427         * input-method-xlib.c (get_XIM_input):
6428         * insdel.c (bufpos_to_bytind_func):
6429         * insdel.c (bytind_to_bufpos_func):
6430         * insdel.c (move_gap):
6431         * intl.c (x_get_composed_input):
6432         * keymap.c (keymap_lookup_directly):
6433         * keymap.c (keymap_delete_inverse_internal):
6434         * keymap.c (ensure_meta_prefix_char_keymapp):
6435         * keymap.c (accessible_keymaps_mapper_1):
6436         * keymap.c (where_is_recursive_mapper):
6437         * lisp.h:
6438         * lisp.h (ABORT):
6439         * lread.c (read_atom):
6440         * lstream.c (Lstream_delete):
6441         * lstream.c (make_lisp_buffer_stream_1):
6442         * macros.c (pop_kbd_macro_event):
6443         * malloc.c (malloc):
6444         * malloc.c (free):
6445         * marker.c (bi_marker_position):
6446         * marker.c (set_bi_marker_position):
6447         * menubar-gtk.c (menu_descriptor_to_widget_1):
6448         * menubar-msw.c (prune_menubar):
6449         * menubar-x.c (set_frame_menubar):
6450         * mule-charset.c (get_unallocated_leading_byte):
6451         * mule-charset.h (CHAR_LEADING_BYTE):
6452         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6453         * nt.c (init_environment):
6454         * nt.c (generate_inode_val):
6455         * ntproc.c (delete_child):
6456         * ntproc.c (_sys_read_ahead):
6457         * ntproc.c (create_child):
6458         * objects.c (color_instantiate):
6459         * objects.c (font_instantiate):
6460         * objects.c (face_boolean_instantiate):
6461         * print.c (printing_major_badness):
6462         * process-nt.c (nt_send_process):
6463         * process-unix.c (unix_send_process):
6464         * process.c (get_process):
6465         * ralloc.c (obtain):
6466         * ralloc.c (relinquish):
6467         * ralloc.c (relocate_blocs):
6468         * ralloc.c (resize_bloc):
6469         * ralloc.c (r_alloc_free):
6470         * ralloc.c (r_re_alloc):
6471         * ralloc.c (r_alloc_thaw):
6472         * ralloc.c (init_ralloc):
6473         * ralloc.c (Free_Addr_Block):
6474         * ralloc.c (r_alloc):
6475         * redisplay-gtk.c (gtk_output_display_block):
6476         * redisplay-msw.c (mswindows_output_display_block):
6477         * redisplay-output.c (get_next_display_block):
6478         * redisplay-output.c (get_cursor_size_and_location):
6479         * redisplay-output.c (redisplay_output_layout):
6480         * redisplay-output.c (redisplay_clear_region):
6481         * redisplay-tty.c (tty_output_display_block):
6482         * redisplay-x.c (x_output_display_block):
6483         * redisplay.c (add_propagation_runes):
6484         * redisplay.c (add_glyph_rune):
6485         * redisplay.c (create_text_block):
6486         * redisplay.c (add_margin_runes):
6487         * redisplay.c (create_left_glyph_block):
6488         * redisplay.c (create_right_glyph_block):
6489         * redisplay.c (create_string_text_block):
6490         * redisplay.c (regenerate_window):
6491         * redisplay.c (REGEN_INC_FIND_START_END):
6492         * redisplay.c (redisplay_frame):
6493         * redisplay.c (point_in_line_start_cache):
6494         * regex.c:
6495         * regex.c (ABORT):
6496         * regex.c (re_compile_fastmap):
6497         * regex.c (re_match_2_internal):
6498         * regex.c (regerror):
6499         * scrollbar-gtk.c (gtk_scrollbar_loop):
6500         * scrollbar-gtk.c (scrollbar_cb):
6501         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6502         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6503         * scrollbar-x.c (x_update_scrollbar_instance_status):
6504         * scrollbar-x.c (x_scrollbar_loop):
6505         * scrollbar-x.c (x_update_frame_scrollbars):
6506         * search.c (search_command):
6507         * search.c (Fmatch_data):
6508         * select-x.c (motif_clipboard_cb):
6509         * signal.c (interrupt_signal):
6510         * specifier.c (specifier_add_spec):
6511         * specifier.c (specifier_instance_from_inst_list):
6512         * specifier.c (specifier_instance):
6513         * specifier.h:
6514         * specifier.h (struct specifier_methods):
6515         * strftime.c (add_num_time_t):
6516         * sunplay.c (init_device):
6517         * symbols.c (Fsetplist):
6518         * symbols.c (do_symval_forwarding):
6519         * symbols.c (store_symval_forwarding):
6520         * symbols.c (Fset):
6521         * symbols.c (Fbuilt_in_variable_type):
6522         * symbols.c (decode_magic_handler_type):
6523         * symbols.c (handler_type_from_function_symbol):
6524         * syntax.c (update_syntax_cache):
6525         * sysdep.c (init_baud_rate):
6526         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6527         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6528         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6529         * toolbar.c (get_toolbar_coords):
6530         * ui-gtk.c (build_gtk_boxed):
6531         * ui-gtk.c (describe_gtk_arg):
6532         * ui-gtk.c (gtk_type_to_lisp):
6533         * ui-gtk.c (lisp_to_gtk_type):
6534         * ui-gtk.c (lisp_to_gtk_ret_type):
6535         * ui-gtk.c (lisp_to_flag):
6536         * unexnt.c (read_in_bss):
6537         * unexnt.c (map_in_heap):
6538         * window.c (real_window):
6539         * window.c (window_display_lines):
6540         * window.c (window_display_buffer):
6541         * window.c (set_window_display_buffer):
6542         * window.c (window_modeline_height):
6543         * window.c (unshow_buffer):
6544         * window.c (window_loop):
6545         * window.c (Fget_lru_window):
6546         * window.c (Fsplit_window):
6547         * window.c (Fset_window_configuration):
6548         * window.c (saved_window_index):
6549         * xgccache.c (gc_cache_lookup):
6550         abort() -> ABORT().  Eliminate preprocessor games with abort()
6551         since it creates huge problems in VC7, solvable only by including
6552         massive amounts of files in every compile (and not worth it).
6553
6554         * sysdep.c:
6555         * sysproc.h:
6556         Inclusion of process.h does not need to be before lisp.h any more.
6557         Move later and remove comment about abort().
6558
6559 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6560
6561         * regex.c (re_match_2_internal):
6562         Correctly initialize loop which clears uninitialized registers.
6563
6564 2005-01-28  Vin Shelton  <acs@xemacs.org>
6565
6566         * sheap.c (more_static_core): Applied Ben's version of the long
6567         string patch.
6568
6569 2005-01-24  Vin Shelton  <acs@xemacs.org>
6570
6571         * sheap.c (more_static_core): Reformatted printf string so
6572         gcc-3.3.3 will compile this on Cygwin.
6573
6574 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6575
6576         * console.c (function_key_map): Reference `key-binding'.
6577
6578         * keymap.c (Vkey_translation_map): Improve docstring.
6579
6580 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6581
6582         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6583         * window.c (window_loop): [fix] Take into account
6584         `allow-deletion-of-last-visible-frame' variable.
6585         * window.c (replace-buffer-in-windows): Ditto.
6586
6587 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6588
6589         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6590
6591 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6592
6593         * event-gtk.c: Recognise AltGr as a valid modifier.
6594
6595 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6596
6597         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6598
6599 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6600
6601         Fix backreference bug caught by test suite.
6602
6603         * regex.c (regex_compile):
6604         Make backref duplicate internal register.
6605
6606 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6607
6608         Documentation, code clarification, and warning suppression.
6609         
6610         * regex.c (regex_compile):
6611         Improve comments.
6612         (re_match_2_internal):
6613         Improve comments and avoid redundant braces.  [Most of the big hunk
6614         at l. 4710 is indentation; use diff -w to see the real changes.]
6615         (alt_match_null_string_p):
6616         (common_op_match_null_string_p):
6617         Avoid shadowing global on Mac OS X 10.4, at least.
6618
6619 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6620
6621         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6622         introduced with shy groups fix).  [Already applied, probably
6623         with the second "fix shy groups" patch of 2004-10-07.] 
6624
6625 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6626
6627         From Andrey Slusar <anrays@gmail.com>:
6628
6629         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6630
6631 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6632
6633         * Makefile (RECURSIVE_MAKE): Removed.
6634         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6635         handling parallel builds.
6636
6637 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6638
6639         * Makefile.in.in: Enable support for parallel builds.
6640
6641 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6642
6643         From Andrey Slusar <anrays@gmail.com>:
6644
6645         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6646         FreeBSD version is >= 199701 _and_ < 600006.
6647
6648 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6649
6650         * scrollbar.c (compute_scrollbar_instance_usage):
6651         Only call device method compute_scrollbar_instance_usage() if it
6652         is defined.
6653
6654 2004-12-05  Vin Shelton <acs@xemacs.org>
6655
6656         * XEmacs 21.4.16 is released
6657
6658 2004-12-04  Vin Shelton  <acs@xemacs.org>
6659
6660         * depend: Regenerated.
6661
6662 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6663
6664         * regex.c (re_match_2_internal): Map internal to external
6665         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6666         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6667
6668 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6669
6670         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6671         to fix a crash.  Also, check the buffer is live and it
6672         really exists in buffer_list.  If the buffer is not in the list,
6673         prepend it.
6674
6675 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6676
6677         Fix shy groups by implementing recording of all groups for
6678         repetition and backtracking.  Backport from 21.5.
6679         
6680         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6681         external_to_internal_register, external_to_internal_register_size,
6682         and update comments for re_nsub.
6683
6684         * regex.c (re_opcode_t): Update comments.
6685         (print_compiled_pattern): Ouput external_to_internal_register,
6686         external_to_internal_register_size, and re_ngroups for debugging.
6687         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6688         (regex_compile): Update header comment.
6689         Ensure that all groups are recorded so that repeat matches and
6690         backtracking work correctly.  Comment related warning for groups >
6691         255.
6692         (re_search_2): Construct map of API indexes (which count only
6693         nonshy groups) to internal register numbers, and keep it updated.
6694
6695 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6696
6697         * frame-gtk.c (gtk_make_frame_visible):
6698         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6699         show/hide.  This is what X uses and is prevents previously hidden
6700         widgets from suddenly reappearing.
6701         * gtk-xemacs.c (gtk_xemacs_paint):
6702         * gtk-xemacs.c (gtk_xemacs_draw):
6703         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6704         drawable.
6705         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6706         size and location changes so that they can be seen before the next
6707         idle event.  Without this rapid changes to scrollbar properties
6708         are not seen.
6709
6710 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6711
6712         * console-gtk.h:
6713         * console-gtk.h (struct gtk_frame):
6714         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6715           Add hash tables track tab_control callback data.
6716           Added #defines for GTK object data names.
6717           Declaration of gtk_widget_to_frame().
6718         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6719         * frame-gtk.c (gtk_widget_to_frame): New.
6720         * frame-gtk.c (gtk_create_widgets):
6721         * frame-gtk.c (allocate_gtk_frame_struct):
6722         * frame-gtk.c (gtk_mark_frame):
6723         Manage frame callbakc hash tables.
6724         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6725         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6726         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6727         of widget size.
6728         * glyphs-gtk.c (gtk_widget_query_geometry): New
6729         * glyphs-gtk.c (gtk_register_gui_item): New
6730         * glyphs-gtk.c (gtk_add_tab_item): New
6731         * glyphs-gtk.c (gtk_tab_control_callback): New
6732         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6733         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6734         Use correct list when loading item.
6735         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6736         Register new methods.
6737         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6738         default size, for widgets.
6739         * gui-x.c:  Improved comment.
6740         * menubar-gtk.c (__generic_button_callback): Use
6741         gtk_widget_to_frame instead of __get_channel.
6742         * scrollbar-gtk.c:
6743         * ui-gtk.c: Use symbolic names for GTK object data.
6744
6745 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6746
6747         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6748
6749 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6750
6751         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6752
6753 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6754
6755         * malloc.c (morecore): siz is a long because in some architectures
6756         (eg ia-64) an int cannot hold the address range.  Additional patch
6757         from the SuSe distribution.
6758
6759 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6760
6761         * emacs.c:
6762         * malloc.c: lim_data is a long because in some architectures
6763         (eg ia-64) an int cannot hold the address range.
6764         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6765         instead of ulimit() because ulimit() always returns -1.
6766
6767 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6768
6769         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6770
6771 2004-06-11  David Kastrup  <dak@gnu.org>
6772
6773         * search.c (match_limit): Don't flag an error if match-data
6774         exceeding the allocated search_regs.num_regs gets requested, just
6775         return Qnil.
6776
6777 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6778
6779         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6780         replace symbolic color entries with the real colors specified in
6781         xpm-color-symbols, before passing the XPM to gtk.
6782         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6783         instead of a GTK specific field, so that it is used in by generic
6784         code.
6785
6786 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6787
6788        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6789         coredump from deref of NULL ptr (ExtData)
6790
6791 2004-04-19  Jerry James  <james@xemacs.org>
6792
6793         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6794         VALBITS to compute the location of the sign bit.
6795         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6796         of VALBITS with EMACS_INT_MAX.
6797         * events.c (Fevent_timestamp): Ditto.
6798         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6799         compute the halfway point to timestamp wraparound.
6800         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6801         EMACS_INT_MIN instead of using VALBITS.
6802         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6803         incorrect number with VALBITS.
6804         * fns.c (Frandom): Correct number of integer bits in docstring.
6805         Use INT_VALBITS instead of VALBITS to compute the denominator.
6806         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6807         build random numbers.
6808
6809 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6810         * event-gtk.c:
6811         * event-gtk.c (gtk_event_to_emacs_event):
6812         * menubar-gtk.c:
6813         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6814         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6815         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6816         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6817         * menubar-gtk.c (__activate_menu):
6818         * menubar-gtk.c (convert_underscores):
6819         * menubar-gtk.c (remove_underscores):
6820         * menubar-gtk.c (menu_convert):
6821         * menubar-gtk.c (menu_descriptor_to_widget_1):
6822         * menubar-gtk.c (menu_descriptor_to_widget):
6823         * menubar-gtk.c (menu_can_reuse_widget):
6824         * menubar-gtk.c (menu_create_menubar):
6825         * menubar-gtk.c (gtk_popup_menu):
6826         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6827         Added support for Gtk menu bar and menu item mnemonics.
6828
6829 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6830
6831         * sysdll.c: (dll_function): Added support for finding symbols in
6832         Darwin shared libraries as well in Darwin bundles.
6833         * sysdll.c (image_for_address): New
6834         * sysdll.c (my_find_image): New
6835         * sysdll.c (search_linked_libs): New
6836
6837 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6838
6839         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6840         return to GTK requires a different API to marshalling data to use
6841         as GTK parameters.
6842         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6843
6844 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6845
6846         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6847
6848 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6849
6850         * glyphs.c (process_image_string_instantiator):
6851         (Fset_console_type_image_conversion_list):
6852         Stop GCC from warning about shadowing of `exp'.
6853
6854         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6855
6856 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6857
6858         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6859
6860 2004-02-03  Vin Shelton  <acs@xemacs.org>
6861
6862         * glyphs.c (image_instance_layout): Remove pointless assertion.
6863         * regex.c (regex_grow_registers): Return type is void.
6864
6865 2004-02-02  Vin Shelton <acs@xemacs.org>
6866
6867         * XEmacs 21.4.15 is released
6868
6869 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6870
6871         * device-x.c (x_error_handler): Don't call stderr_out
6872
6873 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6874
6875         * buffer.c (other-buffer): Clarify documentation of order of
6876         arguments for FSF Emacs.
6877
6878 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6879
6880         * window.c (Fdelete_window): Dirty the mirror structure _before_
6881         marking the window deleted.
6882
6883 2003-09-15  Jerry James  <james@xemacs.org>
6884
6885         * event-msw.c (debug_mswin_messages): Conditionally compile
6886         messages missing from the Cygwin headers.
6887
6888 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6889
6890         * data.c (eq_with_ebola_notice): Fix typo in comment.
6891         (Ftrue_list_p): Improve docstring.
6892
6893 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6894
6895         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6896
6897 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6898
6899         * search.c (trivial_regexp_p): Regexps containing "\{" are
6900         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6901         Stefan Monnier for suggesting a diagnosis.
6902
6903 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6904
6905         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6906
6907 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6908
6909         * search.c (Fsearch_forward):
6910         (Fsearch_backward):
6911         Document negative count.
6912
6913 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6914
6915         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6916
6917 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6918
6919         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6920
6921 2003-09-15  Vin Shelton  <acs@xemacs.org>
6922
6923         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6924         21.5.
6925
6926 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6927
6928         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6929         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6930         (re_match_2_internal): Use TRANSLATE instead of
6931         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6932         non-ASCII char case conversion.
6933
6934 2003-09-08  Mike Sperber  <mike@xemacs.org>
6935
6936         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6937         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6938
6939 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6940
6941        * .gdbinit (pobj): fix printing of symbol name.
6942
6943 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6944
6945         * frame-x.c (x_layout_widgets): When resizing is about to cause
6946         frame size slip, mark it for redisplay.
6947
6948 2003-08-18  Jerry James  <james@xemacs.org>
6949
6950         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6951
6952 2003-09-03  Vin Shelton <acs@xemacs.org>
6953
6954         * XEmacs 21.4.14 is released
6955
6956 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6957
6958         * config.h.in (REGEX_MALLOC): Make it configure'able.
6959
6960 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6961
6962         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6963         linking.
6964         * sysdll.c (dll_init):
6965         * sysdll.c (dll_open):
6966         * sysdll.c (dll_close):
6967         * sysdll.c (dll_function):
6968         * sysdll.c (dll_variable):
6969         * sysdll.c (dll_error):
6970         Add support for loading bundles using Darwin/MacOSX
6971         native API.
6972
6973 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6974
6975         * process.c (start-process-internal): Document coding systems.
6976
6977 2003-07-30  Jerry James  <james@xemacs.org>
6978
6979         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6980
6981 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
6982
6983         * event-msw.c (mswindows_enqueue_mouse_button_event):
6984         * event-msw.c (mswindows_wnd_proc):
6985           enqueue button event when scrollwheel event isn't handled by 
6986           mswindows_handle_mousewheel_event, such as when the scrollbars
6987           are not showing.
6988
6989 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
6990
6991         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
6992
6993 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
6994
6995         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
6996
6997 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
6998
6999         * regex.c (re_match_2_internal): Fix matching degenerate word
7000         boundaries.
7001
7002 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
7003
7004         * XEmacs 21.4.13 is released
7005
7006 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
7007
7008         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
7009         * lisp.h (<inttypes.h>):
7010         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
7011         the definition.
7012
7013 2003-03-15  Martin Buchholz  <martin@xemacs.org>
7014
7015         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
7016         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
7017         Result: "temacs can only be run in -batch mode."
7018         Fix: Check xemacs executable candidate for directory-ness.
7019
7020 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
7021
7022         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
7023           they conflict with <sys/types.h>.
7024
7025 2003-02-14  Martin Buchholz  <martin@xemacs.org>
7026
7027         * database.c: Berkeley DB wants __STDC__ to be defined.
7028
7029 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7030
7031         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
7032
7033 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7034
7035         * process-unix.c (unix_send_process): Fix C++ compile error.
7036
7037 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
7038
7039         * Added .dylib as an acceptable shared library file extension
7040         * to support MacOSX.
7041
7042 2003-02-01  Martin Buchholz  <martin@xemacs.org>
7043
7044         * EmacsFrameP.h (EmacsFramePart):
7045         Kludge to allow compiling with Motif1, but linking with Motif2.
7046
7047 2003-01-28  Martin Buchholz  <martin@xemacs.org>
7048
7049         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
7050
7051
7052 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
7053
7054         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
7055
7056 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
7057
7058         * sysdll.c: Included lisp.h to define needed alloca_array.
7059
7060 2003-02-13  Martin Buchholz  <martin@xemacs.org>
7061
7062         Make XEmacs redisplay 10 times faster.
7063         If, that is, you're using a slow X connection and MoveOpaque.
7064         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
7065         Use compress_motion = TRUE.
7066         * EmacsFrame.c (emacsFrameClassRec): 
7067         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
7068         * EmacsManager.c (emacsManagerClassRec):
7069         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
7070
7071 2003-01-30  Vin Shelton  <acs@xemacs.org>
7072
7073         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
7074
7075 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
7076
7077         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
7078         Patch by Martin Buchholz.
7079
7080 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
7081
7082         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
7083         Thanks to icc for warning and Martin Buchholz for reporting.
7084
7085 2003-01-29  Vin Shelton <acs@xemacs.org>
7086
7087         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
7088
7089         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
7090         remember to multiply by the element size.
7091
7092 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
7093
7094         * XEmacs 21.4.12 "Portable Code" is released.
7095
7096 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
7097
7098         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
7099         * s/cygwin.sc: new linker file.
7100
7101 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
7102
7103         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
7104
7105         * redisplay-x.c (x_output_string): Use X11-specified types.
7106         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
7107         * emacs.c (__free_hook): Use typeof with Intel compiler.
7108         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
7109
7110 2003-01-08  Andy Piper  <andy@xemacs.org>
7111
7112         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
7113         reserve size during unexec().
7114
7115 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
7116
7117         * process-unix.c (unix_create_process): Don't let outchannel block.
7118
7119 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
7120
7121         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
7122         Needed for IsBadReadPtr().
7123
7124 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
7125
7126         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
7127
7128 2002-12-14  Ben Wing  <ben@xemacs.org>
7129
7130         * callint.c: Declaration error.
7131         * dumper.c (pdump):
7132         * dumper.c (pdump_load): Warning fix.
7133         * process.c: GCPRO error.
7134         * glyphs.c (unmap_subwindow):
7135         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
7136         * event-stream.c (maybe_kbd_translate): Wrong argument to
7137         character_to_event().
7138
7139         * alloc.c (garbage_collect_1):
7140         * emacs.c:
7141         * emacs.c (debug_can_access_memory):
7142         * emacs.c (fatal_error_signal):
7143         * emacs.c (mswindows_handle_hardware_exceptions):
7144         * emacs.c (main_1):
7145         * emacs.c (main):
7146         * emacs.c (assert_failed):
7147         * emacs.c (syms_of_emacs):
7148         * lisp.h:
7149         * print.c:
7150         * print.c (std_handle_out_va):
7151         * print.c (write_string_to_stdio_stream):
7152         * print.c (write_fmt_string):
7153         * print.c (printing_badness):
7154         * print.c (printing_major_badness):
7155         * print.c (print_internal):
7156         * print.c (debug_print_no_newline):
7157         * print.c (debug_backtrace):
7158         Be more defensive in handling bad values when printing.  Add code
7159         from trunk involving inhibit_non_essential_printing_operations.
7160         When going down or in debug_print(), don't do external conversion
7161         and such and try really, really hard when printing to avoid core
7162         dumping.  Add force-debugging-signal, debug_break().
7163
7164 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
7165
7166         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
7167         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
7168
7169 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
7170
7171         * database.c: Fix open_database. Berkeley DB API has changed in
7172         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
7173
7174 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
7175
7176         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
7177
7178 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
7179
7180         * event-Xt.c (Xt_timeout):
7181         (Xt_timeout_callback):
7182         (emacs_Xt_add_timeout):
7183         (emacs_Xt_remove_timeout):
7184         (Xt_timeout_to_emacs_event):
7185         Turn completed_timeouts from a stack into a queue.  Fixes
7186         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
7187
7188 2002-11-07  Wolfram Gloger  <wg@malloc.de>
7189
7190         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
7191         * emacs.c (main): Assert that mmap'd allocation is disabled.
7192
7193 2002-10-14  Andy Piper  <andy@xemacs.org>
7194
7195         * glyphs-widget.c (layout_query_geometry): add in fiddle
7196         factor. Include border text in width layout calculation.
7197         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
7198
7199 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
7200
7201         * XEmacs 21.4.10 "Military Intelligence" is released.
7202
7203 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
7204
7205         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
7206         using the NAS private array SoundFileInfo that no longer exists in
7207         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
7208         and earlier.  This is broken for some versions between 1.5a and
7209         1.5f.
7210
7211 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
7212
7213         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7214
7215         * emacs.c (shut_down_emacs): Improve crash message.
7216
7217 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7218
7219         * file-coding.c (determine_real_coding_system): Check for coding
7220         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7221         shebangs and Python PEP 263.
7222
7223 2002-10-08  Andy Piper  <andy@xemacs.org>
7224
7225         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7226         if static sizes haven't been set.
7227
7228 2002-08-30  Mike Alexander  <mta@arbortext.com>
7229
7230         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7231         to close a socket.
7232
7233 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7234
7235         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7236
7237 2002-09-20  Mike Sperber <mike@xemacs.org>
7238
7239         (This partially gets back my patch from 2002-07-20 without the
7240         bug.)
7241         * callproc.c (child_setup): Remove Ben's comment noting confusion
7242         over the file descriptors >= 3: close_process_descs() doesn't
7243         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7244         * process-unix.c (unix_create_process): Call
7245         begin_dont_check_for_quit to inhibit unwanted interaction (and
7246         thus breaking of X event synchronicity) in the child.
7247
7248 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7249
7250         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7251         widget.
7252
7253 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7254
7255         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7256         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7257         the xemacs process did not exit, but looped infinitely here.  This
7258         fixes that problem.
7259
7260 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7261
7262         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7263         (find_context): Improve comments.
7264
7265         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7266         (re_match_2): An XCHAR_TABLE operation was missing.
7267
7268         Many of the following changes were inspired by Andy Piper's (now
7269         obsolete) patch to make syntax-table text property lookup optional.
7270
7271         [Documentation]
7272
7273         * syntax.h (top level): Document semantics of syntax flags.
7274         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7275         * syntax.c, syntax.h (top level): Document syntax cache better in
7276         comments.
7277
7278         [Instrument syntax caching (temporary change)]
7279
7280         * syntax.h (enum syntax_cache_statistics_functions, struct
7281         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7282         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7283         * syntax.c (scan_words, Fforward_comment, scan_lists,
7284         Fbackward_prefix_characters):
7285         * font-lock.c (find_context):
7286         Use them to instrument syntax caching. 
7287         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7288         syntax_cache_statistics_function_names): New type and variables.
7289         * syntax.c (update_syntax_cache): Update and report statistics.
7290
7291         [Major syntax cache optimizations]
7292
7293         syntax.c (lookup_syntax_properties): Default off.
7294
7295         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7296         * syntax.c (update_syntax_cache):
7297         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7298
7299         [Minor syntax cache optimizations and code clarifications]
7300
7301         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7302         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7303         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7304         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7305         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7306         (Code clarification.)
7307
7308         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7309         scan_lists): Compute code from syncode, use Boolean macros instead
7310         of redundant masking operations.  (Code clarification; any decent
7311         compiler can do this optimization.)
7312
7313         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7314         for clarity.
7315
7316         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7317         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7318         use F*_single_property_change instead of F*_extent_change.
7319         Currently F*_single_property_change is _much_ less efficient.
7320
7321         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7322         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7323         syntax_cache.object properly, don't leave Qt or Qnil.
7324         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7325         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7326         tests for Qt or Qnil.
7327
7328 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7329
7330         * redisplay.c (point_in_line_start_cache): 
7331         * extents.c (print_extent_1):
7332         Fix warnings.
7333
7334         * extents.c (Fset_extent_property): Document `syntax-table' property.
7335
7336         * extents.h (Fnext_single_property_change): EXFUN it.
7337
7338 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7339
7340         * search.c (clear_unused_search_regs): New static function.
7341         (search_buffer): 
7342         (simple_search): 
7343         (boyer_moore):
7344         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7345         Minor clarifications in comments.
7346
7347         * regex.c (re_match_2_internal): Ensure no stale submatches.
7348
7349 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7350
7351         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7352
7353 2002-08-29  Jerry James  <james@xemacs.org>
7354
7355         * lisp.h: structrures -> structures.
7356
7357 2002-06-03  Andy Piper  <andy@xemacs.org>
7358
7359         * frame.c (frame_conversion_internal): add conversion appropriate
7360         for setting frame dimensions in pixels.
7361
7362         * console.h (struct console_methods): add device-specific widget
7363         layout functions.
7364
7365         * emacs.c (main_1): initialize glyph vars.
7366
7367         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7368         (handle_focus_event_2): new function. Allow focus to
7369         be set to a particular window and widget.
7370         (enqueue_focus_event): new function. Create a
7371         synthetic focus event.
7372         (emacs_Xt_handle_magic_event): call
7373         handle_focus_event_2.
7374
7375         * frame.c (Fset_frame_pixel_height): new function. Allow
7376         pixel-based sizing. Does the right thing on character-oriented
7377         displays.
7378         (Fset_frame_pixel_width): ditto.
7379         (Fset_frame_pixel_size): ditto.
7380         (syms_of_frame): declare.
7381
7382         * general-slots.h: add :vertically-justify and
7383         :horizontally-justify.
7384
7385         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7386         (mswindows_widget_border_width): new function.
7387         (mswindows_combo_box_instantiate): set border widths.
7388         (console_type_create_glyphs_mswindows): declare.
7389
7390         * glyphs-widget.c:
7391         (check_valid_justification): allow vertical and horizontal
7392         justification.
7393         (widget_border_width): new function. Call device methods.
7394         (widget_instance_border_width): ditto.
7395         (logical_unit_height): new function. Determine the height of a
7396         logical-unit. Logical units are intended to provide grid-like
7397         layout for subcontrols in a layout. If the layout is
7398         :vertically-justify top then subcontrols will be positioned on
7399         logical-unit boundaries, thus allowing adjacent subcontrols to
7400         line up.
7401         (widget_logical_unit_height): ditto for widgets.
7402         (redisplay_widget): misc cleanup.
7403         (widget_spacing): new function. Call device specific
7404         methods. Intended to be the default gap between adjacent widgets.
7405         (widget_query_geometry): use new spacing functions to determine
7406         appropriate geometry.
7407         (initialize_widget_image_instance): initialize horizontal and
7408         vertical justification.
7409         (widget_instantiate): use logica-units where appropriate for
7410         sizing large widgets.
7411         (button_query_geometry): use widget_instance_border_width.
7412         (tree_view_query_geometry): ditto.
7413         (tab_control_query_geometry): ditto.
7414         (edit_field_query_geometry): new function.
7415         (layout_update): pick up :justify, :horizontally-justify and
7416         :vertically-justify none of which worked previously. :justify is
7417         used as a fallback for both horizontal and vertical justification.
7418         (layout_query_geometry): use logical units to size appropriately.
7419         (layout_layout): ditto.
7420         (Fwidget_logical_to_character_width): new function. Allow users to
7421         convert from logical units to characters so that frame sizes can
7422         be set appropriately.
7423         (Fwidget_logical_to_character_height): ditto.
7424         (syms_of_glyphs_widget): declare.
7425         (image_instantiator_edit_fields): add edit_field_query_geometry.
7426         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7427         :horizontally-justify.
7428         (specifier_vars_of_glyphs_widget): new function. Declare
7429         Vwidget_border_width which is not yet used.
7430
7431         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7432         (x_widget_border_width): new function.
7433         (x_widget_instantiate): create a sensible name for widgets.
7434         (console_type_create_glyphs_x): declare x_widget_border_width.
7435
7436         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7437         (struct Lisp_Image_Instance): add :vertically-justify and
7438         :horizontally-justify.
7439         (LAYOUT_JUSTIFY_TOP): new.
7440         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7441         (ROUND_UP): new macro. Round argument up to next integral
7442         interval.
7443
7444         * redisplay-output.c (redisplay_output_layout): misc formatting.
7445
7446         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7447
7448 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7449
7450         * XEmacs 21.4.9 "Informed Management" is released.
7451
7452 2002-08-19  Andy Piper  <andy@xemacs.org>
7453
7454         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7455         win32 format.
7456
7457         * realpath.c (xrealpath): normalize drive spec also so that dir
7458         sep chars are not mixed on cygwin.
7459
7460 2002-08-06  Jerry James  <james@xemacs.org>
7461
7462         * window.c (Fsplit_window): Count only half of the divider width
7463         against the left window when splitting horizontally. 
7464
7465 2002-06-24  Andy Piper  <andy@xemacs.org>
7466
7467         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7468         toolbar was cleared.
7469
7470         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7471         function. Split out from mswindows_output_frame_toolbars.
7472         (mswindows_output_frame_toolbars): move clear pieces to
7473         mswindows_output_frame_toolbars.
7474
7475         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7476         out from gtk_output_frame_toolbars.
7477         (gtk_output_frame_toolbars): move clear pieces to
7478         gtk_clear_frame_toolbars.
7479
7480         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7481         the frame is cleared. How this ever worked before is a mystery.
7482         (x_output_frame_toolbars): Only output toolbars.
7483         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7484
7485         * gutter.c (update_gutter_geometry):
7486         Mark frame layout changed.
7487         (update_frame_gutter_geometry, update_frame_gutters):
7488         Respect frame_layout_changed.
7489
7490         * console.h (struct console_methods): add
7491         clear_frame_toolbars_method.
7492
7493         * redisplay.c (redisplay_frame): call
7494         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7495
7496         * toolbar.h: declare update_frame_toolbars_geometry.
7497
7498         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7499         out from update_frame_toolbars.  Call clear_frame_toolbars.
7500         (update_frame_toolbars): only output, do not change geometry.
7501
7502         * redisplay.c: add frame_layout_changed.
7503
7504         * redisplay.h: add frame_layout_changed.
7505         (CLASS_RESET_CHANGED_FLAGS): set it.
7506         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7507         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7508         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7509
7510         * device.h (struct device): add frame_layout_changed.
7511         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7512
7513         * frame.h (struct frame): add frame_layout_changed.
7514         (MARK_FRAME_LAYOUT_CHANGED): new.
7515
7516 2002-06-30  Mike Alexander  <mta@arbortext.com>
7517
7518         * event-msw.c (mswindows_need_event): Don't wait for a new message
7519         if the queue is not empty.  Suggested by Paul Moore.
7520
7521 2002-06-12  Andy Piper  <andy@xemacs.org>
7522
7523         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7524         for printing on accurately.
7525
7526 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7527
7528         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7529         WM_ACTIVATE message. Make sure that the frame is visible if the
7530         window is visible. This seemss to fix the problem where XEmacs
7531         appears to freeze after switching desktops with certain virtual
7532         window managers.
7533         (debug_output_mswin_message): Added code to output message
7534         parameters for WM_WINDOWPOSCHANGED, 
7535         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7536
7537 2002-05-25  Andy Piper  <andy@xemacs.org>
7538
7539         * select-x.c (vars_of_select_x): Fix docstring of
7540         x-selection-strict-motif-ownership
7541
7542 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7543
7544         * keymap.c (get_keymap):
7545         Add comment about do_autoload GCPROs own args.
7546
7547 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7548
7549         * bytecode.c (execute_optimized_program): check_opcode ifdef
7550         ERROR_CHECK_BYTE_CODE.
7551
7552 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7553
7554         Thanks to Ben Wing and Michael Sperber.
7555
7556         * eval.c (Fcommand_execute):
7557         (Feval):
7558         (Ffuncall):
7559         (Fmacroexpand_internal):
7560         (function_argcount):
7561         callint.c (Fcall_interactively):
7562         Add comment about do_autoload GCPROs own args.
7563
7564         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7565
7566         * eval.c (Ffuncall): Extra braces to placate GCC.
7567
7568 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7569
7570         * backtrace.h (grow_specpdl):
7571         (SPECPDL_RESERVE):
7572         * EmacsFrame.c (EmacsFrameSetValues):
7573         * eval.c (grow_specpdl):
7574         * ExternalShell.c (hack_event_masks_1):
7575         * glyphs-x.c (convert_EImage_to_XImage): 
7576         (x_finalize_image_instance):
7577         * ralloc.c (page_size):
7578         (r_alloc_sbrk):
7579         * xgccache.c (gc_cache_hash):
7580         Fix unsigned comparison warnings.
7581
7582 2002-07-29  Jerry James  <james@xemacs.org>
7583
7584         * lread.c (locate_file): Any nonnegative return value indicates
7585         success if MODE is nonnegative.
7586
7587 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7588
7589         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7590         argument. 
7591
7592 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7593
7594         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7595
7596         * dumper.c (pdump_get_indirect_count):
7597         (pdump_scan_by_alignment):
7598         (pdump_dump_root_struct_ptrs):
7599         (pdump_dump_rtables):
7600         (pdump_dump_root_objects):
7601         (pdump):
7602         * nas.c (WaveOpenDataForReading):
7603         * fns.c (print_bit_vector):
7604         * font-lock.c (SINGLE_SYNTAX_STYLE):
7605         * glyphs.c (check_for_ignored_expose):
7606         (find_matching_subwindow):
7607         * glyphs-eimage.c:
7608         * imgproc.c (get_histogram):
7609         * redisplay.c (point_in_line_start_cache):
7610         * redisplay-output.c (redisplay_unmap_subwindows):
7611         * symbols.c (defsymbol_massage_name_1):
7612         (defkeyword_massage_name):
7613         (deferror_massage_name_and_message):
7614         * redisplay-x.c (x_output_string): 
7615         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7616         * frame.h (struct frame):
7617         * filelock.c (current_lock_owner):
7618         * doprnt.c (emacs_doprnt_1):
7619         * lisp.h (struct Lisp_Bit_Vector):
7620         (DO_REALLOC):
7621         Fix warnings.
7622
7623 2002-02-13  Ben Wing  <ben@xemacs.org>
7624
7625         * event-stream.c (reset_key_echo):
7626         * event-stream.c (reset_this_command_keys):
7627         * event-stream.c (execute_command_event):
7628         If console is dead as a result of C-x 5 0, then post-command stuff
7629         needs to be careful and do only non-console-specific stuff.
7630
7631 2002-07-01  Mike Sperber <mike@xemacs.org>
7632
7633         * process-unix.c (unix_send_process): Mark coding_outstream as
7634         non-open upon SIGPIPE.
7635
7636         * event-stream.c (Fnext_event): Reorder switch cases to something
7637         that makes sense.
7638
7639 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7640
7641         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7642         Don't bogusly reinitialize ascii_character property.
7643
7644 2002-07-08  Mike Sperber <mike@xemacs.org>
7645
7646         * process.c (Fstart_process_internal): Do error checking before we
7647         fork off the child, so the child can't muck with the state of the
7648         parent.
7649
7650 2002-07-08  Mike Sperber <mike@xemacs.org>
7651
7652         * ralloc.c (init_ralloc): Allocate properly for pdump.
7653
7654 2002-06-12  Andy Piper  <andy@xemacs.org>
7655
7656         * glyphs.c (query_string_geometry): check the string.
7657
7658         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7659         widget names.
7660
7661 2002-06-17  Jerry James  <james@xemacs.org>
7662
7663         * sysdll.c: Remove RTLD_GLOBAL initialization.
7664         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7665
7666 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7667
7668         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7669
7670 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7671
7672         * sysdep.c (sys_rename): Make sys_rename work for the case where
7673         Windows rename sets errno to EACCES if target file exists.
7674
7675 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7676
7677         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7678         Fix detection of metric units to work on Win95
7679
7680 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7681
7682         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7683
7684 2002-04-25  Andy Piper  <andy@xemacs.org>
7685
7686         * redisplay.c (create_text_block): Remove extra comment trailer.
7687
7688 2002-04-24  Andy Piper  <andy@xemacs.org>
7689
7690         * redisplay.c (create_text_block): Don't actually add propagation
7691         data if the line ends after we have added a glyph.
7692
7693 2002-04-22  Andy Piper  <andy@xemacs.org>
7694
7695         * extents.c (extent_fragment_update): check for glyphs we have
7696         previously displayed.
7697         * extents.c (print_extent_1): warning removal.
7698         * extents.h: change prototype.
7699         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7700         widths correctly for wide glyphs.
7701         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7702         * redisplay.c (prop_type): add PROP_GLYPH.
7703         * redisplay.c (struct prop_block): add glyph type
7704         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7705         to the propagation data.
7706         * redisplay.c (create_text_block): if there is a glyph in the
7707         propagation data use it to salt extent_fragment_update.
7708         * redisplay.c (create_string_text_block): ditto.
7709
7710 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7711
7712         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7713         * redisplay-output.c (compare_runes): Compare them.
7714         * redisplay.c: Update copyright date.
7715         * redisplay.c (pos_data): Add need_baseline_computation field.
7716         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7717         need_baseline_computation; zero yoffset. Set max_pixmap_height
7718         for all pixmaps, not just automatically positioned ones.
7719         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7720         * redisplay.c (calculate_baseline): New, compute textual baseline.
7721         * redisplay.c (add_glyph_rune): Call them.
7722         * redisplay.c (create_text_block): Likewise.
7723         * redisplay.c (create_overlay_glyph_block): Likewise.
7724         * redisplay.c (add_margin_runes): Likewise.
7725         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7726
7727         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7728         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7729         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7730         * redisplay-msw.c (mswindows_output_string): Likewise.
7731         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7732         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7733         * redisplay-x.c (x_output_display_block): Likewise.
7734
7735 2002-03-28  Ben Wing  <ben@xemacs.org>
7736
7737         * redisplay.c: Fixed bug in redisplay
7738         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7739         and down of the lines, since they're bigger than the line
7740         size. (It was seen most obviously when there's a horizontal scroll
7741         bar, e.g. do C-h a glyph or something like that.) The problem was
7742         that the glyph-contrib-p setting on glyphs was ignored even if it
7743         was set properly, which it wasn't until now.
7744
7745 2002-04-24  Andy Piper  <andy@xemacs.org>
7746
7747         * lisp.h (Dynarr_end): Fix definition.
7748
7749 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7750
7751         * redisplay.c (mark_redisplay): Remove call to
7752         update_frame_window_mirror.
7753
7754 2001-11-15  Andy Piper  <andy@xemacs.org>
7755
7756         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7757         cygwin (again).
7758
7759 2002-02-13  Andy Piper  <andy@xemacs.org>
7760
7761         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7762         we did in fact enqueue the XM_MAPFRAME event.
7763
7764 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7765
7766         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7767         to fix problem switching between virtual desktops under virtuawin
7768         virtual window manager.
7769
7770 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7771
7772         * event-msw.c: Typo fix.
7773         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7774         magic XM_MAPFRAME event has been sent.
7775
7776 2001-11-23  Andy Piper  <andy@xemacs.org>
7777
7778         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7779
7780 2001-11-21  Andy Piper  <andy@xemacs.org>
7781
7782         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7783         mouse events outside the frame.
7784
7785 2002-03-20  Andy Piper  <andy@xemacs.org>
7786
7787         * menubar-msw.c (mswindows_popup_menu): warning removal.
7788         * dialog-msw.c (dialog_popped_down): ditto.
7789
7790 2001-12-11  Andy Piper  <andy@xemacs.org>
7791
7792         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7793         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7794         popup_up_p.
7795         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7796         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7797         * menubar-msw.c (mswindows_popup_menu): ditto.
7798
7799 2001-10-29  Andy Piper  <andy@xemacs.org>
7800
7801         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7802         cancels.
7803
7804 2002-01-03  Andy Piper  <andy@xemacs.org>
7805
7806         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7807         letters.
7808         (xrealpath): ditto.
7809
7810 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7811
7812         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7813         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7814         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7815         Detect and handle case where machine is set up for metric units
7816
7817 2002-04-02  Andy Piper  <andy@xemacs.org>
7818
7819         * dired-msw.c (mswindows_get_files): 
7820         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7821         completely handled by XEmacs. Suggested by Thomas Vogler
7822         <mail@thomas-vogler.de>.
7823
7824 2001-11-14  Andy Piper  <andy@xemacs.org>
7825
7826         * nt.c (REG_ROOT): change registry key to XEmacs.
7827
7828 2002-04-27  Andy Piper  <andy@xemacs.org>
7829
7830         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7831
7832 2002-04-26  Andy Piper  <andy@xemacs.org>
7833
7834         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7835         behavior.
7836
7837 2002-03-14  Mike Alexander  <mta@arbortext.com>
7838
7839         * event-msw.c (mswindows_unwait_process): New, remove process from
7840         wait list
7841         * process-nt.c (nt_finalize_process_data): Call
7842         mswindows_unwait_process
7843         * console-msw.h: Declare mswindows_unwait_process
7844
7845 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7846
7847         * editfns.c (Fdecode_time):
7848         (Fformat_time_string):
7849         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7850         (make_time): Warning elimination (change arg name).
7851
7852 2001-11-24  Andy Piper  <andy@xemacs.org>
7853
7854         * window.c (Fsplit_window): Doc return type.
7855
7856 2002-04-01  Andy Piper  <andy@xemacs.org>
7857
7858         * emacs.c (Fkill_emacs): Only output message box in interactive
7859         mode.
7860
7861 2002-04-26  Andy Piper  <andy@xemacs.org>
7862  
7863         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7864         cygwin.
7865
7866 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7867
7868         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7869         bit platform.
7870
7871 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7872
7873         * XEmacs 21.4.8 "Honest Recruiter" is released.
7874
7875 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7876
7877         Supersedes 2002-04-17 patch.
7878
7879         * process.h (PROCESS_LIVE_P): Use the process status as
7880         evidence of health, not the state of the input stream.
7881         (PROCESS_READABLE_P): Say if the process is readable
7882         from. (It may be dead nonetheless.)
7883         (CHECK_READABLE_PROCESS): Test for that condition.
7884
7885         * process.c (create_process): Use PROCESS_READABLE_P.
7886         (read_process_output, set_process_filter): Likewise.
7887
7888         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7889         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7890
7891         This code is #if 0'd, this is not the time to add new functions:
7892
7893         * process.c (Fprocess_readable_p): Report readability status.
7894         * process.c (Qprocess_readable_p): New, associated symbol...
7895         * process.c (syms_of_process): ... initialize it.
7896
7897 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7898
7899         * XEmacs 21.4.7 "Economic Science" is released.
7900
7901 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7902
7903         * process.h (PROCESS_LIVE_P): Use the process status as
7904         evidence of health, not the state of the input stream.
7905
7906 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7907
7908         * sysdep.c (sys_siglist): change "signum" to "signal"
7909
7910 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7911
7912         * s/darwin.h: New file.
7913         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7914         
7915 2002-04-23  Andreas Jaeger  <aj@suse.de>
7916
7917         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7918         which use lib64 for 64-bit libs.
7919         (START_FILES): Likewise.
7920
7921 2002-02-11  Mike Sperber  <mike@xemacs.org>
7922
7923         * device-x.c: 
7924         (x_IO_error_handler):
7925         (x_init_device): Temporarily keep device in static variable
7926         `device_being_initialized' so we can recover gracefully from
7927         internal XOpenDevice failure.  (XOpenDevice is documented to
7928         return NULL on failure, but sometimes calls the IO error handler
7929         instead.)
7930
7931 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7932
7933         * dired.c (Ffile_name_all_completions): Change documentation --
7934         remove reference to completion-ignored-extensions.
7935         * dired.c (vars_of_dired): Change documentation for
7936         completion-ignored-extensions -- remove reference to
7937         file-name-all-completions.
7938
7939 2002-03-06  Jerry James  <james@xemacs.org>
7940
7941         * emodules.c (emodules_load): Fix multiple loading of same module.
7942
7943 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7944         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7945         RTLD_LAZY to avoid incorrect symbol binding when using nested
7946         shared libraries on Solaris.
7947
7948 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7949
7950         * fileio.c (Ffind_file_name_handler): Improve docstring.
7951
7952 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7953
7954         * fns.c (Fmapconcat): Improve docstring.
7955
7956 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7957
7958         * device-gtk.c: Add prototype for
7959         emacs_gtk_selection_clear_event_handle.
7960         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7961         selection.  Setup signal handler for "selection_clear_event"
7962         (emacs_gtk_selection_clear_event_handle).
7963
7964         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7965         other applications owning the clipboard (based on
7966         x_handle_selection_clear).
7967
7968 2001-12-23  William M. Perry  <wmperry@gnu.org>
7969
7970         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7971         
7972 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7973
7974         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7975
7976 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7977
7978         * XEmacs 21.4.6 "Common Lisp" is released.
7979
7980 2001-12-16  Torsten Duwe  <duwe@caldera.de>
7981
7982         * search.c (Freplace_match): Add missing sub-expression functionality.
7983
7984         * buffer.c (decode_buffer): Add a check for pointer type to
7985         decode_buffer, before gcc's CSE optimization reorders a
7986         dereference in front of the allow_string test.
7987
7988 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
7989
7990         * window.c (window_loop): Fix bug that sometimes prevented
7991         window_loop() from iterating across multiple devices.  Also, at
7992         Ben's request, changed infloop-detecting code to abort() instead
7993         of silently terminating window_loop().
7994
7995 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
7996
7997         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
7998         * editfns.c (make_time): New function.
7999         (Fencode_time): Use it instead of wasteful_word_to_lisp.
8000         * lisp.h (make_time): Prototype and comment it.
8001         * dired.c (wasteful_word_to_lisp): Deprecate.
8002         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
8003
8004 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
8005
8006         * fileio.c (auto_save_1): Use current coding system, not
8007         escape-quoted.
8008
8009 2001-11-13  Ben Wing  <ben@xemacs.org>
8010
8011         * window.c:
8012         * window.c (window_truncation_on):
8013         * window.c (syms_of_window):
8014         truncate-partial-width-windows should respect the buffer being
8015         displayed, like other redisplay vars.
8016
8017 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
8018
8019         * event-stream.c (Fread_key_sequence): save current buffer.
8020
8021 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8022
8023         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
8024
8025 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
8026
8027         * alloc.c (lcrecord_stats): Add space for types defined in modules.
8028
8029 2001-10-26  Mike Alexander  <mta@arbortext.com>
8030
8031         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
8032
8033 2001-10-25  Andy Piper  <andy@xemacs.org>
8034
8035         * ChangeLog:
8036         * dialog-msw.c (handle_directory_proc): new function.
8037          (handle_directory_dialog_box): new fucntion.
8038          (handle_file_dialog_box): use new directory dialog support.
8039          (mswindows_make_dialog_box_internal): ditto.
8040         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
8041         handling.
8042         (mswindows_find_frame): make global.
8043         * fileio.c (Fexpand_file_name): build fix.
8044         * general-slots.h: add Qdirectory.
8045         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
8046         handling.
8047         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
8048         cygwin not leaving win32 paths unchanged.
8049         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
8050         cygwin runtime to do path conversion.
8051         (Fmswindows_shell_execute): fix cygwin handling of URLs.
8052         (syms_of_win32): add new function.
8053         * window.c (window_loop): build fix.
8054
8055 2001-10-15  Andy Piper  <andy@xemacs.org>
8056
8057         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
8058
8059 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
8060
8061         * XEmacs 21.4.5 "Civil Service" is released.
8062
8063 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
8064
8065         * glyphs-x.c: Force buffer-tab highlight update when moving the
8066         buffer, avoiding an ugly black border, used for keyboard focus
8067         indication, on a widget that can never have keyboard focus, the
8068         buffer tab.
8069
8070 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
8071
8072         * process-unix.c (unix_open_multicast_group): Remove too much
8073         conversion between host and network byte order.
8074
8075 2001-09-10  Nix  <nix@esperi.demon.co.uk>
8076
8077         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
8078         before replacing them.
8079
8080         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
8081         operation.
8082
8083         * src/window.c (undedicate_windows): Use it.
8084         * src/window.h: Add prototype.
8085
8086 2001-09-17  Ben Wing  <ben@xemacs.org>
8087
8088         * fileio.c (normalize_filename):
8089         * fileio.c (Fexpand_file_name):
8090         Fix various C++ compile errors in Andy's recent code.
8091         
8092         * callint.c (Fcall_interactively):
8093         * editfns.c (Ftemp_directory):
8094         * editfns.c (Fuser_full_name):
8095         * emacs.c (argmatch):
8096         * lread.c (locate_file_map_suffixes):
8097         * redisplay-x.c (x_ring_bell):
8098         Fix sign-compare warnings.
8099         
8100 2001-09-08  Andy Piper  <andy@xemacs.org>
8101
8102         * fileio.c (normalize_filename): copied from nt.c
8103         * (Ffile_name_directory): enable win32 paths under cygwin.
8104         * (Ffile_name_nondirectory): ditto.
8105         * (directory_file_name): ditto.
8106         * (Fexpand_file_name): ditto.
8107         * (Ffile_truename): ditto.
8108         * (Fsubstitute_in_file_name): ditto.
8109         * (Ffile_name_absolute_p): ditto.
8110         * (Ffile_readable_p): ditto.
8111
8112 2001-09-08  Andy Piper  <andy@xemacs.org>
8113
8114         * device-msw.c (mswindows_finish_init_device): remove dde
8115         initialization.
8116         * device-msw.c (mswindows_init_dde): factor out from
8117         mswindows_finish_init_device()
8118         * device-msw.c (init_mswindows_very_early): new function
8119         initialize but don't enable dde.
8120         * emacs.c (main_1): call init_mswindows_very_early.
8121         * event-msw.c:
8122         * event-msw.c (mswindows_dde_callback): only execute when we are
8123         ready.
8124         * symsinit.h: declare init_mswindows_very_early.
8125
8126 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8127
8128         [sjt: This has been in 21.5 for months with no complaints.]
8129
8130         * console.h (struct console_methods): Added flags member.
8131         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
8132         (CONMETH_IMPL_FLAG):
8133         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
8134         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8135
8136         * device.c (window_system_pixelated_geometry): Use the above macros.
8137
8138         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
8139         implememntation flag.
8140         * device.h (DEVICE_DISPLAY_P): Use it.
8141
8142         * frame.c (delete_frame_internal): Use the above macro.
8143
8144         * redisplay.c (redisplay_device): Use it.
8145         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8146         (redisplay_frame): Ditto.
8147
8148         * device-msw.c (mswindows_device_implementation_flags): Removed.
8149         (msprinter_device_implementation_flags): Removed.
8150         (console_type_create_device_mswindows): Removed references to
8151         implementation_flags methods, set implementation flags here.
8152         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
8153
8154         * device-gtk.c (gtk_device_implementation_flags): Removed method.
8155         (console_type_create_device_gtk): Removed method declaration.
8156         Added commented out statement which semantically matches the
8157         commented out statement in the above removed method.
8158
8159 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
8160
8161         The attached patch fixes a few warnings. 
8162
8163         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
8164         * src/frame-gtk.c: guard against GNOME calls in GTK only
8165         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
8166         * src/select-gtk.c: prototype lisp_to_time
8167
8168 2001-06-08  Ben Wing  <ben@xemacs.org>
8169
8170         ------ gc-in-window-procedure fixes ------
8171         
8172         * alloc.c:
8173         * alloc.c (struct post_gc_action):
8174         * alloc.c (register_post_gc_action):
8175         * alloc.c (run_post_gc_actions):
8176         * alloc.c (garbage_collect_1):
8177         Create "post-gc actions", to avoid those dreaded "GC during window
8178         procedure" problems.
8179
8180         * event-msw.c:
8181         Abort, clean and simple, when GC in window procedure.  We want
8182         to flush these puppies out.
8183
8184         * glyphs-msw.c:
8185         * glyphs-msw.c (finalize_destroy_window):
8186         * glyphs-msw.c (mswindows_finalize_image_instance):
8187         Use a post-gc action when destroying subwindows.
8188
8189         * lisp.h:
8190         Declare register_post_gc_action().
8191
8192         * scrollbar-msw.c:
8193         * scrollbar-msw.c (unshow_that_mofo):
8194         Use a post-gc action when unshowing scrollbar windows, if in gc.
8195
8196         * redisplay.c (mark_redisplay):
8197         Add comment about the utter evilness of what's going down here.
8198
8199         ------ cygwin setitimer fixes ------
8200         
8201         * Makefile.in.in (sheap_objs):
8202         * Makefile.in.in (profile_objs):
8203         * Makefile.in.in (objs):
8204         Compile profile.c only when HAVE_SETITIMER.
8205         
8206         * nt.c (mswindows_sigset):
8207         * nt.c (mswindows_sighold):
8208         * nt.c (mswindows_sigrelse):
8209         * nt.c (mswindows_sigpause):
8210         * nt.c (mswindows_raise):
8211         * nt.c (close_file_data):
8212         Style fixes.
8213         
8214         * nt.c:
8215         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8216         
8217         * profile.c:
8218         * profile.c (Fstart_profiling):
8219         * profile.c (Fstop_profiling):
8220         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8221         instead of just plain setitimer().
8222         
8223         * signal.c:
8224         * signal.c (set_one_shot_timer):
8225         * signal.c (alarm):
8226         Define qxe_setitimer() as an encapsulation around setitimer() --
8227         call setitimer() directly unless Cygwin or MS Win, in which case
8228         we use our simulated version in win32.c.
8229         
8230         * systime.h:
8231         * systime.h (struct itimerval):
8232         * systime.h (ITIMER_REAL):
8233         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8234         comment about "qxe" and the policy regarding encapsulation.
8235
8236         * win32.c:
8237         * win32.c (setitimer_helper_proc):
8238         * win32.c (setitimer_helper_period):
8239         * win32.c (setitimer_helper):
8240         * win32.c (mswindows_setitimer):
8241         Move setitimer() emulation here, so Cygwin can use it.
8242         Rename a couple of functions and variables to be longer and more
8243         descriptive.  In setitimer_helper_proc(), send the signal
8244         using either mswindows_raise() or (on Cygwin) kill().  If for
8245         some reason we are still getting lockups, we'll change the kill()
8246         to directly invoke the signal handlers.
8247
8248         ------ windows shell fixes ------
8249         
8250         * callproc.c:
8251         * ntproc.c:
8252         Comments about how these two files must die.
8253
8254         * callproc.c (init_callproc):
8255         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8256         not just COMSPEC. (more correct and closer to FSF.) Don't
8257         force a value for SHELL into the environment. (Comments added
8258         to explain why not.)
8259         
8260         * nt.c (init_user_info):
8261         Don't shove a fabricated SHELL into the environment.  See above.
8262
8263 2001-06-01  Ben Wing  <ben@xemacs.org>
8264
8265         * Makefile.in.in (ldflags):
8266         eliminate that pesky "defaulting to 00401000" warning.
8267         * nt.h:
8268         eliminate warnings.
8269
8270 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8271
8272         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8273         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8274
8275 2001-04-24  Jerry James <james@xemacs.org>
8276
8277         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8278         correct order.
8279
8280 2001-06-01  Ben Wing  <ben@xemacs.org>
8281
8282         * event-msw.c (debug_mswin_messages):
8283         conditionalize the messages that were causing compile errors.
8284         (if only macros could generate #ifdef statements ...)
8285
8286 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8287
8288         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8289
8290 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8291
8292         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8293
8294 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8295
8296         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8297         * process-unix.c (unix_canonicalize_host_name):
8298         sysdep.c (init_system_name):
8299         Use it to conditionally support IPv6 canonicalization.
8300
8301 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8302
8303         * event-msw.c:
8304         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8305
8306 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8307
8308         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8309         attempt is made to scroll when no scroll bar is available.
8310
8311 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8312
8313         * input-method-motif.c (XIM_delete_frame): New callback.
8314         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8315         got deleted from 21.4.3.)
8316
8317 2001-06-01  Ben Wing  <ben@xemacs.org>
8318
8319         * nt.c (mswindows_utime):
8320         * nt.c (close_file_data):
8321         fix off-by-one-indirection error.
8322
8323 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8324
8325         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8326         because set_file_times() now takes Lisp_Object path, instead of
8327         char*.
8328         * nt.c: Include buffer.h.
8329         * nt.c (convert_from_time_t): New.
8330         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8331         not set mtime correctly.
8332         * nt.h: Declare mswindows_utime().
8333         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8334         path, instead of char*.
8335         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8336
8337 2001-05-30  Ben Wing  <ben@xemacs.org>
8338
8339         For 21.4:
8340
8341         (Stephen, just take all event-msw.c patches.  This includes
8342         the "iconify" fix below.)
8343
8344         * event-msw.c:
8345         * event-msw.c (mswindows_dequeue_dispatch_event):
8346         * event-msw.c (assert):
8347         * event-msw.c (emacs_mswindows_quit_p):
8348         * event-msw.c (debug_mswin_messages):
8349         * event-msw.c (debug_output_mswin_message):
8350         * event-msw.c (vars_of_event_mswindows):
8351         Fix yet more problems with C-g handling.
8352         Implement debug-mswindows-events.
8353         
8354 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8355
8356         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8357         
8358 2001-05-23  Ben Wing  <ben@xemacs.org>
8359
8360         * event-msw.c (winsock_writer):
8361         * event-msw.c (winsock_closer):
8362         prior kludgy code was clobbering the buffer, thinking it was
8363         "unused" space to store an unneeded return value; instead, use
8364         the variable we've already got staring us in the face.
8365
8366 2001-05-17  Andy Piper  <andy@xemacs.org>
8367
8368         * sysfile.h: don't assume that file attributes are boolean
8369
8370 2001-05-23  Ben Wing  <ben@xemacs.org>
8371
8372         * device-msw.c (msprinter_init_device):
8373         signal an error rather than crash with an unavailable network
8374         printer (from Mike Alexander).
8375         
8376         * event-msw.c:
8377         * event-msw.c (struct winsock_stream):
8378         * event-msw.c (winsock_writer):
8379         * event-msw.c (winsock_closer):
8380         * event-msw.c (make_winsock_stream_1):
8381         cleanup headers.  fix (hopefully) an error with data corruption
8382         when sending to a network connection.
8383
8384         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8385         to handle the ~user prefix by (a) always assuming we're referencing
8386         ourselves and not even verifying the user -- hence any file with
8387         a tilde as its first char is invalid! (b) if there wasn't a slash
8388         following the filename, the pointer was set *past* the end of
8389         file and we started reading from uninitialized memory.  Now we
8390         simply treat these as files, always.
8391
8392         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8393         
8394 2001-05-19  Ben Wing  <ben@xemacs.org>
8395
8396         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8397
8398         * process-nt.c:
8399         * process-nt.c (vars_of_process_nt):
8400         remove unused mswindows-quote-process-args.  rec for 21.4.
8401         
8402 2001-05-12  Ben Wing  <ben@xemacs.org>
8403
8404         * event-msw.c (mswindows_dde_callback):
8405         * event-msw.c (mswindows_wnd_proc):
8406         eliminate cygwin warnings.
8407
8408 2001-05-06  Ben Wing  <ben@xemacs.org>
8409
8410         * console-msw.h:
8411         * device-msw.c:
8412         * device-msw.c (print_dialog_worker):
8413         * device-msw.c (mswindows_handle_print_dialog_box):
8414         * device-msw.c (syms_of_device_mswindows):
8415         * dialog-msw.c (mswindows_make_dialog_box_internal):
8416         * general-slots.h:
8417         implement printing the selection when it's selected.
8418
8419 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8420
8421         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8422
8423 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8424
8425         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8426         EMACS_INT is signed.
8427
8428 2001-04-15  Michael Lausch  <mla@1012surf.net>
8429
8430         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8431         gtk_widget_request_size() to give scrollbar >0 width for
8432         GTK >1.2.8.
8433
8434 2001-05-30  William M. Perry  <wmperry@gnu.org>
8435
8436         * event-gtk.c: Check for buttons as modifier keys.
8437
8438 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8439
8440         * s\mingw32.h:
8441         Properly find MinGW's <process.h> inside Cygwin's restructured
8442         include directories.  Don't try to include <cygwin/version.h>
8443         since we are dropping support for MinGW in versions of Cygwin
8444         earlier than b21.
8445         * nt.c:
8446         Drop support for MinGW in versions of Cygwin before b21.
8447         * sysdep.c:
8448         Properly find MinGW's <process.h> inside Cygwin's restructured
8449         include directories.
8450         * syswindows.h:
8451         Drop support for MinGW in versions of Cygwin before b21.
8452         * unexcw.c:
8453         Even though a.out.h is no longer detected by configure, allow
8454         MinGW to use it until we figure out how to do the job with Win32.
8455
8456 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8457
8458         * syntax.c (find_start_of_comment):
8459         Fix `unbalanced parentheses' bug when dealing with mixed comment
8460         styles in c++/java/etc. mode
8461
8462 2001-05-29  Mike Alexander  <mta@arbortext.com>
8463
8464         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8465         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8466
8467 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8468
8469         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8470
8471 2001-03-31  Mike Sperber <mike@xemacs.org>
8472
8473         * search.c (Freplace_match): Support FSF-style specification of
8474         match subexpression when applied to a buffer.
8475
8476 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8477
8478         * event-stream.c (is_scrollbar_event): add missing semicolon
8479
8480 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8481
8482         * Makefile.in.in: Use TAR macro instead of hardcoding
8483           tar.  Allows use of GNU tar instead of system tar
8484
8485 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8486
8487         * event-stream.c (is_scrollbar_event): add missing semicolon
8488
8489 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8490
8491         * XEmacs 21.4.3 "Academic Rigor" is released.
8492
8493 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8494
8495         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8496
8497 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8498
8499         * buffer.c (Vcase_fold_search): Remove obsolete
8500           comment about non ASCII case-fold-search.  This
8501           bug has been fixed by case-table changes.
8502
8503 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8504
8505         * event-msw.c: Restore include of events-mod.h.
8506
8507 2001-04-22   zhaoway  <zw@debian.org>
8508
8509         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8510         !HAVE_SCROLLBARS.
8511
8512 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8513
8514         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8515
8516 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8517
8518         * mule-charset.c (Fmake_charset): Add missing else.
8519
8520 2001-04-23  Ben Wing  <ben@xemacs.org>
8521
8522         * event-msw.c (FAKE_MOD_QUIT):
8523         * event-msw.c (mswindows_dequeue_dispatch_event):
8524         * event-msw.c (mswindows_wnd_proc):
8525         * event-msw.c (emacs_mswindows_quit_p):
8526         Get critical quit working.
8527
8528 2001-05-05  Ben Wing  <ben@xemacs.org>
8529
8530         * console-msw.h:
8531         * device-msw.c:
8532         * device-msw.c (mswindows_get_default_margin):
8533         * frame-msw.c (mswindows_size_frame_internal):
8534         * frame-msw.c (msprinter_init_frame_1):
8535         * frame-msw.c (vars_of_frame_mswindows):
8536         Change top/bottom margin defaults to 0.5 inches.
8537
8538 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8539
8540         Fix link error with gcc 3.0 on Linux.
8541         * terminfo.c (UP): Remove.
8542         * terminfo.c (BC): Remove.
8543         * terminfo.c (PC): Remove.
8544         They weren't used, and in any case, these symbols should be
8545         defined in the *library*.
8546
8547 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8548
8549         * s/aix4.h: Fix crash with xlc -O3.
8550         Improve comment explaining how -O3 works.
8551
8552 2001-04-15  Ben Wing  <ben@xemacs.org>
8553
8554         * event-stream.c:
8555         * event-stream.c (Fnext_event):
8556         * event-stream.c (is_scrollbar_event):
8557         * event-stream.c (execute_command_event):
8558         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8559         crash' problem.  His fix introduces other problems.  We filter
8560         out scrollbar events specifically, making them somewhat invisible
8561         to command-building, and not appearing in `this-command-keys'.
8562         More work is still needed (see comments in event-stream.c), but
8563         this fixes all the major problems.
8564
8565 2001-04-20  Ben Wing  <ben@xemacs.org>
8566
8567         * .cvsignore: Added stuff for Windows.
8568
8569 2001-04-28  Ben Wing  <ben@xemacs.org>
8570
8571         * buffer.c (Ferase_buffer):
8572         * editfns.c (buffer_insert1):
8573         * editfns.c (Finsert_before_markers):
8574         * editfns.c (Finsert_string):
8575         * editfns.c (Finsert_char):
8576         * editfns.c (Fdelete_region):
8577         * editfns.c (Fwiden):
8578         * editfns.c (Fnarrow_to_region):
8579         remove bogus lines setting zmacs_region_stays to 0.
8580         
8581 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8582
8583         * process-unix.c (unix_open_network_stream): If connect() fails
8584         invalidate file descriptor after closing it.
8585
8586 2001-03-08  Mike Alexander  <mta@arbortext.com>
8587
8588         * event-msw.c (mswindows_need_event_in_modal_loop):
8589         Don't dispatch a message if we didn't get one.
8590         (mswindows_need_event):
8591         Terminate the correct process when one exits instead of the first
8592         one on Vprocess_list and look for process termination when in
8593         mswindows_protect_modal_loop.
8594
8595 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8596
8597         * XEmacs 21.4.1 "Copyleft" is released.
8598
8599 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8600
8601         * input-method-motif.c (XIM_delete_frame): New callback.
8602         (XIM_init_frame): Register it.
8603
8604 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8605
8606         * XEmacs 21.4.0 "Solid Vapor" is released.
8607
8608 2001-04-15  Ben Wing  <ben@xemacs.org>
8609
8610         * cmdloop.c (call_command_loop):
8611         Fix braino in bit-rotting code.
8612         
8613 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8614
8615         * extents.c (Fset_extent_endpoints): Force creation of extent info
8616         in buffer_or_string.
8617
8618         * extents.c (process_extents_for_insertion_mapper): Correctly
8619         check for open-open zero-length extents.
8620
8621 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8622
8623         * lisp.h: New typedefs Memory_count, Element_count.
8624         * regex.c:
8625         * regex.h:
8626         Sign-compare warning elimination: several unsigned -> signed.
8627         Based on work by Ben Wing <ben@xemacs.org>.
8628
8629 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8630
8631         * XEmacs 21.2.47 "Zephir" is released.
8632
8633 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8634
8635         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8636
8637 2001-04-03  Mike Sperber <mike@xemacs.org>
8638
8639         * search.c: Revert previous patch due because of release.
8640
8641 2001-03-30  Ben Wing  <ben@xemacs.org>
8642
8643         * s\cygwin32.h:
8644         Add missing killpg prototype.
8645
8646         * elhash.c:
8647         Add a comment about fixing problems when a new entry is added
8648         while mapping.
8649
8650         * frame-msw.c (mswindows_init_frame_1):
8651         Fix compile warnings.
8652
8653         * menubar.c (vars_of_menubar):
8654         Provide `menu-accelerator-support' to indicate that we properly
8655         support %_ in menu specifications, so that package code can
8656         conditionalize on this (and remove %_ from menu specifications
8657         on older versions).
8658
8659         * event-msw.c:
8660         * scrollbar-msw.c:
8661         * scrollbar-msw.c (can_scroll):
8662         * scrollbar-msw.h:
8663         Fix handling of mouse wheel under Windows to follow standards --
8664         now scrolls window under pointer, not selected window.
8665
8666 2001-03-31  Mike Sperber <mike@xemacs.org>
8667
8668         * search.c (Freplace_match): Support FSF-style specification of
8669         match subexpression when applied to a buffer.
8670
8671 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8672
8673         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8674         function to modify KEYMAP, so map over a copy of the hash table.
8675
8676 2001-03-21  Martin Buchholz <martin@xemacs.org>
8677
8678         * XEmacs 21.2.46 "Urania" is released.
8679
8680 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8681
8682         * realpath.c (xrealpath): Make file-truename work with symlinks to
8683         /cygdrive paths on cygwin. Always lowercase drive-letters on
8684         native windows.
8685         (cygwin_readlink): Don't try to find canonical filename unless
8686         file exists.
8687
8688 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8689
8690         * ChangeLog: Log GTK merge.
8691
8692         * dumper.c:
8693         * select-x.c:
8694         * specifier.c:
8695         * symeval.h:
8696         Revert gratuitous whitespace changes from GTK merge.
8697
8698         * emacs.c: Document end of complex #ifdef @ l. 1495.
8699
8700
8701 2001-03-12  Andy Piper  <andy@xemacs.org>
8702
8703         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8704         have to do likewise.
8705
8706 2001-03-12  Andy Piper  <andy@xemacs.org>
8707
8708         * sysdep.c: we only support mingw now.
8709
8710 2001-03-09  Andy Piper  <andy@xemacs.org>
8711
8712         * unexcw.c (copy_executable_and_dump_data_section): making approx
8713         overrun a warning only.
8714
8715 2001-03-10  William M. Perry  <wmperry@aventail.com>
8716
8717         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8718         satisfy Stephen's identical-after-cpp plea.
8719
8720 2001-03-02  Ben Wing  <ben@xemacs.org>
8721
8722         * cmds.c:
8723         * cmds.c (Fforward_char):
8724         * syntax.c:
8725         * window.c:
8726
8727         Augment documentation of the most common motion commands to make
8728         note of the shifted-motion support.
8729         
8730 2001-03-02  Ben Wing  <ben@xemacs.org>
8731
8732         * nt.c (mswindows_fstat):
8733         * nt.c (mswindows_stat):
8734         * search.c (boyer_moore):
8735         Fix compile warnings under Windows.
8736         
8737         * sysdep.c (sys_readdir):
8738         Fix buggy filename-conversion code under Mule.
8739
8740 2001-03-09  William M. Perry  <wmperry@aventail.com>
8741
8742         * Makefile.in.in:
8743         * config.h.in:
8744         * console.c:
8745         * console.h:
8746         * device.c:
8747         * device.h:
8748         * dragdrop.c:
8749         * emacs.c:
8750         * event-stream.c:
8751         * events.c:
8752         * events.h:
8753         * faces.c:
8754         * frame.h:
8755         * general-slots.h:
8756         * glyphs.c:
8757         * gutter.c:
8758         * inline.c:
8759         * lisp.h:
8760         * lrecord.h:
8761         * make-src-depend:
8762         * redisplay-output.c:
8763         * redisplay.c:
8764         * symsinit.h:
8765         * sysfile.h:
8766         * toolbar.c:
8767         * window.c:
8768         The Great GTK Merge.
8769
8770         * ChangeLog.GTK:
8771         * console-gtk.c:
8772         * console-gtk.h:
8773         * device-gtk.c:
8774         * emacs-marshals.c:
8775         * emacs-widget-accessors.c:
8776         * event-gtk.c:
8777         * frame-gtk.c:
8778         * gccache-gtk.c:
8779         * gccache-gtk.h:
8780         * glade.c:
8781         * glyphs-gtk.c:
8782         * glyphs-gtk.h:
8783         * gtk-glue.c:
8784         * gtk-xemacs.c:
8785         * gtk-xemacs.h:
8786         * gui-gtk.c:
8787         * gui-gtk.h:
8788         * menubar-gtk.c:
8789         * native-gtk-toolbar.c:
8790         * objects-gtk.c:
8791         * objects-gtk.h:
8792         * redisplay-gtk.c:
8793         * scrollbar-gtk.c:
8794         * scrollbar-gtk.h:
8795         * select-gtk.c:
8796         * toolbar-gtk.c:
8797         * ui-byhand.c:
8798         * ui-gtk.c:
8799         * ui-gtk.h:
8800         The Great GTK Merge: new files.
8801
8802 2001-02-26  Ben Wing  <ben@xemacs.org>
8803
8804         Reapplied Lstream change.
8805
8806 2001-02-26  Ben Wing  <ben@xemacs.org>
8807
8808         Undid the last change, since it is more controversial than I
8809         thought.  It should be back in at some point soon.
8810         
8811 2001-02-25  Ben Wing  <ben@xemacs.org>
8812
8813         * buffer.c:
8814         * callproc.c (Fold_call_process_internal):
8815         * event-msw.c (ntpipe_slurp_reader):
8816         * event-msw.c (ntpipe_shove_writer):
8817         * event-msw.c (winsock_reader):
8818         * event-msw.c (winsock_writer):
8819         * file-coding.c:
8820         * file-coding.c (detect_eol_type):
8821         * file-coding.c (detect_coding_type):
8822         * file-coding.c (determine_real_coding_system):
8823         * file-coding.c (Fdetect_coding_region):
8824         * file-coding.c (decoding_reader):
8825         * file-coding.c (decoding_writer):
8826         * file-coding.c (mule_decode):
8827         * file-coding.c (Fdecode_coding_region):
8828         * file-coding.c (encoding_reader):
8829         * file-coding.c (encoding_writer):
8830         * file-coding.c (mule_encode):
8831         * file-coding.c (Fencode_coding_region):
8832         * file-coding.c (detect_coding_sjis):
8833         * file-coding.c (decode_coding_sjis):
8834         * file-coding.c (encode_coding_sjis):
8835         * file-coding.c (detect_coding_big5):
8836         * file-coding.c (decode_coding_big5):
8837         * file-coding.c (encode_coding_big5):
8838         * file-coding.c (detect_coding_ucs4):
8839         * file-coding.c (decode_coding_ucs4):
8840         * file-coding.c (encode_coding_ucs4):
8841         * file-coding.c (detect_coding_utf8):
8842         * file-coding.c (decode_coding_utf8):
8843         * file-coding.c (encode_coding_utf8):
8844         * file-coding.c (detect_coding_iso2022):
8845         * file-coding.c (decode_coding_iso2022):
8846         * file-coding.c (encode_coding_iso2022):
8847         * file-coding.c (decode_coding_no_conversion):
8848         * file-coding.c (encode_coding_no_conversion):
8849         * glyphs-x.c (write_lisp_string_to_temp_file):
8850         * gpmevent.c (tty_get_foreign_selection):
8851         * lisp.h:
8852         * lstream.c:
8853         * lstream.c (Lstream_flush_out):
8854         * lstream.c (Lstream_adding):
8855         * lstream.c (Lstream_write_1):
8856         * lstream.c (Lstream_write):
8857         * lstream.c (Lstream_raw_read):
8858         * lstream.c (Lstream_read_more):
8859         * lstream.c (Lstream_read):
8860         * lstream.c (Lstream_unread):
8861         * lstream.c (Lstream_fputc):
8862         * lstream.c (stdio_reader):
8863         * lstream.c (stdio_writer):
8864         * lstream.c (filedesc_reader):
8865         * lstream.c (filedesc_writer):
8866         * lstream.c (lisp_string_reader):
8867         * lstream.c (struct fixed_buffer_stream):
8868         * lstream.c (make_fixed_buffer_input_stream):
8869         * lstream.c (make_fixed_buffer_output_stream):
8870         * lstream.c (fixed_buffer_reader):
8871         * lstream.c (fixed_buffer_writer):
8872         * lstream.c (struct resizing_buffer_stream):
8873         * lstream.c (resizing_buffer_writer):
8874         * lstream.c (dynarr_writer):
8875         * lstream.c (lisp_buffer_reader):
8876         * lstream.c (lisp_buffer_writer):
8877         * lstream.h:
8878         * lstream.h (lstream_implementation):
8879         * lstream.h (struct lstream):
8880         * md5.c (Fmd5):
8881         * process-nt.c (nt_send_process):
8882         * process-unix.c (unix_send_process):
8883         
8884         Correct Lstream lossage due to mixing of signed and unsigned
8885         quantities.  All Lstream uses of size_t and ssize_t are now a
8886         single signed data type Lstream_data_count.  This fixes problems
8887         under Windows with sending large quantities of data to a process,
8888         and may well fix other subtle bugs.
8889
8890 2001-02-23  Martin Buchholz <martin@xemacs.org>
8891
8892         * XEmacs 21.2.45 "Thelxepeia" is released.
8893
8894 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8895
8896         * lisp-union.h (XSETINT): 
8897         (XSETCHAR):
8898         (XSETOBJ): 
8899         Reverse previous change of 2001-02-06.
8900
8901 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8902
8903         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8904         buffers.
8905         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8906         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8907         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8908         * regex.c (POS_AS_IN_BUFFER): removed
8909         * regex.c (re_search_2):
8910         * regex.c (re_match_2):
8911         Don't use an offset of 1 when calculating buffer positions, since
8912         `BI_BUF_BEGV' does it already.
8913
8914 2001-02-18  Wim Dumon  <wim@easics.be>
8915
8916         * insdel.c (prepare_to_modify_buffer): Also check for
8917         supersession when clash-detection is enabled. 
8918
8919 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8920
8921         * regex.c (re_match_2_internal):
8922         Convert temp characters from 'const unsigned char' to 're_char'.
8923         Fix crashing bug with extended characters under mule.
8924         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8925         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8926         font-lock, pdump, and new syntax-table code.
8927         * syntax.c (find_start_of_comment):
8928         (find_end_of_comment):
8929         (forward-comment):
8930         Fix crashing bugs involving moving beyond end of buffer.
8931         * syntax.c (find_start_of_comment):
8932         Fixed logic to allow proper detection of cases where the same
8933         character is used to end both a two-char comment start and a
8934         two-char comment end sequence. Fixes `(forward-comment -1)'.
8935         * syntax.c (find_start_of_comment):
8936         Return position just past last comment-end character for all cases
8937         (previously was only done for two-char comment-end sequences).
8938         * syntax.c (forward-comment):
8939         Take value returned from `find_end_of_comment', rather than
8940         incrementing it.
8941         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8942         Properly deal with BUFFERP (syntax_cache.object)
8943
8944 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8945
8946         * alloc.c (Fgarbage_collect): 
8947         * alloc.c (make_bit_vector_from_byte_vector):
8948         -Wsign-compare-correctness.
8949
8950 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8951
8952         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8953         (XSETCHAR): Likewise.
8954         (XSETOBJ): Likewise.
8955
8956 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8957
8958         * mule-canna.c (canna-func-delete_previous): 
8959         Rename to canna-func-delete-previous.
8960
8961 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8962
8963         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8964
8965 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8966
8967         * font-lock.c (find_context): Fix C++ compile errors introduced by
8968         recent patch
8969
8970 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8971
8972         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8973         pragma, but earlier ones barf on the same pragma.
8974
8975 2001-02-06  Mike Sperber <mike@xemacs.org>
8976
8977         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8978         `configure-mule-lisp-directory'.
8979
8980 2001-02-12  Martin Buchholz  <martin@xemacs.org>
8981
8982         Make sure dump-id.c is compiled in the same way as other .c's.
8983         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
8984         * dump-id.h: Remove.
8985         * emacs.c: Move dump-id.h into dumper.h.
8986         * dumper.h: Move dump-id.h into dumper.h.
8987         * Makefile.in.in:
8988         Use standard .c.o rule for building dump-id.o.
8989         Remove preprocessor flags from link command.
8990         Add dump-id.o to ${otherobjs} if PDUMP.
8991
8992 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
8993
8994         Port FSF 20.7 syntax table improvements.
8995         * syntax.c.
8996         * syntax.h.
8997
8998         Fixups for new syntax table stuff.
8999         * dired.c: Include syntax.c.
9000         (Fdirectory_files): Initialize regex_match_object and
9001         regex_emacs_buffer.
9002         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
9003         and Fget_char_property.
9004
9005         Use ported FSF 20.7 syntax table improvements.
9006         * font-lock.c.
9007         * regex.c.
9008         * search.c.
9009         
9010 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9011
9012         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
9013         Unixware's enum boolean from sys/types.h.
9014
9015 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9016
9017         Fix support for building with latest Purify.
9018         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
9019         (PURIFY_FLAGS): Likewise.
9020
9021 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9022
9023         * fileio.c (lisp_string_set_file_times): New.
9024         * fileio.c (Fcopy_file): Use it.
9025         Fixes bug:
9026         (copy-file filename non-ascii-filename t t)
9027         ==> No such file or directory, non-ascii-filename
9028
9029 2001-02-10  Martin Buchholz  <martin@xemacs.org>
9030
9031         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
9032         USHRT_MAX seems clearer than ~0 anyways.
9033
9034 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9035
9036         dumper improvements.  Inspired by Olivier.
9037         * dumper.c (pdump_max_align): New.
9038         * dumper.c (pdump_add_entry): Use pdump_max_align.
9039         * dumper.c (pdump_get_entry_list): Likewise.
9040         * dumper.c (pdump_scan_by_alignment): Likewise.
9041         Don't iterate through unnecessary alignments.
9042         * dumper.c (pdump_file_get): No need to align result of malloc().
9043         * dumper.c (pdump_mallocadr): Remove.  
9044         The result of malloc() is guaranteed to be maximally aligned.
9045         * dumper.c: s/elmt/elt/g;
9046         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
9047         * dumper.c (pdump_alert_undump_object): Likewise.
9048         * dumper.c (pdump_align_table): 
9049         Don't support alignments > 64.
9050         Store ALIGNOF's, not shift counts, in table.
9051
9052 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9053
9054         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
9055         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
9056         * systime.h: Use HAVE_UTIME.
9057         * sysdep.c (struct utimbuf): Remove.
9058         * sysdep.c (set_file_times): Prefer utime() to utimes().
9059         * config.h.in (HAVE_UTIME): New.
9060         * config.h.in (HAVE_UTIME_H): Remove.
9061         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
9062
9063 2001-02-09  Martin Buchholz  <martin@xemacs.org>
9064
9065         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
9066
9067 2001-02-08  Martin Buchholz  <martin@xemacs.org>
9068
9069         * s/irix6-0.h: Use the standard system memmove, not bcopy.
9070
9071 2001-02-08  Martin Buchholz <martin@xemacs.org>
9072
9073         * XEmacs 21.2.44 "Thalia" is released.
9074
9075 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9076
9077         Fixes crashes in kill-emacs on some systems.
9078         * process-unix.c (unix_kill_child_process):
9079         It's OK for kill() to fail with ESRCH.
9080
9081 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9082
9083         Contortions to make .gdbinit tricks work on most systems.
9084         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
9085         * alloc.c (dbg_valmask): Make non-const.
9086         * alloc.c (dbg_typemask): Make non-const.
9087         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
9088         * alloc.c (dbg_valbits): Make non-const.
9089         * alloc.c (dbg_gctypebits): Make non-const.
9090         * .gdbinit (decode_object): Make it work with AIX cc.
9091
9092 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9093
9094         * elhash.c (make_general_lisp_hash_table):
9095         Use simpler and more efficient calloc to clear entries.
9096
9097 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9098
9099         * window.c (window_scroll): Work around an AIX C compiler bug.
9100         Fixes 'scroll-up' does nothing problem with xlC.
9101
9102 2001-02-05  Martin Buchholz  <martin@xemacs.org>
9103
9104         * .gdbinit: Remove obsolete comment.
9105
9106 2001-01-31  Mike Alexander  <mta@arbortext.com>
9107
9108         * select.c (Fown_selection_internal): Set owned_p for device
9109         method correctly.
9110
9111 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9112
9113         Port to g++ 2.97.
9114         "not" cannot be used as a macro name as it is an operator in C++
9115         * config.h.in: Stop #defining `not'.
9116         * chartab.c (check_category_char): not ==> not_p
9117         * chartab.h: Likewise.
9118         * regex.c (re_match_2_internal): Likewise.
9119
9120 2001-02-02  Martin Buchholz  <martin@xemacs.org>
9121
9122         * lisp-disunion.h: Fix up comments.
9123
9124 2001-01-31  Martin Buchholz  <martin@xemacs.org>
9125
9126         * keymap.c (define_key_check_and_coerce_keysym):
9127         (syms_of_keymap):
9128         Support mouse-6 and mouse-7 bindings in the obvious way.
9129
9130 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9131
9132         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
9133
9134 2001-01-30  Martin Buchholz  <martin@xemacs.org>
9135
9136         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
9137         Previous patch missed DEFVAR_INT_MAGIC.
9138         Make sure future DEFVAR_foo use correct types.
9139         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
9140         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
9141         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
9142         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
9143         * (DEFVAR_INT): Likewise.
9144         * redisplay.c (vertical_clip): Should be of type Fixnum.
9145         * redisplay.c (horizontal_clip): Likewise.
9146         * lisp.h (dump_add_opaque_int): New.
9147         (dump_add_opaque_fixnum): New.
9148
9149 2001-01-29  Andy Piper  <andy@xemacs.org>
9150
9151         * glyphs-widget.c (check_valid_int_or_function): allow symbols
9152         since they can be eval'ed
9153
9154 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9155
9156         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
9157         Oops, XEmacs redefines `class'.  Use `typename' instead.
9158
9159 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9160
9161         * dumper.c: Fix C++ compile errors.
9162
9163 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9164
9165         * tparam.c: Use correct prototypes.
9166
9167 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9168
9169         * sysproc.h: #include util.h for NetBSD's openpty.
9170
9171 2001-01-27  Martin Buchholz  <martin@xemacs.org>
9172
9173         More 64-bit correctness.
9174         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
9175         Use a typedef `fixnum' for the type used for DEFVAR_INT.
9176         Fix up comments.
9177         This finally finishes the 64-bit SGI port.
9178         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
9179         * symbols.c: Fix up comments and type casts.
9180         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
9181         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
9182         * symeval.h (Fixnum): New type.
9183         * symeval.h (symbol_value_type): Fix up comment.
9184
9185         * commands.h:
9186         * nt.c:
9187         * emacs.c:
9188         * data.c:
9189         * redisplay.c:
9190         * abbrev.c:
9191         * dired-msw.c:
9192         * event-Xt.c:
9193         * eldap.c:
9194         * window.c:
9195         * sound.c:
9196         * event-stream.c:
9197         * eval.c:
9198         * buffer.c:
9199         * mule-canna.c: A million DEFVAR_INTs here...
9200         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
9201         * extents.c:
9202         * cmdloop.c:
9203         * lisp.h:
9204         * select-x.c:
9205         * console-x.h:
9206         * event-msw.c:
9207         * mule-wnnfns.c:
9208         * hpplay.c:
9209         * ralloc.c:
9210         * alloc.c:
9211         * keymap.c:
9212         * profile.c:
9213         s/int/Fixnum/g in DEFVAR_INT declarations.
9214
9215 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9216
9217         Port pdump to SGI alignment-sensitive environment.
9218         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9219         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9220         properly aligned.
9221         Define and use aligned reading and writing macros.
9222         Use buffered stdio instead of posix i/o for faster dumping.
9223         Eliminate kludgy 256 byte space for header.
9224         Read and write from dump file using structs for alignment safety.
9225         * dumper.c (pdump_align_stream): New.
9226         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9227         * dumper.c (PDUMP_READ_ALIGNED): New.
9228         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9229         * dumper.c (pdump_static_Lisp_Object): New struct.
9230         * dumper.c (pdump_static_pointer): New struct.
9231         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9232         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9233         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9234         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9235
9236         * dumper.c (pdump_backtrace):
9237         * dumper.c (pdump_get_indirect_count):
9238         * dumper.c (pdump_register_object):
9239         * dumper.c (pdump_register_struct):
9240         * dumper.c (pdump_reloc_one):
9241         * dumper.c (pdump_scan_by_alignment):
9242         * dumper.c (pdump_dump_from_root_struct_ptrs):
9243         * dumper.c (pdump_dump_opaques):
9244         * dumper.c (pdump_dump_rtables):
9245         * dumper.c (pdump_dump_from_root_objects):
9246         * dumper.c (pdump):
9247         * dumper.c (pdump_load_finish):
9248         Use aligned reading and writing.
9249
9250         * dumper.c (pdump_free): Make static.
9251         * dumper.c (pdump_hFile): Likewise.
9252         * dumper.c (pdump_hMap): Likewise.
9253
9254 2001-01-26  Martin Buchholz <martin@xemacs.org>
9255
9256         * XEmacs 21.2.43 "Terspichore" is released.
9257
9258 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9259
9260         Type fiddling for window_config.saved_windows_count
9261         * window.c (struct window_config): 
9262         Make saved_windows_count member unsigned.
9263         * window.c (sizeof_window_config_for_n_windows): 
9264         Make parameter unsigned.
9265         * window.c (mark_window_config):
9266         * window.c (window_config_equal):
9267         * window.c (free_window_configuration):
9268         * window.c (Fset_window_configuration):
9269         * window.c (count_windows):
9270         * window.c (Fcurrent_window_configuration):
9271         * window.c (reinit_vars_of_window):
9272         Update all callers and users.
9273
9274 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9275
9276         Alignment correctness for flexible arrays.
9277         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9278         Make alignment-correct. Add interesting comments.
9279         * alloc.c (size_vector):
9280         * alloc.c (make_vector_internal):
9281         * alloc.c (make_bit_vector_internal):
9282         * alloc.c (sweep_bit_vectors_1):
9283         * fns.c (size_bit_vector):
9284         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9285         * window.c (sizeof_window_config_for_n_windows): 
9286         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9287
9288 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9289
9290         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9291
9292 2001-01-23  Andy Piper  <andy@xemacs.org>
9293
9294         * select.c (Fown_selection_internal): pass owned_p
9295
9296         * select-msw.c (mswindows_own_selection): New Signature.
9297
9298         * console.h (struct console_methods): add owned_p to
9299         _own_selection.
9300
9301         * select-x.c (x_own_selection): pass owned_p
9302         (hack_motif_clipboard_selection): use owned_p
9303         (vars_of_select_x): new variable -
9304         x_selection_strict_motif_ownership.
9305
9306 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9307
9308         * specifier.h (specifier_data_offset): Remove pointless parens.
9309         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9310
9311 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9312
9313         Make Lisp_Object sizeof methods be alignment-correct.
9314         pdump must restore objects to the same alignment as the C compiler
9315         assumes.  It really matters on SGIs.
9316         * lstream.c (aligned_sizeof_lstream): New.
9317         (sizeof_lstream): Use aligned_sizeof_lstream.
9318         (Lstream_new): Likewise.
9319         * opaque.c (aligned_sizeof_opaque): New.
9320         (sizeof_opaque): Use aligned_sizeof_opaque.
9321         (make_opaque): Likewise.
9322         * specifier.c (aligned_sizeof_specifier): New.
9323         (sizeof_specifier): Use aligned_sizeof_specifier.
9324         (make_specifier_internal): Likewise.
9325
9326 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9327
9328         * lstream.h (struct lstream): Use max_align_t for trailing data.
9329         * specifier.h (struct Lisp_Specifier): Likewise.
9330
9331 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9332
9333         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9334         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9335         (CCL_SUSPEND): Likewise.
9336         (CCL_INVALID_CMD): Likewise.
9337         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9338         (ccl_driver): Likewise.
9339         (CCL_WRITE_CHAR): Macro hygiene.
9340         (CCL_WRITE_STRING): Macro hygiene.
9341
9342 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9343
9344         Port "portable" dumper to SunOS 4 and HP-UX.
9345         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9346         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9347         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9348
9349 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9350
9351         * lisp.h (ALIGNOF): A better definition for C++.
9352
9353 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9354
9355         Macro hygiene.
9356         Fix printf warnings: int format, long int arg.
9357         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9358         (PUSH_FAILURE_POINT): Use correct printf formats.
9359         (POP_FAILURE_POINT): Use correct printf formats.  
9360         Use do {...} while (0)
9361
9362 2001-01-20  Martin Buchholz <martin@xemacs.org>
9363
9364         * XEmacs 21.2.42 "Poseidon" is released.
9365
9366 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9367
9368         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9369
9370 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9371
9372         De-kludgify FIXED_TYPE free list frobbing.
9373         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9374         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9375         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9376         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9377         * alloc.c (LRECORD_FREE_P): New.
9378         * alloc.c (MARK_LRECORD_AS_FREE): New.
9379         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9380         * alloc.c (STRUCT_FREE_P): Deleted.
9381         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9382         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9383         * alloc.c (STRING_CHARS_FREE_P): New.
9384         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9385         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9386         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9387         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9388         * alloc.c (resize_string): Use new definitions.
9389         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9390         * alloc.c (verify_string_chars_integrity): Use new definitions.
9391         * alloc.c (compact_string_chars): Use new definitions.
9392         * alloc.c: Update monster comments.
9393         * lrecord.h (lrecord_type): Add some new lrecord types for
9394         alloc.c's use.
9395
9396 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9397
9398         Improve alignment hackery.
9399         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9400         (max_align_t): Moved from opaque.h - general purpose.
9401         (ALIGN_PTR): Use size_t, not long.
9402         * opaque.h (max_align_t): Move to lisp.h.
9403
9404 2001-01-18  Norbert Koch  <nk@LF.net>
9405
9406         * gui.h: Fix and add prototypes to fix build problems.
9407
9408 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9409
9410         temacs is going away, so `dump-temacs' is now a bad name.
9411         * .dbxrc (dump-temacs): Rename to `dmp'.
9412         * .gdbinit (dump-temacs): Rename to `dmp'.
9413
9414 2001-01-17  Andy Piper  <andy@xemacs.org>
9415
9416         * glyphs.c (print_image_instance): comment to make martin happy.
9417
9418         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9419         change.
9420
9421         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9422         activation.
9423         (mswindows_tab_control_redisplay): warning suppression.
9424
9425         * glyphs-widget.c (widget_update): re-write to cope with updated
9426         items.
9427         (widget_instantiate): use new gui_item functions.
9428         (tab_control_update): deleted.
9429         (progress_gauge_update): deleted.
9430         (image_instantiator_progress_guage): take out update reference.
9431         (image_instantiator_tree_view): ditto.
9432         (image_instantiator_tab_control): ditto.
9433
9434         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9435         Right the new way.
9436         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9437         return whether anything was changed.
9438         (update_gui_item_keywords): as it sounds.
9439
9440         * gui.h: declare widget_gui_parse_item_keywords.
9441
9442         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9443         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9444
9445 2001-01-17  Martin Buchholz <martin@xemacs.org>
9446
9447         * XEmacs 21.2.41 "Polyhymnia" is released.
9448
9449 2001-01-16  Didier Verna  <didier@xemacs.org>
9450
9451         * glyphs.c (image_instantiate): don't use fallbacks when
9452         instantiating a face's background pixmap by inheritance.
9453
9454 2001-01-14  Mike Sperber <mike@xemacs.org>
9455
9456         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9457         Conditionalize accordingly.
9458
9459 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9460
9461         * dumper.c (pdump_file_get): Fix a compiler warning.
9462
9463 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9464
9465         Make Purify happy when pdumping.
9466         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9467         iniitalizing all bits of new lisp object memory.
9468         * symbols.c (Fmake_local_variable): Likewise.
9469         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9470         * symbols.c (Fdefvaralias): Likewise.
9471         * mule-charset.c (vars_of_mule_charset): Likewise.
9472
9473 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9474         Add the `-nd' flag when running pre-dump operations under the debugger.
9475         * .dbxrc (run-temacs): Add `-nd'.
9476         * .dbxrc (update-elc): Likewise.
9477         * .dbxrc (dump-temacs): Likewise.
9478         * .gdbinit (run-temacs): Likewise.
9479         * .gdbinit (check-temacs): Likewise.
9480         * .gdbinit (update-elc): Likewise.
9481         * .gdbinit (dump-temacs): Likewise.
9482
9483 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9484
9485         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9486         export OBJECT_MODE=64
9487         configure --pdump --use-union-type=no
9488         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9489         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9490
9491         * miscplay.c (sndcnv8U_2mono):
9492         Avoid two uses of `++' in the same expression.
9493         Suppresses a GCC warning.
9494
9495 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9496
9497         Make sure future compilers don't miscompile alloc.c.
9498         * alloc.c:
9499         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9500         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9501
9502 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9503
9504         * dumper.c: A little post-pdump-rename comment fixup.
9505
9506 2001-01-09  Jerry James  <james@eecs.ku.edu>
9507
9508         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9509
9510 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9511
9512         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9513         script:
9514         #!/bin/sh
9515         replace_symbol () {
9516           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9517         }
9518
9519         replace_symbol pdump_wire_lists pdump_weak_object_chains
9520         replace_symbol pdump_wire_list dump_add_weak_object_chain
9521
9522         replace_symbol pdump_wires pdump_root_objects
9523         replace_symbol pdump_wire dump_add_root_object
9524
9525         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9526         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9527
9528         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9529         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9530         replace_symbol dumpstructinfo pdump_root_struct_ptr
9531         replace_symbol dumpstruct dump_add_root_struct_ptr
9532
9533         replace_symbol dumpopaque dump_add_opaque
9534         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9535         replace_symbol dumpopaqueinfos pdump_opaques
9536         replace_symbol dumpopaqueinfo pdump_opaque
9537
9538         replace_symbol nb_structdump nb_root_struct_ptrs
9539         replace_symbol nb_opaquedump nb_opaques
9540
9541         replace_symbol align_table pdump_align_table
9542         replace_symbol dump_header pdump_header
9543
9544         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9545         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9546
9547
9548 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9549
9550         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9551         optimizing bytecount_to_charcount().
9552
9553 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9554
9555         * config.h.in:
9556         (HAVE_DLFCN_H): Removed.
9557         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9558
9559 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9560
9561         Portable dumper maintainability improvements.
9562         * alloc.c (staticpro):
9563         * alloc.c (staticpro_nodump):
9564         * alloc.c (garbage_collect_1):
9565         * alloc.c (reinit_alloc_once_early):
9566         * alloc.c (init_alloc_once_early):
9567         * alloc.c: Move dumper functions to alloc.c.
9568         * dumper.c (pdump_backtrace):
9569         * dumper.c (pdump_dump_structs):
9570         * dumper.c (pdump_dump_opaques):
9571         * dumper.c (pdump_dump_rtables):
9572         * dumper.c (pdump_dump_wired):
9573         * dumper.c (pdump):
9574         * dumper.c (pdump_load_check):
9575         * dumper.c (pdump_load_finish):
9576         * dumper.c (pdump_file_unmap):
9577         * dumper.c (pdump_file_get):
9578         * dumper.c (pdump_resource_free):
9579         * dumper.c (pdump_resource_get):
9580         * dumper.c (pdump_file_free):
9581         * dumper.c (pdump_file_try):
9582         * dumper.c (pdump_load):
9583         Remove fixed size limits on staticpro(), staticpro_nodump(),
9584         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9585         Remove custom code for dumping lrecord_implementations_table - use
9586         dumpopaque instead.
9587         Remove (most of the) custom code for dumping staticpros - dump it
9588         like any other dynarr.
9589
9590         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9591         * dumper.c: Moved functions from alloc.c.
9592         * alloc.c (dumpstruct): Moved to dumper.c.
9593         * alloc.c (dumpopaque): Likewise.
9594         * alloc.c (pdump_wire): Likewise.
9595         * alloc.c (pdump_wire_list): Likewise.
9596
9597         * lisp.h (Dynarr_sizeof): New.
9598         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9599         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9600         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9601
9602         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9603         * lisp.h (dumpopaque): ditto.
9604         * lisp.h (pdump_wire): ditto.
9605         * lisp.h (pdump_wire_list): ditto.
9606
9607 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9608
9609         * make-src-depend (PrintPatternDeps):
9610         Use `sort' to make output independent of perl version.
9611
9612 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9613
9614         Port to Netbsd 1.5.
9615         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9616         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9617
9618 2001-01-03  Didier Verna  <didier@xemacs.org>
9619
9620         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9621         that `focus_frame' is alive before thinking of calling
9622         `redisplay_redraw_cursor' on it.
9623
9624 2001-01-08  Martin Buchholz <martin@xemacs.org>
9625
9626         * XEmacs 21.2.40 is released.
9627
9628 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9629
9630         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9631
9632 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9633
9634         * alloc.c (dbg_valmask): Make const.
9635         * alloc.c (dbg_typemask): Make const.
9636         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9637         * alloc.c (dbg_valbits): Make const.
9638         * alloc.c (dbg_gctypebits): Make const.
9639
9640 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9641
9642         * redisplay-x.c (x_bevel_area):
9643         redisplay.h (struct rune):
9644         Typo fixes in comments.
9645
9646 2001-01-05  Andy Piper  <andy@xemacs.org>
9647
9648         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9649         adjustment.
9650
9651         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9652
9653 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9654
9655         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9656
9657         * mule-ccl.c (stack_idx_of_map_multiple):
9658         Non const global data must not be initialized!
9659         Found by MIYASHITA Hisashi.
9660
9661 2001-01-02  Andy Piper  <andy@xemacs.org>
9662
9663         * frame.c (change_frame_size): make sure frame size is always
9664         marked as changed.
9665
9666         * glyphs.c (image_instance_layout): minor code reuse.
9667
9668         * window.c (Fcurrent_window_configuration): revert previous
9669         change.
9670
9671 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9672
9673         * glyphs.h:
9674         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9675
9676 2000-12-31  Andy Piper  <andy@xemacs.org>
9677
9678         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9679         when widget gets unmapped.
9680
9681         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9682         function. Make sure widgets losing focus don't just drop it.
9683         (handle_focus_event_1): record the widget with focus.
9684
9685 2000-12-31  Andy Piper  <andy@xemacs.org>
9686
9687         * window.c (allocate_window): use
9688         make_image_instance_cache_hash_table.
9689         (make_dummy_parent): ditto.
9690         (Fset_window_configuration): ditto.
9691
9692         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9693
9694         * glyphs.c (process_image_string_instantiator): use
9695         INSTANTIATOR_TYPE.
9696         (get_image_instantiator_governing_domain): ditto.
9697         (normalize_image_instantiator): ditto.
9698         (instantiate_image_instantiator): ditto.
9699         (make_image_instance_1): ditto.
9700         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9701         (instantiator_eq_equal): new function for use with instance hash
9702         tables.
9703         (instantiator_eq_hash): ditto.
9704         (make_image_instance_cache_hash_table): create a suitable hash
9705         table for storing image instances.
9706
9707         * elhash.h (hash_table_weakness): new internal weakness type
9708         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9709         declare new functions.
9710
9711         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9712         another weakness type for glyphs.
9713         (make_standard_lisp_hash_table): new function split out from
9714         make_general_lisp_hash_table.
9715         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9716         (hash_table_instantiate): ditto.
9717         (Fmake_hash_table): ditto.
9718
9719 2000-12-31  Martin Buchholz <martin@xemacs.org>
9720
9721         * XEmacs 21.2.39 is released.
9722
9723 2000-12-29  Andy Piper  <andy@xemacs.org>
9724
9725         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9726
9727         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9728         the frame has changed so that we pick up geometry changes such as
9729         menubar visibility.
9730
9731 2000-12-28  Andy Piper  <andy@xemacs.org>
9732
9733         * lastfile.c (my_ebss): make a char array so we can pad the
9734         bss. Fixes cygwin unexec.
9735
9736         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9737
9738 2000-12-26  Andy Piper  <andy@xemacs.org>
9739
9740         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9741         comments and try and be more precise about a non-/SIGIO world.
9742         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9743         SIGIO.
9744
9745         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9746         we don't normalize to zero width or height.
9747
9748 2000-12-24  Andy Piper  <andy@xemacs.org>
9749
9750         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9751
9752 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9753
9754         * s/sco5.h: SCO 5 has pty support.
9755
9756 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9757
9758         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9759         input-method-xlib.c contains whole contents of input-method-xfs.c,
9760         so we can use input-method-xlib.c's code for USE_XFONTSET
9761         using #ifdefs.
9762         * input-method-xfs.c: removed.
9763
9764 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9765
9766         * file-coding.h (enum coding_category_type): reorder enumerators to
9767         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9768         (now one greater than largest real coding_category_type enumerator).
9769         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9770         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9771         Fcoding_category_list, Fset_coding_priority_list,
9772         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9773         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9774
9775 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9776
9777         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9778         * redisplay-output.c (redisplay_output_window): Clear top of window
9779         when face is changed.
9780         * redisplay-x.c (x_redraw_exposed_window): Call
9781         redisplay_clear_top_of_window.
9782         * redisplay.h: Publish redisplay_clear_top_of_window.
9783
9784 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9785
9786         * buffer.c (Fkill_buffer): Map over all devices.
9787         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9788         (list_windows): New function.
9789         (list_all_windows): Ditto.
9790         (Freplace_buffer_in_windows): Use them.
9791
9792 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9793
9794         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9795         (Fopen_database): Use `db_create' instead of `db_open'.
9796         (syms_of_database): Initialize Qqueue.
9797
9798 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9799
9800         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9801         buffer_local_face_property.
9802         * buffer.h (struct buffer): New member buffer_local_face_property.
9803         * window.c (Fset_window_buffer):  Mark window's face as changed
9804         when buffer has buffer local face.
9805         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9806         * objects.c (color_after_change): Set buffer_local_face_property
9807         when locale of face specifier is buffer.
9808         * objects.c (font_after_change): Ditto.
9809         * objects.c (face_boolean_after_change): Ditto.
9810         * glyphs.c (image_after_change): Ditto.
9811
9812 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9813
9814         * nt.c (mswindows_fstat): Report file permissions, volume serial
9815         number, etc. Code adapted from FSF Emacs 20.7.
9816
9817 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9818
9819         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9820         of stat when we don't have symbolic links, to make sure
9821         mswindows_stat is called on mswindows.
9822
9823 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9824
9825         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9826
9827 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9828
9829         * doprnt.c (emacs_doprnt_1): More printing fixes.
9830         Make printing of numbers compatible with libc and FSF Emacs.
9831         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9832         Use the system printf to do most of the hard work of formatting,
9833         instead of doprnt_1().
9834         Calculate memory to allocate for format string.
9835         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9836         (doprnt_1): Cleaner code and documentation.
9837
9838 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9839
9840         * Makefile.in.in: Use the loop variable to install headers.
9841
9842 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9843
9844         * window.c (Fsplit_window): Don't invalidate face cache.
9845
9846 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9847
9848         * minibuf.c (Fall_completions): Undo the previous change
9849         which removed checking elements start with space.
9850
9851 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9852
9853         * mule-canna.c: Didier suppression.
9854
9855 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9856
9857         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9858         (warning suppression).  Add English comment translations.
9859
9860 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9861
9862         * unexelfsgi.c (unexec): Better test for mmap failure.
9863
9864 2000-12-05  Martin Buchholz <martin@xemacs.org>
9865
9866         * XEmacs 21.2.38 is released.
9867
9868 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9869
9870         * redisplay.c (bar-cursor): Make a user variable.
9871
9872         * symsinit.h: Add init_postgresql_from_environment.
9873
9874 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9875
9876         * regex.c: Convert to clean C.
9877
9878 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9879
9880         * realpath.c:
9881         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9882         initialization.
9883         (sys_readlink): renamed to system_readlink to avoid conflict with
9884         the other sys_readlink.
9885
9886 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9887
9888         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9889
9890 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9891
9892         * postgresql.c (init_postgresql_from_environment): new function.
9893         (vars_of_postgresql): Move code initializing Lisp variables out and
9894         into init_postgresql_from_environment.
9895         emacs.c (main_1): Call init_postgresql_from_environment if and only
9896         if running a dumped XEmacs.
9897
9898 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9899
9900         * buffer.c: Make find-file-compare-truenames default to true on
9901         windows.
9902
9903         * realpath.c (win32_abs_start):
9904         (cygwin_readlink):
9905         (win32_readlink): New functions.
9906         (xrealpath): Return really real filenames on windows.
9907
9908         * fileio.c (Ffile_truename): Make file-truename work on windows.
9909
9910 2000-11-29  Didier Verna  <didier@xemacs.org>
9911
9912         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9913         * faces.c (update_face_cachel_data): use it.
9914         * faces.c (add_face_cachel): use it. Complete background pixmap
9915         frobbing in face cache if `update_face_cachel_data' has not done so.
9916
9917 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9918
9919         * search.c (string_match_1): Don't set last_thing_searched
9920         when search failed.
9921
9922 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9923
9924         * buffer.c: Include casetab.h
9925         (common_init_complex_vars_of_buffer): Use new case-table object.
9926         * buffer.h: Include casetab.h
9927         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9928         (DOWNCASE_TABLE_OF): Ditto.
9929         * bufslots.h: Remove char-tables and add case-table.
9930         * casetab.c: Include casetab.h
9931         (CASE_TABLE_P): Removed.
9932         (mark_case_table): New function.
9933         (allocate_case_table): New function.
9934         (Fcase_table_p): Use new case-table.
9935         (case_table_char): New function.
9936         (Fget_case_table): Ditto.
9937         (Fput_case_table): Ditto.
9938         (Fput_case_table_pair): Ditto.
9939         (Fcopy_case_table): Ditto.
9940         (Fcurrent_case_table): Return case-table.
9941         (Fstandard_case_table): Return case-table.
9942         (Fset_case_table): Fix doc-string.
9943         (set_case_table): Use case-table
9944         (syms_of_casetab): DEFSUBR new functions.
9945         (complex_vars_of_casetab): Set up standard case-table.
9946         * casetab.h: New file.
9947         * editfns.c: Include casetab.h
9948         (Fcompare_buffer_substrings): Use case-table.
9949         * inline.c: Include casetab.h
9950         * lisp.h: Remove bogus extern.
9951         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9952         * search.c: Include casetab.h
9953         (TRANSLATE_ASCII): Removed.
9954         (TRANSLATE): Unconditionally translate character.
9955         (looking_at_1): Use case-table.
9956         (string_match_1): Ditto.
9957         (fast_string_match): Ditto.
9958         (search_command): Ditto.
9959         (search_buffer): Separate boyer_moore.  Check whether
9960         boyer_moore is possible.
9961         (simple_search): New function.
9962         (boyer_moore): Separated from search_buffer. Translate char.
9963
9964 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9965
9966         * regex.c (RE_TR_ASCII): Removed.
9967         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9968         (PATFETCH): Call PATFETCH_RAW.
9969         (PATFETCH_RAW): Fetch Emchar.
9970         (PATUNFETCH): Decrement charptr.
9971         (GET_BUFFER_SPACE): Rename b to buf_end.
9972         (BUF_PUSH): Ditto.
9973         (BUF_PUSH_2): Ditto.
9974         (BUF_PUSH_3): Ditto.
9975         (EXTEND_BUFFER): Ditto.
9976         (SET_LIST_BIT): Ditto.
9977         (regex_compile): Ditto.  Translate non ASCII char.
9978         (compile_range): Ditto.
9979         (re_search_2): Ditto.
9980         (re_match_2_internal): Compare Emchar.
9981         (bcmp_translate): Ditto.
9982
9983 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
9984
9985         * lisp.h (basic char/int typedefs):  comment improvement.
9986
9987 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
9988
9989         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
9990         unstomp inhibit_site_lisp.  Improve comments.
9991
9992 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
9993
9994         * mule-charset.c (Fcharset_property):  improve type checking, comments.
9995
9996 2000-11-28  Andy Piper  <andy@xemacs.org>
9997
9998         * redisplay-output.c (redisplay_output_subwindow): make sure we do
9999         clipped display for windows in the gutter also.
10000         (redisplay_display_boxes_in_window_p): change semantics of return
10001         codes to be more intuitive.
10002
10003         * gutter.h: declare display_boxes_in_gutter_p.
10004
10005         * gutter.c (display_boxes_in_gutter_p): new function for
10006         redisplay.
10007
10008 2000-11-22  Andy Piper  <andy@xemacs.org>
10009
10010         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
10011         autodetect domain.
10012
10013 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
10014
10015         * callproc.c (Fold_call_process_internal):
10016         * gpm.c (Freceive_gpm_event):
10017         (tty_get_foreign_selection): Might be just warning supression.
10018         * fileio.c (Fwrite_region_internal):
10019         (Fset_visited_file_modtime):
10020         * keymap.c (event_matches_key_specifier_p):
10021         Initialize GCPROed variable.
10022
10023         * menubar-x.c (command_builder_find_menu_accelerator):
10024         Initialize before use.
10025
10026 2000-11-23  Andy Piper  <andy@xemacs.org>
10027
10028         * unexcw.c (unexec): make the resulting executable executable.
10029
10030 2000-11-21  Martin Buchholz  <martin@xemacs.org>
10031
10032         * doc.c (get_doc_string):
10033         Use size_t, not int, for result of XSTRING_LENGTH.
10034
10035         * cmds.c (Fdelete_char):
10036         * cmds.c (Fpoint_at_eol):
10037         * cmds.c (Fself_insert_command):
10038         Use EMACS_INT, not int, for result of XINT.
10039         Someday, someone will want to insert more than 2**31 identical characters.
10040
10041         * cmds.c (Fdelete_char):
10042         * cmds.c (Fdelete_backward_char):
10043         * syntax.c (Fforward_word):
10044         * syntax.c (Fforward_comment):
10045         Make COUNT argument optional, for consistency with forward-char et al.
10046
10047 2000-11-22  Martin Buchholz  <martin@xemacs.org>
10048
10049         * lisp.h:
10050         * print.c (long_to_string):
10051         Return a useful value: the pointer at end of data written.
10052
10053         * doprnt.c:
10054         Use `static const char * const' for constant strings.
10055         (union printf_arg): Delete `i', `ui' members.
10056         (get_doprnt_args):
10057         (emacs_doprnt_1):
10058         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
10059         Do all printf-ing via the `l' specifier.
10060         Use EMACS_INT instead of int.
10061         Optimize.
10062
10063 2000-11-20  Didier Verna  <didier@xemacs.org>
10064
10065         * faces.c (update_face_cachel_data): don't frob the background
10066         pixmap when the window is being created. The face is needed but
10067         does not exist yet.
10068
10069 2000-11-20  Andy Piper  <andy@xemacs.org>
10070
10071         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
10072         messing with a debug environment.
10073
10074 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10075
10076         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
10077
10078 2000-11-20  Martin Buchholz  <martin@xemacs.org>
10079
10080         * casetab.c (Fcase_table_p): Fix compile error and crash.
10081
10082 2000-11-18  Philip Aston  <philipa@mail.com>
10083
10084         * s/cygwin32.h: Cygwin has SVR4-like pty support.
10085
10086 2000-11-18  Martin Buchholz  <martin@xemacs.org>
10087
10088         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
10089         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
10090
10091 2000-11-17  Martin Buchholz  <martin@xemacs.org>
10092
10093         * config.h.in: Define HAVE_ELF_H if elf.h exists.
10094         * unexelf.c: Use HAVE_ELF_H.
10095         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
10096         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
10097         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
10098         Greg Harrington <greg_harrington@hotmail.com> provided a machine
10099         for testing.
10100         So this is an unexelfsgi.c from a different line of development.
10101
10102 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10103
10104         * regex.c (RE_TR_ASCII): New function.
10105         (RE_TRANSLATE): Call it.
10106
10107 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10108
10109         * buffer.h (TRT_TABLE_OF): Remove assert.
10110         (IN_TRT_TABLE_DOMAIN): Removed.
10111
10112 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10113
10114         * free-hook.c (log_gcpro):
10115         (show_gcprohist): Add support for GCPRO5.
10116
10117 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
10118
10119         * emacs.c (main_1): Improve -sd error message when --pdump=no.
10120
10121 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
10122
10123         * symeval.h: Declare flush_all_buffer_local_cache.
10124
10125         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
10126         (flush_buffer_local_cache): Added.
10127         (flush_all_buffer_local_cache): Added.
10128
10129         * lrecord.h: Remove unused XD_LO_RESET_NIL.
10130
10131         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
10132         (pdump_dump_data): Ditto.
10133         (pdump_reloc_one): Ditto.
10134         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
10135         before dumping.
10136
10137
10138 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10139
10140         * buffer.c: Remove if 0'ed entry.
10141         * buffer.h: Rewrite TRT to use char-table.
10142         * bufslots.h: Remove mirror tables.
10143         * casetab.c: Remove mirror tables.
10144         (CASE_TABLE_P): New macro.
10145         (Fcase_table_p): Element of a case table is string or char-table.
10146         (make_mirror_trt_table): Removed.
10147         (set_case_table): Setup char-table from strings for backward
10148         compatibility.
10149         * dired.c (Fdirectory_files):
10150         * dired-msw.c: (mswindows_get_files):
10151         * lisp.h: Change prototype of re_pattern_buffer.
10152         * regex.c: (RE_TRANSLATE): New macro.
10153         (TRANSLATE_P): Ditto.
10154         Change translate to type RE_TRANSLATE_TYPE.
10155         * regex.h: Define RE_TRANSLATE_TYPE
10156         * search.c (TRANSLATE): New macro.
10157         (TRANSLATE_ASCII): New macro.
10158         Translate table is changed to Lisp_Object.
10159         (signal_failure): Inhibit return.
10160
10161 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10162
10163         * device-msw.c:
10164         * eldap.c:
10165         * event-Xt.c:
10166         * event-stream.c:
10167         * print.c:
10168         Do UNGCPRO before return.
10169
10170 2000-11-14  Martin Buchholz <martin@xemacs.org>
10171
10172         * XEmacs 21.2.37 is released.
10173
10174 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10175
10176         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
10177         Add comments about discarded return value.
10178
10179 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10180
10181         * callint.c:
10182         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
10183
10184 2000-10-27  Andy Piper  <andy@xemacs.org>
10185
10186         * gutter.c (Fset_default_gutter_position): default left and right
10187         gutters to visible.
10188         (calculate_gutter_size): calculate resonable heuristic for left
10189         and right gutter sizes.
10190         (specifier_vars_of_gutter): change left and right gutter sizes to
10191         autodetect.
10192         (calculate_gutter_size_from_display_lines): new function.
10193         (output_gutter): check for resizing on left and right gutters.
10194         (clear_gutter): don't special case top and left gutters.
10195         (specifier_vars_of_gutter): use new signature for
10196         set_specifier_caching.
10197
10198         * glyphs-x.c (x_redisplay_widget): spelling fix.
10199         * glyphs.c (specifier_vars_of_glyphs):
10200         * menubar.c (specifier_vars_of_menubar):
10201         * redisplay.c (specifier_vars_of_redisplay):
10202         * toolbar.c (specifier_vars_of_toolbar):
10203         * window.c (specifier_vars_of_window):
10204         * scrollbar.c (specifier_vars_of_scrollbar):
10205         (complex_vars_of_scrollbar): use new signature for
10206         set_specifier_caching.
10207
10208         * specifier.c (set_specifier_caching): include recompute flag.
10209         (recompute_one_cached_specifier_in_window): always recompute if
10210         flag set.
10211         (recompute_one_cached_specifier_in_frame): ditto.
10212
10213         * specifier.h (struct specifier_caching): add recompute flag.
10214
10215 2000-10-24  Andy Piper  <andy@xemacs.org>
10216
10217         * unexcw.c (copy_executable_and_dump_data_section): add new
10218         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10219         5.0 happy.
10220
10221 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10222
10223         * console-x.h (x_device): New member modifier_release_time.
10224         * event-Xt.c (x_handle_sticky_modifiers):
10225         Bound interval modifier keys are sticky.
10226         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10227         * events.h: extern it.
10228
10229 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10230
10231         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10232
10233 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10234
10235         * event-stream.c (execute_command_event): Preserve current_events
10236         and the like when event is misc-user-event.
10237         Inhibit quit during the call to maybe_echo_keys.
10238
10239 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10240
10241         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10242         symlink when buffer is killed.
10243         (inhibit_clash_detection): New variable.
10244
10245 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10246
10247         * console.c (Fset_input_method): Trigger redisplay on tty.
10248
10249 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10250
10251         * process.c (Fprocess_status): Revert to previous behavior:
10252         (process-status "nosuchprocess") ==> nil
10253
10254 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10255
10256         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10257         Work around another GCC 2.95.2 optimizer bug.
10258
10259 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10260
10261         * process.c (Fget_process): Use LIST_LOOP_2.
10262         (kill_buffer_processes): Use LIST_LOOP_2.
10263
10264         * minibuf.c (Fall_completions):
10265         Delete old non-functional code for FSF fourth argument.
10266
10267         * frame.c (frame_matches_frame_spec):
10268         Renamed from `frame_matches_frametype'.  Update all callers.
10269         (device_matches_device_spec):
10270         Renamed from 'device_matches_console_spec'.  Update all callers.
10271
10272         * doc.c (Fsubstitute_command_keys):
10273         Remove buffer overflow crash.  Small code cleanups.
10274
10275         * casetab.c (check_case_table): Simpler code.
10276
10277         * window.c (Freplace_buffer_in_windows):
10278         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10279         (and similar implementation) as Fdelete_windows_on.
10280         Update all callers.
10281
10282         * alloc.c (Fmake_list):
10283         * alloc.c (make_vector):
10284         * alloc.c (Fmake_vector):
10285         * alloc.c (make_bit_vector):
10286         * alloc.c (Fmake_bit_vector):
10287         * alloc.c (Fbit_vector):
10288         * alloc.c (Fmake_string):
10289         * alloc.c (Fpurecopy):
10290         * alloc.c (Fmemory_limit):
10291         * buffer.c:
10292         * buffer.c (Fget_buffer):
10293         * buffer.c (Fkill_buffer):
10294         * buffer.c (complex_vars_of_buffer):
10295         * bytecode.c (Fcompiled_function_stack_depth):
10296         * callint.c (Fprefix_numeric_value):
10297         * event-stream.c:
10298         * event-stream.c (Fread_key_sequence):
10299         * casetab.c:
10300         * casetab.c (Fcase_table_p):
10301         * casetab.c (check_case_table):
10302         * casetab.c (Fset_case_table):
10303         * casetab.c (Fset_standard_case_table):
10304         * chartab.c:
10305         * chartab.c (Fchar_table_type):
10306         * chartab.c (Freset_char_table):
10307         * chartab.c (Fget_char_table):
10308         * chartab.c (Fget_range_char_table):
10309         * chartab.c (Fput_char_table):
10310         * chartab.c (Fmap_char_table):
10311         * chartab.c (Fcategory_table_p):
10312         * chartab.c (Fcheck_category_at):
10313         * chartab.c (Fchar_in_category_p):
10314         * chartab.c (Fcategory_table):
10315         * chartab.c (Fcopy_category_table):
10316         * chartab.c (Fset_category_table):
10317         * chartab.c (Fcategory_designator_p):
10318         * chartab.c (Fcategory_table_value_p):
10319         * cmds.c (Fdelete_char):
10320         * cmds.c (Fdelete_backward_char):
10321         * cmds.c (Fself_insert_command):
10322         * cmds.c (Fself_insert_internal):
10323         * console.c (Fvalid_console_type_p):
10324         * console.c (Fcdfw_console):
10325         * console.c (Fconsole_type):
10326         * console.c (Fconsole_name):
10327         * console.c (Fconsole_device_list):
10328         * console.c (Fconsole_on_window_system_p):
10329         * data.c:
10330         * data.c (Feq):
10331         * data.c (Fold_eq):
10332         * data.c (Fsubr_interactive):
10333         * data.c (Fchar_to_int):
10334         * data.c (Fint_to_char):
10335         * data.c (Fsetcar):
10336         * data.c (Fsetcdr):
10337         * data.c (Fnumber_to_string):
10338         * data.c (Fstring_to_number):
10339         * data.c (Frem):
10340         * database.c (mark_database):
10341         * database.c (finalize_database):
10342         * database.c (Fdatabase_live_p):
10343         * database.c (Fdatabasep):
10344         * device-x.c (Fx_get_resource):
10345         * device.c (Fdfw_device):
10346         * dired.c:
10347         * dired.c (Ffile_name_completion):
10348         * dired.c (Ffile_name_all_completions):
10349         * dired.c (Fuser_name_completion):
10350         * dired.c (Fuser_name_completion_1):
10351         * dired.c (Fuser_name_all_completions):
10352         * doc.c (Fdocumentation):
10353         * doc.c (Fdocumentation_property):
10354         * doc.c (Fsubstitute_command_keys):
10355         * editfns.c:
10356         * editfns.c (Fchar_to_string):
10357         * editfns.c (Fstring_to_char):
10358         * editfns.c (Ftemp_directory):
10359         * editfns.c (Finsert_char):
10360         * editfns.c (Fbuffer_substring_no_properties):
10361         * editfns.c (Fnarrow_to_region):
10362         * editfns.c (Fchar_equal):
10363         * editfns.c (Fchar_Equal):
10364         * editfns.c (Ftranspose_regions):
10365         * emacs.c (Fdump_emacs):
10366         * eval.c (Fthrow):
10367         * eval.c (Fcommand_execute):
10368         * eval.c (Fautoload):
10369         * eval.c (Fbacktrace):
10370         * eval.c (Fbacktrace_frame):
10371         * events.c:
10372         * events.c (Fcopy_event):
10373         * events.c (Fcharacter_to_event):
10374         * events.c (Fevent_button):
10375         * events.c (Fevent_process):
10376         * extents.c:
10377         * extents.c (Fnext_extent_change):
10378         * extents.c (Fextent_property):
10379         * faces.c (Ffacep):
10380         * faces.c (Fmake_face):
10381         * file-coding.c:
10382         * file-coding.c (Fencode_shift_jis_char):
10383         * file-coding.c (Fencode_big5_char):
10384         * fileio.c (Ffile_name_directory):
10385         * fileio.c (Ffile_name_nondirectory):
10386         * fileio.c (Ffile_name_as_directory):
10387         * fileio.c (Fdirectory_file_name):
10388         * fileio.c (Ffile_truename):
10389         * fileio.c (Fsubstitute_in_file_name):
10390         * fileio.c (Ffile_modes):
10391         * fileio.c (Fset_file_modes):
10392         * fileio.c (Fset_default_file_modes):
10393         * fileio.c (Fverify_visited_file_modtime):
10394         * floatfns.c (Facos):
10395         * floatfns.c (Fasin):
10396         * floatfns.c (Fatan):
10397         * floatfns.c (Fcos):
10398         * floatfns.c (Fsin):
10399         * floatfns.c (Ftan):
10400         * floatfns.c (Fbessel_j0):
10401         * floatfns.c (Fbessel_j1):
10402         * floatfns.c (Fbessel_jn):
10403         * floatfns.c (Fbessel_y0):
10404         * floatfns.c (Fbessel_y1):
10405         * floatfns.c (Fbessel_yn):
10406         * floatfns.c (Ferf):
10407         * floatfns.c (Ferfc):
10408         * floatfns.c (Flog_gamma):
10409         * floatfns.c (Fexp):
10410         * floatfns.c (Fexpt):
10411         * floatfns.c (Flog):
10412         * floatfns.c (Flog10):
10413         * floatfns.c (Fsqrt):
10414         * floatfns.c (Fcube_root):
10415         * floatfns.c (Facosh):
10416         * floatfns.c (Fasinh):
10417         * floatfns.c (Fatanh):
10418         * floatfns.c (Fcosh):
10419         * floatfns.c (Fsinh):
10420         * floatfns.c (Ftanh):
10421         * floatfns.c (Fabs):
10422         * floatfns.c (Ffloat):
10423         * floatfns.c (Flogb):
10424         * floatfns.c (Fceiling):
10425         * floatfns.c (Ffloor):
10426         * floatfns.c (Fround):
10427         * floatfns.c (Ftruncate):
10428         * floatfns.c (Ffceiling):
10429         * floatfns.c (Fffloor):
10430         * floatfns.c (Ffround):
10431         * floatfns.c (Fftruncate):
10432         * fns.c (Fstring_equal):
10433         * fns.c (Fstring_lessp):
10434         * fns.c (concat2):
10435         * fns.c (concat3):
10436         * fns.c (vconcat2):
10437         * fns.c (vconcat3):
10438         * fns.c (Fsubstring):
10439         * fns.c (Fassoc):
10440         * fns.c (Fold_assoc):
10441         * fns.c (assoc_no_quit):
10442         * fns.c (Fassq):
10443         * fns.c (Fold_assq):
10444         * fns.c (assq_no_quit):
10445         * fns.c (Frassoc):
10446         * fns.c (Fold_rassoc):
10447         * fns.c (Frassq):
10448         * fns.c (Fold_rassq):
10449         * fns.c (rassq_no_quit):
10450         * fns.c (Fremassoc):
10451         * fns.c (remassoc_no_quit):
10452         * fns.c (Fremassq):
10453         * fns.c (remassq_no_quit):
10454         * fns.c (Fremrassoc):
10455         * fns.c (Fremrassq):
10456         * fns.c (remrassq_no_quit):
10457         * fns.c (Fsort):
10458         * fns.c (Fplist_get):
10459         * fns.c (Fplist_put):
10460         * fns.c (Fplist_remprop):
10461         * fns.c (Fplist_member):
10462         * fns.c (Flax_plist_get):
10463         * fns.c (Flax_plist_put):
10464         * fns.c (Flax_plist_remprop):
10465         * fns.c (Flax_plist_member):
10466         * fns.c (Fequal):
10467         * fns.c (Fold_equal):
10468         * fns.c (Frequire):
10469         * fns.c (Fbase64_encode_region):
10470         * fns.c (Fbase64_encode_string):
10471         * fns.c (Fbase64_decode_region):
10472         * frame.c:
10473         * frame.c (frame_matches_frame_spec):
10474         * frame.c (device_matches_device_spec):
10475         * frame.c (next_frame):
10476         * frame.c (previous_frame):
10477         * frame.c (Fnext_frame):
10478         * frame.c (Fprevious_frame):
10479         * frame.c (Fframe_property):
10480         * frame.c (Fset_frame_height):
10481         * frame.c (Fset_frame_size):
10482         * frame.h:
10483         * glyphs.c:
10484         * glyphs.c (if):
10485         * glyphs.c (decode_error_behavior_flag):
10486         * glyphs.c (Fmake_image_instance):
10487         * indent.c (Findent_to):
10488         * intl.c (Fignore_defer_gettext):
10489         * keymap.c (Fkeymapp):
10490         * keymap.c (Flookup_key):
10491         * lread.c:
10492         * lread.c (Fload_internal):
10493         * lread.c (Feval_buffer):
10494         * lread.c (Feval_region):
10495         * macros.c (Fexecute_kbd_macro):
10496         * marker.c (set_marker_internal):
10497         * marker.c (Fset_marker):
10498         * marker.c (set_marker_restricted):
10499         * marker.c (Fcopy_marker):
10500         * marker.c (noseeum_copy_marker):
10501         * menubar.c:
10502         * menubar.c (Fpopup_menu):
10503         * minibuf.c:
10504         * mule-charset.c (Fcharset_name):
10505         * mule-charset.c (Fchar_charset):
10506         * mule-charset.c (Fchar_octet):
10507         * mule-charset.c (Fsplit_char):
10508         * mule-wnnfns.c (Fwnn_open):
10509         * mule-wnnfns.c (Fwnn_dict_comment):
10510         * mule-wnnfns.c (Fwnn_quit_henkan):
10511         * mule-wnnfns.c (Fwnn_word_toroku):
10512         * mule-wnnfns.c (Fwnn_word_sakujo):
10513         * mule-wnnfns.c (Fwnn_word_use):
10514         * mule-wnnfns.c (Fwnn_hindo_set):
10515         * objects.c:
10516         * objects.c (Fmake_color_instance):
10517         * objects.c (Fmake_font_instance):
10518         * print.c (Fwrite_char):
10519         * process.c:
10520         * process.c (mark_process):
10521         * process.c (print_process):
10522         * process.c (get_process_from_usid):
10523         * process.c (Fprocessp):
10524         * process.c (Fprocess_live_p):
10525         * process.c (Fget_process):
10526         * process.c (Fget_buffer_process):
10527         * process.c (get_process):
10528         * process.c (Fprocess_id):
10529         * process.c (Fprocess_name):
10530         * process.c (Fprocess_command):
10531         * process.c (init_process_io_handles):
10532         * process.c (start_process_unwind):
10533         * process.c (Fstart_process_internal):
10534         * process.c (Fopen_multicast_group_internal):
10535         * process.c (Fset_process_window_size):
10536         * process.c (read_process_output):
10537         * process.c (send_process):
10538         * process.c (Fprocess_tty_name):
10539         * process.c (Fset_process_buffer):
10540         * process.c (Fprocess_buffer):
10541         * process.c (Fprocess_mark):
10542         * process.c (set_process_filter):
10543         * process.c (Fset_process_filter):
10544         * process.c (Fprocess_filter):
10545         * process.c (Fprocess_send_region):
10546         * process.c (Fprocess_send_string):
10547         * process.c (exec_sentinel):
10548         * process.c (Fset_process_sentinel):
10549         * process.c (Fprocess_sentinel):
10550         * process.c (status_notify):
10551         * process.c (Fprocess_status):
10552         * process.c (Fprocess_exit_status):
10553         * process.c (process_send_signal):
10554         * process.c (Fprocess_send_eof):
10555         * process.c (deactivate_process):
10556         * process.c (remove_process):
10557         * process.c (Fdelete_process):
10558         * process.c (kill_buffer_processes):
10559         * process.c (Fprocess_kill_without_query):
10560         * process.c (Fprocess_kill_without_query_p):
10561         * rangetab.c:
10562         * rangetab.c (Fget_range_table):
10563         * rangetab.c (Fput_range_table):
10564         * rangetab.c (Fremove_range_table):
10565         * rangetab.c (Fclear_range_table):
10566         * search.c:
10567         * search.c (Fskip_chars_forward):
10568         * search.c (Fskip_chars_backward):
10569         * search.c (Fskip_syntax_forward):
10570         * search.c (Fskip_syntax_backward):
10571         * search.c (search_command):
10572         * search.c (Freplace_match):
10573         * search.c (Fregexp_quote):
10574         * select.c (Fown_selection_internal):
10575         * select.c (Fselection_owner_p):
10576         * select.c (Fselection_exists_p):
10577         * select.c (Fget_selection_internal):
10578         * specifier.c:
10579         * symbols.c:
10580         * symbols.c (Fintern):
10581         * symbols.c (Fintern_soft):
10582         * symbols.c (Funintern):
10583         * symbols.c (Fapropos_internal):
10584         * symbols.c (Fset_default):
10585         * syntax.c:
10586         * syntax.c (Fsyntax_table_p):
10587         * syntax.c (Fcopy_syntax_table):
10588         * syntax.c (Fset_syntax_table):
10589         * syntax.c (Fchar_syntax):
10590         * syntax.c (syntax_match):
10591         * syntax.c (Fmatching_paren):
10592         * syntax.c (Fforward_word):
10593         * syntax.c (scan_lists):
10594         * syntax.c (Fscan_lists):
10595         * syntax.c (Fscan_sexps):
10596         * syntax.c (Fparse_partial_sexp):
10597         * toolbar.c (Fcheck_toolbar_button_syntax):
10598         * tooltalk.doc:
10599         * window.c:
10600         * window.c (Fwindowp):
10601         * window.c (Fwindow_live_p):
10602         * window.c (Fwindow_point):
10603         * window.c (Fdelete_window):
10604         * window.c (Fnext_window):
10605         * window.c (Fprevious_window):
10606         * window.c (Fother_window):
10607         * window.c (window_loop):
10608         * window.c (Fget_lru_window):
10609         * window.c (Fsplit_window):
10610         * window.c (Fenlarge_window):
10611         * window.c (Fenlarge_window_pixels):
10612         * window.c (Fshrink_window):
10613         * window.c (Fshrink_window_pixels):
10614         * window.c (change_window_height):
10615         * window.c (Fwindow_configuration_p):
10616         * window.c (Fcurrent_window_configuration):
10617         * window.h:
10618         * casefiddle.c (casify_object):
10619         * casefiddle.c (Fupcase):
10620         * casefiddle.c (Fdowncase):
10621         * casefiddle.c (Fcapitalize):
10622         * casefiddle.c (Fupcase_initials):
10623         * casefiddle.c (casify_region_internal):
10624         * casefiddle.c (casify_region):
10625         * casefiddle.c (Fupcase_region):
10626         * casefiddle.c (Fdowncase_region):
10627         * casefiddle.c (Fcapitalize_region):
10628         * casefiddle.c (Fupcase_initials_region):
10629         * casefiddle.c (Fupcase_word):
10630         * casefiddle.c (Fdowncase_word):
10631         * casefiddle.c (Fcapitalize_word):
10632         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10633         Replace 0 with '\0' when working with bytes.
10634         Replace initial "(" with "\(" in docstrings.
10635
10636 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10637
10638         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10639
10640         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10641
10642 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10643
10644         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10645
10646 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10647
10648         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10649         correctly.
10650
10651 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10652
10653         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10654         (inhibit_auto_save_session): New variable.
10655         (vars_of_fileio): Declare and initialize them.
10656         * fileio.c (Fdo_auto_save): Don't create session file if
10657         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10658
10659 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10660
10661         * sgiplay.c (play_internal): C++ compilability.
10662         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10663         * callproc.c (Fold_call_process_internal):
10664         Remove unused vars `env', `first'.
10665         * scrollbar.c (update_scrollbar_instance):
10666         #### unused var `current_window'.
10667         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10668         etc. within #ifdef NOT_YET.
10669         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10670         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10671         * specifier.c (specifier_instance):
10672         #### unused var `tag'.
10673         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10674
10675 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10676
10677         * fns.c (Fbutlast):
10678         * fns.c (list_sort):
10679         * fns.c (Ffillarray):
10680         * fns.c (bytecode_nconc2):
10681         * fns.c (Fnconc):
10682         * fns.c (mapcar1):
10683         * fns.c (Fmapconcat):
10684         Be pedantically 64-bit correct.  For the time when someone will
10685         want to have a list with length > 2**32.
10686
10687         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10688         Work around MIPSpro compiler bug.
10689
10690         * process-unix.c (unix_kill_child_process): Add snarky comment.
10691         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10692
10693         * config.h.in: Oops, _getpt ==> _getpty
10694
10695 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10696
10697         * config.h.in:
10698         * regex.c:
10699         Use void*, not char*, as return type of alloca().
10700
10701         * alloc.c (free_marker): Side effect inside assert expression!
10702
10703 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10704
10705         * mule-charset.c (Fset_charset_ccl_program): To check
10706         if the given ccl program is valid, use setup_ccl_program()
10707         instead of CHECK_VECTOR().
10708         (Fmake_charset): Likewise.
10709
10710 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10711
10712         * faces.c (get_extent_fragment_face_cache_index):
10713         Fix cachel.merged_faces memory leak.
10714
10715 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10716
10717         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10718         Reset MSB of octets obtained by DECODE_SJIS
10719         because of the incompatibility with Emacs.
10720         (ccl_driver)<CCL_ENCODE_SJIS>:
10721         Set MSB of octets before passing them to
10722         ENCODE_SJIS because of the incompatibility
10723         with Emacs.
10724
10725 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10726
10727         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10728         (DECLARE_LRECORD): Undo the last change.
10729         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10730
10731 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10732
10733         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10734         the implementation to lrecord_implementations_table.
10735
10736 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10737
10738         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10739         initial value of `lrecord_type_##c_name' and
10740         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10741         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10742         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10743         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10744         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10745
10746 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10747
10748         * miscplay.c (sndcnv8S_2mono):
10749         (sndcnv2monounsigned):
10750         (sndcnvULaw_2linear):
10751         (sndcnv16swap):
10752         Remove implementation-defined behavior.
10753
10754 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10755
10756         * input-method-xlib.c: Warning suppression.
10757
10758 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10759
10760         * mule-ccl.c: Sync up with Emacs 21.0.90.
10761         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10762         Do nothing.
10763         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10764         Likewise.
10765         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10766         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10767         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10768         leading char belongs to official 2-dimensional charset.
10769         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10770         write the given character as is.  Otherwise,
10771         if it is a multibyte char, convert it by
10772         non_ascii_set_charptr_emchar, then write it.
10773         (CCL_WRITE_STRING): Likewise.
10774         (ccl_get_compiled_code): New function.
10775         (setup_ccl_program): When ccl_prog is invalid,
10776         return -1.
10777         (Fregister_code_conversion_map): New function.
10778         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10779
10780         * mule-ccl.h: Sync up with Emacs 21.0.90.
10781         (Fregister_ccl_program): export it.
10782
10783         * redisplay-msw.c (separate_textual_runs):
10784         If ccl program is not valid, don't do ccl conversion.
10785
10786         * redisplay-x.c (separate_textual_runs): Ditto.
10787
10788         * file-coding.c (Fmake_coding_system):
10789         When type is ccl and value is vector, register it
10790         with a proper symbol.  And checks whether the
10791         given ccl program is valid.
10792         (mule_decode): When calling ccl_driver, if src indicates
10793         NULL pointer, set an empty string instead.
10794         (mule_encode): Likewise.
10795
10796 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10797
10798         The following large batch of changes gets us back to a state of
10799         C++ compilability.  Extbyte is now a char, which means that
10800         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10801
10802         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10803
10804         * sound.c (Fplay_sound): Type correctness.
10805
10806         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10807         (x_get_window_property): Type correctness.
10808         (receive_incremental_selection): unsigned char ==> Extbyte
10809         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10810         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10811         (Fx_store_cutbuffer_internal): Type correctness.
10812
10813         * process-unix.c (try_to_initialize_subtty): Type correctness.
10814
10815         * objects-x.c (x_print_color_instance): Type correctness.
10816         (x_print_font_instance): Type correctness.
10817         (x_list_fonts): SExtbyte ==> Extbyte.
10818         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10819         (x_find_charset_font): SExtbyte ==> Extbyte.
10820         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10821         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10822         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10823         Use bufbyte_strcmp.
10824
10825         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10826         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10827         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10828         (BYTE_C0_P): Use bit ops for char-signedness safety.
10829         (BYTE_C1_P): Use bit ops for char-signedness safety.
10830         (CHARSET_BY_LEADING_BYTE):
10831         (CHARSET_BY_ATTRIBUTES):
10832         Always use inline function.
10833         Use type_checking_assert.
10834         Hide chlook.
10835
10836         * mule-charset.c (non_ascii_charptr_copy_char):
10837         Modify to work with both ASCII and non-ASCII characters.
10838         Improve docs and variable names.
10839         Replace over-clever fall-through switch with a simple loop.
10840         (Lstream_get_emchar_1):
10841         Replace over-clever fall-through switch with a simple loop.
10842
10843         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10844         Warning suppression.
10845
10846         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10847         the return value of Lstream_getc, which could be EOF as well.
10848
10849         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10850
10851         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10852         APIs can be used on Extbytes without casts.  Risky!
10853         (SExtbyte): Remove.
10854         (UExtbyte): Remove.
10855
10856         * input-method-xlib.c (XIM_init_device):
10857         Use Xlib.h instead of IntrinsicP.h.
10858         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10859         which will break in X11R7.
10860         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10861         to call XRegisterIMInstantiateCallback with correct types.
10862
10863         * gui-x.c (button_item_to_widget_value): Type correctness.
10864
10865         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10866
10867         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10868         (xbm_instantiate_1): Type correctness.
10869         (BUILD_GLYPH_INST):  Type correctness.
10870
10871         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10872
10873         * file-coding.c:
10874         (decode_coding_sjis):
10875         (decode_coding_big5):
10876         (decode_coding_ucs4):
10877         (decode_coding_utf8):
10878         (decode_coding_iso2022):
10879         (decode_coding_no_conversion):
10880         Make all decoding functions take an Extbyte * arg.
10881         (encode_coding_sjis):
10882         (encode_coding_big5):
10883         (encode_coding_ucs4):
10884         (encode_coding_utf8):
10885         (encode_coding_iso2022):
10886         (encode_coding_no_conversion):
10887         Make all encoding functions take a Bufbyte * arg.
10888         Use size_t instead of unsigned int for memory sizes.
10889         Only cast to unsigned char whenever dereferencing Extbyte *.
10890
10891         * doc.c (unparesseuxify_doc_string): Type correctness.
10892
10893         * console-x.c (split_up_display_spec):
10894         Rewrite without using details of internal string representation.
10895         (x_semi_canonicalize_device_connection): Type correctness.
10896
10897         * config.h.in:
10898         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10899         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10900         (HAVE_XFREE386): Removed.
10901
10902         * buffer.h (DEC_CHARPTR): `const' correctness.
10903         (bufbyte_strcmp): New.
10904         (bufbyte_memcmp): New.
10905
10906         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10907
10908         * buffer.h (XCHAR_OR_CHAR_INT):
10909         Always use inline function.
10910         Remove redundant type checking assert() - XINT will abort quite nicely.
10911
10912 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10913
10914         * search.c (Freplace_match): Set newtext to an empty string.
10915
10916 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10917
10918         * s/decosf1-3.h: Remove #include of stropts.h
10919         * s/ptx.h: Remove #include of stropts.h
10920         * s/usg5-4.h: Remove #include of stropts.h
10921         * sysproc.h:
10922         * config.h.in:
10923         Use stropts.h, not sys/stropts.h.
10924         Use strtio.h, not sys/strtio.h.
10925
10926 2000-10-04  Martin Buchholz <martin@xemacs.org>
10927
10928         * XEmacs 21.2.36 is released.
10929
10930 2000-09-21  Andy Piper  <andy@xemacs.org>
10931
10932         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10933         changes still involve copying the widget tree.
10934         (update_widget_face): make sure a change is register in the widget
10935         tree. Call update_tab_widget_face appropriately.
10936         (update_tab_widget_face): ditto.
10937         (x_tab_control_redisplay): make sure non-structural changes still
10938         involve copying the widget tree.
10939
10940 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10941
10942         * lread.c (locate_file): Check the path element is non-nil.
10943
10944 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10945
10946         * lisp.h: Warning suppression for SCO compilers.
10947
10948         * redisplay-tty.c (reset_tty_modes): Fix crash.
10949         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10950
10951 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10952
10953         Big signal/process handling overhaul.  Bugs fixed:
10954         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10955         M-x comint-kill-subjob should work for both values nil and t of
10956         process-connection-type. It was broken on most platforms.
10957         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10958         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10959         * process-unix.c: Signal/Process handling overhaul.
10960         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10961         (allocate_pty): Use all available modern methods of allocating
10962         ptys, falling back to old style BSD allocation as a last resort.
10963         Use allegedly more secure Unix98 pty allocation by default.
10964         (allocate_pty_the_old_fashioned_way): New. the last resort.
10965         (unix_create_process): Push ptem, ldterm, ttcompat where
10966         available.  Autoconfiscate.
10967         (try_to_initialize_subtty): New.
10968         (unix_kill_child_process): Proper signal handling for ptys on most
10969         platforms, using special knowledge of AIX, BSD, etc...
10970         (unix_create_process): Always disconnect_controlling_terminal() for
10971         subprocesses, whether using ptys or not.
10972         * process.h: Remove old getpt-dependent PTY code.
10973         * process.c (Fprocess_send_signal): New, obvious generic function.
10974         (decode_signal): New.
10975         (Finterrupt_process):
10976         (Fkill_process):
10977         (Fquit_process):
10978         (Fstop_process):
10979         (Fcontinue_process):
10980         (Fsignal_process): Use decode_signal.
10981         (process_send_signal):
10982         Many docstring corrections.
10983         Allow any signal to be sent to a process object.
10984         * config.h.in: Add symbols for big signal/process overhaul.
10985         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
10986         * sysproc.h: Include process-related headers, where available:
10987         sys/stropts.h sys/strtio.h pty.h libutil.h
10988         * s/irix4-0.h:
10989         * s/irix5-0.h:
10990         * s/cygwin32.h:
10991         * s/gnu.h:
10992         * s/linux.h:
10993         * s/hpux.h:
10994         * s/aix3-1.h:
10995         Remove old S&M pty stuff.
10996         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
10997         * systty.h: Simplify cpp hackery, improve comments.
10998         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
10999
11000         * editfns.c (Fformat_time_string):
11001         Be a little more paranoid with the return value of ctime.
11002
11003         * fileio.c (check_executable):
11004         (check_writable):
11005         Use symbolic constants X_OK, W_OK.
11006
11007         * console-x.c (split_up_display_spec): Fix a warning.
11008
11009 2000-10-02  Martin Buchholz  <martin@xemacs.org>
11010
11011         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
11012         * ntproc.c (sys_spawnve): make_string ==> build_string
11013         Small clarity improvements.
11014
11015 2000-09-30  Martin Buchholz  <martin@xemacs.org>
11016
11017         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
11018
11019         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
11020
11021         * config.h.in (HAVE_STRCASECMP): Remove.
11022
11023 2000-09-29  Martin Buchholz  <martin@xemacs.org>
11024
11025         * redisplay-output.c (redisplay_output_pixmap):
11026         Cleaner and possibly more 64-bit correct code.
11027
11028 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
11029
11030         * dumper.c (pdump_load_finish): move restoration of
11031         `noninteractive1' to emacs.c (main_1).
11032         * emacs.c (main_1): protect LISP-visible command-line flags
11033         from pdump_load().
11034
11035 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
11036
11037         * Makefile.in.in (versionclean):  Use EXE_TARGET and
11038         DUMP_TARGET instead of literal program names.
11039
11040 2000-09-20  Martin Buchholz  <martin@xemacs.org>
11041
11042         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
11043
11044 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11045
11046         * *: Spelling mega-patch
11047
11048 2000-09-19  Martin Buchholz  <martin@xemacs.org>
11049
11050         * fns.c (bad_bad_turtle):
11051         Delete "Eek!" comment, since we fixed the bug to which it refers.
11052
11053 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11054
11055         * alloca.c: Replace REGISTER with register.
11056
11057 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
11058
11059         * file-coding.c (ucs_to_char): Use countof.
11060
11061 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11062
11063         * file-coding.c: (ucs_to_char):
11064         (complex_vars_of_file_coding):
11065         Use countof instead of sizeof.
11066         Use CHECK_NATNUM instead of CHECK_INT.
11067
11068         * sysdep.c (strcasecmp): Remove.
11069         * device-x.c (ascii_strcasecmp): New.
11070         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
11071         Avoid using non-standard non-portable strcasecmp.
11072
11073 2000-09-16  Martin Buchholz  <martin@xemacs.org>
11074
11075         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
11076         * font-lock.c: remove reference to emacsfns.h.
11077         * search.c: small doc improvement.
11078         * event-Xt.c: correct file names in comments.
11079         * console-x.h Correct file names in comments.
11080         * frame.c: Correct file names in comments.
11081         * event-stream.c: remove Energize from comments.
11082
11083 2000-09-15  Martin Buchholz  <martin@xemacs.org>
11084
11085         * symeval.h (DEFERROR_STANDARD):
11086         (DEFERROR):
11087         (DEFSYMBOL):
11088         (DEFSYMBOL_NO_DUMP):
11089         (DEFSYMBOL_MULTIWORD_PREDICATE):
11090         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
11091         (DEFKEYWORD):
11092         The construct &##name is not sensible C.
11093         Fixes compilation errors with Unixware native compiler.
11094
11095 2000-09-14  Martin Buchholz  <martin@xemacs.org>
11096
11097         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
11098         (next_frame_internal): Removed.  We now just have next_frame.
11099         (next_frame):
11100         Write a simpler and cleaner one-pass algorithm.
11101         Remove called_from_delete_device arg and #ifdefed-out code.
11102         (previous_frame):
11103         Renamed from prev_frame.  Update callers.
11104         Cleaned up to have an analogous implementation to next_frame.
11105         (other_visible_frames_internal): Remove the
11106         called_from_delete_device bogus arg, and hence, remove this
11107         function.  Just use other_visible_frames().
11108
11109         * window.c (Fnext_window):
11110         Prettify docstring.
11111         Since next_frame() is guaranteed to return a frame, remove check
11112         for nil inserted in previous patch.
11113         (Fprevious_window):
11114         Prettify docstring.
11115         Make code look more like Fnext_window.
11116         (window_loop):
11117         Respect the `console' arg when iterating through windows.
11118         Fixes bug: (get-buffer-window buffer t device) not respecting
11119         the `device' arg.
11120         This function needs more work, as others have pointed out.
11121
11122         * frame.h: Rename prev_frame to previous_frame.
11123         device_matches_console_spec no longer takes a `frame' arg.
11124
11125         * s/gnu.h:
11126         * s/linux.h:
11127         * s/hpux.h:
11128         Use EMACS_BLOCK_SIGNAL instead of sigblock.
11129         From "Golubev I. N." <gin@mo.msk.ru>.
11130
11131         * make-src-depend: Fix typo.
11132
11133 2000-09-13  Martin Buchholz  <martin@xemacs.org>
11134
11135         * window.c (Fnext_window):
11136         next_frame() might return nil, not a frame.
11137         Fixes this crash:
11138         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11139
11140         * frame.c (next_frame_internal):
11141         We've passed a frame if we've passed its device.
11142         Fixes this crash:
11143         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11144 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
11145
11146 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11147
11148         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11149         Allow option to suppress accelerators in menu/dialog items.
11150         (populate_or_checksum_helper): Pass dialog title through above.
11151
11152 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11153
11154         * event-msw.c (mswindows_key_to_emacs_keysym):
11155         Add "pause" key, fix "menu" key.
11156
11157 2000-09-09  Martin Buchholz  <martin@xemacs.org>
11158
11159         * eval.c (reinit_vars_of_eval):
11160         Increase max_lisp_eval_depth to 1000,
11161         required for thai-xtis.el to byte-compile under some circumstances.
11162
11163 2000-09-04  Martin Buchholz  <martin@xemacs.org>
11164
11165         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
11166         From Kenichi Handa.
11167
11168 2000-09-01  Martin Buchholz  <martin@xemacs.org>
11169
11170         * make-src-depend: Make the generated Makefiles smaller.
11171
11172         * s/hpux.h (SETUP_SLAVE_PTY):
11173         Provide a %d in the format string for the errno argument.
11174
11175         * editfns.c (Ftemp_directory):
11176         Warning fix.
11177         Avoid buffer overrun on very long file name.
11178
11179         * input-method-xlib.c (XIM_init_device):
11180         6th parameter of XRegisterIMInstantiateCallback has different
11181         pointer types on different OSes, so simply cast to (void *).
11182
11183         * unexhp9k800.c: Warning fixes.  Fiddly changes.
11184
11185         * sysdll.c (dll_open):
11186         shl_load will hang hard if passed a NULL filename.
11187         Simply return NULL for compatibility with dlopen.
11188         * sysdll.c: Conform to XEmacs coding standards.
11189
11190         * sysdep.c (get_pty_max_bytes):
11191         Support pty input lines longer than 512 bytes on HP-UX 10.20.
11192
11193 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11194
11195         * tooltalk.c: Add #include <syssignal.h>
11196
11197 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
11198
11199         * s/hpux.h: Don't use undefined function sigunblock().
11200
11201 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11202
11203         * config.h.in: Add HAVE_BALLOON_HELP.
11204         * emacs.c: Use HAVE_BALLOON_HELP.
11205         * Makefile.in.in (x_objs):
11206         Make Balloon Help conditional on finding shape.h.
11207
11208 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
11209
11210         * syntax.c (regex_emacs_buffer_p): New variable.
11211         * syntax.h (regex_emacs_buffer_p): extern.
11212         * search.c (looking_at_1):
11213         (string_match_1):
11214         (fast_string_match):
11215         (search_buffer): Set regex_emacs_buffer_p.
11216         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11217         when before_dot, at_dot, after_dot.
11218
11219 2000-08-23  Andy Piper  <andy@xemacs.org>
11220
11221         * gui-x.c (popup_selection_callback): Only set action_occurred
11222         when we really have an image instance.
11223         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11224
11225 2000-08-23  Andy Piper  <andy@xemacs.org>
11226
11227         * gui-msw.c (mswindows_handle_gui_wm_command): set
11228         action_occurred.
11229         * gui-x.c (popup_selection_callback): ditto.
11230
11231         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11232         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11233         (struct Lisp_Image_Instance): add action_occurred flag.
11234
11235         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11236         (image_instance_changed): ditto.
11237         (reset_frame_subwindow_instance_cache): only unmap windows - do
11238         not remove them from the cache also.
11239
11240         * glyphs-widget.c (tab_control_update): better debug.
11241         (progress_gauge_update): ditto.
11242         (layout_update): ditto.
11243         (layout_instantiate): ditto.
11244         (tab_control_order_only_changed): cope with null pending items.
11245
11246         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11247         debug. Force selection of an item when an action occurred. Cope
11248         with null pending_items.
11249         (mswindows_progress_gauge_redisplay): better debug.
11250         * glyphs-x.c (x_tab_control_redisplay): ditto.
11251
11252         * redisplay.c (redisplay_frame): reset the frame cache if the
11253         frame is garbaged.
11254
11255         * window.c (Fset_window_configuration): potentially re-enable
11256         frame cache reset.
11257         (window_unmap_subwindows): need to finalize instances here since
11258         it is only used in mark_window_as_deleted.
11259
11260 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11261
11262         * nas.c (SndOpenDataForReading):
11263         nas.c (WaveOpenDataForReading):
11264         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11265         Somehow escaped from the 2000-08-14 patch.
11266
11267 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11268
11269         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11270         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11271
11272 2000-08-21  Andy Piper  <andy@xemacs.org>
11273
11274         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11275         window if it is not already displayed.
11276
11277         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11278         it is not already displayed.
11279
11280         * window.c (Fset_window_configuration): don't reset the frame
11281         cache.
11282
11283         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11284         instances from the frame cache if we are actually finalizing them.
11285         (reset_frame_subwindow_instance_cache): reset frame cache only
11286         after unmapping everything.
11287         (map_subwindow): set displayed flag after mapping.
11288
11289 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11290
11291         * data.c (indirect_function):
11292         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11293
11294         * eval.c (function_argcount):
11295         Use original function when signaling errors.
11296
11297 2000-08-18  Andy Piper  <andy@xemacs.org>
11298
11299         * frame.c (delete_frame_internal): use new
11300         free_frame_subwindow_instances name.
11301
11302         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11303         (add_tab_item): make return type correct.
11304         (mswindows_tab_control_instantiate): assert index of tab.
11305         (mswindows_tab_control_redisplay): Re-code to use
11306         gui_item_equal_sans_selected and gui_item_list_find_selected.
11307
11308         * glyphs-widget.c (tab_control_update): Correct comment.
11309
11310         * window.c (window_unmap_subwindows): use new
11311         unmap_subwindow_instance_cache_mapper.
11312         (window_unmap_subwindows_cache_mapper): deleted.
11313         (Fset_window_configuration): comparisons should now be with
11314         EQ. Preserve the subwindow instance cache across configuration
11315         changes.
11316         (allocate_window): ditto.
11317         (make_dummy_parent): ditto.
11318
11319         * glyphs.c (free_frame_subwindow_instances): rename from
11320         free_frame_subwindow_instance_cache. finalize all instances rather
11321         than just those in the display cache.
11322         (finalize_all_subwindow_instances): walk windows unmapping and
11323         finalizing subwindows.
11324         (unmap_subwindow_instance_cache_mapper): moved from
11325         window.c. Allow finalization as well as unmapping.
11326
11327         * gui.c (gui_item_list_find_selected): new function.
11328
11329         * gui.h (gui_item_list_find_selected): declare.
11330
11331         * glyphs-x.c (x_tab_control_redisplay): pick tab
11332         explicitly. Re-code to use gui_item_equal_sans_selected and
11333         gui_item_list_find_selected.
11334
11335         * glyphs-x.h: add lwlib-utils.h
11336
11337         * buffer.c (Frecord_buffer): undo previous change.
11338
11339 2000-08-09  Vin Shelton  <acs@xemacs.org>
11340
11341         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11342         possible.  Create temporary files more securely.  The patch was
11343         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11344         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11345         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11346         for details.
11347
11348 2000-08-07  Ben Wing  <ben@xemacs.org>
11349
11350         * getloadavg.c: remove duplicate (and windows-breaking)
11351         includes of fcntl.h and sys/file.h.
11352
11353         * nt.c: remove duplicate getloadavg() definition.
11354
11355         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11356         encodings.
11357
11358 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11359
11360         * eval.c (function_argcount): If function needs to be autoloaded
11361         actually use the loaded definition.
11362         GCPRO function.
11363
11364 2000-08-05  Ben Wing  <ben@xemacs.org>
11365
11366         * getloadavg.c: add prototype for getloadavg().  remove
11367         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11368         of the code).  remove duplicate header includes.
11369
11370         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11371
11372         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11373         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11374         useful load average.
11375
11376         * alloc.c (reinit_alloc_once_early): removed references to
11377         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11378         the lisp vars are the only things referencing the malloc_sbrk_*
11379         vars, and they were already if 0'd out.  these vars only exist
11380         in the older malloc.c, which is basically unused, and they're
11381         only for informational purposes.
11382
11383         * m\*.h: removed useless VIRT_ADDR_VARIES.
11384
11385         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11386
11387 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11388
11389         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11390         color if the image is a mono pixmap.
11391
11392 2000-07-30  Ben Wing  <ben@xemacs.org>
11393
11394         * Makefile.in.in (release):
11395         Remove stray @.
11396
11397         * buffer.c (directory_is_current_directory):
11398         * dired-msw.c (mswindows_get_files):
11399         * dired.c:
11400         * dired.c (Fdirectory_files):
11401         * dired.c (file_name_completion_stat):
11402         * dired.c (Ffile_attributes):
11403         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11404         preprocessor tricks, to avoid problems on some machines
11405         (e.g. SCO).
11406
11407         * callproc.c (egetenv): GC docs.
11408
11409         * console-msw.h:
11410         * console-msw.h (struct mswindows_dialog_id):
11411         * lrecord.h (lrecord_type):
11412         New object for use with MSW dialogs.
11413
11414         * console.h (struct console_methods):
11415         New enable/disable frame methods, for proper modal dialogs.
11416
11417         * device-msw.c (msprinter_default_printer): Fix to follow
11418         proper Mule conventions.
11419
11420         * device-msw.c:
11421         * device-msw.c (signal_open_printer_error):
11422         * device-msw.c (msprinter_init_device):
11423         * device-msw.c (ensure_not_printing):
11424         * device-msw.c (plist_get_margin):
11425         * device-msw.c (Fmsprinter_select_settings):
11426         * device-msw.c (finalize_devmode):
11427         * device-msw.c (Fmsprinter_settings_despecialize):
11428         * device-msw.c (signal_enum_priner_error):
11429         * extents.c (decode_extent):
11430         * extents.c (decode_map_extents_flags):
11431         * extents.c (decode_extent_at_flag):
11432         * extents.c (Fextent_at):
11433         * extents.c (Fextents_at):
11434         * extents.c (symbol_to_glyph_layout):
11435         [[[[2]]]] Use structured errors.
11436
11437         * dialog-msw.c:
11438         * dialog-msw.c (mswindows_is_dialog_msg):
11439         * dialog-msw.c (mark_mswindows_dialog_id):
11440         * dialog-msw.c (dialog_proc):
11441         * dialog-msw.c (handle_question_dialog_box):
11442         * dialog-msw.c (syms_of_dialog_mswindows):
11443         Define new object to clean up marking; use it as a dialog identifier.
11444         Call new delete-dialog-box-hook.
11445
11446         * dialog-x.c (dbox_selection_callback):
11447         * dialog-x.c (dbox_descriptor_to_widget_value):
11448         * dialog-x.c (x_make_dialog_box_internal):
11449         Call new delete-dialog-box-hook.
11450         Return an id.
11451
11452         * dialog.c:
11453         * dialog.c (syms_of_dialog):
11454         * dialog.c (vars_of_dialog):
11455         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11456
11457         * eval.c:
11458         * eval.c (signal_call_debugger):
11459         when noninteractive, output stack traces on the console instead
11460         of in a (never-seen) buffer.
11461
11462         * eval.c (signal_type_error):
11463         * eval.c (invalid_argument_2):
11464         * lisp.h:
11465         new funs for use w/structured errors.
11466
11467         * event-Xt.c:
11468         * event-Xt.c (x_to_emacs_keysym):
11469         * event-Xt.c (describe_event):
11470         * event-Xt.c (emacs_Xt_event_handler):
11471         * event-Xt.c (vars_of_event_Xt):
11472         * event-msw.c:
11473         * event-msw.c (mswindows_wnd_proc):
11474         * event-msw.c (vars_of_event_mswindows):
11475         rename {x,mswindows}-debug-events to debug-{}-events for
11476         consistency with other debug-foo variables.
11477
11478         * event-stream.c:
11479         document next-event more clearly.
11480
11481         * fileio.c (Ffile_name_directory):
11482         * fileio.c (Ffile_name_nondirectory):
11483         * fileio.c (Funhandled_file_name_directory):
11484         * fileio.c (file_name_as_directory):
11485         * fileio.c (Ffile_name_as_directory):
11486         * fileio.c (directory_file_name):
11487         * fileio.c (Fdirectory_file_name):
11488         * fileio.c (Fmake_temp_name):
11489         * fileio.c (Ffile_truename):
11490         * fileio.c (Fsubstitute_in_file_name):
11491         * fileio.c (expand_and_dir_to_file):
11492         * fileio.c (barf_or_query_if_file_exists):
11493         * fileio.c (check_executable):
11494         * fileio.c (Ffile_exists_p):
11495         * fileio.c (Ffile_writable_p):
11496         * fileio.c (Ffile_directory_p):
11497         * fileio.c (Ffile_regular_p):
11498         * fileio.c (Ffile_modes):
11499         * fileio.c (Ffile_newer_than_file_p):
11500         * fileio.c (Fverify_visited_file_modtime):
11501         * fileio.c (Fset_visited_file_modtime):
11502         * fileio.c (auto_save_1):
11503         (1). (2).
11504         fix up gcpro's.
11505
11506         * frame-msw.c:
11507         * frame-msw.c (mswindows_init_frame_1):
11508         * frame-msw.c (mswindows_enable_frame):
11509         * frame-msw.c (error_frame_unsizable):
11510         * frame-msw.c (msprinter_init_frame_1):
11511         * frame-msw.c (msprinter_init_frame_3):
11512         * frame-msw.c (console_type_create_frame_mswindows):
11513         (2).
11514         implement new enable/disable frame methods.
11515
11516         * frame-x.c:
11517         * frame-x.c (x_enable_frame):
11518         * frame-x.c (console_type_create_frame_x):
11519         implement new enable/disable frame methods.
11520
11521         * frame.c:
11522         * frame.c (Fdisable_frame):
11523         * frame.c (syms_of_frame):
11524         * frame.h (struct frame):
11525         implement new enable/disable frame methods/functions.
11526
11527         * general-slots.h:
11528         add initial-focus.
11529
11530         * glyphs-msw.c (mswindows_widget_instantiate):
11531         comment that initial-focus should be implemented.
11532
11533         * glyphs-widget.c:
11534         * glyphs-widget.c (check_valid_instantiator):
11535         * glyphs-widget.c (check_valid_orientation):
11536         * glyphs-widget.c (check_valid_tab_orientation):
11537         * glyphs-widget.c (check_valid_justification):
11538         * glyphs-widget.c (check_valid_border):
11539         * glyphs-widget.c (check_valid_callback):
11540         * glyphs-widget.c (check_valid_int_or_function):
11541         * glyphs-widget.c (check_valid_string_or_vector):
11542         * glyphs-widget.c (check_valid_item_list_1):
11543         * glyphs-widget.c (widget_validate):
11544         * glyphs-widget.c (combo_box_validate):
11545         * glyphs-widget.c (widget_instantiate):
11546         * glyphs-widget.c (syms_of_glyphs_widget):
11547         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11548         * glyphs-widget.c (image_instantiator_combo_box):
11549         * glyphs-widget.c (image_instantiator_scrollbar):
11550         * glyphs-widget.c (image_instantiator_tab_control):
11551         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11552         (2).
11553         support (unimplemented) keyword initial-focus.
11554         reindent long macros.
11555
11556         * glyphs-x.c (x_redisplay_widget):
11557         * glyphs-x.c (x_button_instantiate):
11558         * glyphs-x.c (x_button_redisplay):
11559         * glyphs-x.c (x_progress_gauge_instantiate):
11560         * glyphs-x.c (x_edit_field_instantiate):
11561         * glyphs-x.c (x_combo_box_instantiate):
11562         * glyphs-x.c (x_tab_control_instantiate):
11563         * glyphs-x.c (x_label_instantiate):
11564         * gui-x.c:
11565         * gui-x.c (button_item_to_widget_value):
11566         * gui-x.c (gui_items_to_widget_values_1):
11567         * gui-x.c (gui_item_children_to_widget_values):
11568         * gui-x.c (gui_items_to_widget_values):
11569         * gui-x.h:
11570         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11571         add new flag to gui-parsing routines to indicate whether
11572         accelerator specs should be supported.
11573
11574         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11575
11576         * glyphs.h (struct Lisp_Image_Instance):
11577         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11578         add initial-focus flag.
11579
11580         * gui.c:
11581         * gui.c (syms_of_gui):
11582         * gui.c (vars_of_gui):
11583         clean up menu-no-selection-hook.
11584
11585         * gui.h:
11586         support delete-dialog-box-hook.
11587
11588         * lread.c (Fload_internal):
11589         * lread.c (locate_file_in_directory_mapper):
11590         (1).
11591
11592         * lrecord.h:
11593         * lrecord.h (struct toolbar_button):
11594         * lrecord.h (syms_of_toolbar):
11595         document how to create a new object.
11596
11597         * menubar-msw.c (mswindows_char_is_accelerator):
11598         may be called on frames w/o menus.
11599
11600         * menubar.c (vars_of_menubar):
11601         clean up :filter docs.
11602
11603         * nt.c (readdir):
11604         * ntproc.c:
11605         (1).
11606
11607         * process-nt.c:
11608         * process-nt.c (validate_signal_number):
11609         * process-nt.c (signal_cannot_launch):
11610         * process-nt.c (nt_create_process):
11611         * process-nt.c (nt_send_process):
11612         * process-nt.c (nt_kill_child_process):
11613         * process-nt.c (nt_open_network_stream):
11614         * process-nt.c (syms_of_process_nt):
11615         (2).
11616         delete quote-handling.  call new lisp code that does it better.
11617
11618         * process-unix.c (connect_to_file_descriptor):
11619         * process-unix.c (allocate_pty):
11620         * process-unix.c (unix_send_process):
11621         * process-unix.c (unix_kill_child_process):
11622         * process-unix.c (unix_open_network_stream):
11623         * process-unix.c (unix_open_multicast_group):
11624         (1). (2).
11625
11626         * process.c:
11627         * process.c (Fstart_process_internal):
11628         (2).  need to canonicalize process path even if absolute.
11629
11630         * select-msw.c (symbol_to_ms_cf):
11631         * select-msw.c (ms_cf_to_symbol):
11632         * select-msw.c (cf_is_autofreed):
11633         * select-msw.c (mswindows_destroy_selection):
11634         * select.c:
11635         * select.c (syms_of_select):
11636         * select.h:
11637         support dibv5, fix bugs. (from Mike Alexander)
11638
11639         * select.c (Fget_selection_internal):
11640         * select.c (select_convert_out):
11641
11642         * sysdep.c:
11643         * sysdep.c (xemacs_stat):
11644         renamed.
11645
11646         * sysdep.c (mkdir):
11647         * sysdep.c (rmdir):
11648         but keep original stat() here because we provide encapsulation
11649         around these funs.
11650
11651         * sysfile.h:
11652         * sysfile.h (fstat):
11653         remove stat garbage.
11654
11655         * syswindows.h:
11656         fix X/MSW conflict.
11657         don't include tchar.h.  it's inappropriate because it makes
11658         compile-time distinctions when we want runtime distinctions.
11659         (we provide our own tchar replacements)
11660
11661         * toolbar.c:
11662         use default object printer for toolbar-button.
11663
11664         * unexcw.c:
11665         make sure we don't encapsulate.
11666
11667         * window.c (vars_of_window):
11668         emphasize that temp-buffer-show-hook is obsolete.
11669
11670 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11671
11672         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11673         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11674
11675         * events.c (Fevent_timestamp_lessp):
11676         Not 64-bit clean.  Use EMACS_INT, not int.
11677
11678 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11679
11680         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11681         unsigned int and changed the last enum to
11682         lrecord_type_last_built_in_type.
11683         (lrecord_implementations_table): changed prototype to know how
11684         long the array is supposed to be.
11685         (lrecord_type_count): new unsigned int to keep track of the
11686         current number of lisp lrecord types.
11687         (DEFINE_EXTERNAL_LRECORD):
11688         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11689         dynamic-modules to declare new lisp types. They are the same
11690         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11691         int for each new type, and increment lrecord_type_count by 1.
11692
11693         * alloc.c (lrecord_implementations_table): Changed to reference
11694         lrecord_type_last_built_in_type for the size of the array.
11695         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11696
11697 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11698
11699         * glyphs.h (check_valid_item_list): Renamed from
11700         check_valid_item_list_1.
11701
11702 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11703
11704         * select.c (Qselect_coerce): New.
11705         * select.c (Vselection_coercion_alist): New.
11706         * select.c (syms_of_select): Declare.
11707         * select.c (get-selection-internal): Use it.
11708         Use the new select-coerce functionality.
11709
11710         * select.c (select_coerce): New.
11711         * select.h (select_coerce): Declare.
11712         New function to coerce one type of data into another.
11713
11714 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11715
11716         * callproc.c (Fcall_process_internal):
11717         (Fcall_process_internal):
11718         * process-unix.c (unix_create_process):
11719         Save and restore the value of errno, so that error messages are accurate.
11720
11721 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11722
11723         * elhash.c (print_hash_table):
11724         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11725         Prettify docstrings and indentation.
11726
11727 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11728
11729         * window.c (Fwindow_pixel_edges): Subtract frame border and
11730         gutter size.
11731
11732 2000-07-31  Andy Piper  <andy@xemacs.org>
11733
11734         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11735         will acknowledge the change.
11736
11737         * glyphs.h: declare tab_control_order_only_changed.
11738
11739         * glyphs-x.c (x_tab_control_redisplay): use
11740         tab_control_order_only_changed.
11741
11742         * glyphs-widget.c (tab_control_order_only_changed): new function.
11743
11744         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11745         tab_control_order_only_changed.
11746
11747         * gui.c (gui_item_equal_sans_selected): new function.
11748         (gui_item_equal): use it.
11749
11750         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11751         :properties in favor of :items..
11752
11753         * glyphs-widget.c (check_valid_item_list): rename from
11754         check_valid_item_list_1.
11755         (check_valid_item_list_1): renamed.
11756         (combo_box_validate): deprecate :properties in favor of :items.
11757         (widget_instantiate): ditto.
11758         (tab_control_update): ditto.
11759         (image_instantiator_combo_box): ditto.
11760         (image_instantiator_tree_view): ditto.
11761         (image_instantiator_tab_control): ditto.
11762         (layout_post_instantiate): remove dead code.
11763
11764         * print.c (debug_print_no_newline): only write to debugger if in
11765         WIN32_NATIVE.
11766
11767         * elhash.c (Fmake_hash_table): update doc string.
11768
11769         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11770         messages whilst in GC. This at least stops XEmacs crashing but has
11771         the potential for wierd behaviour.
11772
11773 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11774
11775         * config.h.in:
11776         Make existence of s&m files optional.
11777
11778         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11779         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11780         * s/gnu.h: Remove HAVE_GETLOADAVG.
11781         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11782         * s/sol2.h: Remove HAVE_GETLOADAVG.
11783         * lisp.h: Remove getloadavg() declaration.
11784         * fns.c:
11785         Include <sys/loadavg.h> if available.
11786         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11787         * config.h.in:  Group together getloadavg()-related macros.
11788         Use only configure-time tests to detect getloadavg().
11789
11790 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11791
11792         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11793
11794 2000-07-25  Andy Piper  <andy@xemacs.org>
11795
11796         * syswindows.h: add tchar.h for native builds.
11797
11798         * frame.c (syms_of_frame): remove set-glyph-image.
11799
11800         * general-slots.h: add Qset_glyph_image.
11801
11802         * glyphs-widget.c (layout_update): add domain arg to
11803         set-glyph-image.
11804         (syms_of_glyphs_widget): remove set-glyph-image.
11805
11806 2000-07-23  Ben Wing  <ben@xemacs.org>
11807
11808         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11809         Vpopup_frame_list.
11810
11811 2000-07-22  Andy Piper  <andy@xemacs.org>
11812
11813         * symsinit.h: add syms_of_win32().
11814
11815         * gui-msw.c (syms_of_gui_mswindows): remove
11816         Fmswindows_shell_execute.
11817         (Fmswindows_shell_execute): moved to win32.c.
11818
11819         * emacs.c (main_1): add syms_of_win32 ().
11820
11821         * win32.c (init_potentially_nonexistent_functions): rewrite in
11822         compiler-friendly terms.
11823         (Fmswindows_shell_execute): move here from gui-msw.c.
11824         (syms_of_win32): new.
11825
11826         * device-msw.c (Fmswindows_printer_list): clean up args to
11827         EnumPrinters.
11828         Don't include tchar under cygwin or mingw.
11829         (msprinter_default_printer): make cygwin-friendly.
11830
11831 2000-07-21  Andy Piper  <andy@xemacs.org>
11832
11833         * glyphs-widget.c (image_instantiator_tree_view): use tab
11834         control's update function.
11835         (layout_property): new function. Retrieve items.
11836
11837         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11838         function. Re-populate the tree view from the pending items.
11839
11840         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11841         is designated the parent if the domain is an image instance. This
11842         is needed so that dirtiness can be cascade up the hierarchy and
11843         thus for layout children to be redisplayed correctly.
11844         (allocate_image_instance): rename glyph -> parent.
11845
11846         * redisplay.h: change redisplay_output_layout signature.
11847
11848         * redisplay-msw.c (mswindows_output_display_block): use domain
11849         arg.
11850
11851         * redisplay-x.c (x_output_display_block): use domain arg.
11852
11853 2000-07-10  Andy Piper  <andy@xemacs.org>
11854
11855         * window.c (Fset_window_configuration): add comment.
11856
11857         * redisplay-output.c (compare_runes):
11858         (redisplay_output_subwindow): redisplay rather than update subwindow.
11859         (redisplay_output_layout): ditto.
11860
11861         * redisplay-msw.c (mswindows_frame_output_end):
11862         (mswindows_frame_output_end): make defer window pos optional.
11863
11864         * lisp.h: add Flast.
11865
11866         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11867         normalize method. Change update method to be for changed
11868         instantiators. Add redisplay method. Change signature of layout
11869         method.
11870         (struct Lisp_Image_Instance): add instantiator.
11871         (IMAGE_INSTANCE_INSTANTIATOR): new.
11872         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11873         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11874         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11875
11876         * glyphs.c:
11877         (find_instantiator_differences): new function.
11878         (Fset_instantiator_property): new convenience function.
11879         (check_image_instance_structure): strictly check for vector
11880         instantiators.
11881         (normalize_image_instantiator): make non-static.
11882         (instantiate_image_instantiator): pass on dest_mask and use new
11883         signatures for image_instance_layout and friends.
11884         (mark_image_instance): mark the instantiator. Mark the subwindow
11885         face not the widget face.
11886         (image_instance_equal): add instantiator.
11887         (image_instance_hash): ditto.
11888         (allocate_image_instance): ditto.
11889         (Fset_image_instance_property): removed.
11890         (Fimage_instance_file_name): ditto.
11891         (Fcolorize_image_instance): ditto.
11892         (image_instance_layout): add offsets to be set.
11893         (update_image_instance): new function. update an image instance
11894         from its changed instantiator.
11895         (inherit_normalize): add dest_mask.
11896         (xbm_normalize): ditto.
11897         (xface_normalize): ditto.
11898         (xpm_normalize): ditto.
11899         (text_update): set_property -> update.
11900         (image_instantiate): use the glyph identity as a hash key, not the
11901         instantiator.
11902         (glyph_width): use new image_instance_layout signature.
11903         (glyph_ascent): ditto.
11904         (glyph_descent): ditto.
11905         (glyph_height): ditto.
11906         (glyph_query_geometry): ressurrect.
11907         (glyph_layout): ditto.
11908         (redisplay_subwindow): update -> redisplay.
11909         (syms_of_glyphs): add Fset_instantiator_property.
11910         (image_instantiator_format_create): set_property -> update.
11911
11912         * glyphs-x.c:
11913         (autodetect_normalize): add dest_maks to signature.
11914         (x_redisplay_subwindow): update -> redisplay.
11915         (x_redisplay_widget): ditto.
11916         (x_button_redisplay): ditto.
11917         (x_progress_gauge_redisplay): ditto.
11918         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11919         stacking order.
11920         (console_type_create_glyphs_x): update -> redisplay.
11921         (image_instantiator_format_create_glyphs_x): ditto.
11922
11923         * glyphs-widget.c:
11924         (check_valid_instantiator): disallow glyphs in the instantiator,
11925         they must now be vectors.
11926         (check_valid_instantiator_list): ditto.
11927         (glyph_instantiator_to_glyph): use internal symbol rather than
11928         intern.
11929         (widget_update): renamed from widget_set_property. Call cascaded
11930         update methods.
11931         (redisplay_widget): renamed from update_widget.
11932         (widget_layout): image_instance_layout now takes position as well
11933         as size.
11934         (widget_normalize): ditto.
11935         (widget_instantiate): ditto.
11936         (tab_control_query_geometry) ditto.:
11937         (tab_control_update): renamed from tab_control_set_property.
11938         (progress_gauge_update): set_property -> update.
11939         (layout_normalize): rewrite so that child instantiators are
11940         normalized also.
11941         (layout_update): new function. Create glyphs from the normalized
11942         children and cope with any other layout keywords. We do not
11943         instantiate children here that will be take care of by
11944         redisplay_output_layout.
11945         (layout_instantiate): call layout_update and not much else.
11946         (layout_post_instantiate): not sure whether this is needed
11947         anymore.
11948         (layout_query_geometry): query glyph geometry rather than
11949         image_instance geometry.
11950         (layout_layout): set offsets from pass in parameters. Use glyph
11951         geometry and layout functions rather than image instance ones.
11952         (native_layout_layout): ditto.
11953         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11954         (image_instantiator_widget): set_property -> update.
11955         (image_instantiator_buttons): ditto.
11956         (image_instantiator_progress_guage): ditto.
11957         (image_instantiator_tab_control): ditto.
11958         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11959         (image_instantiator_layout): add update method.
11960
11961         * glyphs-msw.c (bmp_normalize):
11962         (mswindows_resource_normalize): add dest_mask so that it can be
11963         proprogated by layout_normalize.
11964         (begin_defer_window_pos): make optional because it may not be the
11965         right thing to do and it introduces differences with X.
11966         (mswindows_unmap_subwindow): ditto.
11967         (mswindows_map_subwindow): ditto.
11968         (mswindows_redisplay_subwindow): renamed from
11969         mswindows_update_subwindow.
11970         (mswindows_redisplay_widget): ditto.
11971         (mswindows_button_redisplay): renamed from
11972         mswindows_button_update. Update is now what the instantiation
11973         function does for a changed instantiator.
11974         (mswindows_progress_gauge_instantiate): set the progress value
11975         here if appropriate.
11976         (mswindows_tab_control_redisplay): cope with re-ordering of the
11977         members of the tab widget by simply selecting the new top
11978         widget. This makes things appear ok if you click on a tab.
11979         (mswindows_combo_box_instantiate): image_instance_layout now takes
11980         position as well as size.
11981         (mswindows_progress_gauge_redisplay): renamed from
11982         mswindows_progress_gauge_update.
11983         (console_type_create_glyphs_mswindows): fix update -> redisplay.
11984         (image_instantiator_format_create_glyphs_mswindows): ditto.
11985
11986         * glyphs-eimage.c (jpeg_normalize):
11987         (gif_normalize):
11988         (png_normalize):
11989         (tiff_normalize): add dest_mask so that it can be proprogated by
11990         layout_normalize.
11991
11992         * elhash.c:
11993         (print_hash_table):
11994         (hash_table_weakness_validate):
11995         (decode_hash_table_weakness):
11996         (Fhash_table_weakness):
11997         (Fhash_table_type):
11998         (syms_of_elhash): use Ben's naming scheme for hashtable types..
11999
12000         * console.h (struct console_methods): move update_* to
12001         redisplay_*.
12002
12003 2000-07-20  Ben Wing  <ben@xemacs.org>
12004
12005         * *.[ch] (XSETOBJ): remove unused middle argument.
12006         lisp-disunion.h: correct wrap_object() to one argument.
12007
12008 2000-07-15  Ben Wing  <ben@xemacs.org>
12009
12010         * s/cygwin32.h:
12011         * s/cygwin32.h (CYGWIN_CONV_PATH):
12012         Add missing logb prototype for v1.1.
12013         Use post-b20 names and alias to pre-b20 names when pre-b20.
12014
12015         * s/windowsnt.h: [5].
12016
12017 2000-07-15  Ben Wing  <ben@xemacs.org>
12018
12019         * Makefile.in.in (x_objs):
12020         * Makefile.in.in (sheap_objs):
12021         * Makefile.in.in (objs):
12022         added win32.o, cosmetic cleanups.
12023
12024         * alloc.c (Fmake_byte_code):
12025         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
12026         etc. macros which declare their own args now.
12027
12028         * alloc.c (syms_of_alloc):
12029         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
12030
12031         * buffer.c:
12032         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
12033
12034         * buffer.c (Fget_file_buffer):
12035         Fixed GCPRO problem.
12036
12037         * buffer.c (get_truename_buffer):
12038         Fixed comment about GC checking.
12039
12040         * buffer.c (syms_of_buffer):
12041         Undeclared those dedicated frame funs.
12042         [2].
12043
12044         * buffer.h:
12045         Define convenience macros for internal/external conversions.
12046         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
12047         and Qenvironment_variable_encoding for cleaner code.
12048
12049         * bufslots.h:
12050         Remove dedicated-frame; in lisp.
12051
12052         * bytecode.c (funcall_compiled_function):
12053         [1].
12054
12055         * bytecode.c (syms_of_bytecode):
12056         [2].
12057
12058         * console-msw.c:
12059         * console-msw.c (mswindows_show_console): Rewrote.
12060
12061         * console-msw.c (Fmswindows_debugging_output): New.
12062         Sends to OutputDebugString (special MSWin debugger interface).
12063
12064         * console-msw.c (Fmswindows_message_box):
12065         Fixed stupid bugs so it works when called from kill-emacs.
12066
12067         * console-msw.c (syms_of_console_mswindows):
12068         Declare Fmswindows_debugging_output.
12069
12070         * console-msw.h:
12071         New MSWin prototypes.
12072
12073         * console-msw.h (struct mswindows_frame):
12074         New entry last-click-mods for improved button-modifier support.
12075
12076         * console-msw.h (FRAME_MSWINDOWS_POPUP):
12077         New struct entry `popup' with corresponding accessor.
12078
12079         * console-x.c:
12080         * console-x.c (split_up_display_spec):
12081         * console-x.c (get_display_arg_connection):
12082         * console-x.c (x_semi_canonicalize_console_connection):
12083         * console-x.c (x_canonicalize_device_connection):
12084         [[[6]]]: Change char to more specific type.
12085         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
12086
12087         * console-x.c (x_semi_canonicalize_console_connection):
12088         * console-x.c (x_canonicalize_device_connection):
12089         [[[9]]]: Fix up error signalling to use new structured error system.
12090
12091         * console-x.h:
12092         [[[4]]]: Define codesys aliases:
12093         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
12094         Qx_color_name_encoding, Qx_display_name_encoding.
12095
12096         * console.h (struct console_methods):
12097         New method make_dialog_box_internal supersedes older
12098         popup_dialog_box method.
12099
12100         * data.c:
12101         Define many new errors, part of new structured errors.
12102
12103         * data.c (init_errors_once_early):
12104         * data.c (syms_of_data):
12105         [2].
12106
12107         * device-msw.c (mswindows_init_device):
12108         [[[5]]]: Cleanup to support NT 3.51.
12109
12110         * device-msw.c (decode_devmode): Cleanup.
12111
12112         * device-msw.c (mswindows_handle_print_setup_dialog_box):
12113         * device-msw.c (mswindows_handle_print_dialog_box):
12114         * device-msw.c (mswindows_handle_page_setup_dialog_box):
12115         * device-msw.c (syms_of_device_mswindows):
12116         Delete the dialog box primitives recently introduced by Kirill and
12117         instead interface to general dialog box interface.
12118
12119         * device-x.c:
12120         * device-x.c (compute_x_app_name):
12121         * device-x.c (x_init_device):
12122         * device-x.c (Fx_valid_keysym_name_p):
12123         * device-x.c (Fx_set_font_path):
12124         [6].
12125         [7].
12126
12127         * device.h (wrap_device): New.
12128         First of its kind; meant to replace XSETDEVICE.
12129
12130         * dialog-msw.c: Many file-dialog symbols.
12131
12132         * dialog-msw.c (mswindows_register_popup_frame): New.
12133         * dialog-msw.c (mswindows_is_dialog_msg): New.
12134         For supporting kbd traversal in dialog boxes.
12135
12136         * dialog-msw.c (dialog_proc):
12137         Support hitting ESC in dialogs.
12138
12139         * dialog-msw.c (struct):
12140         Common dialog box errors.
12141
12142         * dialog-msw.c (handle_file_dialog_box): New.
12143         Add file dialog code.
12144
12145         * dialog-msw.c (handle_question_dialog_box):
12146         Redo existing code to support new question dialog syntax.
12147
12148         * dialog-msw.c (console_type_create_dialog_mswindows):
12149         We support new dialog console method.
12150
12151         * dialog-msw.c (syms_of_dialog_mswindows):
12152         * dialog-msw.c (vars_of_dialog_mswindows):
12153         New file dialog symbols, vars.
12154
12155         * dialog-x.c:
12156         * dialog-x.c (maybe_run_dbox_text_callback):
12157         * dialog-x.c (dbox_descriptor_to_widget_value):
12158         * dialog-x.c (x_make_dialog_box_internal):
12159         * dialog-x.c (console_type_create_dialog_x):
12160         Mule-ize entire file.
12161         Redo to support question dialog syntax.
12162         [6].
12163
12164         * dialog.c:
12165         * dialog.c (Fmake_dialog_box_internal):
12166         * dialog.c (syms_of_dialog):
12167         Kill old popup-dialog-box, replace with new primitive.
12168         Just call device method or signal error.
12169
12170         * eldap.c (Fldap_open):
12171         * eldap.c (Fldap_search_basic):
12172         * eldap.c (Fldap_add):
12173         * eldap.c (Fldap_modify):
12174         [1].
12175         [7].
12176
12177         * emacs.c:
12178         * emacs.c (make_arg_list_1):
12179         * emacs.c (make_arg_list):
12180         Mule-ize call to dll_init().
12181         [6].
12182         [8].
12183
12184         * emacs.c (make_argc_argv):
12185         * emacs.c (free_argc_argv):
12186         * emacs.c (init_cmdargs):
12187         * emacs.c (main_1):
12188         * emacs.c (Fkill_emacs):
12189         * emacs.c (Fdump_emacs):
12190         Update comments about what can be used in syms_* etc.
12191         Call init_win32() when necessary.
12192         Fix up MS Win dialog box in kill-buffer to actually work right.
12193         [7].
12194
12195         * eval.c:
12196         * eval.c (For):
12197         * eval.c (Fand):
12198         * eval.c (Fprogn):
12199         * eval.c (Fprog1):
12200         * eval.c (Fprog2):
12201         * eval.c (FletX):
12202         * eval.c (Flet):
12203         * eval.c (condition_case_3):
12204         * eval.c (Feval):
12205         * eval.c (function_argcount):
12206         * eval.c (funcall_lambda):
12207         [1].
12208
12209         * eval.c (type_error): New.
12210         * eval.c (maybe_type_error): New.
12211         * eval.c (continuable_type_error): New.
12212         * eval.c (maybe_continuable_type_error): New.
12213         * eval.c (type_error_with_frob): New.
12214         * eval.c (maybe_type_error_with_frob): New.
12215         * eval.c (continuable_type_error_with_frob): New.
12216         * eval.c (maybe_continuable_type_error_with_frob): New.
12217         New functions for use with structured errors.
12218
12219         * event-Xt.c:
12220         * event-Xt.c (x_event_to_emacs_event):
12221         Buttons are now modifiers too.
12222
12223         * event-Xt.c (emacs_Xt_current_event_timestamp):
12224         Implement new event method.
12225         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12226
12227         * event-msw.c:
12228         * event-msw.c (ntpipe_shove_writer): [5].
12229         * event-msw.c (mswindows_enqueue_mouse_button_event):
12230         * event-msw.c (mswindows_drain_windows_queue):
12231         * event-msw.c (mswindows_wnd_proc): [7].
12232         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12233         * event-msw.c (mswindows_modifier_state):
12234         Throughout: support new button modifiers.
12235
12236         * event-msw.c (emacs_mswindows_current_event_timestamp):
12237         Implement new event method.
12238         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12239
12240         * event-stream.c:
12241         * event-stream.c (event_stream_current_event_timestamp): New.
12242         * event-stream.c (maybe_kbd_translate): New functionality.
12243         * event-stream.c (vars_of_event_stream):
12244         Document new kbd-translate-table functionality.
12245
12246         * event-stream.c (Fcurrent_event_timestamp): New.
12247         New primitive for use in fabricated events.
12248         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12249
12250         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12251
12252         * events.c:
12253         * events.c (Fmake_event):
12254         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12255         [1].
12256         [9].
12257
12258         * events.c (format_event_object): fix gcc warnings.
12259
12260         * events.c (Fevent_timestamp): Document new primitives.
12261
12262         * events.c (TIMESTAMP_HALFSPACE): New.
12263
12264         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12265         comparing timestamps correctly (half-space algorithm).
12266
12267         * events.c (Fevent_modifier_bits): Doc fix.
12268
12269         * events.c (Fevent_modifiers): Major doc addition.
12270         * events.c (event_x_y_pixel_internal): Typo fix.
12271         * events.c (syms_of_events): Declare new primitives.
12272
12273         * events.h:
12274         Update long comment for button modifiers, timestamps.
12275
12276         * events.h (struct event_stream):
12277         New current_event_timestamp method.
12278
12279         * extents.c:
12280         * extents.c (extent_in_region_p):
12281         * extents.c (decode_extent):
12282         * extents.c (Fset_extent_parent):
12283         * extents.c (decode_map_extents_flags):
12284         Fix gcc warnings.
12285         [9].
12286
12287         * extents.c (struct extent_at_arg):
12288         * extents.c (decode_extent_at_flag):
12289         * extents.c (extent_at_mapper):
12290         * extents.c (extent_at_bytind):
12291         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12292         * extents.c (Fextents_at): New primitive. [9].
12293         * extents.c (symbol_to_glyph_layout): [9].
12294         Support new primitive `extents-at'.
12295
12296
12297         * extents.c (get_text_property_bytind):
12298         extent_at_bytind has another arg.
12299         [9].
12300
12301         * extents.c (syms_of_extents): New primitive.
12302
12303         * file-coding.c (Fmake_coding_system): [1].
12304         * file-coding.c (subsidiary_coding_system): fix gcc warning
12305         * file-coding.c (syms_of_file_coding): [2].
12306
12307         * fileio.c (Fexpand_file_name):
12308         * fileio.c (Fsysnetunam):
12309         * fileio.c (Ffile_exists_p):
12310         * fileio.c (Ffile_executable_p):
12311         * fileio.c (Fverify_visited_file_modtime):
12312         Clean up GCPROing.
12313
12314         * fileio.c (syms_of_fileio): [2].
12315
12316         * filelock.c (lock_file_1):
12317         * filelock.c (current_lock_owner):
12318         * filelock.c (lock_if_free):
12319         * filelock.c (lock_file):
12320         * filelock.c (unlock_file):
12321         Clean up GCPROing.
12322
12323         * fns.c (concat): Fix gcc warning.
12324
12325         * fns.c (Fmember):
12326         * fns.c (Fold_member):
12327         * fns.c (Fmemq):
12328         * fns.c (Fold_memq):
12329         * fns.c (memq_no_quit):
12330         * fns.c (Fassoc):
12331         * fns.c (Fold_assoc):
12332         * fns.c (Fassq):
12333         * fns.c (Fold_assq):
12334         * fns.c (assq_no_quit):
12335         * fns.c (Frassoc):
12336         * fns.c (Fold_rassoc):
12337         * fns.c (Frassq):
12338         * fns.c (Fold_rassq):
12339         * fns.c (rassq_no_quit):
12340         * fns.c (Fdelete):
12341         * fns.c (Fold_delete):
12342         * fns.c (Fdelq):
12343         * fns.c (Fold_delq):
12344         * fns.c (delq_no_quit):
12345         * fns.c (Fremassoc):
12346         * fns.c (Fremassq):
12347         * fns.c (remassq_no_quit):
12348         * fns.c (Fremrassoc):
12349         * fns.c (Fremrassq):
12350         * fns.c (remrassq_no_quit):
12351         * fns.c (Freverse):
12352         * fns.c (mapcar1):
12353         [1].
12354
12355         * frame-msw.c (mswindows_init_frame_1):
12356         * frame-msw.c (mswindows_delete_frame):
12357         Register popups with dialog code so keyboard traversing works.
12358
12359         * frame-tty.c (tty_raise_frame_no_select): [1].
12360
12361         * frame-x.c:
12362         * frame-x.c (x_set_frame_text_value):
12363         * frame-x.c (x_set_frame_properties):
12364         * frame-x.c (x_create_widgets):
12365         [7].
12366
12367         * frame.c:
12368         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12369
12370         * frame.h (wrap_frame): New.
12371         Macro like wrap_device.
12372
12373         * general.c:
12374         * general.c (SYMBOL):
12375         * general.c (syms_of_general):
12376         Major reorg.  This is now just a wrapper and symbols themselves
12377         are listed in general-slots.h.
12378
12379         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12380         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12381
12382         * glyphs-msw.c (mswindows_native_layout_instantiate):
12383         Add DS_CONTROL so keyboard traversal will work.
12384
12385         * glyphs-widget.c:
12386         * glyphs-widget.c (syms_of_glyphs_widget):
12387         Move some symbols to general-slots.h.
12388
12389         * glyphs-x.c:
12390         * glyphs-x.c (xbm_instantiate_1):
12391         * glyphs-x.c (x_xbm_instantiate):
12392         * glyphs-x.c (x_xface_instantiate):
12393         * glyphs-x.c (autodetect_instantiate):
12394         * glyphs-x.c (cursor_font_instantiate):
12395         * glyphs-x.c (x_update_widget):
12396         * glyphs-x.c (x_widget_instantiate):
12397         * glyphs.c (bitmap_to_lisp_data):
12398         * glyphs.c (pixmap_to_lisp_data):
12399         [7].
12400
12401         * glyphs.c (syms_of_glyphs):
12402         [2].
12403
12404         * gui-x.c:
12405         * gui-x.c (print_widget_value):
12406         * gui-x.c (menu_separator_style_and_to_external):
12407         * gui-x.c (add_accel_and_to_external):
12408         * gui-x.c (button_item_to_widget_value):
12409         * gui-x.c (gui_items_to_widget_values_1):
12410         * gui-x.c (gui_items_to_widget_values):
12411         * gui-x.c (syms_of_gui_x):
12412         * gui-x.c (vars_of_gui_x):
12413         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12414         [9].
12415
12416         * gui-x.h:
12417         Muleize, prototype changes matching gui-x.c.
12418
12419         * gui.c:
12420         * gui.c (separator_string_p):
12421         * gui.c (gui_item_add_keyval_pair):
12422         * gui.c (make_gui_item_from_keywords_internal):
12423         * gui.c (signal_too_long_error):
12424         * gui.c (parse_gui_item_tree_item):
12425         * gui.c (syms_of_gui):
12426         * gui.c (vars_of_gui):
12427         * gui.h:
12428         menu-no-selection-hook moved here (used by MSWin).
12429         Move some symbols to general-slots.h.
12430         [6].
12431         [9].
12432
12433         * insdel.c (get_buffer_pos_char):
12434         * insdel.c (get_buffer_range_char):
12435         Add GC comments.
12436
12437         * keymap.c (keymap_lookup_directly):
12438         * keymap.c (keymap_store):
12439         * keymap.c (ensure_meta_prefix_char_keymapp):
12440         * keymap.c (describe_map):
12441         * keymap.h:
12442         Support new button modifiers.
12443
12444         * lisp-disunion.h (wrap_object):
12445         * lisp-disunion.h (XSETOBJ):
12446         Rename make_obj to wrap_object.
12447
12448         * lisp-union.h:
12449         * lisp-union.h (make_int):
12450         * lisp-union.h (make_char):
12451         Support wrap_object.
12452
12453         * lisp.h:
12454         * lisp.h (LIST_LOOP):
12455         * lisp.h (EXTERNAL_LIST_LOOP):
12456         * lisp.h (LIST_LOOP_2):
12457         * lisp.h (EXTERNAL_LIST_LOOP_1):
12458         * lisp.h (EXTERNAL_LIST_LOOP_2):
12459         * lisp.h (EXTERNAL_LIST_LOOP_3):
12460         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12461         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12462         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12463         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12464         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12465         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12466         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12467         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12468         * lisp.h (struct Lisp_Symbol):
12469         * lisp.h (maybe_continuable_error_with_frob):
12470         Fix up section comments.
12471         Add new types for char to indicate usage.
12472         Delete symbols auto-generated from general-slots.h.
12473         Add prototypes for structured error functions.
12474         Add long comments describing looping macros and change interface
12475         so that lvalues are automatically declared.
12476         Add NO_DECLARE macro in case callers want to declare lvalues
12477         themselves.
12478
12479         * lread.c (read_syntax_error):
12480         * lread.c (continuable_read_syntax_error):
12481         * lread.c (read_structure):
12482         * lread.c (sequence_reader):
12483         * lread.c (read_list_conser):
12484         * lread.c (read_compiled_function):
12485         Rename syntax_error and continuable_syntax_error to avoid clash
12486         with same-named structured error functions.
12487
12488         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12489         * menubar-msw.c (populate_menu_add_item):
12490         * menubar-msw.c (populate_or_checksum_helper):
12491         [5].
12492         [9].
12493
12494         * menubar-x.c:
12495         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12496         Mule-ize whole file.
12497
12498         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12499
12500         * mule-charset.c (Fmake_charset):
12501         * mule-wnnfns.c (Fwnn_set_param):
12502         [1].
12503
12504         * ntproc.c (create_child):
12505         * ntproc.c (Fwin32_set_current_locale):
12506         Add comments portending doom.
12507
12508         * objects-msw.c:
12509         * objects-msw.c (old_font_enum_callback_2):
12510         * objects-msw.c (font_enum_callback_1):
12511         * objects-msw.c (mswindows_enumerate_fonts):
12512         [5].
12513
12514         * objects-x.c:
12515         * objects-x.c (allocate_nearest_color):
12516         * objects-x.c (x_parse_nearest_color):
12517         * objects-x.c (x_initialize_color_instance):
12518         * objects-x.c (x_print_color_instance):
12519         * objects-x.c (x_finalize_color_instance):
12520         * objects-x.c (x_valid_color_name_p):
12521         * objects-x.c (x_initialize_font_instance):
12522         * objects-x.c (x_print_font_instance):
12523         * objects-x.c (valid_x_font_name_p):
12524         * objects-x.c (truename_via_FONT_prop):
12525         * objects-x.c (truename_via_random_props):
12526         * objects-x.c (truename_via_XListFonts):
12527         * objects-x.c (x_font_truename):
12528         * objects-x.c (x_font_instance_truename):
12529         * objects-x.c (x_font_instance_properties):
12530         * objects-x.c (x_list_fonts):
12531         * objects-x.c (x_find_charset_font):
12532         Mule-ize entire file.
12533         [7].
12534
12535         * objects-x.h:
12536         Mule-verify.
12537
12538         * print.c:
12539         * print.c (std_handle_out_external):
12540         * print.c (debug_print_no_newline):
12541         * print.c (syms_of_print):
12542         Output to all debugger kinds in debug-print.
12543         Fix console-output code under MSWin to actually work.
12544
12545         * process-nt.c (send_signal):
12546         * process-nt.c (nt_create_process):
12547         Use newer Unicode macros.
12548
12549         * process-unix.c (unix_create_process):
12550         * process-unix.c (unix_canonicalize_host_name):
12551         * process-unix.c (unix_open_network_stream):
12552         [7].
12553
12554         * scrollbar-x.c:
12555         Mule-verify.
12556
12557         * search.c (syms_of_search):
12558         [2].
12559
12560         * select-msw.c (mswindows_destroy_selection):
12561         Use LIST_LOOP_2.
12562
12563         * select-x.c (symbol_to_x_atom):
12564         [7].
12565
12566         * select.c (syms_of_select):
12567         [2].
12568
12569         * sound.c (Fplay_sound_file):
12570         [7].
12571
12572         * specifier.c:
12573         * specifier.c (decode_specifier_type):
12574         * specifier.c (Fvalid_specifier_locale_type_p):
12575         * specifier.c (check_valid_locale_or_locale_type):
12576         * specifier.c (decode_locale):
12577         * specifier.c (decode_locale_type):
12578         * specifier.c (decode_locale_list):
12579         * specifier.c (check_valid_domain):
12580         * specifier.c (decode_specifier_tag_set):
12581         * specifier.c (Fcanonicalize_tag_set):
12582         * specifier.c (Fdefine_specifier_tag):
12583         * specifier.c (Fspecifier_tag_predicate):
12584         * specifier.c (check_valid_inst_list):
12585         * specifier.c (check_valid_spec_list):
12586         * specifier.c (decode_how_to_add_specification):
12587         * specifier.c (check_modifiable_specifier):
12588         * specifier.c (specifier_add_spec):
12589         * specifier.c (boolean_validate):
12590         * specifier.c (display_table_validate):
12591         [9].
12592
12593         * specifier.c (syms_of_specifier):
12594         Move some symbols to general-slots.h.
12595         [2].
12596
12597         * symbols.c:
12598         * symbols.c (Fmapatoms):
12599         * symbols.c (Fapropos_internal):
12600         Add GCPROs.
12601
12602         * symbols.c (set_default_buffer_slot_variable):
12603         * symbols.c (set_default_console_slot_variable):
12604         [1].
12605
12606         * symbols.c (defsymbol_massage_name_1):
12607         * symbols.c (defkeyword_massage_name):
12608         * symbols.c (deferror_1):
12609         * symbols.c (deferror):
12610         * symbols.c (deferror_massage_name_and_message):
12611         * symeval.h:
12612         * symeval.h (DEFSYMBOL):
12613         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12614
12615         * symbols.c (syms_of_symbols):
12616         [2].
12617
12618         * symsinit.h:
12619         * symsinit.h (init_win32): New.
12620         Also new is syms_of_dialog_mswindows.
12621
12622         * syswindows.h:
12623         Add new Unicode macros, missing Cygwin wide-char functions,
12624         convenience conversion macros for Qmswindows_tstr, macros for
12625         encapsulating required MSWin <-> Cygwin filename conversions,
12626         prototype for dynamically-extracted (not in NT 3.51) functions.
12627
12628         * toolbar-x.c:
12629         Mule-verify.
12630
12631         * tooltalk.c (Fadd_tooltalk_message_arg):
12632         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12633         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12634         [7].
12635
12636         * tooltalk.c (syms_of_tooltalk):
12637         [2].
12638
12639         * unexnt.c:
12640         * unexnt.c (unexec):
12641         Fix up headers, declaration of unexec() to be more standard.
12642
12643 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12644
12645         * offix.h: Revert change to guard macros - they're used in offix.c!
12646
12647 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12648
12649         * lisp.h: Defsubred Fdelete.
12650
12651         * console-msw.h:  (msprinter_default_printer): Added.
12652
12653         * console-msw.c (msprinter_canonicalize_console_connection):
12654         (msprinter_canonicalize_device_connection): Added.
12655
12656         * device-msw.c (msprinter_default_printer):
12657         (Fmswingows_get_default_printer):
12658         (signal_enum_priner_error):
12659         (Fmswingows_printer_list): Added.
12660
12661 2000-07-19  Martin Buchholz <martin@xemacs.org>
12662
12663         * XEmacs 21.2.35 is released.
12664
12665 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12666
12667         * select-x.c (x_handle_selection_request):
12668         Text selected in xemacs and pasted into xterm failed to appear.
12669         Spelling fixes and cosmetic changes.
12670
12671 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12672
12673         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12674         XEmacs frame (fix for doubling chars in dialog boxes).
12675
12676 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12677
12678         * select.c (select_convert_in, select_convert_out):
12679         Don't call intern() every time.
12680
12681         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12682         * select.c (vars_of_select): Initialise them.
12683
12684 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12685
12686         * select.c (selection-coercible-types): New.
12687
12688         * select.c (own-selection-internal):
12689         * select.c (get-selection-internal):
12690         MULE bug fix - these should default to COMPOUND_TEXT and not
12691         STRING for MULE. I think.
12692
12693         * select.c (select_convert_out): Use selection-coercible-types
12694         to find types that we can attempt to perform coercions on.
12695
12696 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12697
12698         * mule-wnnfns.c:
12699         * mule-canna.c:
12700         Add coding: cookie to identify encoding.
12701
12702         * mule-canna.c (CANNA_mode_keys): make static.
12703         Use proper prototypes, even for functions of no arguments.
12704         Remove external prototype for Fding().
12705
12706         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12707
12708         * select.c (syms_of_select): Add missing DEFSUBR.
12709
12710 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12711
12712         * select.c (get_selection_internal, own_selection_internal):
12713         Make the type default to STRING, rather than placing a nil type
12714         into Vselection_alist.
12715
12716 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12717
12718         * gpmevent.c (tty_selection_exists_p):
12719         * gpmevent.c (tty_own_selection):
12720         Updated parameter lists.
12721
12722 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12723
12724         * select.h (selection-alist): Removed declaration.
12725
12726         * select.h (get_local_selection):
12727         * select.c (get_local_selection):
12728         Made static.
12729
12730         * select.h (convert_selection): Removed declaration.
12731         * select.c (convert_selection): Removed.
12732         This function belongs in Lisp.
12733
12734         * select.h (select_convert_in): Declare.
12735         * select.h (select_convert_out): Declare.
12736         * select.c (select_convert_in): New.
12737         * select.c (select_convert_out): New.
12738         New conversion functions for other files to call.
12739
12740         * select.h (select_notify_buffer_kill): Declare.
12741         * select.c (select_notify_buffer_kill): New.
12742         New functions that get called from kill-buffer.
12743
12744         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12745         X-specific lisp code.
12746
12747         * select.h: Declare some of the lisp-visible functions for
12748         external use.
12749
12750         * select.c (clean_local_selection_data): Removed. This was
12751         a disgusting function, and previously should have been in
12752         select-x.c in any case. The functionality is now provided
12753         in select-convert-from-integer (select.el).
12754
12755         * select.c (available-selection-types): Fixed stupidity where
12756         INTEGER and ATOM got added twice. Also add STRING when we see an
12757         extent.
12758
12759         * select.c (get-selection-internal): Removed symbol stripping. No
12760         longer causes conversion when data comes from the internal cache.
12761
12762         * select.c (syms_of_select): Added new functions.
12763
12764         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12765         error checking - previously this called abort!
12766
12767         * select-x.c (x_own_selection): Changed comment.
12768
12769         * select-x.c (x_handle_selection_request): Use select_convert_out.
12770         Don't mess with selection-alist; it's an internal variable of select.c.
12771
12772         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12773
12774         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12775         rather than messing with selection-alist.
12776
12777         * select-msw.c (mswindows_get_foreign_selection):
12778         Use TO_INTERNAL_FORMAT rather than hacking.
12779
12780 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12781
12782         * process-unix.c (unix_open_multicast_group):
12783         (unix_open_multicast_group): Remove useless casts.
12784
12785 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12786
12787         * sound.c (Fplay_sound): Fix `unused variable' warning.
12788
12789         * emacs.c (main): Use correct type for _environ on SCO5.
12790
12791 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12792
12793         * console.h (own_selection_method):
12794         * console.h (selection_exists_p_method):
12795         * console.h (available_selection_types_method): New.
12796         * console.h (register_selection_data_type_method): New.
12797         * console.h (selection_data_type_name): New.
12798
12799         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12800         function & alist to track GlobalAlloc()'d handles that need
12801         releasing when the clipboard data gets replaced or emptied.
12802
12803         * event-msw.c (mswindows_wnd_proc): Call it.
12804
12805         * lisp.h, general.c (Qappend): New symbol representing a
12806         `how-to-add' mode.
12807
12808         * select.c (own-selection-internal):
12809         * select.c (selection-exists-p):
12810         * select.c (available-selection-types): New.
12811         * select.c (register-selection-data-type): New.
12812         * select.c (selection-data-type-name): New.  New functions to deal
12813         with device-specific selection data formats.
12814         * select.c (selection-converter-out-alist): Renamed.
12815         * select.c (selection-converter-in-alist): New.
12816         * select.c (selection-appender-alist): New.  Added new alists.
12817         * select.c (syms_of_select, vars_of_select): Added new symbols &
12818         variables.
12819         * select.c (get_local_selection): Split.
12820         * select.c: Removed spurious type checking - selections may now be
12821         of any type, not just strings.
12822         * select.c (own-selection-internal):
12823
12824         * select.h, select.c (convert_selection): New. Created
12825         convert_selection() function based on get_local_selection().
12826         * select.h, select.c (QCF_*): New symbols representing mswindows
12827         clipboard formats.
12828         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12829         symbols representing `how-to-add' modes.
12830
12831         * select-msw.c (x_sym_p): New.
12832         * select-msw.c (symbol_to_ms_cf): New.
12833         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12834         symbols & clipboard formats. Can also handle string names.
12835         * select-msw.c (mswindows_own_selection):
12836         * select-msw.c (mswindows_selection_exists_p):
12837         Added `data-type' parameter. Use it.
12838         * select-msw.c (mswindows_available_selection_types): New.
12839         * select-msw.c (mswindows_register_selection_data_type): New.
12840         * select-msw.c (mswindows_selection_data_type_name): New.
12841         * select-msw.c (mswindows_own_selection):
12842         * select-msw.c (mswindows_get_foreign_selection):
12843         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12844         * select-msw.c (console_create_select_mswindows): Added new methods.
12845         * select-msw.c (mswindows_destroy_selection): New.
12846         * select-msw.c (Vhandle_alist): New list.
12847         * select-msw.c (mswindows_own_selection):
12848
12849         * select-x.c (x_own_selection):
12850         * select-x.c (x_selection_exists_p):
12851         * select-x.c: Added some comments about maybe using new
12852         functionality.
12853         * select-x.c (x_own_selection):
12854
12855         * specifier.c: Remove definition of Qappend (now in general.c)
12856         * specifier.c (syms_of_specifier): Remove Qappend.
12857
12858 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12859
12860         * config.h.in: Add socklen_t.
12861
12862         * s/decosf4-0.h: No special compiler flags needed or desired.
12863         In particular, undefine _BSD for DEC OSF 4.0.
12864
12865 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12866
12867         * redisplay-msw.c (msprinter_frame_output_end): Added.
12868         (console_type_create_redisplay_mswindows): Referred the above.
12869
12870         * frame.c (setup_frame_without_minibuffer): Do not create a
12871         default minibuffer frame on a printer device.
12872
12873         * frame-msw.c (apply_dc_geometry): Added.
12874         (msprinter_start_page):
12875         (msprinter_init_frame_3):
12876         (msprinter_eject_page): Use it.
12877
12878         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12879         and removed residual duplex and orientation properties.
12880
12881 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12882
12883         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12884
12885         * unexalpha.c: Remove system prototypes from C sources!
12886
12887 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12888
12889         * eval.c: Remove references to M-x edit-options in DEFUNs for
12890         `defvar' and `defconst'.
12891
12892 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12893
12894         * config.h.in: Remove SMART_INCLUDE hackery.
12895
12896         PostgreSQL hacking:
12897         * config.h.in: Don't use SMART_INCLUDE.
12898
12899         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12900         * inline.c: Simply #include "postgresql.h"
12901         * postgresql.c:
12902         - Don't use SMART_INCLUDE
12903         - Use simply "const".
12904         - Use standard doc string conventions.
12905         - Use correct type for result of PQstatus.
12906
12907 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12908
12909         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12910
12911         C++ compilation changes.
12912         * config.h.in (EXTERN_C): Define.
12913         * config.h.in (not): This is also a C++ keyword.
12914         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12915         * cm.c: Use EXTERN_C.
12916         * redisplay-tty.c: Use EXTERN_C.
12917         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12918
12919 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12920
12921         * general.c: Remove duplicate definition for Qfunction.
12922
12923 2000-07-08  Ben Wing  <ben@xemacs.org>
12924
12925         * device-msw.c (msprinter_init_device):
12926         * device-msw.c (sync_printer_with_devmode):
12927         * device-msw.c (handle_devmode_changes):
12928         * device-msw.c (print_dialog_worker):
12929         * device-msw.c (Fmsprinter_apply_settings):
12930         * device-msw.c (hash_devmode):
12931         * device-msw.c (Fmsprinter_settings_despecialize):
12932         use Qmswindows_tstr, not Qctext.
12933
12934         * vm-limit.c (check_memory_limits):
12935         avoid infinite loop printing warning messages.
12936
12937 2000-07-05  Craig Lanning  <lanning@scra.org>
12938
12939         * Makefile.in.in: Add support for including the Windows resources
12940         when building with the cygwin and mingw targets.
12941
12942         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12943         not set or not correct.
12944         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12945         (init_initial_directory): Don't try to use $PWD on the
12946         WIN32_NATIVE target.
12947
12948         * s\cygwin32.h:
12949         [[Add -mwindows to eliminate console window.]] not required --ben
12950         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12951         (MAIL_USE_POP): removed; now handled by configure.
12952
12953         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12954         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12955         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12956         (MAIL_USE_POP): removed; now handled by configure.
12957         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12958         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12959         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12960         constant string.
12961         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12962         up from <winsock.h> via systime.h.
12963         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12964         (getpagesize): from Dan Holmsand, added.
12965         Added #endif which was left dangling by Ben's mega patch; added
12966         comment to help prevent this in the future.
12967
12968         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12969
12970 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12971
12972         * console-msw.h (struct mswindows_device): Removed unnecessary
12973         cached device geometry values.
12974         Added update_tick and an accessor macro.
12975         (Lisp_Devmode): Added lrecord declaration.
12976         (struct msprinter_device): Contain devmode as a Lisp object.
12977         Added mswindows_get_selected_frame_hwnd();
12978
12979         * console.h (struct console_methods): Indentation nitpicking.
12980
12981         * device-msw.c (mswindows_init_device): Do not initialize geometry
12982         cache. Initialize update tick.
12983         (mswindows_device_system_metrics): Ask the device for its geometry.
12984         (global_free_2_maybe):
12985         (devmode_to_hglobal):
12986         (handle_printer_changes):
12987         (ensure_not_printing):
12988         (print_dialog_worker):
12989         (Fmsprinter_print_setup_dialog):
12990         (Fmsprinter_print_dialog):
12991         (plist_get_margin):
12992         (plist_set_margin):
12993         (Fmsprinter_page_setup_dialog): Added functions.
12994         (sync_printer_with_devmode):
12995         (handle_devmode_changes):
12996         (Fmsprinter_get_settings):
12997         (Fmsprinter_select_settings):
12998         (Fmsprinter_apply_settings):
12999         (allocate_devmode):
13000         (Fmsprinter_settings_copy):
13001         (Fmsprinter_settings_despecialize):
13002         (print_devmode):
13003         (finalize_devmode):
13004         (equal_devmode):
13005         (hash_devmode): Added functions
13006         (syms_of_device_mswindows): Init devmode lrecord class.
13007
13008         * device.h: Added an exfun for find-device.
13009
13010         * event-msw.c (mswindows_wnd_proc): Do not update the cached
13011         geometry; although, recreate the device compatible DC.
13012
13013         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
13014         (msprinter_init_frame_3):
13015         (msprinter_frame_property):
13016         (msprinter_internal_frame_property_p):
13017         (msprinter_frame_properties):
13018         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
13019         print job properties (will move to device settings).
13020
13021         * lisp.h: Added symbols.
13022
13023         * general.c (syms_of_general): Declared them.
13024
13025         * hash.c (string_hash): Added.
13026
13027         * lrecord.h (lrecord_type): Added devmode lrecord type.
13028
13029 2000-07-02  Mike Sperber <mike@xemacs.org>
13030
13031         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
13032         FreeBSD 4.0.
13033
13034 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
13035
13036         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
13037         integer.
13038
13039 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
13040
13041         * data.c (Fstring_to_number): Don't recognize floating point if
13042         base is not 10.
13043
13044 2000-06-22  Martin Buchholz  <martin@xemacs.org>
13045
13046         * glyphs-widget.c (tab_control_query_geometry):
13047         (widget_query_geometry):
13048         (button_query_geometry):
13049         * glyphs.c (text_query_geometry):
13050         Enforce type correctness.
13051
13052 2000-06-18  Martin Buchholz  <martin@xemacs.org>
13053
13054         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
13055         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
13056
13057 2000-06-17  Martin Buchholz  <martin@xemacs.org>
13058
13059         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
13060         conflicts with gcc's fixincluded version of FOO.h.
13061
13062         * glyphs.h (image_instance_geometry): Remove trailing `,'
13063
13064 2000-06-08  Mike Alexander  <mta@arbortext.com>
13065
13066         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
13067         (shove_thread): Don't write the same output twice
13068         (make_ntpipe_output_stream): Increase priority of shove thread
13069         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
13070         chance to run
13071         (ntpipe_shove_closer): Don't delete the pipe until we're done with
13072         it.
13073
13074 2000-06-12  Ben Wing  <ben@xemacs.org>
13075
13076         * s\mingw32.h (sigset):
13077         * s\windowsnt.h (sigset):
13078         rename msw_ to mswindows_ for consistency with general convention.
13079
13080 2000-06-12  Ben Wing  <ben@xemacs.org>
13081
13082         * console-msw.c:
13083         * console-msw.c (mswindows_get_console_hwnd):
13084         * console-msw.c (mswindows_ensure_console_allocated):
13085         * console-msw.c (mswindows_hide_console):
13086         * console-msw.c (mswindows_show_console):
13087         * console-msw.c (mswindows_ensure_console_buffered):
13088         * console-msw.c (mswindows_output_console_string):
13089         * console-msw.c (mswindows_windows9x_p):
13090         * console-msw.h:
13091         * device-msw.c (mswindows_get_workspace_coords):
13092         * device-msw.c (mswindows_device_system_metrics):
13093         * dialog-msw.c (mswindows_popup_dialog_box):
13094         * event-msw.c (mswindows_wnd_proc):
13095         * frame-msw.c (mswindows_size_frame_internal):
13096         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
13097         * menubar-msw.c (displayable_menu_item):
13098         * menubar-msw.c (mswindows_char_is_accelerator):
13099         * nt.c:
13100         * nt.c (mswindows_sigset):
13101         * nt.c (mswindows_sigrelse):
13102         * nt.c (mswindows_sigpause):
13103         * nt.c (mswindows_raise):
13104         * nt.c (timer_proc):
13105         * ntproc.c:
13106         * ntproc.c (find_child_console):
13107         * ntproc.c (sys_kill):
13108         * print.c:
13109         * print.c (std_handle_out_external):
13110         * process-nt.c (find_child_console):
13111         * process-nt.c (send_signal_the_95_way):
13112         * process-nt.c (ensure_console_window_exists):
13113         * process-nt.c (nt_create_process):
13114         * syssignal.h:
13115         rename msw_ to mswindows_ for consistency with general convention.
13116
13117         * emacs.c:
13118         * dumper.c:
13119         include nt.h, not syswindows.h.
13120
13121         * nt.c (mswindows_fstat):
13122         * nt.c (mswindows_stat):
13123         prefix mswindows_ instead of attempting to directly override the
13124         library functions.  fix declarations.
13125
13126         * nt.h:
13127         include syswindows.h.  move some sysdep.h stuff here.
13128
13129         * ntheap.h:
13130         include syswindows.h, not <windows.h>.
13131
13132         * ntplay.c:
13133         clean up headers.
13134
13135         * sysdep.c:
13136         clean up headers.
13137
13138         * sysdep.c (sys_fstat):
13139         * sysdep.c (sys_stat):
13140         call mswindows versions when appropriate.
13141
13142         * sysdep.h:
13143         move mswin decls to nt.h.
13144
13145         * syswindows.h:
13146         add long comment describing appropriate use of the various windows
13147         headers.
13148
13149 2000-06-11  Ben Wing  <ben@xemacs.org>
13150
13151         * device-x.c: Correct doc string for sixth arg of x-get-resource.
13152
13153 2000-06-10  Ben Wing  <ben@xemacs.org>
13154
13155         * Makefile.in.in (release):
13156         Correction to make sure xemacs.exe always dumped when correct.
13157
13158         * alloca.c:
13159         * balloon_help.c:
13160         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
13161
13162         * buffer.c (set_buffer_internal):
13163         [[[[2]]]]: Remove HAVE_FEP code.
13164
13165         * buffer.c (init_initial_directory):
13166         [3].
13167
13168         * bytecode.c:
13169         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
13170         individual files.
13171
13172         * callproc.c:
13173         * callproc.c (call_process_cleanup):
13174         * callproc.c (Fold_call_process_internal):
13175         * callproc.c (child_setup):
13176         * callproc.c (getenv_internal):
13177         * callproc.c (init_callproc):
13178         * callproc.c (vars_of_callproc):
13179         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
13180         __CYGWIN32__ -> CYGWIN.
13181         DOS_NT -> WIN32_NATIVE.
13182         Remove MSDOS support/references, converting to WIN32_NATIVE
13183           where correct.
13184         __MINGW32__ -> MINGW.
13185         Fix windows.h includes.
13186         Remove bogus HAVE_NTGUI.
13187
13188         * config.h.in:
13189         [2].
13190
13191         * console-msw.c:
13192         mswindows_message_outputted added for use in allowing startup
13193         errors on the console to be seen.
13194
13195         * console-msw.c (msw_ensure_console_allocated):
13196         * console-msw.c (msw_output_console_string):
13197         * console-msw.c (DHEADER):
13198         * console-msw.c (DOPAQUE_DATA):
13199         * console-msw.c (DEVENT):
13200         * console-msw.c (DCONS):
13201         * console-msw.c (DCONSCDR):
13202         * console-msw.c (DSTRING):
13203         * console-msw.c (DVECTOR):
13204         * console-msw.c (DSYMBOL):
13205         * console-msw.c (DSYMNAME):
13206         Fix warnings.
13207
13208         * console-stream.c (stream_init_console):
13209         Fix text/binary problems.
13210
13211         * device-msw.c:
13212         * device-msw.c (mswindows_finish_init_device):
13213         * device-msw.c (mswindows_delete_device):
13214         [1].
13215
13216         * device.c (handle_asynch_device_change):
13217         [3].
13218
13219         * dgif_lib.c:
13220         * dgif_lib.c (DGifOpenFileName):
13221         * dgif_lib.c (DGifOpenFileHandle):
13222         * dgif_lib.c (DGifGetLine):
13223         * dgif_lib.c (DGifGetPixel):
13224         Added config.h/lisp.h, fix up includes.
13225         [1].
13226
13227         * dired-msw.c:
13228         [4].
13229
13230         * dired.c:
13231         * dired.c (file_name_completion):
13232         * dired.c (Ffile_attributes):
13233         * dired.c (syms_of_dired):
13234         [1].
13235
13236         * dumper.c:
13237         * dumper.c (pdump_file_unmap):
13238         * dumper.c (pdump_load):
13239         [1].
13240
13241         * editfns.c:
13242         * editfns.c (Ftemp_directory):
13243         * editfns.c (user_login_name):
13244         * editfns.c (Fuser_real_login_name):
13245         * editfns.c (get_home_directory):
13246         [1].
13247
13248         * elhash.c (finish_marking_weak_hash_tables):
13249         [[[[5]]]]: Fix GCC warnings.
13250
13251         * emacs.c:
13252         * emacs.c (mswindows_handle_hardware_exceptions):
13253         * emacs.c (make_arg_list_1):
13254         * emacs.c (main_1):
13255         * emacs.c (Fkill_emacs):
13256         * emacs.c (Fdump_emacs):
13257         [1].
13258         Fix problems with nested crashes, add long comment.
13259
13260         * event-Xt.c (init_event_Xt_late):
13261         [1].
13262
13263         * event-msw.c:
13264         * event-msw.c (mswindows_dde_callback):
13265         * event-msw.c (mswindows_handle_sticky_modifiers):
13266         * event-msw.c (mswindows_wnd_proc):
13267         [1].
13268         [5].
13269
13270         * events.c (character_to_event):
13271         [1].
13272
13273         * fileio.c:
13274         * fileio.c (Ffile_name_directory):
13275         * fileio.c (Ffile_name_nondirectory):
13276         * fileio.c (directory_file_name):
13277         * fileio.c (Fexpand_file_name):
13278         * fileio.c (Fsubstitute_in_file_name):
13279         * fileio.c (Ffile_name_absolute_p):
13280         * fileio.c (check_executable):
13281         * fileio.c (Ffile_readable_p):
13282         * fileio.c (Ffile_accessible_directory_p):
13283         * fileio.c (Ffile_modes):
13284         * fileio.c (Funix_sync):
13285         * fileio.c (vars_of_fileio):
13286         [1]. [4].
13287
13288         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13289
13290         Expand getdefdir defn.
13291         Fix bogus rename() comment.
13292
13293         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13294         to use standard XEmacs include files, e.g. sysfile.h, rather
13295         than system-specific includes.
13296
13297         * fns.c:
13298         * fns.c (Fsubseq):
13299         [5]. [6].
13300
13301         * frame.c (vars_of_frame):
13302         [1].
13303
13304         * getloadavg.c:
13305         * getloadavg.c (getloadavg):
13306         [1]. [6].
13307         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13308         (We don't use it elsewhere in the code; just add a comment.)
13309
13310         * gif_io.c:
13311         [6].
13312         Add config.h.
13313
13314         * glyphs-msw.c:
13315         * glyphs-msw.c (mswindows_resource_instantiate):
13316         [1].
13317
13318         * glyphs-x.c (x_native_layout_instantiate):
13319         [5].
13320
13321         * gui-msw.c (Fmswindows_shell_execute):
13322         [1].
13323
13324         * insdel.c:
13325         [4].
13326
13327         * lisp.h:
13328         [4]. [5].
13329
13330         * lread.c (locate_file_in_directory_mapper):
13331         [1].
13332
13333         * lstream.c:
13334         [4].
13335
13336         * mem-limits.h:
13337         * mem-limits.h (get_lim_data):
13338         [1].
13339
13340         * menubar-msw.c:
13341         [4].
13342
13343         * ndir.h:
13344         [1].
13345
13346         * nt.c:
13347         * nt.c (getwd):
13348         * nt.c (closedir):
13349         * nt.c (rva_to_section):
13350         * nt.c (mswindows_executable_type):
13351         [1]. [6].
13352         Fix closedir() defn.
13353
13354         * nt.h:
13355         [[[[8]]]]: *_OK defs moved to sysfile.h.
13356
13357         * ntproc.c:
13358         [6]. [7].
13359
13360         * objects-x.c:
13361         [4].
13362
13363         * print.c:
13364         * print.c (std_handle_out_external):
13365         [1]. [4].
13366
13367         * process-nt.c:
13368         * process-nt.c (nt_create_process):
13369         [6].
13370         try to fix process quoting somewhat.
13371
13372         * process-unix.c (unix_create_process):
13373         [1].
13374
13375         * process.c:
13376         * process.c (vars_of_process):
13377         Add Vnull_device.
13378
13379         * process.h:
13380         [1].
13381
13382         * realpath.c:
13383         * realpath.c (xrealpath):
13384         [1].
13385
13386         * redisplay-tty.c (init_tty_for_redisplay):
13387         [3].
13388
13389         * redisplay.c:
13390         [4]. [6].
13391
13392         * scrollbar-msw.c:
13393         [4].
13394
13395         * sheap.c:
13396         * sheap.c (more_static_core):
13397         * sheap.c (report_sheap_usage):
13398         [5]. [6].
13399
13400         * signal.c:
13401         * signal.c (alarm_signal):
13402         [1]. [6].
13403
13404         * sound.c:
13405         [6].
13406
13407         * strftime.c:
13408         * strftime.c (zone_name):
13409         [1]. [5].
13410
13411         * symsinit.h (init_sunpro):
13412         [1].
13413
13414         * syscommctrl.h:
13415         commctrl.h not in Cygwin b20.1.
13416
13417         * sysdep.c:
13418         * sysdep.c (endif):
13419         * sysdep.c (sys_subshell):
13420         * sysdep.c (init_baud_rate):
13421         * sysdep.c (emacs_get_tty):
13422         * sysdep.c (emacs_set_tty):
13423         * sysdep.c (tty_init_sys_modes_on_device):
13424         * sysdep.c (init_system_name):
13425         * sysdep.c (sys_open):
13426         * sysdep.c (interruptible_open):
13427         * sysdep.c (sys_fopen):
13428         * sysdep.c (sys_mkdir):
13429         * sysdep.c (sys_rename):
13430         * sysdep.c (get_process_times_1):
13431         [1]. [6].
13432
13433         * sysdep.h:
13434         [1].
13435
13436         * sysdir.h:
13437         * sysdir.h (DIRENTRY_NONEMPTY):
13438         [1]. [6].
13439
13440         * sysdll.c (dll_init):
13441         * sysdll.h:
13442         [1].
13443
13444         * sysfile.h:
13445         [1]. [6]. [8].
13446         added text/binary defs.
13447
13448         * sysfloat.h:
13449         [1].
13450
13451         * sysproc.h:
13452         * sysproc.h (EDESTADDRREQ):
13453         * sysproc.h (poll_fds_for_input):
13454         [1]. [6].
13455
13456         * syspwd.h:
13457         [6].
13458
13459         * syssignal.h:
13460         [1].
13461
13462         * systime.h:
13463         [1]. [6].
13464
13465         * systty.h:
13466         [1].
13467
13468         * syswindows.h:
13469         [1].
13470         Always define WIN32_LEAN_AND_MEAN.
13471
13472         * unexcw.c (unexec):
13473         [5].
13474
13475         * unexec.c:
13476         * unexec.c (copy_text_and_data):
13477         * unexec.c (adjust_lnnoptrs):
13478         [1].
13479
13480         * unexnt.c:
13481         * unexnt.c (_start):
13482         [1].
13483
13484 2000-06-07  Ben Wing  <ben@xemacs.org>
13485
13486         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13487         was used only as a model.  We've long since extracted any useful
13488         logic or code out of this. (I just did an exhaustive search.)
13489
13490         * s\msdos.h: Removed.
13491
13492         * s\windows95.h: Removed.
13493
13494 2000-06-10  Ben Wing  <ben@xemacs.org>
13495
13496         * s\cygwin32.h:
13497         [1]. [5].
13498         Don't use extern with fun defs.
13499
13500         * s\mingw32.h:
13501         [1]. [7].
13502         Remove nt\inc include.
13503         Remove getdisk, getdefdir. (The former is unused, the latter
13504         expanded in fileio.h.)
13505
13506         * s\windowsnt.h:
13507         * s\windowsnt.h (WIN32_NATIVE):
13508         * s\windowsnt.h (HAVE_STRCASECMP):
13509         [1]. [7].
13510         Add long comment about preprocessor changes.
13511         Remove getdisk, getdefdir. (The former is unused, the latter
13512         expanded in fileio.h.)
13513
13514 2000-06-10  Ben Wing  <ben@xemacs.org>
13515
13516         * m\arm.h:
13517         * m\delta.h:
13518         * m\intel386.h:
13519         * m\sequent.h:
13520         * m\template.h:
13521         * m\windowsnt.h:
13522         [1].
13523         Remove bogus/unused NO_SOCK_SIGIO.
13524
13525 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13526
13527         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13528         not an Emchar.
13529
13530 2000-06-04  Mike Sperber <mike@xemacs.org>
13531
13532         * casetab.c (set_case_table): For `set-standard-case-table',
13533         actually deposit the new case tables where the rest of XEmacs can
13534         see them.
13535
13536 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13537
13538         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13539
13540 2000-06-05  Ben Wing  <ben@xemacs.org>
13541
13542         * callproc.c (child_setup): Don't do close_load_descs() under
13543         MS Windows.  Put in a comment explaining why.
13544
13545 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13546
13547         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13548         Toolkit shell" which breaks `kill-compilation' on Windows NT
13549         native, retaining STDERR handling improvements.
13550
13551 2000-06-01  Andreas Jaeger  <aj@suse.de>
13552
13553         * s/s390.h: Support for S390, based on a patch by Martin
13554         Schwidefsky <schwidefsky@de.ibm.com>.
13555
13556 2000-05-30  Andy Piper  <andy@xemacs.org>
13557
13558         * window.c (allocate_window):
13559         (make_dummy_parent):
13560         (Fset_window_configuration): use new hashtable type.
13561
13562         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13563         (struct image_instantiator_methods):
13564         (struct Lisp_Image_Instance): make instance geometry signed.
13565
13566         * glyphs.c (instantiate_image_instantiator):
13567         (image_instance_query_geometry):
13568         (image_instance_layout):
13569         (image_instance_layout):
13570         (query_string_geometry):
13571         (text_query_geometry):
13572         (image_instantiate):
13573         (image_instantiate):
13574         (cache_subwindow_instance_in_frame_maybe):
13575         (subwindow_query_geometry): make instance geometry signed.
13576
13577         * glyphs-widget.c (widget_query_geometry):
13578         (widget_layout):
13579         (button_query_geometry):
13580         (tree_view_query_geometry):
13581         (tab_control_query_geometry):
13582         (layout_query_geometry):
13583         (layout_layout):
13584         (native_layout_layout): make instance geometry signed.
13585
13586 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13587
13588         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13589         constant.
13590
13591         * general.c (syms_of_general): Add Qfull_assoc symbol.
13592
13593         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13594         correctly.
13595         (decode_weak_list_type): Decode full-assoc type.
13596         (encode_weak_list_type): Encode full-assoc type.
13597         (Fmake_weak_list): Update doc string.
13598
13599 2000-05-30  Andy Piper  <andy@xemacs.org>
13600
13601         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13602
13603         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13604         (decode_hash_table_weakness): ditto.
13605         (Fhash_table_weakness): ditto.
13606         (Fhash_table_type): ditto.
13607         (finish_marking_weak_hash_tables): ditto.
13608         (hash_table_weakness_validate): ditto.
13609         (syms_of_elhash): ditto.
13610
13611 2000-05-28  Martin Buchholz <martin@xemacs.org>
13612
13613         * XEmacs 21.2.34 is released.
13614
13615 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13616
13617         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13618         start cache.
13619         (updating_line_start_cache): Gone.
13620         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13621         generic code to force a minimum of 1 line laid out in the
13622         CMOTION_DISP case.
13623
13624 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13625
13626         * glyphs.c (instantiate_image_instantiator): Check for initialized
13627         height & width no longer special cases IMAGE_NOTHING.
13628         (nothing_instantiate): Set height and width of instance.
13629
13630 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13631
13632         * unexelf.c (unexec): Search for ".data" section.
13633         Initialize new_data2_offset from old_data_index.
13634         Remove redundant check for ElfW.
13635
13636 2000-05-23  Andy Piper  <andy@xemacs.org>
13637
13638         * glyphs.c (get_image_instantiator_governing_domain): allow more
13639         specific domains as the governing domain rather than expecting an
13640         exact match. This fixes problems with layouts.
13641
13642 2000-05-22  Andy Piper  <andy@xemacs.org>
13643
13644         * redisplay-output.c (compare_runes): check for non-images
13645
13646         * glyphs.c (set_glyph_dirty_p): ditto.
13647         (update_glyph_cachel_data): ditto.
13648
13649         * glyphs-widget.c (layout_post_instantiate): ditto.
13650         (layout_post_instantiate): ditto.
13651
13652         * event-msw.c (mswindows_wnd_proc): warning removal.
13653
13654 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13655
13656         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13657
13658         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13659
13660         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13661
13662         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13663         (mswindows_executable_type): mingw32 now has enough headers for
13664         this to work.
13665
13666 2000-05-20  Andy Piper  <andy@xemacs.org>
13667
13668         * console-msw.c (mswindows_output_last_error): ; -> ,
13669
13670 2000-05-12  Andy Piper  <andy@xemacs.org>
13671
13672         * console-msw.c (FROB): compare ints with ints.
13673
13674 2000-05-11  Andy Piper  <andy@xemacs.org>
13675
13676         * glyphs-x.c (x_finalize_image_instance): make minimal build
13677         happy.
13678
13679 2000-05-20  Ben Wing  <ben@xemacs.org>
13680
13681         * event-Xt.c:
13682         * event-Xt.c (vars_of_event_Xt):
13683         move modifier-keys-are-sticky to event-stream.c.
13684
13685         * event-msw.c:
13686         * event-msw.c (mswindows_enqueue_mouse_button_event):
13687         * event-msw.c (key_needs_default_processing_p):
13688         * event-msw.c (XEMSW_LCONTROL):
13689         * event-msw.c (mswindows_handle_sticky_modifiers):
13690         * event-msw.c (FROB):
13691         * event-msw.c (clear_sticky_modifiers):
13692         * event-msw.c (output_modifier_keyboard_state):
13693         * event-msw.c (output_alt_keyboard_state):
13694         * event-msw.c (mswindows_wnd_proc):
13695         * event-msw.c (mswindows_modifier_state):
13696         * event-msw.c (emacs_mswindows_handle_magic_event):
13697         implement sticky modifiers.
13698
13699         * event-stream.c:
13700         * event-stream.c (vars_of_event_stream):
13701         move modifier-keys-are-sticky here.
13702
13703         * lisp.h:
13704         add CHECK_FUNCTION.
13705
13706         * rangetab.c:
13707         implement map-range-table.
13708
13709
13710 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13711
13712         * redisplay-tty.c (reset_tty_modes):
13713         (tty_redisplay_shutdown): Adjust argument type to
13714         tty_frame_output_end.
13715
13716 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13717
13718         * eval.c (Fbacktrace): Don't output a line with only right
13719         parenthesis.
13720
13721 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13722
13723         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13724         (Fpq_reset_poll): Ditto.
13725
13726 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13727
13728         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13729
13730 2000-05-16  Ben Wing  <ben@xemacs.org>
13731
13732         * buffer.c:
13733         * buffer.c (dfc_convert_to/from_internal_format):
13734         * buffer.c (reinit_vars_of_buffer):
13735         Fix conversion functions to allow reentrancy.
13736
13737         * console-msw.c:
13738         * console-msw.c (mswindows_output_last_error):
13739         New fun, generally useful -- output a human-readable
13740         version of GetLastError() on the console.
13741
13742         * console-msw.h:
13743         * console-msw.h (struct mswindows_frame):
13744         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13745
13746         * console-stream.c (stream_output_begin):
13747         * console-stream.c (stream_output_end):
13748         * console-stream.c (stream_output_vertical_divider):
13749         * console-stream.c (stream_clear_region):
13750         * console-stream.c (stream_flash):
13751         * console-stream.c (console_type_create_stream):
13752         Delete blank stream methods, not needed.
13753
13754         * console.h (struct console_methods):
13755         Split begin/end methods into window and frame.
13756
13757         * event-msw.c:
13758         * event-msw.c (mswindows_handle_paint):
13759         * event-msw.c (output_alt_keyboard_state):
13760         * event-msw.c (mswindows_wnd_proc):
13761         * event-msw.c (vars_of_event_mswindows):
13762         Comment about problems with ignored-expose.
13763         Define mswindows-debug-events; not really implemented.
13764
13765         * frame-msw.c (mswindows_init_frame_1):
13766         random cleanups.
13767
13768         * glyphs-msw.c:
13769         * glyphs-msw.c (begin_defer_window_pos):
13770         * glyphs-msw.c (mswindows_unmap_subwindow):
13771         * glyphs-msw.c (mswindows_map_subwindow):
13772         * glyphs-msw.c (mswindows_resize_subwindow):
13773         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13774
13775         * glyphs.c (make_image_instance_1):
13776         Fix crash.
13777
13778         * gutter.c (Fredisplay_gutter_area):
13779         Use new begin/end methods.
13780
13781         * lisp.h (Dynarr_new2):
13782         New creation fun.
13783
13784         * redisplay-msw.c:
13785         * redisplay-msw.c (mswindows_frame_output_begin):
13786         * redisplay-msw.c (mswindows_frame_output_end):
13787         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13788         New begin/end methods -- handle DeferWindowPos.
13789
13790         * redisplay-output.c (redisplay_move_cursor):
13791         * redisplay-output.c (redraw_cursor_in_window):
13792         * redisplay-output.c (redisplay_update_line):
13793         * redisplay-output.c (redisplay_output_window):
13794         New begin/end methods.
13795
13796         * redisplay-tty.c:
13797         * redisplay-tty.c (tty_frame_output_begin):
13798         * redisplay-tty.c (tty_frame_output_end):
13799         * redisplay-tty.c (console_type_create_redisplay_tty):
13800         New begin/end methods.
13801
13802         * redisplay-x.c:
13803         * redisplay-x.c (x_window_output_begin):
13804         * redisplay-x.c (x_window_output_end):
13805         * redisplay-x.c (console_type_create_redisplay_x):
13806         New begin/end methods.
13807
13808         * redisplay.c (redisplay_frame):
13809         * redisplay.c (Fredisplay_echo_area):
13810         New begin/end methods.
13811         use MAYBE_DEVMETH for clear_frame; it may not exist.
13812
13813         * window.h (WINDOW_XFRAME):
13814         WINDOW_XFOO macros -- get locale and decode struct pointer.
13815
13816
13817 2000-05-12  Ben Wing  <ben@xemacs.org>
13818
13819         * emacs.c:
13820         * emacs.c (ensure_no_quitting_from_now_on):
13821         * emacs.c (fatal_error_signal):
13822         * emacs.c (mswindows_handle_hardware_exceptions):
13823         * emacs.c (main):
13824         * emacs.c (Fkill_emacs):
13825         * emacs.c (shut_down_emacs):
13826         * emacs.c (assert_failed):
13827         various improvements in fatal error handling.
13828
13829         * eval.c:
13830         move preparing_for_armageddon to emacs.c.
13831
13832         * lisp.h:
13833         declare fatal_error_in_progress.
13834
13835         * print.c:
13836         * print.c (std_handle_out_external):
13837         * print.c (std_handle_out_va):
13838         * print.c (stderr_out):
13839         * print.c (stdout_out):
13840         use console under mswin when no standard output.
13841         don't do code conversion during fatal error.
13842
13843         * scrollbar.c (Fscrollbar_page_up):
13844         * scrollbar.c (Fscrollbar_page_down):
13845         fix missing else.  reindent.
13846
13847 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13848
13849         Emergency fix.
13850
13851         * glyphs.h (GLYPH_CACHEL_DESCENT):
13852         (GLYPH_CACHEL_DESCENT):
13853         (GLYPH_CACHEL_DESCENT):
13854         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13855         used in case these are inline functions.
13856         Use more absurd values to error check.
13857
13858         include window.h for error check functions.
13859
13860 2000-05-11  Ben Wing  <ben@xemacs.org>
13861
13862         * cmdloop.c (Freally_early_error_handler):
13863         Display message box under windows; otherwise, message will disappear
13864         before it can be viewed.
13865
13866         * console-msw.c:
13867         * console-msw.c (Fmswindows_message_box):
13868         * console-msw.c (FROB):
13869         * console-msw.c (syms_of_console_mswindows):
13870         Define new fun `mswindows-message-box'.
13871         #### I will merge this into `popup-dialog-box'; just give me
13872         a bit of time.
13873
13874         * general.c:
13875         * general.c (syms_of_general):
13876         Some new symbols used in `mswindows-message-box'.
13877
13878         * glyphs.c:
13879         * glyphs.c (Fset_image_instance_property):
13880         put warning in this fun.
13881
13882         * glyphs.h:
13883         * glyphs.h (GLYPH_CACHEL_WIDTH):
13884         * glyphs.h (GLYPH_CACHEL_ASCENT):
13885         * glyphs.h (GLYPH_CACHEL):
13886         * glyphs.h (GLYPH_CACHEL_GLYPH):
13887         define error-checking versions to try to catch a bug i've seen --
13888         redisplay gets in an infinite loop because the glyph width of the
13889         continuation glyph is 65535.
13890
13891         * lisp.h:
13892         Extern message-box stuff.
13893
13894         * window.c (allocate_window):
13895         * window.c (make_dummy_parent):
13896         * window.c (Fset_window_configuration):
13897         Use EQUAL not EQ for subwindow caches to make them work a bit
13898         better. (Something is still very broken.)
13899
13900
13901 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13902
13903         * glyphs.c (image_instantiate): Suppress gcc warnings.
13904         (Fmake_image_instance): Fix doc string.
13905         * specifier.c (Fmake_specifier): Ditto.
13906
13907 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13908
13909         * paths.h.in (PATH_LOCK): Removed.
13910         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13911         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13912
13913 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13914
13915         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13916         Document (featurep '(and xemacs 21.02)).
13917
13918 2000-05-09  Ben Wing  <ben@xemacs.org>
13919
13920         * buffer.c (complex_vars_of_buffer):
13921         update modeline-format doc.
13922
13923         * device.h:
13924         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13925
13926         * emacs.c:
13927         timeline of all released versions of Emacs, for use in creating
13928         authorship comments and in synching up.
13929
13930         * glyphs-widget.c (image_instantiator_buttons):
13931         * glyphs-widget.c (image_instantiator_edit_fields):
13932         * glyphs-widget.c (image_instantiator_combo_box):
13933         * glyphs-widget.c (image_instantiator_scrollbar):
13934         * glyphs-widget.c (image_instantiator_progress_guage):
13935         * glyphs-widget.c (image_instantiator_tree_view):
13936         * glyphs-widget.c (image_instantiator_tab_control):
13937         * glyphs-widget.c (image_instantiator_labels):
13938         * glyphs-widget.c (image_instantiator_layout):
13939         * glyphs-widget.c (image_instantiator_native_layout):
13940         rename decode_domain method to governing_domain.
13941
13942         * glyphs.c:
13943         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13944         * glyphs.c (add_entry_to_device_ii_format_list):
13945         make sure we don't put an entry more than once into the list.
13946         * glyphs.c (check_instance_cache_mapper):
13947         *************************************************************
13948         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13949         HAVE BEEN GETTING.
13950         *************************************************************
13951         * glyphs.c (get_image_instantiator_governing_domain):
13952         clean up, expand on new concept of governing domain.
13953         * glyphs.c (instantiate_image_instantiator):
13954         * glyphs.c (allocate_image_instance):
13955         use governing_domain instead of cache_domain in naming.
13956         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13957         * glyphs.c (make_image_instance_1):
13958         * glyphs.c (Fmake_image_instance):
13959         allow for any domain (not just device), and process the
13960         governing domain correctly.  very big doc fix.
13961         * glyphs.c (Fimage_instance_domain):
13962         new primitive, to retrieve the governing domain of an image instance.
13963         * glyphs.c (image_instantiate):
13964         use new governing_domain stuff.  this fixes a crash you could get
13965         by instantiating certain widget glyphs in frame locales. (should
13966         signal an error instead of crashing.)
13967         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13968         * glyphs.c (Fglyphp): clean up doc.
13969         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13970         * glyphs.c (syms_of_glyphs):
13971         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13972         * glyphs.c (image_instantiator_format_create): add some comments about
13973         bogus code.
13974         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13975         for current-display-table. (Apparently Hrjove implemented in 1998 a
13976         design I wrote up in 1996, but didn't update the doc string.)
13977
13978         * glyphs.h: clean up a doc string.
13979         * glyphs.h (governing_domain):
13980         * glyphs.h (struct image_instantiator_methods):
13981         changes for governing_domain stuff.
13982
13983         * gutter.c:
13984         * gutter.c (Fgutter_specifier_p):
13985         * gutter.c (Fgutter_size_specifier_p):
13986         * gutter.c (Fgutter_visible_specifier_p):
13987         * objects.c:
13988         * objects.c (Fcolor_specifier_p):
13989         * objects.c (Ffont_specifier_p):
13990         * objects.c (Fface_boolean_specifier_p):
13991         doc strings moved to make-*-specifier.
13992
13993         * redisplay.c (add_disp_table_entry_runes_1):
13994         * redisplay.c (generate_fstring_runes):
13995         * redisplay.c (screen):
13996         add random comments and doc strings.
13997
13998         * specifier.c:
13999         * specifier.c (Fmake_specifier):
14000         major overhaul of this doc string.
14001
14002         * specifier.c (Fvalid_specifier_domain_p):
14003         comment about the bogosity of image instances being domains.
14004         * specifier.c (decode_domain):
14005         now non-static, used in glyphs.c.
14006         * specifier.c (specifier_instance):
14007         comment about the bogosity of image instances being domains.
14008         * specifier.c (Fgeneric_specifier_p):
14009         move doc string to make-generic-specifier.
14010         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
14011         rebackslashify.
14012
14013         * specifier.h:
14014         * specifier.h (DOMAIN_FRAME):
14015         * specifier.h (DOMAIN_LIVE_P):
14016         * specifier.h (DOMAIN_XDEVICE):
14017         rebackslashify.
14018         add comments about problems with these macros.
14019         prototype for decode_domain.
14020
14021         * toolbar.c:
14022         * toolbar.c (Ftoolbar_specifier_p):
14023         move doc string to `make-toolbar-specifier'.
14024
14025         * window.c (window_unmap_subwindows_cache_mapper):
14026         *************************************************************
14027         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
14028         HAVE BEEN GETTING.
14029         *************************************************************
14030
14031 2000-05-09  Andy Piper  <andy@xemacs.org>
14032
14033         * glyphs.h: declare reset_frame_subwindow_instance_cache.
14034
14035         * window.c (Fset_window_configuration): reset the frame subwindow
14036         cache and re-initialize the window subwindow caches.
14037
14038         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
14039
14040 2000-05-09  Ben Wing  <ben@xemacs.org>
14041
14042         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
14043         DWORD.
14044
14045 2000-04-26  Mike Woolley  <mike@bulsara.com>
14046
14047         * ntheap.c: Changed recreate_heap to limit the amount reserved
14048         for the heap to that which is actually available. Also now
14049         displays a message box (with some dignostics) in the event that
14050         it still can't start.
14051
14052 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
14053
14054         * callproc.c (Fold_call_process_internal): GCPRO path
14055
14056 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
14057
14058         Patch by Bill Perry.
14059
14060         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
14061         back data instead of #ifdef.
14062         (Fscrollbar_page_down): ditto.
14063
14064 2000-05-07  Ben Wing  <ben@xemacs.org>
14065
14066         * buffer.h:
14067         Kludge for defining Qmswindows_tstr.
14068
14069         * nt.c:
14070         * nt.c (open_input_file):
14071         * nt.c (open_output_file):
14072         * nt.c (rva_to_section):
14073         * nt.c (mswindows_executable_type):
14074         Move all memory-mapped-file routines here (some were in unexnt.c,
14075         which is bad because they are used by process-nt.c, and unexnt
14076         won't be around when portable dumping).  Synched the above routines
14077         with FSF 20.6.
14078
14079         * nt.h:
14080         Removed ifdef'd out bogus code.
14081         Fixed some prototypes.
14082
14083         * nt.h (file_data):
14084         * nt.h (OFFSET_TO_RVA):
14085         * nt.h (RVA_TO_OFFSET):
14086         * nt.h (RVA_TO_PTR):
14087         Moved the memory-mapped-file structures, macros and prototypes
14088         here, to parallel nt.c.  ntheap.h should really be removed
14089         entirely, and it's a non-portable-dumper specific file.
14090
14091         * ntheap.h (round_to_next):
14092         Moved the memory-mapped-file structures, macros and prototypes
14093         to nt.h.
14094
14095         * ntproc.c (compare_env):
14096         Moved rva_to_section and mswindows_executable_type to nt.c.
14097         Moved compare_env to process-nt.c.
14098         ntproc.c will die, one day.
14099
14100         * ntproc.c (sys_spawnve):
14101         Account for win32_ -> mswindows_.
14102
14103         * process-nt.c:
14104         * process-nt.c (struct nt_process_data):
14105         * process-nt.c (ensure_console_window_exists):
14106         * process-nt.c (compare_env):
14107         * process-nt.c (nt_create_process):
14108         * process-nt.c (nt_kill_process_by_pid):
14109         * process-nt.c (syms_of_process_nt):
14110         * process-nt.c (vars_of_process_nt):
14111         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
14112         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
14113         changes).  Eliminate our old `nt-quote-process-args' mechanism.
14114         Synch up nt_create_process with FSF 20.6 sys_spawnve.
14115         Move compare_env here from ntproc.c.
14116
14117         * process.c (Fprocess_send_region):
14118         Takes an optional fourth argument, BUFFER, which should fix some
14119         problems with call-process.
14120
14121         * syscommctrl.h:
14122         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
14123
14124         * syswindows.h:
14125         Move ICC_BAR_CLASSES to syscommctrl.h.
14126         Add preliminary macros for MSWindows/Mule.  More to come.
14127
14128         * unexnt.c:
14129         * unexnt.c (unexec):
14130         open_output_file moved to nt.c.
14131
14132
14133 2000-05-05  Andy Piper  <andy@xemacs.org>
14134
14135         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
14136         instance from the frame cache also since GC may catch up too late
14137         to make frame deletion sane.
14138
14139 2000-05-04  Andy Piper  <andy@xemacs.org>
14140
14141         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
14142         (x_finalize_image_instance): ungcpro on deletion.
14143
14144         * glyphs.c (image_instantiator_format_create): give pointers a
14145         query geometry method so that the geometry is at least set.
14146
14147         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
14148         initialize layouts if using widgets.
14149
14150 2000-05-03  Andy Piper  <andy@xemacs.org>
14151
14152         * nt.c: remove bogus reference to sysmmsystem.h
14153
14154         * gui-x.c (popup_selection_callback): fix no selection abort.
14155
14156 2000-05-02  Andy Piper  <andy@xemacs.org>
14157
14158         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
14159         (mswindows_widget_instantiate): ditto.
14160
14161         * glyphs-widget.c (initialize_widget_image_instance): initialize
14162         children correctly.
14163         (widget_instantiate): cope with children and items in the same
14164         instance.
14165
14166         * glyphs.c (mark_image_instance): cope with children as a first
14167         class member.
14168         (image_instance_equal): ditto.
14169         (image_instance_hash): ditto.
14170         (image_instance_changed): ditto.
14171
14172 2000-04-30  Andy Piper  <andy@xemacs.org>
14173
14174         * glyphs.c (subwindow_query_geometry): new function. Return some
14175         defaults.
14176         (subwindow_instantiate): don't assign dimensions if none have been
14177         given.
14178         (image_instantiator_format_create): add subwindow_query_geometry.
14179         (print_image_instance): cope with layouts as widgets.
14180
14181 2000-04-29  Andy Piper  <andy@xemacs.org>
14182
14183         * frame.c (delete_frame_internal): call
14184         free_frame_subwindow_instance_cache so that all subwindows are
14185         finalized before their parent.
14186         (mark_frame): remove subwindow_cachels.
14187         (Fmake_frame): remove subwindow_cachel manipulation.
14188         (allocate_frame_core): subwindow_instance_cache is a weak list.
14189         (delete_frame_internal): set subwindow_instance_cache to nil.
14190
14191         * glyphs-msw.c (mswindows_finalize_image_instance): make double
14192         finalization safe.
14193         (mswindows_finalize_image_instance): use the device
14194         not the domain as the domain may have died already.
14195
14196         * glyphs-x.c (x_finalize_image_instance): ditto.
14197         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
14198         HEIGHT.
14199
14200         * redisplay-output.c (redisplay_unmap_subwindows): update for
14201         subwindow instance cache as a weak list.
14202         (redisplay_unmap_subwindows_maybe): ditto.
14203         (redisplay_unmap_subwindows_except_us): ditto.
14204
14205         * glyphs.c (unmap_subwindow): error checking will check the domain
14206         so don't deal with it here. Don't use cachels anymore.
14207         (map_subwindow): ditto.
14208         (update_subwindow_cachel_data): remove old accessor names.
14209         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14210         (Fresize_subwindow): don't update cachel.
14211         (mark_subwindow_cachels):
14212         (update_subwindow_cachel_data):
14213         (add_subwindow_cachel):
14214         (get_subwindow_cachel_index):
14215         (update_subwindow_cachel):
14216         (reset_subwindow_cachels):
14217         (mark_subwindow_cachels_as_not_updated): deleted.
14218         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14219         subwindow instance to the frame cache.
14220         (find_matching_subwindow): update for subwindow instance cache as
14221         a weak list.
14222         (update_widget_instances): ditto.
14223         (image_instance_type_to_mask):inlined.
14224         (free_frame_subwindow_instance_cache): new function. finalize all
14225         subwindows that are instantiated.
14226
14227         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14228         of cachel information.
14229         (IMAGE_INSTANCE_DISPLAY_X):
14230         (IMAGE_INSTANCE_DISPLAY_Y):
14231         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14232         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14233         (XIMAGE_INSTANCE_DISPLAY_X):
14234         (XIMAGE_INSTANCE_DISPLAY_Y):
14235         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14236         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14237         remove subwindow_cachel structure and function references.
14238         (image_instance_type_to_mask): inline from glyphs.c
14239
14240         * redisplay.c (redisplay_frame): remove subwindow_cachel
14241         references.
14242
14243         * frame.h (struct frame): remove subwindow_cachels.
14244         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14245
14246         * frameslots.h: add subwindow_instance_cache.
14247
14248         * window.c (replace_window): check subwindow cache of replacement.
14249         (window_unmap_subwindows_cache_mapper):
14250         (window_unmap_subwindows): new functions. Unmap all subwindows
14251         cached on this window.
14252         (mark_window_as_deleted): unmap all subwindows.
14253
14254 2000-04-27  Andy Piper  <andy@xemacs.org>
14255
14256         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14257
14258         * glyphs-widget.c (widget_layout): return something.
14259         (layout_layout): return something. Fail if not initialized.
14260         (layout_query_geometry): ditto.
14261         (image_instantiator_native_layout): new function. Initialized the
14262         native layout type.
14263         (widget_instantiate): don't do layout stuff here.
14264
14265         * glyphs.c (instantiate_image_instantiator): reorded calling or
14266         instantiate and post_instantiate with layout in between.
14267         (image_instance_layout): be more selective about deciding whether
14268         the layout has been done or not.
14269
14270         * glyphs.h (struct image_instantiator_methods): return a value
14271         from layout_method.
14272
14273 2000-04-26  Andy Piper  <andy@xemacs.org>
14274
14275         * glyphs.c (allocate_image_instance): make initial width and
14276         height unspecified. Set initialized to 0.
14277
14278         * syscommctrl.h new file. Encapsulates commctrl.h.
14279
14280         * syswindows.h new file. Encapsulates windows.h.
14281
14282         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14283         * nt.c: ditto.
14284         * console-msw.h: ditto.
14285
14286         * redisplay-tty.c (tty_output_display_block): remove layout references.
14287
14288         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14289         window handle rather than just the frame.
14290
14291         * glyphs.c (mark_image_instance): remove layout references.
14292         (print_image_instance): ditto.
14293         (image_instance_equal): ditto.
14294         (image_instance_hash): ditto.
14295         (decode_image_instance_type): ditto.
14296         (encode_image_instance_type): ditto.
14297         (image_instantiate): ditto.
14298         (allocate_glyph): ditto.
14299         (Fimage_instance_height): ditto.
14300         (Fimage_instance_width): ditto.
14301         (update_subwindow): ditto.
14302
14303         * redisplay-x.c (x_output_display_block): recode for layouts as
14304         widgets.
14305
14306         * redisplay-output.c (redisplay_output_layout): recode for layouts
14307         as widgets.
14308         (compare_runes): remove layout references.
14309
14310         * redisplay-msw.c (mswindows_output_display_block): recode for
14311         layouts as widgets.
14312
14313         * glyphs-widget.c (image_instantiator_layout): remove
14314         layout_possible_dest_types.
14315         (layout_possible_dest_types): deleted.
14316
14317         * glyphs.h (image_instance_type): remove layout references.
14318         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14319         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14320         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14321
14322 2000-04-25  Andy Piper  <andy@xemacs.org>
14323
14324         * glyphs-widget.c (image_instantiator_buttons):
14325         (image_instantiator_edit_fields):
14326         (image_instantiator_combo_box):
14327         (image_instantiator_scrollbar):
14328         (image_instantiator_progress_guage):
14329         (image_instantiator_tree_view):
14330         (image_instantiator_tab_control):
14331         (image_instantiator_labels):
14332         (image_instantiator_layout): call default post_instantiate method.
14333         (widget_post_instantiate): new function. Simply lays out the
14334         widgets.
14335
14336         * glyphs.h (struct image_instantiator_methods): add
14337         post_instantiate method.
14338
14339         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14340         method calls.
14341
14342 2000-04-23  Andy Piper  <andy@xemacs.org>
14343
14344         * glyphs.h (struct image_instantiator_methods): add
14345         decode_domain_method.
14346         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14347         derived from the domain.
14348         (IMAGE_INSTANCE_FRAME): new accessor.
14349         (XIMAGE_INSTANCE_FRAME): ditto.
14350
14351         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14352         instead of _SUBWINDOW_FRAME.
14353         (finalize_image_instance): ditto.
14354         (Fimage_instance_foreground): ditto.
14355         (Fimage_instance_background): ditto.
14356         (image_instantiate): ditto.
14357         (update_subwindow_cachel): ditto.
14358         (update_subwindow): ditto.
14359         (unmap_subwindow): ditto.
14360         (map_subwindow): ditto
14361         (subwindow_instantiate): ditto.
14362         * glyphs-msw.c (mswindows_update_widget): ditto.
14363         (mswindows_progress_gauge_instantiate): ditto.
14364         (mswindows_tab_control_update): ditto.
14365         * glyphs-x.c (x_update_widget): ditto.
14366         (x_widget_instantiate): ditto.
14367         (x_tab_control_instantiate): ditto.
14368         (x_tab_control_update): ditto.
14369         * event-msw.c (mswindows_wnd_proc): ditto
14370
14371         * glyphs-widget.c (image_instantiator_layout): use
14372         subwindow_decode_domain.
14373         (image_instantiator_buttons): ditto.
14374         (image_instantiator_edit_fields): ditto.
14375         (image_instantiator_combo_box): ditto.
14376         (image_instantiator_scrollbar): ditto.
14377         (image_instantiator_progress_guage): ditto.
14378         (image_instantiator_tree_view): ditto.
14379         (image_instantiator_tab_control): ditto.
14380         (image_instantiator_labels): ditto.
14381         (image_instantiator_layout): ditto.
14382
14383         * glyphs.c: add instance error checking to many functions.
14384         (instantiate_image_instantiator): decode device from cache_domain.
14385         (image_instantiate): partially rewrite by using
14386         decode_image_instantiator_domain to determine what domain the
14387         instance needs to be cached in.
14388         (decode_image_instantiator_domain): new function. Determine what
14389         domain the image needs to be cached in.
14390         (check_window_subwindow_cache): new error checking function.
14391         (check_instance_cache_mapper): ditto.
14392         (check_image_instance_structure): ditto.
14393         (subwindow_decode_domain): new function. Encodes a window as a
14394         subwindow's cache domain.
14395         (image_instantiator_format_create): use it for text and
14396         subwindows.
14397
14398 2000-04-21  Andy Piper  <andy@xemacs.org>
14399
14400         * glyphs.c (image_instance_device): new function.
14401         (image_instance_frame): new function.
14402         (image_instance_window): new function.
14403         (image_instance_live_p): new function.
14404
14405         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14406         cache to nil.
14407
14408         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14409         (IMAGE_INSTANCE_DOMAIN): new accessor.
14410         (XIMAGE_INSTANCE_DOMAIN): ditto.
14411
14412         * glyphs-x.c (x_finalize_image_instance): device->domain.
14413
14414         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14415         (mswindows_finalize_image_instance): ditto.
14416
14417         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14418         (gif_instantiate): ditto.
14419         (png_instantiate): ditto.
14420         (tiff_instantiate): ditto.
14421
14422         * glyphs.c (instantiate_image_instantiator): use domain rather
14423         than device.
14424         (mark_image_instance): device -> domain.
14425         (print_image_instance): ditto.
14426         (finalize_image_instance): ditto.
14427         (image_instance_equal): ditto.
14428         (allocate_image_instance): ditto.
14429         (Fcolorize_image_instance): ditto.
14430         (query_string_geometry): ditto.
14431         (image_instantiate): ditto
14432         (query_string_font): ditto.
14433         (image_instantiate): ditto.
14434         (update_subwindow): ditto.
14435         (unmap_subwindow): ditto.
14436         (map_subwindow): ditto.
14437         (subwindow_instantiate): ditto.
14438
14439         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14440         (DOMAIN_FRAME): ditto.
14441         (DOMAIN_WINDOW): ditto.
14442         (DOMAIN_LIVE_P): ditto.
14443         (XDOMAIN_DEVICE): ditto.
14444         (XDOMAIN_FRAME): ditto.
14445         (XDOMAIN_WINDOW): ditto.
14446
14447         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14448         a valid specifier domain.
14449
14450 2000-04-19  Andy Piper  <andy@xemacs.org>
14451
14452         * glyphs-widget.c (syms_of_glyphs_widget): remove
14453         widget-callback-current-channel.
14454         (vars_of_glyphs_widget): ditto.
14455         * glyphs.h: ditto
14456
14457         * gui.c (get_gui_callback): revert to previous behaviour.
14458
14459 2000-04-18  Andy Piper  <andy@xemacs.org>
14460
14461         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14462         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14463         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14464
14465         * glyphs.c (image_instance_equal): add margin_width.
14466         (image_instance_hash): ditto.
14467
14468         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14469         (layout_query_geometry): ditto.
14470         (layout_layout): ditto.
14471         (syms_of_glyphs_widget): add margin-width.
14472         (image_instantiator_layout): allow margin-width.
14473
14474         * glyphs.c (update_widget_instances): make a normal function.
14475         (syms_of_glyphs): remove Qupdate_widget_instances.
14476         * glyphs.h: ditto.
14477
14478         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14479         so that we don't corrupt ideas about the last event or
14480         command. Remove widget-callback-current-channel fiddling.
14481         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14482
14483 2000-05-01  Martin Buchholz <martin@xemacs.org>
14484
14485         * XEmacs 21.2.33 is released.
14486
14487 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14488
14489         * make-src-depend: Allow dots in header file name.
14490
14491 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14492
14493         * mule-charset.h (struct charset_lookup): Add
14494         next_allocated_1_byte_leading_byte and
14495         next_allocated_2_byte_leading_byte.
14496         * mule-charset.c: Move above two variables so that those values
14497         will be dumped.
14498
14499 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14500
14501         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14502         when string length is zero.
14503         (find_charsets_in_emchar_string): Ditto.
14504
14505 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14506
14507         * lisp.h: extern Qdialog and Qmenubar.
14508
14509         * gui-x.c: added events.h.
14510                 also fixed typo which made the file uncompilable.
14511
14512         * general.c: Added Qmenubar and Qdialog
14513
14514 2000-04-28  Ben Wing  <ben@xemacs.org>
14515
14516         * frame-msw.c (mswindows_init_frame_1):
14517         * frame-msw.c (mswindows_mark_frame):
14518         * event-msw.c (mswindows_enqueue_dispatch_event):
14519         * console-msw.h:
14520         * console-msw.h (struct mswindows_frame):
14521         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14522         there are now three hash tables for callbacks.
14523         mswindows_enqueue_dispatch_event is no longer static.
14524
14525         * dialog-x.c (maybe_run_dbox_text_callback):
14526         * dialog-x.c (dbox_descriptor_to_widget_value):
14527         switch to new cons3 form for callbacks.
14528
14529         * glyphs-msw.c (mswindows_register_gui_item):
14530         * glyphs-msw.c (mswindows_widget_instantiate):
14531         * glyphs-msw.c (add_tree_item):
14532         * glyphs-msw.c (add_tab_item):
14533         new image instance parameter, so it can be passed to callback-ex.
14534         respect :callback-ex as well as :callback.
14535
14536         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14537         add :callback-ex.
14538
14539         * glyphs.c (print_image_instance):
14540         prettify, e.g. now prints widget type.
14541
14542         * gui-x.h:
14543         certain funs have new image instance parameter.
14544
14545         * gui.c:
14546         * gui.c (get_gui_callback):
14547         * gui.c (gui_item_add_keyval_pair):
14548         * gui.c (gui_item_init):
14549         * gui.c (gui_add_item_keywords_to_plist):
14550         * gui.c (mark_gui_item):
14551         * gui.c (gui_item_hash):
14552         * gui.c (gui_item_equal):
14553         * gui.c (copy_gui_item):
14554         * gui.c (syms_of_gui):
14555         recognize callback-ex in a number of places.
14556         also, fix the annoying "can't get out of yes-no dialog" bug.
14557
14558         * gui.h:
14559         * gui.h (struct Lisp_Gui_Item):
14560         recognize callback-ex in a number of places.
14561
14562         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14563         new parameter in button_item_to_widget_value.
14564
14565         * glyphs-x.c (x_update_widget):
14566         * glyphs-x.c (x_button_instantiate):
14567         * glyphs-x.c (x_button_update):
14568         * glyphs-x.c (x_progress_gauge_instantiate):
14569         * glyphs-x.c (x_edit_field_instantiate):
14570         * glyphs-x.c (x_combo_box_instantiate):
14571         * glyphs-x.c (x_tab_control_instantiate):
14572         * glyphs-x.c (x_label_instantiate):
14573         new image instance parameter in various places.
14574
14575         * event-Xt.c:
14576         * event-Xt.c (enqueue_Xt_dispatch_event):
14577         this fun gets exported.
14578
14579         * gui-msw.c:
14580         * gui-msw.c (mswindows_handle_gui_wm_command):
14581         handle both :callback and :callback-ex, and generate our own
14582         event because it's one of the callback-ex arguments.
14583
14584         * gui-x.c:
14585         * gui-x.c (popup_selection_callback):
14586         handle both :callback and :callback-ex, and generate our own
14587         event because it's one of the callback-ex arguments.
14588         * gui-x.c (button_item_to_widget_value):
14589         * gui-x.c (gui_items_to_widget_values_1):
14590         * gui-x.c (gui_item_children_to_widget_values):
14591         * gui-x.c (gui_items_to_widget_values):
14592         new image instance parameter in various places.
14593
14594         * fns.c (Freplace_list):
14595         fix small typo in doc string.
14596
14597         * lisp.h:
14598         declare enqueue_Xt_dispatch_event.
14599
14600 2000-04-28  Ben Wing  <ben@xemacs.org>
14601
14602         * buffer.c:
14603         * buffer.c (Frecord_buffer):
14604         * buffer.c (syms_of_buffer):
14605         delete record-buffer-hook.
14606
14607         * fns.c:
14608         * fns.c (Freplace_list):
14609         * fns.c (syms_of_fns):
14610         new primitive replace-list.
14611
14612         * frameslots.h:
14613         slot for old buffer-alist.
14614
14615         * lisp.h:
14616         exfun replace-list.
14617
14618         * redisplay.c:
14619         * redisplay.c (redisplay_frame):
14620         * redisplay.c (syms_of_redisplay):
14621         * redisplay.c (vars_of_redisplay):
14622         new hook buffer-list-changed-hook.
14623         call it.
14624
14625 2000-04-27  Ben Wing  <ben@xemacs.org>
14626
14627         * extents.h: extern in_modeline_generation.
14628
14629         * redisplay.c (generate_formatted_string_db): set
14630         in_modeline_generation.
14631
14632         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14633         flags if in modeline generation.  otherwise frame-modified-tick
14634         is ticked far too often.
14635         Declare in_modeline_generation.
14636
14637 2000-04-26  Ben Wing  <ben@xemacs.org>
14638
14639         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14640         option.
14641         (vars_of_emacs): add quick-build as an error-checking option.
14642         A bit kludgy, but there doesn't seem much point in creating
14643         a real var for this.
14644
14645         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14646
14647 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14648
14649         * redisplay.h (struct display_line): Add a new variable,
14650         line_continuation.
14651
14652         * redisplay.c (create_text_block): Set dl->line_continuation if
14653         the line continues.
14654         (create_string_text_block): Ditto.
14655         (regenerate_window_incrementally): Use line_continuation instead
14656         of searching continuation glyph.
14657         (add_margin_runes): Call add_glyph_rune.
14658         (add_glyph_rune): Handle margin glyph.
14659
14660 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14661
14662         * filelock.c (fill_in_lock_file_name):
14663         ANSIfy.
14664         Check for IS_ANY_SEP instead of '/'.
14665         (lock_file_1):
14666         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14667         Never check errno without first seeing that system call failed.
14668         (unlock_file): Add GCPRO.
14669         (Flock_buffer): Fix docstring.
14670         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14671
14672 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14673
14674         * sysdep.c (get_pty_max_bytes):
14675         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14676         strings longer than 252 bytes.
14677
14678         * md5.c: Unconditionally include ANSI header <limits.h>
14679
14680         * glyphs-x.c (convert_EImage_to_XImage):
14681         * lisp-union.h (union Lisp_Object):
14682         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14683
14684 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14685
14686         * filelock.c (current_lock_owner): Remove unused variable o, p.
14687
14688 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14689
14690         * callint.c: Remove multiply defined symbol Qlet
14691         (syms_of_callint): ditto.
14692
14693 2000-04-14  Andy Piper  <andy@xemacs.org>
14694
14695         * general.c (syms_of_general): add last-command, this-command, let
14696         and funcall.
14697
14698         * lisp.h: declare various symbols.
14699
14700         * glyphs.h: declare Qwidget_callback_current_channel;
14701
14702         * glyphs-widget.c (syms_of_glyphs_widget): add
14703         Qgui_callback_current_channel.
14704         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14705
14706         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14707         widget-callback-current-channel when invoking the interactive
14708         arg. Also bind last-command and next-command when invoking the
14709         widget updates.
14710         * gui-x.c (popup_selection_callback): ditto.
14711
14712         * gui.c (get_gui_callback): massage args so that we are always
14713         calling eval. This allows us to add our own variable bindings
14714         outside.
14715
14716         * glyphs-x.c (x_button_instantiate): use
14717         gui_items_to_widget_values since this is GC safe.
14718         (x_progress_gauge_instantiate): ditto.
14719         (x_edit_field_instantiate): ditto.
14720         (x_label_instantiate): ditto.
14721
14722         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14723         (emacs_Xt_event_widget_focus_out): new function
14724         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14725         focus.
14726         (emacs_Xt_event_add_widget_actions): new function. add focus
14727         functions as actions.
14728         (init_event_Xt_late): use it.
14729
14730 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14731
14732         * event-stream.c (Fdispatch_event): Doc fix.
14733
14734 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14735
14736         * postgresql.c: Remove all references to PQsetenv*.
14737
14738         * postgresql.h: Remove references to PGsetenvHandler object.
14739         * lrecord.h (lrecord_type): Ditto.
14740
14741 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14742
14743         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14744         real_heigh and real_width members, and accessor macros for these.
14745
14746         * glyphs-msw.c (init_image_instance_geometry): New function.
14747         (init_image_instance_from_dibitmap): Use it.
14748         (mswindows_resource_instantiate): Use it.
14749         (init_image_instance_from_xbm_inline): Use it.
14750         (mswindows_initialize_image_instance_mask): Use real bitmap
14751         geometry.
14752         (mswindows_create_resized_bitmap): Ditto.
14753         (mswindows_create_resized_mask): Ditto.
14754
14755         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14756         and bitmap to their surface size.
14757
14758 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14759
14760         * process-unix.c (unix_send_process): Guard against process MIA
14761         after Faccept_process_output.
14762
14763 2000-04-11  Ben Wing  <ben@xemacs.org>
14764
14765         * eval.c (unbind_to_hairy): fix brokenness introduced by
14766         nanosecond speed improvements.
14767
14768 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14769
14770         * sunplay.c (init_device): To play sounds correctly, the device
14771         apparently needs to be initialized at least once by XEmacs.  Make
14772         it so.
14773
14774 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14775
14776         * redisplay.c (add_margin_runes): Add text image glyph
14777           handling.
14778
14779 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14780
14781         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14782         gcc is newer than 2.5.
14783
14784 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14785
14786         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14787
14788         * fns.c (size_bit_vector):
14789         * alloc.c (size_vector):
14790         (make_vector_internal):
14791         (make_bit_vector_internal):
14792         (sweep_bit_vectors_1):
14793         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14794
14795 2000-04-06  Andy Piper  <andy@xemacs.org>
14796
14797         * gmalloc.c (malloc): undo previous change.
14798         (malloc): ditto.
14799         (free): ditto.
14800         (realloc): ditto.
14801
14802 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14803
14804         * line-number.c (buffer_line_number): Revert to former version.
14805
14806 2000-04-06  Andy Piper  <andy@xemacs.org>
14807
14808         * gmalloc.c (malloc): add error checking.
14809         (malloc): ditto.
14810         (free): ditto.
14811         (realloc): ditto.
14812
14813         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14814         button_item_to_widget_value arg.
14815
14816         * glyphs-x.c (x_button_instantiate): add extra
14817         button_item_to_widget_value arg.
14818         (x_progress_gauge_instantiate): ditto.
14819         (x_edit_field_instantiate): ditto.
14820         (x_label_instantiate): ditto.
14821
14822         * gui-x.c (gui_items_to_widget_values_1): add extra
14823         button_item_to_widget_value arg.
14824         (button_item_to_widget_value): add extra menu_item_p arg.
14825
14826         * gui-x.h: change signature of button_item_to_widget_value.
14827
14828         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14829         button_item_to_widget_value arg.
14830
14831 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14832
14833         * buffer.h (struct buffer): auto_save_modified should be long.
14834
14835 2000-04-05  Andy Piper  <andy@xemacs.org>
14836
14837         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14838         type.
14839         (button_query_geometry): give a little more room so that athena
14840         buttons fit.
14841
14842 2000-04-05  Andy Piper  <andy@xemacs.org>
14843
14844         * faces.c (complex_vars_of_faces): The widget face should inherit
14845         the font of the gui-element face.
14846
14847 2000-04-04  Andy Piper  <andy@xemacs.org>
14848
14849         * glyphs-x.c (x_button_update): new function. unconditionally
14850         update a button's state when the instance is dirty.
14851         (image_instantiator_format_create_glyphs_x): add x_button_update.
14852         (x_widget_instantiate): remove old resize cruft.
14853
14854 2000-04-02  Andy Piper  <andy@xemacs.org>
14855
14856         * frame.c (change_frame_size_1): The introduction of gutters means
14857         that we need to allow 0 as a potential frame dimension.
14858
14859 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14860
14861         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14862         image glyph if allow_cursor.
14863         (add_hscroll_rune): Don't allow cursor to border glyph.
14864         (create_text_block): Ditto.
14865
14866         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14867         text not in buffer.
14868         (redisplay_output_layout): Call ensure_face_cachel_complete for
14869         text image glyph.
14870
14871
14872 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14873
14874         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14875
14876         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14877         not in buffer
14878
14879         * redisplay-tty.c (tty_output_display_block): Delete the routine
14880         for text image glyph
14881         * redisplay-x.c (x_output_display_block): ditto
14882         * redisplay-msw.c (mswindows_output_display_block): ditto
14883
14884 2000-02-02  Mike Alexander  <mta@arbortext.com>
14885
14886         Note: Some of these were committed by accident as part of other
14887         patches.
14888
14889         * regex.c (regex_compile): Avoid compiler warnings.
14890
14891         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14892
14893         * nt.h: Declare term_ntproc correctly.
14894
14895         * nt.c: Remove incorrect declaration of get_home_directory which
14896         is declared correctly in lisp.h.
14897
14898         * keymap.c (get_keyelt): Avoid compiler warnings.
14899         (raw_lookup_key_mapper): Avoid compiler warnings.
14900
14901         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14902
14903         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14904
14905         * filemode.c (mode_string): Avoid compiler warnings.
14906
14907         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14908         avoid warning.
14909
14910         * events-mod.h: Undef some things that winuser.h defines differently.
14911
14912         * data.c (Faset): Avoid compiler warnings.
14913
14914         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14915
14916 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14917
14918         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14919         Fall through to simple beep on error.
14920         Replace "extern" by real header file.
14921
14922         * linuxplay.c: Use nativesound.h
14923         (play_sound_data): Return error code. Be less verbose on error.
14924
14925         * sunplay.c: Use nativesound.h
14926         (play_sound_data): Return error code. Be less verbose on error.
14927
14928         * ntplay.c: Use nativesound.h
14929         (play_sound_data): Return fake error code
14930
14931         * sgiplay.c: Use nativesound.h
14932         (play_sound_data): Return error code
14933
14934         * hpplay.c: Use nativesound.h, partially implement
14935         new error code. Break compilation until finished.
14936         (play_sound_data): error code.
14937
14938         * nativesound.h (play_sound_file):
14939           (play_sound_data): Prototype in new header.
14940
14941 2000-03-31  Andy Piper  <andy@xemacs.org>
14942
14943         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14944         for toggle and radio buttons.
14945         (image_instantiator_buttons): use it.
14946
14947 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14948
14949         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14950         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14951         found. Scrollbar event probably belonged to some old config.
14952
14953 2000-03-31  Andy Piper  <andy@xemacs.org>
14954
14955         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14956         than 1.
14957         (initialize_widget_image_instance): default layout to
14958         LAYOUT_HORIZONTAL rather than 0.
14959         (widget_instantiate): reverse the item list at the end rather than
14960         every iteration.
14961         (layout_layout): re-code for the border text at the front of the
14962         item list rather than at the end.
14963         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14964         provided by the user.
14965         (widget_query_geometry): comment.
14966
14967 2000-03-30  Andy Piper  <andy@xemacs.org>
14968
14969         * glyphs-widget.c (image_instantiator_layout): allow standard
14970         widget keywords in layouts.
14971
14972         * gutter.c (output_gutter): cope with nil gutter contents.
14973
14974         * frame.c (Fset_frame_properties): add gutter docs.
14975
14976 2000-03-29  Andy Piper  <andy@xemacs.org>
14977
14978         * toolbar-msw.c (TBSTYLE_FLAT): add.
14979         (mswindows_output_toolbar): minor fiddling.
14980
14981 2000-03-29  Andy Piper  <andy@xemacs.org>
14982
14983         * gutter.c (output_gutter): force gutter size recalculation if
14984         what we are trying to display won't fit.
14985         (update_gutter_geometry): new function. A per-gutter version of
14986         update_frame_gutter_geometry.
14987         (update_frame_gutter_geometry): use it.
14988         (redraw_exposed_gutter): add extra debugging output.
14989
14990 2000-03-28  Mike Alexander  <mta@arbortext.com>
14991
14992         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
14993         (pdump_file_unmap): Implement it on Windows
14994         (pdump_file_get): Save alocated handles for pdump_file_unmap
14995
14996 2000-03-28  Andy Piper  <andy@xemacs.org>
14997
14998         * gui.c (get_gui_callback): treat Quit specially.
14999
15000 2000-03-27  Andy Piper  <andy@xemacs.org>
15001
15002         * glyphs.c (image_instantiate): be careful to check in the same
15003         way we assigned.
15004
15005 2000-03-27  Didier Verna  <didier@xemacs.org>
15006
15007         * config.h.in: define the proper SMART_INCLUDE macro.
15008         handle renaming of `foo_h_path' to `foo_h_file'.
15009
15010         * database.c: ditto.
15011
15012         * emacs.c: ditto.
15013
15014         * linuxplay.c: ditto.
15015
15016         * terminfo.c: ditto.
15017
15018         * tooltalk.h: ditto.
15019
15020 2000-03-27  Andy Piper  <andy@xemacs.org>
15021
15022         * glyphs-msw.c (mswindows_update_widget): make sure the widget
15023         gets updated whenever the face might have changed.
15024
15025 2000-03-26  Mike Alexander  <mta@arbortext.com>
15026
15027         * dumper.c (pdump_resource_free): Fix the comment.
15028
15029 2000-03-21  Olivier Galibert  <galibert@pobox.com>
15030
15031         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
15032
15033 2000-03-22  Mike Alexander  <mta@arbortext.com>
15034
15035         * dumper.c: Include Windows headers on Windows
15036         (pdump_resource_free): Add a body to the function
15037         (pdump_load): exe_name -> exe_path and add some comments.
15038
15039 2000-03-25  Mike Alexander  <mta@arbortext.com>
15040
15041         * gui.c (copy_gui_item_tree): Return a value in all cases
15042
15043 2000-03-21  Didier Verna  <didier@xemacs.org>
15044
15045         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
15046         lwlib/config.h.in.
15047         (SMART_INCLUDE): new macro.
15048         (POSTGRES_INCLUDE): new macro to include postgresql headers from
15049         the proper location.
15050
15051         * postgresql.c: use it.
15052
15053         * inline.c: ditto.
15054
15055 2000-03-24  Andy Piper  <andy@xemacs.org>
15056
15057         * gutter.c (redraw_exposed_gutters): must be "in display" when we
15058         do this.
15059
15060 2000-03-24  Andy Piper  <andy@xemacs.org>
15061
15062         * redisplay-output.c (compare_runes): use image_instance_changed
15063         to detect changes. Do not depend on glyphs_changed, only depend on
15064         dirtiness.
15065          (redisplay_output_layout): add debug messages.
15066         (compare_runes): ditto.
15067
15068         * glyphs.h: declare new functions.
15069         (struct Lisp_Image_Instance): remove percent and associated
15070         accessors.
15071
15072         * gui.h: declare new copying functions.
15073
15074         * gui.c (copy_gui_item_tree): new function.
15075         (copy_gui_item): new function.
15076         (gui_item_id_hash): revert to standard hash.
15077         (gui_item_hash): ditto.
15078         (gui_item_hash_internal): deleted.
15079         (mark_gui_item): mark value.
15080         (gui_item_add_keyval_pair): add value.
15081         (gui_item_init): ditto.
15082         (gui_add_item_keywords_to_plist): ditto.
15083         (gui_item_equal): ditto.
15084         (syms_of_gui): add Q_value.
15085
15086         * glyphs-x.c (x_progress_gauge_update): use pending items and
15087         value for setting the state.
15088         (x_update_widget): don't set items from pending here.
15089
15090         * glyphs-widget.c (update_widget): update items here.
15091         (progress_gauge_set_property): use items for storing value. Put
15092         new value in pending items.
15093
15094         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
15095         items for new value. Convert percent -> value.
15096         (mswindows_tab_control_update): don't update items here.
15097
15098         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
15099         (update_subwindow): ditto.
15100         (image_instance_changed): new function. Compare hash values and
15101         past and present widget items.
15102         (image_instantiate): We more careful about where we instantiate
15103         things.
15104         (image_instantiate): add error checking.
15105
15106         * gutter.c (syms_of_gutter): use -hook.
15107
15108 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
15109
15110         * console-tty.c (Fset_console_tty_input_coding_system): Use
15111         Qkeyboard.
15112         (Fset_console_tty_output_coding_system): Use Qterminal.
15113         (tty_init_console): Use Qkeyboard and Qterminal.
15114
15115 2000-03-21  Ben Wing  <ben@xemacs.org>
15116
15117         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
15118         From Mike Alexander <mta@arbortext.com>.
15119
15120 2000-03-21  Ben Wing  <ben@xemacs.org>
15121
15122         * event-msw.c (mswindows_need_event): Horrible kludge to fix
15123         process brokenness.  Proper implementation to come.
15124         * callproc.c:
15125         Rename call-process-internal to old-call-process-internal.
15126         New impl. in process.el.
15127
15128 2000-03-21  Martin Buchholz  <martin@xemacs.org>
15129
15130         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
15131
15132 2000-03-20  Andy Piper  <andy@xemacs.org>
15133
15134         * glyphs.c (full_list_hash): make hashes of the same elements in
15135         different orders return different values.
15136
15137 2000-03-20  Martin Buchholz <martin@xemacs.org>
15138
15139         * XEmacs 21.2.32 is released.
15140
15141 2000-03-20  Martin Buchholz  <martin@xemacs.org>
15142
15143         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
15144         (DFC_MALLOC_USE_CONVERTED_DATA):
15145         Add aliasing-safe casts to allow use with char* or unsigned char*
15146         lvalues.
15147
15148         * eldap.c (Fldap_open):
15149         (Fldap_search_basic):
15150         (Fldap_add):
15151         (Fldap_modify):
15152         Make C++-compilable.
15153         Make sure GCPRO'ed variables are initialized.
15154         Use temp variables to avoid repeated calls to Flength.
15155
15156 2000-03-16  Martin Buchholz  <martin@xemacs.org>
15157
15158         * sysfile.h:
15159         Make sure PATH_MAX is always defined.
15160         Include limits.h for PATH_MAX.
15161         Deprecate use of MAXPATHLEN.
15162
15163 2000-03-10  Martin Buchholz  <martin@xemacs.org>
15164
15165         * emacs.c: Add reinit_vars_of_fileio.
15166         * symsinit.h: Add reinit_vars_of_fileio.
15167         * fileio.c (reinit_vars_of_fileio): New.
15168         * fileio.c (Fmake_temp_name):
15169         Initialize temp_name random number from microseconds to make
15170         collisions even less likely.  Initialize always at process startup
15171         time.  (make-temp-name) used to return the same file name twice in
15172         a row when PDUMP.
15173         Random stylistic fiddling.
15174         Comment fixes.
15175
15176 2000-03-20  Andy Piper  <andy@xemacs.org>
15177
15178         * glyphs.c (image_instantiate): allow text glyphs to be
15179         instantiated in the minibuffer window.
15180
15181 2000-03-19  Andy Piper  <andy@xemacs.org>
15182
15183         * glyphs.c (image_instance_hash): be careful about which items we
15184         hash on.
15185
15186         * glyphs-widget.c (tab_control_set_property): record into pending
15187         items rather than the actual items.
15188
15189         * glyphs-x.c (x_update_widget): use pending items to update with.
15190
15191         * glyphs-msw.c (mswindows_tab_control_update): use pending items
15192         to update with.
15193
15194         * glyphs.c (mark_image_instance): mark pending items.
15195
15196         * window.c (Fset_window_configuration): record the buffer.
15197         (Fselect_window): totally revert previous change which breaks many
15198         things.
15199
15200 2000-03-18  Andy Piper  <andy@xemacs.org>
15201
15202         * glyphs-msw.c (mswindows_tab_control_update): force selected
15203         item.
15204
15205         * glyphs.c (image_instantiate): don't allow the minibuffer as a
15206         window domain cache, otherwise we get inconsistencies at
15207         startup. There is something fishy at startup which can lead to the
15208         minibuffer being the selected window when the gutter content is
15209         instantiated.
15210
15211         * gui.c (parse_gui_item_tree_list): add probably unnecessary
15212         gcpros.
15213         (parse_gui_item_tree_children): ditto.
15214         (parse_gui_item_tree_item): ditto.
15215
15216         * glyphs.c (Fupdate_widget_instances): return something.
15217
15218 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15219
15220         * window.c (Fselect_window): Undo 2000-03-17 change.
15221
15222 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15223
15224         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15225         against v7.0 libraries.  Insta-coredump city until the postgres
15226         folks fix it.
15227
15228 2000-03-17  Andy Piper  <andy@xemacs.org>
15229
15230         * faces.c (complex_vars_of_faces): don't give the widget face an
15231         inherited background pixmap.
15232
15233         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15234         selected item.
15235
15236         * event-stream.c (Fdispatch_non_command_events): return something.
15237
15238         * gutter.c (output_gutter): use widget face.
15239         (clear_gutter): ditto.
15240
15241         * NEWS: adjust again.
15242
15243         * window.c (Fselect_window): make sure this runs to completion to
15244         avoid oddities with Fset_window_configuration.
15245         (Fcurrent_window_configuration): in general do not save the
15246         minibuffer as the selected window.
15247
15248         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15249
15250 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15251
15252         * emacs.c (Frunning_temacs_p): Revert previous patch.
15253         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15254
15255 2000-03-16  Andy Piper  <andy@xemacs.org>
15256
15257         * glyphs-x.c (x_tab_control_update): if no widget values then
15258         return.
15259
15260         * NEWS: update for new features.
15261
15262         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15263         synthetic event to the native system.
15264         (reinit_vars_of_event_Xt): set force_event_pending to
15265         emacs_Xt_force_event_pending.
15266
15267         * events.h (struct event_stream): add force_event_pending.
15268
15269         * specifier.c (recompute_one_cached_specifier_in_window): add
15270         comment.
15271
15272         * redisplay.c (redisplay_frame): don't call
15273         update_frame_subwindows. Reset subwindow cachels when
15274         subwindows_changed, removing this was an optimization too far.
15275
15276         * redisplay-output.c (compare_runes): reorganize so that we catch
15277         glyph changes when we want them. Set optimize_output when this
15278         would help layouts.
15279         (redisplay_output_layout): remove frame_really_changed, use
15280         optimize_output instead.
15281
15282         * redisplay-msw.c (mswindows_output_display_block): reset
15283         optimize_output after outputting a glyph.
15284         * redisplay-x.c (x_output_display_block): ditto.
15285         * redisplay-tty.c (tty_output_display_block): ditto.
15286
15287         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15288         functions.
15289         (gutter_specs_changed): do specific gutter positions.
15290         (top_gutter_specs_changed): new function. Only update the
15291         specified gutter specs.
15292         (bottom_gutter_specs_changed): ditto.
15293         (left_gutter_specs_changed): ditto.
15294         (right_gutter_specs_changed): ditto.
15295
15296         * gui.c (gui_item_hash_internal): new function, does a real hash.
15297         (gui_item_id_hash): use it.
15298         (gui_item_hash): hash the eval'ed gui_item.
15299
15300         * gui-x.c (popup_selection_callback): send an eval event to call
15301         Fupdate_widget_instances.
15302
15303         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15304         to call Fupdate_widget_instances.
15305
15306         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15307         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15308
15309         * glyphs.c: (update_frame_subwindows): deleted.
15310         (Fupdate_widget_instances): new function for updating the dirty
15311         state of widgets that might have changed.
15312         (syms_of_glyphs): add Qupdate_widget_instances.
15313         (full_list_hash): hash a list completely.
15314         (image_instance_hash): use it for items and properties.
15315
15316         * frame-msw.c (mswindows_size_frame_internal): remove unused
15317         variable.
15318
15319         * faces.h (struct face_cachel): fix comment.
15320
15321         * event-stream.c (Fdispatch_non_command_events): new
15322         function. Process non-command events, forcing an event cycle
15323         beforehand.
15324         (syms_of_event_stream): declare.
15325         (event_stream_force_event_pending): new function. Force an event
15326         on the native event queue so that an event cycle will occur next
15327         time we check.
15328
15329         * event-msw.c:
15330         (struct ntpipe_shove_stream):
15331         (mswindows_enqueue_dispatch_event):
15332         (mswindows_dequeue_dispatch_event):
15333         (mswindows_cancel_dispatch_event):
15334         (mswindows_pump_outstanding_events):
15335         (mswindows_drain_windows_queue):
15336         (mswindows_handle_paint):
15337         (mswindows_wnd_proc):
15338         (mswindows_key_to_emacs_keysym):
15339         (get_process_input_waitable):
15340         (emacs_mswindows_delete_stream_pair): re-indent file.
15341         (mswindows_need_event): do not process further fds if the windows
15342         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15343         fixes the 100% cpu problem.
15344         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15345
15346 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15347
15348         * alloc.h: New.
15349         * dumper.h: New.
15350         * dumper.c: New.
15351
15352         * emacs.c: Moved dump file searching to dumper.c.
15353         (Frunning_temacs_p): Fixed.
15354
15355         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15356         last_lrecord_type_index_assigned.
15357
15358 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15359
15360         * symsinit.h: Added reinit parameter to init_console_stream
15361         declaration.
15362
15363         * lisp.h: Added file parameter to pdump_load declaration.
15364
15365         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15366         support.  Added dump file searching.
15367
15368         * config.h.in: Added EMACS_PROGNAME.
15369
15370         * console-stream.c (init_console_stream): Fix reinitialisation
15371         when running from temacs.
15372
15373         * alloc.c (pdump): Add id support.
15374         (pdump_load): Add file parameter and signature/id support.
15375
15376         * Makefile.in.in: Add full pdump support.
15377
15378 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15379
15380         * postgresql.c: Update documentation to reflect latest code
15381         status.
15382         (print_result): Show tuple counts in printed representation when
15383         appropriate.
15384         (Fpq_put_nbytes): MULE-ize.
15385         (Fpq_get_line_async): Ditto.
15386
15387 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15388
15389         * postgresql.c (Fpq_lo_import): Fix return value.
15390         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15391
15392 2000-03-13  Ben Wing  <ben@xemacs.org>
15393
15394         * alloc.c (pdump_load):
15395         Fix compile warning under mswin.
15396
15397 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15398
15399         * postgresql.c: Mule-ization, bug fixes.
15400         Use PG_CODING to encapsulate coding system name changes.
15401         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15402         (pg-coding-system): Create.
15403
15404         (Fpq_conn_defaults): Mule-ize.
15405         (Fpq_connectdb): Mule-ize & bug fix.
15406         (Fpq_connect_start): Mule-ize.
15407         (Fpq_set_client_encoding): Mule-ize.
15408         (Fpq_finish): Document `DEAD' connection status.
15409         (Fpq_clear): Ditto.
15410         (Fpq_pgconn): Mule-ize.
15411         (Fpq_exec): Mule-ize & bug fix.
15412         (Fpq_send_query): Ditto.
15413         (Fpq_get_result): Ditto.
15414         (Fpq_res_status): Mule-ize.
15415         (Fpq_result_error_message): Mule-ize.
15416         (Fpq_ntuples): fix comments.
15417         (Fpq_fname): Mule-ize.
15418         (Fpq_fnumber): Mule-ize.
15419         (Fpq_ftype): fix comments.
15420         (Fpq_get_value): Mule-ize.
15421         (Fpq_cmd_status): Ditto.
15422         (Fpq_cmd_tuples): Ditto.
15423         (Fpq_oid_value): Ditto.
15424         (Fpq_notifies): Ditto.
15425         (Fpq_lo_import): Ditto.
15426         (Fpq_lo_export): Ditto.
15427         (Fpq_get_line): Ditto.
15428         (Fpq_put_line): Mule-ize and bug fix.
15429         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15430
15431 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15432
15433         * postgresql.c (vars_of_postgresql): Mule-ize.
15434         (Fpq_conn_defaults): Ditto.
15435
15436 2000-03-12  Ben Wing  <ben@xemacs.org>
15437
15438         * alloc.c (Fmake_byte_code):
15439         * alloc.c (debug_string_purity_print):
15440         * alloc.c (pdump_backtrace):
15441         * alloc.c (pdump_get_indirect_count):
15442         * alloc.c (pdump_register_sub):
15443         * alloc.c (pdump_register_object):
15444         * alloc.c (pdump_register_struct):
15445         * alloc.c (pdump_dump_data):
15446         * alloc.c (pdump_reloc_one):
15447         Minor cleanups.
15448
15449         * console-msw.c:
15450         * console-msw.c (GetConsoleHwnd):
15451         * console-msw.c (msw_hide_console):
15452         * console-msw.c (msw_show_console):
15453         * console-msw.c (msw_ensure_console_buffered):
15454         * console-msw.c (msw_output_console_string):
15455         * console-msw.c (console_type_create_mswindows):
15456
15457         a) Added functions to manipulate the console window for use with
15458         shell support.
15459
15460         b) Added support for writing text to the console, which is now
15461         used under Windows when xemacs is not being run non-interactively,
15462         to write text that would otherwise be destined for stdout because
15463         under these circumstances, text written to stdout tends to
15464         disappear and not be seen.
15465
15466         * console-msw.h:
15467         * event-Xt.c:
15468         * event-Xt.c (x_event_to_emacs_event):
15469         * event-Xt.c (describe_event_window):
15470         * events-mod.h (XEMACS_MOD_CONTROL):
15471         * events.c:
15472         * events.c (Fmake_event):
15473         * events.c (character_to_event):
15474         * events.c (event_to_character):
15475         * events.c (format_event_object):
15476         * events.c (Fevent_modifiers):
15477         * events.h:
15478         * events.h (struct key_data):
15479         * events.h (struct button_data):
15480         * events.h (struct misc_user_data):
15481         * frame-x.c (Fcde_start_drag_internal):
15482         * frame-x.c (Foffix_start_drag_internal):
15483         * gpmevent.c (Freceive_gpm_event):
15484         * keymap.c:
15485         * keymap.c (bucky_sym_to_bucky_bit):
15486         * keymap.c (control_meta_superify):
15487         * keymap.c (make_key_description):
15488         * keymap.c (keymap_lookup_directly):
15489         * keymap.c (create_bucky_submap):
15490         * keymap.c (keymap_store):
15491         * keymap.c (define_key_check_and_coerce_keysym):
15492         * keymap.c (define_key_parser):
15493         * keymap.c (define_key_alternate_name):
15494         * keymap.c (Fdefine_key):
15495         * keymap.c (raw_lookup_key_mapper):
15496         * keymap.c (struct map_keymap_unsorted_closure):
15497         * keymap.c (map_keymap_unsorted_mapper):
15498         * keymap.c (map_keymap_sort_predicate):
15499         * keymap.c (map_keymap_sorted):
15500         * keymap.c (accessible_keymaps_mapper_1):
15501         * keymap.c (where_is_recursive_mapper):
15502         * keymap.c (describe_map_mapper):
15503         * keymap.c (describe_map_sort_predicate):
15504         * keymap.c (describe_map):
15505         * keymap.c (complex_vars_of_keymap):
15506         And a number of other files, the key modifier preprocessor
15507         constants that xemacs uses have names that conflict with constants
15508         defined under MS Windows for other purposes, so they were renamed
15509         to begin with the prefix XEMACS_. The variables that hold such
15510         modifiers were changed to consistently be of type int to fix
15511         various compile warnings.
15512
15513         * console.c (complex_vars_of_console):
15514         * device.c:
15515         * device-msw.c:
15516         * device-msw.c (mswindows_finish_init_device):
15517         * device-msw.c (msw_get_workspace_coords):
15518         * device-msw.c (mswindows_device_system_metrics):
15519         and various other files, added support for a new
15520         device property called offset-workspace which returns the position
15521         of the upper left corner of the workspace area and goes along with
15522         the existing size-workspace property.
15523
15524         * dialog-msw.c:
15525         * dialog-msw.c (push_bufbyte_string_as_unicode):
15526         * dialog-msw.c (mswindows_popup_dialog_box):
15527         Added support for XEmacs-style accelerator specifications in
15528         button text.  Note: I didn't add support for this under X Windows,
15529         and somebody needs to do this.
15530
15531         * dialog.c:
15532         * dialog.c (Fpopup_dialog_box):
15533         Documented the support for accelerators that was just mentioned.
15534
15535         editfns.c (get_home_directory): Changed behavior under Windows
15536         when HOME not defined; former behavior was irretrievably broken.
15537
15538         * emacs.c:
15539         * emacs.c (main_1):
15540         * emacs.c (main):
15541         * minibuf.c (clear_echo_area_internal):
15542         * minibuf.c (echo_area_append):
15543         * print.c:
15544         * print.c (std_handle_out_external):
15545         * print.c (std_handle_out_va):
15546         * print.c (fatal):
15547         * print.c (write_string_to_stdio_stream):
15548         * print.c (output_string):
15549         * print.c (debug_print):
15550         * print.c (debug_backtrace):
15551         * print.c (debug_short_backtrace):
15552         Cleaned up the code that prints text to stdout so that this can be
15553         changed to output into a console window instead under MS Windows,
15554         as described above.
15555
15556         * eval.c:
15557         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15558         * eval.c (internal_catch):
15559         * eval.c (unwind_to_catch):
15560         * eval.c (throw_or_bomb_out):
15561         * eval.c (condition_case_1):
15562         * eval.c (signal_1):
15563         * eval.c (check_error_state_sanity):
15564         * eval.c (call_with_suspended_errors_1):
15565         * eval.c (call_with_suspended_errors):
15566         * eval.c (reinit_vars_of_eval):
15567         Added code to catch throw loops and check for a pesky bug that may
15568         be gone now.
15569
15570         * event-msw.c:
15571         * event-msw.c (key_needs_default_processing_p):
15572         * event-msw.c (mswindows_wnd_proc):
15573         * event-msw.c (mswindows_modifier_state):
15574         * event-msw.c (emacs_mswindows_quit_p):
15575         * event-msw.c (vars_of_event_mswindows):
15576         a) Added support for using the alt key to select menu items as is
15577         standard under MS Windows.  This is controlled using the variable
15578         menu-accelerator-enabled, just like under X Windows.  There is an
15579         option on the options menu to turn this support on.  I really
15580         think that it should be on by default under Windows, but I'm not
15581         going to make this change yet.
15582
15583         b)  Added support for dynamic display size changes under Windows.
15584
15585         * event-stream.c:
15586         * event-stream.c (maybe_echo_keys):
15587         * event-stream.c (Fnext_event):
15588         * event-stream.c (command_builder_find_leaf):
15589         * event-stream.c (lookup_command_event):
15590         * event-stream.c (execute_command_event):
15591         * event-stream.c (pre_command_hook):
15592         * event-stream.c (post_command_hook):
15593         * event-stream.c (syms_of_event_stream):
15594         * event-stream.c (vars_of_event_stream):
15595         * event-stream.c (complex_vars_of_event_stream):
15596         * events.h (struct command_builder):
15597
15598         a) Tried to clean up a little bit the horribly written x-specific
15599         accelerator code that crept into this file.  I moved this code
15600         into menubar-x.c where it belongs. I also needed to move the
15601         command builder structure into the file events.h because it is
15602         accessed directly by this accelerator code.  What I didn't do, but
15603         which should be done at some point, is to properly abstract this
15604         code using device methods instead of the kludgy way that it
15605         currently hooks into the event code.
15606
15607         b) Added the lisp variables this-command-properties and
15608         last-command- properties, which should be used to synchronize two
15609         adjacent commands in preference to playing games with the variable
15610         this-command, which is typically what happens.
15611
15612         c) Added some slightly nasty code to hook into the lisp support
15613         for shifted- motion-key selection.  This is actually necessary for
15614         somewhat complicated reasons, which are described in
15615         simple.el. (NB: I think the proper thing would be to have the code
15616         that calls the pre and post command hooks also call out to generic
15617         lisp functions in simple.el, where all built-in stuff could be
15618         added.  I will think about this more.)
15619
15620         * event-unixoid.c (poll_fds_for_input):
15621         * lread.c (readchar):
15622         * redisplay-tty.c (tty_clear_frame):
15623         * redisplay-x.c (x_get_gc):
15624         * signal.c (interrupt_signal):
15625         And a whole bunch of other files: fixed up places that printed
15626         directly to stderr to instead call the function stderr_out so that
15627         the changes I made under Windows work correctly.
15628
15629         * filemode.c (mode_string):
15630         Warning fixes.
15631
15632         * frame-msw.c:
15633         * frame-msw.c (mswindows_size_frame_internal):
15634         Fixed the computation of frame size and position to keep the frame
15635         within the workspace area, rather than within the physical
15636         dimensions of the screen, so that the frame doesn't overlap window
15637         manager decorations, such as the start menu and toolbar, typically
15638         at the bottom of the screen.
15639
15640         * frame.c (vars_of_frame):
15641         Changed the default frame title format under MS Windows to consist
15642         of buffername-XEmacs, which is standard under MS Windows.  I think
15643         it might be a good idea to change this everywhere because I think
15644         it is superior to the current frame title format, but this is the
15645         kind of change that is likely to cause some people to get annoyed,
15646         so I'm not making it.
15647
15648         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15649
15650         * gui-msw.c (mswindows_handle_gui_wm_command):
15651         Fixed compile warnings.
15652
15653         * gui-x.c:
15654         * gui-x.c (strdup_and_add_accel):
15655         * gui-x.c (button_item_to_widget_value):
15656         * gui-x.h:
15657         Added code to automatically put an accelerator onto the beginning
15658         of menu items that don't have one as is now the standard, and is
15659         described more later.  Also fixed things so that the menu item
15660         name can be an evaluated expression, again a new standard.
15661
15662         * gui.c:
15663         * gui.c (gui_item_add_keyval_pair):
15664         * gui.c (make_gui_item_from_keywords_internal):
15665         * gui.c (gui_add_item_keywords_to_plist):
15666         * gui.c (gui_item_accelerator):
15667         * gui.c (gui_name_accelerator):
15668         * gui.c (gui_item_included_p):
15669         * gui.c (gui_item_display_flush_left):
15670         * gui.c (gui_item_display_flush_right):
15671         * gui.c (parse_gui_item_tree_item):
15672         * gui.c (parse_gui_item_tree_children):
15673         * gui.c (parse_gui_item_tree_list):
15674         Mule-ized.  Cleanup.  GCPRO addition.
15675
15676         * line-number.c (buffer_line_number):
15677         * lisp.h:
15678         * lisp.h (EMACS_INT_MAX):
15679         Added the manifest constant EMACS_INT_MIN corresponding to the
15680         existing constant EMACS_INT_MAX.  This is partially to fix compile
15681         warnings under Windows, and partly for cleanliness.
15682
15683         * menubar-msw.c:
15684         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15685         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15686         * menubar-msw.c (displayable_menu_item):
15687         * menubar-msw.c (populate_menu_add_item):
15688         * menubar-msw.c (populate_or_checksum_helper):
15689         * menubar-msw.c (populate_menu):
15690         * menubar-msw.c (update_frame_menubar_maybe):
15691         * menubar-msw.c (prune_menubar):
15692         * menubar-msw.c (msw_char_is_accelerator):
15693         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15694         * menubar-msw.c (mswindows_handle_wm_command):
15695         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15696         * menubar-msw.c (mswindows_handle_wm_initmenu):
15697         * menubar-msw.c (mswindows_update_frame_menubars):
15698         * menubar-msw.c (mswindows_free_frame_menubars):
15699         * menubar-msw.c (mswindows_popup_menu):
15700         Fixed a bug in handling accelerators where an extra character
15701         would be displayed in the menu item.  Also generalized the
15702         function displayable_menu_item because it is now used by the
15703         dialog box code as well.  And finally, added code in the functions
15704         that create the menubar to extract a list of accelerators for the
15705         top level menubar, which is used in the event code to determine
15706         whether a particular alt-key combination should be used to invoke
15707         a menu item, or should be passed through to access the standard
15708         XEmacs keymap binding for this key combination.
15709
15710         Much needed GCPROing.
15711
15712         * menubar-x.c:
15713         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15714         * menubar-x.c (menu_item_descriptor_to_widget_value):
15715         * menubar-x.c (restore_in_menu_callback):
15716         * menubar-x.c (x_popup_menu):
15717         * menubar-x.c (menu_move_up):
15718         * menubar-x.c (menu_move_down):
15719         * menubar-x.c (menu_move_left):
15720         * menubar-x.c (menu_move_right):
15721         * menubar-x.c (menu_select_item):
15722         * menubar-x.c (command_builder_operate_menu_accelerator):
15723         * menubar-x.c (menu_accelerator_junk_on_error):
15724         * menubar-x.c (command_builder_find_menu_accelerator):
15725         * menubar-x.c (Faccelerate_menu):
15726         * menubar.h:
15727         Moved a whole bunch of code here that was previously in
15728         event-stream.c as described above.  There is also code connected
15729         to the new standard of adding an accelerator to the beginning of
15730         menu items that don't have one as described above and below.
15731
15732         * menubar.c:
15733         * menubar.c (menu_parse_submenu_keywords):
15734         * menubar.c (Fmenu_find_real_submenu):
15735         * menubar.c (Fnormalize_menu_item_name):
15736         * menubar.c (syms_of_menubar):
15737         * menubar.c (vars_of_menubar):
15738         * menubar.c (complex_vars_of_menubar):
15739
15740         a) Cleaned up a bunch of documentation and improved it.
15741
15742         b) XEmacs now automatically adds an accelerator onto the beginning
15743         of any menu items that don't have one.  I did this because there
15744         will inevitably be some menu items on the main menubar that don't
15745         have accelerators on them because the package that adds that
15746         particular menu item hasn't yet been fixed up to have accelerators
15747         in them and it looked rather strange to have some items with and
15748         some items without accelerators, especially since even in items
15749         without accelerators, you can, at least under windows, still
15750         access the item through an accelerator corresponding to the first
15751         character in the item's name.  If people don't like this behavior,
15752         I can add a variable to turn it off optionally, but I'm not sure
15753         this is a good idea because we really do need to have accelerators
15754         on all of the menu items, and if a package doesn't like the
15755         accelerators being put on the first character, then it should put
15756         the accelerators where they belong.
15757
15758         c) I made a behavior change, which is that the descriptor that
15759         specifies the text of the menu item, which formerly was just a
15760         string, can now also be an evaluated expression.  This makes this
15761         descriptor parallel with all of the others, which could also be
15762         evaluated expressions.  This also obviates the need for the
15763         keyword :label, which was previously listed in the documentation
15764         as unimplemented, and which was for the same purpose.
15765
15766         d) GCPROing.
15767
15768         * ntproc.c:
15769         * ntproc.c (new_child):
15770         * ntproc.c (sys_spawnve):
15771         * ntproc.c (find_child_console):
15772         * ntproc.c (sys_kill):
15773         Fixed compile warnings.  By the way, this file should really go
15774         away entirely, and this will happen as soon as Kirill makes his
15775         final round of process cleanups, which affect the function
15776         call-process.
15777
15778         * process-nt.c:
15779         * process-nt.c (struct nt_process_data):
15780         * process-nt.c (find_process_from_pid):
15781         * process-nt.c (send_signal_the_nt_way):
15782         * process-nt.c (enable_child_signals):
15783         * process-nt.c (find_child_console):
15784         * process-nt.c (send_signal_the_95_way):
15785         * process-nt.c (nt_finalize_process_data):
15786         * process-nt.c (ensure_console_window_exists):
15787         * process-nt.c (nt_create_process):
15788         * process-nt.c (nt_kill_child_process):
15789         * process-nt.c (nt_kill_process_by_pid):
15790         * process-nt.c (nt_open_network_stream):
15791         * process-nt.c (vars_of_process_nt):
15792         Copied over code from Emacs 20.5 to correctly send signals to sub-
15793         processes under Windows 95.  Also added code to automatically
15794         create and hide console window when a sub-process is created under
15795         Windows 95, which obviates the need for the separate runemacs.exe
15796         executable, and finally implemented some variables that were
15797         implemented in Emacs 20.5, but previously not in XEmacs.  These
15798         include mswindows- start-process-share-console and
15799         mswindows-start-process-inherit-error-mode. (Both of these only
15800         apply to Windows 95.)
15801
15802         * regex.c (regex_compile): Fixed a compile warning.
15803
15804         * select-msw.c:
15805         * select-msw.c (mswindows_own_selection):
15806         * select-msw.c (mswindows_get_foreign_selection):
15807         * select-msw.c (mswindows_disown_selection):
15808         * select-msw.c (console_type_create_select_mswindows):
15809         * select-msw.c (syms_of_select_mswindows):
15810         Cleaned up the file and implemented the device method
15811         selection_exists_p, which had accidentally been left out.  Also
15812         removed four lisp functions that were remnants from before the
15813         time when the selection code was properly device abstracted.
15814         These functions are no longer needed because there are generic
15815         equivalents, and because they were added recently and don't exist
15816         in FSF Emacs, I don't think there's any problem with just deleting
15817         them.
15818
15819         * sysdep.c:
15820         * sysdep.c (sys_subshell):
15821         Fixed a compile warning, although in this case there's probably
15822         something wrong with this code, and it ought to be looked into
15823         more thoroughly by somebody who understands it.
15824
15825         * window.c:
15826         * window.c (Fwindow_text_area_height):
15827         * window.c (Fwindow_width):
15828         * window.c (Fwindow_full_width):
15829         * window.c (Fwindow_pixel_width):
15830         * window.c (debug_print_window):
15831         * window.c (syms_of_window):
15832         Added functions window-text-area-height and window-full-width,
15833         which are functions for returning various width and height
15834         characteristics of a window. (One of these functions is necessary
15835         for making the file dialog box work correctly, and the other one
15836         was added for completeness.)  Also added a table to the
15837         documentation for window-height which describes the entire scheme
15838         for accessing width and height characteristics of a window.
15839
15840 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15841
15842         * nt.c (fstat): Added a comment for another problem with
15843         non-encapsulated [f]stat(), reported by Adrian Aichner
15844         <aichner@ecf.teradyne.com>.
15845
15846 2000-03-11  Andy Piper  <andy@xemacs.org>
15847
15848         * window.c (make_dummy_parent): initialize subwindow instance
15849         cache.
15850         (Fset_window_configuration): zero extent_modiff.
15851
15852 2000-03-10  Andy Piper  <andy@xemacs.org>
15853
15854         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15855         more changes can be triggered.
15856         (Fredisplay_frame): ditto.
15857         (Fredraw_device): ditto.
15858         (Fredisplay_device): ditto.
15859         (redisplay_frame): make non-static.
15860         (redisplay_frame): call update_frame_gutter_geometry outside of
15861         display proper.
15862
15863         * gutter.h: declare update_frame_gutter_geometry.
15864
15865         * redisplay.h: declare redisplay_frame.
15866
15867         * gutter.c (update_frame_gutter_geometry): move geometry changes
15868         in update_frame_gutters here. Geometry changes can only occur
15869         outside of redisplay.
15870         (update_frame_gutters): remove geometry change code.
15871         (Fredisplay_gutter_area): make sure that we are in display when we
15872         update and that we have flushed any size changes.
15873
15874 2000-03-11  Andy Piper  <andy@xemacs.org>
15875
15876         * alloc.c (pdump_dump_data): remove i & count shadows.
15877
15878 2000-02-27  Mike Alexander  <mta@arbortext.com>
15879
15880         * sysdep.h: Declare pdump_read_file
15881
15882         * sysdep.c (pdump_read_file): New function
15883
15884         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15885         dump data
15886
15887 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15888
15889         * lrecord.h: add `lrecord_type_pgsetenv'.
15890
15891 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15892
15893         * symsinit.h: declare (vars|syms)_of* functions.
15894         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15895
15896 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15897
15898         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15899
15900         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15901         GCCs.
15902
15903         * emacs.c (main_1): Call postgres initialization code.
15904
15905         * postgresql.h: New file.  PostgreSQL RDBMS support.
15906         * postgresql.c: New file.
15907
15908 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15909
15910         * redisplay-output.c (redisplay_output_display_block): Disable
15911         redundant code.
15912
15913 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15914
15915         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15916         (Fcanna_henkan_next): Ditto.
15917         (Fcanna_bunsetu_henkou): Ditto.
15918         (Fcanna_henkan_kakutei): Ditto.
15919         (Fcanna_henkan_end): Ditto.
15920         (Fcanna_henkan_quit): Ditto.
15921         (Fcanna_henkan_next): Set retun value correctly.
15922         (c2mu): Use unsigned char instead of signed char.
15923
15924 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15925
15926         * emacs.c (main_1): Always call syms_of_gui.
15927         * inline.c: include gui.h
15928
15929 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15930
15931         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15932         converted to Lisp_Object.
15933         (Qtop_bottom): New variable.
15934         (syms_of_redisplay): Initialize it.
15935         * redisplay.h (Vvisible_bell): Ditto.
15936         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15937         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15938         only flash top and bottom.
15939
15940 2000-03-08  Andy Piper  <andy@xemacs.org>
15941
15942         * buffer.c (Frename_buffer): record new buffer name the right way.
15943
15944 2000-03-08  Andy Piper  <andy@xemacs.org>
15945
15946         * glyphs.c (update_subwindow): increase hash depth so that widget
15947         items get picked up properly.
15948
15949         * redisplay-output.c (compare_runes): increase hash depth so that
15950         widget items get picked up properly.
15951
15952 2000-03-08  Andy Piper  <andy@xemacs.org>
15953
15954         * gutter.c (output_gutter): add some debug.
15955
15956         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15957         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15958         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15959
15960         * redisplay-output.c (compare_runes): use display_hash to
15961         determine if glyphs really are not the same.
15962
15963         * glyphs.c (update_subwindow): check display_hash to see if
15964         anything really needs to be updated. If not then do
15965         nothing. Record the display_hash after updating.
15966         (image_instance_equal): compare the image_instance face also.
15967
15968 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15969
15970         * redisplay.h: Fix comment style.
15971
15972 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15973
15974         * consle-msw.h (struct mswindows_frame):
15975         Added new member paint_pending to indicate whether a WM_PAINT
15976         magic event has been queued for this frame.
15977
15978         * event-msw.c (mswindows_drain_windows_queue):
15979         Don't queue a WM_PAINT magic event if one is already queued.
15980         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15981
15982         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15983
15984 2000-03-07  Didier Verna  <didier@xemacs.org>
15985
15986         * dired.c: #include `regex.h' after `sysfile.h'.
15987
15988 2000-03-06  Martin Buchholz  <martin@xemacs.org>
15989
15990         * sound.c (init_nas_sound): Fix compiler warning.
15991
15992         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
15993         (FREE_STRUCT_P):
15994         (MARK_STRUCT_AS_FREE):
15995         (MARK_STRUCT_AS_NOT_FREE):
15996         Make `gcc -fstrict-aliasing' work properly.
15997
15998 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15999
16000         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
16001         (mswindows_delete_device): Call CoUnnitialize().
16002
16003         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
16004
16005 2000-02-25    <CraigL@DyCon.com>
16006
16007         * process-nt.c: MinGW now has <shellapi.h>, but still needs
16008         <errno.h>.
16009
16010         * sysdep.c: This extern declaration for environ prevents MinGW
16011         from finding the variable in CRTDLL.DLL.
16012
16013         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
16014         windows headers.
16015         (SHGFI_EXETYPE): ..
16016         (WM_MOUSEWHEEL): ..
16017         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
16018         definitions.
16019         (MMRESULT): Removed, now defined in cygwin's windows headers.
16020         (TIMECAPS): ..
16021         (uid_t,gid_t,pid_t,ssize_t): ..
16022         (_timeb): Removed, MinGW defines both _timeb and timeb.
16023         (HAVE_H_ERRNO): Added.
16024         (HAVE_TZNAME): Added, configure is not detecting this.
16025
16026 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
16027
16028         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
16029         * syntax.c (syntax_match): Use it.
16030
16031         * cmds.c: Import auto-fill-chars from FSF Emacs.
16032         (Vauto_fill_chars): New variables.
16033         (internal_self_insert): Check Vauto_fill_chars.
16034         (vars_of_cmds):
16035         Declare auto-fill-chars as a Lisp variable and initialize it.
16036
16037 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16038
16039         * fileio.c (Fmake_symbolic_link):
16040         (Ffile_symlink_p):
16041         Run handlers even if local machine doesn't have symlinks.
16042
16043 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16044
16045         * event-msw.c (mswindows_drain_windows_queue):
16046         Don't generate paint magic events for non-XEmacs frames.
16047
16048 2000-03-05  Andy Piper  <andy@xemacs.org>
16049
16050         * redisplay.c (redisplay_frame): generate_displayable_area and
16051         friends assumes that we are not in GC, we therefore have to make
16052         sure that this doesn't happen.
16053
16054         * gutter.c (calculate_gutter_size): generate_displayable_area
16055         assumes that we are not in GC, we therefore have to make sure that
16056         this doesn't happen.
16057
16058 2000-03-05  Martin Buchholz  <martin@xemacs.org>
16059
16060         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
16061
16062 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
16063
16064         * redisplay.c (regenerate_window): Make sure we set a sane value
16065         for end_pos even if we jump out of the loop.
16066         (regenerate_window): Answer Ben's question :-).
16067         (start_end_of_last_line): Add may_error argument.
16068         (start_of_last_line):
16069         (end_of_last_line): Pass may_error = 0.
16070         (end_of_last_line_may_error): New function.
16071         (pixel_to_glyph_translation): Use it, so we don't crash in
16072         event_to_glyph.
16073
16074 2000-03-04  Andy Piper  <andy@xemacs.org>
16075
16076         * window.h (struct window): add gutter_extent_modiff.
16077
16078         * window.c (allocate_window): zero out gutter_extent_modiff.
16079
16080         * redisplay.h: declare sync_display_line_structs.
16081
16082         * redisplay.c (add_glyph_rune): add a better comment.
16083
16084         * redisplay-output.c (sync_display_line_structs): made non-static.
16085         (compare_runes): remove unneccesary glyph cachel access.
16086
16087         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
16088
16089         * gutter.c (output_gutter): don't output the gutter if extent
16090         changes only involve extents in buffers. use 4 sets of display
16091         lines.
16092         (gutter_extent_signal_changed_region_maybe): new function. Mark
16093         extents in gutters as changed.
16094         (update_frame_gutters): use 4 sets of display lines.
16095         (reset_gutter_display_lines): ditto.
16096         (free_frame_gutters): ditto.
16097         (redraw_exposed_gutter): force output of gutters.
16098
16099         * frame.h (struct frame): add 4 sets of gutter display lines.
16100
16101         * extents.c: (extent_changed_for_redisplay): signal changes to
16102         extents in strings in the gutter as well as extents in buffers.
16103
16104 2000-03-02  Andy Piper  <andy@xemacs.org>
16105
16106         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
16107
16108         * frame.c (Fmake_frame): make sure the gutters get initialized
16109         after the frame is visible.
16110         (set_frame_selected_window): re-arrange compilation macros a
16111         little.
16112         (change_frame_size_1): mark gutters changed.
16113
16114         * device.c (Fset_device_class): mark gutters changed.
16115
16116 2000-03-01  Andy Piper  <andy@xemacs.org>
16117
16118         * window.c (window_top_frame_gutter_height): deleted.
16119         (window_bottom_frame_gutter_height): ditto.
16120         (window_left_frame_gutter_height): ditto.
16121         (window_right_frame_gutter_height): ditto.
16122         (window_top_gutter_height): don't use them.
16123         (window_bottom_gutter_height): ditto.
16124         (window_left_gutter_width): ditto.
16125         (window_right_gutter_width): ditto.
16126         (Fsplit_window): ditto.
16127         (Fwindow_pixel_edges): don't use border dimensions here.
16128
16129         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
16130         (update_scrollbar_instance): ditto.
16131
16132         * redisplay.c (generate_modeline): don't take gutters into account.
16133         (generate_modeline): ditto.
16134         (redisplay_frame): small gutter display optimization.
16135
16136         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
16137
16138         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
16139         gutters into account.
16140
16141         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
16142         for window position and type.
16143
16144         * gutter.c (get_gutter_coords): fix for frame gutters.
16145         (update_frame_gutters): update frame geometry if the gutters have
16146         changed.
16147         (init_frame_gutters): record current gutter geometries.
16148
16149         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
16150         var.
16151         (mswindows_widget_instantiate): ditto.
16152
16153         * frame.h (struct frame): add current_gutter_bounds.
16154
16155         * frame.c (change_frame_size_1): position window and minibuffer
16156         appropriately taking into account the frame gutters.
16157
16158         * frame-x.c: (x_initialize_frame_size): take into account the
16159         frame gutters.
16160
16161 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16162
16163         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
16164
16165 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16166
16167         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
16168
16169 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16170
16171         * file-coding.c (reset_decoding_stream): Clear previous
16172         detection state when autodetect.
16173
16174 2000-02-29  Didier Verna  <didier@xemacs.org>
16175
16176         * extents.c (set_extent_glyph_1): don't require extents to be
16177         attached.
16178
16179 2000-02-27  Andy Piper  <andy@xemacs.org>
16180
16181         * gutter.c (Fset_default_gutter_position): don't default left and
16182         right gutter visibility to t.
16183         (Fset_default_gutter_position): run
16184         default-gutter-position-changed-hook.
16185         (syms_of_gutter): add default-gutter-position-changed-hook.
16186
16187 2000-02-26  Andy Piper  <andy@xemacs.org>
16188
16189         * specifier.c (Fmake_specifier): add gutter references.
16190
16191         * gutter.h (RAW_WINDOW_GUTTER): new macro.
16192
16193         * lisp.h: declare Fvalid_plist_p.
16194
16195         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
16196         as changed.
16197         (default_gutter_visible_p_changed_in_window): invalidate gutter as
16198         well as its visibility so that it gets reconstructed.
16199         (construct_window_gutter_spec): new function. Construct a string
16200         to be displayed in the gutter from a plist of strings. Take care
16201         to only use elements that are declared as visible.
16202         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
16203         WINDOW_GUTTER.
16204         (gutter_validate): allow plists of strings in the specifier.
16205         (gutter_specs_changed): construct the real_gutter from the gutter
16206         specs using construct_window_gutter_spec.
16207         (gutter_visible_validate): gutter-visible is a new specifier type.
16208         (Fgutter_visible_specifier_p): new function for the new specifier.
16209         (syms_of_gutter): declare gutter-visible and
16210         Fgutter_visible_specifier_p.
16211         (specifier_type_create_gutter): intitalize new gutter-visible
16212         specifier.
16213         (reinit_specifier_type_create_gutter): ditto.
16214         (specifier_vars_of_gutter): use new specifier type for gutter
16215         visibility.
16216         (init_frame_gutters): construct real_gutter correctly.
16217         (Fgutter_specifier_p): beef up documentation.
16218         (Fgutter_size_specifier_p): ditto.
16219
16220         * winslots.h: add real_gutter slots.
16221
16222 2000-02-25  Andy Piper  <andy@xemacs.org>
16223
16224         * device-msw.c: Be kind to older cygwin versions. From Raymond
16225         Toy <toy@rtp.ericsson.se>.
16226
16227         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16228         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16229
16230 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16231
16232         * elhash.c (MARK_OBJ): Practice macro hygiene.
16233
16234 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16235
16236         * miscplay.c: s/__inline__/inline/g;
16237         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16238         (get_device_compdc): INLINE ==> static inline
16239         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16240         find -name '*.h' | \
16241         xargs global-replace \
16242         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16243
16244 2000-02-25  Andy Piper  <andy@xemacs.org>
16245
16246         * window.c (window_top_frame_gutter_height): new function.
16247         (window_top_window_gutter_height): ditto.
16248         (window_top_gutter_height): use them.
16249         (window_bottom_frame_gutter_height): new function.
16250         (window_bottom_window_gutter_height): ditto.
16251         (window_bottom_gutter_height): use them.
16252         (window_left_window_gutter_width): new function.
16253         (window_left_frame_gutter_width): ditto.
16254         (window_left_gutter_width): use them.
16255         (window_right_window_gutter_width): new function.
16256         (window_right_frame_gutter_width): ditto.
16257         (window_right_gutter_width): use them.
16258         (window_pixel_height): new function. calulate window pixel height
16259         with frame gutter involvement.
16260         (Fsplit_window): calculate new sizes taking frame gutters into
16261         account.
16262         (window_char_height_to_pixel_height): don't include frame gutters.
16263         (window_char_height): use window_pixel_height.
16264         (window_pixheight): rename from window_pixel_height.
16265         (change_window_height): use it.
16266         (window_pixel_height_to_char_height): don't include frame gutters.
16267         (window_char_width_to_pixel_width): ditto.
16268
16269 2000-02-25  Andy Piper  <andy@xemacs.org>
16270
16271         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16272         if it is.
16273
16274 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16275
16276         * alloc.c (staticpro):
16277         (staticpro_nodump):
16278         (dumpstruct):
16279         (dumpopaque):
16280         (pdump_wire):
16281         (pdump_wire_list):
16282         (compact_string_chars):
16283         (pdump_dump_wired):
16284         Convert:  if (foo) abort();  ==>  assert (! foo);
16285
16286         * eldap.c (Fldap_search_basic):
16287         (Fldap_add):
16288         (Fldap_modify):
16289         (Fldap_delete):
16290         Fix compiler warnings, and possible crashes if (random) return
16291         value were to be used.
16292
16293 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16294
16295         * device-msw.c: Workaround ResetDC failure.
16296
16297         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16298         applying a devmode.
16299
16300         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16301         (mswindows_text_width): Do not start printer page.
16302
16303         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16304
16305         * glyphs-msw.c: Added image methods to msprinter console and
16306         msprinter-specific image instantiation.
16307
16308 2000-02-20  Mike Alexander  <mta@arbortext.com>
16309
16310         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16311         to avoid crashes when selection-sets-clipboard is on
16312         (mswindows_own_selection): ditto
16313
16314 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16315
16316         * glyphs-msw.c:
16317         * redisplay-msw.c (get_frame_dc):
16318         (get_frame_compdc):
16319         * console-msw.h:
16320         * device-msw.c (mswindows_init_device):
16321         (mswindows_delete_device):
16322         (msprinter_init_device):
16323         (msprinter_delete_device):
16324         * frame-msw.c (mswindows_init_frame_1):
16325         (mswindows_delete_frame):
16326         (msprinter_init_frame_3):
16327         (msprinter_delete_frame): Move compatible DC to device object from
16328         frame object, for both mswindows and msprinter. Only one at a time
16329         is needed, it is a real waste to have one per frame!
16330
16331 2000-02-23  Andy Piper  <andy@xemacs.org>
16332
16333         * glyphs.c: add dynamic width and height elements.
16334         (image_instance_equal): ditto.
16335
16336         * glyphs-widget.c (widget_query_geometry): calculate width and
16337         height dynamically if required.
16338         (initialize_widget_image_instance): initialize dynamic dimensions.
16339         (widget_instantiate): pick-up dynamic dimensions.
16340
16341         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16342         dynamic determination. Add appropriate macros.
16343
16344         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16345         dimensions safe.
16346         (WINDOW_GUTTER_SIZE): ditto.
16347         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16348
16349         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16350         inline.
16351         (get_frame_dc): ditto.
16352
16353         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16354         here.
16355
16356 2000-02-23  Martin Buchholz <martin@xemacs.org>
16357
16358         * XEmacs 21.2.31 is released.
16359
16360 2000-02-22  Ben Wing <ben@xemacs.org>
16361
16362         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16363
16364 2000-02-22  Andy Piper  <andy@xemacs.org>
16365
16366         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16367
16368 2000-02-21  Mike Sperber <mike@xemacs.org>
16369
16370         * .dbxrc:
16371         * .gdbinit:
16372         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16373         variables.
16374
16375 2000-02-21  Mike Sperber <mike@xemacs.org>
16376
16377         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16378
16379 2000-02-21  Martin Buchholz <martin@xemacs.org>
16380
16381         * XEmacs 21.2.30 is released.
16382
16383 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16384
16385         Performance hacking.
16386         * *.c (syms_of_*):
16387         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16388         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16389         * emacs.c (main_1):
16390         * lisp.h (DEFUN):
16391         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16392         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16393         * symeval.h (DEFVAR_SYMVAL_FWD):
16394         * symbols.c (guts_of_unbound_marker):
16395         Make all c_readonly objects also lisp_readonly and marked for life.
16396         * lrecord.h (struct lrecord_implementation):
16397         Document flags better.
16398         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16399         * lrecord.h (DECLARE_LRECORD):
16400         * lrecord.h (XSETRECORD):
16401         * lrecord.h (RECORDP):
16402         * lrecord.h (RECORD_TYPEP):
16403         * lrecord.h (RECORD_MARKER): New.
16404         * lrecord.h (error_check_*):
16405         * lrecord.h (CONCHECK_NONRECORD):
16406         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16407         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16408         * lrecord.h (set_lheader_implementation):
16409         * lrecord.h (enum lrecord_type): New.
16410         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16411         * alloc.c (disksave_object_finalization_1):
16412         * alloc.c (mark_object):
16413         * alloc.c (lrecord_type_index):
16414         * alloc.c (tick_lcrecord_stats):
16415         * alloc.c (Fgarbage_collect):
16416         * alloc.c (init_alloc_once_early):
16417         * alloc.c (pdump_load):
16418         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16419         * alloc.c (lrecord_type_index): Delete.
16420         Make lisp object type indexes be constant.
16421           Makes (byte-compile) 5% faster.
16422         Put all marker functions into their own array.
16423           Makes (garbage-collect) 5% faster.
16424         Optimize SYMBOL_VALUE_MAGIC_P.
16425           Makes (byte-compile) 2-3% faster.
16426         * config.h.in (gc_checking_assert): New.
16427         * alloc.c: Use gc_checking_assert().
16428         * .dbxrc: Make compatible with new object type implementation.
16429         * .gdbinit: Make compatible with new object type implementation.
16430         * alloc.c: Delete all symbols defined only for debugging, such as
16431         Lisp_Type_Vector and lrecord_charset.
16432
16433 2000-02-21  Andy Piper  <andy@xemacs.org>
16434
16435         * gui-msw.c (Fmswindows_shell_execute): fix file location
16436         problems.
16437
16438         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16439         unshowing so that set_window_buffer doesn't undo
16440         kill_buffer_hook's hard work.
16441
16442         * glyphs-widget.c (tab_control_query_geometry): don't count the
16443         first item when calculating geometry.
16444
16445         * glyphs.c (map_subwindow): remove redundant code.
16446         (update_frame_subwindows): be more circumspect about when to
16447         update subwindows.
16448
16449         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16450         when items haven't changed. Update faces if faces have changed as
16451         well as just the widget face.
16452         (x_tab_control_update): Update faces if faces have changed as well
16453         as just the widget face.
16454
16455 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16456
16457         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16458         registration.
16459         (build_syscolor_string): Use mswindows_color_to_string to try to
16460         get a named color.
16461         (mswindows_device_system_metrics): Reverse the foreground and
16462         background colors so that they match the documentation.
16463
16464         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16465         they match the default Windows palette.
16466         (mswindows_color_to_string): New function.
16467
16468 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16469
16470         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16471
16472 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16473
16474         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16475         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16476
16477         * symbols.c (init_symbols_once_early): Removed obsolete
16478         DATA_SEG_BITS related kludge.
16479         (defvar_magic): Ditto.
16480
16481         * malloc.c: Removed obsolete DATA_SEG_BITS
16482         * ralloc.c: Ditto.
16483         * mem-limits.h: Ditto.
16484
16485         * Makefile.in.in: Removed obsolete HAVE_SHM
16486         * emacs.c: Ditto.
16487
16488 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16489
16490         *  device-msw.c (mswindows_delete_device): Free DDE string
16491         handles.
16492
16493 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16494
16495         * keymap.c (get_keyelt):
16496         * unexnt.c (unexec):
16497         * vm-limit.c (memory_warnings):
16498         * ntheap.c (recreate_heap):
16499         * ntheap.h (UNINIT_PTR):
16500         * select-msw.c (Fmswindows_get_clipboard):
16501         (Fmswindows_set_clipboard):
16502         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16503         * objects-msw.c:
16504         * menubar-msw.c (displayable_menu_item):
16505         * glyphs-msw.c:
16506         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16507         * sysdep.c (sys_subshell):
16508         * process-nt.c (nt_create_process):
16509         * nt.c (normalize_filename):
16510         (dostounix_filename):
16511         (unixtodos_filename):
16512         * ntproc.c (win32_executable_type):
16513         * ntplay.c (play_sound_data_1):
16514         (play_sound_file):
16515         * editfns.c (get_home_directory):
16516         * event-msw.c (struct winsock_stream):
16517         (mswindows_dde_callback):
16518         * device-msw.c (msprinter_init_device):
16519         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16520
16521         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16522         mswindows_clear_toolbar were swapped!
16523
16524         * objects-msw.c:(colormap_t):
16525         (fontmap_t):
16526         * emacs.c (struct standard_args): Fixed const jumble.
16527
16528         * glyphs-widget.c (update_widget): Fixed comparison notation.
16529
16530         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16531
16532         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16533         __declspec(noreturn) syntax.
16534
16535 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16536
16537         * eldap.c (Fldap_open):
16538         (Fldap_search_basic):
16539         (Fldap_add):
16540         (Fldap_modify):
16541         Use new coding system conversion macros.
16542
16543 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16544
16545         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16546
16547 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16548
16549         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16550         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16551
16552         * eldap.c (Qadd, Qreplace): New constant symbols
16553         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16554         interruptions by XEmacs signals
16555         Remove unnecessary calls to slow_down_interrupts and
16556         speed_up_interrupts
16557         (Fldap_search_basic): Renamed from Fldap_search_internal
16558         Added new optional parameter VERBOSE that triggers the
16559         display of progress messages
16560         Remove unnecessary calls to slow_down_interrupts and
16561         speed_up_interrupts
16562         LDAP result code analysis rewritten
16563         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16564         (syms_of_eldap): Define the new symbols and functions
16565
16566
16567 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16568
16569         * realpath.c: Determine PATH_MAX maximally portably.
16570
16571         * insdel.c (bytecount_to_charcount): Optimize.
16572         The function used to be optimized for entirely ASCII sequences.
16573         Now it is optimized for successive characters from the same
16574         charset.  This also wins big for _mostly_ ASCII sequences.
16575
16576         * fileio.c (Ffile_truename): convert return from realpath() using
16577         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16578         - Rewrite GCPROing slightly.
16579
16580         * sysdep.c (sys_open): Do filename conversion, like all other
16581         sys_* functions.  Fixes bug:
16582         (let ((file-name-coding-system 'iso-8859-2))
16583            (write-region x y latin2-name))
16584         ==> writes filename using internal encoding.
16585
16586 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16587
16588         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16589         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16590         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16591         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16592         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16593         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16594         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16595         (CONST_IF_NOT_DEBUG): Delete.
16596         * alloc.c (this_one_is_unmarkable): Delete.
16597         (mark_object): Don't check for this_one_is_unmarkable. Use the
16598         c_readonly flag instead.
16599         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16600
16601 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16602
16603         * event-msw.c (mswindows_drain_windows_queue):
16604         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16605         away redundant repaint events.
16606
16607 2000-02-17  Andy Piper  <andy@xemacs.org>
16608
16609         * redisplay.h: declare mark_redisplay_structs.
16610
16611         * redisplay.c (redisplay_window):
16612         (redisplay_frame): don't check subwindows_state_changed.
16613         (mark_redisplay): mark gutters here.
16614
16615         * glyphs.c: (instantiate_image_instantiator): always layout if we
16616         haven't done so already.
16617         (allocate_image_instance): don't mark as dirty.
16618         (update_subwindow): bind inhibit_quit.
16619
16620         * gutter.c (mark_gutters): new function.
16621
16622         * glyphs-x.c (x_update_widget): Always resize to get round a
16623         widget bug.
16624
16625         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16626         breaking absolutely everything.
16627
16628         * gutter.h: declare mark_gutters.
16629
16630 2000-02-16  Martin Buchholz <martin@xemacs.org>
16631
16632         * XEmacs 21.2.29 is released.
16633
16634 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16635
16636         * fns.c (size_bit_vector): Fix computation of the size.
16637
16638 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16639
16640         * *.[ch]: Change CONST to const globally.
16641         find -name '*.[ch]' | \
16642         xargs global-replace \
16643         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16644         - Remove vestigial references to CONST_IS_LOSING
16645
16646 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16647
16648         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16649         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16650         events instead of dispatching them directly.
16651         (mswindows_handle_paint): New function to do repainting.
16652         (mswindows_wnd_proc):
16653         (emacs_mswindows_handle_magic_event): Call above function.
16654
16655 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16656
16657         * objects-msw.c (mswindows_create_font_variant): Return the new
16658         font handle.
16659         (initialize_font_instance): Get font metrics from the underlined
16660         variant of the font to cope with the case where the underlined
16661         font has a bigger descent.
16662
16663 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16664
16665         * gui.c (gui_item_accelerator): Return the first underlined
16666         character in item name.
16667
16668 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16669
16670         * lisp.h: Added Qprinter.
16671
16672         * general.c (syms_of_general): Initialized it.
16673
16674         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16675         (get_frame_dc):
16676         (get_frame_compdc): Made inline.
16677
16678         * console.h (struct console_methods): Added eject_page method.
16679
16680         * frame.h: Added FRAME_DISPLAY_P and friends.
16681         Aligned backslahes in many macros in more readable fashion.
16682         Added page_number to struct frame, and an accessor macro
16683         for it.
16684
16685         * defice.h: Added DEVICE_DISPLAY_P and friends.
16686
16687         * device.c (Fdevice_printer_p): Used these.
16688
16689         * frame.c (allocate_frame_core): Initialize page number.
16690         (Fprint_job_page_number):
16691         (Fprint_job_eject_page): Implemented.
16692
16693         * frame-msw.c (msprinter_eject_page): Added method.
16694         (msprinter_start_page): Added.
16695
16696         * window.c (Fwindow_truncated_p): Fixed docstring.
16697         (Fwindow_last_line_visible_height): Implemented.
16698
16699 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16700
16701         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16702
16703 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16704
16705         * syntax.c (scan_words): Always advance at least one character.
16706
16707 2000-02-13  Andy Piper  <andy@xemacs.org>
16708
16709         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16710         to make sure the glyph is in the cachels.
16711
16712         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16713         global image instance flag.
16714         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16715         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16716
16717         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16718         (Fset_image_instance_property): mark layout as changed.
16719         (invalidate_glyph_geometry_maybe): mark layout as changed.
16720         (glyph_width): use new NEEDS_LAYOUT macro.
16721         (glyph_ascent): ditto.
16722         (glyph_descent): ditto.
16723         (glyph_height): ditto.
16724         (image_instance_layout): mark layout as clean after laying out.
16725         (update_subwindow): don't mark layout as clean here.
16726
16727         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16728         should no longer be needed.
16729
16730         * glyphs-x.c (x_update_widget): sanitize asserts.
16731         (x_finalize_image_instance): sanitize assignment to widgets.
16732
16733         * glyphs-widget.c (widget_instantiate): don't need to clear the
16734         layout flag here.
16735
16736 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16737
16738         * sysdep.c (getcwd): Use standard prototype.
16739         * sysdep.h (getcwd): Use standard prototype.
16740
16741         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16742         (sequence, start, end).
16743         Remove redundant type checking.
16744         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16745         view of `caller-protects') to avoid a crash where the real fix was
16746         found elsewhere.
16747
16748 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16749
16750         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16751
16752         * s/sol2.h: Remove feature macro initialization.
16753
16754         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16755         (vector_hash): New.  Code from internal_hash.
16756         * lrecord.h:
16757         Fix up allocation subsystem comments.
16758
16759         * config.h.in: Add __EXTENSIONS__ for Solaris.
16760
16761         * systime.h (EMACS_GETTIMEOFDAY): New.
16762         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16763         Remove Solaris-specific code.
16764         Use void* for the (ignored) second arg for gettimeofday().
16765
16766         * elhash.c (hash_table_hash): Implement it, finally.
16767         * elhash.c:  Use hashcode_t.
16768
16769         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16770         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16771
16772         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16773         * fns.c (size_bit_vector):
16774         * alloc.c (size_vector):
16775         (make_vector_internal):
16776         (make_bit_vector_internal):
16777         (sweep_bit_vectors_1):
16778         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16779
16780 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16781
16782         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16783         Include strings.h to avoid warnings for bzero and strcasecmp.
16784
16785 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16786
16787         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16788         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16789
16790         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16791         sequence.
16792
16793 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16794
16795         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16796         use a value field instead.
16797         (symbol_value_forward_forward): Use value field.
16798         (DEFVAR_SYMVAL_FWD): Use value field.
16799         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16800         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16801         (DEFVAR_CONST_INT): Ditto.
16802         (DEFVAR_BOOL): Ditto.
16803         (DEFVAR_CONST_BOOL): Ditto.
16804         (DEFVAR_INT_MAGIC): Ditto.
16805         (DEFVAR_BOOL_MAGIC): Ditto.
16806
16807         * symbols.c (guts_of_unbound_marker): Use value field.
16808         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16809         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16810
16811         * lisp.h: Declare dumpopaque and noninteractive1.
16812
16813         * alloc.c (dumpopaque): Added.
16814         (pdump_dump_opaquevec): Added.
16815         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16816         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16817         noninteractive.
16818
16819 2000-02-10  Andy Piper  <andy@xemacs.org>
16820
16821         * glyphs.c (image_instance_layout): if the size changes, mark it
16822         as such.
16823
16824         * redisplay-output.c (redisplay_output_layout): Update the
16825         subwindow here.
16826         (redisplay_output_subwindow): ditto.
16827
16828         * glyphs.c (update_subwindow): make sure we reset flags for
16829         layouts as well as everything else.
16830
16831         * glyphs-widget.c (layout_layout): don't need to set the instances
16832         dimensions here.
16833
16834 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16835
16836         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16837         not HAVE_DLOPEN, which is a lower-level thing.
16838
16839         * .cvsignore: Ignore gmon.out
16840
16841 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16842
16843         * .cvsignore: Ignore portable dumper xemacs.dmp file
16844
16845 2000-02-09  Andy Piper  <andy@xemacs.org>
16846
16847         * redisplay-output.c (redisplay_output_layout): be more clever
16848         about when we output based on the changed flags.
16849
16850         * glyphs.h (struct image_instantiator_methods): add update_method.
16851         (struct Lisp_Image_Instance): add changed flags. Declare new
16852         macros for manipulating them.
16853
16854         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16855         (image_instance_parent_glyph): find an image_instance's parent
16856         glyph or image_instance.
16857         (image_instance_layout): mark the size as changed.
16858         (set_image_instance_dirty_p): new function. mark an image
16859         instance, plus all of its parents, as dirty.
16860         (Fset_image_instance_property): use it.
16861         (Fglyph_animated_timeout_handler): use it.
16862         (update_subwindow): call update_widget and device methods for
16863         update_subwindow. Mark all changed flags as clean.
16864         (Fresize_subwindow): mark size as changed.
16865
16866         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16867         failures.
16868         (x_update_subwindow): only resize subwindows here.
16869         (x_update_widget): new function. Update all changed properties of
16870         a widget.
16871         (x_resize_subwindow): deleted.
16872         (x_widget_set_property): deleted.
16873         (x_progress_gauge_set_property): deleted.
16874         (x_progress_gauge_update): new function. Implement recorded
16875         changes.
16876         (x_tab_control_update): ditto.
16877         (x_tab_control_set_property): deleted.
16878         (console_type_create_glyphs_x): declare new functions.
16879         (image_instantiator_format_create_glyphs_x): ditto.
16880
16881         * glyphs-widget.c (widget_set_property): mark text changed.
16882         (update_widget): new function. Update properties of a widget.
16883         (widget_instantiate): for layouts make sure we set their
16884         children's parent correctly.
16885         (tab_control_set_property): new function. Record changes that will
16886         take place under redisplay's control.
16887         (progress_gauge_set_property): ditto.
16888         (image_instantiator_progress_guage): declare new functions.
16889         (image_instantiator_tab_control): ditto.
16890
16891         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16892         now.
16893         (mswindows_update_widget): new function. Update all properties on
16894         a widget that have changed.
16895         (mswindows_button_update): new function. Update a button's set
16896         state.
16897         (mswindows_tab_control_update): new function. Update the items in
16898         a tab.
16899         (mswindows_tab_control_set_property): deleted.
16900         (mswindows_progress_gauge_update): new function. Update the
16901         progress gauge's progress.
16902         (mswindows_widget_set_property): deleted. This is all done
16903         asynchronously now.
16904         (mswindows_progress_gauge_set_property): ditto.
16905         (console_type_create_glyphs_mswindows): declare new methods.
16906         (image_instantiator_format_create_glyphs_mswindows): ditto.
16907
16908         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16909         (msprinter_set_frame_properties): ditto.
16910
16911         * console.h (struct console_methods): Add update_widget_method.
16912
16913 2000-02-09  Andy Piper  <andy@xemacs.org>
16914
16915         * gui-msw.c (Fmswindows_shell_execute): Make
16916         mswindows-shell-execute industrial strength.
16917
16918 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16919
16920         * lrecord.h: Make macro argument `props' match member function `plist'.
16921         * fns.c (Fget):
16922         * fns.c (Fput):
16923         * fns.c (Fremprop):
16924         * fns.c (Fobject_plist):
16925         * alloc.c:
16926         * symbols.c:
16927         Object property list frobbing cleanup.
16928         - Allow any lisp object (compared with `eq'), not just symbols, as
16929           keys in object plists.
16930         - Move symbol plist frobbing into symbols.c, where it belongs.
16931         - Move string plist frobbing into alloc.c, where it belongs.
16932         - Everything's an lrecord now, so no need to test for symbolp, etc.
16933         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16934
16935         * extents.c: Reorder code to remove declarations.
16936
16937         * frame.h (store_in_alist): Remove useless declaration.
16938
16939 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16940
16941         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16942         * config.h.in: Add HAVE_XCONVERTCASE.
16943
16944 2000-02-07  Andy Piper  <andy@xemacs.org>
16945
16946         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16947         it breaks many things.
16948
16949 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16950
16951         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16952         actually can start a common comment type.
16953         * src/syntax.h (SYNTAX_END_P): ditto for end.
16954
16955 2000-02-07  Martin Buchholz <martin@xemacs.org>
16956
16957         * XEmacs 21.2.28 is released.
16958
16959 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16960
16961         * event-Xt.c (x_keysym_to_character): New.
16962         (maybe_define_x_key_as_self_inserting_character): New.
16963         (x_has_keysym): New.
16964         Auto-define all keys on the keyboard as self-insert-key.
16965
16966 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16967
16968         * menubar.c (vars_of_menubar): A small code simplification.
16969
16970         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16971
16972         * ExternalShell.c:
16973         * ExternalClient.c:
16974         * EmacsShell-sub.c:
16975         * EmacsManager.c:
16976         * EmacsFrame.c:
16977         Use consistent style for specifying X resources.
16978
16979         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16980         This makes (dontusethis-set-symbol-value-handler) actually usable.
16981
16982         * lrecord.h (lrecord_decription_type):
16983         * alloc.c (pdump_register_sub):
16984         (pdump_dump_data):
16985         (pdump_reloc_one):
16986         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
16987         Comply with XEmacs coding style.
16988         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
16989         args, and XD_LISP_OBJECT_ARRAY with 3 args.
16990
16991         * keymap.c (Faccessible_keymaps):
16992         Make (accessible-keymaps map "\C-h") do the Right Thing.
16993         Make (accessible-keymaps map []) do the Right Thing.
16994         Make (accessible-keymaps map "") do the Right Thing.
16995         (check_keymap_definition_loop): New function.
16996         (keymap_store_internal): Keep luser from shooting self in foot,
16997           via (define-key ctl-x-4-map "p" global-map).
16998         Remove fullness slot from struct Lisp_Keymap, since hash tables
16999         are now reliable.
17000         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
17001
17002 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17003
17004         * redisplay.c (init_redisplay): Fix small memory leak.
17005         * elhash.h:
17006         * elhash.c (pdump_reorganize_hash_table):
17007         Rename from reorganize_hash_table. Change prototype.
17008         Reuse the original memory for hentries.  Save 100k.
17009         * alloc.c (PDUMP_READ): new macro.
17010         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
17011         * alloc.c: No need to #ifndef before #undef.
17012
17013         * print.c: Allow debug_print() to print readably by modifying
17014         debug_print_readably.  Use consistent variable names.
17015
17016         * .dbxrc: Try to get things to work even if stopped in a function
17017         without source available by explicitly specifying source files.
17018 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17019
17020         * unexnt.c (_start): Removed bogus code which caused loading heap
17021         from differrent executable file.
17022         Removed bogus assignment to _fmode, which caused inconsistencies.
17023
17024 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17025
17026         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
17027         Have spawnve encapsulation regard DONT_ENCAPSULATE.
17028         Do not preliminary `#define signal sigset'.
17029
17030         * systime.h: Do not prototype environ on windows nt and cygwin,
17031         this conflicts with system header.
17032
17033         * syssignal.h: Use correct define for WINDOWSNT
17034
17035         * sysdep.h: Do not prototype environ on windows nt, this conflicts
17036         with system header.
17037
17038         * sysdep.c (near start of file): Fixed commentary and rearranged
17039         ifdefs in readable order.
17040         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
17041         (start_of_text):
17042         (end_of_text):
17043         (end_of_data): Do not compile in if using PDUMP.
17044
17045         * symsinit.h: Prototyped vars_of_nt().
17046
17047         * ntproc.c (windows9x_p): Added, instead of os_subtype.
17048         (find_child_console): Use it.
17049         (sys_kill): Use it.
17050
17051         * ntheap.h: Do not extern os_subtype.
17052
17053         * ntheap.c (cache_system_info): Do not cache unneeded:
17054         nt_major_version, nt_minor_version and os_subtype.
17055         (recreate_heap): Do not compile in when PDUMPing.
17056
17057         * nt.c (geteuid and friends): Use the new varibale
17058         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
17059         (init_user_info): Removed the above mentioned hackery.
17060         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
17061         stat has been fixed in the C runtime.
17062         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
17063
17064         * file-coding.c (struct file_coding_dump): Do not define
17065         ucs_to_mule_table in the struct if not MULE.
17066         (struct struct lrecord_description fcd_description_1): Do not dump
17067         the above.
17068
17069         * emacs.c (main_1): Call vars_of_nt().
17070         (right before Fdump_emacs_data): Don't need lastfile if using both
17071         portabe dumper and system malloc.
17072
17073         * alloc.c (Fmemory_limit): Conditionalized out.
17074         (pdump): Use OPEN_BINARY for the portable dump file.
17075         (pdump_load): Ditto.
17076
17077 2000-02-02  Mike Alexander  <mta@arbortext.com>
17078
17079         * nt.c (convert_time): Set tm_isdst before calling mktime and
17080         avoid calling it at all if the compiler supports 64 bit integers.
17081         Also initialize utc_base_ft before using it.
17082
17083 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
17084
17085         * frame.c (change_frame_size_1): Take f->internal_border_width
17086         into consideration when calculating the width of the frame.
17087
17088 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17089
17090         * window.c (frame_min_height):
17091         (frame_size_valid_p):
17092         (frame_pixsize_valid_p): Added.
17093         (check_frame_size): Generalized.
17094
17095         * window.h: Prototyped the above.
17096
17097         * lisp.h:
17098         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
17099         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
17100         Deleted Vwin32_* and Vbinary_process_* unused variables.
17101
17102         * device-msw.c (msprinter_init_device): Do not get printer font
17103         list; Added DEVMODE functions.
17104
17105         * frame-msw.c: Added lots of printer code.
17106
17107         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
17108         general.c.
17109
17110         * console-msw.h: Added more msprinter device private slots.
17111
17112 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17113
17114         * event-msw.c (key_needs_default_processing_p): Added.
17115         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
17116
17117 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17118
17119         * glyphs.c (image_instance_layout): Mark image instance as clean
17120         after layout.
17121         (glyph_dirty_p): Removed redundant function.
17122         (invalidate_glyph_geometry_maybe): Added.
17123         (update_glyph_cachel_data): Call it.
17124
17125         * glyphs.h: Prototyped it.
17126
17127         * redisplay.c (add_glyph_rune): Call it.
17128         (redisplay_window): Reset glyphs cachels when frame faces have
17129         changed, thus forcing recomputation of built-in border glyphs.
17130
17131 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17132
17133         * Makefile.in.in: Make portable dumper and purify play well together.
17134         Add imperfect, but better than nothing, support for pdump.
17135         Remove xemacs.dmp when temacs is re-generated.
17136         Don't ignore errors when dumping xemacs.
17137
17138         * symbols.c (maybe_call_magic_handler): Remove one magic number.
17139
17140 2000-01-28  Andy Piper  <andy@xemacs.org>
17141
17142         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
17143         (setup_normal_frame): ditto.
17144         (setup_frame_without_minibuffer): ditto.
17145         (setup_minibuffer_frame): ditto.
17146         (delete_frame_internal): ditto.
17147         (Fmake_frame_invisible): ditto.
17148         (Ficonify_frame): ditto.
17149
17150         * window.h: change Fset_window_buffer signature.
17151
17152         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
17153         (Fset_window_buffer): allow recording of buffer if the window is
17154         the selected window.
17155         (window_loop): Use new Fset_window signature.
17156
17157 2000-01-23  Daniel Pittman  <daniel@danann.net>
17158
17159         * config.h.in: Added template for `HAVE_ATHENA_3D'
17160
17161 2000-01-29  Andy Piper  <andy@xemacs.org>
17162
17163         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
17164
17165         * gutter.c (output_gutter): Don't output if the window isn't live.
17166
17167 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17168
17169         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
17170         of 01/12/00: Moved SetFocus back here where it belongs.
17171
17172 2000-01-23  Andy Piper  <andy@xemacs.org>
17173
17174         * s/cygwin32.h: declare printer things.
17175
17176 2000-01-26  Andy Piper  <andy@xemacs.org>
17177
17178         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
17179         Alexander.
17180
17181 2000-01-24  Andy Piper  <andy@xemacs.org>
17182
17183         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
17184         (mswindows_button_instantiate): Make sure glyph is a pixmap.
17185
17186         * glyphs-widget.c (widget_instantiate): Avoid shadows.
17187
17188         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
17189
17190         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
17191
17192         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
17193         (mswindows_output_display_block): Avoid local shadows.
17194
17195         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
17196         (mswindows_enqueue_mouse_button_event): ditto.
17197         (mswindows_handle_gui_wm_command): remove declaration.
17198
17199         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
17200         warnings.
17201
17202         * console-msw.h: Avoid shadows.
17203         (mswindows_get_toolbar_button_text):
17204         (emacs_mswindows_create_stream_pair):
17205         (emacs_mswindows_delete_stream_pair):
17206         (mswindows_handle_toolbar_wm_command): declare.
17207
17208         * device-msw.c (build_syscolor_string): Avoid shadows.
17209
17210 2000-01-23  Andy Piper  <andy@xemacs.org>
17211
17212         * glyphs-widget.c (widget_instantiate): reverse the items for
17213         layouts so that children are in the expected order.
17214
17215 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17216
17217         * ralloc.c: safe_bcopy ==> memmove
17218         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17219         * s/msdos.h: Remove BCOPY macros.
17220         * insdel.c (gap_right): Remove BCOPY conditional code.
17221         * insdel.c (gap_left): Remove BCOPY conditional code.
17222         XEmacs demands a working ANSI C compiler - hence memmove.
17223
17224         * regex.c (regex_compile): Remove accidental use of trigraphs.
17225
17226 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17227
17228         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17229         event timestamp.
17230
17231 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17232
17233         * event-msw.c (mswindows_drain_windows_queue): Added the
17234         parameter.
17235         (mswindows_need_event): Commented the call to
17236         mswindows_drain_windows_queue().
17237         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17238         only.
17239
17240         * console-msw.h: Moved a few function prototypes here from
17241         event-msw.c.
17242
17243         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17244         parameter from unsigned short to unsigned long.
17245         (Fmswindows_shell_execute): Added return value.
17246
17247 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17248
17249         * sysdep.c (init_system_name):
17250           process-unix.c (unix_canonicalized_host_name):
17251         Don't call freeaddrinfo() if getaddrinfo() fails.
17252
17253         * process-unix.c (unix_open_unix_network_stream):
17254         Moved the code to get a port # into address loop.
17255
17256 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17257
17258         * buffer.c (reinit_vars_of_buffer):
17259         The right place to initialize conversion_in_dynarr and
17260         conversion_out_dynarr.
17261
17262         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17263
17264         * process-unix.c (unix_canonicalize_host_name): Muleize.
17265         (unix_open_network_stream): Muleize.
17266
17267         * buffer.h: Fix up prototypes for ralloc.c functions.
17268
17269 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17270         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17271         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17272                 instead of gethostbyname()
17273         * process-unix.c: In unix_canonicalize_host_name() and
17274                 unix_open_network_stream(), add code to use getaddrinfo()
17275                 instead of gethostbyname().
17276
17277 2000-01-27  Daniel Pittman <daniel@danann.net>
17278
17279         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17280         libs when built with flat Athena.
17281
17282 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17283
17284         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17285         Use coding standards for function prototypes.
17286
17287 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17288
17289         * dialog-msw.c (push_lisp_string_as_unicode):
17290         * doc.c (unparesseuxify_doc_string):
17291         * dired.c (Fuser_name_completion_1):
17292         * dired.c (Fuser_name_all_completions):
17293         * dired.c (free_user_cache):
17294         * dired.c (user_name_completion):
17295         * console-x.c (get_display_arg_connection):
17296         * minibuf.c (clear_echo_area_internal):
17297         * minibuf.c (echo_area_append):
17298         * eldap.c (Fldap_open):
17299         * eldap.c (Fldap_search_internal):
17300         * frame-x.c (x_set_frame_text_value):
17301         * frame-x.c (x_set_frame_properties):
17302         * frame-x.c (x_create_widgets):
17303         * redisplay-tty.c (term_get_fkeys_1):
17304         * objects-x.c (x_parse_nearest_color):
17305         * objects-x.c (x_valid_color_name_p):
17306         * objects-x.c (x_initialize_font_instance):
17307         * objects-x.c (x_list_fonts):
17308         * objects-x.c (x_find_charset_font):
17309         * tooltalk.c (Fadd_tooltalk_message_arg):
17310         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17311         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17312         * process-unix.c (unix_create_process):
17313         * ntproc.c (sys_spawnve):
17314         * sound.c (Fplay_sound_file):
17315         * sound.c (Fplay_sound):
17316         * buffer.c (init_initial_directory):
17317         * buffer.c (init_buffer):
17318         * editfns.c (init_editfns):
17319         * editfns.c (Ftemp_directory):
17320         * editfns.c (Fuser_full_name):
17321         * editfns.c (uncache_home_directory):
17322         * editfns.c (get_home_directory):
17323         * editfns.c (Fuser_home_directory):
17324         * editfns.c (Fformat_time_string):
17325         * editfns.c (Fcurrent_time_string):
17326         * gui-x.c (button_item_to_widget_value):
17327         * database.c (Fopen_database):
17328         * event-Xt.c (x_to_emacs_keysym):
17329         * event-Xt.c (x_event_to_emacs_event):
17330         * event-Xt.c (describe_event_window):
17331         * event-msw.c (mswindows_wnd_proc):
17332         * glyphs-eimage.c (jpeg_instantiate):
17333         * glyphs-eimage.c (gif_instantiate):
17334         * glyphs-eimage.c (png_instantiate):
17335         * glyphs-eimage.c (tiff_instantiate):
17336         * glyphs-x.c (xbm_instantiate_1):
17337         * glyphs-x.c (x_xbm_instantiate):
17338         * glyphs-x.c (x_xface_instantiate):
17339         * glyphs-x.c (autodetect_instantiate):
17340         * glyphs-x.c (cursor_font_instantiate):
17341         * glyphs-x.c (x_widget_instantiate):
17342         * glyphs-x.c (x_widget_set_property):
17343         * glyphs-x.c (x_widget_property):
17344         * glyphs-x.c (BUILD_GLYPH_INST):
17345         * print.c (write_string_to_stdio_stream):
17346         * print.c (output_string):
17347         * print.c (Falternate_debugging_output):
17348         * print.c (Fexternal_debugging_output):
17349         * glyphs-msw.c (extract_xpm_color_names):
17350         * glyphs-msw.c (mswindows_xpm_instantiate):
17351         * glyphs-msw.c (bmp_instantiate):
17352         * glyphs-msw.c (resource_name_to_resource):
17353         * glyphs-msw.c (mswindows_resource_instantiate):
17354         * glyphs-msw.c (xbm_instantiate_1):
17355         * glyphs-msw.c (mswindows_xbm_instantiate):
17356         * glyphs-msw.c (mswindows_xface_instantiate):
17357         * glyphs-msw.c (mswindows_widget_instantiate):
17358         * glyphs-msw.c (add_tree_item):
17359         * glyphs-msw.c (add_tab_item):
17360         * glyphs-msw.c (mswindows_combo_box_instantiate):
17361         * glyphs-msw.c (mswindows_widget_property):
17362         * glyphs-msw.c (mswindows_combo_box_property):
17363         * glyphs-msw.c (mswindows_widget_set_property):
17364         * console.c (stuff_buffered_input):
17365         * objects-msw.c (mswindows_initialize_color_instance):
17366         * objects-msw.c (mswindows_valid_color_name_p):
17367         * objects-msw.c (mswindows_list_fonts):
17368         * objects-msw.c (mswindows_font_instance_truename):
17369         * bytecode.c (optimize_compiled_function):
17370         * select-x.c (symbol_to_x_atom):
17371         * select-x.c (x_atom_to_symbol):
17372         * select-x.c (hack_motif_clipboard_selection):
17373         * select-x.c (selection_data_to_lisp_data):
17374         * select-x.c (lisp_data_to_selection_data):
17375         * select-x.c (Fx_get_cutbuffer_internal):
17376         * select-x.c (Fx_store_cutbuffer_internal):
17377         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17378         * buffer.h (TO_INTERNAL_FORMAT): New function.
17379         * emacs.c (make_arg_list_1):
17380         * emacs.c (make_argc_argv):
17381         * emacs.c (main_1):
17382         * emacs.c (Fdump_emacs):
17383         * emacs.c (split_string_by_emchar_1):
17384         * file-coding.h:
17385         * lisp.h:
17386         * lstream.h:
17387         * symsinit.h:
17388         * device-x.c (x_init_device):
17389         * device-x.c (Fx_valid_keysym_name_p):
17390         * device-x.c (Fx_get_font_path):
17391         * device-x.c (Fx_set_font_path):
17392         * glyphs.c (bitmap_to_lisp_data):
17393         * glyphs.c (pixmap_to_lisp_data):
17394         * alloc.c (make_ext_string): Use coding system arguments.  Update
17395         all callers.
17396         * alloc.c (build_string):
17397         * callproc.c (child_setup):
17398         * callproc.c (init_callproc):
17399         * fileio.c (lisp_strerror):
17400         * fileio.c (directory_file_name):
17401         * fileio.c (Fexpand_file_name):
17402         * fileio.c (Ffile_truename):
17403         * fileio.c (Fsysnetunam):
17404         * fileio.c (Fdo_auto_save):
17405         * sysdep.c (sys_readdir):
17406         * tests.c: New file.  Allow adding C tests.
17407         Replace GET_* macros with a more comprehensible and flexible
17408         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17409         Modify all calls.
17410         Any coding system can be used to do format conversion.
17411         Eliminate enum external_data_format.
17412         Eliminate convert_to_external_format.
17413         Eliminate convert_to_internal_format.
17414         Make sure file-name, keyboard, terminal, and ctext are always
17415         defined as coding systems or aliases.  Make
17416         file-name-coding-system, terminal-coding-system, and
17417         keyboard-coding-system magical variables that are equivalent to
17418         defining the corresponding coding system aliases.
17419
17420         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17421         * file-coding.c (Fcoding_system_alias_p): New function.
17422         * file-coding.c (Fcoding_system_aliasee): New function.
17423         * file-coding.c (append_suffix_to_symbol): New function.
17424         * file-coding.c (dangling_coding_system_alias_p): New function.
17425         * file-coding.c (Ffind_coding_system):
17426         * file-coding.c (Fcopy_coding_system):
17427         * file-coding.c (encode_coding_no_conversion):
17428         * file-coding.c (syms_of_file_coding):
17429         * file-coding.c (vars_of_file_coding):
17430         Rewrite coding system alias code.
17431         Allow nested aliases, like symbolic links.
17432         Allow redefinition of coding system aliases.
17433         Prevent existence of dangling coding system aliases.
17434
17435         * dired.c (Fuser_name_completion_1):
17436         * dired.c (Fuser_name_all_completions):
17437         A crash would happen if user did QUIT in the middle of building
17438         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17439
17440         * lisp.h:
17441         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17442
17443         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17444         an unsigned char *.  Update all callers.
17445
17446 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17447
17448         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17449
17450 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17451
17452         * elhash.c (hentry_description): Use more portable definition.
17453         (resize_hash_table): Initialize new hentries using
17454         xnew_array_and_zero, thereby simplifying the code.
17455
17456         * mule-charset.c (make_charset): Make sure entire object is
17457         initialized, to avoid Purify warnings.
17458
17459         * alloc.c (resize_string): Fix unlikely crash with big strings.
17460
17461 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17462
17463         * realpath.c (xrealpath):
17464         Don't call getwd().
17465
17466 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17467
17468         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17469
17470 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17471
17472         * unexelfsgi.c (unexec): Change the way we decide which segment
17473         should be extended.
17474
17475         Assumption that .bss section should be outside the PT_LOADable
17476         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17477         it's present) is inside the 'data' segment. This would fail the
17478         test which was used to find a segment to grow and cover new
17479         heap. Instead of this assumption, I created another one - on IRIX
17480         the segment to grow should start below .bss and it's address
17481         should extent above the end of .bss. Once this segment is
17482         identified, it's grown to accommodate the new heap and new
17483         zero-length .bss section is added at the end of .data2.
17484
17485 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17486
17487         * eval.c (Feval): Wrong number of arguments should use original
17488         function, not the indirect_function version of it.
17489
17490 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17491
17492         * glyphs-x.c (x_button_instantiate): Don't add image if
17493         it is not a pixmap.
17494         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17495         is relative.
17496
17497 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17498
17499         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17500         declaration.
17501         (DEFVAR_INT_MAGIC): Ditto.
17502         (DEFVAR_BOOL_MAGIC): Ditto.
17503         * glyphs.h: Reindent backslash.
17504
17505 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17506
17507         * glyphs-widget.c (layout_query_geometry):
17508         (layout_layout): Use correct types for gheight, gwidth.
17509
17510 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17511
17512         * EmacsManager.c (QueryGeometry): Purified.
17513
17514 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17515
17516         * alloc.c (make_float): Make sure entire object is initialized, to
17517         avoid Purify warnings.
17518         (pdump_register_sub): Remove useless assignment.
17519         (pdump): Use xmalloc, not malloc.
17520         (pdump_load): Use xmalloc, not malloc.
17521
17522 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17523
17524         * callproc.c:
17525         * dired-msw.c:
17526         * fileio.c:
17527         * process-nt.c:
17528         * redisplay-msw.c:
17529         * sysdep.c: Removed redundant #include <windows.h>
17530
17531 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17532
17533         * frame.c (delete_frame_internal): Do not delete device when its
17534         implementation so declares.
17535         (delete_frame_internal): Set device selected frame to nil when
17536         last frame goes away.
17537
17538         * device-msw.c (msprinter_device_system_metrics): Implemented.
17539         (mswindows_device_system_metrics): Added 'device-dpi property.
17540
17541         * device.c: (Fdevice_printer_p): Added.
17542         Added 'offset-workspace device metric.
17543
17544         * console.h (device_metrics): Declared DM_offset_workspace.
17545
17546 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17547
17548         * fileio.c (Ffile_truename): Remove pointless and confusing
17549         initialization of elen.
17550
17551         * glyphs-widget.c: Compiler warning fixes.
17552
17553 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17554
17555         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17556         instead of a Lisp_Object as argument to make it consistent with
17557         the other LIVE_P macros.
17558         (CHECK_LIVE_PROCESS): New macro.
17559
17560         * process.c: Declare Qprocess_live_p.
17561         (Fprocess_live_p): New function.
17562         (create_process): Use PROCESS_LIVE_P.
17563         (read_process_output): Ditto.
17564         (set_process_filter): Ditto.
17565         (Fdelete_process): Ditto.
17566         (kill_buffer_processes): Ditto
17567         (process_send_signal): Use CHECK_LIVE_PROCESS.
17568         (Fprocess_input_coding_system): Check whether process is still
17569         alive (fix PR#1061).
17570         (Fprocess_output_coding_system): Ditto.
17571         (Fprocess_coding_system): Ditto.
17572         (Fset_process_input_coding_system): Ditto.
17573         (Fset_process_output_coding_system): Ditto.
17574
17575 2000-01-23  Andy Piper  <andy@xemacs.org>
17576
17577         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17578         layout and widget.
17579
17580         * glyphs.c (mark_image_instance): take into account changed
17581         image_instance format.
17582         (image_instance_equal): ditto.
17583         (image_instance_hash): ditto.
17584
17585         * glyphs-widget.c (widget_instantiate): Incorporate layout
17586         instantiation here. Delay layout of the layout until later.
17587         (layout_instantiate): deleted.
17588         (layout_query_geometry): new function. get the geometry of a
17589         layout.
17590         (layout_layout): layout a layout dynamically.
17591         (image_instantiator_widget): New function - splitting up
17592         image_instantiator_format_create_glyphs_widget for netwinder
17593         compilation.
17594         (image_instantiator_buttons):
17595         (image_instantiator_edit_fields):
17596         (image_instantiator_combo_box):
17597         (image_instantiator_scrollbar):
17598         (image_instantiator_progress_guage):
17599         (image_instantiator_tree_view):
17600         (image_instantiator_tab_control):
17601         (image_instantiator_labels):
17602         (image_instantiator_layout): ditto.
17603         (image_instantiator_format_create_glyphs_widget): Call preceding
17604         functions.
17605
17606 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17607
17608         * process.c (Fset_process_coding_system):
17609         * device-x.c (Fx_keysym_hash_table):
17610         Docstring fixes.
17611
17612         * lstream.c (Lstream_write): Return documented value, not 0.
17613
17614         * fileio.c (directory_file_name):
17615         (Fsubstitute_in_file_name):
17616         (Fsubstitute_insert_file_contents_internal):
17617         (Fwrite_region_internal):
17618         * emacs.c:
17619         * sysdep.c:
17620         * getloadavg.c:
17621         * systty.h:
17622         Remove vestigial APOLLO-conditional code.
17623
17624 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17625
17626         * getpagesize.h: Add guard macros.
17627         * libsst.h: Add guard macros.
17628         * libst.h: Add guard macros.
17629         * line-number.h: Add guard macros.
17630         * ndir.h: Add guard macros.
17631         * sysfloat.h: Add guard macros.
17632         * sysfile.h: Add guard macros.
17633         * sysproc.h: Add guard macros.
17634         * syswait.h: Add guard macros.
17635         * xintrinsic.h: Add guard macros.
17636         * xintrinsicp.h: Add guard macros.
17637         * xmmanager.h: Add guard macros.
17638         * xmmanagerp.h: Add guard macros.
17639         * xmprimitive.h: Add guard macros.
17640         * xmu.h: Add guard macros.
17641         * gpmevent.h: Add copyright statement. Add guard macros.
17642         * miscplay.h: Add guard macros.
17643         * *.h: Use consistent C-standards-approved guard macro names.
17644
17645         * opaque.c (make_opaque): Switch parameter order.
17646         * opaque.h (make_opaque): Switch parameter order.
17647         Update all callers.
17648         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17649
17650         * config.h.in (type_checking_assert): Added.
17651         (bufpos_checking_assert): Added.
17652
17653 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17654
17655         * alloc.c: Harmless pdump changes.
17656         - Use countof().
17657         - spell alignment correctly.
17658         * sysdep.c: Use countof()
17659
17660 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17661
17662         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17663         initially_selected_for_input() console method, default to 0.
17664         (semi_canonicalize_console_connection): Try to delegate to
17665         canonicalize_console_connection if no such console method.
17666         (canonicalize_console_connection): Vice versa.
17667         (print_console): Do not print nil connection.
17668
17669         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17670         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17671         (XDEVIMPF_FRAMELESS_OK): Added.
17672         (CONSOLE_INHERITS_METHOD): Added.
17673
17674         * console-msw.c (mswindows_canonicalize_console_connection):
17675         Added.
17676         (mswindows_canonicalize_device_connection): Added.
17677
17678         * console-msw.h (struct msprinter_device): Added this struct and
17679         accessor macros.
17680         (mswindows_device): Made fontlist a lisp object.
17681
17682         * device.c (semi_canonicalize_device_connection):  Try to delegate
17683         to canonicalize_device_connection if no such console method.
17684         (canonicalize_device_connection): Vice versa.
17685         (print_device): Do not print nil connection.
17686
17687         * device-msw.c (mswindows_init_device): Call InitCommonControls
17688         when have widgets.
17689         (mswindows_delete_device): Removed fontlist deallocation.
17690         (mswindows_mark_device): Added.
17691
17692         * events.c (event_equal): Added abort() at unreached code.
17693         (event_hash): Ditto.
17694
17695         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17696         fallback tags of Windows devices.
17697
17698         * general.c (syms_of_general): Initialized Qmsprinter.
17699
17700         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17701         of fallback tags of Windows devices.
17702
17703         * lisp.h: Declared Qmsprinter.
17704
17705         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17706         of strings.
17707         (mswindows_list_fonts): Ditto.
17708         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17709         that it can be used by both mswindows and msprinter devices.
17710         (initialize_font_instance): Added.
17711         (mswindows_initialize_font_instance): Use it.
17712         (msprinter_initialize_font_instance): Added.
17713
17714         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17715         and implementation flags check.
17716         (redisplay_without_hooks): Changed the call to the above.
17717         (Fredraw_device): Ditto.
17718         (Fredisplay_device): Ditto.
17719
17720         * redisplay-msw.c (get_frame_dc): Implemented.
17721         (get_frame_compdc): Implemented.
17722         (many functions): Use the two functions above to get device
17723         contexts, ether for a window or a printer.
17724
17725 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17726
17727         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17728         initialization here.
17729         (init_symbols_once_early): Call it.
17730         * emacs.c (main_1): Call it.
17731         * symsinit.h: Declare it.
17732
17733 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17734
17735         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17736         Lisp_Object.
17737         (pdump_backtrace): Ditto.
17738         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17739         (pdump_get_entry): Abort if trying to register a null pointer.
17740         (pdump_dump_data): Cleanup types when relocating.
17741         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17742         (pdump_dump_rtables): Remove bad casts.
17743         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17744         Lisp_Object instead of a EMACS_INT for the hashtable
17745         reorganization.
17746
17747 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17748
17749         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17750
17751         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17752
17753         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17754
17755         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17756
17757 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17758
17759         * faces.h (FACE_STRIKETHRU_P): Added.
17760
17761         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17762         of font variants.
17763
17764         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17765         (mswindows_set_dc_font): New function, aware of font variants,
17766         separated from mswindows_update_dc.
17767
17768         * objects-msw.h (struct mswindows_font_instance_data): Added
17769         definition.
17770
17771         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17772         cached fonts and the data structure.
17773         (mswindows_initialize_font_instance): Added creation of font data
17774         structure.
17775         (mswindows_print_font_instance): Print at least something.
17776         (mswindows_create_font_variant): Implemented.
17777         (mswindows_get_hfont): Implemented.
17778
17779 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17780
17781         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17782         prototyping problem with msvc.
17783
17784         * emacs.c (main_1): added syms_of_gui_mswindows() call
17785
17786         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17787         syms_of_gui_mswindows() function
17788
17789         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17790
17791 2000-01-18  Martin Buchholz <martin@xemacs.org>
17792
17793         * XEmacs 21.2.27 is released.
17794
17795 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17796
17797         * glyphs-eimage.c (struct tiff_error_struct):
17798         (tiff_error_func):
17799         (tiff_warning_func):
17800         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17801
17802         * unexmips.c:
17803         * unexhp9k3.c:
17804         * unexfreebsd.c:
17805         * unexec.c: Remove vestigial Lucid C code.
17806         * unexalpha.c:
17807         * unexaix.c:
17808         * termcap.c:
17809         * libsst.c: Ansify.
17810         Remove declarations of errno and strerror().
17811
17812         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17813
17814         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17815
17816 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17817
17818         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17819         Optimize.
17820
17821 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17822
17823         * md5.c:
17824         * file-coding.c:
17825         * file-coding.h:
17826         Change enum eol_type to eol_type_t.
17827
17828 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17829
17830         * gui.c (get_gui_callback): Check cons before accessing car.
17831
17832 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17833
17834         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17835         (XSETSPECIFIER_TYPE): Ditto.
17836
17837 2000-01-17  Didier Verna  <didier@xemacs.org>
17838
17839         * redisplay.c (generate_fstring_runes): compute string size in
17840         characters, not bytes.
17841
17842 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17843
17844         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17845
17846 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17847
17848         * print.c (print_error_message): Call print_prepare().
17849
17850 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17851
17852         * .dbxrc: Renamed from dbxrc.
17853
17854         * events.c (event_to_character):
17855         Use `assert (foo)' instead of `if (!foo) abort()'
17856
17857         * .gdbinit (xtype): Add documentation.
17858         * .gdbinit (check-temacs): New function.
17859         * .gdbinit (check-xemacs): New function.
17860         * dbxrc (check-xemacs): New function.
17861         * dbxrc (check-xemacs): New function.
17862
17863 2000-01-14  Andy Piper  <andy@xemacs.org>
17864
17865         * glyphs-widget.c (widget_query_geometry): Make sure that we
17866         calculate default dimensions correctly.
17867
17868 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17869
17870         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17871
17872         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17873         pdump_wire'd variable.
17874
17875         * emacs.c: (main_1): Conditionalized calls to
17876         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17877
17878 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17879
17880         * window.c (Fset_window_configuration):
17881         * sysdep.c (_start):
17882         * input-method-motif.c (res):
17883         * event-Xt.c (Xt_process_to_emacs_event):
17884         Simple compiler warning fixes.
17885
17886         * bytecode.c (funcall_compiled_function): Use the original
17887         function symbol on the backtrace list in preference to the
17888         compiled_function object in error messages.
17889
17890 2000-01-13  Andy Piper  <andy@xemacs.org>
17891
17892         * glyphs-x.c (update_widget_face): Make sure we update the widget
17893         background as well as foreground.
17894
17895 2000-01-13  Andy Piper  <andy@xemacs.org>
17896
17897         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17898         fields to subwindow.
17899         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17900         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17901         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17902         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17903
17904         * glyphs-widget.c (check_valid_tab_orientation): new function.
17905         (initialize_widget_image_instance): zero orientation and
17906         justification.
17907         (widget_instantiate): pick up orientation.
17908         (tab_control_query_geometry): return appropriate values for
17909         vertical tabs.
17910
17911         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17912         appropriate creation flags for left, right and bottom tabs.
17913
17914         * s/cygwin32.h: add tab definitions.
17915
17916 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17917
17918         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17919         frame upon hiding a subwindow.
17920         (mswindows_button_instantiate): Changed the push button style to
17921         BS_PUSHBUTTON.
17922         (mswindows_button_instantiate): Removed button BS_NOTIFY
17923         style.
17924         (mswindows_button_instantiate): Removed redundant check for
17925         a disabled gui item.
17926         (mswindows_button_instantiate): Made use of WS_TABSTOP
17927         consistent: "operable" controls (edit, button, tree, scroll) have
17928         this style, "display-only" ones (static, progress gauge) do
17929         not. This style is currently ignored by XEmacs though. Also,
17930         removed the WS_EX_CONTROLPARENT style - it is not for children,
17931         it is for their parents!
17932         (mswindows_edit_field_instantiate): Ditto.
17933         (mswindows_progress_gauge_instantiate): Ditto.
17934         (mswindows_tree_view_instantiate): Ditto.
17935         (mswindows_tab_control_instantiate): Ditto.
17936         (mswindows_scrollbar_instantiate): Ditto.
17937         (mswindows_combo_box_instantiate): Ditto.
17938         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17939         style to the "clip" window.
17940         (mswindows_button_instantiate): Removed compilation warning by
17941         equally typing terms of the ?: operator.
17942
17943 2000-01-12  Didier Verna  <didier@xemacs.org>
17944
17945         * redisplay.c (generate_fstring_runes): new parameter holding the
17946         last modeline-format extent.
17947         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17948         extent, fill the glyph block with it.
17949         (generate_fstring_runes): handle these parameters.
17950         (generate_formatted_string_db): ditto.
17951
17952         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17953         glyphs'extents in the modeline.
17954
17955 1999-01-11  Mike Woolley  <mike@bulsara.com>
17956
17957         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17958         256Mb, as a workaround for the non-starting problem many people
17959         have experienced.
17960
17961 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17962
17963         * console-tty.c (Fset_console_tty_output_coding_system):
17964         Force redrawing tty frame.
17965
17966 2000-01-10  Didier Verna  <didier@xemacs.org>
17967
17968         * redisplay.c (generate_fstring_runes): fix size computation bug.
17969
17970 2000-01-09  William M. Perry <wmperry@aventail.com>
17971
17972         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17973
17974 2000-01-09  Andy Piper  <andy@xemacs.org>
17975
17976         * glyphs-msw.c: index -> i to avoid shadows.
17977         (xbm_create_bitmap_from_data): make static.
17978         (check_valid_string_or_int): deleted.
17979         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17980
17981         * glyphs-x.c (x_update_subwindow): remove unused args.
17982
17983         * glyphs.c (glyph_image_instance): return the thing. Don't set the
17984         back pointer - this is done in allocate_image_instance.
17985         (query_string_font): return Qnil to make the compiler happy.
17986         (unmap_subwindow): set to ~0 to make the compiler happy.
17987         (glyph_query_geometry): comment out until used.
17988         (glyph_layout): ditto.
17989
17990 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17991
17992         * insdel.c (signal_after_change): Remove extraneous unbind_to().