Sync up with r21-4-20.
[chise/xemacs-chise.git-] / src / ChangeLog
1 2006-06-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * concord.c (Fconcord_object_put): Add reversed links when FEATURE
4         is a relation feature.
5
6 2006-06-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * chartab.c (syms_of_chartab): Define
9         `{<-|->}{subsumptive|denotational}' when HAVE_CONCORD is defined.
10
11         * chartab.h (Q_denotational): New extern when UTF2000 or
12         HAVE_CONCORD is defined.
13         (Q_denotational_from): Likewise.
14         (Q_subsumptive): Likewise.
15         (Q_subsumptive_from): Likewise.
16
17 2006-06-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
18
19         * concord.c (concord_object_put): New function.
20         (Fconcord_object_put): Use `concord_object_put'.
21
22 2006-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
23
24         * concord.c (Fconcord_define_object): New function.
25         (syms_of_concord): Add new builtin function
26         `concord-define-object'.
27
28 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
29
30         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
31         (Kamo).
32
33 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
34
35         * concord.c: Add EXFUN for Fconcord_object_get.
36         (Vconcord_genre_object_hash_table): New variable.
37         (concord_genre_cache_get_object): New function.
38         (concord_genre_cache_put_object): New function.
39         (Fconcord_make_object): Use object cache; put object-ID into `=id'
40         feature.
41         (Fconcord_object_put): Call `concord_index_sync' after
42         `concord_index_strid_put_obj'.
43         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
44
45 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
46
47         * concord.c (Fconcord_decode_object): Do GCPRO for
48         Fconcord_make_object.
49         (func_for_each_object): Likewise; do GCPRO for
50         for_each_object_closure->function.
51         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
52         for_each_object_closure->function, for_each_object_closure->genre,
53         for_each_object_closure->ds and for_each_object_closure->ret.
54         (concord_object_validate): Do GCPRO for Fconcord_make_object.
55
56 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
57
58         * concord.c: Add EXFUNs for Fconcord_decode_object and
59         Fconcord_object_put.
60         (Fconcord_make_object): Change order of arguments.
61         (Fconcord_decode_object): Modify for Fconcord_make_object.
62         (func_for_each_object): Likewise.
63         (concord_object_validate): Likewise.
64         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
65
66 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
67
68         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
69
70 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
71
72         * concord.c (Fconcord_decode_object): Try to use readable print
73         form as a key of Concord-index.
74         (Fconcord_object_get): Try to use readable print form as an ID of
75         Concord-object.
76         (Fconcord_object_put): Try to use readable print form as an ID of
77         Concord-object and a feature value.
78         (Fconcord_object_spec): Try to use readable print form as an ID of
79         Concord-object.
80
81 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
82
83         * concord.c (print_concord_object): Support readable form.
84
85 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
86
87         * emacs.c (main_1): Call `structure_type_create_concord' when
88         HAVE_CONCORD is defined.
89
90         * symsinit.h (structure_type_create_concord): New prototype.
91
92         * concord.c (Qconcord_object): New variable.
93         (Qgenre): Likewise.
94         (Q_id): Likewise.
95         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
96         for directory.
97         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
98         char*> for genre-name.
99         (Fconcord_feature_list): Likewise.
100         (Fconcord_make_object): Likewise.
101         (Fconcord_decode_object): Likewise; use <char*> instead of
102         <unsigned char*> for feature_name and strid.
103         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
104         c_obj and feature_name.
105         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
106         char*> for c_value.
107         (struct closure_for_object_spec): Use <char*> instead of <unsigned
108         char*> for member `object_id'.
109         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
110         char*> for feature-name.
111         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
112         for c_obj.
113         (func_for_each_object): Cast to avoid warnings.
114         (Fconcord_foreach_object_in_feature): Use <char*> instead of
115         <unsigned char*> for genre_name and feature_name.
116         (concord_name_validate): New function.
117         (concord_object_validate): Likewise.
118         (concord_object_instantiate): Likewise.
119         (syms_of_concord): Add new builtin symbols `concord-object',
120         `genre' and `=id'.
121         (structure_type_create_concord): New function.
122
123 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
124
125         * concord.c (Vconcord_ds_hash_table): New variable.
126         (Vconcord_genre_hash_table): New variable.
127         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
128         (Fconcord_ds_directory): New function.
129         (Fconcord_assign_genre): New function.
130         (Fconcord_genre_directory): New function.
131         (Fconcord_genre_ds): New function.
132         (Fconcord_feature_list): Allow to omit `ds'.
133         (Fconcord_make_object): Likewise.
134         (Fconcord_decode_object): Likewise.
135         (Fconcord_foreach_object_in_feature): Likewise.
136         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
137         Fconcord_assign_genre, Fconcord_genre_directory and
138         Fconcord_genre_ds.
139         (vars_of_concord): Setup Vconcord_ds_hash_table and
140         Vconcord_genre_hash_table.
141
142 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
143
144         * concord.c (struct closure_for_each_object): Add new member
145         `ret'.
146         (func_for_each_object): Setup the return value to
147         `for_each_object_closure->ret'.
148         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
149         returns the value instead of Qt.
150
151 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
152
153         * concord.c: New file.
154
155 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
156
157         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
158         `lrecord_type_concord_object'.
159
160 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
161
162         * symsinit.h (syms_of_concord): New prototype.
163         (vars_of_concord): New prototype.
164
165         * emacs.c (main_1): Setup symbols and variable about concord if
166         HAVE_CONCORD is defined.
167
168         * config.h.in (HAVE_CONCORD): New macro.
169
170 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
171
172         * chartab.c (Fput_char_attribute): For each character relation
173         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
174
175 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
176
177         * chartab.c (Fput_char_attribute): Use
178         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
179         calling `put_char_composition'.
180
181 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
182
183         * chartab.c (Q_halfwidth_of): New variable.
184         (put_char_composition): Return `<-halfwidth' instead of
185         `=decomposition' for compatibility mapping to single character
186         tagged `narrow'.
187         (Fput_char_attribute): Convert char-specs in value of
188         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
189         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
190         for `<-halfwidth'.
191         (syms_of_chartab): Add new symbol `<-halfwidth'.
192
193 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
194
195         * chartab.c (put_char_composition): Return
196         `<-formed@{isolated|initial|medial|final}' for compatibility
197         mapping to single character tagged
198         `{isolated|initial|medial|final}'.
199
200 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
201
202         * chartab.c (Q_compat_of): Deleted.
203         (put_char_composition): Return `<-FOO' for compatibility mapping
204         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
205         of `symbol_name (XSYMBOL(...))'.
206         (Fput_char_attribute): Convert char-specs in value of
207         `{<-|->}font[^*]*' to characters and put reverse links.
208         (Fsave_char_attribute_table): Don't refer Q_compat_of.
209         (syms_of_chartab): Delete builtin symbol `<-compat'.
210
211 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
212
213         * chartab.c (Q_circled_of): New variable.
214         (put_char_composition): Return `<-circled' instead of
215         `=decomposition' for compatibility mapping to single character
216         tagged `circle'.
217         (Fput_char_attribute): Convert char-specs in value of
218         `{<-|->}circled[^*]*' to characters and put reverse links.
219         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
220         for `<-circled'.
221         (syms_of_chartab): Add new symbol `<-circled'.
222
223 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
224
225         * chartab.c (Qto_decomposition_at_circled): New variable.
226         (put_char_composition): Return `=>decomposition@circled' instead
227         of `=decomposition' for compatibility decomposition mapping tagged
228         `circle'.
229         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
230
231 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
232
233         * chartab.c (Q_subscript_of): New variable.
234         (put_char_composition): Return `<-subscript' instead of
235         `=decomposition' for compatibility mapping to single character
236         tagged `sub'.
237         (Fput_char_attribute): Convert char-specs in value of
238         `{<-|->}subscript[^*]*' to characters and put reverse links.
239         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
240         for `<-subscript'.
241         (syms_of_chartab): Add new symbol `<-subscript'.
242
243 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
244
245         * chartab.c (Q_superscript_of): New variable.
246         (put_char_composition): Return `<-superscript' instead of
247         `=decomposition' for compatibility mapping to single character
248         tagged `super'.
249         (Fput_char_attribute): Convert char-specs in value of
250         `{<-|->}superscript[^*]*' to characters and put reverse links.
251         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
252         for `<-superscript'.
253         (syms_of_chartab): Add new symbol `<-superscript'.
254
255 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
256
257         * chartab.c (Qto_decomposition_at_compat): Deleted.
258         (Qto_decomposition_at_superscript): New variable.
259         (put_char_composition): Use `=>decomposition@superscript' instead
260         of `=decomposition' for compatibility decomposition mapping tagged
261         `super'.
262         (Fput_char_attribute): Fix condition about `put_char_composition'.
263         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
264         add news symbol `=>decomposition@superscript'.
265
266 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
267
268         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
269         for compatibility decomposition mapping tagged FOO.
270         (Fput_char_attribute): Modify for `put_char_composition'.
271
272 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
273
274         * chartab.c (Qto_decomposition_at_compat): New variable.
275         (Q_compat_of): Renamed from `Q_compatibility_of'.
276         (put_char_composition): Rename `Q_compatibility_of' to
277         `Q_compat_of'; return `=>decomposition@compat' for compatibility
278         decomposition mapping.
279         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
280         `Q_compat_of'.
281         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
282         `<-compatibility' to `<-compat'.
283
284 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
285
286         * chartab.c (Q_compatibility_of): New variable.
287         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
288         object is proved to be a cons cell; return `<-compatibility' if
289         the first element of argument `value' is `compat'.
290         (Fput_char_attribute): Eliminate the first value if
291         `put_char_composition' returns `<-compatibility'.
292         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
293         for `<-compatibility'.
294         (syms_of_chartab): Add new symbol `<-compatibility'.
295
296 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
297
298         * chartab.c (Q_canonical): New variable.
299         (put_char_composition): Return a feature name: return
300         `->canonical' if argument `value' specifies single character.
301         (Fput_char_attribute): Use `put_char_composition' to determine
302         feature name for `=decomposition' or `->denotational'.
303         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
304         for `->canonical'.
305         (syms_of_chartab): Add new symbol `->canonical'.
306
307 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
308
309         * chartab.c (Qmap_decomposition): New variable.
310         (Fput_char_attribute): Convert `->decomposition' to
311         `=decomposition'.
312         (syms_of_chartab): Add new symbol `=decomposition'.
313
314 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
315
316         * chartab.c (Fget_range_char_table): Fix serious problem when
317         `range' is nil.
318
319 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
320
321         * chartab.c (char_table_get_db): Use `read_from_c_string'.
322
323 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
324
325         * lread.c (read_from_c_string): New function.
326
327         * lisp.h (read_from_c_string): New prototype.
328
329 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
330
331         * chartab.c (Fput_char_attribute): Convert char-specs in value of
332         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
333         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
334         for `{<-|->}Oracle-Bones[^*]*'.
335
336 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
337
338         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
339         (Kizu).
340
341 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
342
343         * text-coding.c (Qccs_priority_list): New variable in XEmacs
344         CHISE.
345         (Fmake_coding_system): Support new property `ccs-priority-list' in
346         XEmacs CHISE.
347         (Fcoding_system_property): Likewise.
348         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
349         Vdefault_coded_charset_priority_list in XEmacs CHISE.
350         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
351         XEmacs CHISE.
352         (complex_vars_of_file_coding): Define new coding-system-property
353         `ccs-priority-list' in XEmacs CHISE.
354
355         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
356
357 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
358
359         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
360         changed to normal function.
361         (encode_char_2): Likewise.
362
363         * mule-charset.c (decoding_table_put_char): Copied from
364         char-ucs.h; changed to normal function.
365         (encode_char_2): Likewise.
366
367 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
368
369         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
370         New extern.
371         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
372         (encode_char_2_search_children): New inline function.
373         (encode_char_2): Refer
374         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
375         and use `encode_char_2_search_children'.
376
377 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
378
379         * mule-charset.c
380         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
381         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
382         (vars_of_mule_charset): Add new variable
383         `display-coded-charset-priority-use-inheritance' and
384         `display-coded-charset-priority-use-hierarchy-order'.
385
386 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
387
388         * char-ucs.h (Q_subsumptive): New extern.
389         (Q_denotational): Likewise.
390         (encode_char_2): Search children specified by `->subsumptive' and
391         `->denotational'.
392
393 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
394
395         * mule-charset.c (complex_vars_of_mule_charset): Modify the
396         X-registry of `ucs-bmp'.
397
398 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
399
400         * chartab.c (char-variants): Refer `->subsumptive',
401         `->denotational' and `->identical' as same as `->ucs-unified'.
402
403 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
404
405         * chartab.c (Fput_char_attribute): Convert char-specs in value of
406         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
407         links.
408
409 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
410
411         * text-coding.c: Add EXFUN for `Fregexp_quote'.
412         (decode_add_er_char): Fix problem about infinite loop when a CCS
413         specified in `coded-charset-entity-reference-alist' is not
414         existed.
415
416 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
417
418         * mule-charset.c (syms_of_mule_charset): Rename
419         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
420
421 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
422
423         * fns.c (simplify_char_spec): Don't allocate new character-object
424         if specified char_spec does not have any CCS-features.
425
426         * chartab.h: Add EXFUN for Fdefine_char.
427
428         * chartab.c: Delete EXFUN for Fdefine_char.
429
430 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
431
432         * fns.c (simplify_char_spec): Use Fdefine_char instead of
433         Ffind_char for char-spec.
434
435 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
436
437         * lisp-disunion.h (XCHARVAL): Fix condition about
438         SIZEOF_EMACS_INT.
439
440 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
441
442         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
443         <int> for `code'.
444         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
445         point; use <Emchar> instead of <int> for character-id.
446
447 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
448
449         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
450         (make_char): Likewise.
451         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
452         environment.
453         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
454         instead of <int> as the type of return value; use <Lisp_Object>
455         instead of <Emchar> as the type of argument.
456         (XCHARVAL[macro version]): Cast the result into <Emchar>.
457
458         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
459         syntaxcode> instead of <int>.
460
461 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
462
463         * chartab.c (put_char_composition): Use DECODE_CHAR to get
464         character corresponding with UCS code point.
465         (Fput_char_attribute): Likewise.
466
467         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
468         character in the UCS decoding-table if the char-id is not equal to
469         the UCS code point.
470
471 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
472
473         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
474         for aliases; write `description'; write
475         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
476         not 0.
477
478 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
479
480         * chartab.c (Fsave_char_attribute_table): Don't use
481         `save_charset_properties'.
482
483         * mule-charset.c (Fsave_charset_properties): Renamed from
484         `save_charset_properties' and changed to Lisp function again;
485         write property `type' as `CCS'; write properties `final-byte' and
486         `mother' if they exists.
487         (syms_of_mule_charset): Revive builtin function
488         `save-charset-properties' when HAVE_LIBCHISE is defined.
489
490 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
491
492         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
493         instead of Vexec_directory.
494         (char_attribute_system_db_file): Likewise.
495
496 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
497
498         * chartab.c (Fsave_char_attribute_table): Use
499         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
500         defined.
501
502         * mule-charset.c (save_charset_properties): Renamed from
503         `Fsave_charset_properties'; changed to non-Lisp function.
504         (syms_of_mule_charset): Abolish builtin function
505         `save-charset-properties'.
506
507 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
508
509         * mule-charset.c (Fsave_charset_properties): New function when
510         HAVE_LIBCHISE is defined.
511         (syms_of_mule_charset): Add new builtin function
512         `save-charset-properties' when HAVE_LIBCHISE is defined.
513
514 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
515
516         * chartab.c (Fput_char_attribute): Convert char-specs in value of
517         `{<-|->}ancient[^*]*' to characters and put reverse links.
518         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
519         for `{<-|->}ancient[^*]*'.
520
521 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
522
523         * chartab.c (Fput_char_attribute): Convert char-specs in value of
524         `{<-|->}original[^*]*' to characters and put reverse links.
525         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
526         for `{<-|->}original[^*]*'.
527
528 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
529
530         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
531
532 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
533
534         * mule-charset.c (Qsystem_char_id): New variable.
535
536         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
537         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
538
539 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
540
541         * chartab.c (Fput_char_attribute): When processing a reference of
542         a character, put into the end of the reversed reference of each
543         target character.
544
545 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
546
547         * chartab.c (Q_same): Deleted.
548         (Q_same_of): Deleted.
549         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
550         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
551         for `{<-|->}same'.
552         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
553
554 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
555
556         * chartab.c (Q_vulgar): Deleted.
557         (Q_vulgar_of): Deleted.
558         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
559         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
560         for `{<-|->}vulgar'.
561         (syms_of_chartab): Don't define `{<-|->}vulgar'.
562
563 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
564
565         * chartab.c (Fput_char_attribute): Convert char-specs in value of
566         `{<-|->}wrong[^*]*' to characters and put reverse links.
567         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
568         for `{<-|->}wrong[^*]*'.
569
570 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
571
572         * chartab.c (Q_vulgar): New variable.
573         (Q_vulgar_of): New variable.
574         (Fput_char_attribute): Convert char-specs in value of
575         `{->|<-}vulgar' to characters and put reverse links.
576         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
577         for `{->|<-}vulgar'.
578         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
579
580 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
581
582         * text-coding.c (decode_add_er_char): Must to quote prefix string
583         as regexp.
584
585 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
586
587         * mule-charset.c (put_char_ccs_code_point): Store characters of
588         =ucs whose code_points >= 0xF0000.
589
590 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
591
592         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
593         CHISE.
594         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
595         CHISE.
596         (complex_vars_of_mule_charset): Add new coded-charset
597         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
598         builtin characters over 0xEFFFF.
599
600         * chartab.c (syms_of_chartab): Don't define symbol
601         `system-char-id' in every case.
602
603         * char-ucs.h (Qsystem_char_id): New extern variable.
604         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
605
606 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
607
608         * text-coding.c (char_encode_utf8): Try to use entity-references
609         for U-000F0000 ...  U-0010FFFF.
610
611 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
612
613         * text-coding.c (ER_BUF_SIZE): New macro.
614         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
615         `er_buf'.
616         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
617         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
618
619 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
620
621         * chartab.c (find_char_feature_in_family): New function.
622         (Fchar_feature): Use `find_char_feature_in_family' with
623         `->identical', `<-subsumptive' and `<-denotational'.
624
625 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
626
627         * text-coding.c (char_encode_as_entity_reference): Allow prefix
628         within 8 characters; fix infinite loop.
629
630 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
631
632         * chartab.c (Q_same): New variable.
633         (Q_same_of): New variable.
634         (Fput_char_attribute): Convert char-specs in value of
635         `{->|<-}same' to characters and put reverse links.
636         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
637         for `{->|<-}same'.
638         (syms_of_chartab): Add new symbols `{->|<-}same'.
639
640 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
641
642         * chartab.c (Q_component): New variable.
643         (Q_component_of): Likewise.
644         (Fput_char_attribute): Convert char-specs in value of
645         `{->|<-}ideographic-component-forms' to characters and put reverse
646         links.
647         (syms_of_chartab): Add new symbols
648         `{->|<-}ideographic-component-forms'.
649
650 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
651
652         * chartab.c (Q_identical): New variable.
653         (Q_identical_from): New variable.
654         (Fchar_feature): Regard `->identical' as a feature to find
655         ancestors.
656         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
657         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
658         for `{->|<-}identical'.
659         (syms_of_chartab): Add new symbols `{->|<-}identical'.
660
661 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
662
663         * char-ucs.h (encode_char_2): New inline function.
664         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
665
666 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
667
668         * chartab.c (Fput_char_attribute): Convert char-specs to
669         characters in value of `ideographic-structure'.
670         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
671         for `{<-|->}simplified(@...)'.
672         (Fdefine_char): Try to use predefined character's id.
673
674 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
675
676         * fns.c (simplify_char_spec): Try to convert builtin chars to
677         defined chars.
678
679 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
680
681         * chartab.c (Fput_char_attribute): Convert char-specs in value of
682         `<-simplified[^*]*' to characters and put reverse links.
683
684 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
685
686         * chartab.c (Q_subsumptive): Renamed from Q_unified.
687         (Q_subsumptive_from): Renamed from Q_unified_from.
688         (Fchar_feature): Use `Q_subsumptive_from' instead of
689         `Q_unified_from'.
690         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
691         `Q_unified'.
692         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
693         `<-unified' to `<-subsumptive'.
694
695 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
696
697         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
698         inheritance itself; fix typo; stop recursive search if cyclic
699         inheritance is found.
700
701 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
702
703         * chartab.c (Q_denotational): New variable.
704         (Q_denotational_from): New variable.
705         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
706         (put_char_attribute): New function.
707         (Fput_char_attribute): Use `put_char_attribute'; regard
708         `->denotational' and `<-denotational' as same as `->unified' and
709         `<-unified'.
710         (syms_of_chartab): Add new symbols `->denotational' and
711         `<-denotational'.
712
713 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
714
715         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
716         `Fget_char_attribute'.
717         (Fchar_variants): Likewise.
718         (get_char_table): Likewise.
719         (Fchar_feature): New function.
720         (put_char_composition): Use `Fchar_feature' instead of
721         `Fget_char_attribute'.
722         (Fput_char_attribute): Likewise; don't put the target character
723         into its `->unified' value.
724         (syms_of_chartab): Add new builtin function `char-feature'.
725
726 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
727
728         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
729         `Fget_char_attribute'.
730         (char_encode_utf8): Likewise.
731
732         * chartab.h: Add an EXFUN for `Fchar_feature'.
733
734 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
735
736         * chartab.c (Vnext_defined_char_id): New variable.
737         (Fput_char_attribute): Accept characters in `->unified'.
738         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
739         new characters which are not related with builtin char-id ranges.
740         (vars_of_chartab): Add new variable `next-defined-char-id'.
741
742 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
743
744         * chartab.c (Q_unified): New variable.
745         (Q_unified_from): New variable.
746         (Fput_char_attribute): Add code for `->unified'.
747         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
748         XEmacs CHISE.
749
750 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
751
752         * mule-charset.c (decode_ccs_conversion): New function.
753         (decode_defined_char): Use `decode_ccs_conversion'.
754         (decode_builtin_char): Likewise.
755
756 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
757
758         * char-ucs.h: Change some charset-ids of private coded-charsets.
759
760 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
761
762         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
763         (char_encode_as_entity_reference): Likewise.
764         (decode_coding_big5): Modify for `decode_defined_char' and
765         `DECODE_CHAR'.
766         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
767         avoid compiler warning.
768         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
769
770         * mule-charset.c (decode_defined_char): Add new argument
771         `without_inheritance'.
772         (Fdecode_char): Add new optional argument `without_inheritance'.
773         (Fdecode_builtin_char): Modify for `Fdecode_char'.
774
775         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
776         (simplify_char_spec): Likewise.
777
778         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
779         setting.
780
781         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
782         (map_char_table): Likewise.
783         (Fdefine_char): Use `Fdecode_char' without inheritance.
784         (Ffind_char): Modify for `Fdecode_char'.
785
786         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
787
788         * char-ucs.h (decode_defined_char): Add new argument
789         `without_inheritance'.
790         (DECODE_CHAR): Likewise.
791         (MAKE_CHAR): Modify for `DECODE_CHAR'.
792
793 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
794
795         * chartab.c (Vchise_system_db_directory): New variable.
796         (vars_of_chartab): Add new variable `chise-system-db-directory'.
797
798 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
799
800         * chartab.c: EXFUN `Fmount_char_attribute_table'.
801         (print_chartab_range): Don't define when `UTF2000' is defined.
802         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
803         `CHISE_DS_open'.
804
805 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
806
807         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
808         and optional argument `rehash' is specified, call
809         `open_chise_data_source_maybe' before
810         `chise_ds_foreach_char_feature_name' is called.
811
812 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
813
814         * chartab.c (char_attribute_list_reset_map_func): New function
815         when HAVE_LIBCHISE is defined.
816         (Fchar_attribute_list): Add new optional argument `rehash' when
817         HAVE_LIBCHISE is defined.
818         (open_chise_data_source_maybe): Use "chise-db" instead of
819         "char-db".
820         (char_attribute_system_db_file): Likewise.
821         (Fload_char_attribute_table): Use
822         `chise_feature_foreach_char_with_value' instead of
823         `chise_char_feature_value_iterate'.
824
825 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
826
827         * chartab.c (Vchise_db_directory): New variable.
828         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
829
830 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
831
832         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
833         instead of HAVE_CHISE to specify using with libchise.
834
835         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
836
837         * chartab.h: Don't use HAVE_CHISE_CLIENT.
838
839         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
840         defined or HAVE_LIBCHISE_LIBCHISE is defined.
841         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
842         is defined.
843         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
844         HAVE_CHISE to specify using with libchise.
845         (syms_of_chartab): Don't define symbol `system-char-id' when
846         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
847
848 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
849
850         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
851         specify CHISE DB support.
852         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
853         of `char_attribute_system_db_file' to check feature DB file.
854
855         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
856         HAVE_CHISE_CLIENT to specify CHISE DB support.
857
858         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
859         specify CHISE DB support.
860         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
861         not defined.
862         (Freset_char_attribute_table): Use `chise_feature_setup_db'
863         instead of `char_attribute_system_db_file' to check feature DB
864         file.
865
866 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
867
868         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
869         `HAVE_CHISE_CLIENT'.
870
871 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
872
873         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
874         (Fsave_charset_mapping_table): Don't use
875         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
876
877         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
878         (HAVE_LIBCHISE): New macro.
879
880         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
881
882         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
883         (Fsave_char_attribute_table): Don't use
884         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
885
886 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
887
888         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
889         defined.
890         (save_uint16_byte_table): Likewise.
891         (save_byte_table): Likewise.
892         (char_table_get_db): Use `chise_ds_load_char_feature_value'
893         instead of `chise_char_load_feature_value'.
894         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
895
896 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
897
898         * chartab.h (struct Lisp_Char_Table): Delete member
899         `feature_table' if CHISE is defined.
900
901         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
902         (Fcopy_char_table): Likewise.
903         (char_table_open_db_maybe): Likewise.
904         (char_table_close_db_maybe): Likewise.
905         (char_table_get_db): Likewise.
906         (Fmount_char_attribute_table): Likewise.
907         (Fload_char_attribute_table): Likewise.
908
909 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
910
911         * mule-charset.c (load_char_decoding_entry_maybe): Use
912         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
913         `chise_ccs_decode'.
914
915 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
916
917         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
918         instead of `chise_open_data_source'.
919         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
920         `chise_ds_close'.
921
922 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
923
924         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
925         instead of `chise_ds_open_feature_table'.
926         (char_table_close_db_maybe): Don't use `chise_ft_close'.
927
928 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
929
930         * mule-charset.c (Fsave_charset_mapping_table): Use
931         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
932         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
933         `chise_ccs_sync' instead of `chise_ccst_close'.
934         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
935
936         * chartab.c (open_chise_data_source_maybe): Modify for
937         `chise_open_data_source'.
938         (char_table_open_db_maybe): Modify for
939         `chise_ds_open_feature_table'.
940
941 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
942
943         * mule-charset.c (load_char_decoding_entry_maybe): Use
944         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
945         `chise_ccst_close'.
946
947 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
948
949         * mule-charset.c (Fsave_charset_mapping_table): Use
950         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
951         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
952         `chise_dt_put_char' and `chise_dt_close'.
953         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
954         `chise_ccs_decode' and `chise_ccst_close' instead of
955         `chise_ds_open_decoding_table', `chise_dt_get_char' and
956         `chise_dt_close'.
957
958         * chartab.c (char_table_get_db): Use
959         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
960         (load_char_attribute_table_map_func): Modify for
961         `chise_char_feature_value_iterate'.
962         (Fload_char_attribute_table): Use
963         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
964
965 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
966
967         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
968
969 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
970
971         * chartab.c (put_char_table): Modify for inherited coded-charsets
972         in XEmacs CHISE.
973
974 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
975
976         * chartab.c (Fput_char_table_map_function): Fixed.
977         (word_boundary_p): Don't check charset in XEmacs CHISE.
978
979 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
980
981         * mule-charset.c (Fsave_charset_mapping_table): Use
982         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
983         instead of `chise_open_decoding_table'; refer
984         `default_chise_data_source'; use `chise_dt_close' instead of
985         `chise_close_decoding_table'.
986         (load_char_decoding_entry_maybe): Likewise.
987
988         * chartab.c (default_chise_data_source): New variable when `CHISE'
989         is defined.
990         (Fcopy_char_table): `ct->ds' is deleted.
991         (open_chise_data_source_maybe): New function.
992         (Fclose_char_data_source): New function.
993         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
994         use `chise_ds_open_feature_table' instead of
995         `chise_open_feature_table'.
996         (char_table_close_db_maybe): Use `chise_ft_close' instead of
997         `chise_close_feature_table'; `cit->ds' is deleted.
998         (syms_of_chartab): Add new builtin function
999         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
1000
1001         * chartab.h (default_chise_data_source): New extern variable.
1002         (open_chise_data_source_maybe): New prototype.
1003         (struct Lisp_Char_Table): Delete `ds'.
1004
1005 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1006
1007         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
1008         `CHISE' is defined.
1009
1010 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1011
1012         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
1013         not defined; add code for non-libchise setting.
1014         (char_table_close_db_maybe): Likewise.
1015         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
1016         defined.
1017         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
1018         even if `CHISE' is not defined.
1019         (Freset_char_attribute_table): Likewise.
1020         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1021         `char_table_close_db_maybe' even if `CHISE' is not defined; use
1022         `char_table_get_db'.
1023         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
1024         `char_table_close_db_maybe' even if `CHISE' is not defined.
1025
1026 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1027
1028         * chartab.c (char_table_open_db_maybe): New function.
1029         (char_table_close_db_maybe): New function.
1030         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1031         (Freset_char_attribute_table): Likewise.
1032         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1033         `char_table_close_db_maybe'.
1034         (Fload_char_attribute_table): Likewise.
1035
1036 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1037
1038         * chartab.c: Don't include <chise.h> because it is included in
1039         chartab.h.
1040         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1041         defined.
1042         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1043         `CHISE' is defined.
1044         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1045         `CHISE' is defined.
1046         (Fclose_char_attribute_table): Close `ct->feature_table' and
1047         `ct->ds' when `CHISE' is defined.
1048         (Freset_char_attribute_table): Likewise.
1049         (load_char_attribute_maybe): Use `cit->ds' and
1050         `cit->feature_table' when `CHISE' is defined.
1051         (Fload_char_attribute_table): Likewise.
1052
1053         * chartab.h: Include <chise.h> when `CHISE' is defined.
1054         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1055         when `CHISE' is defined.
1056
1057 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1058
1059         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1060         is defined.
1061         (char_table_description): Likewise.
1062         (Fmake_char_table): Likewise.
1063         (Fcopy_char_table): Likewise.
1064         (Fmount_char_attribute_table): Likewise.
1065         (Fclose_char_attribute_table): Likewise.
1066         (Freset_char_attribute_table): Likewise.
1067         (load_char_attribute_maybe): Likewise.
1068         (Fload_char_attribute_table): Likewise.
1069
1070         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1071         defined.
1072
1073 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1074
1075         * chartab.c (load_char_attribute_table_map_func): New function
1076         when CHISE is defined.
1077         (Qload_char_attribute_table_map_function): Don't define when CHISE
1078         is defined.
1079         (Fload_char_attribute_table_map_function): Likewise.
1080         (Fload_char_attribute_table): Use libchise when `CHISE' is
1081         defined.
1082         (syms_of_chartab): Don't define
1083         `load-char-attribute-table-map-function' when CHISE is defined.
1084
1085 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1086
1087         * chartab.c: Include <chise.h> when `CHISE' is defined.
1088         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1089
1090 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1091
1092         * mule-charset.c (charset_code_point): Fix problem when searching
1093         in mother CCS fails with `defined_only' mode.
1094
1095 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1096
1097         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1098         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1099         (put_char_composition): Likewise.
1100         (Fput_char_attribute): Likewise.
1101         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1102
1103 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1104
1105         * chartab.c (Q_ucs): Deleted.
1106         (Fput_char_attribute): Don't refer `->ucs'.
1107         (Fdefine_char): Likewise.
1108         (Ffind_char): Likewise.
1109         (syms_of_chartab): Delete `->ucs'.
1110
1111 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1112
1113         * mule-charset.c (Qmap_cns11643_2): Renamed from
1114         `Qchinese_cns11643_2'.
1115         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1116         `chinese-cns11643-2'.
1117         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1118         `=cns11643-2'.
1119
1120 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1121
1122         * mule-charset.c (Qmap_cns11643_1): Renamed from
1123         `Qchinese_cns11643_1'.
1124         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1125         `chinese-cns11643-1'.
1126         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1127         `=cns11643-1'.
1128
1129 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1130
1131         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1132         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1133         `chinese-gb12345'.
1134         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1135         `=gb12345'.
1136
1137 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1138
1139         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1140         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1141         `chinese-gb2312'.
1142         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1143         `=gb2312'.
1144
1145 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1146
1147         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1148         (syms_of_mule_charset): Add new symbol `=big5' instead of
1149         `chinese-big5'.
1150         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1151
1152 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1153
1154         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1155         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1156         `korean-ksc5601'.
1157         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1158         `=ks-x1001'.
1159
1160 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1161
1162         * mule-charset.c (Qmap_jis_x0212): Renamed from
1163         `Qjapanese_jisx0212'.
1164         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1165         `japanese-jisx0212'.
1166         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1167         `=jis-x0212'.
1168
1169 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1170
1171         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1172         `Qjapanese_jisx0208'.
1173         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1174         of `japanese-jisx0208'.
1175         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1176         `=jis-x0208-1983'.
1177
1178 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1179
1180         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1181         `Qjapanese_jisx0208_1978'.
1182         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1183         of `japanese-jisx0208-1978'.
1184         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1185         `=jis-x0208-1978'.
1186
1187 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1188
1189         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1190         only for XEmacs CHISE.
1191
1192 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1193
1194         * char-ucs.h: Compact non-ISO-IR charset-ids.
1195         (LEADING_BYTE_UCS): Changed to -177.
1196         (LEADING_BYTE_CONTROL_1): Changed to -77.
1197         (LEADING_BYTE_UCS_BMP): Changed to -176.
1198         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1199
1200 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1201
1202         * mule-charset.c (Qiso_ir): New variable.
1203         (Fmake_charset): Recognise new property `iso-ir'.
1204         (syms_of_mule_charset): Add new symbol `iso-ir'.
1205
1206 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1207
1208         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1209         n to -n; charset-id of non ISO-IR sets are changed to positive
1210         numbers.
1211
1212 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1213
1214         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1215         for &MCS-XXXXXXXX; values.
1216
1217 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1218
1219         * mule.c (Vxemacs_chise_version): Renamed from
1220         `Vutf_2000_version'.
1221         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1222         `utf-2000-version' as an alias for `xemacs-chise-version'.
1223
1224 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1225
1226         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1227         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1228         defined.
1229
1230         * config.h.in (CHISE): New macro.
1231
1232 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1233
1234         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1235         of `ucs'.
1236         (Qmap_ucs): New variable.
1237         (syms_of_mule_charset): Add new symbol `=ucs'.
1238         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1239
1240         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1241         (simplify_char_spec): Likewise.
1242
1243         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1244
1245         * char-ucs.h (Qmap_ucs): New extern variable.
1246
1247 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1248
1249         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1250         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1251         don't define it when UTF2000 is not defined.
1252         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1253         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1254         when UTF2000 is not defined.
1255         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1256         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1257
1258 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1259
1260         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1261
1262         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1263         (Qucs_gb): Deleted.
1264         (syms_of_mule_charset): Delete `ucs-gb'.
1265         (complex_vars_of_mule_charset): Likewise.
1266
1267 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1268
1269         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1270
1271         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1272         (Qucs_cns): Deleted.
1273         (syms_of_mule_charset): Delete `ucs-cns'.
1274         (complex_vars_of_mule_charset): Likewise.
1275
1276 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1277
1278         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1279
1280         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1281         (Qucs_jis): Deleted.
1282         (syms_of_mule_charset): Delete `ucs-jis'.
1283         (complex_vars_of_mule_charset): Likewise.
1284
1285 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1286
1287         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1288
1289         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1290         (Qucs_ks): Deleted.
1291         (syms_of_mule_charset): Delete `ucs-ks'.
1292         (complex_vars_of_mule_charset): Likewise.
1293
1294 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1295
1296         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1297         (Qideograph_daikanwa_2): Deleted.
1298         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1299         (complex_vars_of_mule_charset): Likewise.
1300
1301         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1302         (LEADING_BYTE_DAIKANWA_1): Deleted.
1303         (LEADING_BYTE_DAIKANWA_2): Deleted.
1304         (MIN_CHAR_DAIKANWA): Deleted.
1305         (MAX_CHAR_DAIKANWA): Deleted.
1306
1307 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1308
1309         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1310         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1311         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1312
1313         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1314         (Vcharset_ideograph_daikanwa): Deleted.
1315         (Qideograph_hanziku_{1..12}): Deleted.
1316         (Qideograph_daikanwa): Deleted.
1317         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1318         Vcharset_ideograph_daikanwa.
1319         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1320         `ideograph-hanziku-{1..12}'.
1321         (complex_vars_of_mule_charset): Likewise.
1322
1323 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1324
1325         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1326
1327         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1328         (Qideograph_gt_pj_{1..11}): Deleted.
1329         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1330         (complex_vars_of_mule_charset): Likewise.
1331
1332 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1333
1334         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1335         (Vcharset_ideograph_gt): Deleted.
1336         (Qucs_big5): Deleted.
1337         (Qideograph_gt): Deleted.
1338         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1339         `ideograph-gt'.
1340         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1341         and `ideograph-gt'.
1342
1343         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1344         (LEADING_BYTE_GT): Deleted.
1345         (MIN_CHAR_GT): Deleted.
1346         (MAX_CHAR_GT): Deleted.
1347
1348 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1349
1350         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1351
1352 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1353
1354         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1355         (save_uint16_byte_table): Likewise.
1356         (save_byte_table): Likewise; convert values by it.
1357         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1358         for `ideographic-structure'.
1359         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1360         as the filter for `ideographic-structure'.
1361
1362 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1363
1364         * chartab.c (put_char_composition): New function.
1365         (Fput_char_attribute): Use `put_char_composition'; use
1366         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1367
1368         * fns.c (simplify_char_spec): New function.
1369         (char_ref_simplify_spec): New function.
1370         (Fchar_refs_simplify_char_specs): New function.
1371         (syms_of_fns): Add new builtin function
1372         `char-refs-simplify-char-specs'.
1373
1374 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1375
1376         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1377         (Qideograph_cbeta): Deleted.
1378         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1379         (complex_vars_of_mule_charset): Likewise.
1380
1381         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1382         (MIN_CHAR_CBETA): Comment out.
1383         (MAX_CHAR_CBETA): Likewise.
1384
1385 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1386
1387         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1388         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1389         CHISE client feature.
1390
1391 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1392
1393         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1394
1395 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1396
1397         * mule-charset.c (charset_lookup_description_1): Use
1398         `NUM_LEADING_BYTES' in UTF-2000.
1399
1400 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1401
1402         * char-ucs.h (GC_CHARSETP): Deleted.
1403
1404 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1405
1406         * char-ucs.h (MAX_CHAR_GT): Updated.
1407
1408 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1409
1410         * text-coding.c: Sync with XEmacs 21.4.10.
1411
1412 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1413
1414         * mule-charset.c (Vcharset_china3_jef): Deleted.
1415         (Qchina3_jef): Deleted.
1416         (syms_of_mule_charset): Don't define `china3-jef'.
1417         (complex_vars_of_mule_charset): Likewise.
1418
1419         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1420         (MIN_CHAR_CHINA3_JEF): Comment out.
1421         (MAX_CHAR_CHINA3_JEF): Comment out.
1422
1423 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1424
1425         * mule-charset.c (Vcharset_ucs_gb): New variable.
1426         (Qucs_gb): New variable.
1427         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1428         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1429
1430         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1431
1432 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1433
1434         * mule-charset.c (charset_code_point): if a coded-charset has a
1435         final-byte, don't inherit the builtin range of the mother CCS.
1436
1437 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1438
1439         * mule-charset.c (charset_code_point): Fix problem about
1440         inheritance.
1441
1442 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1443
1444         * mule-charset.c (decode_builtin_char): Reorganized.
1445
1446 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1447
1448         * text-coding.c (char_encode_as_entity_reference): Modify for
1449         `charset_code_point'.
1450         (char_encode_shift_jis): Likewise.
1451         (char_encode_big5): Likewise.
1452         (char_encode_utf8): Likewise.
1453         (char_encode_iso2022): Likewise.
1454
1455         * mule-charset.c (charset_code_point): Add new argument
1456         `defined_only'.
1457         (Fencode_char): Add new optional argument `defined_only'.
1458
1459         * chartab.c (put_char_table): Modify for `charset_code_point'.
1460
1461         * char-ucs.h (charset_code_point): Add new argument
1462         `defined_only'.
1463         (encode_char_1): Modify for `charset_code_point'.
1464
1465 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1466
1467         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1468         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1469
1470 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1471
1472         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1473         (Qjis_x0208): Likewise.
1474         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1475         XCHARSET_FINAL(charset).
1476         (charset_code_point): Modify condition for final-byte based
1477         builtin-chars.
1478         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1479         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1480         in UTF-2000; specify `=jis-x0208' as the mother of
1481         `japanese-jisx0208-1978', `japanese-jisx0208' and
1482         `japanese-jisx0208-1990' in UTF-2000.
1483
1484 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1485
1486         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1487
1488 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1489
1490         * text-coding.c (decode_coding_utf16): Support UTF-16.
1491         (char_encode_utf16): Fixed.
1492
1493 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1494
1495         * text-coding.c (Qutf16): New variable in MULE.
1496         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1497         (Fcoding_system_type): Add `utf-16' in MULE.
1498         (struct detection_state): Add a structure for utf16 in MULE.
1499         (detect_coding_type): Setup st->utf16.mask in MULE.
1500         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1501         MULE.
1502         (reset_encoding_stream): Use `char_encode_utf16' and
1503         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1504         (detect_coding_utf16): New function [incomplete].
1505         (decode_coding_utf16): New function [support only UCS-2].
1506         (char_encode_utf16): New function.
1507         (char_finish_utf16): New function.
1508         (syms_of_file_coding): Add new symbol `utf-16'; setup
1509         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1510
1511         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1512         UTF-2000.
1513         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1514         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1515
1516 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1517
1518         * chartab.c (put_char_table): When a charset is specified as a
1519         range in UTF-2000, don't support builtin characters.
1520
1521 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1522
1523         * mule-charset.c (decode_defined_char): Don't refer external
1524         database if Qunbound or Qnil are found.
1525         (Fsave_charset_mapping_table): Don't define it if
1526         HAVE_CHISE_CLIENT is not defined.
1527         (Freset_charset_mapping_table): New function.
1528         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1529         found in external database.
1530         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1531         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1532         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1533
1534 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1535
1536         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1537         not.
1538
1539 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1540
1541         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1542         Q_lowercase, Q_uppercase in UTF-2000.
1543
1544         * chartab.c (get_char_table): Add special code for the standard
1545         case table to use character attribute `->downcase' and
1546         `->uppercase' for case operations in UTF-2000.
1547
1548         * casetab.c (Qflippedcase): New variable in UTF-2000.
1549         (Q_lowercase): Likewise.
1550         (Q_uppercase): Likewise.
1551         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1552         and `->uppercase' in UTF-2000.
1553         (complex_vars_of_casetab): Assign attribute name `downcase' to
1554         downcase and CANON table of Vstandard_case_table in UTF-2000;
1555         assign attribute name `flippedcase' to upcase and EQV table of
1556         Vstandard_case_table in UTF-2000.
1557
1558 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1559
1560         * text-coding.c (decode_add_er_char): Support isolated-chars.
1561         (char_encode_as_entity_reference): Likewise.
1562
1563 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1564
1565         * emacs.c (Vutf_2000_lisp_directory): New variable.
1566         (Vconfigure_utf_2000_lisp_directory): Likewise.
1567         (complex_vars_of_emacs): Add new variable
1568         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1569
1570 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1571
1572         * char-ucs.h (DECODE_CHAR): Delete special code for
1573         `chinese-big5-1' and `chinese-big5-2'.
1574
1575         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1576         (Qbig5_2): Likewise.
1577         (decode_defined_char): Support CONVERSION_BIG5_1 and
1578         CONVERSION_BIG5_2.
1579         (decode_builtin_char): Likewise.
1580         (charset_code_point): Likewise.
1581         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1582         'conversion in UTF-2000.
1583         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1584         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1585         `chinese-big5-2' as children of `chinese-big5'.
1586
1587         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1588         (CONVERSION_BIG5_2): New macro.
1589
1590 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1591
1592         * text-coding.c (char_encode_big5): Support entity-reference.
1593
1594 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1595
1596         * text-coding.c (char_encode_as_entity_reference): New function.
1597         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1598
1599 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1600
1601         * text-coding.c (decode_coding_big5): Support entity-reference
1602         decoding feature.
1603
1604 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1605
1606         * text-coding.c (allocate_coding_system): Initialize initial
1607         charsets for CODESYS_UTF8.
1608         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1609         charset-g2 for CODESYS_UTF8.
1610         (decode_coding_utf8): Use charset-g0.
1611         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1612         to force variants to map to UCS.
1613
1614 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1615
1616         * text-coding.c (Qutf_8_mcs): New variable.
1617         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1618         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1619         instead of `utf-8' in UTF-2000.
1620
1621 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1622
1623         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1624         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1625         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1626         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1627         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1628         CONVERSION_96x96x96x96 are introduced.
1629         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1630         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1631         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1632
1633         * char-ucs.h (CONVERSION_94): New macro.
1634         (CONVERSION_96): New macro.
1635         (CONVERSION_94x94): New macro.
1636         (CONVERSION_96x96): New macro.
1637         (CONVERSION_94x94x94): New macro.
1638         (CONVERSION_96x96x96): New macro.
1639         (CONVERSION_94x94x94x60): New macro.
1640         (CONVERSION_94x94x94x94): New macro.
1641         (CONVERSION_96x96x96x96): New macro.
1642
1643 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1644
1645         * chartab.c (Vcharacter_variant_table): Deleted.
1646         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1647         of `Vcharacter_variant_table'.
1648         (Fput_char_attribute): Likewise.
1649         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1650         (complex_vars_of_chartab): Likewise.
1651
1652 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1653
1654         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1655
1656         * fns.c (Qideographic_structure): New variable.
1657         (Qkeyword_char): New variable.
1658         (ids_format_unit): New function.
1659         (Fideographic_structure_to_ids): New function.
1660         (syms_of_fns): Add new symbols `ideographic-structure' and
1661         `:char'; add new builtin function `ideographic-structure-to-ids'.
1662
1663         * data.c (Fchar_ref_p): New function.
1664         (syms_of_data): Add new builtin function `char-ref-p'.
1665
1666         * chartab.h: Add an EXFUN for `Ffind_char'.
1667
1668 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1669
1670         * text-coding.c (Vcharacter_composition_table): Deleted.
1671         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1672         in every UTF-2000.
1673
1674         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1675         UTF-2000.
1676         (Vcharacter_composition_table): Deleted.
1677         (Fget_composite_char): Use the implementation for external-DB
1678         support in every UTF-2000.
1679         (Fput_char_attribute): Likewise.
1680         (char_attribute_system_db_file): Don't define if external-DB
1681         feature is not available.
1682         (Fsave_char_attribute_table): Likewise.
1683         (Fmount_char_attribute_table): Likewise.
1684         (Fclose_char_attribute_table): Likewise.
1685         (Freset_char_attribute_table): Likewise.
1686         (Fload_char_attribute_table): Likewise.
1687         (syms_of_chartab): Don't define `save-char-attribute-table',
1688         `mount-char-attribute-table', `reset-char-attribute-table',
1689         `close-char-attribute-table' and `load-char-attribute-table' if
1690         external-DB feature is not available.
1691         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1692
1693 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1694
1695         * text-coding.c (Qcomposition): Add extern if external-DB feature
1696         is supported.
1697         (Vcharacter_composition_table): Don't add extern if external-DB
1698         feature is supported.
1699         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1700         character composition rule if external-DB feature is supported.
1701
1702         * chartab.c (Vcharacter_composition_table): Don't define if
1703         external-DB feature is supported.
1704         (Qcomposition): New variable.
1705         (Fget_composite_char): New implementation for external-DB support.
1706         (Fput_char_attribute): Use `composition' property of each
1707         character instead of `Vcharacter_composition_table' to store
1708         character-composition rules if external-DB feature is supported.
1709         (syms_of_chartab): Add new symbol `composition'.
1710         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1711         external-DB feature is supported.
1712
1713 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1714
1715         * chartab.c (Vchar_db_stingy_mode): New variable.
1716         (load_char_attribute_maybe): Close database if
1717         Vchar_db_stingy_mode is not NIL.
1718         (Fload_char_attribute_table_map_function): Use
1719         `get_char_id_table_0' instead of `get_char_id_table'.
1720         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1721
1722         * chartab.h (get_char_id_table_0): New inline function.
1723         (get_char_id_table): Use `get_char_id_table_0'.
1724
1725 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1726
1727         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1728         and `COMPOSE_ADD_CHAR'.
1729         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1730
1731 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1732
1733         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1734         instead of `DECODE_ADD_UCS_CHAR'.
1735         (COMPOSE_ADD_CHAR): Likewise.
1736
1737 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1738
1739         * text-coding.c (decode_flush_er_chars): New inline function.
1740         (decode_add_er_char): New function.
1741         (decode_coding_utf8): Use `decode_flush_er_chars' and
1742         `decode_add_er_char'.
1743
1744 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1745
1746         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1747         done before `decode_output_utf8_partial_char'.
1748
1749         * mule-charset.c (complex_vars_of_mule_charset): Specify
1750         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1751         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1752
1753 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1754
1755         * mule-charset.c (decode_defined_char): New function; search
1756         mother.
1757         (decode_builtin_char): Don't search mother if
1758         XCHARSET_MAX_CODE(charset) == 0.
1759         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1760         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1761         (Fdecode_char): Use `decode_defined_char' instead of
1762         `DECODE_DEFINED_CHAR'.
1763         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1764         mother of `Vcharset_ucs_jis'.
1765
1766         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1767         instead of `DECODE_DEFINED_CHAR'.
1768
1769         * char-ucs.h (decode_defined_char): Renamed from
1770         `DECODE_DEFINED_CHAR'; changed to normal function.
1771         (DECODE_CHAR): Use `decode_defined_char' instead of
1772         `DECODE_DEFINED_CHAR'.
1773
1774         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1775
1776 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1777
1778         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1779
1780         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1781         variable.
1782         (Quse_entity_reference): New variable.
1783         (Qd): New variable.
1784         (Qx): New variable.
1785         (QX): New variable.
1786         (coding_system_description): Add description for
1787         `ccs_priority_list'.
1788         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1789         (allocate_coding_system): Initialize `ccs_priority_list' in
1790         UTF-2000.
1791         (Fmake_coding_system): Add description about
1792         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1793         (codesys).
1794         (Fcoding_system_property): Accept `disable-composition' and
1795         `use-entity-reference' in UTF-2000.
1796         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1797         in UTF-2000.
1798         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1799         (decode_coding_utf8): Decode entity-reference if
1800         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1801         (char_encode_utf8): Encode non-Unicode characters as
1802         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1803         (str->codesys).
1804         (syms_of_file_coding): Add new symbols `use-entity-reference',
1805         `d', `x', `X'.
1806         (vars_of_file_coding): Add new variable
1807         `coded-charset-entity-reference-alist'.
1808         (complex_vars_of_file_coding): Declare `disable-composition' and
1809         `use-entity-reference' to be coding-system-properties in UTF-2000.
1810
1811         * file-coding.h (struct Lisp_Coding_System): Add new member
1812         `use_entity_reference' and `ccs_priority_list'.
1813         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1814         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1815         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1816
1817 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1818
1819         * chartab.c (save_uint8_byte_table): Don't clear the table.
1820         (save_uint16_byte_table): Likewise.
1821         (save_byte_table): Likewise.
1822         (Fmount_char_attribute_table): New function.
1823         (syms_of_chartab): Add new builtin function
1824         `mount-char-attribute-table'.
1825
1826 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1827
1828         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1829         "w+" mode.
1830         (load_char_decoding_entry_maybe): Open database as read-only mode.
1831
1832         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1833         open database as "w+" mode.
1834         (load_char_attribute_maybe): Open database as read-only mode.
1835         (Fload_char_attribute_table): Likewise.
1836
1837 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1838
1839         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1840         (char_table_description): Delete member `db_file'.
1841         (Fmake_char_table): Don't refer `ct->db_file'.
1842         (Fcopy_char_table): Likewise.
1843         (Fsave_char_attribute_table): Likewise.
1844         (Fclose_char_attribute_table): Likewise.
1845         (Freset_char_attribute_table): Likewise.
1846         (load_char_attribute_maybe): Likewise.
1847         (Fload_char_attribute_table): Likewise.
1848
1849         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1850
1851 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1852
1853         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1854         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1855         `ct->db' is living.
1856         (load_char_attribute_maybe): Likewise.
1857         (Fload_char_attribute_table): Likewise.
1858
1859 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1860
1861         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1862         `ct->db_file' unconditionally.
1863
1864 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1865
1866         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1867         UTF-2000.
1868         (char_table_description): Add description for `db_file' and `db'
1869         in UTF-2000.
1870         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1871         UTF-2000.
1872         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1873         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1874         (Fclose_char_attribute_table): New function.
1875         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1876         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1877         and `cit->db'.
1878         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1879         (syms_of_chartab): Add new builtin function
1880         `Fclose_char_attribute_table'.
1881
1882 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1883
1884         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1885         `db' in UTF-2000.
1886         (load_char_attribute_maybe): Change interface.
1887         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1888
1889 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1890
1891         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1892
1893 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1894
1895         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1896         instead of `DECODE_CHAR' for mother; don't use special code for
1897         chinese-big5 to use code space of chinese-big5-1 and
1898         chinese-big5-2.
1899         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1900         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1901
1902         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1903         (MAX_CHAR_BIG5_CDP): Revival.
1904
1905 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1906
1907         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1908         the XLFD registry-encoding name of `chinese-big5'.
1909
1910 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1911
1912         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1913         (Qchinese_big5_cdp): Deleted.
1914         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1915         (complex_vars_of_mule_charset): Delete coded-charset
1916         `chinese-big5-cdp'.
1917
1918         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1919         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1920         `CHARSET_ID_OFFSET - n' for private CCS.
1921         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1922         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1923         of `MIN_LEADING_BYTE'.
1924         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1925         `(CHARSET_ID_OFFSET - 97)'.
1926         (MIN_CHAR_BIG5_CDP): Deleted.
1927         (MAX_CHAR_BIG5_CDP): Deleted.
1928
1929 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1930
1931         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1932
1933 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1934
1935         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1936         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1937         chartab.c].
1938
1939         * chartab.c (Vutf_2000_version): Moved to mule.c.
1940         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1941
1942 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1943
1944         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1945         when HAVE_CHISE_CLIENT is not defined.
1946
1947         * mule.c (vars_of_mule): Provide feature `chise' when
1948         HAVE_CHISE_CLIENT is defined.
1949
1950 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1951
1952         * config.h.in (UTF2000): Add comment.
1953         (HAVE_CHISE_CLIENT): New macro.
1954
1955 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1956
1957         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1958         CONSP.
1959         (Fput_char_attribute): Likewise.
1960         (char_attribute_system_db_file): Encode file-name of attribute.
1961         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1962         the initial value.
1963
1964 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1965
1966         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1967         (Fsave_charset_mapping_table): Use
1968         `char_attribute_system_db_file'.
1969         (load_char_decoding_entry_maybe): Likewise.
1970
1971         * chartab.h (Qsystem_char_id): New external variable.
1972         (char_attribute_system_db_file): New prototype.
1973
1974         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1975         (char_attribute_system_db_file): New function.
1976         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1977         (Freset_char_attribute_table): Likewise.
1978         (load_char_attribute_maybe): Likewise.
1979         (Fload_char_attribute_table): Likewise.
1980         (syms_of_chartab): Add new symbol `system-char-id'.
1981
1982 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1983
1984         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1985         `XCHARSET_GRAPHIC(ccs)'.
1986
1987 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1988
1989         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1990
1991 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1992
1993         * chartab.c (Q_ucs_variants): New variable.
1994         (syms_of_chartab): Add new symbol `->ucs-variants'.
1995         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1996         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1997         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1998
1999         * mule-charset.c (load_char_decoding_entry_maybe): New function.
2000
2001         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
2002         `HAVE_DATABASE' is defined.
2003         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
2004         `HAVE_DATABASE' is defined.
2005
2006 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2007
2008         * chartab.c (Fsave_char_attribute_table): Don't clear internal
2009         attribute-table.
2010         (Freset_char_attribute_table): New function.
2011         (syms_of_chartab): Add new builtin function
2012         `reset-char-attribute-table'.
2013
2014 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2015
2016         * chartab.c (load_char_attribute_maybe): Don't make directories.
2017
2018 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2019
2020         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
2021
2022         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
2023         for decoding-table.
2024
2025 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2026
2027         * mule-charset.c (Fsave_charset_mapping_table): Use
2028         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2029
2030         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2031         instead of `XCHARSET_CHARS'.
2032
2033 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2034
2035         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2036         (XCHARSET_BYTE_SIZE): Likewise.
2037
2038         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2039         mule-charset.c].
2040         (XCHARSET_BYTE_SIZE): Likewise.
2041
2042 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2043
2044         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2045         data-directory to store database.
2046         (Fsave_char_attribute_table): Likewise.
2047         (load_char_attribute_maybe): Likewise.
2048         (Fload_char_attribute_table): Likewise.
2049
2050 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2051
2052         * mule-charset.c (Fsave_charset_mapping_table): New function.
2053         (syms_of_mule_charset): Add new builtin function
2054         `save-charset-mapping-table'.
2055
2056 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2057
2058         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2059         (get_ccs_octet_table): New inline function.
2060         (put_ccs_octet_table): Likewise.
2061         (decoding_table_put_char): Use `get_ccs_octet_table' and
2062         `put_ccs_octet_table'.
2063         (decoding_table_remove_char): Use `decoding_table_put_char'.
2064         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2065
2066         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2067         into encoding_table.
2068         (make_charset): Use Qunbound instead Qnil as initial value of
2069         decoding_table.
2070
2071 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2072
2073         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2074         element is Qunloaded.
2075         (map_over_uint16_byte_table): Likewise.
2076         (map_over_byte_table): Likewise.
2077         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2078         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2079         database support, load encoding-table of the specified
2080         coded-charset if it is not loaded yet.
2081         (save_uint8_byte_table): New function of UTF-2000 with external
2082         database support.
2083         (save_uint16_byte_table): Likewise.
2084         (save_byte_table): Likewise.
2085         (Fput_char_attribute): Don't store value into external database
2086         even if the external database feature is supported in UTF-2000;
2087         set `attribute' as name of char-table if the external database
2088         feature is supported.
2089         (Fsave_char_attribute_table): New function in UTF-2000.
2090         (syms_of_chartab): Add new builtin function
2091         `save-char-attribute-table' in UTF-2000.
2092
2093 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2094
2095         * chartab.c (char_attribute_table_to_put): New variable in
2096         UTF-2000.
2097         (Qput_char_table_map_function): Likewise.
2098         (value_to_put): Likewise.
2099         (Fput_char_table_map_function): New function in UTF-2000.
2100         (put_char_table): Use `Fmap_char_attribute' for
2101         CHARTAB_RANGE_CHARSET in UTF-2000.
2102         (Fput_char_attribute): Store symbol instead of string in
2103         `XCHAR_TABLE_NAME (table)'.
2104         (load_char_attribute_maybe): Likewise.
2105         (syms_of_chartab): Add new symbol/function
2106         `put-char-table-map-function'.
2107
2108 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2109
2110         * database.h: Add new EXFUN for `Fmap_database'.
2111
2112         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2113         (syms_of_database): Likewise.
2114
2115         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2116         UTF-2000.
2117         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2118         (XCHAR_TABLE_UNLOADED): Likewise.
2119
2120         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2121         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2122         HAVE_DATABASE is defined.
2123         (char_attribute_table_to_load): New variable of UTF-2000 with
2124         external database support.
2125         (Qload_char_attribute_table_map_function): Likewise.
2126         (Fload_char_attribute_table_map_function): New function of
2127         UTF-2000 with external database support.
2128         (Fload_char_attribute_table): New function of UTF-2000.
2129         (Fmap_char_attribute): Call Fload_char_attribute_table if
2130         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2131         (syms_of_chartab): Add new symbol and function
2132         `load-char-attribute-table-map-function' in UTF-2000 with external
2133         database support; add new function `load-char-attribute-table' in
2134         UTF-2000.
2135
2136 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2137
2138         * chartab.h (load_char_attribute_maybe): New prototype for
2139         UTF-2000 with DATABASE support.
2140         (get_char_id_table): Use `load_char_attribute_maybe' if
2141         HAVE_DATABASE is defined.
2142
2143         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2144         with DATABASE support.
2145
2146 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2147
2148         * chartab.c (Fput_char_attribute): Use S-expression as key of
2149         external database.
2150
2151         * chartab.h (get_char_id_table): Use S-expression as key of
2152         external database.
2153
2154 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2155
2156         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2157         if an element is not loaded, load the corresponding attributes
2158         from an external database.
2159         (map_over_uint16_byte_table): Likewise.
2160         (map_over_byte_table): Likewise.
2161         (map_char_table): Modify for `map_over_uint8_byte_table',
2162         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2163         element is not loaded, load the corresponding attributes from an
2164         external database.
2165         (Fput_char_attribute): Change initial values to Qunloaded.
2166
2167         * chartab.h (get_char_id_table): If a character attribute is not
2168         loaded and the attribute value is not found in an external
2169         database, store Qunbound as the attribute value.
2170
2171 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2172
2173         * chartab.c (BT_UINT8_unloaded): New macro.
2174         (UINT8_VALUE_P): Accept Qunloaded.
2175         (UINT8_ENCODE): Likewise.
2176         (UINT8_DECODE): Likewise.
2177         (BT_UINT16_unloaded): New macro.
2178         (UINT16_VALUE_P): Accept Qunloaded.
2179         (UINT16_ENCODE): Likewise.
2180         (UINT16_DECODE): Likewise.
2181         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2182         BT_UINT16_unloaded.
2183         (mark_char_table): Mark `ct->name' in UTF-2000.
2184         (char_table_description): Add `name' in UTF-2000.
2185         (Fmake_char_table): Initialize `ct->name'.
2186         (Fcopy_char_table): Copy `ct->name'.
2187         (Fput_char_attribute): Store value into an external database if
2188         HAVE_DATABASE is defined.
2189
2190         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2191         UTF-2000.
2192         (CHAR_TABLE_NAME): New macro in UTF-2000.
2193         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2194         (get_char_id_table): Try to read an external database if Qunloaded
2195         is stored in a table.
2196
2197         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2198         Qunloaded.
2199
2200 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2201
2202         * database.h: Add EXFUN definitions for Fopen_database,
2203         Fput_database, Fget_database and Fclose_database.
2204
2205         * data.c (Qunloaded): New variable in UTF-2000.
2206
2207         * lisp.h (Qunloaded): New variable in UTF-2000.
2208
2209 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2210
2211         * mule-charset.c (put_char_ccs_code_point): Modify for
2212         `decoding_table_remove_char' and `decoding_table_put_char'.
2213         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2214
2215         * char-ucs.h (decoding_table_remove_char): Change arguments to
2216         hide decoding_table vector.
2217         (decoding_table_put_char): Likewise.
2218
2219 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2220
2221         * mule-charset.c (decoding_table_remove_char): Moved to
2222         char-ucs.h.
2223         (decoding_table_put_char): Likewise.
2224
2225         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2226         from mule-charset.c].
2227         (decoding_table_remove_char): New inline function [moved from
2228         mule-charset.c].
2229         (decoding_table_put_char): Likewise.
2230
2231 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2232
2233         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2234         extension.
2235
2236 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2237
2238         * mule-charset.c (decode_builtin_char): Support mother charsets.
2239
2240 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2241
2242         * mule-charset.c (Q94x94x60): New variable.
2243         (charset_code_point): Support conversion `94x94x60'.
2244         (Fmake_charset): Likewise.
2245         (syms_of_mule_charset): Add new symbol `94x94x60'.
2246
2247         * char-ucs.h (CONVERSION_94x94x60): New macro.
2248
2249 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2250
2251         * mule-charset.c (charset_code_point): Unify code about
2252         `code-offset'.
2253
2254 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2255
2256         * mule-charset.c (charset_code_point): Merge code about builtin
2257         characters into code about mother charsets; don't use
2258         `range_charset_code_point'.
2259         (range_charset_code_point): Deleted.
2260
2261 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2262
2263         * mule-charset.c (Qcode_offset): New variable.
2264         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2265         `max-code'; accept new property `code-offset'.
2266         (syms_of_mule_charset): Add new symbol `code-offset'.
2267
2268 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2269
2270         * mule-charset.c (range_charset_code_point): Fixed.
2271
2272 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2273
2274         * mule-charset.c (decode_builtin_char): Change semantics of
2275         code-offset of coded-charset.
2276         (charset_code_point): Likewise.
2277         (range_charset_code_point): Likewise.
2278         (complex_vars_of_mule_charset): Modify for the change.
2279
2280 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2281
2282         * mule-charset.c (Fencode_char): Reverse arguments.
2283
2284         * mule-charset.c (charset_code_point): Fixed.
2285
2286 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2287
2288         * mule-charset.c (Vcharset_mojikyo): Deleted.
2289         (Vcharset_mojikyo_2022_1): Deleted.
2290         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2291         (Qmin_code): New variable in UTF-2000.
2292         (Qmax_code): Likewise.
2293         (Qmother): Likewise.
2294         (Qconversion): Likewise.
2295         (Q94x60): Likewise.
2296         (Qmojikyo): Deleted.
2297         (Qmojikyo_2022_1): Deleted.
2298         (Qmojikyo_pj_{1..22}): Deleted.
2299         (mark_charset): Mark `cs->mother'.
2300         (charset_description): Add description for `mother'.
2301         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2302         new arguments `mother' and `conversion'; use
2303         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2304         (charset_code_point): Moved from char-ucs.h; support `mother'
2305         charset feature.
2306         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2307         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2308         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2309         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2310         allow 2 as the value of `graphic' in UTF-2000; add new properties
2311         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2312         require `final' in UTF-2000; modify for `make_charset'.
2313         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2314         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2315         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2316         (Fencode_char): New function.
2317         (syms_of_mule_charset): Add new builtin function `encode-char' in
2318         UTF-2000; add new symbols `min-code', `max-code', `mother',
2319         `conversion' and `94x60'; delete symbols `mojikyo',
2320         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2321         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2322         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2323         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2324
2325         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2326         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2327
2328         * char-ucs.h (Vcharset_mojikyo): Deleted.
2329         (Vcharset_mojikyo_2022_1): Deleted.
2330         (LEADING_BYTE_MOJIKYO): Deleted.
2331         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2332         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2333         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2334         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2335         add new member `mother'; add new member `conversion'.
2336         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2337         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2338         (CHARSET_MOTHER): New macro.
2339         (CHARSET_CONVERSION): New macro.
2340         (CONVERSION_IDENTICAL): New macro.
2341         (CONVERSION_94x60): New macro.
2342         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2343         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2344         (XCHARSET_MOTHER): New macro.
2345         (XCHARSET_CONVERSION): New macro.
2346         (MIN_CHAR_MOJIKYO): Deleted.
2347         (MAX_CHAR_MOJIKYO): Deleted.
2348         (DECODE_MOJIKYO_2022): Deleted.
2349         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2350         (charset_code_point): Changed to non-inline function.
2351         (encode_char_1): Use `charset_code_point'.
2352         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2353
2354 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2355
2356         * lread.c (read_compiled_function): Fix prototype.
2357         (read_vector): Likewise.
2358
2359 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2360
2361         * lrecord.h (struct lrecord_header): Delete `older'.
2362         (set_lheader_implementation): Delete code for `older'.
2363         (set_lheader_older_implementation): Deleted.
2364         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2365         (OLDER_RECORD_P): Deleted.
2366         (OLDER_RECORD_HEADER_P): Deleted.
2367         (alloc_older_lcrecord): Deleted.
2368         (alloc_older_lcrecord_type): Deleted.
2369
2370         * alloc.c (all_older_lcrecords): Deleted.
2371         (alloc_older_lcrecord): Deleted.
2372         (disksave_object_finalization_1): Delete code for older objects.
2373         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2374         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2375
2376 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2377
2378         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2379         instead of `make_older_vector'.
2380         (put_char_ccs_code_point): Likewise.
2381         (mark_charset): Mark `cs->decoding_table'.
2382         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2383
2384         * lisp.h (make_older_vector): Deleted.
2385         (make_vector_newer): Deleted.
2386
2387         * config.h.in (HAVE_GGC): Deleted.
2388
2389         * alloc.c (make_older_vector): Deleted.
2390         (make_vector_newer_1): Deleted.
2391         (make_vector_newer): Deleted.
2392
2393 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2394
2395         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2396         (Qideograph_daikanwa_2): New variable.
2397         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2398         (complex_vars_of_mule_charset): Add new coded-charset
2399         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2400         `LEADING_BYTE_DAIKANWA'.
2401
2402         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2403         (LEADING_BYTE_DAIKANWA_1): New macro.
2404         (LEADING_BYTE_DAIKANWA_2): New macro.
2405         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2406
2407 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2408
2409         * mule-charset.c (complex_vars_of_mule_charset): Change
2410         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2411         the second revised version.
2412
2413 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2414
2415         * mule-charset.c (Vcharset_ucs_smp): New variable.
2416         (Vcharset_ucs_sip): New variable.
2417         (Qucs_smp): New variable.
2418         (Qucs_sip): New variable.
2419         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2420         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2421         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2422         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2423         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2424         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2425
2426         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2427         (LEADING_BYTE_UCS_SIP): New macro.
2428         (MIN_CHAR_SMP): New macro.
2429         (MAX_CHAR_SMP): New macro.
2430         (MIN_CHAR_SIP): New macro.
2431         (MAX_CHAR_SIP): New macro.
2432
2433 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2434
2435         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2436         utf-2000.
2437
2438 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2439
2440         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2441         value; don't store value into `encoding_table' of `Lisp_Charset'.
2442         (mark_charset): `encoding_table' was deleted.
2443         (charset_description): Likewise.
2444         (make_charset): Likewise.
2445         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2446         `put_char_ccs_code_point'.
2447
2448         * chartab.h (Fput_char_attribute): New EXFUN.
2449
2450         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2451         is unified with normal symbol space.
2452         (Fget_char_attribute): Likewise.
2453         (Fput_char_attribute): Likewise; behavior of
2454         `put_char_ccs_code_point' is changed.
2455
2456         * char-ucs.h: Include "elhash.h".
2457         (Vchar_attribute_hash_table): New external variable.
2458         (struct Lisp_Charset): Delete `encoding_table'.
2459         (CHARSET_ENCODING_TABLE): New implementation; refer
2460         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2461         `Lisp_Charset'.
2462
2463 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2464
2465         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2466         (cs) == 0.
2467
2468 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2469
2470         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2471         `chinese-big5'.
2472
2473 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2474
2475         * chartab.c (uint8_byte_table_description): New constant.
2476         (uint8-byte-table): Use `uint8_byte_table_description'.
2477         (uint16_byte_table_description): New constant.
2478         (uint16-byte-table): Use `uint16_byte_table_description'.
2479
2480 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2481
2482         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2483         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2484
2485 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2486
2487         * mule-charset.c (Vcharset_ucs_ks): New variable.
2488         (Qucs_ks): New variable.
2489         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2490         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2491
2492         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2493
2494 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2495
2496         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2497         (Fdecode_char): Likewise.
2498
2499         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2500         chartab.h.
2501         (Fdefine_char): Modify for Fdecode_char.
2502         (Ffind_char): Likewise.
2503
2504         * mule-charset.c (Fdecode_char): Add new optional argument
2505         `defined-only'.
2506         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2507
2508 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2509
2510         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2511         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2512         (allocate_coding_system): Initialize initial-charsets of
2513         CODESYS_BIG5 in XEmacs UTF-2000.
2514         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2515         CODESYS_BIG5 in XEmacs UTF-2000.
2516         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2517         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2518
2519         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2520         variables.
2521         (Qideograph_hanziku_{1 .. 12}): Likewise.
2522         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2523         .. 12}'.
2524         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2525         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2526         `ideograph-hanziku-{1 .. 12}'.
2527
2528         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2529         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2530         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2531         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2532         (DECODE_DEFINED_CHAR): New inline function.
2533         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2534
2535 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2536
2537         * mule-charset.c (Vcharset_china3_jef): Renamed from
2538         `Vcharset_japanese_jef_china3'.
2539         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2540         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2541         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2542         (syms_of_mule_charset): Rename `china3-jef' from
2543         `japanese-jef-china3'.
2544         (complex_vars_of_mule_charset): Likewise; rename
2545         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2546
2547         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2548         `LEADING_BYTE_JEF_CHINA3'.
2549         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2550         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2551
2552 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2553
2554         * mule-charset.c (encode_builtin_char_1): Comment out special code
2555         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2556
2557         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2558         (MAX_CHAR_MOJIKYO_0): Comment out.
2559         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2560         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2561         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2562         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2563
2564 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2565
2566         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2567         (Qideograph_cbeta): New variable.
2568         (encode_builtin_char_1): Comment out special code for
2569         coded-charset `mojikyo' and `japanese-jef-china3'.
2570         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2571         (complex_vars_of_mule_charset): Add new coded-charset
2572         `ideograph-cbeta'.
2573
2574         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2575         (MIN_CHAR_CBETA): New macro.
2576         (MAX_CHAR_CBETA): New macro.
2577
2578 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2579
2580         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2581         (LEADING_BYTE_JEF_CHINA3): New macro.
2582         (MIN_CHAR_JEF_CHINA3): New macro.
2583         (MAX_CHAR_JEF_CHINA3): Likewise.
2584         (DECODE_CHAR): Fixed.
2585
2586 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2587
2588         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2589         (Qjapanese_jef_china3): New variable.
2590         (encode_builtin_char_1): Support `japanese-jef-china3'.
2591         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2592         (complex_vars_of_mule_charset): Add new coded-charset
2593         `japanese-jef-china3'.
2594
2595 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2596
2597         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2598         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2599         94^4, 96^3, 96^4, 128^n and 256^n set.
2600         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2601         (map_char_table): Likewise.
2602
2603 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2604
2605         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2606         UTF-2000.
2607
2608 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2609
2610         * chartab.h (get_char_id_table): New inline function.
2611
2612         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2613         function.
2614
2615 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2616
2617         * chartab.h (decode_char_table_range): New prototype in XEmacs
2618         UTF-2000.
2619         (put_char_id_table): New inline function in XEmacs UTF-2000.
2620
2621         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2622         function.
2623         (decode_char_table_range): Delete static declaration in XEmacs
2624         UTF-2000.
2625
2626 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2627
2628         * chartab.c (put_char_id_table): Use `put_char_table'.
2629
2630 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2631
2632         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2633         (map_over_uint16_byte_table): Likewise.
2634         (map_over_byte_table): Likewise.
2635         (map_char_table): Modify for `map_over_uint8_byte_table',
2636         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2637         UTF-2000.
2638
2639 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2640
2641         * chartab.c (struct map_char_table_for_charset_arg): New
2642         structure.
2643         (map_char_table_for_charset_fun): New function.
2644         (map_char_table): Use `map_char_table' for encoding_table of
2645         `range->charset'.
2646
2647 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2648
2649         * chartab.c (map_char_table): Check a character is found in
2650         range->charset instead of non default value is defined in
2651         char-table when range is CHARTAB_RANGE_ROW.
2652
2653 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2654
2655         * chartab.c (map_char_id_table): Deleted.
2656         (Fmap_char_attribute): Use `map_char_table' instead of
2657         `map_char_id_table'.
2658
2659 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2660
2661         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2662         UTF-2000.
2663         (update_syntax_table): Deleted in XEmacs UTF-2000.
2664
2665         * syntax.c (find_defun_start): Use `syntax_table' instead of
2666         `mirror_syntax_table' in XEmacs UTF-2000.
2667         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2668         UTF-2000.
2669         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2670         XEmacs UTF-2000.
2671         (Fmatching_paren): Likewise.
2672         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2673         in XEmacs UTF-2000.
2674         (find_start_of_comment): Likewise.
2675         (find_end_of_comment): Likewise.
2676         (Fforward_comment): Likewise.
2677         (scan_lists): Likewise.
2678         (char_quoted): Likewise.
2679         (Fbackward_prefix_chars): Likewise.
2680         (scan_sexps_forward): Likewise.
2681         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2682         (update_syntax_table): Likewise.
2683
2684         * search.c (skip_chars): Use `syntax_table' instead of
2685         `mirror_syntax_table' in XEmacs UTF-2000.
2686         (wordify): Likewise.
2687         (Freplace_match): Likewise.
2688
2689         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2690         `mirror_syntax_table' in XEmacs UTF-2000.
2691         (WORDCHAR_P_UNSAFE): Likewise.
2692         (re_match_2_internal): Likewise.
2693
2694         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2695         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2696
2697         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2698         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2699
2700         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2701         XEmacs UTF-2000.
2702
2703         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2704         UTF-2000.
2705         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2706         (char_table_description): Delete `mirror_table' in XEmacs
2707         UTF-2000.
2708         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2709         UTF-2000.
2710         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2711         (Fcopy_char_table): Likewise.
2712         (put_char_table): Don't call `update_syntax_table' in XEmacs
2713         UTF-2000.
2714
2715         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2716         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2717         (casify_region_internal): Likewise.
2718
2719         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2720
2721         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2722         `mirror_syntax_table' in XEmacs UTF-2000.
2723
2724         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2725         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2726         (Fexpand_abbrev): Likewise.
2727
2728 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2729
2730         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2731
2732 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2733
2734         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2735         (map_over_uint16_byte_table): Likewise.
2736         (map_over_byte_table): Likewise.
2737         (get_char_id_table): Refer `cit->default_value'.
2738         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2739         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2740         of character-id ranges.
2741         (mark_char_table): Mark `ct->default_value'.
2742         (char_table_description): Add `default_value'.
2743         (fill_char_table): Use `default_value'.
2744         (decode_char_table_range): Decode `nil' as
2745         `CHARTAB_RANGE_DEFAULT'.
2746         (get_char_id_table): Refer `cit->default_value'.
2747         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2748         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2749         temporary hack; check value of char-table is bound or not.
2750         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2751
2752         * chartab.h (struct Lisp_Char_Table): Add new member
2753         `default_value' in XEmacs UTF-2000.
2754         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2755         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2756         UTF-2000.
2757
2758 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2759
2760         * chartab.h (Lisp_Char_ID_Table): Deleted.
2761
2762         * chartab.c (char_table_description): Fix typo.
2763         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2764         `Lisp_Char_ID_Table'.
2765
2766 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2767
2768         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2769         `CHAR_ID_TABLE_P'.
2770
2771         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2772         `CHAR_ID_TABLE_P'.
2773
2774         * chartab.h (XCHAR_ID_TABLE): Deleted.
2775         (XSETCHAR_ID_TABLE): Deleted.
2776         (CHAR_ID_TABLE_P): Deleted.
2777
2778         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2779         `CHAR_ID_TABLE_P'.
2780         (Fget_composite_char): Likewise.
2781         (put_char_table): Likewise.
2782         (add_char_attribute_alist_mapper): Fixed.
2783         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2784         `CHAR_ID_TABLE_P'.
2785         (Fget_char_attribute): Likewise.
2786         (Fget_char_attribute): Likewise.
2787         (Fmap_char_attribute): Likewise.
2788
2789         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2790         `CHAR_ID_TABLE_P'.
2791         (encode_char_1): Likewise.
2792
2793 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2794
2795         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2796         `XCHAR_ID_TABLE'.
2797
2798         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2799         instead of `XCHAR_ID_TABLE'.
2800         (remove_char_ccs): Likewise.
2801
2802         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2803         `XCHAR_ID_TABLE'.
2804         (Fget_composite_char): Likewise.
2805         (Fchar_variants): Likewise.
2806         (put_char_table): Likewise.
2807         (add_char_attribute_alist_mapper): Likewise.
2808         (Fchar_attribute_alist): Likewise.
2809         (Fget_char_attribute): Likewise.
2810         (Fput_char_attribute): Likewise.
2811         (Fmap_char_attribute): Likewise.
2812         (Fmap_char_attribute): Likewise.
2813
2814         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2815         `XCHAR_ID_TABLE'.
2816         (encode_char_1): Likewise.
2817
2818 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2819
2820         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2821         `Lisp_Char_ID_Table'.
2822         (mark_char_id_table): Deleted.
2823         (print_char_id_table): Likewise.
2824         (char_id_table_equal): Likewise.
2825         (char_id_table_hash): Likewise.
2826         (char_id_table_description): Likewise.
2827         (char_id_table): Likewise.
2828         (make_char_id_table): Use `Fmake_char_table' and
2829         `fill_char_table'.
2830         (get_char_id_table): Use `Lisp_Char_Table' instead of
2831         `Lisp_Char_ID_Table'.
2832         (put_char_id_table): Likewise.
2833         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2834         `XCHAR_ID_TABLE'.
2835         (Fremove_char_attribute): Likewise.
2836         (syms_of_chartab): Don't define type `char-id-table'.
2837
2838         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2839         (char_id_table): Likewise.
2840         (GC_CHAR_ID_TABLE_P): Likewise.
2841         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2842         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2843         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2844         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2845         (get_char_id_table): Use `Lisp_Char_Table' instead of
2846         `Lisp_Char_ID_Table'.
2847         (put_char_id_table_0): Likewise.
2848         (put_char_id_table): Likewise.
2849
2850 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2851
2852         * chartab.h: Lisp_Byte_Table related codes are moved from
2853         chartab.h.
2854
2855         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2856
2857 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2858
2859         * chartab.h: Don't include "chartab.h".
2860         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2861         (Lisp_Char_ID_Table): Likewise.
2862         (char_id_table): Likewise.
2863         (XCHAR_ID_TABLE): Likewise.
2864         (XSETCHAR_ID_TABLE): Likewise.
2865         (CHAR_ID_TABLE_P): Likewise.
2866         (GC_CHAR_ID_TABLE_P): Likewise.
2867         (get_char_id_table): Likewise.
2868
2869         * char-ucs.h: Include "chartab.h".
2870         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2871         (Lisp_Char_ID_Table): Likewise.
2872         (char_id_table): Likewise.
2873         (XCHAR_ID_TABLE): Likewise.
2874         (XSETCHAR_ID_TABLE): Likewise.
2875         (CHAR_ID_TABLE_P): Likewise.
2876         (GC_CHAR_ID_TABLE_P): Likewise.
2877         (get_char_id_table): Likewise.
2878
2879 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2880
2881         * chartab.c (copy_uint8_byte_table): New function.
2882         (copy_uint16_byte_table): New function.
2883         (copy_byte_table): New function.
2884         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2885         characters to call.
2886         (map_over_uint16_byte_table): Likewise.
2887         (map_over_byte_table): Likewise.
2888         (get_byte_table): Move prototype to chartab.h.
2889         (put_byte_table): Likewise.
2890         (put_char_id_table_0): Moved to chartab.h.
2891         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2892         (char_table_entry_equal): Likewise.
2893         (char_table_entry_hash): Likewise.
2894         (char_table_entry_description): Likewise.
2895         (char_table_entry): Likewise.
2896         (make_char_table_entry): Likewise.
2897         (copy_char_table_entry): Likewise.
2898         (get_non_ascii_char_table_value): Likewise.
2899         (map_over_charset_ascii): Likewise.
2900         (map_over_charset_control_1): Likewise.
2901         (map_over_charset_row): Likewise.
2902         (map_over_other_charset): Likewise.
2903         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2904         (print_char_table): Likewise.
2905         (char_table_equal): Likewise.
2906         (char_table_hash): Likewise.
2907         (char_table_description): Likewise.
2908         (fill_char_table): Likewise.
2909         (Fcopy_char_table): Likewise.
2910         (get_char_table): Likewise.
2911         (Fget_range_char_table): Likewise.
2912         (put_char_table): Likewise.
2913         (map_char_table): Likewise.
2914         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2915         UTF-2000.
2916
2917 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2918
2919         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2920         `Vauto_fill_chars' in XEmacs UTF-2000.
2921
2922         * chartab.h (get_byte_table): New prototype [moved from
2923         chartab.c].
2924         (put_byte_table): Likewise [moved from chartab.c].
2925         (put_char_id_table_0): New inline function [moved from chartab.c].
2926         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2927         (Lisp_Char_Table_Entry): Likewise.
2928         (char_table_entry): Likewise.
2929         (XCHAR_TABLE_ENTRY): Likewise.
2930         (XSETCHAR_TABLE_ENTRY): Likewise.
2931         (CHAR_TABLE_ENTRYP): Likewise.
2932         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2933         (NUM_ASCII_CHARS): Likewise.
2934         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2935         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2936
2937 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2938
2939         * chartab.c (get_char_id_table): Change interface.
2940         (put_char_id_table_0): New function.
2941         (put_char_id_table): Change interface; new implementation.
2942         (Fget_composite_char): Modify for interface change of
2943         `get_char_id_table'.
2944         (Fchar_variants): Likewise.
2945         (add_char_attribute_alist_mapper): Likewise.
2946         (Fchar_attribute_alist): Likewise.
2947         (Fget_char_attribute): Likewise.
2948         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2949         as same as character as the first argument like `put-char-table';
2950         modify for interface change of `put_char_id_table'.
2951         (Fremove_char_attribute): Modify for interface change of
2952         `put_char_id_table'.
2953
2954 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2955
2956         * text-coding.c: Sync up with XEmacs 21.2.41.
2957         (COMPOSE_ADD_CHAR): Modify for interface change of
2958         `get_char_id_table'.
2959
2960         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2961         change of `put_char_id_table'.
2962         (remove_char_ccs): Likewise.
2963
2964         * chartab.h (put_char_id_table): Change interface.
2965
2966         * char-ucs.h (get_char_id_table): Change interface.
2967         (charset_code_point): Modify for interface change of
2968         `get_char_id_table'.
2969         (encode_char_1): Likewise.
2970
2971 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2972
2973         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2974         argument `ccs'.
2975         (map_over_uint16_byte_table): Likewise.
2976         (map_over_byte_table): Likewise.
2977         (map_char_id_table): Add new argument `range' like
2978         `map_char_table'.
2979         (Fmap_char_attribute): Add new argument `range' like
2980         `Fmap_char_table'.
2981
2982 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2983
2984         * chartab.c (map_over_uint8_byte_table): Change interface of
2985         mapping function to use struct chartab_range instead of Emchar.
2986         (map_over_uint16_byte_table): Likewise.
2987         (map_over_byte_table): Likewise.
2988         (map_char_id_table): Likewise.
2989         (struct slow_map_char_id_table_arg): Deleted.
2990         (slow_map_char_id_table_fun): Deleted.
2991         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2992         function `slow_map_char_table_fun' instead of struct
2993         `slow_map_char_id_table_arg' and function
2994         `slow_map_char_id_table_fun'.
2995
2996 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2997
2998         * mule-charset.c: Move char-it-table related codes to chartab.c.
2999         (Vutf_2000_version): Moved to chartab.c.
3000         (Fdefine_char): Likewise.
3001         (Ffind_char): Likewise.
3002         (syms_of_mule_charset): Move types `uint8-byte-table',
3003         `uint16-byte-table', `byte-table' and `char-id-table' to
3004         chartab.c; move functions `char_attribute_list,
3005         `find_char_attribute_table, `char_attribute_alist,
3006         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
3007         `map_char_attribute, `define_char, `find_char, `char_variants and
3008         `get_composite_char to chartab.c; move symbols `=>ucs',
3009         `->decomposition', `compat', `isolated', `initial', `medial',
3010         `final', `vertical', `noBreak', `fraction', `super', `sub',
3011         `circle', `square', `wide', `narrow', `small' and `font' to
3012         chartab.c.
3013         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
3014         setting codes for `Vcharacter_composition_table' and
3015         `Vcharacter_variant_table' to chartab.c.
3016         (complex_vars_of_mule_charset): Move setting code for
3017         `Vchar_attribute_hash_table' to chartab.c.
3018
3019         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
3020         (make_char_id_table): New prototype.
3021         (put_char_id_table): Likewise.
3022         (Fget_char_attribute): Likewise.
3023
3024         * chartab.c: Move char-id-table related code from mule-charset.c.
3025         (Vutf_2000_version): Moved from mule-charset.c.
3026
3027         * char-ucs.h (Qucs): New external variable.
3028         (put_char_ccs_code_point): New prototype.
3029         (remove_char_ccs): Likewise.
3030
3031 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3032
3033         * mule-charset.c (Vcharset_ucs_jis): New variable.
3034         (Qucs_jis): Likewise.
3035         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3036         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3037
3038         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3039
3040 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3041
3042         * mule-charset.c (map_over_uint8_byte_table): New function.
3043         (map_over_uint16_byte_table): Likewise.
3044         (map_over_byte_table): Likewise.
3045         (map_char_id_table): Likewise.
3046         (slow_map_char_id_table_fun): Likewise.
3047         (Fmap_char_attribute): Likewise.
3048         (syms_of_mule_charset): Add new function `map-char-attribute'.
3049
3050 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3051
3052         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3053         (syms_of_mule_charset): Add new function `find-char'.
3054
3055 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3056
3057         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3058         XEmacs UTF-2000.
3059         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3060         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3061         XEmacs UTF-2000.
3062         (complex_vars_of_mule_charset): Add new coded-charset
3063         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3064         `ideograph-gt-pj-*'.
3065
3066         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3067
3068 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3069
3070         * mule-charset.c (encode_builtin_char_1): Purge codes about
3071         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3072         {MIN|MAX}_CHAR_HEBREW.
3073         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3074         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3075
3076         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3077         (MAX_CHAR_GREEK): Purged.
3078         (MIN_CHAR_CYRILLIC): Purged.
3079         (MAX_CHAR_CYRILLIC): Purged.
3080         (MIN_CHAR_HEBREW): Commented out.
3081         (MAX_CHAR_HEBREW): Likewise.
3082
3083 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3084
3085         * mule-charset.c (Qto_ucs): New variable.
3086         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3087         (Fdefine_char): Likewise.
3088         (syms_of_mule_charset): Add new symbol `=>ucs'.
3089
3090 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3091
3092         * mule-charset.c (Fdecode_char): Fixed.
3093
3094 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3095
3096         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3097         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3098         "tcvn5712-1".
3099
3100 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3101
3102         * mule-charset.c (Vcharset_ucs_big5): New variable.
3103         (Qucs_big5): Likewise.
3104         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3105         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3106
3107         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3108
3109 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3110
3111         * mule-charset.c (decode_builtin_char): Check Big5 code range
3112         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3113
3114 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3115
3116         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3117         (Qchinese_gb12345): Likewise.
3118         (Fdecode_builtin_char): Fixed.
3119         (syms_of_mule_charset): Add `chinese-gb12345'.
3120         (complex_vars_of_mule_charset): Add coded-charset
3121         `chinese-gb12345'.
3122
3123         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3124         (LEADING_BYTE_CHINESE_GB12345): New macro.
3125
3126 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3127
3128         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3129         and `latin-viscii-upper' for `latin-viscii'.
3130
3131 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3132
3133         * mule-charset.c (Fdecode_builtin_char): Comment out
3134         regularization code for ISO-IR GR representation.
3135
3136 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3137
3138         * mule-charset.c (decode_builtin_char): New function; renamed from
3139         `make_builtin_char'; return -1 instead of signal.
3140         (Fdecode_builtin_char): Use `decode_builtin_char'.
3141
3142         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3143         `make_builtin_char'.
3144         (DECODE_CHAR): Use `decode_builtin_char' instead of
3145         `make_builtin_char'; use mapping table of `chinese-big5' for
3146         `chinese-big5-{1,2}'.
3147
3148 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3149
3150         * text-coding.c (char_encode_big5): New function.
3151         (char_finish_big5): Likewise.
3152         (reset_encoding_stream): Use `char_encode_big5' and
3153         `char_finish_big5' for CODESYS_BIG5.
3154         (mule_encode): Don't use `encode_coding_big5'.
3155         (encode_coding_big5): Deleted.
3156
3157 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3158
3159         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3160         0x81- in XEmacs UTF-2000.
3161         (detect_coding_big5): Likewise.
3162
3163 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3164
3165         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3166         generate character-id if the CCS property does not have
3167         corresponding predefined character.
3168         (make_builtin_char): Return -1 if corresponding predefined
3169         character is not found.
3170         (Fdecode_char): Return nil if corresponding character is not
3171         found.
3172         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3173         don't map to builtin ucs space.
3174
3175 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3176
3177         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3178         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3179
3180 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3181
3182         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3183         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3184         (Qideograph_gt): Likewise.
3185         (Qideograph_gt_pj_{1..11}): Likewise.
3186         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3187         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3188         `ideograph-gt-pj-11'.
3189         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3190         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3191         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3192
3193         * char-ucs.h (LEADING_BYTE_GT): New macro.
3194         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3195         (MIN_CHAR_GT): Likewise.
3196         (MAX_CHAR_GT): Likewise.
3197
3198 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3199
3200         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3201         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3202
3203         * doprnt.c (unsigned_int_converters): Add `c'.
3204         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3205
3206         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3207         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3208         `MIN_CHAR_MOJIKYO'.
3209         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3210         (MAX_CHAR_MOJIKYO_0): New macro.
3211         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3212
3213 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3214
3215         * mule-charset.c (Fdefine_char): Delete cemented out code.
3216         (encode_builtin_char_1): Modify for new allocation of builtin
3217         Mojikyo characters.
3218
3219         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3220
3221 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3222
3223         * mule-charset.c (Vcharset_ucs_cns): New variable.
3224         (Qucs_cns): New variable.
3225         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3226         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3227
3228 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3229
3230         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3231
3232 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3233
3234         * search.c (search_buffer): Make `charset_base_code' as
3235         character-id >> 6 to eliminate the corresponding last byte in
3236         UTF-8 representation [I'm not sure it is right thing].
3237         (boyer_moore): Likewise.
3238
3239 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3240
3241         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3242         representation in MULE.
3243
3244 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3245
3246         * text-coding.c (Fmake_coding_system): Use
3247         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3248         `EXTERNAL_PROPERTY_LIST_LOOP'.
3249
3250 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3251
3252         * text-coding.c (decode_output_utf8_partial_char): New function.
3253         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3254
3255 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3256
3257         * text-coding.c (decode_coding_utf8): Output original byte
3258         sequence if it is broken; change order of conditions.
3259
3260         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3261         of conditions.
3262
3263         * mb-multibyte.h (BYTE_ASCII_P):
3264         Use bit ops for char-signedness safety.
3265         (BYTE_C0_P): Use bit ops for char-signedness safety.
3266         (BYTE_C1_P): Use bit ops for char-signedness safety.
3267
3268         * character.h: (XCHAR_OR_CHAR_INT):
3269         Always use inline function.
3270         Remove redundant type checking assert() - XINT will abort quite
3271         nicely.
3272
3273 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3274
3275         * text-coding.c: (Fencode_shift_jis_char):
3276         (Fencode_big5_char):
3277         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3278         Replace 0 with '\0' when working with bytes.
3279         Replace initial "(" with "\(" in docstrings.
3280
3281         (Fmake_coding_system):
3282         When type is ccl and value is vector, register it with a proper
3283         symbol.  And checks whether the given ccl program is valid.
3284         (mule_decode): When calling ccl_driver, if src indicates
3285         NULL pointer, set an empty string instead.
3286         (mule_encode): Likewise.
3287
3288         (detect_eol_type):
3289         (detect_coding_sjis):
3290         (decode_coding_sjis):
3291         (detect_coding_big5):
3292         (decode_coding_big5):
3293         (detect_coding_ucs4):
3294         (decode_coding_ucs4):
3295         (detect_coding_utf8):
3296         (decode_coding_utf8):
3297         (detect_coding_iso2022):
3298         (decode_coding_iso2022):
3299         (decode_coding_no_conversion):
3300         (mule_decode):
3301         Make all detecting and decoding functions take an Extbyte * arg.
3302         (text_encode_generic):
3303         (encode_coding_big5):
3304         (encode_coding_no_conversion):
3305         (mule_encode):
3306         Make all encoding functions take a Bufbyte * arg.
3307         Use size_t instead of unsigned int for memory sizes.
3308         Only cast to unsigned char whenever dereferencing Extbyte *.
3309
3310         (struct lrecord_description fcd_description_1): Use countof.
3311         (complex_vars_of_file_coding):
3312         Use countof instead of sizeof.
3313         Use CHECK_NATNUM instead of CHECK_INT.
3314
3315 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3316
3317         * mule-charset.c (Fget_char_attribute): Add new optional argument
3318         `default-value'.
3319         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3320         (remove_char_ccs): Likewise.
3321
3322 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3323
3324         * text-coding.c (char_encode_shift_jis): New implementation in
3325         UTF-2000.
3326         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3327         ...)'.
3328
3329         * mule-charset.c (Vcharset_chinese_big5): New variable in
3330         UTF-2000.
3331         (Qchinese_big5): New variable in UTF-2000.
3332         (BIG5_SAME_ROW): New macro in UTF-2000.
3333         (make_builtin_char): Use builtin characters of
3334         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3335         characters of `Vcharset_chinese_big5'.
3336         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3337         (complex_vars_of_mule_charset): Add new coded-charset
3338         `chinese-big5' in UTF-2000.
3339
3340         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3341         (Vcharset_chinese_big5): New external variable declaration.
3342         (Vcharset_japanese_jisx0208_1990): Likewise.
3343
3344 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3345
3346         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3347         function.
3348         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3349
3350 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3351
3352         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3353         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3354         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3355         `mojikyo-pj-*'.
3356
3357 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3358
3359         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3360
3361 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3362
3363         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3364         to 0.17.
3365
3366 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3367
3368         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3369         for `CHARSET_BY_ATTRIBUTES'.
3370         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3371         `CHARSET_BY_ATTRIBUTES'.
3372
3373         * text-coding.c (struct decoding_stream): Rename member `CH' to
3374         `CPOS'.
3375         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3376         (decode_coding_sjis): Likewise.
3377         (decode_coding_big5): Likewise.
3378         (decode_coding_ucs4): Likewise.
3379         (decode_coding_utf8): Likewise.
3380         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3381         `CHARSET_BY_ATTRIBUTES'.
3382         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3383         `str->counter'; decode 3, 4 bytes sets.
3384         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3385         sets.
3386         (decode_coding_no_conversion): Use `str->cpos' instead of
3387         `str->ch'.
3388
3389         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3390         (Qmojikyo_2022_1): New variable.
3391         (make_charset): Don't use `CHARSET_TYPE_*'.
3392         (range_charset_code_point): Support coded-charset
3393         `mojikyo-2022-1'.
3394         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3395         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3396         `CHARSET_BY_ATTRIBUTES'.
3397         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3398         `CHARSET_BY_ATTRIBUTES'.
3399         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3400         (complex_vars_of_mule_charset): Add new coded-charset
3401         `mojikyo-2022-1'.
3402
3403         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3404         interface; changed to inline function.
3405
3406         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3407         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3408         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3409         (CHARSET_TYPE_94): Deleted.
3410         (CHARSET_TYPE_94X94): Deleted.
3411         (CHARSET_TYPE_96): Deleted.
3412         (CHARSET_TYPE_96X96): Deleted.
3413         (CHARSET_TYPE_128): Deleted.
3414         (CHARSET_TYPE_128X128): Deleted.
3415         (CHARSET_TYPE_256): Deleted.
3416         (CHARSET_TYPE_256X256): Deleted.
3417         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3418         to inline function.
3419         (DECODE_MOJIKYO_2022): New inline function.
3420         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3421         `Vcharset_mojikyo_2022_1'.
3422
3423 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3424
3425         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3426         instead of `EQ'.
3427         (put_byte_table): Likewise.
3428         (char_id_table_equal): Use `get_byte_table' [new implementation].
3429
3430 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3431
3432         * mule-charset.c: Include <limits.h> in UTF-2000.
3433         (BT_UINT8_MIN): New macro in UTF-2000.
3434         (BT_UINT8_MAX): New macro in UTF-2000.
3435         (BT_UINT8_t): New macro in UTF-2000.
3436         (BT_UINT8_nil): New macro in UTF-2000.
3437         (BT_UINT8_unbound): New macro in UTF-2000.
3438         (INT_UINT8_P): New inline function in UTF-2000.
3439         (UINT8_VALUE_P): New inline function in UTF-2000.
3440         (UINT8_ENCODE): New inline function in UTF-2000.
3441         (UINT8_DECODE): New inline function in UTF-2000.
3442         (mark_uint8_byte_table): New function in UTF-2000.
3443         (print_uint8_byte_table): New function in UTF-2000.
3444         (uint8_byte_table_equal): New function in UTF-2000.
3445         (uint8_byte_table_hash): New function in UTF-2000.
3446         (make_uint8_byte_table): New function in UTF-2000.
3447         (uint8_byte_table_same_value_p): New function in UTF-2000.
3448         (BT_UINT16_MIN): New macro in UTF-2000.
3449         (BT_UINT16_MAX): New macro in UTF-2000.
3450         (BT_UINT16_t): New macro in UTF-2000.
3451         (BT_UINT16_nil): New macro in UTF-2000.
3452         (BT_UINT16_unbound): New macro in UTF-2000.
3453         (INT_UINT16_P): New inline function in UTF-2000.
3454         (UINT16_VALUE_P): New inline function in UTF-2000.
3455         (UINT16_ENCODE): New inline function in UTF-2000.
3456         (UINT16_DECODE): New inline function in UTF-2000.
3457         (UINT8_TO_UINT16): New inline function in UTF-2000.
3458         (mark_uint16_byte_table): New function in UTF-2000.
3459         (print_uint16_byte_table): New function in UTF-2000.
3460         (uint16_byte_table_equal): New function in UTF-2000.
3461         (uint16_byte_table_hash): New function in UTF-2000.
3462         (make_uint16_byte_table): New function in UTF-2000.
3463         (uint16_byte_table_same_value_p): New function in UTF-2000.
3464         (print_byte_table): New function in UTF-2000.
3465         (byte-table): Use `print_byte_table' as printer.
3466         (make_byte_table): Delete second argument `older'.
3467         (byte_table_same_value_p): New function in UTF-2000.
3468         (copy_byte_table): Deleted.
3469         (get_byte_table): New function in UTF-2000.
3470         (put_byte_table): New function in UTF-2000.
3471         (print_char_id_table): New function in UTF-2000.
3472         (char-id-table): Use `print_char_id_table' as printer.
3473         (make_char_id_table): Delete second argument `older'.
3474         (get_char_id_table): Use `get_byte_table [new implementation].
3475         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3476         implementation].
3477         (Ffind_char_attribute_table): New function in UTF-2000.
3478         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3479         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3480         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3481         (syms_of_mule_charset): Add new function
3482         `find-char-attribute-table' in UTF-2000.
3483
3484         * lrecord.h (enum lrecord_type): Add
3485         `lrecord_type_uint16_byte_table' and
3486         `lrecord_type_uint8_byte_table'.
3487
3488         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3489         (Lisp_Uint8_Byte_Table): New type.
3490         (XUINT8_BYTE_TABLE): New macro.
3491         (XSETUINT8_BYTE_TABLE): New macro.
3492         (UINT8_BYTE_TABLE_P): New macro.
3493         (GC_UINT8_BYTE_TABLE_P): New macro.
3494         (struct Lisp_Uint16_Byte_Table): New structure.
3495         (Lisp_Uint16_Byte_Table): New type.
3496         (XUINT16_BYTE_TABLE): New macro.
3497         (XSETUINT16_BYTE_TABLE): New macro.
3498         (UINT16_BYTE_TABLE_P): New macro.
3499         (GC_UINT16_BYTE_TABLE_P): New macro.
3500
3501 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3502
3503         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3504         (Vcharacter_ideographic_strokes_table): Deleted.
3505         (Vcharacter_total_strokes_table): Deleted.
3506         (Vcharacter_morohashi_daikanwa_table): Deleted.
3507         (Vcharacter_decomposition_table): Deleted.
3508         (Qname): Deleted because it is duplicated.
3509         (Qideographic_radical): Deleted.
3510         (Qideographic_strokes): Deleted.
3511         (Qtotal_strokes): Deleted.
3512         (Qmorohashi_daikanwa): Deleted.
3513         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3514         `ideographic-radical', `ideographic-strokes', `total-strokes',
3515         `morohashi-daikanwa' and `->decomposition'.
3516         (Fget_char_attribute): Likewise.
3517         (Fput_char_attribute): Likewise; use `make-vector' instead of
3518         `make_older_vector' for `->decomposition' value.
3519         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3520         `ideograph-daikanwa'.
3521         (syms_of_mule_charset): Delete builtin symbols `name',
3522         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3523         `morohashi-daikanwa'.
3524         (vars_of_mule_charset): Don't setup
3525         `Vcharacter_ideographic_radical_table',
3526         `Vcharacter_ideographic_strokes_table',
3527         `Vcharacter_total_strokes_table',
3528         `Vcharacter_morohashi_daikanwa_table' and
3529         `Vcharacter_decomposition_table'.
3530
3531 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3532
3533         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3534         `make_older_vector', `make_vector_newer_1' and
3535         `make_vector_newer'.
3536
3537         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3538         `make_older_vector' and `make_vector_newer'.
3539
3540         * config.h.in (HAVE_GGC): New macro.
3541
3542 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3543
3544         * mule-charset.c (struct char_attribute_list_closure): New
3545         structure in UTF-2000.
3546         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3547         (Fchar_attribute_list): Likewise.
3548         (Fset_charset_mapping_table): Use `make_vector_newer'.
3549         (Fdecode_builtin_char): New function in UTF-2000.
3550         (syms_of_mule_charset): Add new function `char-attribute-list' and
3551         `decode-builtin-char' in UTF-2000.
3552
3553         * lisp.h (make_vector_newer): New prototype.
3554
3555         * alloc.c (make_vector_newer_1): New function.
3556         (make_vector_newer): New function.
3557
3558 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3559
3560         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3561         50100)'.
3562
3563 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3564
3565         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3566         (Vcharacter_attribute_table): Deleted.
3567         (Vcharacter_name_table): Deleted.
3568         (put_char_attribute): Deleted.
3569         (remove_char_attribute): Deleted.
3570         (struct char_attribute_alist_closure): New structure.
3571         (add_char_attribute_alist_mapper): New function.
3572         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3573         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3574         (Fget_char_attribute): Likewise.
3575         (Fput_char_attribute): Likewise.
3576         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3577         of `remove_char_attribute'.
3578         (Fdefine_char): Return character.
3579         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3580         and `Vcharacter_name_table'.
3581         (complex_vars_of_mule_charset): Likewise
3582         `Vchar_attribute_hash_table'.
3583
3584 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3585
3586         * character.h (CHARC_CHARSET): New macro.
3587         (CHARC_CHARSET_ID): New macro.
3588         (CHARC_CODE_POINT): New macro.
3589         (CHARC_COLUMNS): New macro.
3590         (CHARC_TO_CHAR): New inline function.
3591         (CHARC_EQ): New inline function.
3592         (CHARC_ASCII_EQ): New inline function.
3593         (CHARC_IS_SPACE): New inline function.
3594         (ASCII_TO_CHARC): New inline function.
3595
3596         * char-ucs.h (encode_char_2): Deleted.
3597         (ENCODE_CHAR): Use `encode_char_1' again.
3598         (breakup_char_1): Likewise.
3599         (CHAR_TO_CHARC): New inline function.
3600
3601         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3602
3603 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3604
3605         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3606         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3607         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3608         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3609         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3610         `CHARC_IS_SPACE'.
3611         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3612
3613         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3614         `CHARC_CODE_POINT'.
3615         (x_output_display_block): Use `CHARC_CHARSET' and
3616         `CHARC_ASCII_EQ'.
3617
3618         * redisplay-tty.c (tty_output_display_block): Use
3619         `CHARC_ASCII_EQ'.
3620         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3621
3622         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3623
3624         * insdel.c (find_charsets_in_charc_string): Use
3625         `CHARC_CHARSET_ID'.
3626         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3627         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3628         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3629         (convert_charc_string_into_malloced_string): Likewise.
3630
3631 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3632
3633         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3634         instead of <Emchar_dynarr *> for buf; use
3635         `convert_bufbyte_string_into_charc_dynarr' instead of
3636         `convert_bufbyte_string_into_emchar_dynarr'; use
3637         `find_charsets_in_charc_string' instead of
3638         `find_charsets_in_emchar_string'.
3639
3640         * redisplay.h:
3641         - Include "character.h".
3642         (struct rune): New member `cglyph'; delete member `chr'.
3643
3644         * redisplay.c (redisplay_text_width_charc_string): New function;
3645         delete `redisplay_text_width_emchar_string'.
3646         (rtw_charc_dynarr): New variable; renamed from
3647         `rtw_emchar_dynarr'.
3648         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3649         `rtw_emchar_dynarr'; use
3650         `convert_bufbyte_string_into_charc_dynarr' instead of
3651         `convert_bufbyte_string_into_emchar_dynarr'; use
3652         `redisplay_text_width_charc_string' instead of
3653         `redisplay_text_width_emchar_string'.
3654         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3655         instead of `rtw_emchar_dynarr'; use
3656         `convert_bufbyte_string_into_charc_dynarr' instead of
3657         `convert_bufbyte_string_into_emchar_dynarr'.
3658         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3659         `redisplay_text_width_charc_string' instead of
3660         `redisplay_text_width_emchar_string'.
3661         (create_text_block): Modify for <struct rune> change.
3662         (generate_formatted_string_db): Likewise.
3663         (create_string_text_block): Likewise.
3664         (pixel_to_glyph_translation): Likewise.
3665
3666         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3667         instead of <const Emchar *>.
3668         (x_text_width): Likewise.
3669         (x_output_display_block): Use <Charc_dynarr *> instead
3670         <Emchar_dynarr *>; modify for <structure rune> change.
3671         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3672         *>.
3673
3674         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3675         <const Emchar *>; use `charc_string_displayed_columns' instead of
3676         `emchar_string_displayed_columns'.
3677         (tty_output_display_block): Use <Charc_dynarr *> instead of
3678         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3679         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3680         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3681         `tty_output_emchar_dynarr_dynarr'.
3682         (tty_output_charc_dynarr): New function; delete
3683         `tty_output_charc_dynarr'.
3684
3685         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3686         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3687         <Emchar_dynarr *> for buf; use
3688         `convert_bufbyte_string_into_charc_dynarr' instead of
3689         `convert_bufbyte_string_into_emchar_dynarr'.
3690
3691         * frame.c (title_string_charc_dynarr): New variable; renamed from
3692         `title_string_emchar_dynarr'.
3693         (generate_title_string): Use `title_string_charc_dynarr' instead
3694         of `title_string_emchar_dynarr'; use
3695         `convert_charc_string_into_malloced_string' instead of
3696         `convert_emchar_string_into_malloced_string'.
3697         (init_frame): Use `title_string_charc_dynarr' instead of
3698         `title_string_emchar_dynarr'.
3699
3700         * console.h:
3701         - Include "character.h".
3702         (struct console_methods): Use <const Charc *> instead of <const
3703         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3704         <Emchar_dynarr *> in output_string_method.
3705
3706         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3707         <Emchar_dynarr *>.
3708
3709         * console-stream.c (stream_text_width): Use <const Charc *>
3710         instead of <const Emchar *>.
3711
3712         * character.h (Charc_dynarr): New type.
3713
3714         * char-ucs.h (structure Charc): New structure; define new type
3715         `Charc'.
3716
3717         * char-lb.h (DECODE_CHAR): New inline function.
3718         (encode_char_1): New inline function.
3719         (ENCODE_CHAR): New macro.
3720         (structure Charc): New structure; define new type `Charc'.
3721
3722         * char-1byte.h (Vcharset_control_1): New macro.
3723         (Vcharset_latin_iso8859_1): New macro.
3724         (DECODE_CHAR): New inline function.
3725         (encode_char_1): New inline function.
3726         (ENCODE_CHAR): New macro.
3727         (structure Charc): New structure; define new type `Charc'.
3728
3729         * insdel.c (find_charsets_in_charc_string): New function; delete
3730         `find_charsets_in_emchar_string'.
3731         (charc_string_displayed_columns): New function; delete
3732         `emchar_string_displayed_columns'.
3733         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3734         `convert_bufbyte_string_into_emchar_dynarr'.
3735         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3736         `convert_charc_string_into_bufbyte_dynarr'.
3737         (convert_charc_string_into_malloced_string): New function; delete
3738         `convert_charc_string_into_malloced_string'.
3739
3740         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3741         `find_charsets_in_emchar_string'.
3742         (charc_string_displayed_columns): New prototype; delete
3743         `emchar_string_displayed_columns'.
3744         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3745         `convert_charc_string_into_bufbyte_dynarr'.
3746         (convert_charc_string_into_malloced_string): New prototype; delete
3747         `convert_charc_string_into_malloced_string'.
3748
3749 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3750
3751         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3752
3753 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3754
3755         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3756
3757         * char-ucs.h: Use <short> for <Charset_ID>.
3758
3759         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3760         <Charset_ID>.
3761
3762 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3763
3764         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3765         to 0.16.
3766
3767 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3768
3769         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3770         variable.
3771         (Qmorohashi_daikanwa): New variable.
3772         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3773         for `morohashi-daikanwa' attribute.
3774         (Fget_char_attribute): Likewise.
3775         (Fput_char_attribute): Likewise.
3776         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3777         has the same value of `ideograph-daikanwa'.
3778         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3779         (vars_of_mule_charset): Setup
3780         `Vcharacter_morohashi_daikanwa_table'.
3781
3782 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3783
3784         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3785         attributes.
3786         (add_charset_to_list_mapper): Add `key' instead of
3787         `XCHARSET_NAME (value)' to return aliases.
3788
3789 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3790
3791         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3792         variable.
3793         (Vcharacter_ideographic_strokes_table): New variable.
3794         (Qideographic_radical): New variable.
3795         (Qideographic_strokes): New variable.
3796         (Fchar_attribute_alist): Use
3797         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3798         attribute; use `Vcharacter_ideographic_strokes_table' for
3799         `ideographic-strokes' attribute.
3800         (Fget_char_attribute): Likewise.
3801         (Fput_char_attribute): Likewise.
3802         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3803         `ideographic-strokes'.
3804         (vars_of_mule_charset): Setup
3805         `Vcharacter_ideographic_radical_table' and
3806         `Vcharacter_ideographic_strokes_table'.
3807
3808 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3809
3810         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3811         (Qtotal_strokes): New variable.
3812         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3813         `total-strokes' attribute.
3814         (Fget_char_attribute): Likewise.
3815         (Fput_char_attribute): Likewise.
3816         (syms_of_mule_charset): Add new symbol `total-strokes'.
3817         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3818
3819 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3820
3821         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3822         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3823         are found.
3824         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3825         `->decomposition' attribute.
3826         (Fput_char_attribute): Likewise.
3827         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3828
3829 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3830
3831         * mule-charset.c (decoding_table_check_elements): New function.
3832         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3833
3834 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3835
3836         * mule-charset.c (Fset_charset_mapping_table): Use
3837         `put_char_ccs_code_point'.
3838
3839 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3840
3841         * mule-charset.c (decoding_table_put_char): New inline function.
3842         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3843
3844 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3845
3846         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3847         (XCHARSET_BYTE_SIZE): New macro.
3848         (decoding_table_remove_char): New inline function.
3849         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3850         `decoding_table_remove_char'.
3851         (remove_char_ccs): Use `decoding_table_remove_char'.
3852         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3853
3854 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3855
3856         * mule-charset.c (Vcharacter_name_table): New variable.
3857         (Qname): New variable.
3858         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3859         attribute.
3860         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3861         `Vcharacter_name_table' for `name' attribute.
3862         (Fremove_char_attribute): Use function `remove_char_ccs'.
3863         (put_char_ccs_code_point): New function.
3864         (remove_char_ccs): New function.
3865         (syms_of_mule_charset): Add new symbol `name'.
3866         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3867
3868 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3869
3870         * mule-charset.c (make_byte_table): Add new argument `older'.
3871         (make_char_id_table): Likewise.
3872         (copy_char_id_table): Comment out because it is not used.
3873         (put_char_id_table): Modify for `make_byte_table'.
3874         (Fput_char_attribute): Make encoding_table as older object;
3875         inherit older bit of `Vcharacter_composition_table'.
3876         (mark_charset): Don't mark `cs->encoding_table'.
3877         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3878         normal object; make `Vcharacter_composition_table' as an older
3879         object; delete staticpro for `Vcharacter_composition_table'; make
3880         `Vcharacter_variant_table' as a normal object.
3881
3882         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3883         (mark_object): Don't check older object in UTF-2000.
3884
3885         * lrecord.h (struct lrecord_header): Add new member `older' in
3886         UTF-2000.
3887         (set_lheader_implementation): Setup `SLI_header->older' in
3888         UTF-2000.
3889         (set_lheader_older_implementation): New macro in UTF-2000.
3890         (OLDER_RECORD_P): New macro in UTF-2000.
3891         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3892         (alloc_older_lcrecord): New prototype in UTF-2000.
3893         (alloc_older_lcrecord_type): New macro in UTF-2000.
3894
3895 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3896
3897         * mule-charset.c (byte_table_description): Use
3898         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3899         (char_id_table_description): Delete bogus `, 1'.
3900         (Fget_char_attribute): Refer encoding_table of each coded-charset
3901         to get value of coded-charset attribute of a character.
3902         (Fput_char_attribute): Use `make_older_vector' instead of
3903         `make_vector'; use encoding_table of each coded-charset to store
3904         value of coded-charset attribute of a character.
3905         (Fremove_char_attribute): Use encoding_table of each coded-charset
3906         to store value of coded-charset attribute of a character.
3907         (mark_charset): Mark `cs->encoding_table'; don't mark
3908         `cs->decoding_table'.
3909         (charset_description): Add description of new member
3910         `encoding_table'.
3911         (make_charset): Initialize `encoding_table'.
3912
3913         * char-ucs.h (struct Lisp_Charset): Add new member
3914         `encoding_table'.
3915         (CHARSET_ENCODING_TABLE): New macro.
3916         (XCHARSET_ENCODING_TABLE): New macro.
3917         (charset_code_point): New implementation.
3918         (encode_char_1): Likewise.
3919
3920         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3921         (disksave_object_finalization_1): Call finalizers of
3922         `all_older_lcrecords' in UTF-2000.
3923         (make_older_vector): New function in UTF-2000.
3924         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3925         UTF-2000.
3926
3927         * lisp.h (make_older_vector): New prototype in UTF-2000.
3928
3929 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3930
3931         * lrecord.h (enum lrecord_type): Rename
3932         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3933
3934         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3935         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3936         `get_char_code_table'.
3937
3938         * mule-charset.c (mark_char_id_table): Renamed from
3939         `mark_char_code_table'.
3940         (char_id_table_equal): Renamed from `char_code_table_equal'.
3941         (char_id_table_hash): Renamed from `char_code_table_hash'.
3942         (make_char_id_table): Renamed from `make_char_code_table'.
3943         (copy_char_id_table): Renamed from `copy_char_code_table'.
3944         (get_char_id_table): Renamed from `get_char_code_table'.
3945         (put_char_id_table): Renamed from `put_char_code_table'.
3946         (to_char_id): Renamed from `to_char_code'.
3947
3948         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3949         `Lisp_Char_Code_Table'.
3950         (char_id_table): Renamed from `char_code_table'.
3951         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3952         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3953         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3954         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3955         (get_char_id_table): Renamed from `get_char_code_table'.
3956
3957 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3958
3959         * lrecord.h (enum lrecord_type): Rename
3960         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3961
3962         * mule-charset.c (mark_byte_table): Renamed from
3963         `mark_char_byte_table'.
3964         (byte_table_equal): Renamed from `char_byte_table_equal'.
3965         (byte_table_hash): Renamed from `byte_table_hash'.
3966         (make_byte_table): Renamed from `make_byte_table'.
3967         (copy_byte_table): Renamed from `copy_char_byte_table'.
3968
3969         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3970         `Lisp_Char_Byte_Table'.
3971         (byte_table): Renamed from `char_byte_table'.
3972         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3973         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3974         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3975         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3976
3977 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3978
3979         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3980         (dfc_convert_to_internal_format): Likewise.
3981         
3982         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3983         * text-coding.c (Fcoding_system_alias_p): New function.
3984         * text-coding.c (Fcoding_system_aliasee): New function.
3985         * text-coding.c (append_suffix_to_symbol): New function.
3986         * text-coding.c (dangling_coding_system_alias_p): New function.
3987         * text-coding.c (Ffind_coding_system):
3988         * text-coding.c (Fcopy_coding_system):
3989         * text-coding.c (encode_coding_no_conversion):
3990         * text-coding.c (syms_of_file_coding):
3991         * text-coding.c (vars_of_file_coding):
3992         Rewrite coding system alias code.
3993         Allow nested aliases, like symbolic links.
3994         Allow redefinition of coding system aliases.
3995         Prevent existence of dangling coding system aliases.
3996         Eliminate convert_to_external_format.
3997         Eliminate convert_to_internal_format.
3998         
3999         * text-coding.c: Change enum eol_type to eol_type_t.
4000
4001 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4002
4003         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
4004         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4005
4006         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
4007         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
4008
4009 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4010
4011         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
4012         `ideograph-daikanwa'.
4013
4014         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
4015         (Vcharset_ucs_bmp): Likewise.
4016         (Vcharset_mojikyo): Add new extern variable definition.
4017         (Vcharset_latin_iso8859_2): Deleted because it is not used.
4018         (Vcharset_latin_iso8859_3): Likewise.
4019         (Vcharset_latin_iso8859_4): Likewise.
4020         (Vcharset_latin_iso8859_9): Likewise.
4021         (Vcharset_latin_viscii_lower): Likewise.
4022         (Vcharset_latin_viscii_upper): Likewise.
4023         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
4024         `mojikyo' code-point is used to decode.
4025         (encode_char_2): New function [to convert `mojikyo' code-point to
4026         Mojikyo font encoding].
4027         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4028         (breakup_char_1): Likewise.
4029         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4030
4031 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4032
4033         * text-coding.c (Fmake_coding_system): Add document about
4034         `disable-composition' property.
4035
4036 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4037
4038         * text-coding.c (Qdisable_composition): New variable; delete
4039         `Qcomposite'.
4040         (Fmake_coding_system): Add new property `disable-composite';
4041         delete property `composite'.
4042         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4043         instead of `!CODING_SYSTEM_COMPOSITE'.
4044         (syms_of_file_coding): Add new symbol `disable-composition';
4045         delete symbol `composite'.
4046
4047         * file-coding.h (struct Lisp_Coding_System): Add
4048         `disable_composition'; delete `enable_composition'.
4049         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4050         `CODING_SYSTEM_COMPOSITE'.
4051         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4052         `XCODING_SYSTEM_COMPOSITE'.
4053
4054 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4055
4056         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4057         to 0.15.
4058
4059 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4060
4061         * text-coding.c (Qcomposite): New variable.
4062         (Fmake_coding_system): Add new property `composite'.
4063         (struct decoding_stream): Add `combined_char_count',
4064         `combined_chars' and `combining_table' in UTF-2000.
4065         (COMPOSE_FLUSH_CHARS): New macro.
4066         (COMPOSE_ADD_CHAR): New macro.
4067         (reset_decoding_stream): Reset `str->combined_char_count' and
4068         `str->combining_table' in UTF-2000.
4069         (decode_coding_iso2022): Modify for character-decomposition.
4070         (syms_of_file_coding): Add new symbol `composite'.
4071
4072 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4073
4074         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4075         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4076         of `Vcharacter_composition_table' if `->decomposition' property
4077         has only 1 element.
4078         (Qlatin_tcvn5712): New variable.
4079         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4080         (complex_vars_of_mule_charset): Add new coded-charset
4081         `latin-tcvn5712'.
4082
4083         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4084
4085 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4086
4087         * file-coding.h (struct Lisp_Coding_System): Add
4088         `enable_composition'.
4089         (CODING_SYSTEM_COMPOSITE): New macro.
4090         (XCODING_SYSTEM_COMPOSITE): New macro.
4091
4092 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4093
4094         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4095
4096 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4097
4098         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4099         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4100
4101 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4102
4103         * mule-charset.c (Vcharset_mojikyo): New variable.
4104         (Fdefine_char): Don't use coded-charset which does not have
4105         non-builtin character range to allocate character-id.
4106         (Qmojikyo): New variable.
4107         (syms_of_mule_charset): Add new symbol `mojikyo'.
4108         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4109
4110         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4111         (LEADING_BYTE_MOJIKYO): New macro.
4112         (MIN_CHAR_MOJIKYO): New macro.
4113         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4114         (MAX_CHAR_MOJIKYO): New macro.
4115
4116 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4117
4118         * mule-charset.c (remove_char_attribute): Fixed.
4119
4120 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4121
4122         * mule-charset.c (remove_char_attribute): New function.
4123         (Fremove_char_attribute): New function.
4124         (encode_builtin_char_1): Comment out builtin-support for
4125         greek-iso8859-7 and cyrillic-iso8859-5.
4126         (Fdecode_char): Check `code' is an integer.
4127         (syms_of_mule_charset): Add `remove-char-attribute'.
4128         (MIN_CHAR_GREEK): Deleted.
4129         (MAX_CHAR_GREEK): Likewise.
4130         (MIN_CHAR_CYRILLIC): Likewise.
4131         (MAX_CHAR_CYRILLIC): Likewise.
4132         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4133         MAX_CHAR_GREEK for `greek-iso8859-7'.
4134
4135         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4136         (MAX_CHAR_GREEK): Likewise.
4137         (MIN_CHAR_CYRILLIC): Likewise.
4138         (MAX_CHAR_CYRILLIC): Likewise.
4139
4140 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4141
4142         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4143         format is used without `ucs' property.
4144         (Fdecode_char): Fix problem with GR representation.
4145         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4146         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4147
4148 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4149
4150         * mule-charset.c (make_builtin_char): New function.
4151         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4152         (Fset_charset_mapping_table): Modify for new representation of
4153         code-point.
4154         (Fdecode_char): New function.
4155         (syms_of_mule_charset): Add new builtin function `decode-char' in
4156         UTF-2000.
4157
4158         * char-ucs.h (make_builtin_char): New prototype.
4159         (DECODE_CHAR): New inline function.
4160         (MAKE_CHAR): Use `DECODE_CHAR'.
4161
4162 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4163
4164         * text-coding.c (parse_charset_conversion_specs): Use
4165         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4166         `XCHARSET_TYPE'.
4167         (iso2022_designate): Likewise.
4168
4169         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4170         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4171
4172         * mule-charset.c (Vcharset_ucs): New variable.
4173         (print_charset): Change design; use `CHARSET_CHARS' and
4174         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4175         (make_charset): Change signature to specify `chars' and
4176         `dimension' instead of `type'.
4177         (range_charset_code_point): Modify for 256^n-set.
4178         (encode_builtin_char_1): Encode as `ucs' in default.
4179         (Fmake_charset): Modify for `make_charset'.
4180         (Fmake_reverse_direction_charset): Likewise.
4181         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4182         UTF-2000.
4183         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4184         for `make_charset'.
4185
4186         * char-ucs.h (Vcharset_ucs): New variable.
4187         (LEADING_BYTE_UCS): New macro.
4188         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4189         and `chars' to `unsigned short' from `unsigned int'.
4190         (CHARSET_TYPE): Deleted.
4191         (XCHARSET_TYPE): Deleted.
4192
4193 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4194
4195         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4196
4197         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4198         (ENCODE_CHAR): New macro.
4199
4200 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4201
4202         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4203         to 0.14 (Kawachi-Katakami).
4204
4205 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4206
4207         * text-coding.c (char_encode_shift_jis): Modify for
4208         `charset_code_point'.
4209         (char_encode_iso2022): Likewise.
4210
4211         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4212         (integer) instead of list of <Lisp_Object>s (integers) as the
4213         format of code-point of a coded-charset.
4214         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4215         (encode_builtin_char_1): New function; delete
4216         `split_builtin_char'.
4217         (charset_code_point): Return <int> instead of <Lisp_Object>.
4218         (Fsplit_char): Don't use `SPLIT_CHAR'.
4219
4220         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4221         prototype for `split_builtin_char'.
4222         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4223         (charset_code_point): Likewise.
4224         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4225         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4226
4227 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4228
4229         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4230         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4231
4232 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4233
4234         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4235
4236         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4237         (MAX_CHAR_OBS_94x94): Deleted.
4238
4239 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4240
4241         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4242
4243         * char-ucs.h (MAX_CHAR_BMP): New macro.
4244
4245 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4246
4247         * text-coding.c: Sync with r21-2-24.
4248
4249 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4250
4251         * file-coding.c: Modify for UTF-2000.
4252
4253 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4254
4255         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4256         to 0.13 (Takaida).
4257
4258 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4259
4260         * mule-charset.c (split_builtin_char): Delete builtin support for
4261         `katakana-jisx0201'.
4262         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4263         BMP area in builtin representation.
4264
4265         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4266         `Vcharset_katakana_jisx0201'.
4267
4268 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4269
4270         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4271         (Qisolated): New variable.
4272         (Qinitial): New variable.
4273         (Qmedial): New variable.
4274         (Qfinal): New variable.
4275         (Qvertical): New variable.
4276         (Qsmall): New variable.
4277         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4278         `Qvertical' and `Qsmall'.
4279         (Qmojikyo_pj_[1 .. 21]): New variable.
4280         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4281         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4282         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4283         .. 21]'.
4284
4285 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4286
4287         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4288         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4289         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4290
4291 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4292
4293         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4294         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4295         BMP.
4296         (Qjapanese_jisx0208_1990): New variable.
4297         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4298         (complex_vars_of_mule_charset): Add new coded-charset
4299         `japanese-jisx0208-1990'.
4300
4301         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4302         (MIN_CHAR_JIS_X0208_1990): New macro.
4303         (MAX_CHAR_JIS_X0208_1990): New macro.
4304
4305 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4306
4307         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4308         coded-charset is not found.
4309
4310 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4311
4312         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4313         (Fdefine_char): Use `Fmake_char'.
4314
4315 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4316
4317         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4318         (Vcharset_hiragana_jisx0208): Deleted.
4319         (Vcharset_katakana_jisx0208): Deleted.
4320         (Qideograph_daikanwa): New variable.
4321         (Qhiragana_jisx0208): Deleted.
4322         (Qkatakana_jisx0208): Deleted.
4323         (split_builtin_char): Split `ideograph-daikanwa'.
4324         (Fsplit_char): New implementation for UTF-2000.
4325         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4326         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4327         (complex_vars_of_mule_charset): Add new coded-charset
4328         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4329         `katakana-jisx0208'.
4330
4331         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4332         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4333         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4334         (MIN_CHAR_DAIKANWA): New macro.
4335         (MAX_CHAR_DAIKANWA): New macro.
4336
4337 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4338
4339         * data.c (Fstring_to_number): Don't recognize floating point if
4340         base is not 10.
4341
4342 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4343
4344         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4345
4346 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4347
4348         * mule-charset.c (Qsquare): New variable.
4349         (to_char_code): Add `Qsquare'.
4350         (syms_of_mule_charset): Add new symbol `square'.
4351
4352 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4353
4354         * mule-charset.c (Qcircle): New variable.
4355         (to_char_code): Add `Qcircle'.
4356         (syms_of_mule_charset): Add new symbol `circle'.
4357
4358 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4359
4360         * mule-charset.c (Qfont): New variable.
4361         (to_char_code): Add `Qfont'.
4362         (syms_of_mule_charset): Add new symbol `font'.
4363
4364 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4365
4366         * mule-charset.c (Qsub): New variable.
4367         (to_char_code): Add `Qsub'.
4368         (syms_of_mule_charset): Add new symbol `sub'.
4369
4370 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4371
4372         * mule-charset.c (Fput_char_attribute): Convert each element of
4373         VALUE to GL position if ATTRIBUTE is a GR-set,
4374
4375 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4376
4377         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4378         coded-charset is a GR-set.
4379
4380 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4381
4382         * mule-charset.c (Fput_char_attribute): Check each element of
4383         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4384
4385 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4386
4387         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4388         UTF-2000.
4389         (Qethiopic_ucs): New variable in UTF-2000.
4390         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4391         (complex_vars_of_mule_charset): Add new coded-charset
4392         `ethiopic-ucs' in UTF-2000.
4393
4394         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4395         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4396         9)'.
4397         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4398         10)'.
4399         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4400
4401 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4402
4403         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4404         `ascii'.
4405
4406 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4407
4408         * mule-charset.c (Vcharacter_variant_table): New variable.
4409         (Q_ucs): New variable.
4410         (Fchar_variants): New function.
4411         (Fput_char_attribute): Register `->ucs' value to
4412         `Vcharacter_variant_table'.
4413         (syms_of_mule_charset): Add new function `char-variants' and new
4414         symbol `->ucs'.
4415         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4416
4417 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4418
4419         * mule-charset.c (get_char_code_table): Allow negative character
4420         code.
4421         (put_char_code_table): Likewise.
4422         (Vcharacter_composition_table): New variable.
4423         (Q_decomposition): New variable.
4424         (Qwide): New variable.
4425         (Qnarrow): New variable.
4426         (Qcompat): New variable.
4427         (QnoBreak): New variable.
4428         (Qsuper): New variable.
4429         (Qfraction): New variable.
4430         (to_char_code): New function.
4431         (Fget_composite_char): New function.
4432         (Fput_char_attribute): Register `->decomposition' value to
4433         `Vcharacter_composition_table'.
4434         (syms_of_mule_charset): Add new function `get-composite-char', new
4435         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4436         `super' and `fraction'.
4437         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4438
4439 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4440
4441         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4442         character; copy the return value.
4443
4444 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4445
4446         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4447
4448         * mule-charset.c (range_charset_code_point): Must use make_int.
4449         (split_builtin_char): New function.
4450
4451 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4452
4453         * mule-charset.c (char_byte_table): Change name from
4454         "char-code-table" to "char-byte-table".
4455         (mark_char_code_table): New function.
4456         (char_code_table_equal): New function.
4457         (char_code_table_hash): New function.
4458         (char_code_table_description): New constant.
4459         (char_code_table): New type.
4460         (make_char_code_table): New function.
4461         (copy_char_code_table): New function.
4462         (get_char_code_table): Modify for `char_code_table' type.
4463         (put_char_code_table): Likewise.
4464         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4465         (Kashiwara).
4466
4467         * char-ucs.h (char_code_table): New type.
4468         (XCHAR_CODE_TABLE): New macro.
4469         (XSETCHAR_CODE_TABLE): New macro.
4470         (CHAR_CODE_TABLE_P): New macro.
4471         (GC_CHAR_CODE_TABLE_P): New macro.
4472         (struct Lisp_Char_Code_Table): New structure.
4473
4474 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4475
4476         * mule-charset.c (Fmake_charset): Setup byte_offset for
4477         {94|96}^n-set.
4478
4479 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4480
4481         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4482         character.
4483
4484 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4485
4486         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4487         is found.
4488
4489 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4490
4491         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4492         charset, it is regarded as a charset.
4493         (put_char_attribute): New function in UTF-2000.
4494         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4495         charset, mapping-table of the charset is modified.
4496         (Fdefine_char): New function in UTF-2000.
4497         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4498         `Fput_char_attribute'.
4499         (syms_of_mule_charset): Add new function `define-char' and new
4500         symbol `ucs' in UTF-2000.
4501         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4502
4503 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4504
4505         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4506         non-UTF-2000 configuration.
4507
4508 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4509
4510         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4511         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4512
4513         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4514         deleted.
4515         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4516         (Fset_charset_mapping_table): Likewise.
4517
4518         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4519         (CHARSET_ENCODING_TABLE): Delete.
4520         (XCHARSET_ENCODING_TABLE): Delete.
4521         (charset_code_point): New interface.
4522
4523 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4524
4525         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4526         instead of `charset_get_byte1' and `charset_get_byte2'.
4527
4528         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4529         (charset_get_byte2): Deleted.
4530
4531 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4532
4533         * char-ucs.h (SPLIT_CHAR): New inline function.
4534         (breakup_char_1): Use `SPLIT_CHAR'.
4535
4536         * mule-charset.c (range_charset_code_point): New function.
4537         (charset_code_point): New function.
4538
4539         * char-ucs.h (range_charset_code_point): New interface.
4540         (breakup_char_1): Use `range_charset_code_point'.
4541
4542 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4543
4544         * mule-charset.c (Fmake_charset): Delete unused local variable
4545         `code_offset'.
4546
4547         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4548         (breakup_char_1): Find a charset and code-point in
4549         `Vcharacter_attribute_table'.
4550
4551 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4552
4553         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4554         to 0.10 (Yao).
4555
4556 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4557
4558         * mule-charset.c (Vcharacter_attribute_table): New variable.
4559         (Fchar_attribute_alist): New function.
4560         (Fget_char_attribute): New function.
4561         (Fput_char_attribute): New function.
4562         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4563         too.
4564         (syms_of_mule_charset): Add new function `char-attribute-alist',
4565         `get-char-attribute' and `put-char-attribute'.
4566         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4567
4568 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4569
4570         * mule-charset.c (Fmake_charset): Just use
4571         `get_unallocated_leading_byte'.
4572
4573         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4574         sets; don't use final-byte based number for private sets.
4575
4576 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4577
4578         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4579         integer.
4580
4581 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4582
4583         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4584         to 0.9.
4585
4586 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4587
4588         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4589         of `CHAR_LEADING_BYTE' in UTF-2000.
4590
4591         * insdel.c (find_charsets_in_bufbyte_string): Use
4592         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4593         (find_charsets_in_emchar_string): Likewise.
4594
4595         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4596         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4597
4598         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4599         (CHAR_CHARSET_ID): New macro.
4600
4601 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4602
4603         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4604         charset-id - MIN_LEADING_BYTE.
4605         (put_char_table): Likewise.
4606
4607 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4608
4609         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4610         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4611         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4612         (CHARSET_ID_OFFSET): New macro.
4613         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4614         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4615         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4616         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4617         4).
4618         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4619         5).
4620         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4621         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4622         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4623         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4624         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4625
4626 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4627
4628         * mule-charset.c (next_allocated_leading_byte): New variable in
4629         UTF-2000.
4630         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4631         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4632         (get_unallocated_leading_byte): Simply use
4633         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4634         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4635         UTF-2000.
4636
4637         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4638         (MAX_LEADING_BYTE_PRIVATE): New macro.
4639         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4640         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4641
4642 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4643
4644         * mule-charset.c (Fmake_charset): Allocate final-byte based
4645         charset-id for 94-set, 96-set and 94x94-set.
4646
4647 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4648
4649         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4650         ambiguous `else'.
4651         (Fmake_charset): Likewise.
4652         (complex_vars_of_mule_charset): Modify the font registry of
4653         `ucs-bmp' not to match `Ethiopic-Unicode'.
4654
4655 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4656
4657         * mule-charset.c (complex_vars_of_mule_charset): Add font
4658         registory of `ucs-bmp'.
4659
4660 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4661
4662         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4663         coded-charsets in `default-coded-charset-priority-list' when
4664         breaking up a character.
4665
4666         * mule-charset.c (Vcharset_latin_viscii): New variable.
4667         (Qlatin_viscii): New variable.
4668         (make_charset): Don't use `decoding_table'.
4669         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4670         byte_offset.
4671         (Fset_charset_mapping_table): New implementation.
4672         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4673         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4674         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4675         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4676         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4677         charset `latin_viscii'.
4678
4679         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4680         (CHARSET_TYPE_94X94): Change to 1 from 2.
4681         (CHARSET_TYPE_96): Change to 2 from 1.
4682         (CHARSET_TYPE_128): New macro.
4683         (CHARSET_TYPE_128X128): Change to 5 from 4.
4684         (CHARSET_TYPE_256): New macro.
4685         (CHARSET_TYPE_256X256): Change to 7 from 5.
4686         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4687
4688 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4689
4690         * text-coding.c (char_encode_shift_jis): Refer
4691         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4692         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4693
4694         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4695         (char_byte_table_equal): New function in UTF-2000.
4696         (char_byte_table_hash): New function in UTF-2000.
4697         (char_byte_table_description): New constant in UTF-2000.
4698         (char_byte_table): New type in UTF-2000.
4699         (make_char_byte_table): New function in UTF-2000.
4700         (copy_char_byte_table): New function in UTF-2000.
4701         (make_char_code_table): New macro in UTF-2000.
4702         (get_char_code_table): New function in UTF-2000.
4703         (put_char_code_table): New function in UTF-2000.
4704         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4705         (charset_description): Add setting in UTF-2000.
4706         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4707         `CHARSET_TO_BYTE1_TABLE(cs)'.
4708         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4709         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4710         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4711         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4712         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4713         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4714         `CHARSET_TO_BYTE2_TABLE(cs)'.
4715
4716         * char-ucs.h (char_byte_table): New type.
4717         (XCHAR_BYTE_TABLE): New macro.
4718         (XSETCHAR_BYTE_TABLE): New macro.
4719         (CHAR_BYTE_TABLE_P): New macro.
4720         (GC_CHAR_BYTE_TABLE_P): New macro.
4721         (struct Lisp_Char_Byte_Table): New structure.
4722         (get_char_code_table): New interface.
4723         (Emchar_to_byte_table): Deleted.
4724         (get_byte_from_character_table): Deleted.
4725         (struct Lisp_Charset): Add `encoding_table'; delete
4726         `to_byte1_table' and `to_byte2_table'.
4727         (CHARSET_ENCODING_TABLE): New macro.
4728         (CHARSET_TO_BYTE1_TABLE): Deleted.
4729         (CHARSET_TO_BYTE2_TABLE): Deleted.
4730         (XCHARSET_ENCODING_TABLE): New macro.
4731         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4732         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4733
4734 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4735
4736         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4737         `vietnamese-viscii-*'.
4738
4739 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4740
4741         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4742         (Qvietnamese_viscii_upper): New variable.
4743         (Fdefine_charset_alias): New function.
4744         (syms_of_mule_charset): Add new function `define-charset-alias'.
4745         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4746         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4747         `latin-viscii-*'.
4748
4749 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4750
4751         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4752         (MAX_CHAR_OBS_94x94): New macro.
4753         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4754         for 94x94 sets.
4755
4756         * mule-charset.c (put_byte_from_character_table): Change unit size
4757         from 128 to 256.
4758         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4759         not defined.
4760         (Fmake_reverse_direction_charset): Modify dummy argument of
4761         `make_charset' for non-UTF-2000 environment.
4762
4763 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4764
4765         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4766
4767         * mule-charset.c (destroy_byte_from_character_table): New macro.
4768         (latin_jisx0201_to_ucs): Deleted.
4769         (latin_iso8859_2_to_ucs): Deleted.
4770         (latin_iso8859_3_to_ucs): Deleted.
4771         (latin_iso8859_4_to_ucs): Deleted.
4772         (latin_iso8859_9_to_ucs): Deleted.
4773         (latin_viscii_lower_to_ucs): Deleted.
4774         (latin_viscii_upper_to_ucs): Deleted.
4775         (mark_charset): Mark `cs->decoding_table'.
4776         (Fcharset_mapping_table): Fix DOC-string.
4777         (Fset_charset_mapping_table): New function.
4778         (syms_of_mule_charset): Add nwe function
4779         `set-charset-mapping-table'.
4780         (complex_vars_of_mule_charset): Don't setup and use
4781         `latin_*_to_ucs'.
4782
4783 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4784
4785         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4786         charset.
4787
4788 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4789
4790         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4791         (Vcharset_katakana_jisx0208): New variable.
4792         (Qhiragana_jisx0208): New variable.
4793         (Qkatakana_jisx0208): New variable.
4794         (make_charset): Add new argument `byte_offset'.
4795         (charset_get_byte1): Modify for new coded-charset definition; use
4796         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4797         `XCHARSET_BYTE_OFFSET'.
4798         (Fmake_charset): Modify for `make_charset'.
4799         (Fmake_reverse_direction_charset): Likewise.
4800         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4801         `katakana-jisx0208'.
4802         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4803         `.'  in font registry of charset `katakana-jisx0201',
4804         `latin-jisx0201', `vietnamese-viscii-lower' and
4805         `vietnamese-viscii-upper'; modify DOC-string of charset
4806         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4807         registry of charset `japanese-jisx0208' not to use font for JIS
4808         X0208:1990; add new charset `hiragana-jisx0208' and
4809         `katakana-jisx0208'.
4810
4811         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4812         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4813         (struct Lisp_Charset): Add `byte_offset'.
4814         (CHARSET_BYTE_OFFSET): New macro.
4815         (XCHARSET_UCS_MIN): New macro.
4816         (XCHARSET_UCS_MAX): New macro.
4817         (XCHARSET_CODE_OFFSET): New macro.
4818         (XCHARSET_BYTE_OFFSET): New macro.
4819         (MIN_CHAR_HIRAGANA): New macro.
4820         (MAX_CHAR_HIRAGANA): New macro.
4821         (MIN_CHAR_KATAKANA): New macro.
4822         (MAX_CHAR_KATAKANA): New macro.
4823         (MAKE_CHAR): Modify for new coded-charset definition; use
4824         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4825         `XCHARSET_BYTE_OFFSET'.
4826
4827 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4828
4829         * mule-charset.c (CHAR96): Deleted.
4830         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4831         <Lisp_Object>.
4832         (latin_iso8859_2_to_ucs): Likewise.
4833         (latin_iso8859_3_to_ucs): Likewise.
4834         (latin_iso8859_4_to_ucs): Likewise.
4835         (latin_iso8859_9_to_ucs): Likewise.
4836         (latin_viscii_lower_to_ucs): Likewise.
4837         (latin_viscii_upper_to_ucs): Likewise.
4838         (latin_tcvn5712_to_ucs): Commented out.
4839         (make_charset): Change type of argument `decoding_table' from
4840         <Emchar*> to <Lisp_Object> [vector of characters].
4841         (Fmake_charset): Modify for `make_charset'.
4842         (Fmake_reverse_direction_charset): Likewise.
4843         (Fcharset_mapping_table): New function in UTF-2000.
4844         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4845         UTF-2000.
4846         (complex_vars_of_mule_charset): Modify for type change of
4847         `*_to_ucs'; modify for `make_charset'.
4848
4849         * char-ucs.h (struct Lisp_Charset): Change type of
4850         `decoding_table' from <Emchar*> to <Lisp_Object>.
4851         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4852
4853 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4854
4855         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4856         error with non-UTF-2000-Mule.
4857
4858 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4859
4860         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4861         in lisp again].
4862         (Vcharset_chinese_cns11643_4): Likewise.
4863         (Vcharset_chinese_cns11643_5): Likewise.
4864         (Vcharset_chinese_cns11643_6): Likewise.
4865         (Vcharset_chinese_cns11643_7): Likewise.
4866         (Qchinese_cns11643_3): Likewise.
4867         (Qchinese_cns11643_4): Likewise.
4868         (Qchinese_cns11643_5): Likewise.
4869         (Qchinese_cns11643_6): Likewise.
4870         (Qchinese_cns11643_7): Likewise.
4871         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4872         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4873         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4874         (complex_vars_of_mule_charset): Likewise.
4875
4876 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4877
4878         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4879         96-set.
4880         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4881         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4882
4883 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4884
4885         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4886         0xFF60.
4887         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4888         (breakup_char_1): Likewise.
4889
4890         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4891         one of them includes the specified character.
4892
4893 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4894
4895         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4896
4897 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4898
4899         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4900
4901 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4902
4903         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4904         definition for non-UTF-2000 Mule.
4905         (latin_iso8859_3_to_ucs): Likewise.
4906         (latin_iso8859_4_to_ucs): Likewise.
4907         (latin_iso8859_9_to_ucs): Likewise.
4908         (latin_jisx0201_to_ucs): Likewise.
4909         (MIN_CHAR_THAI): Likewise.
4910         (MAX_CHAR_THAI): Likewise.
4911         (MIN_CHAR_GREEK): Likewise.
4912         (MAX_CHAR_GREEK): Likewise.
4913         (MIN_CHAR_HEBREW): Likewise.
4914         (MAX_CHAR_HEBREW): Likewise.
4915         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4916         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4917         (MIN_CHAR_CYRILLIC): Likewise.
4918         (MAX_CHAR_CYRILLIC): Likewise.
4919
4920 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4921
4922         * char-ucs.h (breakup_char_1): Use
4923         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4924         thai-tis620 and katakana-jisx0201 area.
4925
4926 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4927
4928         * char-ucs.h (breakup_char_1): Use
4929         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4930         area.
4931
4932         * text-coding.c (reset_encoding_stream): Fixed.
4933         (char_encode_ucs4): Delete `& 255'.
4934
4935         * char-ucs.h (breakup_char_1): Use
4936         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4937
4938 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4939
4940         * file-coding.c (Fmake_coding_system): Don't set up
4941         `codesys->fixed.size'.
4942         (encode_coding_no_conversion): Don't refer
4943         `str->codesys->fixed.size'.
4944
4945 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4946
4947         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4948         (latin_a_char_to_byte1): Deleted.
4949         (latin_a_char_to_byte2): Deleted.
4950
4951 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4952
4953         * mule-charset.c (make_charset): Add new argument `ucs_min',
4954         `ucs_max' and `code_offset'.
4955         (charset_get_byte1): New implementation [delete specific charset
4956         depended implementations].
4957         (Fmake_charset): Modify for `make_charset'.
4958         (Fmake_reverse_direction_charset): Likewise.
4959         (complex_vars_of_mule_charset): Likewise.
4960
4961         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4962         `code_offset'.
4963         (CHARSET_UCS_MIN): New macro.
4964         (CHARSET_UCS_MAX): New macro.
4965         (CHARSET_CODE_OFFSET): New macro.
4966         (MAKE_CHAR): Delete charset depended definitions [except
4967         katakana-jisx0201].
4968
4969 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4970
4971         * char-ucs.h (breakup_char_1): Use
4972         `Vdefault_coded_charset_priority_list' for C0-Controls,
4973         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4974
4975 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4976
4977         * char-ucs.h (charset_get_byte1): New function.
4978         (XCHARSET_GET_BYTE1): Deleted.
4979         (charset_get_byte2): New function.
4980         (XCHARSET_GET_BYTE2): Deleted.
4981         (Vdefault_coded_charset_priority_list): New external variable.
4982         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4983         `Vdefault_preferred_coded_charset_list'.
4984
4985         * mule-charset.c (charset_get_byte1): New function.
4986         (charset_get_byte2): New function.
4987         (Vdefault_coded_charset_priority_list): New variable.
4988         (vars_of_mule_charset): Add new variable
4989         `default-coded-charset-priority-list'.
4990
4991 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4992
4993         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4994         (XCHARSET_GET_BYTE2): New inline function.
4995         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4996         `XCHARSET_GET_BYTE2'.
4997
4998 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4999
5000         * mule-charset.c (make_charset): Initialize
5001         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
5002         NULL if table is not defined.
5003
5004 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5005
5006         * text-coding.c (char_encode_shift_jis): Use
5007         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
5008         `ucs_to_latin_jisx0201'.
5009
5010         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
5011         (ucs_to_latin_iso8859_2): Deleted.
5012         (ucs_to_latin_iso8859_3): Deleted.
5013         (ucs_to_latin_iso8859_4): Deleted.
5014         (ucs_to_latin_iso8859_9): Deleted.
5015         (ucs_to_latin_viscii_lower): Deleted.
5016         (ucs_to_latin_viscii_upper): Deleted.
5017         (ucs_to_latin_tcvn5712): Deleted.
5018         (make_charset): Add new argument `decoding_table'; set up
5019         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
5020         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
5021         `decoding_table' is defined in UTF-2000.
5022         (Fmake_charset): Modify for `make_charset'.
5023         (Fmake_reverse_direction_charset): Likewise.
5024         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
5025         and `GENERATE_96_SET'.
5026
5027         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5028         (ucs_to_latin_jisx0201): Deleted.
5029         (latin_iso8859_2_to_ucs): Deleted.
5030         (ucs_to_latin_iso8859_2): Deleted.
5031         (latin_iso8859_3_to_ucs): Deleted.
5032         (ucs_to_latin_iso8859_3): Deleted.
5033         (latin_iso8859_4_to_ucs): Deleted.
5034         (ucs_to_latin_iso8859_4): Deleted.
5035         (latin_iso8859_9_to_ucs): Deleted.
5036         (ucs_to_latin_iso8859_9): Deleted.
5037         (latin_viscii_lower_to_ucs): Deleted.
5038         (ucs_to_latin_viscii_lower): Deleted.
5039         (latin_viscii_upper_to_ucs): Deleted.
5040         (ucs_to_latin_viscii_upper): Deleted.
5041         (struct Lisp_Charset): Renamed `encoding_table' to
5042         `to_byte1_table'; add `to_byte2_table'.
5043         (CHARSET_DECODING_TABLE): New macro.
5044         (CHARSET_TO_BYTE1_TABLE): New macro.
5045         (CHARSET_TO_BYTE2_TABLE): New macro.
5046         (XCHARSET_DECODING_TABLE): New macro.
5047         (XCHARSET_TO_BYTE1_TABLE): New macro.
5048         (XCHARSET_TO_BYTE2_TABLE): New macro.
5049         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5050         tables.
5051         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5052         don't use `ucs_to_*' tables.
5053
5054 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5055
5056         * text-coding.c (Fmake_coding_system): Don't set up
5057         `codesys->fixed.size'.
5058         (encode_coding_no_conversion): Use `if' instead of `switch'.
5059
5060         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5061
5062 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5063
5064         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5065         (Fmake_charset): Modify for `make_charset'.
5066         (Fmake_reverse_direction_charset): Likewise.
5067         (complex_vars_of_mule_charset): Likewise.
5068
5069 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5070
5071         * text-coding.c (char_encode_shift_jis): Use table
5072         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5073
5074 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5075
5076         * text-coding.c (text_encode_generic): Use `if' instead of
5077         `switch'.
5078         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5079         decode JIS-Latin.
5080
5081 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5082
5083         * text-coding.c (encode_coding_sjis): Deleted.
5084         (char_encode_shift_jis): New function.
5085         (char_finish_shift_jis): New function.
5086         (reset_encoding_stream): Set up `encode_char' and `finish' for
5087         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5088         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5089         (char_encode_utf8): Treat `eol_type'.
5090
5091 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5092
5093         * file-coding.c (decode_coding_iso2022): Use
5094         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5095
5096 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5097
5098         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5099         to 0.7 (Hirano).
5100
5101 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5102
5103         * char-lb.h (CHAR_COLUMNS): New macro.
5104
5105 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5106
5107         * text-coding.c (char_encode_ucs4): New function.
5108         (char_finish_ucs4): New function.
5109         (encode_coding_ucs4): Deleted.
5110         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5111         (text_encode_generic): Delete local variable `charset' and `half'.
5112         (ucs_to_mule_table): Deleted.
5113         (mule_to_ucs_table): Deleted.
5114         (Fset_ucs_char): Deleted.
5115         (ucs_to_char): Deleted.
5116         (Fucs_char): Deleted.
5117         (Fset_char_ucs): Deleted.
5118         (Fchar_ucs): Deleted.
5119         (decode_ucs4): Deleted.
5120         (mule_char_to_ucs4): Deleted.
5121         (encode_ucs4): Deleted.
5122         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5123         (decode_coding_utf8): Likewise.
5124         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5125         (char_encode_iso2022): Fixed.
5126         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5127         `Fset_char_ucs' and `Fchar_ucs'.
5128         (complex_vars_of_file_coding): Don't initialize
5129         `ucs_to_mule_table'.
5130
5131         * objects-tty.c (tty_initialize_font_instance): Don't use
5132         `XCHARSET_COLUMNS'.
5133
5134         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5135         UTF-2000.
5136
5137         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5138         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5139
5140         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5141         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5142         (emchar_string_displayed_columns): Likewise.
5143
5144         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5145         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5146         (string_column_at_point): Likewise.
5147         (Fmove_to_column): Likewise.
5148
5149         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5150         `encoding_table' and `decoding_table'.
5151         (CHARSET_REP_BYTES): Deleted.
5152         (XCHARSET_REP_BYTES): Deleted.
5153         (XCHARSET_COLUMNS): Deleted.
5154         (CHAR_COLUMNS): New macro.
5155         (lookup_composite_char): Deleted unconditionally.
5156         (composite_char_string): Likewise.
5157
5158 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5159
5160         * char-ucs.h (Emchar_to_byte_table): New type.
5161         (get_byte_from_character_table): New function interface.
5162         (Vcharset_latin_jisx0201): New variable.
5163         (latin_jisx0201_to_ucs): New variable.
5164         (ucs_to_latin_jisx0201): New variable.
5165         (Vcharset_latin_iso8859_2): New variable.
5166         (latin_iso8859_2_to_ucs): New variable.
5167         (ucs_to_latin_iso8859_2): New variable.
5168         (Vcharset_latin_iso8859_3): New variable.
5169         (latin_iso8859_3_to_ucs): New variable.
5170         (ucs_to_latin_iso8859_3): New variable.
5171         (Vcharset_latin_iso8859_4): New variable.
5172         (latin_iso8859_4_to_ucs): New variable.
5173         (ucs_to_latin_iso8859_4): New variable.
5174         (Vcharset_latin_iso8859_9): New variable.
5175         (latin_iso8859_9_to_ucs): New variable.
5176         (ucs_to_latin_iso8859_9): New variable.
5177         (Vcharset_latin_viscii_lower): New variable.
5178         (latin_viscii_lower_to_ucs): New variable.
5179         (ucs_to_latin_viscii_lower): New variable.
5180         (Vcharset_latin_viscii_upper): New variable.
5181         (latin_viscii_upper_to_ucs): New variable.
5182         (ucs_to_latin_viscii_upper): New variable.
5183         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5184         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5185         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5186         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5187         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5188         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5189         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5190         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5191         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5192         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5193
5194         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5195         (Vcharset_latin_viscii_upper): New variable.
5196         (make_byte_from_character_table): New function.
5197         (put_byte_from_character_table): New function.
5198         (get_byte_from_character_table): New function.
5199         (CHAR96): New macro.
5200         (ucs_to_latin_jisx0201): New variable.
5201         (latin_jisx0201_to_ucs): New variable.
5202         (ucs_to_latin_iso8859_2): New variable.
5203         (latin_iso8859_2_to_ucs): New variable.
5204         (ucs_to_latin_iso8859_3): New variable.
5205         (latin_iso8859_3_to_ucs): New variable.
5206         (ucs_to_latin_iso8859_4): New variable.
5207         (latin_iso8859_4_to_ucs): New variable.
5208         (ucs_to_latin_iso8859_9): New variable.
5209         (latin_iso8859_9_to_ucs): New variable.
5210         (ucs_to_latin_viscii_lower): New variable.
5211         (latin_viscii_lower_to_ucs): New variable.
5212         (ucs_to_latin_viscii_upper): New variable.
5213         (latin_viscii_upper_to_ucs): New variable.
5214         (ucs_to_latin_tcvn5712): New variable.
5215         (latin_tcvn5712_to_ucs): New variable.
5216         (Qlatin_viscii_lower): New variable.
5217         (Qlatin_viscii_upper): New variable.
5218         (syms_of_mule_charset): Set up new symbol
5219         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5220         (complex_vars_of_mule_charset): Set up new charset
5221         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5222         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5223         `ucs_to_<CHARSET>' tables.
5224
5225 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5226
5227         * text-coding.c: New file.
5228
5229 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5230
5231         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5232
5233         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5234         (MAKE_CHAR): Modify for `ucs-bmp'.
5235         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5236         non-MULE characters of BMP.
5237
5238 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5239
5240         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5241         to 0.6.
5242
5243 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5244
5245         * lstream.h:
5246         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5247         - Include character.h for `CHAR_ASCII_P'.
5248
5249         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5250
5251         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5252         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5253
5254         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5255         (BYTE_C0_P): Likewise.
5256         (BYTE_C1_P): Likewise.
5257         (Lstream_get_emchar_1): Likewise.
5258         (Lstream_fput_emchar): Likewise.
5259         (Lstream_funget_emchar): Likewise.
5260         (copy_internal_to_external): Likewise.
5261         (copy_external_to_internal): Likewise.
5262
5263         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5264         (BYTE_C0_P): Likewise.
5265         (BYTE_C1_P): Likewise.
5266         (Lstream_get_emchar_1): Likewise.
5267         (Lstream_fput_emchar): Likewise.
5268         (Lstream_funget_emchar): Likewise.
5269         (copy_internal_to_external): Likewise.
5270         (copy_external_to_internal): Likewise.
5271
5272         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5273         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5274
5275         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5276         (BYTE_ASCII_P): Moved to mb-1byte.h.
5277
5278 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5279
5280         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5281
5282         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5283         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5284         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5285         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5286         (VALIDATE_CHARPTR_FORWARD): Likewise.
5287         (simple_charptr_emchar): Moved to mb-multibyte.h.
5288         (simple_set_charptr_emchar): Likewise.
5289         (simple_charptr_copy_char): Likewise.
5290         (non_ascii_charptr_emchar): Likewise.
5291         (non_ascii_set_charptr_emchar): Likewise.
5292         (non_ascii_charptr_copy_char): Likewise.
5293         (charptr_emchar): Moved to mb-*byte.h.
5294         (set_charptr_emchar): Likewise.
5295         (charptr_copy_char): Likewise.
5296
5297         * mb-1byte.h, mb-multibyte.h: New files.
5298
5299 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5300
5301         * mb-utf-8.h (MULTIBYTE): New macro.
5302         (MAX_EMCHAR_LEN): Moved from buffer.h.
5303         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5304
5305         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5306
5307         * mb-lb.h, multibyte.h: New files.
5308
5309         * char-1byte.h (Charset_ID): Moved from buffer.h.
5310         (MIN_LEADING_BYTE): Likewise.
5311         (LEADING_BYTE_ASCII): Likewise.
5312         (NUM_LEADING_BYTES): Likewise.
5313         (CHARSETP): Likewise.
5314         (CHARSET_BY_LEADING_BYTE): Likewise.
5315         (XCHARSET_LEADING_BYTE): Likewise.
5316         (XCHARSET_GRAPHIC): Likewise.
5317         (XCHARSET_COLUMNS): Likewise.
5318         (XCHARSET_DIMENSION): Likewise.
5319         (CHAR_CHARSET): Likewise.
5320         (CHAR_LEADING_BYTE): Likewise.
5321         (BREAKUP_CHAR): Likewise.
5322         (Vcharset_ascii): Likewise.
5323
5324         * buffer.h: Include multibyte.h unconditionally.
5325         (VALID_CHARPTR_P): Moved to multibyte.h.
5326         (ASSERT_VALID_CHARPTR): Likewise.
5327         (REAL_INC_CHARPTR): Likewise.
5328         (REAL_INC_CHARBYTIND): Likewise.
5329         (REAL_DEC_CHARPTR): Likewise.
5330         (INC_CHARPTR): Likewise.
5331         (INC_CHARBYTIND): Likewise.
5332         (DEC_CHARPTR): Likewise.
5333         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5334         (VALIDATE_CHARPTR_FORWARD): Likewise.
5335         (charptr_n_addr): Likewise.
5336         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5337         (simple_charptr_emchar): Moved to multibyte.h.
5338         (simple_set_charptr_emchar): Likewise.
5339         (simple_charptr_copy_char): Likewise.
5340         (non_ascii_charptr_emchar): Likewise.
5341         (non_ascii_set_charptr_emchar): Likewise.
5342         (non_ascii_charptr_copy_char): Likewise.
5343         (charptr_emchar): Likewise.
5344         (set_charptr_emchar): Likewise.
5345         (charptr_copy_char): Likewise.
5346         (charptr_emchar_n): Likewise.
5347         (Charset_ID): Moved to char-1byte.h.
5348         (Vcharset_ascii): Likewise.
5349         (CHAR_CHARSET): Likewise.
5350         (CHAR_LEADING_BYTE): Likewise.
5351         (LEADING_BYTE_ASCII): Likewise.
5352         (NUM_LEADING_BYTES): Likewise.
5353         (MIN_LEADING_BYTE): Likewise.
5354         (CHARSETP): Likewise.
5355         (CHARSET_BY_LEADING_BYTE): Likewise.
5356         (XCHARSET_LEADING_BYTE): Likewise.
5357         (XCHARSET_GRAPHIC): Likewise.
5358         (XCHARSET_COLUMNS): Likewise.
5359         (XCHARSET_DIMENSION): Likewise.
5360         (BREAKUP_CHAR): Likewise.
5361
5362 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5363
5364         * character.h: Add document about interface for characters.
5365
5366         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5367         (MAKE_CHAR): Delete comment about
5368         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5369         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5370         (BREAKUP_CHAR): Modify name of arguments.
5371         (CHAR_CHARSET): Modify name of argument.
5372
5373         * buffer.h: Delete document about Emchar accessors.
5374
5375 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5376
5377         * character.h (CHAR_INTP): Moved from buffer.h
5378         (CHAR_OR_CHAR_INTP): Likewise.
5379         (XCHAR_OR_CHAR_INT): Likewise.
5380         (CHECK_CHAR_COERCE_INT): Likewise.
5381
5382         * buffer.h (CHAR_INTP): Moved to character.h
5383         (CHAR_OR_CHAR_INTP): Likewise.
5384         (XCHAR_OR_CHAR_INT): Likewise.
5385         (CHECK_CHAR_COERCE_INT): Likewise.
5386
5387 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5388
5389         * character.h:
5390         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5391         - Include char-1byte.h, char-lb.h or char-ucs.h.
5392
5393         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5394
5395         * buffer.h: Include character unconditionally.
5396         (valid_char_p): Moved to char-*.h.
5397         (non_ascii_valid_char_p): Moved to char-lb.h.
5398
5399         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5400
5401 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5402
5403         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5404         in UTF-2000 because it is not ported yet and not to use
5405         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5406         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5407         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5408
5409         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5410         (CHAR_ASCII_P): Moved from character.h.
5411
5412         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5413         (CHAR_ASCII_P): Likewise.
5414         (CHAR_FIELD1_MASK): Deleted.
5415         (CHAR_FIELD2_MASK): Deleted.
5416         (CHAR_FIELD3_MASK): Deleted.
5417         (MAX_CHAR_BASIC_LATIN): New macro.
5418         (CHAR_FIELD1): Deleted.
5419         (CHAR_FIELD2_INTERNAL): Deleted.
5420         (CHAR_FIELD3_INTERNAL): Deleted.
5421         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5422         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5423         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5424         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5425         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5426         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5427         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5428         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5429         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5430         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5431         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5432         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5433         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5434         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5435         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5436         (MIN_CHAR_COMPOSITION): Deleted.
5437         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5438         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5439
5440 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5441
5442         * buffer.h: Include mb-utf-8.h in UTF-2000.
5443
5444         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5445
5446         * mb-utf-8.h: New file.
5447
5448 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5449
5450         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5451         instead of `int'.
5452
5453         * mule-charset.h, buffer.h (Charset_ID): New type.
5454
5455 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5456
5457         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5458         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5459         instead of `MULE_CHAR_PRIVATE_OFFSET',
5460         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5461         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5462         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5463
5464         * character.h (Vcharset_japanese_jisx0212): New variable
5465         definition.
5466
5467 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5468
5469         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5470         (charset_by_attributes): Delete array about direction.
5471         (latin_a_char_to_charset): New variable in UTF-2000.
5472         (latin_a_char_to_byte1): New variable in UTF-2000.
5473         (latin_a_char_to_byte2): New variable in UTF-2000.
5474         (Qucs_bmp): New variable.
5475         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5476         `Bufbyte'.
5477         (next_allocated_2_byte_leading_byte): Likewise.
5478         (non_ascii_set_charptr_emchar): Likewise.
5479         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5480         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5481         `charset_by_attributes'.
5482         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5483         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5484         and `CHARSET_BY_LEADING_BYTE'.
5485         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5486         `utf-2000-version' to `vars_of_mule_charset'.
5487         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5488         define `leading-code-private-11' in UTF-2000; move setting of
5489         `utf-2000-version' from `syms_of_mule_charset'.
5490         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5491         UTF-2000.
5492
5493         * character.h (Charset_ID): New type.
5494         (LEADING_BYTE_UCS_BMP): New macro.
5495         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5496         (CHARSET_ID_OFFSET_94): New macro.
5497         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5498         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5499         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5500         final-byte.
5501         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5502         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5503         (CHARSET_ID_OFFSET_96): New macro.
5504         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5505         CHARSET_ID_OFFSET_96 and final-byte.
5506         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5507         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5508         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5509         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5510         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5511         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5512         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5513         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5514         (LEADING_BYTE_THAI_TIS620): Likewise.
5515         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5516         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5517         (CHARSET_ID_OFFSET_94x94): New macro.
5518         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5519         CHARSET_ID_OFFSET_94x94 and final-byte.
5520         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5521         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5522         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5523         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5524         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5525         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5526         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5527         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5528         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5529         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5530         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5531         (CHARSET_TYPE_128X128): New macro.
5532         (CHARSET_TYPE_256X256): New macro.
5533         (XCHARSET_PRIVATE_P): Delete unconditionally.
5534         (charset_by_attributes): Delete array about direction.
5535         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5536         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5537         (MIN_CHAR_94): New macro.
5538         (MAX_CHAR_94): New macro.
5539         (MIN_CHAR_96): New macro.
5540         (MAX_CHAR_96): New macro.
5541         (MIN_CHAR_94x94): New macro.
5542         (MAX_CHAR_94x94): New macro.
5543         (MIN_CHAR_96x96): New macro.
5544         (MAX_CHAR_96x96): New macro.
5545         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5546         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5547         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5548         - 32)'.
5549         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5550         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5551         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5552         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5553         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5554         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5555         `XCHARSET_LEADING_BYTE' to make code-point.
5556         (latin_a_char_to_charset): New variable.
5557         (latin_a_char_to_byte1): New variable.
5558         (latin_a_char_to_byte2): New variable.
5559         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5560         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5561         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5562
5563         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5564         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5565         (find_charsets_in_emchar_string): Likewise.
5566         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5567
5568         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5569         `int'.
5570         (decode_coding_iso2022): Likewise.
5571
5572         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5573         of `unsigned char'.
5574
5575         * redisplay.c (redisplay_text_width_emchar_string): Use
5576         `Charset_ID' instead of `unsigned char'.
5577         (redisplay_frame_text_width_string): Likewise.
5578
5579         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5580         `unsigned char'.
5581
5582         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5583         instead of `unsigned char'.
5584         (face_cachel_charset_font_metric_info): Likewise.
5585
5586         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5587         (get_non_ascii_char_table_value): Likewise.
5588         (get_char_table): Likewise.
5589         (put_char_table): Likewise.
5590         (map_over_other_charset): Likewise.
5591         (map_char_table): Likewise.
5592
5593         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5594         instead of `unsigned char'.
5595
5596 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5597
5598         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5599         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5600
5601         * mule-charset.c (leading_code_private_11): Don't define in
5602         UTF-2000.
5603
5604         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5605         in UTF-2000 because it is not ported yet and not to use
5606         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5607
5608 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5609
5610         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5611
5612 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5613
5614         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5615         in UTF-2000.
5616
5617         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5618         of unsigned char to store leading-byte.
5619
5620         * chartab.c (get_non_ascii_char_table_value): Don't use
5621         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5622
5623         * file-coding.c (encode_coding_big5): Delete bogus implementation
5624         in UTF2000.
5625
5626         * character.h (LEADING_BYTE_*): Delete definition for
5627         non-UTF-2000.
5628         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5629         (LEADING_BYTE_PREFIX_P): Deleted.
5630         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5631         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5632         (BUFBYTE_LEADING_BYTE_P): Deleted.
5633         (CHARSET_PRIVATE_P): Deleted unconditionally.
5634         (rep_bytes_by_first_byte): Deleted unconditionally.
5635         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5636         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5637         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5638         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5639         (CHAR_FIELD2): Deleted.
5640         (CHAR_FIELD3): Deleted.
5641         (MAKE_CHAR): Delete definition for non-UTF-2000.
5642         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5643         (breakup_char_1): New implementation.
5644         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5645         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5646
5647 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5648
5649         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5650         condition.
5651
5652 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5653
5654         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5655         (CHARSET_PRIVATE_P): Likewise.
5656         (XCHARSET_PRIVATE_P): Likewise.
5657         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5658
5659         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5660         UTF2000.
5661         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5662
5663 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5664
5665         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5666         (NUM_LEADING_BYTES): Changed from 128 to 256.
5667         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5668         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5669         UTF2000.
5670         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5671
5672         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5673         UTF2000.
5674         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5675         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5676         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5677         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5678         (Qchinese_cns11643_3): New variable in UTF2000.
5679         (Qchinese_cns11643_4): New variable in UTF2000.
5680         (Qchinese_cns11643_5): New variable in UTF2000.
5681         (Qchinese_cns11643_6): New variable in UTF2000.
5682         (Qchinese_cns11643_7): New variable in UTF2000.
5683         (syms_of_mule_charset): Define `chinese-cns11643-3',
5684         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5685         and `chinese-cns11643-7' in UTF2000.
5686         (vars_of_mule_charset): Initialize
5687         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5688         + 1 in UTF2000.
5689         (complex_vars_of_mule_charset): Setup charset
5690         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5691         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5692
5693 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5694
5695         * mule-charset.c: Move setting for `leading-code-private-11' from
5696         `syms_of_mule_charset' to `vars_of_mule_charset'.
5697
5698 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5699
5700         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5701         and `NUM_LEADING_BYTES' in assert.
5702
5703 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5704
5705         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5706         instead of 128.
5707         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5708         `NUM_LEADING_BYTES' instead of 128.
5709
5710 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5711
5712         * mule-charset.h (charset_by_leading_byte): Use
5713         `NUM_LEADING_BYTES' instead of 128.
5714         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5715
5716         * mule-charset.c (charset_by_leading_byte): Use
5717         `NUM_LEADING_BYTES' instead of 128.
5718         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5719
5720         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5721         128.
5722
5723 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5724
5725         * mule-charset.c (syms_of_mule_charset): Update to
5726         0.4 (Shin-Imamiya).
5727
5728 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5729
5730         * file-coding.c (encode_coding_sjis): New implementation for
5731         UTF2000.  (decode_coding_sjis): Ditto.
5732
5733 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5734
5735         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5736         Don't define in UTF2000.
5737
5738         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5739         defined.
5740
5741         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5742         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5743         MULE.
5744
5745 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5746
5747         * config.h.in (CHAR_IS_UCS4): New macro.
5748
5749         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5750         conventional MULE representation.
5751         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5752
5753         * mule-charset.h: Reverted to original.
5754
5755         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5756         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5757         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5758
5759         * character.h: New file.
5760
5761         * file-coding.c (Fmake_coding_system): Set 1 to
5762         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5763         defined.
5764         (encode_coding_no_conversion): New implementation for UTF2000.
5765
5766         * file-coding.h (struct Lisp_Coding_System): Add new member
5767         `fixed.size'.
5768
5769 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5770
5771         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5772         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5773         (encode_coding_iso2022): New implementation for UTF2000.
5774
5775 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5776
5777         * mule-canna.c (c2mu): New implementation for UTF2000.
5778         (m2c): Likewise.
5779
5780 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5781
5782         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5783
5784 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5785
5786         * file-coding.c (reset_encoding_stream): Set 0 to
5787         `str->iso2022.current_char_boundary' in UTF2000.
5788         (encode_utf8): Don't define in UTF2000.
5789         (encode_coding_utf8): New implementation for UTF-8 representation
5790         of UTF2000.
5791         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5792
5793 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5794
5795         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5796
5797         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5798         UTF2000.
5799         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5800
5801         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5802
5803         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5804         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5805         as UTF-8 in UTF2000.
5806         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5807         (non_ascii_valid_char_p): Don't define in UTF2000.
5808         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5809         (Lstream_get_emchar_1): Likewise.
5810         (utf-2000-version): New variable in UTF2000.
5811
5812         * lread.c (read_escape): Add new reader `u'.
5813
5814         * insdel.c (three_to_one_table): Don't define in UTF2000.
5815         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5816         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5817         UTF2000.
5818         (bytind_to_bufpos_func): Likewise.
5819         (buffer_mule_signal_inserted_region): Likewise.
5820         (vars_of_insdel): Don't initialize `three_to_one_table'.
5821         (init_buffer_text): Use `buf->text->mule_size' instead of
5822         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5823         UTF2000.
5824
5825         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5826         UTF-8 representation in UTF2000.
5827         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5828         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5829         (decode_coding_iso2022): Don't define local variable `lb' in
5830         UTF2000; don't use LEADING_BYTE in UTF2000; use
5831         `DECODE_ADD_UCS_CHAR' in UTF2000.
5832         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5833
5834         * config.h.in (UTF2000): New macro.
5835
5836         * buffer.h (struct buffer_text): Add new member `mule_size' and
5837         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5838         (valid_char_p): Return always 1 in UTF2000.
5839         (MAX_EMCHAR_LEN): 6 in UTF2000.
5840         (three_to_one_table): Don't define in UTF2000.
5841         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5842         UTF2000.
5843         (real_bytind_to_bufpos): Likewise.
5844
5845         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5846
5847 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5848
5849         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5850         representation change.
5851         (Vutf_2000_version): New variable.
5852         (leading_code_private_11): New variable.
5853         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5854         `leading-code-private-11'.
5855
5856         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5857         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5858         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5859         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5860         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5861         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5862         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5863         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5864         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5865         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5866         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5867         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5868         (MIN_CHAR_GREEK): New macro.
5869         (MAX_CHAR_GREEK): New macro.
5870         (MIN_CHAR_CYRILLIC): New macro.
5871         (MAX_CHAR_CYRILLIC): New macro.
5872         (MIN_CHAR_HEBREW): New macro.
5873         (MAX_CHAR_HEBREW): New macro.
5874         (MIN_CHAR_THAI): New macro.
5875         (MAX_CHAR_THAI): New macro.
5876         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5877         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5878         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5879         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5880         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5881         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5882         (CHAR_FIELD2): New inline function.
5883         (CHAR_FIELD3): New inline function.
5884         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5885         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5886         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5887         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5888         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5889         (MIN_CHAR_COMPOSITION): Likewise.
5890         (CHAR_LEADING_BYTE): Modified for character representation change.
5891         (MAKE_CHAR): Likewise.
5892
5893         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5894         (Vcharset_greek_iso8859_7): Likewise.
5895         (Vcharset_cyrillic_iso8859_5): Likewise.
5896         (Vcharset_hebrew_iso8859_8): Likewise.
5897         (Vcharset_thai_tis620): Likewise.
5898         (Vcharset_katakana_jisx0201): Likewise.
5899
5900 2006-12-09  Vin Shelton  <acs@xemacs.org>
5901
5902         * XEmacs 21.4.20 is released
5903
5904 2006-12-08  Nelson Ferreira  <njsf@sxemacs.org>
5905
5906         * src/fns.c (XMALLOC_OR_ALLOCA,free_malloced_ptr,XMALLOC_UNBIND):
5907         relocated the definitions to be used sooner in file.
5908         (concat,plists_differ,mapcar1,Fmapconcat,Fmapcar): Use
5909         XMALLOC_OR_ALLOCA macro instead of alloca to prevent stack
5910         overflow.
5911
5912 2006-11-29  Aidan Kehoe  <kehoea@parhasard.net>
5913
5914         * sound.c (init_native_sound):
5915         Only X11 and GTK devices can possibly not be on the console of the
5916         associated machine. Fixes a crash when init_native_sound is called
5917         on a msprinter device. 
5918
5919 2006-11-14  Stephen J. Turnbull  <stephen@xemacs.org>
5920
5921         * buffer.c (buffer-file-name): Document invariant.
5922         (buffer-file-truename): Sync wording to buffer-file-name.
5923         Thanks to Nelson Ferreira <nelson.ferreira@ieee.org> for report
5924         and discussion.
5925
5926 2006-11-19  Benson Margulies  <benson@dchbk.us>
5927
5928         * fileio.c: Add code to use full Win32 API to check for write
5929         access.  Win32 has the general design policy that you aren't
5930         supposed to ask this question, since security checks change
5931         depending on asynchronous processes.  Nonetheless, there is a way,
5932         by acting as if we are a server doing interpretive access
5933         control.
5934
5935 2006-07-31  Aidan Kehoe <kehoea@parhasard.net>
5936
5937         * bytecode.c: Use xnew_array instead of alloca.
5938
5939 2006-07-04  Vin Shelton  <acs@xemacs.org>
5940
5941         * redisplay-msw.c: Fix tiny, but crucial typo.
5942
5943 2006-06-22  Jerry James  <james@xemacs.org>
5944
5945         * EmacsShell-sub.c (ChangeManaged):
5946         * device-x.c (x_IO_error_handler): Do not dereference d if it is
5947         NULL.
5948         * dgif_lib.c (DGifCloseFile): Do not dereference GifFile before
5949         checking if it is NULL.  Also fix a memory leak.
5950         * dialog-x.c (dbox_selection_callback): Ensure f is non-NULL, then
5951         dereference it, not the other way around.
5952         * dumper.c (pdump_register_object): Fix off-by-one array bounds
5953         overflow check.
5954         * dumper.c (pdump_register_struct): Ditto.
5955         * editfns.c (Ftemp_directory): Don't let a copy from (long) path
5956         to (short) warnpath overflow warnpath.
5957         * extents.c (detach_all_extents): Call extent_list_delete_all with
5958         a non-NULL parameter only.
5959         * glyphs-widget.c (widget_query_geometry): Guard against possibly
5960         NULL width and height.
5961         * input-method-xlib.c (XIM_SetGeometry): Do not dereference f or
5962         xic before checking if they are NULL.
5963         * keymap.c (where_is_recursive_mapper): Don't throw away the newly
5964         allocated array.
5965         * md5.c (Fmd5): Check whether Lstream_read encountered an error.
5966         * nas.c (Err): Fix a memory leak.
5967         * redisplay-gtk.c (gtk_output_display_block): Fix a Dynarr leak.
5968         Don't create the buffer if there is nothing to do.
5969         * redisplay-msw.c (mswindows_output_display_block): Ditto.
5970         * redisplay-output.c (redisplay_output_layout): Ditto.
5971         * redisplay-tty.c (tty_output_display_block): Ditto.
5972         * redisplay-x.c (x_output_display_block): Ditto.
5973         * scrollbar-gtk.c (gtk_free_scrollbar_instance): Do not
5974         dereference instance->scrollbar_data if it is NULL.
5975         * scrollbar-x.c (x_free_scrollbar_instance): Ditto.
5976         * scrollbar-msw.c (mswindows_free_scrollbar_instance): Ditto, but
5977         for sb->scrollbar_data.
5978         * sound.c (init_native_sound): Avoid a buffer overflow by
5979         allocating a buffer with the appropriate size.
5980
5981 2006-05-08  Stephen J. Turnbull  <stephen@xemacs.org>
5982
5983         * EmacsShell-sub.c (RootGeometryManager):
5984         Change garbage to useful messages under DEBUG_GEOMETRY_MANAGEMENT.
5985         Based on a suggestion by Francois L'Archeveque.
5986
5987 2006-03-21  Malcolm Purvis  <malcolmp@xemacs.org>
5988
5989         * regex.c: Bump INIT_FAILURE_ALLOC and re_max_failures to the
5990         current values found in GNU Emacs.
5991
5992 2006-03-17  Vin Shelton  <acs@xemacs.org>
5993
5994         * dialog-msw.c (handle_directory_dialog_box): Don't declare
5995         Q_title here.  LOCAL_FILE_FORMAT_TO_TSTR requires an lvalue.
5996
5997         * glyphs-msw.c (read_bitmap_data): change 'initialized' to
5998         'hex_initialized' because it conflicts with 'initialized' in
5999         lisp.h.
6000
6001 2006-01-28  Vin Shelton  <acs@xemacs.org>
6002
6003         * XEmacs 21.4.19 is released
6004
6005 2006-01-20  Rick Rankin <rrankin1424-xemacs@yahoo.com>
6006
6007         * sysdir.h: Workaround missing d_ino field from 'struct dirent'.
6008
6009 2005-12-24  Aidan Kehoe  <kehoea@parhasard.net>
6010
6011         * objects-gtk.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from
6012         5000 to INT_MAX.
6013
6014 2005-12-05  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6015
6016         * database.c: Suppress compiler warning under Cygwin.
6017         * database.c: Removed __FreeBSD__ check, should be handled by
6018         HAVE_U_xxx_T defines.
6019
6020 2005-12-18  Malcolm Purvis  <malcolmp@xemacs.org>
6021
6022         * console.c (stuff_buffered_input): Compile body only if
6023         HAVE_TTY.
6024
6025 2005-05-10  Aidan Kehoe  <kehoea@parhasard.net>
6026
6027         * callproc.c: #include sysdir.h, so that any appropriate Mule
6028         magic happens with the chdir() call when calling a subprocess. 
6029
6030 2005-12-06  Aidan Kehoe  <kehoea@parhasard.net>
6031
6032         * mule-ccl.c (POSSIBLE_LEADING_BYTE_P): Add.
6033         * mule-ccl.c: Check that a character set exists before using it
6034         to create a character. 
6035
6036 2005-12-06  Vin Shelton  <acs@xemacs.org>
6037
6038         * objects-x.c (MAX_FONT_COUNT): Increase MAX_FONT_COUNT from 5000
6039         to INT_MAX.
6040
6041 2005-12-03  Vin Shelton <acs@xemacs.org>
6042
6043         * XEmacs 21.4.18 is released
6044
6045 2005-11-27  Kean Johnston <kean@armory.com>
6046
6047         * redisplay-tty.c (set_tty_modes):
6048         (reset_tty_modes): disable auto-margins if the terminal supports
6049         them.
6050         (init_tty_for_redisplay): fix cursor shape.
6051
6052 2005-04-05  Aidan Kehoe  <kehoea@parhasard.net>
6053
6054         * mule-ccl.c (ccl_driver): Calculate the charset and position code
6055         for control-1 characters properly, both when reading multibyte
6056         characters and writing them. 
6057
6058 2005-03-12  Aidan Kehoe  <kehoea@parhasard.net>
6059
6060         * config.h.in: Make HAVE_XTREGISTERDRAWABLE available. 
6061         * select-x.c (x_reply_selection_request): Use it; fix the bug we
6062         were seeing with incremental selection transfer failing. 
6063
6064 2005-11-26  Vin Shelton  <acs@xemacs.org>
6065
6066         * callproc.c (Fold_call_process_internal): Create the buffer if it
6067         does not already exist.  The original patch came from Ben Wing in
6068         http://list-archive.xemacs.org/xemacs-patches/200205/msg00117.html
6069
6070 2002-05-13  Adrian Aichner  <adrian@xemacs.org>
6071
6072         * callproc.c: Process-related docstring improvements spurred by
6073         Norbert Koch.
6074
6075 2005-11-25  Vin Shelton  <acs@xemacs.org>
6076
6077         * depend: Regenerated.
6078
6079 2005-07-11  Malcolm Purvis  <malcolmp@xemacs.org>
6080
6081         * glyphs-gtk.c:  Rename a local static variable because gcc 4.0
6082         says it clashes with a global with the same name.
6083
6084 2005-07-11  Atanu Ghosh <atanu@icsi.berkeley.edu>
6085
6086         * sysdll.c (dll_open): Under MacOS X return NULL under the
6087         filename is NULL.  Fixes problems finding local symbols under 10.4
6088         (Tiger)
6089
6090 2005-11-15  Dr. Volker Zell  <Dr.Volker.Zell@oracle.com>
6091         
6092         * config.h.in: New HAVE_U_INT*_T defines.
6093         
6094         * database.c: Only use u_int*_t typedefs if not already
6095         defined.
6096
6097 2005-04-07 15:08  Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
6098
6099         * src/process-unix.c (unix_open_network_stream): moved
6100           'portbuf' buffer out of an inner block as it is used in the
6101           entire function. With gcc4, the stack may get corrupted
6102           after leaving this block. This patches adjusts the size of
6103           the used buffer also; static '128' bytes are far too much
6104           currently and might not suffice for future architectures
6105           (e.g. for 512 bit ones ;)). Instead of, use only the really
6106           required space (max octets * ln(256)/ln(10) chars + space
6107           for '\0' and the sign)
6108
6109 2005-04-08  Aidan Kehoe  <kehoea@parhasard.net>
6110
6111         * callproc.c: Include sysdir.h, so any necessary Mule processing
6112         is done on the current directory name before starting a new
6113         process.
6114
6115 2005-04-06  Stephen J. Turnbull  <stephen@xemacs.org>
6116
6117         * chartab.c (Fchar_table_p):
6118         (Fget_range_char_table):
6119         (Fput_char_table):
6120         (Fmap_char_table):
6121         Describe range representation and fix typo.
6122
6123 2005-02-12  Vin Shelton  <acs@xemacs.org>
6124
6125         * emacs.c (shut_down_emacs): Advise users to send email to the
6126         xemacs-beta list instead of crashes@xemacs.org.
6127
6128 2005-02-03  David Evers  <extsw@appliedgenerics.com>
6129
6130         * process-unix.c (unix_send_process): Flush the last chunk, even
6131         when the pipe is blocked.
6132
6133 2005-02-06  Vin Shelton <acs@xemacs.org>
6134
6135         * XEmacs 21.4.17 is released
6136
6137 2005-01-31  Ben Wing  <ben@xemacs.org>
6138
6139         * emacs.c:
6140         Define assert_failed() always.
6141         * lisp.h:
6142         Always define ABORT().
6143
6144 2005-01-25  Ben Wing  <ben@xemacs.org>
6145
6146         * Makefile.in.in:
6147         * Makefile.in.in (%.o):
6148         Don't compile executable as Windows (-mwindows) under Cygwin.
6149         Semi-recent changes to Cygwin's executable-startup handling make
6150         it impossible to access the TTY this way.
6151
6152         Don't use special linker file under Cygwin (cygwin.sc) except
6153         when non-PDUMP (even in this case it is highly questionable); you
6154         get errors like
6155
6156       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
6157    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
6158
6159 2005-01-29  Ben Wing  <ben@xemacs.org>
6160
6161         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
6162
6163         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
6164
6165 2005-01-29  Ben Wing  <ben@xemacs.org>
6166
6167         * bytecode.c (optimize_compiled_function):
6168         * print.c (FROB):
6169         * print.c (long_to_string):
6170         Add casts to avoid warning.
6171         
6172         * glyphs-eimage.c:
6173         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
6174         #### The better solution is to move the TIFF and JPEG code to
6175         different files.
6176         
6177         * glyphs-msw.c (mswindows_xbm_instantiate):
6178         Define __STDC__ to avoid problems with compface.h.
6179         
6180         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
6181         * EmacsShell-sub.c:
6182         * EmacsShell-sub.c (ABORT):
6183         * EmacsShell-sub.c (SuperClassRootGeometryManager):
6184         * EmacsShell-sub.c (RootGeometryManager):
6185         * EmacsShell.c:
6186         * EmacsShell.c (ABORT):
6187         * EmacsShell.c (EmacsShellUpdateSizeHints):
6188         * alloc.c (free_lcrecord):
6189         * alloca.c (i00afunc):
6190         * buffer.c (delete_from_buffer_alist):
6191         * buffer.c (MARKED_SLOT):
6192         * bytecode.c (execute_rare_opcode):
6193         * bytecode.c (optimize_byte_code):
6194         * bytecode.c (Ffetch_bytecode):
6195         * chartab.c (char_table_type_to_symbol):
6196         * chartab.c (Freset_char_table):
6197         * chartab.c (decode_char_table_range):
6198         * chartab.c (Fget_range_char_table):
6199         * chartab.c (check_valid_char_table_value):
6200         * chartab.c (map_char_table):
6201         * chartab.c (slow_map_char_table_fun):
6202         * chartab.c (chartab_instantiate):
6203         * cm.c (cmcheckmagic):
6204         * console-msw.c (DHEADER):
6205         * console.c (MARKED_SLOT):
6206         * data.c (finish_marking_weak_lists):
6207         * data.c (encode_weak_list_type):
6208         * debug.h (DASSERT):
6209         * device-gtk.c (gtk_init_device):
6210         * device-msw.c (mswindows_get_default_margin):
6211         * device-tty.c (tty_init_device):
6212         * device-x.c (get_device_from_display):
6213         * device-x.c (x_get_visual_depth):
6214         * doprnt.c (parse_doprnt_spec):
6215         * doprnt.c (get_doprnt_args):
6216         * dumper.c (pdump_get_indirect_count):
6217         * dumper.c (pdump_register_sub):
6218         * dumper.c (pdump_register_object):
6219         * dumper.c (pdump_register_struct):
6220         * dumper.c (pdump_dump_data):
6221         * dumper.c (pdump_reloc_one):
6222         * elhash.c (print_hash_table):
6223         * elhash.c (make_standard_lisp_hash_table):
6224         * elhash.c (hash_table_instantiate):
6225         * emacs.c:
6226         * emacs.c (Fforce_debugging_signal):
6227         * emacs.c (sort_args):
6228         * emacs.c (main):
6229         * emacs.c (assert_failed):
6230         * eval.c (throw_or_bomb_out):
6231         * eval.c (signal_1):
6232         * eval.c (Fsignal):
6233         * event-Xt.c:
6234         * event-Xt.c (emacs_Xt_mapping_action):
6235         * event-Xt.c (Xt_process_to_emacs_event):
6236         * event-msw.c:
6237         * event-stream.c (check_event_stream_ok):
6238         * event-stream.c (Fadd_timeout):
6239         * event-stream.c (Fadd_async_timeout):
6240         * event-stream.c (Fdiscard_input):
6241         * event-stream.c (execute_internal_event):
6242         * event-stream.c (Frecent_keys):
6243         * event-stream.c (extract_this_command_keys_nth_mouse_event):
6244         * event-stream.c (lookup_command_event):
6245         * event-unixoid.c (poll_fds_for_input):
6246         * events.c:
6247         * events.c (mark_event):
6248         * events.c (event_equal):
6249         * events.c (event_hash):
6250         * events.c (Fmake_event):
6251         * events.c (Fdeallocate_event):
6252         * events.c (event_chain_find_previous):
6253         * events.c (event_to_character):
6254         * events.c (format_event_object):
6255         * events.c (Fevent_type):
6256         * events.c (event_pixel_translation):
6257         * events.c (Fevent_properties):
6258         * extents.c (extent_in_region_p):
6259         * extents.c (print_extent):
6260         * extents.c (process_extents_for_insertion_mapper):
6261         * extents.c (report_extent_modification_mapper):
6262         * extents.c (glyph_layout_to_symbol):
6263         * faces.c (face_validate):
6264         * file-coding.c (eol_type_to_symbol):
6265         * file-coding.c (subsidiary_coding_system):
6266         * file-coding.c (Fcoding_system_type):
6267         * file-coding.c (Fcoding_system_property):
6268         * file-coding.c (mule_decode):
6269         * file-coding.c (mule_encode):
6270         * file-coding.c (encode_coding_ucs4):
6271         * file-coding.c (encode_coding_utf8):
6272         * file-coding.c (parse_iso2022_esc):
6273         * file-coding.c (encode_coding_iso2022):
6274         * fileio.c:
6275         * fns.c (concat):
6276         * fns.c (Fsubseq):
6277         * fns.c (mapcar1):
6278         * fns.c (Fbase64_encode_region):
6279         * fns.c (Fbase64_encode_string):
6280         * fns.c (Fbase64_decode_region):
6281         * fns.c (Fbase64_decode_string):
6282         * font-lock.c (find_context):
6283         * font-lock.c (context_to_symbol):
6284         * frame-gtk.c (gtk_set_frame_pointer):
6285         * frame-gtk.c (gtk_update_frame_external_traits):
6286         * frame-x.c (x_wm_mark_shell_size_user_specified):
6287         * frame-x.c (x_wm_mark_shell_position_user_specified):
6288         * frame-x.c (x_wm_set_shell_iconic_p):
6289         * frame-x.c (x_wm_set_cell_size):
6290         * frame-x.c (x_wm_set_variable_size):
6291         * frame-x.c (x_wm_store_class_hints):
6292         * frame-x.c (x_wm_maybe_store_wm_command):
6293         * frame-x.c (x_initialize_frame_size):
6294         * frame-x.c (x_update_frame_external_traits):
6295         * frame.c:
6296         * frame.c (delete_frame_internal):
6297         * frame.c (mouse_pixel_position_1):
6298         * frame.c (change_frame_size_1):
6299         * free-hook.c (check_free):
6300         * free-hook.c (check_realloc):
6301         * free-hook.c (note_block_input):
6302         * free-hook.c (log_gcpro):
6303         * gccache-gtk.c (gc_cache_lookup):
6304         * glyphs-eimage.c (tiff_memory_write):
6305         * glyphs-gtk.c (gtk_finalize_image_instance):
6306         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6307         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6308         * glyphs-gtk.c (gtk_xpm_instantiate):
6309         * glyphs-gtk.c (gtk_unmap_subwindow):
6310         * glyphs-gtk.c (gtk_map_subwindow):
6311         * glyphs-gtk.c (gtk_button_redisplay):
6312         * glyphs-msw.c:
6313         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6314         * glyphs-x.c (init_image_instance_from_xbm_inline):
6315         * glyphs-x.c (extract_xpm_color_names):
6316         * glyphs-x.c (x_xpm_instantiate):
6317         * glyphs.c (get_image_instantiator_governing_domain):
6318         * glyphs.c (print_image_instance):
6319         * glyphs.c (image_instance_equal):
6320         * glyphs.c (image_instance_hash):
6321         * glyphs.c (encode_image_instance_type):
6322         * glyphs.c (make_image_instance_1):
6323         * glyphs.c (inherit_instantiate):
6324         * glyphs.c (image_instantiate):
6325         * glyphs.c (allocate_glyph):
6326         * glyphs.c (Fglyph_type):
6327         * glyphs.c (redisplay_subwindow):
6328         * glyphs.c (display_table_entry):
6329         * gtk-glue.c (xemacs_list_to_gtklist):
6330         * gtk-glue.c (xemacs_gtklist_to_list):
6331         * gtk-glue.c (xemacs_list_to_array):
6332         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6333         * gutter.c (gutter_was_visible):
6334         * gutter.c (get_gutter_coords):
6335         * input-method-xlib.c (get_XIM_input):
6336         * insdel.c (bufpos_to_bytind_func):
6337         * insdel.c (bytind_to_bufpos_func):
6338         * insdel.c (move_gap):
6339         * intl.c (x_get_composed_input):
6340         * keymap.c (keymap_lookup_directly):
6341         * keymap.c (keymap_delete_inverse_internal):
6342         * keymap.c (ensure_meta_prefix_char_keymapp):
6343         * keymap.c (accessible_keymaps_mapper_1):
6344         * keymap.c (where_is_recursive_mapper):
6345         * lisp.h:
6346         * lisp.h (ABORT):
6347         * lread.c (read_atom):
6348         * lstream.c (Lstream_delete):
6349         * lstream.c (make_lisp_buffer_stream_1):
6350         * macros.c (pop_kbd_macro_event):
6351         * malloc.c (malloc):
6352         * malloc.c (free):
6353         * marker.c (bi_marker_position):
6354         * marker.c (set_bi_marker_position):
6355         * menubar-gtk.c (menu_descriptor_to_widget_1):
6356         * menubar-msw.c (prune_menubar):
6357         * menubar-x.c (set_frame_menubar):
6358         * mule-charset.c (get_unallocated_leading_byte):
6359         * mule-charset.h (CHAR_LEADING_BYTE):
6360         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6361         * nt.c (init_environment):
6362         * nt.c (generate_inode_val):
6363         * ntproc.c (delete_child):
6364         * ntproc.c (_sys_read_ahead):
6365         * ntproc.c (create_child):
6366         * objects.c (color_instantiate):
6367         * objects.c (font_instantiate):
6368         * objects.c (face_boolean_instantiate):
6369         * print.c (printing_major_badness):
6370         * process-nt.c (nt_send_process):
6371         * process-unix.c (unix_send_process):
6372         * process.c (get_process):
6373         * ralloc.c (obtain):
6374         * ralloc.c (relinquish):
6375         * ralloc.c (relocate_blocs):
6376         * ralloc.c (resize_bloc):
6377         * ralloc.c (r_alloc_free):
6378         * ralloc.c (r_re_alloc):
6379         * ralloc.c (r_alloc_thaw):
6380         * ralloc.c (init_ralloc):
6381         * ralloc.c (Free_Addr_Block):
6382         * ralloc.c (r_alloc):
6383         * redisplay-gtk.c (gtk_output_display_block):
6384         * redisplay-msw.c (mswindows_output_display_block):
6385         * redisplay-output.c (get_next_display_block):
6386         * redisplay-output.c (get_cursor_size_and_location):
6387         * redisplay-output.c (redisplay_output_layout):
6388         * redisplay-output.c (redisplay_clear_region):
6389         * redisplay-tty.c (tty_output_display_block):
6390         * redisplay-x.c (x_output_display_block):
6391         * redisplay.c (add_propagation_runes):
6392         * redisplay.c (add_glyph_rune):
6393         * redisplay.c (create_text_block):
6394         * redisplay.c (add_margin_runes):
6395         * redisplay.c (create_left_glyph_block):
6396         * redisplay.c (create_right_glyph_block):
6397         * redisplay.c (create_string_text_block):
6398         * redisplay.c (regenerate_window):
6399         * redisplay.c (REGEN_INC_FIND_START_END):
6400         * redisplay.c (redisplay_frame):
6401         * redisplay.c (point_in_line_start_cache):
6402         * regex.c:
6403         * regex.c (ABORT):
6404         * regex.c (re_compile_fastmap):
6405         * regex.c (re_match_2_internal):
6406         * regex.c (regerror):
6407         * scrollbar-gtk.c (gtk_scrollbar_loop):
6408         * scrollbar-gtk.c (scrollbar_cb):
6409         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6410         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6411         * scrollbar-x.c (x_update_scrollbar_instance_status):
6412         * scrollbar-x.c (x_scrollbar_loop):
6413         * scrollbar-x.c (x_update_frame_scrollbars):
6414         * search.c (search_command):
6415         * search.c (Fmatch_data):
6416         * select-x.c (motif_clipboard_cb):
6417         * signal.c (interrupt_signal):
6418         * specifier.c (specifier_add_spec):
6419         * specifier.c (specifier_instance_from_inst_list):
6420         * specifier.c (specifier_instance):
6421         * specifier.h:
6422         * specifier.h (struct specifier_methods):
6423         * strftime.c (add_num_time_t):
6424         * sunplay.c (init_device):
6425         * symbols.c (Fsetplist):
6426         * symbols.c (do_symval_forwarding):
6427         * symbols.c (store_symval_forwarding):
6428         * symbols.c (Fset):
6429         * symbols.c (Fbuilt_in_variable_type):
6430         * symbols.c (decode_magic_handler_type):
6431         * symbols.c (handler_type_from_function_symbol):
6432         * syntax.c (update_syntax_cache):
6433         * sysdep.c (init_baud_rate):
6434         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6435         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6436         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6437         * toolbar.c (get_toolbar_coords):
6438         * ui-gtk.c (build_gtk_boxed):
6439         * ui-gtk.c (describe_gtk_arg):
6440         * ui-gtk.c (gtk_type_to_lisp):
6441         * ui-gtk.c (lisp_to_gtk_type):
6442         * ui-gtk.c (lisp_to_gtk_ret_type):
6443         * ui-gtk.c (lisp_to_flag):
6444         * unexnt.c (read_in_bss):
6445         * unexnt.c (map_in_heap):
6446         * window.c (real_window):
6447         * window.c (window_display_lines):
6448         * window.c (window_display_buffer):
6449         * window.c (set_window_display_buffer):
6450         * window.c (window_modeline_height):
6451         * window.c (unshow_buffer):
6452         * window.c (window_loop):
6453         * window.c (Fget_lru_window):
6454         * window.c (Fsplit_window):
6455         * window.c (Fset_window_configuration):
6456         * window.c (saved_window_index):
6457         * xgccache.c (gc_cache_lookup):
6458         abort() -> ABORT().  Eliminate preprocessor games with abort()
6459         since it creates huge problems in VC7, solvable only by including
6460         massive amounts of files in every compile (and not worth it).
6461
6462         * sysdep.c:
6463         * sysproc.h:
6464         Inclusion of process.h does not need to be before lisp.h any more.
6465         Move later and remove comment about abort().
6466
6467 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6468
6469         * regex.c (re_match_2_internal):
6470         Correctly initialize loop which clears uninitialized registers.
6471
6472 2005-01-28  Vin Shelton  <acs@xemacs.org>
6473
6474         * sheap.c (more_static_core): Applied Ben's version of the long
6475         string patch.
6476
6477 2005-01-24  Vin Shelton  <acs@xemacs.org>
6478
6479         * sheap.c (more_static_core): Reformatted printf string so
6480         gcc-3.3.3 will compile this on Cygwin.
6481
6482 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6483
6484         * console.c (function_key_map): Reference `key-binding'.
6485
6486         * keymap.c (Vkey_translation_map): Improve docstring.
6487
6488 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6489
6490         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6491         * window.c (window_loop): [fix] Take into account
6492         `allow-deletion-of-last-visible-frame' variable.
6493         * window.c (replace-buffer-in-windows): Ditto.
6494
6495 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6496
6497         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6498
6499 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6500
6501         * event-gtk.c: Recognise AltGr as a valid modifier.
6502
6503 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6504
6505         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6506
6507 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6508
6509         Fix backreference bug caught by test suite.
6510
6511         * regex.c (regex_compile):
6512         Make backref duplicate internal register.
6513
6514 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6515
6516         Documentation, code clarification, and warning suppression.
6517         
6518         * regex.c (regex_compile):
6519         Improve comments.
6520         (re_match_2_internal):
6521         Improve comments and avoid redundant braces.  [Most of the big hunk
6522         at l. 4710 is indentation; use diff -w to see the real changes.]
6523         (alt_match_null_string_p):
6524         (common_op_match_null_string_p):
6525         Avoid shadowing global on Mac OS X 10.4, at least.
6526
6527 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6528
6529         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6530         introduced with shy groups fix).  [Already applied, probably
6531         with the second "fix shy groups" patch of 2004-10-07.] 
6532
6533 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6534
6535         From Andrey Slusar <anrays@gmail.com>:
6536
6537         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6538
6539 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6540
6541         * Makefile (RECURSIVE_MAKE): Removed.
6542         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6543         handling parallel builds.
6544
6545 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6546
6547         * Makefile.in.in: Enable support for parallel builds.
6548
6549 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6550
6551         From Andrey Slusar <anrays@gmail.com>:
6552
6553         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6554         FreeBSD version is >= 199701 _and_ < 600006.
6555
6556 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6557
6558         * scrollbar.c (compute_scrollbar_instance_usage):
6559         Only call device method compute_scrollbar_instance_usage() if it
6560         is defined.
6561
6562 2004-12-05  Vin Shelton <acs@xemacs.org>
6563
6564         * XEmacs 21.4.16 is released
6565
6566 2004-12-04  Vin Shelton  <acs@xemacs.org>
6567
6568         * depend: Regenerated.
6569
6570 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6571
6572         * regex.c (re_match_2_internal): Map internal to external
6573         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6574         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6575
6576 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6577
6578         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6579         to fix a crash.  Also, check the buffer is live and it
6580         really exists in buffer_list.  If the buffer is not in the list,
6581         prepend it.
6582
6583 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6584
6585         Fix shy groups by implementing recording of all groups for
6586         repetition and backtracking.  Backport from 21.5.
6587         
6588         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6589         external_to_internal_register, external_to_internal_register_size,
6590         and update comments for re_nsub.
6591
6592         * regex.c (re_opcode_t): Update comments.
6593         (print_compiled_pattern): Ouput external_to_internal_register,
6594         external_to_internal_register_size, and re_ngroups for debugging.
6595         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6596         (regex_compile): Update header comment.
6597         Ensure that all groups are recorded so that repeat matches and
6598         backtracking work correctly.  Comment related warning for groups >
6599         255.
6600         (re_search_2): Construct map of API indexes (which count only
6601         nonshy groups) to internal register numbers, and keep it updated.
6602
6603 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6604
6605         * frame-gtk.c (gtk_make_frame_visible):
6606         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6607         show/hide.  This is what X uses and is prevents previously hidden
6608         widgets from suddenly reappearing.
6609         * gtk-xemacs.c (gtk_xemacs_paint):
6610         * gtk-xemacs.c (gtk_xemacs_draw):
6611         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6612         drawable.
6613         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6614         size and location changes so that they can be seen before the next
6615         idle event.  Without this rapid changes to scrollbar properties
6616         are not seen.
6617
6618 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6619
6620         * console-gtk.h:
6621         * console-gtk.h (struct gtk_frame):
6622         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6623           Add hash tables track tab_control callback data.
6624           Added #defines for GTK object data names.
6625           Declaration of gtk_widget_to_frame().
6626         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6627         * frame-gtk.c (gtk_widget_to_frame): New.
6628         * frame-gtk.c (gtk_create_widgets):
6629         * frame-gtk.c (allocate_gtk_frame_struct):
6630         * frame-gtk.c (gtk_mark_frame):
6631         Manage frame callbakc hash tables.
6632         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6633         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6634         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6635         of widget size.
6636         * glyphs-gtk.c (gtk_widget_query_geometry): New
6637         * glyphs-gtk.c (gtk_register_gui_item): New
6638         * glyphs-gtk.c (gtk_add_tab_item): New
6639         * glyphs-gtk.c (gtk_tab_control_callback): New
6640         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6641         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6642         Use correct list when loading item.
6643         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6644         Register new methods.
6645         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6646         default size, for widgets.
6647         * gui-x.c:  Improved comment.
6648         * menubar-gtk.c (__generic_button_callback): Use
6649         gtk_widget_to_frame instead of __get_channel.
6650         * scrollbar-gtk.c:
6651         * ui-gtk.c: Use symbolic names for GTK object data.
6652
6653 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6654
6655         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6656
6657 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6658
6659         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6660
6661 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6662
6663         * malloc.c (morecore): siz is a long because in some architectures
6664         (eg ia-64) an int cannot hold the address range.  Additional patch
6665         from the SuSe distribution.
6666
6667 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6668
6669         * emacs.c:
6670         * malloc.c: lim_data is a long because in some architectures
6671         (eg ia-64) an int cannot hold the address range.
6672         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6673         instead of ulimit() because ulimit() always returns -1.
6674
6675 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6676
6677         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6678
6679 2004-06-11  David Kastrup  <dak@gnu.org>
6680
6681         * search.c (match_limit): Don't flag an error if match-data
6682         exceeding the allocated search_regs.num_regs gets requested, just
6683         return Qnil.
6684
6685 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6686
6687         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6688         replace symbolic color entries with the real colors specified in
6689         xpm-color-symbols, before passing the XPM to gtk.
6690         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6691         instead of a GTK specific field, so that it is used in by generic
6692         code.
6693
6694 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6695
6696        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6697         coredump from deref of NULL ptr (ExtData)
6698
6699 2004-04-19  Jerry James  <james@xemacs.org>
6700
6701         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6702         VALBITS to compute the location of the sign bit.
6703         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6704         of VALBITS with EMACS_INT_MAX.
6705         * events.c (Fevent_timestamp): Ditto.
6706         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6707         compute the halfway point to timestamp wraparound.
6708         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6709         EMACS_INT_MIN instead of using VALBITS.
6710         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6711         incorrect number with VALBITS.
6712         * fns.c (Frandom): Correct number of integer bits in docstring.
6713         Use INT_VALBITS instead of VALBITS to compute the denominator.
6714         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6715         build random numbers.
6716
6717 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6718         * event-gtk.c:
6719         * event-gtk.c (gtk_event_to_emacs_event):
6720         * menubar-gtk.c:
6721         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6722         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6723         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6724         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6725         * menubar-gtk.c (__activate_menu):
6726         * menubar-gtk.c (convert_underscores):
6727         * menubar-gtk.c (remove_underscores):
6728         * menubar-gtk.c (menu_convert):
6729         * menubar-gtk.c (menu_descriptor_to_widget_1):
6730         * menubar-gtk.c (menu_descriptor_to_widget):
6731         * menubar-gtk.c (menu_can_reuse_widget):
6732         * menubar-gtk.c (menu_create_menubar):
6733         * menubar-gtk.c (gtk_popup_menu):
6734         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6735         Added support for Gtk menu bar and menu item mnemonics.
6736
6737 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6738
6739         * sysdll.c: (dll_function): Added support for finding symbols in
6740         Darwin shared libraries as well in Darwin bundles.
6741         * sysdll.c (image_for_address): New
6742         * sysdll.c (my_find_image): New
6743         * sysdll.c (search_linked_libs): New
6744
6745 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6746
6747         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6748         return to GTK requires a different API to marshalling data to use
6749         as GTK parameters.
6750         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6751
6752 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6753
6754         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6755
6756 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6757
6758         * glyphs.c (process_image_string_instantiator):
6759         (Fset_console_type_image_conversion_list):
6760         Stop GCC from warning about shadowing of `exp'.
6761
6762         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6763
6764 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6765
6766         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6767
6768 2004-02-03  Vin Shelton  <acs@xemacs.org>
6769
6770         * glyphs.c (image_instance_layout): Remove pointless assertion.
6771         * regex.c (regex_grow_registers): Return type is void.
6772
6773 2004-02-02  Vin Shelton <acs@xemacs.org>
6774
6775         * XEmacs 21.4.15 is released
6776
6777 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6778
6779         * device-x.c (x_error_handler): Don't call stderr_out
6780
6781 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6782
6783         * buffer.c (other-buffer): Clarify documentation of order of
6784         arguments for FSF Emacs.
6785
6786 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6787
6788         * window.c (Fdelete_window): Dirty the mirror structure _before_
6789         marking the window deleted.
6790
6791 2003-09-15  Jerry James  <james@xemacs.org>
6792
6793         * event-msw.c (debug_mswin_messages): Conditionally compile
6794         messages missing from the Cygwin headers.
6795
6796 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6797
6798         * data.c (eq_with_ebola_notice): Fix typo in comment.
6799         (Ftrue_list_p): Improve docstring.
6800
6801 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6802
6803         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6804
6805 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6806
6807         * search.c (trivial_regexp_p): Regexps containing "\{" are
6808         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6809         Stefan Monnier for suggesting a diagnosis.
6810
6811 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6812
6813         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6814
6815 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6816
6817         * search.c (Fsearch_forward):
6818         (Fsearch_backward):
6819         Document negative count.
6820
6821 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6822
6823         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6824
6825 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6826
6827         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6828
6829 2003-09-15  Vin Shelton  <acs@xemacs.org>
6830
6831         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6832         21.5.
6833
6834 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6835
6836         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6837         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6838         (re_match_2_internal): Use TRANSLATE instead of
6839         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6840         non-ASCII char case conversion.
6841
6842 2003-09-08  Mike Sperber  <mike@xemacs.org>
6843
6844         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6845         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6846
6847 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6848
6849        * .gdbinit (pobj): fix printing of symbol name.
6850
6851 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6852
6853         * frame-x.c (x_layout_widgets): When resizing is about to cause
6854         frame size slip, mark it for redisplay.
6855
6856 2003-08-18  Jerry James  <james@xemacs.org>
6857
6858         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6859
6860 2003-09-03  Vin Shelton <acs@xemacs.org>
6861
6862         * XEmacs 21.4.14 is released
6863
6864 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6865
6866         * config.h.in (REGEX_MALLOC): Make it configure'able.
6867
6868 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6869
6870         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6871         linking.
6872         * sysdll.c (dll_init):
6873         * sysdll.c (dll_open):
6874         * sysdll.c (dll_close):
6875         * sysdll.c (dll_function):
6876         * sysdll.c (dll_variable):
6877         * sysdll.c (dll_error):
6878         Add support for loading bundles using Darwin/MacOSX
6879         native API.
6880
6881 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6882
6883         * process.c (start-process-internal): Document coding systems.
6884
6885 2003-07-30  Jerry James  <james@xemacs.org>
6886
6887         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6888
6889 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
6890
6891         * event-msw.c (mswindows_enqueue_mouse_button_event):
6892         * event-msw.c (mswindows_wnd_proc):
6893           enqueue button event when scrollwheel event isn't handled by 
6894           mswindows_handle_mousewheel_event, such as when the scrollbars
6895           are not showing.
6896
6897 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
6898
6899         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
6900
6901 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
6902
6903         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
6904
6905 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
6906
6907         * regex.c (re_match_2_internal): Fix matching degenerate word
6908         boundaries.
6909
6910 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
6911
6912         * XEmacs 21.4.13 is released
6913
6914 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
6915
6916         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
6917         * lisp.h (<inttypes.h>):
6918         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
6919         the definition.
6920
6921 2003-03-15  Martin Buchholz  <martin@xemacs.org>
6922
6923         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
6924         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
6925         Result: "temacs can only be run in -batch mode."
6926         Fix: Check xemacs executable candidate for directory-ness.
6927
6928 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
6929
6930         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
6931           they conflict with <sys/types.h>.
6932
6933 2003-02-14  Martin Buchholz  <martin@xemacs.org>
6934
6935         * database.c: Berkeley DB wants __STDC__ to be defined.
6936
6937 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6938
6939         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
6940
6941 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6942
6943         * process-unix.c (unix_send_process): Fix C++ compile error.
6944
6945 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
6946
6947         * Added .dylib as an acceptable shared library file extension
6948         * to support MacOSX.
6949
6950 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6951
6952         * EmacsFrameP.h (EmacsFramePart):
6953         Kludge to allow compiling with Motif1, but linking with Motif2.
6954
6955 2003-01-28  Martin Buchholz  <martin@xemacs.org>
6956
6957         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
6958
6959
6960 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
6961
6962         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
6963
6964 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
6965
6966         * sysdll.c: Included lisp.h to define needed alloca_array.
6967
6968 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6969
6970         Make XEmacs redisplay 10 times faster.
6971         If, that is, you're using a slow X connection and MoveOpaque.
6972         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
6973         Use compress_motion = TRUE.
6974         * EmacsFrame.c (emacsFrameClassRec): 
6975         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
6976         * EmacsManager.c (emacsManagerClassRec):
6977         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
6978
6979 2003-01-30  Vin Shelton  <acs@xemacs.org>
6980
6981         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
6982
6983 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
6984
6985         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
6986         Patch by Martin Buchholz.
6987
6988 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
6989
6990         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
6991         Thanks to icc for warning and Martin Buchholz for reporting.
6992
6993 2003-01-29  Vin Shelton <acs@xemacs.org>
6994
6995         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
6996
6997         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
6998         remember to multiply by the element size.
6999
7000 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
7001
7002         * XEmacs 21.4.12 "Portable Code" is released.
7003
7004 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
7005
7006         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
7007         * s/cygwin.sc: new linker file.
7008
7009 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
7010
7011         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
7012
7013         * redisplay-x.c (x_output_string): Use X11-specified types.
7014         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
7015         * emacs.c (__free_hook): Use typeof with Intel compiler.
7016         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
7017
7018 2003-01-08  Andy Piper  <andy@xemacs.org>
7019
7020         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
7021         reserve size during unexec().
7022
7023 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
7024
7025         * process-unix.c (unix_create_process): Don't let outchannel block.
7026
7027 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
7028
7029         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
7030         Needed for IsBadReadPtr().
7031
7032 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
7033
7034         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
7035
7036 2002-12-14  Ben Wing  <ben@xemacs.org>
7037
7038         * callint.c: Declaration error.
7039         * dumper.c (pdump):
7040         * dumper.c (pdump_load): Warning fix.
7041         * process.c: GCPRO error.
7042         * glyphs.c (unmap_subwindow):
7043         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
7044         * event-stream.c (maybe_kbd_translate): Wrong argument to
7045         character_to_event().
7046
7047         * alloc.c (garbage_collect_1):
7048         * emacs.c:
7049         * emacs.c (debug_can_access_memory):
7050         * emacs.c (fatal_error_signal):
7051         * emacs.c (mswindows_handle_hardware_exceptions):
7052         * emacs.c (main_1):
7053         * emacs.c (main):
7054         * emacs.c (assert_failed):
7055         * emacs.c (syms_of_emacs):
7056         * lisp.h:
7057         * print.c:
7058         * print.c (std_handle_out_va):
7059         * print.c (write_string_to_stdio_stream):
7060         * print.c (write_fmt_string):
7061         * print.c (printing_badness):
7062         * print.c (printing_major_badness):
7063         * print.c (print_internal):
7064         * print.c (debug_print_no_newline):
7065         * print.c (debug_backtrace):
7066         Be more defensive in handling bad values when printing.  Add code
7067         from trunk involving inhibit_non_essential_printing_operations.
7068         When going down or in debug_print(), don't do external conversion
7069         and such and try really, really hard when printing to avoid core
7070         dumping.  Add force-debugging-signal, debug_break().
7071
7072 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
7073
7074         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
7075         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
7076
7077 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
7078
7079         * database.c: Fix open_database. Berkeley DB API has changed in
7080         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
7081
7082 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
7083
7084         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
7085
7086 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
7087
7088         * event-Xt.c (Xt_timeout):
7089         (Xt_timeout_callback):
7090         (emacs_Xt_add_timeout):
7091         (emacs_Xt_remove_timeout):
7092         (Xt_timeout_to_emacs_event):
7093         Turn completed_timeouts from a stack into a queue.  Fixes
7094         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
7095
7096 2002-11-07  Wolfram Gloger  <wg@malloc.de>
7097
7098         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
7099         * emacs.c (main): Assert that mmap'd allocation is disabled.
7100
7101 2002-10-14  Andy Piper  <andy@xemacs.org>
7102
7103         * glyphs-widget.c (layout_query_geometry): add in fiddle
7104         factor. Include border text in width layout calculation.
7105         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
7106
7107 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
7108
7109         * XEmacs 21.4.10 "Military Intelligence" is released.
7110
7111 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
7112
7113         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
7114         using the NAS private array SoundFileInfo that no longer exists in
7115         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
7116         and earlier.  This is broken for some versions between 1.5a and
7117         1.5f.
7118
7119 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
7120
7121         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
7122
7123         * emacs.c (shut_down_emacs): Improve crash message.
7124
7125 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
7126
7127         * file-coding.c (determine_real_coding_system): Check for coding
7128         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
7129         shebangs and Python PEP 263.
7130
7131 2002-10-08  Andy Piper  <andy@xemacs.org>
7132
7133         * glyphs-widget.c (layout_query_geometry): only resize dynamically
7134         if static sizes haven't been set.
7135
7136 2002-08-30  Mike Alexander  <mta@arbortext.com>
7137
7138         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
7139         to close a socket.
7140
7141 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
7142
7143         * callproc.c (child_setup): 21.4 doesn't have retry_close.
7144
7145 2002-09-20  Mike Sperber <mike@xemacs.org>
7146
7147         (This partially gets back my patch from 2002-07-20 without the
7148         bug.)
7149         * callproc.c (child_setup): Remove Ben's comment noting confusion
7150         over the file descriptors >= 3: close_process_descs() doesn't
7151         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
7152         * process-unix.c (unix_create_process): Call
7153         begin_dont_check_for_quit to inhibit unwanted interaction (and
7154         thus breaking of X event synchronicity) in the child.
7155
7156 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
7157
7158         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
7159         widget.
7160
7161 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
7162
7163         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
7164         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
7165         the xemacs process did not exit, but looped infinitely here.  This
7166         fixes that problem.
7167
7168 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
7169
7170         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
7171         (find_context): Improve comments.
7172
7173         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
7174         (re_match_2): An XCHAR_TABLE operation was missing.
7175
7176         Many of the following changes were inspired by Andy Piper's (now
7177         obsolete) patch to make syntax-table text property lookup optional.
7178
7179         [Documentation]
7180
7181         * syntax.h (top level): Document semantics of syntax flags.
7182         * syntax.c (comstr_start, Fforward_comment): Improve comments.
7183         * syntax.c, syntax.h (top level): Document syntax cache better in
7184         comments.
7185
7186         [Instrument syntax caching (temporary change)]
7187
7188         * syntax.h (enum syntax_cache_statistics_functions, struct
7189         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
7190         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
7191         * syntax.c (scan_words, Fforward_comment, scan_lists,
7192         Fbackward_prefix_characters):
7193         * font-lock.c (find_context):
7194         Use them to instrument syntax caching. 
7195         * syntax.c (struct syntax_cache_statistics, scs_statistics,
7196         syntax_cache_statistics_function_names): New type and variables.
7197         * syntax.c (update_syntax_cache): Update and report statistics.
7198
7199         [Major syntax cache optimizations]
7200
7201         syntax.c (lookup_syntax_properties): Default off.
7202
7203         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
7204         * syntax.c (update_syntax_cache):
7205         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
7206
7207         [Minor syntax cache optimizations and code clarifications]
7208
7209         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
7210         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
7211         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
7212         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
7213         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
7214         (Code clarification.)
7215
7216         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
7217         scan_lists): Compute code from syncode, use Boolean macros instead
7218         of redundant masking operations.  (Code clarification; any decent
7219         compiler can do this optimization.)
7220
7221         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
7222         for clarity.
7223
7224         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
7225         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
7226         use F*_single_property_change instead of F*_extent_change.
7227         Currently F*_single_property_change is _much_ less efficient.
7228
7229         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
7230         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
7231         syntax_cache.object properly, don't leave Qt or Qnil.
7232         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
7233         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
7234         tests for Qt or Qnil.
7235
7236 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
7237
7238         * redisplay.c (point_in_line_start_cache): 
7239         * extents.c (print_extent_1):
7240         Fix warnings.
7241
7242         * extents.c (Fset_extent_property): Document `syntax-table' property.
7243
7244         * extents.h (Fnext_single_property_change): EXFUN it.
7245
7246 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7247
7248         * search.c (clear_unused_search_regs): New static function.
7249         (search_buffer): 
7250         (simple_search): 
7251         (boyer_moore):
7252         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
7253         Minor clarifications in comments.
7254
7255         * regex.c (re_match_2_internal): Ensure no stale submatches.
7256
7257 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
7258
7259         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7260
7261 2002-08-29  Jerry James  <james@xemacs.org>
7262
7263         * lisp.h: structrures -> structures.
7264
7265 2002-06-03  Andy Piper  <andy@xemacs.org>
7266
7267         * frame.c (frame_conversion_internal): add conversion appropriate
7268         for setting frame dimensions in pixels.
7269
7270         * console.h (struct console_methods): add device-specific widget
7271         layout functions.
7272
7273         * emacs.c (main_1): initialize glyph vars.
7274
7275         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7276         (handle_focus_event_2): new function. Allow focus to
7277         be set to a particular window and widget.
7278         (enqueue_focus_event): new function. Create a
7279         synthetic focus event.
7280         (emacs_Xt_handle_magic_event): call
7281         handle_focus_event_2.
7282
7283         * frame.c (Fset_frame_pixel_height): new function. Allow
7284         pixel-based sizing. Does the right thing on character-oriented
7285         displays.
7286         (Fset_frame_pixel_width): ditto.
7287         (Fset_frame_pixel_size): ditto.
7288         (syms_of_frame): declare.
7289
7290         * general-slots.h: add :vertically-justify and
7291         :horizontally-justify.
7292
7293         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7294         (mswindows_widget_border_width): new function.
7295         (mswindows_combo_box_instantiate): set border widths.
7296         (console_type_create_glyphs_mswindows): declare.
7297
7298         * glyphs-widget.c:
7299         (check_valid_justification): allow vertical and horizontal
7300         justification.
7301         (widget_border_width): new function. Call device methods.
7302         (widget_instance_border_width): ditto.
7303         (logical_unit_height): new function. Determine the height of a
7304         logical-unit. Logical units are intended to provide grid-like
7305         layout for subcontrols in a layout. If the layout is
7306         :vertically-justify top then subcontrols will be positioned on
7307         logical-unit boundaries, thus allowing adjacent subcontrols to
7308         line up.
7309         (widget_logical_unit_height): ditto for widgets.
7310         (redisplay_widget): misc cleanup.
7311         (widget_spacing): new function. Call device specific
7312         methods. Intended to be the default gap between adjacent widgets.
7313         (widget_query_geometry): use new spacing functions to determine
7314         appropriate geometry.
7315         (initialize_widget_image_instance): initialize horizontal and
7316         vertical justification.
7317         (widget_instantiate): use logica-units where appropriate for
7318         sizing large widgets.
7319         (button_query_geometry): use widget_instance_border_width.
7320         (tree_view_query_geometry): ditto.
7321         (tab_control_query_geometry): ditto.
7322         (edit_field_query_geometry): new function.
7323         (layout_update): pick up :justify, :horizontally-justify and
7324         :vertically-justify none of which worked previously. :justify is
7325         used as a fallback for both horizontal and vertical justification.
7326         (layout_query_geometry): use logical units to size appropriately.
7327         (layout_layout): ditto.
7328         (Fwidget_logical_to_character_width): new function. Allow users to
7329         convert from logical units to characters so that frame sizes can
7330         be set appropriately.
7331         (Fwidget_logical_to_character_height): ditto.
7332         (syms_of_glyphs_widget): declare.
7333         (image_instantiator_edit_fields): add edit_field_query_geometry.
7334         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7335         :horizontally-justify.
7336         (specifier_vars_of_glyphs_widget): new function. Declare
7337         Vwidget_border_width which is not yet used.
7338
7339         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7340         (x_widget_border_width): new function.
7341         (x_widget_instantiate): create a sensible name for widgets.
7342         (console_type_create_glyphs_x): declare x_widget_border_width.
7343
7344         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7345         (struct Lisp_Image_Instance): add :vertically-justify and
7346         :horizontally-justify.
7347         (LAYOUT_JUSTIFY_TOP): new.
7348         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7349         (ROUND_UP): new macro. Round argument up to next integral
7350         interval.
7351
7352         * redisplay-output.c (redisplay_output_layout): misc formatting.
7353
7354         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7355
7356 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7357
7358         * XEmacs 21.4.9 "Informed Management" is released.
7359
7360 2002-08-19  Andy Piper  <andy@xemacs.org>
7361
7362         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7363         win32 format.
7364
7365         * realpath.c (xrealpath): normalize drive spec also so that dir
7366         sep chars are not mixed on cygwin.
7367
7368 2002-08-06  Jerry James  <james@xemacs.org>
7369
7370         * window.c (Fsplit_window): Count only half of the divider width
7371         against the left window when splitting horizontally. 
7372
7373 2002-06-24  Andy Piper  <andy@xemacs.org>
7374
7375         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7376         toolbar was cleared.
7377
7378         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7379         function. Split out from mswindows_output_frame_toolbars.
7380         (mswindows_output_frame_toolbars): move clear pieces to
7381         mswindows_output_frame_toolbars.
7382
7383         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7384         out from gtk_output_frame_toolbars.
7385         (gtk_output_frame_toolbars): move clear pieces to
7386         gtk_clear_frame_toolbars.
7387
7388         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7389         the frame is cleared. How this ever worked before is a mystery.
7390         (x_output_frame_toolbars): Only output toolbars.
7391         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7392
7393         * gutter.c (update_gutter_geometry):
7394         Mark frame layout changed.
7395         (update_frame_gutter_geometry, update_frame_gutters):
7396         Respect frame_layout_changed.
7397
7398         * console.h (struct console_methods): add
7399         clear_frame_toolbars_method.
7400
7401         * redisplay.c (redisplay_frame): call
7402         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7403
7404         * toolbar.h: declare update_frame_toolbars_geometry.
7405
7406         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7407         out from update_frame_toolbars.  Call clear_frame_toolbars.
7408         (update_frame_toolbars): only output, do not change geometry.
7409
7410         * redisplay.c: add frame_layout_changed.
7411
7412         * redisplay.h: add frame_layout_changed.
7413         (CLASS_RESET_CHANGED_FLAGS): set it.
7414         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7415         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7416         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7417
7418         * device.h (struct device): add frame_layout_changed.
7419         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7420
7421         * frame.h (struct frame): add frame_layout_changed.
7422         (MARK_FRAME_LAYOUT_CHANGED): new.
7423
7424 2002-06-30  Mike Alexander  <mta@arbortext.com>
7425
7426         * event-msw.c (mswindows_need_event): Don't wait for a new message
7427         if the queue is not empty.  Suggested by Paul Moore.
7428
7429 2002-06-12  Andy Piper  <andy@xemacs.org>
7430
7431         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7432         for printing on accurately.
7433
7434 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7435
7436         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7437         WM_ACTIVATE message. Make sure that the frame is visible if the
7438         window is visible. This seemss to fix the problem where XEmacs
7439         appears to freeze after switching desktops with certain virtual
7440         window managers.
7441         (debug_output_mswin_message): Added code to output message
7442         parameters for WM_WINDOWPOSCHANGED, 
7443         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7444
7445 2002-05-25  Andy Piper  <andy@xemacs.org>
7446
7447         * select-x.c (vars_of_select_x): Fix docstring of
7448         x-selection-strict-motif-ownership
7449
7450 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7451
7452         * keymap.c (get_keymap):
7453         Add comment about do_autoload GCPROs own args.
7454
7455 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7456
7457         * bytecode.c (execute_optimized_program): check_opcode ifdef
7458         ERROR_CHECK_BYTE_CODE.
7459
7460 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7461
7462         Thanks to Ben Wing and Michael Sperber.
7463
7464         * eval.c (Fcommand_execute):
7465         (Feval):
7466         (Ffuncall):
7467         (Fmacroexpand_internal):
7468         (function_argcount):
7469         callint.c (Fcall_interactively):
7470         Add comment about do_autoload GCPROs own args.
7471
7472         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7473
7474         * eval.c (Ffuncall): Extra braces to placate GCC.
7475
7476 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7477
7478         * backtrace.h (grow_specpdl):
7479         (SPECPDL_RESERVE):
7480         * EmacsFrame.c (EmacsFrameSetValues):
7481         * eval.c (grow_specpdl):
7482         * ExternalShell.c (hack_event_masks_1):
7483         * glyphs-x.c (convert_EImage_to_XImage): 
7484         (x_finalize_image_instance):
7485         * ralloc.c (page_size):
7486         (r_alloc_sbrk):
7487         * xgccache.c (gc_cache_hash):
7488         Fix unsigned comparison warnings.
7489
7490 2002-07-29  Jerry James  <james@xemacs.org>
7491
7492         * lread.c (locate_file): Any nonnegative return value indicates
7493         success if MODE is nonnegative.
7494
7495 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7496
7497         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7498         argument. 
7499
7500 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7501
7502         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7503
7504         * dumper.c (pdump_get_indirect_count):
7505         (pdump_scan_by_alignment):
7506         (pdump_dump_root_struct_ptrs):
7507         (pdump_dump_rtables):
7508         (pdump_dump_root_objects):
7509         (pdump):
7510         * nas.c (WaveOpenDataForReading):
7511         * fns.c (print_bit_vector):
7512         * font-lock.c (SINGLE_SYNTAX_STYLE):
7513         * glyphs.c (check_for_ignored_expose):
7514         (find_matching_subwindow):
7515         * glyphs-eimage.c:
7516         * imgproc.c (get_histogram):
7517         * redisplay.c (point_in_line_start_cache):
7518         * redisplay-output.c (redisplay_unmap_subwindows):
7519         * symbols.c (defsymbol_massage_name_1):
7520         (defkeyword_massage_name):
7521         (deferror_massage_name_and_message):
7522         * redisplay-x.c (x_output_string): 
7523         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7524         * frame.h (struct frame):
7525         * filelock.c (current_lock_owner):
7526         * doprnt.c (emacs_doprnt_1):
7527         * lisp.h (struct Lisp_Bit_Vector):
7528         (DO_REALLOC):
7529         Fix warnings.
7530
7531 2002-02-13  Ben Wing  <ben@xemacs.org>
7532
7533         * event-stream.c (reset_key_echo):
7534         * event-stream.c (reset_this_command_keys):
7535         * event-stream.c (execute_command_event):
7536         If console is dead as a result of C-x 5 0, then post-command stuff
7537         needs to be careful and do only non-console-specific stuff.
7538
7539 2002-07-01  Mike Sperber <mike@xemacs.org>
7540
7541         * process-unix.c (unix_send_process): Mark coding_outstream as
7542         non-open upon SIGPIPE.
7543
7544         * event-stream.c (Fnext_event): Reorder switch cases to something
7545         that makes sense.
7546
7547 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7548
7549         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7550         Don't bogusly reinitialize ascii_character property.
7551
7552 2002-07-08  Mike Sperber <mike@xemacs.org>
7553
7554         * process.c (Fstart_process_internal): Do error checking before we
7555         fork off the child, so the child can't muck with the state of the
7556         parent.
7557
7558 2002-07-08  Mike Sperber <mike@xemacs.org>
7559
7560         * ralloc.c (init_ralloc): Allocate properly for pdump.
7561
7562 2002-06-12  Andy Piper  <andy@xemacs.org>
7563
7564         * glyphs.c (query_string_geometry): check the string.
7565
7566         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7567         widget names.
7568
7569 2002-06-17  Jerry James  <james@xemacs.org>
7570
7571         * sysdll.c: Remove RTLD_GLOBAL initialization.
7572         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7573
7574 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7575
7576         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7577
7578 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7579
7580         * sysdep.c (sys_rename): Make sys_rename work for the case where
7581         Windows rename sets errno to EACCES if target file exists.
7582
7583 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7584
7585         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7586         Fix detection of metric units to work on Win95
7587
7588 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7589
7590         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7591
7592 2002-04-25  Andy Piper  <andy@xemacs.org>
7593
7594         * redisplay.c (create_text_block): Remove extra comment trailer.
7595
7596 2002-04-24  Andy Piper  <andy@xemacs.org>
7597
7598         * redisplay.c (create_text_block): Don't actually add propagation
7599         data if the line ends after we have added a glyph.
7600
7601 2002-04-22  Andy Piper  <andy@xemacs.org>
7602
7603         * extents.c (extent_fragment_update): check for glyphs we have
7604         previously displayed.
7605         * extents.c (print_extent_1): warning removal.
7606         * extents.h: change prototype.
7607         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7608         widths correctly for wide glyphs.
7609         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7610         * redisplay.c (prop_type): add PROP_GLYPH.
7611         * redisplay.c (struct prop_block): add glyph type
7612         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7613         to the propagation data.
7614         * redisplay.c (create_text_block): if there is a glyph in the
7615         propagation data use it to salt extent_fragment_update.
7616         * redisplay.c (create_string_text_block): ditto.
7617
7618 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7619
7620         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7621         * redisplay-output.c (compare_runes): Compare them.
7622         * redisplay.c: Update copyright date.
7623         * redisplay.c (pos_data): Add need_baseline_computation field.
7624         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7625         need_baseline_computation; zero yoffset. Set max_pixmap_height
7626         for all pixmaps, not just automatically positioned ones.
7627         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7628         * redisplay.c (calculate_baseline): New, compute textual baseline.
7629         * redisplay.c (add_glyph_rune): Call them.
7630         * redisplay.c (create_text_block): Likewise.
7631         * redisplay.c (create_overlay_glyph_block): Likewise.
7632         * redisplay.c (add_margin_runes): Likewise.
7633         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7634
7635         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7636         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7637         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7638         * redisplay-msw.c (mswindows_output_string): Likewise.
7639         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7640         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7641         * redisplay-x.c (x_output_display_block): Likewise.
7642
7643 2002-03-28  Ben Wing  <ben@xemacs.org>
7644
7645         * redisplay.c: Fixed bug in redisplay
7646         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7647         and down of the lines, since they're bigger than the line
7648         size. (It was seen most obviously when there's a horizontal scroll
7649         bar, e.g. do C-h a glyph or something like that.) The problem was
7650         that the glyph-contrib-p setting on glyphs was ignored even if it
7651         was set properly, which it wasn't until now.
7652
7653 2002-04-24  Andy Piper  <andy@xemacs.org>
7654
7655         * lisp.h (Dynarr_end): Fix definition.
7656
7657 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7658
7659         * redisplay.c (mark_redisplay): Remove call to
7660         update_frame_window_mirror.
7661
7662 2001-11-15  Andy Piper  <andy@xemacs.org>
7663
7664         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7665         cygwin (again).
7666
7667 2002-02-13  Andy Piper  <andy@xemacs.org>
7668
7669         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7670         we did in fact enqueue the XM_MAPFRAME event.
7671
7672 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7673
7674         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7675         to fix problem switching between virtual desktops under virtuawin
7676         virtual window manager.
7677
7678 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7679
7680         * event-msw.c: Typo fix.
7681         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7682         magic XM_MAPFRAME event has been sent.
7683
7684 2001-11-23  Andy Piper  <andy@xemacs.org>
7685
7686         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7687
7688 2001-11-21  Andy Piper  <andy@xemacs.org>
7689
7690         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7691         mouse events outside the frame.
7692
7693 2002-03-20  Andy Piper  <andy@xemacs.org>
7694
7695         * menubar-msw.c (mswindows_popup_menu): warning removal.
7696         * dialog-msw.c (dialog_popped_down): ditto.
7697
7698 2001-12-11  Andy Piper  <andy@xemacs.org>
7699
7700         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7701         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7702         popup_up_p.
7703         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7704         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7705         * menubar-msw.c (mswindows_popup_menu): ditto.
7706
7707 2001-10-29  Andy Piper  <andy@xemacs.org>
7708
7709         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7710         cancels.
7711
7712 2002-01-03  Andy Piper  <andy@xemacs.org>
7713
7714         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7715         letters.
7716         (xrealpath): ditto.
7717
7718 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7719
7720         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7721         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7722         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7723         Detect and handle case where machine is set up for metric units
7724
7725 2002-04-02  Andy Piper  <andy@xemacs.org>
7726
7727         * dired-msw.c (mswindows_get_files): 
7728         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7729         completely handled by XEmacs. Suggested by Thomas Vogler
7730         <mail@thomas-vogler.de>.
7731
7732 2001-11-14  Andy Piper  <andy@xemacs.org>
7733
7734         * nt.c (REG_ROOT): change registry key to XEmacs.
7735
7736 2002-04-27  Andy Piper  <andy@xemacs.org>
7737
7738         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7739
7740 2002-04-26  Andy Piper  <andy@xemacs.org>
7741
7742         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7743         behavior.
7744
7745 2002-03-14  Mike Alexander  <mta@arbortext.com>
7746
7747         * event-msw.c (mswindows_unwait_process): New, remove process from
7748         wait list
7749         * process-nt.c (nt_finalize_process_data): Call
7750         mswindows_unwait_process
7751         * console-msw.h: Declare mswindows_unwait_process
7752
7753 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7754
7755         * editfns.c (Fdecode_time):
7756         (Fformat_time_string):
7757         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7758         (make_time): Warning elimination (change arg name).
7759
7760 2001-11-24  Andy Piper  <andy@xemacs.org>
7761
7762         * window.c (Fsplit_window): Doc return type.
7763
7764 2002-04-01  Andy Piper  <andy@xemacs.org>
7765
7766         * emacs.c (Fkill_emacs): Only output message box in interactive
7767         mode.
7768
7769 2002-04-26  Andy Piper  <andy@xemacs.org>
7770  
7771         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7772         cygwin.
7773
7774 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7775
7776         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7777         bit platform.
7778
7779 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7780
7781         * XEmacs 21.4.8 "Honest Recruiter" is released.
7782
7783 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7784
7785         Supersedes 2002-04-17 patch.
7786
7787         * process.h (PROCESS_LIVE_P): Use the process status as
7788         evidence of health, not the state of the input stream.
7789         (PROCESS_READABLE_P): Say if the process is readable
7790         from. (It may be dead nonetheless.)
7791         (CHECK_READABLE_PROCESS): Test for that condition.
7792
7793         * process.c (create_process): Use PROCESS_READABLE_P.
7794         (read_process_output, set_process_filter): Likewise.
7795
7796         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7797         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7798
7799         This code is #if 0'd, this is not the time to add new functions:
7800
7801         * process.c (Fprocess_readable_p): Report readability status.
7802         * process.c (Qprocess_readable_p): New, associated symbol...
7803         * process.c (syms_of_process): ... initialize it.
7804
7805 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7806
7807         * XEmacs 21.4.7 "Economic Science" is released.
7808
7809 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7810
7811         * process.h (PROCESS_LIVE_P): Use the process status as
7812         evidence of health, not the state of the input stream.
7813
7814 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7815
7816         * sysdep.c (sys_siglist): change "signum" to "signal"
7817
7818 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7819
7820         * s/darwin.h: New file.
7821         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7822         
7823 2002-04-23  Andreas Jaeger  <aj@suse.de>
7824
7825         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7826         which use lib64 for 64-bit libs.
7827         (START_FILES): Likewise.
7828
7829 2002-02-11  Mike Sperber  <mike@xemacs.org>
7830
7831         * device-x.c: 
7832         (x_IO_error_handler):
7833         (x_init_device): Temporarily keep device in static variable
7834         `device_being_initialized' so we can recover gracefully from
7835         internal XOpenDevice failure.  (XOpenDevice is documented to
7836         return NULL on failure, but sometimes calls the IO error handler
7837         instead.)
7838
7839 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7840
7841         * dired.c (Ffile_name_all_completions): Change documentation --
7842         remove reference to completion-ignored-extensions.
7843         * dired.c (vars_of_dired): Change documentation for
7844         completion-ignored-extensions -- remove reference to
7845         file-name-all-completions.
7846
7847 2002-03-06  Jerry James  <james@xemacs.org>
7848
7849         * emodules.c (emodules_load): Fix multiple loading of same module.
7850
7851 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7852         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7853         RTLD_LAZY to avoid incorrect symbol binding when using nested
7854         shared libraries on Solaris.
7855
7856 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7857
7858         * fileio.c (Ffind_file_name_handler): Improve docstring.
7859
7860 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7861
7862         * fns.c (Fmapconcat): Improve docstring.
7863
7864 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7865
7866         * device-gtk.c: Add prototype for
7867         emacs_gtk_selection_clear_event_handle.
7868         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7869         selection.  Setup signal handler for "selection_clear_event"
7870         (emacs_gtk_selection_clear_event_handle).
7871
7872         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7873         other applications owning the clipboard (based on
7874         x_handle_selection_clear).
7875
7876 2001-12-23  William M. Perry  <wmperry@gnu.org>
7877
7878         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7879         
7880 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7881
7882         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7883
7884 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7885
7886         * XEmacs 21.4.6 "Common Lisp" is released.
7887
7888 2001-12-16  Torsten Duwe  <duwe@caldera.de>
7889
7890         * search.c (Freplace_match): Add missing sub-expression functionality.
7891
7892         * buffer.c (decode_buffer): Add a check for pointer type to
7893         decode_buffer, before gcc's CSE optimization reorders a
7894         dereference in front of the allow_string test.
7895
7896 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
7897
7898         * window.c (window_loop): Fix bug that sometimes prevented
7899         window_loop() from iterating across multiple devices.  Also, at
7900         Ben's request, changed infloop-detecting code to abort() instead
7901         of silently terminating window_loop().
7902
7903 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
7904
7905         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
7906         * editfns.c (make_time): New function.
7907         (Fencode_time): Use it instead of wasteful_word_to_lisp.
7908         * lisp.h (make_time): Prototype and comment it.
7909         * dired.c (wasteful_word_to_lisp): Deprecate.
7910         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
7911
7912 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
7913
7914         * fileio.c (auto_save_1): Use current coding system, not
7915         escape-quoted.
7916
7917 2001-11-13  Ben Wing  <ben@xemacs.org>
7918
7919         * window.c:
7920         * window.c (window_truncation_on):
7921         * window.c (syms_of_window):
7922         truncate-partial-width-windows should respect the buffer being
7923         displayed, like other redisplay vars.
7924
7925 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
7926
7927         * event-stream.c (Fread_key_sequence): save current buffer.
7928
7929 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7930
7931         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
7932
7933 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7934
7935         * alloc.c (lcrecord_stats): Add space for types defined in modules.
7936
7937 2001-10-26  Mike Alexander  <mta@arbortext.com>
7938
7939         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
7940
7941 2001-10-25  Andy Piper  <andy@xemacs.org>
7942
7943         * ChangeLog:
7944         * dialog-msw.c (handle_directory_proc): new function.
7945          (handle_directory_dialog_box): new fucntion.
7946          (handle_file_dialog_box): use new directory dialog support.
7947          (mswindows_make_dialog_box_internal): ditto.
7948         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
7949         handling.
7950         (mswindows_find_frame): make global.
7951         * fileio.c (Fexpand_file_name): build fix.
7952         * general-slots.h: add Qdirectory.
7953         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
7954         handling.
7955         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
7956         cygwin not leaving win32 paths unchanged.
7957         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
7958         cygwin runtime to do path conversion.
7959         (Fmswindows_shell_execute): fix cygwin handling of URLs.
7960         (syms_of_win32): add new function.
7961         * window.c (window_loop): build fix.
7962
7963 2001-10-15  Andy Piper  <andy@xemacs.org>
7964
7965         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
7966
7967 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
7968
7969         * XEmacs 21.4.5 "Civil Service" is released.
7970
7971 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
7972
7973         * glyphs-x.c: Force buffer-tab highlight update when moving the
7974         buffer, avoiding an ugly black border, used for keyboard focus
7975         indication, on a widget that can never have keyboard focus, the
7976         buffer tab.
7977
7978 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
7979
7980         * process-unix.c (unix_open_multicast_group): Remove too much
7981         conversion between host and network byte order.
7982
7983 2001-09-10  Nix  <nix@esperi.demon.co.uk>
7984
7985         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
7986         before replacing them.
7987
7988         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
7989         operation.
7990
7991         * src/window.c (undedicate_windows): Use it.
7992         * src/window.h: Add prototype.
7993
7994 2001-09-17  Ben Wing  <ben@xemacs.org>
7995
7996         * fileio.c (normalize_filename):
7997         * fileio.c (Fexpand_file_name):
7998         Fix various C++ compile errors in Andy's recent code.
7999         
8000         * callint.c (Fcall_interactively):
8001         * editfns.c (Ftemp_directory):
8002         * editfns.c (Fuser_full_name):
8003         * emacs.c (argmatch):
8004         * lread.c (locate_file_map_suffixes):
8005         * redisplay-x.c (x_ring_bell):
8006         Fix sign-compare warnings.
8007         
8008 2001-09-08  Andy Piper  <andy@xemacs.org>
8009
8010         * fileio.c (normalize_filename): copied from nt.c
8011         * (Ffile_name_directory): enable win32 paths under cygwin.
8012         * (Ffile_name_nondirectory): ditto.
8013         * (directory_file_name): ditto.
8014         * (Fexpand_file_name): ditto.
8015         * (Ffile_truename): ditto.
8016         * (Fsubstitute_in_file_name): ditto.
8017         * (Ffile_name_absolute_p): ditto.
8018         * (Ffile_readable_p): ditto.
8019
8020 2001-09-08  Andy Piper  <andy@xemacs.org>
8021
8022         * device-msw.c (mswindows_finish_init_device): remove dde
8023         initialization.
8024         * device-msw.c (mswindows_init_dde): factor out from
8025         mswindows_finish_init_device()
8026         * device-msw.c (init_mswindows_very_early): new function
8027         initialize but don't enable dde.
8028         * emacs.c (main_1): call init_mswindows_very_early.
8029         * event-msw.c:
8030         * event-msw.c (mswindows_dde_callback): only execute when we are
8031         ready.
8032         * symsinit.h: declare init_mswindows_very_early.
8033
8034 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8035
8036         [sjt: This has been in 21.5 for months with no complaints.]
8037
8038         * console.h (struct console_methods): Added flags member.
8039         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
8040         (CONMETH_IMPL_FLAG):
8041         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
8042         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8043
8044         * device.c (window_system_pixelated_geometry): Use the above macros.
8045
8046         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
8047         implememntation flag.
8048         * device.h (DEVICE_DISPLAY_P): Use it.
8049
8050         * frame.c (delete_frame_internal): Use the above macro.
8051
8052         * redisplay.c (redisplay_device): Use it.
8053         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
8054         (redisplay_frame): Ditto.
8055
8056         * device-msw.c (mswindows_device_implementation_flags): Removed.
8057         (msprinter_device_implementation_flags): Removed.
8058         (console_type_create_device_mswindows): Removed references to
8059         implementation_flags methods, set implementation flags here.
8060         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
8061
8062         * device-gtk.c (gtk_device_implementation_flags): Removed method.
8063         (console_type_create_device_gtk): Removed method declaration.
8064         Added commented out statement which semantically matches the
8065         commented out statement in the above removed method.
8066
8067 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
8068
8069         The attached patch fixes a few warnings. 
8070
8071         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
8072         * src/frame-gtk.c: guard against GNOME calls in GTK only
8073         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
8074         * src/select-gtk.c: prototype lisp_to_time
8075
8076 2001-06-08  Ben Wing  <ben@xemacs.org>
8077
8078         ------ gc-in-window-procedure fixes ------
8079         
8080         * alloc.c:
8081         * alloc.c (struct post_gc_action):
8082         * alloc.c (register_post_gc_action):
8083         * alloc.c (run_post_gc_actions):
8084         * alloc.c (garbage_collect_1):
8085         Create "post-gc actions", to avoid those dreaded "GC during window
8086         procedure" problems.
8087
8088         * event-msw.c:
8089         Abort, clean and simple, when GC in window procedure.  We want
8090         to flush these puppies out.
8091
8092         * glyphs-msw.c:
8093         * glyphs-msw.c (finalize_destroy_window):
8094         * glyphs-msw.c (mswindows_finalize_image_instance):
8095         Use a post-gc action when destroying subwindows.
8096
8097         * lisp.h:
8098         Declare register_post_gc_action().
8099
8100         * scrollbar-msw.c:
8101         * scrollbar-msw.c (unshow_that_mofo):
8102         Use a post-gc action when unshowing scrollbar windows, if in gc.
8103
8104         * redisplay.c (mark_redisplay):
8105         Add comment about the utter evilness of what's going down here.
8106
8107         ------ cygwin setitimer fixes ------
8108         
8109         * Makefile.in.in (sheap_objs):
8110         * Makefile.in.in (profile_objs):
8111         * Makefile.in.in (objs):
8112         Compile profile.c only when HAVE_SETITIMER.
8113         
8114         * nt.c (mswindows_sigset):
8115         * nt.c (mswindows_sighold):
8116         * nt.c (mswindows_sigrelse):
8117         * nt.c (mswindows_sigpause):
8118         * nt.c (mswindows_raise):
8119         * nt.c (close_file_data):
8120         Style fixes.
8121         
8122         * nt.c:
8123         Move setitimer() emulation to win32.c, because Cygwin needs it too.
8124         
8125         * profile.c:
8126         * profile.c (Fstart_profiling):
8127         * profile.c (Fstop_profiling):
8128         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
8129         instead of just plain setitimer().
8130         
8131         * signal.c:
8132         * signal.c (set_one_shot_timer):
8133         * signal.c (alarm):
8134         Define qxe_setitimer() as an encapsulation around setitimer() --
8135         call setitimer() directly unless Cygwin or MS Win, in which case
8136         we use our simulated version in win32.c.
8137         
8138         * systime.h:
8139         * systime.h (struct itimerval):
8140         * systime.h (ITIMER_REAL):
8141         Prototype mswindows_setitimer() and qxe_setitimer().  Long
8142         comment about "qxe" and the policy regarding encapsulation.
8143
8144         * win32.c:
8145         * win32.c (setitimer_helper_proc):
8146         * win32.c (setitimer_helper_period):
8147         * win32.c (setitimer_helper):
8148         * win32.c (mswindows_setitimer):
8149         Move setitimer() emulation here, so Cygwin can use it.
8150         Rename a couple of functions and variables to be longer and more
8151         descriptive.  In setitimer_helper_proc(), send the signal
8152         using either mswindows_raise() or (on Cygwin) kill().  If for
8153         some reason we are still getting lockups, we'll change the kill()
8154         to directly invoke the signal handlers.
8155
8156         ------ windows shell fixes ------
8157         
8158         * callproc.c:
8159         * ntproc.c:
8160         Comments about how these two files must die.
8161
8162         * callproc.c (init_callproc):
8163         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
8164         not just COMSPEC. (more correct and closer to FSF.) Don't
8165         force a value for SHELL into the environment. (Comments added
8166         to explain why not.)
8167         
8168         * nt.c (init_user_info):
8169         Don't shove a fabricated SHELL into the environment.  See above.
8170
8171 2001-06-01  Ben Wing  <ben@xemacs.org>
8172
8173         * Makefile.in.in (ldflags):
8174         eliminate that pesky "defaulting to 00401000" warning.
8175         * nt.h:
8176         eliminate warnings.
8177
8178 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
8179
8180         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
8181         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
8182
8183 2001-04-24  Jerry James <james@xemacs.org>
8184
8185         * faces.h: pass parameters to Fadd_spec_to_specifier in the
8186         correct order.
8187
8188 2001-06-01  Ben Wing  <ben@xemacs.org>
8189
8190         * event-msw.c (debug_mswin_messages):
8191         conditionalize the messages that were causing compile errors.
8192         (if only macros could generate #ifdef statements ...)
8193
8194 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
8195
8196         * XEmacs 21.4.4 "Artificial Intelligence" is released.
8197
8198 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8199
8200         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
8201
8202 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
8203
8204         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
8205         * process-unix.c (unix_canonicalize_host_name):
8206         sysdep.c (init_system_name):
8207         Use it to conditionally support IPv6 canonicalization.
8208
8209 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
8210
8211         * event-msw.c:
8212         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
8213
8214 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
8215
8216         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
8217         attempt is made to scroll when no scroll bar is available.
8218
8219 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8220
8221         * input-method-motif.c (XIM_delete_frame): New callback.
8222         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
8223         got deleted from 21.4.3.)
8224
8225 2001-06-01  Ben Wing  <ben@xemacs.org>
8226
8227         * nt.c (mswindows_utime):
8228         * nt.c (close_file_data):
8229         fix off-by-one-indirection error.
8230
8231 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
8232
8233         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
8234         because set_file_times() now takes Lisp_Object path, instead of
8235         char*.
8236         * nt.c: Include buffer.h.
8237         * nt.c (convert_from_time_t): New.
8238         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
8239         not set mtime correctly.
8240         * nt.h: Declare mswindows_utime().
8241         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
8242         path, instead of char*.
8243         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
8244
8245 2001-05-30  Ben Wing  <ben@xemacs.org>
8246
8247         For 21.4:
8248
8249         (Stephen, just take all event-msw.c patches.  This includes
8250         the "iconify" fix below.)
8251
8252         * event-msw.c:
8253         * event-msw.c (mswindows_dequeue_dispatch_event):
8254         * event-msw.c (assert):
8255         * event-msw.c (emacs_mswindows_quit_p):
8256         * event-msw.c (debug_mswin_messages):
8257         * event-msw.c (debug_output_mswin_message):
8258         * event-msw.c (vars_of_event_mswindows):
8259         Fix yet more problems with C-g handling.
8260         Implement debug-mswindows-events.
8261         
8262 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8263
8264         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8265         
8266 2001-05-23  Ben Wing  <ben@xemacs.org>
8267
8268         * event-msw.c (winsock_writer):
8269         * event-msw.c (winsock_closer):
8270         prior kludgy code was clobbering the buffer, thinking it was
8271         "unused" space to store an unneeded return value; instead, use
8272         the variable we've already got staring us in the face.
8273
8274 2001-05-17  Andy Piper  <andy@xemacs.org>
8275
8276         * sysfile.h: don't assume that file attributes are boolean
8277
8278 2001-05-23  Ben Wing  <ben@xemacs.org>
8279
8280         * device-msw.c (msprinter_init_device):
8281         signal an error rather than crash with an unavailable network
8282         printer (from Mike Alexander).
8283         
8284         * event-msw.c:
8285         * event-msw.c (struct winsock_stream):
8286         * event-msw.c (winsock_writer):
8287         * event-msw.c (winsock_closer):
8288         * event-msw.c (make_winsock_stream_1):
8289         cleanup headers.  fix (hopefully) an error with data corruption
8290         when sending to a network connection.
8291
8292         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8293         to handle the ~user prefix by (a) always assuming we're referencing
8294         ourselves and not even verifying the user -- hence any file with
8295         a tilde as its first char is invalid! (b) if there wasn't a slash
8296         following the filename, the pointer was set *past* the end of
8297         file and we started reading from uninitialized memory.  Now we
8298         simply treat these as files, always.
8299
8300         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8301         
8302 2001-05-19  Ben Wing  <ben@xemacs.org>
8303
8304         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8305
8306         * process-nt.c:
8307         * process-nt.c (vars_of_process_nt):
8308         remove unused mswindows-quote-process-args.  rec for 21.4.
8309         
8310 2001-05-12  Ben Wing  <ben@xemacs.org>
8311
8312         * event-msw.c (mswindows_dde_callback):
8313         * event-msw.c (mswindows_wnd_proc):
8314         eliminate cygwin warnings.
8315
8316 2001-05-06  Ben Wing  <ben@xemacs.org>
8317
8318         * console-msw.h:
8319         * device-msw.c:
8320         * device-msw.c (print_dialog_worker):
8321         * device-msw.c (mswindows_handle_print_dialog_box):
8322         * device-msw.c (syms_of_device_mswindows):
8323         * dialog-msw.c (mswindows_make_dialog_box_internal):
8324         * general-slots.h:
8325         implement printing the selection when it's selected.
8326
8327 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8328
8329         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8330
8331 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8332
8333         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8334         EMACS_INT is signed.
8335
8336 2001-04-15  Michael Lausch  <mla@1012surf.net>
8337
8338         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8339         gtk_widget_request_size() to give scrollbar >0 width for
8340         GTK >1.2.8.
8341
8342 2001-05-30  William M. Perry  <wmperry@gnu.org>
8343
8344         * event-gtk.c: Check for buttons as modifier keys.
8345
8346 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8347
8348         * s\mingw32.h:
8349         Properly find MinGW's <process.h> inside Cygwin's restructured
8350         include directories.  Don't try to include <cygwin/version.h>
8351         since we are dropping support for MinGW in versions of Cygwin
8352         earlier than b21.
8353         * nt.c:
8354         Drop support for MinGW in versions of Cygwin before b21.
8355         * sysdep.c:
8356         Properly find MinGW's <process.h> inside Cygwin's restructured
8357         include directories.
8358         * syswindows.h:
8359         Drop support for MinGW in versions of Cygwin before b21.
8360         * unexcw.c:
8361         Even though a.out.h is no longer detected by configure, allow
8362         MinGW to use it until we figure out how to do the job with Win32.
8363
8364 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8365
8366         * syntax.c (find_start_of_comment):
8367         Fix `unbalanced parentheses' bug when dealing with mixed comment
8368         styles in c++/java/etc. mode
8369
8370 2001-05-29  Mike Alexander  <mta@arbortext.com>
8371
8372         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8373         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8374
8375 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8376
8377         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8378
8379 2001-03-31  Mike Sperber <mike@xemacs.org>
8380
8381         * search.c (Freplace_match): Support FSF-style specification of
8382         match subexpression when applied to a buffer.
8383
8384 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8385
8386         * event-stream.c (is_scrollbar_event): add missing semicolon
8387
8388 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8389
8390         * Makefile.in.in: Use TAR macro instead of hardcoding
8391           tar.  Allows use of GNU tar instead of system tar
8392
8393 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8394
8395         * event-stream.c (is_scrollbar_event): add missing semicolon
8396
8397 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8398
8399         * XEmacs 21.4.3 "Academic Rigor" is released.
8400
8401 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8402
8403         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8404
8405 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8406
8407         * buffer.c (Vcase_fold_search): Remove obsolete
8408           comment about non ASCII case-fold-search.  This
8409           bug has been fixed by case-table changes.
8410
8411 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8412
8413         * event-msw.c: Restore include of events-mod.h.
8414
8415 2001-04-22   zhaoway  <zw@debian.org>
8416
8417         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8418         !HAVE_SCROLLBARS.
8419
8420 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8421
8422         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8423
8424 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8425
8426         * mule-charset.c (Fmake_charset): Add missing else.
8427
8428 2001-04-23  Ben Wing  <ben@xemacs.org>
8429
8430         * event-msw.c (FAKE_MOD_QUIT):
8431         * event-msw.c (mswindows_dequeue_dispatch_event):
8432         * event-msw.c (mswindows_wnd_proc):
8433         * event-msw.c (emacs_mswindows_quit_p):
8434         Get critical quit working.
8435
8436 2001-05-05  Ben Wing  <ben@xemacs.org>
8437
8438         * console-msw.h:
8439         * device-msw.c:
8440         * device-msw.c (mswindows_get_default_margin):
8441         * frame-msw.c (mswindows_size_frame_internal):
8442         * frame-msw.c (msprinter_init_frame_1):
8443         * frame-msw.c (vars_of_frame_mswindows):
8444         Change top/bottom margin defaults to 0.5 inches.
8445
8446 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8447
8448         Fix link error with gcc 3.0 on Linux.
8449         * terminfo.c (UP): Remove.
8450         * terminfo.c (BC): Remove.
8451         * terminfo.c (PC): Remove.
8452         They weren't used, and in any case, these symbols should be
8453         defined in the *library*.
8454
8455 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8456
8457         * s/aix4.h: Fix crash with xlc -O3.
8458         Improve comment explaining how -O3 works.
8459
8460 2001-04-15  Ben Wing  <ben@xemacs.org>
8461
8462         * event-stream.c:
8463         * event-stream.c (Fnext_event):
8464         * event-stream.c (is_scrollbar_event):
8465         * event-stream.c (execute_command_event):
8466         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8467         crash' problem.  His fix introduces other problems.  We filter
8468         out scrollbar events specifically, making them somewhat invisible
8469         to command-building, and not appearing in `this-command-keys'.
8470         More work is still needed (see comments in event-stream.c), but
8471         this fixes all the major problems.
8472
8473 2001-04-20  Ben Wing  <ben@xemacs.org>
8474
8475         * .cvsignore: Added stuff for Windows.
8476
8477 2001-04-28  Ben Wing  <ben@xemacs.org>
8478
8479         * buffer.c (Ferase_buffer):
8480         * editfns.c (buffer_insert1):
8481         * editfns.c (Finsert_before_markers):
8482         * editfns.c (Finsert_string):
8483         * editfns.c (Finsert_char):
8484         * editfns.c (Fdelete_region):
8485         * editfns.c (Fwiden):
8486         * editfns.c (Fnarrow_to_region):
8487         remove bogus lines setting zmacs_region_stays to 0.
8488         
8489 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8490
8491         * process-unix.c (unix_open_network_stream): If connect() fails
8492         invalidate file descriptor after closing it.
8493
8494 2001-03-08  Mike Alexander  <mta@arbortext.com>
8495
8496         * event-msw.c (mswindows_need_event_in_modal_loop):
8497         Don't dispatch a message if we didn't get one.
8498         (mswindows_need_event):
8499         Terminate the correct process when one exits instead of the first
8500         one on Vprocess_list and look for process termination when in
8501         mswindows_protect_modal_loop.
8502
8503 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8504
8505         * XEmacs 21.4.1 "Copyleft" is released.
8506
8507 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8508
8509         * input-method-motif.c (XIM_delete_frame): New callback.
8510         (XIM_init_frame): Register it.
8511
8512 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8513
8514         * XEmacs 21.4.0 "Solid Vapor" is released.
8515
8516 2001-04-15  Ben Wing  <ben@xemacs.org>
8517
8518         * cmdloop.c (call_command_loop):
8519         Fix braino in bit-rotting code.
8520         
8521 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8522
8523         * extents.c (Fset_extent_endpoints): Force creation of extent info
8524         in buffer_or_string.
8525
8526         * extents.c (process_extents_for_insertion_mapper): Correctly
8527         check for open-open zero-length extents.
8528
8529 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8530
8531         * lisp.h: New typedefs Memory_count, Element_count.
8532         * regex.c:
8533         * regex.h:
8534         Sign-compare warning elimination: several unsigned -> signed.
8535         Based on work by Ben Wing <ben@xemacs.org>.
8536
8537 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8538
8539         * XEmacs 21.2.47 "Zephir" is released.
8540
8541 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8542
8543         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8544
8545 2001-04-03  Mike Sperber <mike@xemacs.org>
8546
8547         * search.c: Revert previous patch due because of release.
8548
8549 2001-03-30  Ben Wing  <ben@xemacs.org>
8550
8551         * s\cygwin32.h:
8552         Add missing killpg prototype.
8553
8554         * elhash.c:
8555         Add a comment about fixing problems when a new entry is added
8556         while mapping.
8557
8558         * frame-msw.c (mswindows_init_frame_1):
8559         Fix compile warnings.
8560
8561         * menubar.c (vars_of_menubar):
8562         Provide `menu-accelerator-support' to indicate that we properly
8563         support %_ in menu specifications, so that package code can
8564         conditionalize on this (and remove %_ from menu specifications
8565         on older versions).
8566
8567         * event-msw.c:
8568         * scrollbar-msw.c:
8569         * scrollbar-msw.c (can_scroll):
8570         * scrollbar-msw.h:
8571         Fix handling of mouse wheel under Windows to follow standards --
8572         now scrolls window under pointer, not selected window.
8573
8574 2001-03-31  Mike Sperber <mike@xemacs.org>
8575
8576         * search.c (Freplace_match): Support FSF-style specification of
8577         match subexpression when applied to a buffer.
8578
8579 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8580
8581         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8582         function to modify KEYMAP, so map over a copy of the hash table.
8583
8584 2001-03-21  Martin Buchholz <martin@xemacs.org>
8585
8586         * XEmacs 21.2.46 "Urania" is released.
8587
8588 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8589
8590         * realpath.c (xrealpath): Make file-truename work with symlinks to
8591         /cygdrive paths on cygwin. Always lowercase drive-letters on
8592         native windows.
8593         (cygwin_readlink): Don't try to find canonical filename unless
8594         file exists.
8595
8596 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8597
8598         * ChangeLog: Log GTK merge.
8599
8600         * dumper.c:
8601         * select-x.c:
8602         * specifier.c:
8603         * symeval.h:
8604         Revert gratuitous whitespace changes from GTK merge.
8605
8606         * emacs.c: Document end of complex #ifdef @ l. 1495.
8607
8608
8609 2001-03-12  Andy Piper  <andy@xemacs.org>
8610
8611         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8612         have to do likewise.
8613
8614 2001-03-12  Andy Piper  <andy@xemacs.org>
8615
8616         * sysdep.c: we only support mingw now.
8617
8618 2001-03-09  Andy Piper  <andy@xemacs.org>
8619
8620         * unexcw.c (copy_executable_and_dump_data_section): making approx
8621         overrun a warning only.
8622
8623 2001-03-10  William M. Perry  <wmperry@aventail.com>
8624
8625         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8626         satisfy Stephen's identical-after-cpp plea.
8627
8628 2001-03-02  Ben Wing  <ben@xemacs.org>
8629
8630         * cmds.c:
8631         * cmds.c (Fforward_char):
8632         * syntax.c:
8633         * window.c:
8634
8635         Augment documentation of the most common motion commands to make
8636         note of the shifted-motion support.
8637         
8638 2001-03-02  Ben Wing  <ben@xemacs.org>
8639
8640         * nt.c (mswindows_fstat):
8641         * nt.c (mswindows_stat):
8642         * search.c (boyer_moore):
8643         Fix compile warnings under Windows.
8644         
8645         * sysdep.c (sys_readdir):
8646         Fix buggy filename-conversion code under Mule.
8647
8648 2001-03-09  William M. Perry  <wmperry@aventail.com>
8649
8650         * Makefile.in.in:
8651         * config.h.in:
8652         * console.c:
8653         * console.h:
8654         * device.c:
8655         * device.h:
8656         * dragdrop.c:
8657         * emacs.c:
8658         * event-stream.c:
8659         * events.c:
8660         * events.h:
8661         * faces.c:
8662         * frame.h:
8663         * general-slots.h:
8664         * glyphs.c:
8665         * gutter.c:
8666         * inline.c:
8667         * lisp.h:
8668         * lrecord.h:
8669         * make-src-depend:
8670         * redisplay-output.c:
8671         * redisplay.c:
8672         * symsinit.h:
8673         * sysfile.h:
8674         * toolbar.c:
8675         * window.c:
8676         The Great GTK Merge.
8677
8678         * ChangeLog.GTK:
8679         * console-gtk.c:
8680         * console-gtk.h:
8681         * device-gtk.c:
8682         * emacs-marshals.c:
8683         * emacs-widget-accessors.c:
8684         * event-gtk.c:
8685         * frame-gtk.c:
8686         * gccache-gtk.c:
8687         * gccache-gtk.h:
8688         * glade.c:
8689         * glyphs-gtk.c:
8690         * glyphs-gtk.h:
8691         * gtk-glue.c:
8692         * gtk-xemacs.c:
8693         * gtk-xemacs.h:
8694         * gui-gtk.c:
8695         * gui-gtk.h:
8696         * menubar-gtk.c:
8697         * native-gtk-toolbar.c:
8698         * objects-gtk.c:
8699         * objects-gtk.h:
8700         * redisplay-gtk.c:
8701         * scrollbar-gtk.c:
8702         * scrollbar-gtk.h:
8703         * select-gtk.c:
8704         * toolbar-gtk.c:
8705         * ui-byhand.c:
8706         * ui-gtk.c:
8707         * ui-gtk.h:
8708         The Great GTK Merge: new files.
8709
8710 2001-02-26  Ben Wing  <ben@xemacs.org>
8711
8712         Reapplied Lstream change.
8713
8714 2001-02-26  Ben Wing  <ben@xemacs.org>
8715
8716         Undid the last change, since it is more controversial than I
8717         thought.  It should be back in at some point soon.
8718         
8719 2001-02-25  Ben Wing  <ben@xemacs.org>
8720
8721         * buffer.c:
8722         * callproc.c (Fold_call_process_internal):
8723         * event-msw.c (ntpipe_slurp_reader):
8724         * event-msw.c (ntpipe_shove_writer):
8725         * event-msw.c (winsock_reader):
8726         * event-msw.c (winsock_writer):
8727         * file-coding.c:
8728         * file-coding.c (detect_eol_type):
8729         * file-coding.c (detect_coding_type):
8730         * file-coding.c (determine_real_coding_system):
8731         * file-coding.c (Fdetect_coding_region):
8732         * file-coding.c (decoding_reader):
8733         * file-coding.c (decoding_writer):
8734         * file-coding.c (mule_decode):
8735         * file-coding.c (Fdecode_coding_region):
8736         * file-coding.c (encoding_reader):
8737         * file-coding.c (encoding_writer):
8738         * file-coding.c (mule_encode):
8739         * file-coding.c (Fencode_coding_region):
8740         * file-coding.c (detect_coding_sjis):
8741         * file-coding.c (decode_coding_sjis):
8742         * file-coding.c (encode_coding_sjis):
8743         * file-coding.c (detect_coding_big5):
8744         * file-coding.c (decode_coding_big5):
8745         * file-coding.c (encode_coding_big5):
8746         * file-coding.c (detect_coding_ucs4):
8747         * file-coding.c (decode_coding_ucs4):
8748         * file-coding.c (encode_coding_ucs4):
8749         * file-coding.c (detect_coding_utf8):
8750         * file-coding.c (decode_coding_utf8):
8751         * file-coding.c (encode_coding_utf8):
8752         * file-coding.c (detect_coding_iso2022):
8753         * file-coding.c (decode_coding_iso2022):
8754         * file-coding.c (encode_coding_iso2022):
8755         * file-coding.c (decode_coding_no_conversion):
8756         * file-coding.c (encode_coding_no_conversion):
8757         * glyphs-x.c (write_lisp_string_to_temp_file):
8758         * gpmevent.c (tty_get_foreign_selection):
8759         * lisp.h:
8760         * lstream.c:
8761         * lstream.c (Lstream_flush_out):
8762         * lstream.c (Lstream_adding):
8763         * lstream.c (Lstream_write_1):
8764         * lstream.c (Lstream_write):
8765         * lstream.c (Lstream_raw_read):
8766         * lstream.c (Lstream_read_more):
8767         * lstream.c (Lstream_read):
8768         * lstream.c (Lstream_unread):
8769         * lstream.c (Lstream_fputc):
8770         * lstream.c (stdio_reader):
8771         * lstream.c (stdio_writer):
8772         * lstream.c (filedesc_reader):
8773         * lstream.c (filedesc_writer):
8774         * lstream.c (lisp_string_reader):
8775         * lstream.c (struct fixed_buffer_stream):
8776         * lstream.c (make_fixed_buffer_input_stream):
8777         * lstream.c (make_fixed_buffer_output_stream):
8778         * lstream.c (fixed_buffer_reader):
8779         * lstream.c (fixed_buffer_writer):
8780         * lstream.c (struct resizing_buffer_stream):
8781         * lstream.c (resizing_buffer_writer):
8782         * lstream.c (dynarr_writer):
8783         * lstream.c (lisp_buffer_reader):
8784         * lstream.c (lisp_buffer_writer):
8785         * lstream.h:
8786         * lstream.h (lstream_implementation):
8787         * lstream.h (struct lstream):
8788         * md5.c (Fmd5):
8789         * process-nt.c (nt_send_process):
8790         * process-unix.c (unix_send_process):
8791         
8792         Correct Lstream lossage due to mixing of signed and unsigned
8793         quantities.  All Lstream uses of size_t and ssize_t are now a
8794         single signed data type Lstream_data_count.  This fixes problems
8795         under Windows with sending large quantities of data to a process,
8796         and may well fix other subtle bugs.
8797
8798 2001-02-23  Martin Buchholz <martin@xemacs.org>
8799
8800         * XEmacs 21.2.45 "Thelxepeia" is released.
8801
8802 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8803
8804         * lisp-union.h (XSETINT): 
8805         (XSETCHAR):
8806         (XSETOBJ): 
8807         Reverse previous change of 2001-02-06.
8808
8809 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8810
8811         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8812         buffers.
8813         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8814         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8815         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8816         * regex.c (POS_AS_IN_BUFFER): removed
8817         * regex.c (re_search_2):
8818         * regex.c (re_match_2):
8819         Don't use an offset of 1 when calculating buffer positions, since
8820         `BI_BUF_BEGV' does it already.
8821
8822 2001-02-18  Wim Dumon  <wim@easics.be>
8823
8824         * insdel.c (prepare_to_modify_buffer): Also check for
8825         supersession when clash-detection is enabled. 
8826
8827 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8828
8829         * regex.c (re_match_2_internal):
8830         Convert temp characters from 'const unsigned char' to 're_char'.
8831         Fix crashing bug with extended characters under mule.
8832         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8833         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8834         font-lock, pdump, and new syntax-table code.
8835         * syntax.c (find_start_of_comment):
8836         (find_end_of_comment):
8837         (forward-comment):
8838         Fix crashing bugs involving moving beyond end of buffer.
8839         * syntax.c (find_start_of_comment):
8840         Fixed logic to allow proper detection of cases where the same
8841         character is used to end both a two-char comment start and a
8842         two-char comment end sequence. Fixes `(forward-comment -1)'.
8843         * syntax.c (find_start_of_comment):
8844         Return position just past last comment-end character for all cases
8845         (previously was only done for two-char comment-end sequences).
8846         * syntax.c (forward-comment):
8847         Take value returned from `find_end_of_comment', rather than
8848         incrementing it.
8849         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8850         Properly deal with BUFFERP (syntax_cache.object)
8851
8852 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8853
8854         * alloc.c (Fgarbage_collect): 
8855         * alloc.c (make_bit_vector_from_byte_vector):
8856         -Wsign-compare-correctness.
8857
8858 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8859
8860         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8861         (XSETCHAR): Likewise.
8862         (XSETOBJ): Likewise.
8863
8864 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8865
8866         * mule-canna.c (canna-func-delete_previous): 
8867         Rename to canna-func-delete-previous.
8868
8869 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8870
8871         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8872
8873 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8874
8875         * font-lock.c (find_context): Fix C++ compile errors introduced by
8876         recent patch
8877
8878 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8879
8880         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8881         pragma, but earlier ones barf on the same pragma.
8882
8883 2001-02-06  Mike Sperber <mike@xemacs.org>
8884
8885         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8886         `configure-mule-lisp-directory'.
8887
8888 2001-02-12  Martin Buchholz  <martin@xemacs.org>
8889
8890         Make sure dump-id.c is compiled in the same way as other .c's.
8891         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
8892         * dump-id.h: Remove.
8893         * emacs.c: Move dump-id.h into dumper.h.
8894         * dumper.h: Move dump-id.h into dumper.h.
8895         * Makefile.in.in:
8896         Use standard .c.o rule for building dump-id.o.
8897         Remove preprocessor flags from link command.
8898         Add dump-id.o to ${otherobjs} if PDUMP.
8899
8900 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
8901
8902         Port FSF 20.7 syntax table improvements.
8903         * syntax.c.
8904         * syntax.h.
8905
8906         Fixups for new syntax table stuff.
8907         * dired.c: Include syntax.c.
8908         (Fdirectory_files): Initialize regex_match_object and
8909         regex_emacs_buffer.
8910         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
8911         and Fget_char_property.
8912
8913         Use ported FSF 20.7 syntax table improvements.
8914         * font-lock.c.
8915         * regex.c.
8916         * search.c.
8917         
8918 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8919
8920         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
8921         Unixware's enum boolean from sys/types.h.
8922
8923 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8924
8925         Fix support for building with latest Purify.
8926         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
8927         (PURIFY_FLAGS): Likewise.
8928
8929 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8930
8931         * fileio.c (lisp_string_set_file_times): New.
8932         * fileio.c (Fcopy_file): Use it.
8933         Fixes bug:
8934         (copy-file filename non-ascii-filename t t)
8935         ==> No such file or directory, non-ascii-filename
8936
8937 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8938
8939         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
8940         USHRT_MAX seems clearer than ~0 anyways.
8941
8942 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8943
8944         dumper improvements.  Inspired by Olivier.
8945         * dumper.c (pdump_max_align): New.
8946         * dumper.c (pdump_add_entry): Use pdump_max_align.
8947         * dumper.c (pdump_get_entry_list): Likewise.
8948         * dumper.c (pdump_scan_by_alignment): Likewise.
8949         Don't iterate through unnecessary alignments.
8950         * dumper.c (pdump_file_get): No need to align result of malloc().
8951         * dumper.c (pdump_mallocadr): Remove.  
8952         The result of malloc() is guaranteed to be maximally aligned.
8953         * dumper.c: s/elmt/elt/g;
8954         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
8955         * dumper.c (pdump_alert_undump_object): Likewise.
8956         * dumper.c (pdump_align_table): 
8957         Don't support alignments > 64.
8958         Store ALIGNOF's, not shift counts, in table.
8959
8960 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8961
8962         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
8963         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
8964         * systime.h: Use HAVE_UTIME.
8965         * sysdep.c (struct utimbuf): Remove.
8966         * sysdep.c (set_file_times): Prefer utime() to utimes().
8967         * config.h.in (HAVE_UTIME): New.
8968         * config.h.in (HAVE_UTIME_H): Remove.
8969         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
8970
8971 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8972
8973         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
8974
8975 2001-02-08  Martin Buchholz  <martin@xemacs.org>
8976
8977         * s/irix6-0.h: Use the standard system memmove, not bcopy.
8978
8979 2001-02-08  Martin Buchholz <martin@xemacs.org>
8980
8981         * XEmacs 21.2.44 "Thalia" is released.
8982
8983 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8984
8985         Fixes crashes in kill-emacs on some systems.
8986         * process-unix.c (unix_kill_child_process):
8987         It's OK for kill() to fail with ESRCH.
8988
8989 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8990
8991         Contortions to make .gdbinit tricks work on most systems.
8992         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
8993         * alloc.c (dbg_valmask): Make non-const.
8994         * alloc.c (dbg_typemask): Make non-const.
8995         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
8996         * alloc.c (dbg_valbits): Make non-const.
8997         * alloc.c (dbg_gctypebits): Make non-const.
8998         * .gdbinit (decode_object): Make it work with AIX cc.
8999
9000 2001-02-06  Martin Buchholz  <martin@xemacs.org>
9001
9002         * elhash.c (make_general_lisp_hash_table):
9003         Use simpler and more efficient calloc to clear entries.
9004
9005 2001-02-07  Martin Buchholz  <martin@xemacs.org>
9006
9007         * window.c (window_scroll): Work around an AIX C compiler bug.
9008         Fixes 'scroll-up' does nothing problem with xlC.
9009
9010 2001-02-05  Martin Buchholz  <martin@xemacs.org>
9011
9012         * .gdbinit: Remove obsolete comment.
9013
9014 2001-01-31  Mike Alexander  <mta@arbortext.com>
9015
9016         * select.c (Fown_selection_internal): Set owned_p for device
9017         method correctly.
9018
9019 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9020
9021         Port to g++ 2.97.
9022         "not" cannot be used as a macro name as it is an operator in C++
9023         * config.h.in: Stop #defining `not'.
9024         * chartab.c (check_category_char): not ==> not_p
9025         * chartab.h: Likewise.
9026         * regex.c (re_match_2_internal): Likewise.
9027
9028 2001-02-02  Martin Buchholz  <martin@xemacs.org>
9029
9030         * lisp-disunion.h: Fix up comments.
9031
9032 2001-01-31  Martin Buchholz  <martin@xemacs.org>
9033
9034         * keymap.c (define_key_check_and_coerce_keysym):
9035         (syms_of_keymap):
9036         Support mouse-6 and mouse-7 bindings in the obvious way.
9037
9038 2001-02-01  Martin Buchholz  <martin@xemacs.org>
9039
9040         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
9041
9042 2001-01-30  Martin Buchholz  <martin@xemacs.org>
9043
9044         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
9045         Previous patch missed DEFVAR_INT_MAGIC.
9046         Make sure future DEFVAR_foo use correct types.
9047         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
9048         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
9049         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
9050         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
9051         * (DEFVAR_INT): Likewise.
9052         * redisplay.c (vertical_clip): Should be of type Fixnum.
9053         * redisplay.c (horizontal_clip): Likewise.
9054         * lisp.h (dump_add_opaque_int): New.
9055         (dump_add_opaque_fixnum): New.
9056
9057 2001-01-29  Andy Piper  <andy@xemacs.org>
9058
9059         * glyphs-widget.c (check_valid_int_or_function): allow symbols
9060         since they can be eval'ed
9061
9062 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9063
9064         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
9065         Oops, XEmacs redefines `class'.  Use `typename' instead.
9066
9067 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9068
9069         * dumper.c: Fix C++ compile errors.
9070
9071 2001-01-29  Martin Buchholz  <martin@xemacs.org>
9072
9073         * tparam.c: Use correct prototypes.
9074
9075 2001-01-28  Martin Buchholz  <martin@xemacs.org>
9076
9077         * sysproc.h: #include util.h for NetBSD's openpty.
9078
9079 2001-01-27  Martin Buchholz  <martin@xemacs.org>
9080
9081         More 64-bit correctness.
9082         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
9083         Use a typedef `fixnum' for the type used for DEFVAR_INT.
9084         Fix up comments.
9085         This finally finishes the 64-bit SGI port.
9086         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
9087         * symbols.c: Fix up comments and type casts.
9088         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
9089         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
9090         * symeval.h (Fixnum): New type.
9091         * symeval.h (symbol_value_type): Fix up comment.
9092
9093         * commands.h:
9094         * nt.c:
9095         * emacs.c:
9096         * data.c:
9097         * redisplay.c:
9098         * abbrev.c:
9099         * dired-msw.c:
9100         * event-Xt.c:
9101         * eldap.c:
9102         * window.c:
9103         * sound.c:
9104         * event-stream.c:
9105         * eval.c:
9106         * buffer.c:
9107         * mule-canna.c: A million DEFVAR_INTs here...
9108         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
9109         * extents.c:
9110         * cmdloop.c:
9111         * lisp.h:
9112         * select-x.c:
9113         * console-x.h:
9114         * event-msw.c:
9115         * mule-wnnfns.c:
9116         * hpplay.c:
9117         * ralloc.c:
9118         * alloc.c:
9119         * keymap.c:
9120         * profile.c:
9121         s/int/Fixnum/g in DEFVAR_INT declarations.
9122
9123 2001-01-26  Martin Buchholz  <martin@xemacs.org>
9124
9125         Port pdump to SGI alignment-sensitive environment.
9126         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
9127         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
9128         properly aligned.
9129         Define and use aligned reading and writing macros.
9130         Use buffered stdio instead of posix i/o for faster dumping.
9131         Eliminate kludgy 256 byte space for header.
9132         Read and write from dump file using structs for alignment safety.
9133         * dumper.c (pdump_align_stream): New.
9134         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
9135         * dumper.c (PDUMP_READ_ALIGNED): New.
9136         * dumper.c (PDUMP_WRITE_ALIGNED): New.
9137         * dumper.c (pdump_static_Lisp_Object): New struct.
9138         * dumper.c (pdump_static_pointer): New struct.
9139         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
9140         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
9141         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
9142         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
9143
9144         * dumper.c (pdump_backtrace):
9145         * dumper.c (pdump_get_indirect_count):
9146         * dumper.c (pdump_register_object):
9147         * dumper.c (pdump_register_struct):
9148         * dumper.c (pdump_reloc_one):
9149         * dumper.c (pdump_scan_by_alignment):
9150         * dumper.c (pdump_dump_from_root_struct_ptrs):
9151         * dumper.c (pdump_dump_opaques):
9152         * dumper.c (pdump_dump_rtables):
9153         * dumper.c (pdump_dump_from_root_objects):
9154         * dumper.c (pdump):
9155         * dumper.c (pdump_load_finish):
9156         Use aligned reading and writing.
9157
9158         * dumper.c (pdump_free): Make static.
9159         * dumper.c (pdump_hFile): Likewise.
9160         * dumper.c (pdump_hMap): Likewise.
9161
9162 2001-01-26  Martin Buchholz <martin@xemacs.org>
9163
9164         * XEmacs 21.2.43 "Terspichore" is released.
9165
9166 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9167
9168         Type fiddling for window_config.saved_windows_count
9169         * window.c (struct window_config): 
9170         Make saved_windows_count member unsigned.
9171         * window.c (sizeof_window_config_for_n_windows): 
9172         Make parameter unsigned.
9173         * window.c (mark_window_config):
9174         * window.c (window_config_equal):
9175         * window.c (free_window_configuration):
9176         * window.c (Fset_window_configuration):
9177         * window.c (count_windows):
9178         * window.c (Fcurrent_window_configuration):
9179         * window.c (reinit_vars_of_window):
9180         Update all callers and users.
9181
9182 2001-01-25  Martin Buchholz  <martin@xemacs.org>
9183
9184         Alignment correctness for flexible arrays.
9185         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
9186         Make alignment-correct. Add interesting comments.
9187         * alloc.c (size_vector):
9188         * alloc.c (make_vector_internal):
9189         * alloc.c (make_bit_vector_internal):
9190         * alloc.c (sweep_bit_vectors_1):
9191         * fns.c (size_bit_vector):
9192         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
9193         * window.c (sizeof_window_config_for_n_windows): 
9194         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
9195
9196 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9197
9198         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
9199
9200 2001-01-23  Andy Piper  <andy@xemacs.org>
9201
9202         * select.c (Fown_selection_internal): pass owned_p
9203
9204         * select-msw.c (mswindows_own_selection): New Signature.
9205
9206         * console.h (struct console_methods): add owned_p to
9207         _own_selection.
9208
9209         * select-x.c (x_own_selection): pass owned_p
9210         (hack_motif_clipboard_selection): use owned_p
9211         (vars_of_select_x): new variable -
9212         x_selection_strict_motif_ownership.
9213
9214 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9215
9216         * specifier.h (specifier_data_offset): Remove pointless parens.
9217         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
9218
9219 2001-01-24  Martin Buchholz  <martin@xemacs.org>
9220
9221         Make Lisp_Object sizeof methods be alignment-correct.
9222         pdump must restore objects to the same alignment as the C compiler
9223         assumes.  It really matters on SGIs.
9224         * lstream.c (aligned_sizeof_lstream): New.
9225         (sizeof_lstream): Use aligned_sizeof_lstream.
9226         (Lstream_new): Likewise.
9227         * opaque.c (aligned_sizeof_opaque): New.
9228         (sizeof_opaque): Use aligned_sizeof_opaque.
9229         (make_opaque): Likewise.
9230         * specifier.c (aligned_sizeof_specifier): New.
9231         (sizeof_specifier): Use aligned_sizeof_specifier.
9232         (make_specifier_internal): Likewise.
9233
9234 2001-01-23  Martin Buchholz  <martin@xemacs.org>
9235
9236         * lstream.h (struct lstream): Use max_align_t for trailing data.
9237         * specifier.h (struct Lisp_Specifier): Likewise.
9238
9239 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9240
9241         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
9242         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
9243         (CCL_SUSPEND): Likewise.
9244         (CCL_INVALID_CMD): Likewise.
9245         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
9246         (ccl_driver): Likewise.
9247         (CCL_WRITE_CHAR): Macro hygiene.
9248         (CCL_WRITE_STRING): Macro hygiene.
9249
9250 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9251
9252         Port "portable" dumper to SunOS 4 and HP-UX.
9253         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
9254         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
9255         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
9256
9257 2001-01-22  Martin Buchholz  <martin@xemacs.org>
9258
9259         * lisp.h (ALIGNOF): A better definition for C++.
9260
9261 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9262
9263         Macro hygiene.
9264         Fix printf warnings: int format, long int arg.
9265         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9266         (PUSH_FAILURE_POINT): Use correct printf formats.
9267         (POP_FAILURE_POINT): Use correct printf formats.  
9268         Use do {...} while (0)
9269
9270 2001-01-20  Martin Buchholz <martin@xemacs.org>
9271
9272         * XEmacs 21.2.42 "Poseidon" is released.
9273
9274 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9275
9276         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9277
9278 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9279
9280         De-kludgify FIXED_TYPE free list frobbing.
9281         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9282         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9283         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9284         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9285         * alloc.c (LRECORD_FREE_P): New.
9286         * alloc.c (MARK_LRECORD_AS_FREE): New.
9287         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9288         * alloc.c (STRUCT_FREE_P): Deleted.
9289         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9290         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9291         * alloc.c (STRING_CHARS_FREE_P): New.
9292         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9293         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9294         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9295         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9296         * alloc.c (resize_string): Use new definitions.
9297         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9298         * alloc.c (verify_string_chars_integrity): Use new definitions.
9299         * alloc.c (compact_string_chars): Use new definitions.
9300         * alloc.c: Update monster comments.
9301         * lrecord.h (lrecord_type): Add some new lrecord types for
9302         alloc.c's use.
9303
9304 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9305
9306         Improve alignment hackery.
9307         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9308         (max_align_t): Moved from opaque.h - general purpose.
9309         (ALIGN_PTR): Use size_t, not long.
9310         * opaque.h (max_align_t): Move to lisp.h.
9311
9312 2001-01-18  Norbert Koch  <nk@LF.net>
9313
9314         * gui.h: Fix and add prototypes to fix build problems.
9315
9316 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9317
9318         temacs is going away, so `dump-temacs' is now a bad name.
9319         * .dbxrc (dump-temacs): Rename to `dmp'.
9320         * .gdbinit (dump-temacs): Rename to `dmp'.
9321
9322 2001-01-17  Andy Piper  <andy@xemacs.org>
9323
9324         * glyphs.c (print_image_instance): comment to make martin happy.
9325
9326         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9327         change.
9328
9329         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9330         activation.
9331         (mswindows_tab_control_redisplay): warning suppression.
9332
9333         * glyphs-widget.c (widget_update): re-write to cope with updated
9334         items.
9335         (widget_instantiate): use new gui_item functions.
9336         (tab_control_update): deleted.
9337         (progress_gauge_update): deleted.
9338         (image_instantiator_progress_guage): take out update reference.
9339         (image_instantiator_tree_view): ditto.
9340         (image_instantiator_tab_control): ditto.
9341
9342         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9343         Right the new way.
9344         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9345         return whether anything was changed.
9346         (update_gui_item_keywords): as it sounds.
9347
9348         * gui.h: declare widget_gui_parse_item_keywords.
9349
9350         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9351         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9352
9353 2001-01-17  Martin Buchholz <martin@xemacs.org>
9354
9355         * XEmacs 21.2.41 "Polyhymnia" is released.
9356
9357 2001-01-16  Didier Verna  <didier@xemacs.org>
9358
9359         * glyphs.c (image_instantiate): don't use fallbacks when
9360         instantiating a face's background pixmap by inheritance.
9361
9362 2001-01-14  Mike Sperber <mike@xemacs.org>
9363
9364         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9365         Conditionalize accordingly.
9366
9367 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9368
9369         * dumper.c (pdump_file_get): Fix a compiler warning.
9370
9371 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9372
9373         Make Purify happy when pdumping.
9374         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9375         iniitalizing all bits of new lisp object memory.
9376         * symbols.c (Fmake_local_variable): Likewise.
9377         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9378         * symbols.c (Fdefvaralias): Likewise.
9379         * mule-charset.c (vars_of_mule_charset): Likewise.
9380
9381 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9382         Add the `-nd' flag when running pre-dump operations under the debugger.
9383         * .dbxrc (run-temacs): Add `-nd'.
9384         * .dbxrc (update-elc): Likewise.
9385         * .dbxrc (dump-temacs): Likewise.
9386         * .gdbinit (run-temacs): Likewise.
9387         * .gdbinit (check-temacs): Likewise.
9388         * .gdbinit (update-elc): Likewise.
9389         * .gdbinit (dump-temacs): Likewise.
9390
9391 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9392
9393         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9394         export OBJECT_MODE=64
9395         configure --pdump --use-union-type=no
9396         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9397         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9398
9399         * miscplay.c (sndcnv8U_2mono):
9400         Avoid two uses of `++' in the same expression.
9401         Suppresses a GCC warning.
9402
9403 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9404
9405         Make sure future compilers don't miscompile alloc.c.
9406         * alloc.c:
9407         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9408         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9409
9410 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9411
9412         * dumper.c: A little post-pdump-rename comment fixup.
9413
9414 2001-01-09  Jerry James  <james@eecs.ku.edu>
9415
9416         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9417
9418 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9419
9420         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9421         script:
9422         #!/bin/sh
9423         replace_symbol () {
9424           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9425         }
9426
9427         replace_symbol pdump_wire_lists pdump_weak_object_chains
9428         replace_symbol pdump_wire_list dump_add_weak_object_chain
9429
9430         replace_symbol pdump_wires pdump_root_objects
9431         replace_symbol pdump_wire dump_add_root_object
9432
9433         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9434         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9435
9436         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9437         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9438         replace_symbol dumpstructinfo pdump_root_struct_ptr
9439         replace_symbol dumpstruct dump_add_root_struct_ptr
9440
9441         replace_symbol dumpopaque dump_add_opaque
9442         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9443         replace_symbol dumpopaqueinfos pdump_opaques
9444         replace_symbol dumpopaqueinfo pdump_opaque
9445
9446         replace_symbol nb_structdump nb_root_struct_ptrs
9447         replace_symbol nb_opaquedump nb_opaques
9448
9449         replace_symbol align_table pdump_align_table
9450         replace_symbol dump_header pdump_header
9451
9452         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9453         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9454
9455
9456 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9457
9458         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9459         optimizing bytecount_to_charcount().
9460
9461 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9462
9463         * config.h.in:
9464         (HAVE_DLFCN_H): Removed.
9465         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9466
9467 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9468
9469         Portable dumper maintainability improvements.
9470         * alloc.c (staticpro):
9471         * alloc.c (staticpro_nodump):
9472         * alloc.c (garbage_collect_1):
9473         * alloc.c (reinit_alloc_once_early):
9474         * alloc.c (init_alloc_once_early):
9475         * alloc.c: Move dumper functions to alloc.c.
9476         * dumper.c (pdump_backtrace):
9477         * dumper.c (pdump_dump_structs):
9478         * dumper.c (pdump_dump_opaques):
9479         * dumper.c (pdump_dump_rtables):
9480         * dumper.c (pdump_dump_wired):
9481         * dumper.c (pdump):
9482         * dumper.c (pdump_load_check):
9483         * dumper.c (pdump_load_finish):
9484         * dumper.c (pdump_file_unmap):
9485         * dumper.c (pdump_file_get):
9486         * dumper.c (pdump_resource_free):
9487         * dumper.c (pdump_resource_get):
9488         * dumper.c (pdump_file_free):
9489         * dumper.c (pdump_file_try):
9490         * dumper.c (pdump_load):
9491         Remove fixed size limits on staticpro(), staticpro_nodump(),
9492         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9493         Remove custom code for dumping lrecord_implementations_table - use
9494         dumpopaque instead.
9495         Remove (most of the) custom code for dumping staticpros - dump it
9496         like any other dynarr.
9497
9498         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9499         * dumper.c: Moved functions from alloc.c.
9500         * alloc.c (dumpstruct): Moved to dumper.c.
9501         * alloc.c (dumpopaque): Likewise.
9502         * alloc.c (pdump_wire): Likewise.
9503         * alloc.c (pdump_wire_list): Likewise.
9504
9505         * lisp.h (Dynarr_sizeof): New.
9506         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9507         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9508         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9509
9510         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9511         * lisp.h (dumpopaque): ditto.
9512         * lisp.h (pdump_wire): ditto.
9513         * lisp.h (pdump_wire_list): ditto.
9514
9515 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9516
9517         * make-src-depend (PrintPatternDeps):
9518         Use `sort' to make output independent of perl version.
9519
9520 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9521
9522         Port to Netbsd 1.5.
9523         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9524         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9525
9526 2001-01-03  Didier Verna  <didier@xemacs.org>
9527
9528         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9529         that `focus_frame' is alive before thinking of calling
9530         `redisplay_redraw_cursor' on it.
9531
9532 2001-01-08  Martin Buchholz <martin@xemacs.org>
9533
9534         * XEmacs 21.2.40 is released.
9535
9536 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9537
9538         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9539
9540 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9541
9542         * alloc.c (dbg_valmask): Make const.
9543         * alloc.c (dbg_typemask): Make const.
9544         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9545         * alloc.c (dbg_valbits): Make const.
9546         * alloc.c (dbg_gctypebits): Make const.
9547
9548 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9549
9550         * redisplay-x.c (x_bevel_area):
9551         redisplay.h (struct rune):
9552         Typo fixes in comments.
9553
9554 2001-01-05  Andy Piper  <andy@xemacs.org>
9555
9556         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9557         adjustment.
9558
9559         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9560
9561 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9562
9563         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9564
9565         * mule-ccl.c (stack_idx_of_map_multiple):
9566         Non const global data must not be initialized!
9567         Found by MIYASHITA Hisashi.
9568
9569 2001-01-02  Andy Piper  <andy@xemacs.org>
9570
9571         * frame.c (change_frame_size): make sure frame size is always
9572         marked as changed.
9573
9574         * glyphs.c (image_instance_layout): minor code reuse.
9575
9576         * window.c (Fcurrent_window_configuration): revert previous
9577         change.
9578
9579 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9580
9581         * glyphs.h:
9582         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9583
9584 2000-12-31  Andy Piper  <andy@xemacs.org>
9585
9586         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9587         when widget gets unmapped.
9588
9589         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9590         function. Make sure widgets losing focus don't just drop it.
9591         (handle_focus_event_1): record the widget with focus.
9592
9593 2000-12-31  Andy Piper  <andy@xemacs.org>
9594
9595         * window.c (allocate_window): use
9596         make_image_instance_cache_hash_table.
9597         (make_dummy_parent): ditto.
9598         (Fset_window_configuration): ditto.
9599
9600         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9601
9602         * glyphs.c (process_image_string_instantiator): use
9603         INSTANTIATOR_TYPE.
9604         (get_image_instantiator_governing_domain): ditto.
9605         (normalize_image_instantiator): ditto.
9606         (instantiate_image_instantiator): ditto.
9607         (make_image_instance_1): ditto.
9608         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9609         (instantiator_eq_equal): new function for use with instance hash
9610         tables.
9611         (instantiator_eq_hash): ditto.
9612         (make_image_instance_cache_hash_table): create a suitable hash
9613         table for storing image instances.
9614
9615         * elhash.h (hash_table_weakness): new internal weakness type
9616         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9617         declare new functions.
9618
9619         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9620         another weakness type for glyphs.
9621         (make_standard_lisp_hash_table): new function split out from
9622         make_general_lisp_hash_table.
9623         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9624         (hash_table_instantiate): ditto.
9625         (Fmake_hash_table): ditto.
9626
9627 2000-12-31  Martin Buchholz <martin@xemacs.org>
9628
9629         * XEmacs 21.2.39 is released.
9630
9631 2000-12-29  Andy Piper  <andy@xemacs.org>
9632
9633         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9634
9635         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9636         the frame has changed so that we pick up geometry changes such as
9637         menubar visibility.
9638
9639 2000-12-28  Andy Piper  <andy@xemacs.org>
9640
9641         * lastfile.c (my_ebss): make a char array so we can pad the
9642         bss. Fixes cygwin unexec.
9643
9644         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9645
9646 2000-12-26  Andy Piper  <andy@xemacs.org>
9647
9648         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9649         comments and try and be more precise about a non-/SIGIO world.
9650         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9651         SIGIO.
9652
9653         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9654         we don't normalize to zero width or height.
9655
9656 2000-12-24  Andy Piper  <andy@xemacs.org>
9657
9658         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9659
9660 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9661
9662         * s/sco5.h: SCO 5 has pty support.
9663
9664 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9665
9666         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9667         input-method-xlib.c contains whole contents of input-method-xfs.c,
9668         so we can use input-method-xlib.c's code for USE_XFONTSET
9669         using #ifdefs.
9670         * input-method-xfs.c: removed.
9671
9672 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9673
9674         * file-coding.h (enum coding_category_type): reorder enumerators to
9675         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9676         (now one greater than largest real coding_category_type enumerator).
9677         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9678         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9679         Fcoding_category_list, Fset_coding_priority_list,
9680         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9681         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9682
9683 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9684
9685         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9686         * redisplay-output.c (redisplay_output_window): Clear top of window
9687         when face is changed.
9688         * redisplay-x.c (x_redraw_exposed_window): Call
9689         redisplay_clear_top_of_window.
9690         * redisplay.h: Publish redisplay_clear_top_of_window.
9691
9692 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9693
9694         * buffer.c (Fkill_buffer): Map over all devices.
9695         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9696         (list_windows): New function.
9697         (list_all_windows): Ditto.
9698         (Freplace_buffer_in_windows): Use them.
9699
9700 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9701
9702         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9703         (Fopen_database): Use `db_create' instead of `db_open'.
9704         (syms_of_database): Initialize Qqueue.
9705
9706 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9707
9708         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9709         buffer_local_face_property.
9710         * buffer.h (struct buffer): New member buffer_local_face_property.
9711         * window.c (Fset_window_buffer):  Mark window's face as changed
9712         when buffer has buffer local face.
9713         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9714         * objects.c (color_after_change): Set buffer_local_face_property
9715         when locale of face specifier is buffer.
9716         * objects.c (font_after_change): Ditto.
9717         * objects.c (face_boolean_after_change): Ditto.
9718         * glyphs.c (image_after_change): Ditto.
9719
9720 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9721
9722         * nt.c (mswindows_fstat): Report file permissions, volume serial
9723         number, etc. Code adapted from FSF Emacs 20.7.
9724
9725 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9726
9727         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9728         of stat when we don't have symbolic links, to make sure
9729         mswindows_stat is called on mswindows.
9730
9731 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9732
9733         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9734
9735 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9736
9737         * doprnt.c (emacs_doprnt_1): More printing fixes.
9738         Make printing of numbers compatible with libc and FSF Emacs.
9739         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9740         Use the system printf to do most of the hard work of formatting,
9741         instead of doprnt_1().
9742         Calculate memory to allocate for format string.
9743         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9744         (doprnt_1): Cleaner code and documentation.
9745
9746 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9747
9748         * Makefile.in.in: Use the loop variable to install headers.
9749
9750 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9751
9752         * window.c (Fsplit_window): Don't invalidate face cache.
9753
9754 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9755
9756         * minibuf.c (Fall_completions): Undo the previous change
9757         which removed checking elements start with space.
9758
9759 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9760
9761         * mule-canna.c: Didier suppression.
9762
9763 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9764
9765         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9766         (warning suppression).  Add English comment translations.
9767
9768 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9769
9770         * unexelfsgi.c (unexec): Better test for mmap failure.
9771
9772 2000-12-05  Martin Buchholz <martin@xemacs.org>
9773
9774         * XEmacs 21.2.38 is released.
9775
9776 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9777
9778         * redisplay.c (bar-cursor): Make a user variable.
9779
9780         * symsinit.h: Add init_postgresql_from_environment.
9781
9782 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9783
9784         * regex.c: Convert to clean C.
9785
9786 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9787
9788         * realpath.c:
9789         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9790         initialization.
9791         (sys_readlink): renamed to system_readlink to avoid conflict with
9792         the other sys_readlink.
9793
9794 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9795
9796         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9797
9798 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9799
9800         * postgresql.c (init_postgresql_from_environment): new function.
9801         (vars_of_postgresql): Move code initializing Lisp variables out and
9802         into init_postgresql_from_environment.
9803         emacs.c (main_1): Call init_postgresql_from_environment if and only
9804         if running a dumped XEmacs.
9805
9806 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9807
9808         * buffer.c: Make find-file-compare-truenames default to true on
9809         windows.
9810
9811         * realpath.c (win32_abs_start):
9812         (cygwin_readlink):
9813         (win32_readlink): New functions.
9814         (xrealpath): Return really real filenames on windows.
9815
9816         * fileio.c (Ffile_truename): Make file-truename work on windows.
9817
9818 2000-11-29  Didier Verna  <didier@xemacs.org>
9819
9820         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9821         * faces.c (update_face_cachel_data): use it.
9822         * faces.c (add_face_cachel): use it. Complete background pixmap
9823         frobbing in face cache if `update_face_cachel_data' has not done so.
9824
9825 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9826
9827         * search.c (string_match_1): Don't set last_thing_searched
9828         when search failed.
9829
9830 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9831
9832         * buffer.c: Include casetab.h
9833         (common_init_complex_vars_of_buffer): Use new case-table object.
9834         * buffer.h: Include casetab.h
9835         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9836         (DOWNCASE_TABLE_OF): Ditto.
9837         * bufslots.h: Remove char-tables and add case-table.
9838         * casetab.c: Include casetab.h
9839         (CASE_TABLE_P): Removed.
9840         (mark_case_table): New function.
9841         (allocate_case_table): New function.
9842         (Fcase_table_p): Use new case-table.
9843         (case_table_char): New function.
9844         (Fget_case_table): Ditto.
9845         (Fput_case_table): Ditto.
9846         (Fput_case_table_pair): Ditto.
9847         (Fcopy_case_table): Ditto.
9848         (Fcurrent_case_table): Return case-table.
9849         (Fstandard_case_table): Return case-table.
9850         (Fset_case_table): Fix doc-string.
9851         (set_case_table): Use case-table
9852         (syms_of_casetab): DEFSUBR new functions.
9853         (complex_vars_of_casetab): Set up standard case-table.
9854         * casetab.h: New file.
9855         * editfns.c: Include casetab.h
9856         (Fcompare_buffer_substrings): Use case-table.
9857         * inline.c: Include casetab.h
9858         * lisp.h: Remove bogus extern.
9859         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9860         * search.c: Include casetab.h
9861         (TRANSLATE_ASCII): Removed.
9862         (TRANSLATE): Unconditionally translate character.
9863         (looking_at_1): Use case-table.
9864         (string_match_1): Ditto.
9865         (fast_string_match): Ditto.
9866         (search_command): Ditto.
9867         (search_buffer): Separate boyer_moore.  Check whether
9868         boyer_moore is possible.
9869         (simple_search): New function.
9870         (boyer_moore): Separated from search_buffer. Translate char.
9871
9872 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9873
9874         * regex.c (RE_TR_ASCII): Removed.
9875         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9876         (PATFETCH): Call PATFETCH_RAW.
9877         (PATFETCH_RAW): Fetch Emchar.
9878         (PATUNFETCH): Decrement charptr.
9879         (GET_BUFFER_SPACE): Rename b to buf_end.
9880         (BUF_PUSH): Ditto.
9881         (BUF_PUSH_2): Ditto.
9882         (BUF_PUSH_3): Ditto.
9883         (EXTEND_BUFFER): Ditto.
9884         (SET_LIST_BIT): Ditto.
9885         (regex_compile): Ditto.  Translate non ASCII char.
9886         (compile_range): Ditto.
9887         (re_search_2): Ditto.
9888         (re_match_2_internal): Compare Emchar.
9889         (bcmp_translate): Ditto.
9890
9891 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
9892
9893         * lisp.h (basic char/int typedefs):  comment improvement.
9894
9895 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
9896
9897         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
9898         unstomp inhibit_site_lisp.  Improve comments.
9899
9900 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
9901
9902         * mule-charset.c (Fcharset_property):  improve type checking, comments.
9903
9904 2000-11-28  Andy Piper  <andy@xemacs.org>
9905
9906         * redisplay-output.c (redisplay_output_subwindow): make sure we do
9907         clipped display for windows in the gutter also.
9908         (redisplay_display_boxes_in_window_p): change semantics of return
9909         codes to be more intuitive.
9910
9911         * gutter.h: declare display_boxes_in_gutter_p.
9912
9913         * gutter.c (display_boxes_in_gutter_p): new function for
9914         redisplay.
9915
9916 2000-11-22  Andy Piper  <andy@xemacs.org>
9917
9918         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
9919         autodetect domain.
9920
9921 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
9922
9923         * callproc.c (Fold_call_process_internal):
9924         * gpm.c (Freceive_gpm_event):
9925         (tty_get_foreign_selection): Might be just warning supression.
9926         * fileio.c (Fwrite_region_internal):
9927         (Fset_visited_file_modtime):
9928         * keymap.c (event_matches_key_specifier_p):
9929         Initialize GCPROed variable.
9930
9931         * menubar-x.c (command_builder_find_menu_accelerator):
9932         Initialize before use.
9933
9934 2000-11-23  Andy Piper  <andy@xemacs.org>
9935
9936         * unexcw.c (unexec): make the resulting executable executable.
9937
9938 2000-11-21  Martin Buchholz  <martin@xemacs.org>
9939
9940         * doc.c (get_doc_string):
9941         Use size_t, not int, for result of XSTRING_LENGTH.
9942
9943         * cmds.c (Fdelete_char):
9944         * cmds.c (Fpoint_at_eol):
9945         * cmds.c (Fself_insert_command):
9946         Use EMACS_INT, not int, for result of XINT.
9947         Someday, someone will want to insert more than 2**31 identical characters.
9948
9949         * cmds.c (Fdelete_char):
9950         * cmds.c (Fdelete_backward_char):
9951         * syntax.c (Fforward_word):
9952         * syntax.c (Fforward_comment):
9953         Make COUNT argument optional, for consistency with forward-char et al.
9954
9955 2000-11-22  Martin Buchholz  <martin@xemacs.org>
9956
9957         * lisp.h:
9958         * print.c (long_to_string):
9959         Return a useful value: the pointer at end of data written.
9960
9961         * doprnt.c:
9962         Use `static const char * const' for constant strings.
9963         (union printf_arg): Delete `i', `ui' members.
9964         (get_doprnt_args):
9965         (emacs_doprnt_1):
9966         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
9967         Do all printf-ing via the `l' specifier.
9968         Use EMACS_INT instead of int.
9969         Optimize.
9970
9971 2000-11-20  Didier Verna  <didier@xemacs.org>
9972
9973         * faces.c (update_face_cachel_data): don't frob the background
9974         pixmap when the window is being created. The face is needed but
9975         does not exist yet.
9976
9977 2000-11-20  Andy Piper  <andy@xemacs.org>
9978
9979         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
9980         messing with a debug environment.
9981
9982 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9983
9984         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
9985
9986 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9987
9988         * casetab.c (Fcase_table_p): Fix compile error and crash.
9989
9990 2000-11-18  Philip Aston  <philipa@mail.com>
9991
9992         * s/cygwin32.h: Cygwin has SVR4-like pty support.
9993
9994 2000-11-18  Martin Buchholz  <martin@xemacs.org>
9995
9996         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
9997         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
9998
9999 2000-11-17  Martin Buchholz  <martin@xemacs.org>
10000
10001         * config.h.in: Define HAVE_ELF_H if elf.h exists.
10002         * unexelf.c: Use HAVE_ELF_H.
10003         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
10004         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
10005         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
10006         Greg Harrington <greg_harrington@hotmail.com> provided a machine
10007         for testing.
10008         So this is an unexelfsgi.c from a different line of development.
10009
10010 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10011
10012         * regex.c (RE_TR_ASCII): New function.
10013         (RE_TRANSLATE): Call it.
10014
10015 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
10016
10017         * buffer.h (TRT_TABLE_OF): Remove assert.
10018         (IN_TRT_TABLE_DOMAIN): Removed.
10019
10020 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10021
10022         * free-hook.c (log_gcpro):
10023         (show_gcprohist): Add support for GCPRO5.
10024
10025 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
10026
10027         * emacs.c (main_1): Improve -sd error message when --pdump=no.
10028
10029 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
10030
10031         * symeval.h: Declare flush_all_buffer_local_cache.
10032
10033         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
10034         (flush_buffer_local_cache): Added.
10035         (flush_all_buffer_local_cache): Added.
10036
10037         * lrecord.h: Remove unused XD_LO_RESET_NIL.
10038
10039         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
10040         (pdump_dump_data): Ditto.
10041         (pdump_reloc_one): Ditto.
10042         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
10043         before dumping.
10044
10045
10046 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10047
10048         * buffer.c: Remove if 0'ed entry.
10049         * buffer.h: Rewrite TRT to use char-table.
10050         * bufslots.h: Remove mirror tables.
10051         * casetab.c: Remove mirror tables.
10052         (CASE_TABLE_P): New macro.
10053         (Fcase_table_p): Element of a case table is string or char-table.
10054         (make_mirror_trt_table): Removed.
10055         (set_case_table): Setup char-table from strings for backward
10056         compatibility.
10057         * dired.c (Fdirectory_files):
10058         * dired-msw.c: (mswindows_get_files):
10059         * lisp.h: Change prototype of re_pattern_buffer.
10060         * regex.c: (RE_TRANSLATE): New macro.
10061         (TRANSLATE_P): Ditto.
10062         Change translate to type RE_TRANSLATE_TYPE.
10063         * regex.h: Define RE_TRANSLATE_TYPE
10064         * search.c (TRANSLATE): New macro.
10065         (TRANSLATE_ASCII): New macro.
10066         Translate table is changed to Lisp_Object.
10067         (signal_failure): Inhibit return.
10068
10069 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
10070
10071         * device-msw.c:
10072         * eldap.c:
10073         * event-Xt.c:
10074         * event-stream.c:
10075         * print.c:
10076         Do UNGCPRO before return.
10077
10078 2000-11-14  Martin Buchholz <martin@xemacs.org>
10079
10080         * XEmacs 21.2.37 is released.
10081
10082 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
10083
10084         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
10085         Add comments about discarded return value.
10086
10087 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
10088
10089         * callint.c:
10090         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
10091
10092 2000-10-27  Andy Piper  <andy@xemacs.org>
10093
10094         * gutter.c (Fset_default_gutter_position): default left and right
10095         gutters to visible.
10096         (calculate_gutter_size): calculate resonable heuristic for left
10097         and right gutter sizes.
10098         (specifier_vars_of_gutter): change left and right gutter sizes to
10099         autodetect.
10100         (calculate_gutter_size_from_display_lines): new function.
10101         (output_gutter): check for resizing on left and right gutters.
10102         (clear_gutter): don't special case top and left gutters.
10103         (specifier_vars_of_gutter): use new signature for
10104         set_specifier_caching.
10105
10106         * glyphs-x.c (x_redisplay_widget): spelling fix.
10107         * glyphs.c (specifier_vars_of_glyphs):
10108         * menubar.c (specifier_vars_of_menubar):
10109         * redisplay.c (specifier_vars_of_redisplay):
10110         * toolbar.c (specifier_vars_of_toolbar):
10111         * window.c (specifier_vars_of_window):
10112         * scrollbar.c (specifier_vars_of_scrollbar):
10113         (complex_vars_of_scrollbar): use new signature for
10114         set_specifier_caching.
10115
10116         * specifier.c (set_specifier_caching): include recompute flag.
10117         (recompute_one_cached_specifier_in_window): always recompute if
10118         flag set.
10119         (recompute_one_cached_specifier_in_frame): ditto.
10120
10121         * specifier.h (struct specifier_caching): add recompute flag.
10122
10123 2000-10-24  Andy Piper  <andy@xemacs.org>
10124
10125         * unexcw.c (copy_executable_and_dump_data_section): add new
10126         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
10127         5.0 happy.
10128
10129 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10130
10131         * console-x.h (x_device): New member modifier_release_time.
10132         * event-Xt.c (x_handle_sticky_modifiers):
10133         Bound interval modifier keys are sticky.
10134         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
10135         * events.h: extern it.
10136
10137 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10138
10139         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
10140
10141 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
10142
10143         * event-stream.c (execute_command_event): Preserve current_events
10144         and the like when event is misc-user-event.
10145         Inhibit quit during the call to maybe_echo_keys.
10146
10147 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
10148
10149         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
10150         symlink when buffer is killed.
10151         (inhibit_clash_detection): New variable.
10152
10153 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10154
10155         * console.c (Fset_input_method): Trigger redisplay on tty.
10156
10157 2000-11-07  Martin Buchholz  <martin@xemacs.org>
10158
10159         * process.c (Fprocess_status): Revert to previous behavior:
10160         (process-status "nosuchprocess") ==> nil
10161
10162 2000-11-06  Martin Buchholz  <martin@xemacs.org>
10163
10164         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
10165         Work around another GCC 2.95.2 optimizer bug.
10166
10167 2000-11-02  Martin Buchholz  <martin@xemacs.org>
10168
10169         * process.c (Fget_process): Use LIST_LOOP_2.
10170         (kill_buffer_processes): Use LIST_LOOP_2.
10171
10172         * minibuf.c (Fall_completions):
10173         Delete old non-functional code for FSF fourth argument.
10174
10175         * frame.c (frame_matches_frame_spec):
10176         Renamed from `frame_matches_frametype'.  Update all callers.
10177         (device_matches_device_spec):
10178         Renamed from 'device_matches_console_spec'.  Update all callers.
10179
10180         * doc.c (Fsubstitute_command_keys):
10181         Remove buffer overflow crash.  Small code cleanups.
10182
10183         * casetab.c (check_case_table): Simpler code.
10184
10185         * window.c (Freplace_buffer_in_windows):
10186         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
10187         (and similar implementation) as Fdelete_windows_on.
10188         Update all callers.
10189
10190         * alloc.c (Fmake_list):
10191         * alloc.c (make_vector):
10192         * alloc.c (Fmake_vector):
10193         * alloc.c (make_bit_vector):
10194         * alloc.c (Fmake_bit_vector):
10195         * alloc.c (Fbit_vector):
10196         * alloc.c (Fmake_string):
10197         * alloc.c (Fpurecopy):
10198         * alloc.c (Fmemory_limit):
10199         * buffer.c:
10200         * buffer.c (Fget_buffer):
10201         * buffer.c (Fkill_buffer):
10202         * buffer.c (complex_vars_of_buffer):
10203         * bytecode.c (Fcompiled_function_stack_depth):
10204         * callint.c (Fprefix_numeric_value):
10205         * event-stream.c:
10206         * event-stream.c (Fread_key_sequence):
10207         * casetab.c:
10208         * casetab.c (Fcase_table_p):
10209         * casetab.c (check_case_table):
10210         * casetab.c (Fset_case_table):
10211         * casetab.c (Fset_standard_case_table):
10212         * chartab.c:
10213         * chartab.c (Fchar_table_type):
10214         * chartab.c (Freset_char_table):
10215         * chartab.c (Fget_char_table):
10216         * chartab.c (Fget_range_char_table):
10217         * chartab.c (Fput_char_table):
10218         * chartab.c (Fmap_char_table):
10219         * chartab.c (Fcategory_table_p):
10220         * chartab.c (Fcheck_category_at):
10221         * chartab.c (Fchar_in_category_p):
10222         * chartab.c (Fcategory_table):
10223         * chartab.c (Fcopy_category_table):
10224         * chartab.c (Fset_category_table):
10225         * chartab.c (Fcategory_designator_p):
10226         * chartab.c (Fcategory_table_value_p):
10227         * cmds.c (Fdelete_char):
10228         * cmds.c (Fdelete_backward_char):
10229         * cmds.c (Fself_insert_command):
10230         * cmds.c (Fself_insert_internal):
10231         * console.c (Fvalid_console_type_p):
10232         * console.c (Fcdfw_console):
10233         * console.c (Fconsole_type):
10234         * console.c (Fconsole_name):
10235         * console.c (Fconsole_device_list):
10236         * console.c (Fconsole_on_window_system_p):
10237         * data.c:
10238         * data.c (Feq):
10239         * data.c (Fold_eq):
10240         * data.c (Fsubr_interactive):
10241         * data.c (Fchar_to_int):
10242         * data.c (Fint_to_char):
10243         * data.c (Fsetcar):
10244         * data.c (Fsetcdr):
10245         * data.c (Fnumber_to_string):
10246         * data.c (Fstring_to_number):
10247         * data.c (Frem):
10248         * database.c (mark_database):
10249         * database.c (finalize_database):
10250         * database.c (Fdatabase_live_p):
10251         * database.c (Fdatabasep):
10252         * device-x.c (Fx_get_resource):
10253         * device.c (Fdfw_device):
10254         * dired.c:
10255         * dired.c (Ffile_name_completion):
10256         * dired.c (Ffile_name_all_completions):
10257         * dired.c (Fuser_name_completion):
10258         * dired.c (Fuser_name_completion_1):
10259         * dired.c (Fuser_name_all_completions):
10260         * doc.c (Fdocumentation):
10261         * doc.c (Fdocumentation_property):
10262         * doc.c (Fsubstitute_command_keys):
10263         * editfns.c:
10264         * editfns.c (Fchar_to_string):
10265         * editfns.c (Fstring_to_char):
10266         * editfns.c (Ftemp_directory):
10267         * editfns.c (Finsert_char):
10268         * editfns.c (Fbuffer_substring_no_properties):
10269         * editfns.c (Fnarrow_to_region):
10270         * editfns.c (Fchar_equal):
10271         * editfns.c (Fchar_Equal):
10272         * editfns.c (Ftranspose_regions):
10273         * emacs.c (Fdump_emacs):
10274         * eval.c (Fthrow):
10275         * eval.c (Fcommand_execute):
10276         * eval.c (Fautoload):
10277         * eval.c (Fbacktrace):
10278         * eval.c (Fbacktrace_frame):
10279         * events.c:
10280         * events.c (Fcopy_event):
10281         * events.c (Fcharacter_to_event):
10282         * events.c (Fevent_button):
10283         * events.c (Fevent_process):
10284         * extents.c:
10285         * extents.c (Fnext_extent_change):
10286         * extents.c (Fextent_property):
10287         * faces.c (Ffacep):
10288         * faces.c (Fmake_face):
10289         * file-coding.c:
10290         * file-coding.c (Fencode_shift_jis_char):
10291         * file-coding.c (Fencode_big5_char):
10292         * fileio.c (Ffile_name_directory):
10293         * fileio.c (Ffile_name_nondirectory):
10294         * fileio.c (Ffile_name_as_directory):
10295         * fileio.c (Fdirectory_file_name):
10296         * fileio.c (Ffile_truename):
10297         * fileio.c (Fsubstitute_in_file_name):
10298         * fileio.c (Ffile_modes):
10299         * fileio.c (Fset_file_modes):
10300         * fileio.c (Fset_default_file_modes):
10301         * fileio.c (Fverify_visited_file_modtime):
10302         * floatfns.c (Facos):
10303         * floatfns.c (Fasin):
10304         * floatfns.c (Fatan):
10305         * floatfns.c (Fcos):
10306         * floatfns.c (Fsin):
10307         * floatfns.c (Ftan):
10308         * floatfns.c (Fbessel_j0):
10309         * floatfns.c (Fbessel_j1):
10310         * floatfns.c (Fbessel_jn):
10311         * floatfns.c (Fbessel_y0):
10312         * floatfns.c (Fbessel_y1):
10313         * floatfns.c (Fbessel_yn):
10314         * floatfns.c (Ferf):
10315         * floatfns.c (Ferfc):
10316         * floatfns.c (Flog_gamma):
10317         * floatfns.c (Fexp):
10318         * floatfns.c (Fexpt):
10319         * floatfns.c (Flog):
10320         * floatfns.c (Flog10):
10321         * floatfns.c (Fsqrt):
10322         * floatfns.c (Fcube_root):
10323         * floatfns.c (Facosh):
10324         * floatfns.c (Fasinh):
10325         * floatfns.c (Fatanh):
10326         * floatfns.c (Fcosh):
10327         * floatfns.c (Fsinh):
10328         * floatfns.c (Ftanh):
10329         * floatfns.c (Fabs):
10330         * floatfns.c (Ffloat):
10331         * floatfns.c (Flogb):
10332         * floatfns.c (Fceiling):
10333         * floatfns.c (Ffloor):
10334         * floatfns.c (Fround):
10335         * floatfns.c (Ftruncate):
10336         * floatfns.c (Ffceiling):
10337         * floatfns.c (Fffloor):
10338         * floatfns.c (Ffround):
10339         * floatfns.c (Fftruncate):
10340         * fns.c (Fstring_equal):
10341         * fns.c (Fstring_lessp):
10342         * fns.c (concat2):
10343         * fns.c (concat3):
10344         * fns.c (vconcat2):
10345         * fns.c (vconcat3):
10346         * fns.c (Fsubstring):
10347         * fns.c (Fassoc):
10348         * fns.c (Fold_assoc):
10349         * fns.c (assoc_no_quit):
10350         * fns.c (Fassq):
10351         * fns.c (Fold_assq):
10352         * fns.c (assq_no_quit):
10353         * fns.c (Frassoc):
10354         * fns.c (Fold_rassoc):
10355         * fns.c (Frassq):
10356         * fns.c (Fold_rassq):
10357         * fns.c (rassq_no_quit):
10358         * fns.c (Fremassoc):
10359         * fns.c (remassoc_no_quit):
10360         * fns.c (Fremassq):
10361         * fns.c (remassq_no_quit):
10362         * fns.c (Fremrassoc):
10363         * fns.c (Fremrassq):
10364         * fns.c (remrassq_no_quit):
10365         * fns.c (Fsort):
10366         * fns.c (Fplist_get):
10367         * fns.c (Fplist_put):
10368         * fns.c (Fplist_remprop):
10369         * fns.c (Fplist_member):
10370         * fns.c (Flax_plist_get):
10371         * fns.c (Flax_plist_put):
10372         * fns.c (Flax_plist_remprop):
10373         * fns.c (Flax_plist_member):
10374         * fns.c (Fequal):
10375         * fns.c (Fold_equal):
10376         * fns.c (Frequire):
10377         * fns.c (Fbase64_encode_region):
10378         * fns.c (Fbase64_encode_string):
10379         * fns.c (Fbase64_decode_region):
10380         * frame.c:
10381         * frame.c (frame_matches_frame_spec):
10382         * frame.c (device_matches_device_spec):
10383         * frame.c (next_frame):
10384         * frame.c (previous_frame):
10385         * frame.c (Fnext_frame):
10386         * frame.c (Fprevious_frame):
10387         * frame.c (Fframe_property):
10388         * frame.c (Fset_frame_height):
10389         * frame.c (Fset_frame_size):
10390         * frame.h:
10391         * glyphs.c:
10392         * glyphs.c (if):
10393         * glyphs.c (decode_error_behavior_flag):
10394         * glyphs.c (Fmake_image_instance):
10395         * indent.c (Findent_to):
10396         * intl.c (Fignore_defer_gettext):
10397         * keymap.c (Fkeymapp):
10398         * keymap.c (Flookup_key):
10399         * lread.c:
10400         * lread.c (Fload_internal):
10401         * lread.c (Feval_buffer):
10402         * lread.c (Feval_region):
10403         * macros.c (Fexecute_kbd_macro):
10404         * marker.c (set_marker_internal):
10405         * marker.c (Fset_marker):
10406         * marker.c (set_marker_restricted):
10407         * marker.c (Fcopy_marker):
10408         * marker.c (noseeum_copy_marker):
10409         * menubar.c:
10410         * menubar.c (Fpopup_menu):
10411         * minibuf.c:
10412         * mule-charset.c (Fcharset_name):
10413         * mule-charset.c (Fchar_charset):
10414         * mule-charset.c (Fchar_octet):
10415         * mule-charset.c (Fsplit_char):
10416         * mule-wnnfns.c (Fwnn_open):
10417         * mule-wnnfns.c (Fwnn_dict_comment):
10418         * mule-wnnfns.c (Fwnn_quit_henkan):
10419         * mule-wnnfns.c (Fwnn_word_toroku):
10420         * mule-wnnfns.c (Fwnn_word_sakujo):
10421         * mule-wnnfns.c (Fwnn_word_use):
10422         * mule-wnnfns.c (Fwnn_hindo_set):
10423         * objects.c:
10424         * objects.c (Fmake_color_instance):
10425         * objects.c (Fmake_font_instance):
10426         * print.c (Fwrite_char):
10427         * process.c:
10428         * process.c (mark_process):
10429         * process.c (print_process):
10430         * process.c (get_process_from_usid):
10431         * process.c (Fprocessp):
10432         * process.c (Fprocess_live_p):
10433         * process.c (Fget_process):
10434         * process.c (Fget_buffer_process):
10435         * process.c (get_process):
10436         * process.c (Fprocess_id):
10437         * process.c (Fprocess_name):
10438         * process.c (Fprocess_command):
10439         * process.c (init_process_io_handles):
10440         * process.c (start_process_unwind):
10441         * process.c (Fstart_process_internal):
10442         * process.c (Fopen_multicast_group_internal):
10443         * process.c (Fset_process_window_size):
10444         * process.c (read_process_output):
10445         * process.c (send_process):
10446         * process.c (Fprocess_tty_name):
10447         * process.c (Fset_process_buffer):
10448         * process.c (Fprocess_buffer):
10449         * process.c (Fprocess_mark):
10450         * process.c (set_process_filter):
10451         * process.c (Fset_process_filter):
10452         * process.c (Fprocess_filter):
10453         * process.c (Fprocess_send_region):
10454         * process.c (Fprocess_send_string):
10455         * process.c (exec_sentinel):
10456         * process.c (Fset_process_sentinel):
10457         * process.c (Fprocess_sentinel):
10458         * process.c (status_notify):
10459         * process.c (Fprocess_status):
10460         * process.c (Fprocess_exit_status):
10461         * process.c (process_send_signal):
10462         * process.c (Fprocess_send_eof):
10463         * process.c (deactivate_process):
10464         * process.c (remove_process):
10465         * process.c (Fdelete_process):
10466         * process.c (kill_buffer_processes):
10467         * process.c (Fprocess_kill_without_query):
10468         * process.c (Fprocess_kill_without_query_p):
10469         * rangetab.c:
10470         * rangetab.c (Fget_range_table):
10471         * rangetab.c (Fput_range_table):
10472         * rangetab.c (Fremove_range_table):
10473         * rangetab.c (Fclear_range_table):
10474         * search.c:
10475         * search.c (Fskip_chars_forward):
10476         * search.c (Fskip_chars_backward):
10477         * search.c (Fskip_syntax_forward):
10478         * search.c (Fskip_syntax_backward):
10479         * search.c (search_command):
10480         * search.c (Freplace_match):
10481         * search.c (Fregexp_quote):
10482         * select.c (Fown_selection_internal):
10483         * select.c (Fselection_owner_p):
10484         * select.c (Fselection_exists_p):
10485         * select.c (Fget_selection_internal):
10486         * specifier.c:
10487         * symbols.c:
10488         * symbols.c (Fintern):
10489         * symbols.c (Fintern_soft):
10490         * symbols.c (Funintern):
10491         * symbols.c (Fapropos_internal):
10492         * symbols.c (Fset_default):
10493         * syntax.c:
10494         * syntax.c (Fsyntax_table_p):
10495         * syntax.c (Fcopy_syntax_table):
10496         * syntax.c (Fset_syntax_table):
10497         * syntax.c (Fchar_syntax):
10498         * syntax.c (syntax_match):
10499         * syntax.c (Fmatching_paren):
10500         * syntax.c (Fforward_word):
10501         * syntax.c (scan_lists):
10502         * syntax.c (Fscan_lists):
10503         * syntax.c (Fscan_sexps):
10504         * syntax.c (Fparse_partial_sexp):
10505         * toolbar.c (Fcheck_toolbar_button_syntax):
10506         * tooltalk.doc:
10507         * window.c:
10508         * window.c (Fwindowp):
10509         * window.c (Fwindow_live_p):
10510         * window.c (Fwindow_point):
10511         * window.c (Fdelete_window):
10512         * window.c (Fnext_window):
10513         * window.c (Fprevious_window):
10514         * window.c (Fother_window):
10515         * window.c (window_loop):
10516         * window.c (Fget_lru_window):
10517         * window.c (Fsplit_window):
10518         * window.c (Fenlarge_window):
10519         * window.c (Fenlarge_window_pixels):
10520         * window.c (Fshrink_window):
10521         * window.c (Fshrink_window_pixels):
10522         * window.c (change_window_height):
10523         * window.c (Fwindow_configuration_p):
10524         * window.c (Fcurrent_window_configuration):
10525         * window.h:
10526         * casefiddle.c (casify_object):
10527         * casefiddle.c (Fupcase):
10528         * casefiddle.c (Fdowncase):
10529         * casefiddle.c (Fcapitalize):
10530         * casefiddle.c (Fupcase_initials):
10531         * casefiddle.c (casify_region_internal):
10532         * casefiddle.c (casify_region):
10533         * casefiddle.c (Fupcase_region):
10534         * casefiddle.c (Fdowncase_region):
10535         * casefiddle.c (Fcapitalize_region):
10536         * casefiddle.c (Fupcase_initials_region):
10537         * casefiddle.c (Fupcase_word):
10538         * casefiddle.c (Fdowncase_word):
10539         * casefiddle.c (Fcapitalize_word):
10540         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10541         Replace 0 with '\0' when working with bytes.
10542         Replace initial "(" with "\(" in docstrings.
10543
10544 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10545
10546         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10547
10548         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10549
10550 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10551
10552         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10553
10554 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10555
10556         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10557         correctly.
10558
10559 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10560
10561         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10562         (inhibit_auto_save_session): New variable.
10563         (vars_of_fileio): Declare and initialize them.
10564         * fileio.c (Fdo_auto_save): Don't create session file if
10565         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10566
10567 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10568
10569         * sgiplay.c (play_internal): C++ compilability.
10570         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10571         * callproc.c (Fold_call_process_internal):
10572         Remove unused vars `env', `first'.
10573         * scrollbar.c (update_scrollbar_instance):
10574         #### unused var `current_window'.
10575         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10576         etc. within #ifdef NOT_YET.
10577         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10578         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10579         * specifier.c (specifier_instance):
10580         #### unused var `tag'.
10581         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10582
10583 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10584
10585         * fns.c (Fbutlast):
10586         * fns.c (list_sort):
10587         * fns.c (Ffillarray):
10588         * fns.c (bytecode_nconc2):
10589         * fns.c (Fnconc):
10590         * fns.c (mapcar1):
10591         * fns.c (Fmapconcat):
10592         Be pedantically 64-bit correct.  For the time when someone will
10593         want to have a list with length > 2**32.
10594
10595         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10596         Work around MIPSpro compiler bug.
10597
10598         * process-unix.c (unix_kill_child_process): Add snarky comment.
10599         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10600
10601         * config.h.in: Oops, _getpt ==> _getpty
10602
10603 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10604
10605         * config.h.in:
10606         * regex.c:
10607         Use void*, not char*, as return type of alloca().
10608
10609         * alloc.c (free_marker): Side effect inside assert expression!
10610
10611 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10612
10613         * mule-charset.c (Fset_charset_ccl_program): To check
10614         if the given ccl program is valid, use setup_ccl_program()
10615         instead of CHECK_VECTOR().
10616         (Fmake_charset): Likewise.
10617
10618 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10619
10620         * faces.c (get_extent_fragment_face_cache_index):
10621         Fix cachel.merged_faces memory leak.
10622
10623 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10624
10625         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10626         Reset MSB of octets obtained by DECODE_SJIS
10627         because of the incompatibility with Emacs.
10628         (ccl_driver)<CCL_ENCODE_SJIS>:
10629         Set MSB of octets before passing them to
10630         ENCODE_SJIS because of the incompatibility
10631         with Emacs.
10632
10633 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10634
10635         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10636         (DECLARE_LRECORD): Undo the last change.
10637         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10638
10639 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10640
10641         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10642         the implementation to lrecord_implementations_table.
10643
10644 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10645
10646         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10647         initial value of `lrecord_type_##c_name' and
10648         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10649         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10650         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10651         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10652         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10653
10654 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10655
10656         * miscplay.c (sndcnv8S_2mono):
10657         (sndcnv2monounsigned):
10658         (sndcnvULaw_2linear):
10659         (sndcnv16swap):
10660         Remove implementation-defined behavior.
10661
10662 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10663
10664         * input-method-xlib.c: Warning suppression.
10665
10666 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10667
10668         * mule-ccl.c: Sync up with Emacs 21.0.90.
10669         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10670         Do nothing.
10671         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10672         Likewise.
10673         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10674         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10675         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10676         leading char belongs to official 2-dimensional charset.
10677         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10678         write the given character as is.  Otherwise,
10679         if it is a multibyte char, convert it by
10680         non_ascii_set_charptr_emchar, then write it.
10681         (CCL_WRITE_STRING): Likewise.
10682         (ccl_get_compiled_code): New function.
10683         (setup_ccl_program): When ccl_prog is invalid,
10684         return -1.
10685         (Fregister_code_conversion_map): New function.
10686         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10687
10688         * mule-ccl.h: Sync up with Emacs 21.0.90.
10689         (Fregister_ccl_program): export it.
10690
10691         * redisplay-msw.c (separate_textual_runs):
10692         If ccl program is not valid, don't do ccl conversion.
10693
10694         * redisplay-x.c (separate_textual_runs): Ditto.
10695
10696         * file-coding.c (Fmake_coding_system):
10697         When type is ccl and value is vector, register it
10698         with a proper symbol.  And checks whether the
10699         given ccl program is valid.
10700         (mule_decode): When calling ccl_driver, if src indicates
10701         NULL pointer, set an empty string instead.
10702         (mule_encode): Likewise.
10703
10704 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10705
10706         The following large batch of changes gets us back to a state of
10707         C++ compilability.  Extbyte is now a char, which means that
10708         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10709
10710         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10711
10712         * sound.c (Fplay_sound): Type correctness.
10713
10714         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10715         (x_get_window_property): Type correctness.
10716         (receive_incremental_selection): unsigned char ==> Extbyte
10717         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10718         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10719         (Fx_store_cutbuffer_internal): Type correctness.
10720
10721         * process-unix.c (try_to_initialize_subtty): Type correctness.
10722
10723         * objects-x.c (x_print_color_instance): Type correctness.
10724         (x_print_font_instance): Type correctness.
10725         (x_list_fonts): SExtbyte ==> Extbyte.
10726         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10727         (x_find_charset_font): SExtbyte ==> Extbyte.
10728         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10729         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10730         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10731         Use bufbyte_strcmp.
10732
10733         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10734         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10735         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10736         (BYTE_C0_P): Use bit ops for char-signedness safety.
10737         (BYTE_C1_P): Use bit ops for char-signedness safety.
10738         (CHARSET_BY_LEADING_BYTE):
10739         (CHARSET_BY_ATTRIBUTES):
10740         Always use inline function.
10741         Use type_checking_assert.
10742         Hide chlook.
10743
10744         * mule-charset.c (non_ascii_charptr_copy_char):
10745         Modify to work with both ASCII and non-ASCII characters.
10746         Improve docs and variable names.
10747         Replace over-clever fall-through switch with a simple loop.
10748         (Lstream_get_emchar_1):
10749         Replace over-clever fall-through switch with a simple loop.
10750
10751         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10752         Warning suppression.
10753
10754         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10755         the return value of Lstream_getc, which could be EOF as well.
10756
10757         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10758
10759         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10760         APIs can be used on Extbytes without casts.  Risky!
10761         (SExtbyte): Remove.
10762         (UExtbyte): Remove.
10763
10764         * input-method-xlib.c (XIM_init_device):
10765         Use Xlib.h instead of IntrinsicP.h.
10766         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10767         which will break in X11R7.
10768         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10769         to call XRegisterIMInstantiateCallback with correct types.
10770
10771         * gui-x.c (button_item_to_widget_value): Type correctness.
10772
10773         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10774
10775         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10776         (xbm_instantiate_1): Type correctness.
10777         (BUILD_GLYPH_INST):  Type correctness.
10778
10779         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10780
10781         * file-coding.c:
10782         (decode_coding_sjis):
10783         (decode_coding_big5):
10784         (decode_coding_ucs4):
10785         (decode_coding_utf8):
10786         (decode_coding_iso2022):
10787         (decode_coding_no_conversion):
10788         Make all decoding functions take an Extbyte * arg.
10789         (encode_coding_sjis):
10790         (encode_coding_big5):
10791         (encode_coding_ucs4):
10792         (encode_coding_utf8):
10793         (encode_coding_iso2022):
10794         (encode_coding_no_conversion):
10795         Make all encoding functions take a Bufbyte * arg.
10796         Use size_t instead of unsigned int for memory sizes.
10797         Only cast to unsigned char whenever dereferencing Extbyte *.
10798
10799         * doc.c (unparesseuxify_doc_string): Type correctness.
10800
10801         * console-x.c (split_up_display_spec):
10802         Rewrite without using details of internal string representation.
10803         (x_semi_canonicalize_device_connection): Type correctness.
10804
10805         * config.h.in:
10806         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10807         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10808         (HAVE_XFREE386): Removed.
10809
10810         * buffer.h (DEC_CHARPTR): `const' correctness.
10811         (bufbyte_strcmp): New.
10812         (bufbyte_memcmp): New.
10813
10814         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10815
10816         * buffer.h (XCHAR_OR_CHAR_INT):
10817         Always use inline function.
10818         Remove redundant type checking assert() - XINT will abort quite nicely.
10819
10820 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10821
10822         * search.c (Freplace_match): Set newtext to an empty string.
10823
10824 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10825
10826         * s/decosf1-3.h: Remove #include of stropts.h
10827         * s/ptx.h: Remove #include of stropts.h
10828         * s/usg5-4.h: Remove #include of stropts.h
10829         * sysproc.h:
10830         * config.h.in:
10831         Use stropts.h, not sys/stropts.h.
10832         Use strtio.h, not sys/strtio.h.
10833
10834 2000-10-04  Martin Buchholz <martin@xemacs.org>
10835
10836         * XEmacs 21.2.36 is released.
10837
10838 2000-09-21  Andy Piper  <andy@xemacs.org>
10839
10840         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10841         changes still involve copying the widget tree.
10842         (update_widget_face): make sure a change is register in the widget
10843         tree. Call update_tab_widget_face appropriately.
10844         (update_tab_widget_face): ditto.
10845         (x_tab_control_redisplay): make sure non-structural changes still
10846         involve copying the widget tree.
10847
10848 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10849
10850         * lread.c (locate_file): Check the path element is non-nil.
10851
10852 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10853
10854         * lisp.h: Warning suppression for SCO compilers.
10855
10856         * redisplay-tty.c (reset_tty_modes): Fix crash.
10857         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10858
10859 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10860
10861         Big signal/process handling overhaul.  Bugs fixed:
10862         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10863         M-x comint-kill-subjob should work for both values nil and t of
10864         process-connection-type. It was broken on most platforms.
10865         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10866         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10867         * process-unix.c: Signal/Process handling overhaul.
10868         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10869         (allocate_pty): Use all available modern methods of allocating
10870         ptys, falling back to old style BSD allocation as a last resort.
10871         Use allegedly more secure Unix98 pty allocation by default.
10872         (allocate_pty_the_old_fashioned_way): New. the last resort.
10873         (unix_create_process): Push ptem, ldterm, ttcompat where
10874         available.  Autoconfiscate.
10875         (try_to_initialize_subtty): New.
10876         (unix_kill_child_process): Proper signal handling for ptys on most
10877         platforms, using special knowledge of AIX, BSD, etc...
10878         (unix_create_process): Always disconnect_controlling_terminal() for
10879         subprocesses, whether using ptys or not.
10880         * process.h: Remove old getpt-dependent PTY code.
10881         * process.c (Fprocess_send_signal): New, obvious generic function.
10882         (decode_signal): New.
10883         (Finterrupt_process):
10884         (Fkill_process):
10885         (Fquit_process):
10886         (Fstop_process):
10887         (Fcontinue_process):
10888         (Fsignal_process): Use decode_signal.
10889         (process_send_signal):
10890         Many docstring corrections.
10891         Allow any signal to be sent to a process object.
10892         * config.h.in: Add symbols for big signal/process overhaul.
10893         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
10894         * sysproc.h: Include process-related headers, where available:
10895         sys/stropts.h sys/strtio.h pty.h libutil.h
10896         * s/irix4-0.h:
10897         * s/irix5-0.h:
10898         * s/cygwin32.h:
10899         * s/gnu.h:
10900         * s/linux.h:
10901         * s/hpux.h:
10902         * s/aix3-1.h:
10903         Remove old S&M pty stuff.
10904         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
10905         * systty.h: Simplify cpp hackery, improve comments.
10906         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
10907
10908         * editfns.c (Fformat_time_string):
10909         Be a little more paranoid with the return value of ctime.
10910
10911         * fileio.c (check_executable):
10912         (check_writable):
10913         Use symbolic constants X_OK, W_OK.
10914
10915         * console-x.c (split_up_display_spec): Fix a warning.
10916
10917 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10918
10919         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
10920         * ntproc.c (sys_spawnve): make_string ==> build_string
10921         Small clarity improvements.
10922
10923 2000-09-30  Martin Buchholz  <martin@xemacs.org>
10924
10925         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
10926
10927         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
10928
10929         * config.h.in (HAVE_STRCASECMP): Remove.
10930
10931 2000-09-29  Martin Buchholz  <martin@xemacs.org>
10932
10933         * redisplay-output.c (redisplay_output_pixmap):
10934         Cleaner and possibly more 64-bit correct code.
10935
10936 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
10937
10938         * dumper.c (pdump_load_finish): move restoration of
10939         `noninteractive1' to emacs.c (main_1).
10940         * emacs.c (main_1): protect LISP-visible command-line flags
10941         from pdump_load().
10942
10943 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
10944
10945         * Makefile.in.in (versionclean):  Use EXE_TARGET and
10946         DUMP_TARGET instead of literal program names.
10947
10948 2000-09-20  Martin Buchholz  <martin@xemacs.org>
10949
10950         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
10951
10952 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10953
10954         * *: Spelling mega-patch
10955
10956 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10957
10958         * fns.c (bad_bad_turtle):
10959         Delete "Eek!" comment, since we fixed the bug to which it refers.
10960
10961 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10962
10963         * alloca.c: Replace REGISTER with register.
10964
10965 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
10966
10967         * file-coding.c (ucs_to_char): Use countof.
10968
10969 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10970
10971         * file-coding.c: (ucs_to_char):
10972         (complex_vars_of_file_coding):
10973         Use countof instead of sizeof.
10974         Use CHECK_NATNUM instead of CHECK_INT.
10975
10976         * sysdep.c (strcasecmp): Remove.
10977         * device-x.c (ascii_strcasecmp): New.
10978         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
10979         Avoid using non-standard non-portable strcasecmp.
10980
10981 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10982
10983         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
10984         * font-lock.c: remove reference to emacsfns.h.
10985         * search.c: small doc improvement.
10986         * event-Xt.c: correct file names in comments.
10987         * console-x.h Correct file names in comments.
10988         * frame.c: Correct file names in comments.
10989         * event-stream.c: remove Energize from comments.
10990
10991 2000-09-15  Martin Buchholz  <martin@xemacs.org>
10992
10993         * symeval.h (DEFERROR_STANDARD):
10994         (DEFERROR):
10995         (DEFSYMBOL):
10996         (DEFSYMBOL_NO_DUMP):
10997         (DEFSYMBOL_MULTIWORD_PREDICATE):
10998         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
10999         (DEFKEYWORD):
11000         The construct &##name is not sensible C.
11001         Fixes compilation errors with Unixware native compiler.
11002
11003 2000-09-14  Martin Buchholz  <martin@xemacs.org>
11004
11005         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
11006         (next_frame_internal): Removed.  We now just have next_frame.
11007         (next_frame):
11008         Write a simpler and cleaner one-pass algorithm.
11009         Remove called_from_delete_device arg and #ifdefed-out code.
11010         (previous_frame):
11011         Renamed from prev_frame.  Update callers.
11012         Cleaned up to have an analogous implementation to next_frame.
11013         (other_visible_frames_internal): Remove the
11014         called_from_delete_device bogus arg, and hence, remove this
11015         function.  Just use other_visible_frames().
11016
11017         * window.c (Fnext_window):
11018         Prettify docstring.
11019         Since next_frame() is guaranteed to return a frame, remove check
11020         for nil inserted in previous patch.
11021         (Fprevious_window):
11022         Prettify docstring.
11023         Make code look more like Fnext_window.
11024         (window_loop):
11025         Respect the `console' arg when iterating through windows.
11026         Fixes bug: (get-buffer-window buffer t device) not respecting
11027         the `device' arg.
11028         This function needs more work, as others have pointed out.
11029
11030         * frame.h: Rename prev_frame to previous_frame.
11031         device_matches_console_spec no longer takes a `frame' arg.
11032
11033         * s/gnu.h:
11034         * s/linux.h:
11035         * s/hpux.h:
11036         Use EMACS_BLOCK_SIGNAL instead of sigblock.
11037         From "Golubev I. N." <gin@mo.msk.ru>.
11038
11039         * make-src-depend: Fix typo.
11040
11041 2000-09-13  Martin Buchholz  <martin@xemacs.org>
11042
11043         * window.c (Fnext_window):
11044         next_frame() might return nil, not a frame.
11045         Fixes this crash:
11046         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11047
11048         * frame.c (next_frame_internal):
11049         We've passed a frame if we've passed its device.
11050         Fixes this crash:
11051         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
11052 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
11053
11054 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11055
11056         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11057         Allow option to suppress accelerators in menu/dialog items.
11058         (populate_or_checksum_helper): Pass dialog title through above.
11059
11060 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
11061
11062         * event-msw.c (mswindows_key_to_emacs_keysym):
11063         Add "pause" key, fix "menu" key.
11064
11065 2000-09-09  Martin Buchholz  <martin@xemacs.org>
11066
11067         * eval.c (reinit_vars_of_eval):
11068         Increase max_lisp_eval_depth to 1000,
11069         required for thai-xtis.el to byte-compile under some circumstances.
11070
11071 2000-09-04  Martin Buchholz  <martin@xemacs.org>
11072
11073         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
11074         From Kenichi Handa.
11075
11076 2000-09-01  Martin Buchholz  <martin@xemacs.org>
11077
11078         * make-src-depend: Make the generated Makefiles smaller.
11079
11080         * s/hpux.h (SETUP_SLAVE_PTY):
11081         Provide a %d in the format string for the errno argument.
11082
11083         * editfns.c (Ftemp_directory):
11084         Warning fix.
11085         Avoid buffer overrun on very long file name.
11086
11087         * input-method-xlib.c (XIM_init_device):
11088         6th parameter of XRegisterIMInstantiateCallback has different
11089         pointer types on different OSes, so simply cast to (void *).
11090
11091         * unexhp9k800.c: Warning fixes.  Fiddly changes.
11092
11093         * sysdll.c (dll_open):
11094         shl_load will hang hard if passed a NULL filename.
11095         Simply return NULL for compatibility with dlopen.
11096         * sysdll.c: Conform to XEmacs coding standards.
11097
11098         * sysdep.c (get_pty_max_bytes):
11099         Support pty input lines longer than 512 bytes on HP-UX 10.20.
11100
11101 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11102
11103         * tooltalk.c: Add #include <syssignal.h>
11104
11105 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
11106
11107         * s/hpux.h: Don't use undefined function sigunblock().
11108
11109 2000-08-31  Martin Buchholz  <martin@xemacs.org>
11110
11111         * config.h.in: Add HAVE_BALLOON_HELP.
11112         * emacs.c: Use HAVE_BALLOON_HELP.
11113         * Makefile.in.in (x_objs):
11114         Make Balloon Help conditional on finding shape.h.
11115
11116 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
11117
11118         * syntax.c (regex_emacs_buffer_p): New variable.
11119         * syntax.h (regex_emacs_buffer_p): extern.
11120         * search.c (looking_at_1):
11121         (string_match_1):
11122         (fast_string_match):
11123         (search_buffer): Set regex_emacs_buffer_p.
11124         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
11125         when before_dot, at_dot, after_dot.
11126
11127 2000-08-23  Andy Piper  <andy@xemacs.org>
11128
11129         * gui-x.c (popup_selection_callback): Only set action_occurred
11130         when we really have an image instance.
11131         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
11132
11133 2000-08-23  Andy Piper  <andy@xemacs.org>
11134
11135         * gui-msw.c (mswindows_handle_gui_wm_command): set
11136         action_occurred.
11137         * gui-x.c (popup_selection_callback): ditto.
11138
11139         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
11140         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
11141         (struct Lisp_Image_Instance): add action_occurred flag.
11142
11143         * glyphs.c (redisplay_subwindow): use action_occurred flag.
11144         (image_instance_changed): ditto.
11145         (reset_frame_subwindow_instance_cache): only unmap windows - do
11146         not remove them from the cache also.
11147
11148         * glyphs-widget.c (tab_control_update): better debug.
11149         (progress_gauge_update): ditto.
11150         (layout_update): ditto.
11151         (layout_instantiate): ditto.
11152         (tab_control_order_only_changed): cope with null pending items.
11153
11154         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
11155         debug. Force selection of an item when an action occurred. Cope
11156         with null pending_items.
11157         (mswindows_progress_gauge_redisplay): better debug.
11158         * glyphs-x.c (x_tab_control_redisplay): ditto.
11159
11160         * redisplay.c (redisplay_frame): reset the frame cache if the
11161         frame is garbaged.
11162
11163         * window.c (Fset_window_configuration): potentially re-enable
11164         frame cache reset.
11165         (window_unmap_subwindows): need to finalize instances here since
11166         it is only used in mark_window_as_deleted.
11167
11168 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
11169
11170         * nas.c (SndOpenDataForReading):
11171         nas.c (WaveOpenDataForReading):
11172         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
11173         Somehow escaped from the 2000-08-14 patch.
11174
11175 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
11176
11177         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
11178         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
11179
11180 2000-08-21  Andy Piper  <andy@xemacs.org>
11181
11182         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
11183         window if it is not already displayed.
11184
11185         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
11186         it is not already displayed.
11187
11188         * window.c (Fset_window_configuration): don't reset the frame
11189         cache.
11190
11191         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
11192         instances from the frame cache if we are actually finalizing them.
11193         (reset_frame_subwindow_instance_cache): reset frame cache only
11194         after unmapping everything.
11195         (map_subwindow): set displayed flag after mapping.
11196
11197 2000-08-21  Martin Buchholz  <martin@xemacs.org>
11198
11199         * data.c (indirect_function):
11200         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
11201
11202         * eval.c (function_argcount):
11203         Use original function when signaling errors.
11204
11205 2000-08-18  Andy Piper  <andy@xemacs.org>
11206
11207         * frame.c (delete_frame_internal): use new
11208         free_frame_subwindow_instances name.
11209
11210         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
11211         (add_tab_item): make return type correct.
11212         (mswindows_tab_control_instantiate): assert index of tab.
11213         (mswindows_tab_control_redisplay): Re-code to use
11214         gui_item_equal_sans_selected and gui_item_list_find_selected.
11215
11216         * glyphs-widget.c (tab_control_update): Correct comment.
11217
11218         * window.c (window_unmap_subwindows): use new
11219         unmap_subwindow_instance_cache_mapper.
11220         (window_unmap_subwindows_cache_mapper): deleted.
11221         (Fset_window_configuration): comparisons should now be with
11222         EQ. Preserve the subwindow instance cache across configuration
11223         changes.
11224         (allocate_window): ditto.
11225         (make_dummy_parent): ditto.
11226
11227         * glyphs.c (free_frame_subwindow_instances): rename from
11228         free_frame_subwindow_instance_cache. finalize all instances rather
11229         than just those in the display cache.
11230         (finalize_all_subwindow_instances): walk windows unmapping and
11231         finalizing subwindows.
11232         (unmap_subwindow_instance_cache_mapper): moved from
11233         window.c. Allow finalization as well as unmapping.
11234
11235         * gui.c (gui_item_list_find_selected): new function.
11236
11237         * gui.h (gui_item_list_find_selected): declare.
11238
11239         * glyphs-x.c (x_tab_control_redisplay): pick tab
11240         explicitly. Re-code to use gui_item_equal_sans_selected and
11241         gui_item_list_find_selected.
11242
11243         * glyphs-x.h: add lwlib-utils.h
11244
11245         * buffer.c (Frecord_buffer): undo previous change.
11246
11247 2000-08-09  Vin Shelton  <acs@xemacs.org>
11248
11249         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
11250         possible.  Create temporary files more securely.  The patch was
11251         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
11252         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
11253         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
11254         for details.
11255
11256 2000-08-07  Ben Wing  <ben@xemacs.org>
11257
11258         * getloadavg.c: remove duplicate (and windows-breaking)
11259         includes of fcntl.h and sys/file.h.
11260
11261         * nt.c: remove duplicate getloadavg() definition.
11262
11263         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11264         encodings.
11265
11266 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11267
11268         * eval.c (function_argcount): If function needs to be autoloaded
11269         actually use the loaded definition.
11270         GCPRO function.
11271
11272 2000-08-05  Ben Wing  <ben@xemacs.org>
11273
11274         * getloadavg.c: add prototype for getloadavg().  remove
11275         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11276         of the code).  remove duplicate header includes.
11277
11278         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11279
11280         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11281         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11282         useful load average.
11283
11284         * alloc.c (reinit_alloc_once_early): removed references to
11285         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11286         the lisp vars are the only things referencing the malloc_sbrk_*
11287         vars, and they were already if 0'd out.  these vars only exist
11288         in the older malloc.c, which is basically unused, and they're
11289         only for informational purposes.
11290
11291         * m\*.h: removed useless VIRT_ADDR_VARIES.
11292
11293         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11294
11295 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11296
11297         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11298         color if the image is a mono pixmap.
11299
11300 2000-07-30  Ben Wing  <ben@xemacs.org>
11301
11302         * Makefile.in.in (release):
11303         Remove stray @.
11304
11305         * buffer.c (directory_is_current_directory):
11306         * dired-msw.c (mswindows_get_files):
11307         * dired.c:
11308         * dired.c (Fdirectory_files):
11309         * dired.c (file_name_completion_stat):
11310         * dired.c (Ffile_attributes):
11311         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11312         preprocessor tricks, to avoid problems on some machines
11313         (e.g. SCO).
11314
11315         * callproc.c (egetenv): GC docs.
11316
11317         * console-msw.h:
11318         * console-msw.h (struct mswindows_dialog_id):
11319         * lrecord.h (lrecord_type):
11320         New object for use with MSW dialogs.
11321
11322         * console.h (struct console_methods):
11323         New enable/disable frame methods, for proper modal dialogs.
11324
11325         * device-msw.c (msprinter_default_printer): Fix to follow
11326         proper Mule conventions.
11327
11328         * device-msw.c:
11329         * device-msw.c (signal_open_printer_error):
11330         * device-msw.c (msprinter_init_device):
11331         * device-msw.c (ensure_not_printing):
11332         * device-msw.c (plist_get_margin):
11333         * device-msw.c (Fmsprinter_select_settings):
11334         * device-msw.c (finalize_devmode):
11335         * device-msw.c (Fmsprinter_settings_despecialize):
11336         * device-msw.c (signal_enum_priner_error):
11337         * extents.c (decode_extent):
11338         * extents.c (decode_map_extents_flags):
11339         * extents.c (decode_extent_at_flag):
11340         * extents.c (Fextent_at):
11341         * extents.c (Fextents_at):
11342         * extents.c (symbol_to_glyph_layout):
11343         [[[[2]]]] Use structured errors.
11344
11345         * dialog-msw.c:
11346         * dialog-msw.c (mswindows_is_dialog_msg):
11347         * dialog-msw.c (mark_mswindows_dialog_id):
11348         * dialog-msw.c (dialog_proc):
11349         * dialog-msw.c (handle_question_dialog_box):
11350         * dialog-msw.c (syms_of_dialog_mswindows):
11351         Define new object to clean up marking; use it as a dialog identifier.
11352         Call new delete-dialog-box-hook.
11353
11354         * dialog-x.c (dbox_selection_callback):
11355         * dialog-x.c (dbox_descriptor_to_widget_value):
11356         * dialog-x.c (x_make_dialog_box_internal):
11357         Call new delete-dialog-box-hook.
11358         Return an id.
11359
11360         * dialog.c:
11361         * dialog.c (syms_of_dialog):
11362         * dialog.c (vars_of_dialog):
11363         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11364
11365         * eval.c:
11366         * eval.c (signal_call_debugger):
11367         when noninteractive, output stack traces on the console instead
11368         of in a (never-seen) buffer.
11369
11370         * eval.c (signal_type_error):
11371         * eval.c (invalid_argument_2):
11372         * lisp.h:
11373         new funs for use w/structured errors.
11374
11375         * event-Xt.c:
11376         * event-Xt.c (x_to_emacs_keysym):
11377         * event-Xt.c (describe_event):
11378         * event-Xt.c (emacs_Xt_event_handler):
11379         * event-Xt.c (vars_of_event_Xt):
11380         * event-msw.c:
11381         * event-msw.c (mswindows_wnd_proc):
11382         * event-msw.c (vars_of_event_mswindows):
11383         rename {x,mswindows}-debug-events to debug-{}-events for
11384         consistency with other debug-foo variables.
11385
11386         * event-stream.c:
11387         document next-event more clearly.
11388
11389         * fileio.c (Ffile_name_directory):
11390         * fileio.c (Ffile_name_nondirectory):
11391         * fileio.c (Funhandled_file_name_directory):
11392         * fileio.c (file_name_as_directory):
11393         * fileio.c (Ffile_name_as_directory):
11394         * fileio.c (directory_file_name):
11395         * fileio.c (Fdirectory_file_name):
11396         * fileio.c (Fmake_temp_name):
11397         * fileio.c (Ffile_truename):
11398         * fileio.c (Fsubstitute_in_file_name):
11399         * fileio.c (expand_and_dir_to_file):
11400         * fileio.c (barf_or_query_if_file_exists):
11401         * fileio.c (check_executable):
11402         * fileio.c (Ffile_exists_p):
11403         * fileio.c (Ffile_writable_p):
11404         * fileio.c (Ffile_directory_p):
11405         * fileio.c (Ffile_regular_p):
11406         * fileio.c (Ffile_modes):
11407         * fileio.c (Ffile_newer_than_file_p):
11408         * fileio.c (Fverify_visited_file_modtime):
11409         * fileio.c (Fset_visited_file_modtime):
11410         * fileio.c (auto_save_1):
11411         (1). (2).
11412         fix up gcpro's.
11413
11414         * frame-msw.c:
11415         * frame-msw.c (mswindows_init_frame_1):
11416         * frame-msw.c (mswindows_enable_frame):
11417         * frame-msw.c (error_frame_unsizable):
11418         * frame-msw.c (msprinter_init_frame_1):
11419         * frame-msw.c (msprinter_init_frame_3):
11420         * frame-msw.c (console_type_create_frame_mswindows):
11421         (2).
11422         implement new enable/disable frame methods.
11423
11424         * frame-x.c:
11425         * frame-x.c (x_enable_frame):
11426         * frame-x.c (console_type_create_frame_x):
11427         implement new enable/disable frame methods.
11428
11429         * frame.c:
11430         * frame.c (Fdisable_frame):
11431         * frame.c (syms_of_frame):
11432         * frame.h (struct frame):
11433         implement new enable/disable frame methods/functions.
11434
11435         * general-slots.h:
11436         add initial-focus.
11437
11438         * glyphs-msw.c (mswindows_widget_instantiate):
11439         comment that initial-focus should be implemented.
11440
11441         * glyphs-widget.c:
11442         * glyphs-widget.c (check_valid_instantiator):
11443         * glyphs-widget.c (check_valid_orientation):
11444         * glyphs-widget.c (check_valid_tab_orientation):
11445         * glyphs-widget.c (check_valid_justification):
11446         * glyphs-widget.c (check_valid_border):
11447         * glyphs-widget.c (check_valid_callback):
11448         * glyphs-widget.c (check_valid_int_or_function):
11449         * glyphs-widget.c (check_valid_string_or_vector):
11450         * glyphs-widget.c (check_valid_item_list_1):
11451         * glyphs-widget.c (widget_validate):
11452         * glyphs-widget.c (combo_box_validate):
11453         * glyphs-widget.c (widget_instantiate):
11454         * glyphs-widget.c (syms_of_glyphs_widget):
11455         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11456         * glyphs-widget.c (image_instantiator_combo_box):
11457         * glyphs-widget.c (image_instantiator_scrollbar):
11458         * glyphs-widget.c (image_instantiator_tab_control):
11459         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11460         (2).
11461         support (unimplemented) keyword initial-focus.
11462         reindent long macros.
11463
11464         * glyphs-x.c (x_redisplay_widget):
11465         * glyphs-x.c (x_button_instantiate):
11466         * glyphs-x.c (x_button_redisplay):
11467         * glyphs-x.c (x_progress_gauge_instantiate):
11468         * glyphs-x.c (x_edit_field_instantiate):
11469         * glyphs-x.c (x_combo_box_instantiate):
11470         * glyphs-x.c (x_tab_control_instantiate):
11471         * glyphs-x.c (x_label_instantiate):
11472         * gui-x.c:
11473         * gui-x.c (button_item_to_widget_value):
11474         * gui-x.c (gui_items_to_widget_values_1):
11475         * gui-x.c (gui_item_children_to_widget_values):
11476         * gui-x.c (gui_items_to_widget_values):
11477         * gui-x.h:
11478         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11479         add new flag to gui-parsing routines to indicate whether
11480         accelerator specs should be supported.
11481
11482         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11483
11484         * glyphs.h (struct Lisp_Image_Instance):
11485         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11486         add initial-focus flag.
11487
11488         * gui.c:
11489         * gui.c (syms_of_gui):
11490         * gui.c (vars_of_gui):
11491         clean up menu-no-selection-hook.
11492
11493         * gui.h:
11494         support delete-dialog-box-hook.
11495
11496         * lread.c (Fload_internal):
11497         * lread.c (locate_file_in_directory_mapper):
11498         (1).
11499
11500         * lrecord.h:
11501         * lrecord.h (struct toolbar_button):
11502         * lrecord.h (syms_of_toolbar):
11503         document how to create a new object.
11504
11505         * menubar-msw.c (mswindows_char_is_accelerator):
11506         may be called on frames w/o menus.
11507
11508         * menubar.c (vars_of_menubar):
11509         clean up :filter docs.
11510
11511         * nt.c (readdir):
11512         * ntproc.c:
11513         (1).
11514
11515         * process-nt.c:
11516         * process-nt.c (validate_signal_number):
11517         * process-nt.c (signal_cannot_launch):
11518         * process-nt.c (nt_create_process):
11519         * process-nt.c (nt_send_process):
11520         * process-nt.c (nt_kill_child_process):
11521         * process-nt.c (nt_open_network_stream):
11522         * process-nt.c (syms_of_process_nt):
11523         (2).
11524         delete quote-handling.  call new lisp code that does it better.
11525
11526         * process-unix.c (connect_to_file_descriptor):
11527         * process-unix.c (allocate_pty):
11528         * process-unix.c (unix_send_process):
11529         * process-unix.c (unix_kill_child_process):
11530         * process-unix.c (unix_open_network_stream):
11531         * process-unix.c (unix_open_multicast_group):
11532         (1). (2).
11533
11534         * process.c:
11535         * process.c (Fstart_process_internal):
11536         (2).  need to canonicalize process path even if absolute.
11537
11538         * select-msw.c (symbol_to_ms_cf):
11539         * select-msw.c (ms_cf_to_symbol):
11540         * select-msw.c (cf_is_autofreed):
11541         * select-msw.c (mswindows_destroy_selection):
11542         * select.c:
11543         * select.c (syms_of_select):
11544         * select.h:
11545         support dibv5, fix bugs. (from Mike Alexander)
11546
11547         * select.c (Fget_selection_internal):
11548         * select.c (select_convert_out):
11549
11550         * sysdep.c:
11551         * sysdep.c (xemacs_stat):
11552         renamed.
11553
11554         * sysdep.c (mkdir):
11555         * sysdep.c (rmdir):
11556         but keep original stat() here because we provide encapsulation
11557         around these funs.
11558
11559         * sysfile.h:
11560         * sysfile.h (fstat):
11561         remove stat garbage.
11562
11563         * syswindows.h:
11564         fix X/MSW conflict.
11565         don't include tchar.h.  it's inappropriate because it makes
11566         compile-time distinctions when we want runtime distinctions.
11567         (we provide our own tchar replacements)
11568
11569         * toolbar.c:
11570         use default object printer for toolbar-button.
11571
11572         * unexcw.c:
11573         make sure we don't encapsulate.
11574
11575         * window.c (vars_of_window):
11576         emphasize that temp-buffer-show-hook is obsolete.
11577
11578 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11579
11580         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11581         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11582
11583         * events.c (Fevent_timestamp_lessp):
11584         Not 64-bit clean.  Use EMACS_INT, not int.
11585
11586 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11587
11588         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11589         unsigned int and changed the last enum to
11590         lrecord_type_last_built_in_type.
11591         (lrecord_implementations_table): changed prototype to know how
11592         long the array is supposed to be.
11593         (lrecord_type_count): new unsigned int to keep track of the
11594         current number of lisp lrecord types.
11595         (DEFINE_EXTERNAL_LRECORD):
11596         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11597         dynamic-modules to declare new lisp types. They are the same
11598         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11599         int for each new type, and increment lrecord_type_count by 1.
11600
11601         * alloc.c (lrecord_implementations_table): Changed to reference
11602         lrecord_type_last_built_in_type for the size of the array.
11603         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11604
11605 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11606
11607         * glyphs.h (check_valid_item_list): Renamed from
11608         check_valid_item_list_1.
11609
11610 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11611
11612         * select.c (Qselect_coerce): New.
11613         * select.c (Vselection_coercion_alist): New.
11614         * select.c (syms_of_select): Declare.
11615         * select.c (get-selection-internal): Use it.
11616         Use the new select-coerce functionality.
11617
11618         * select.c (select_coerce): New.
11619         * select.h (select_coerce): Declare.
11620         New function to coerce one type of data into another.
11621
11622 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11623
11624         * callproc.c (Fcall_process_internal):
11625         (Fcall_process_internal):
11626         * process-unix.c (unix_create_process):
11627         Save and restore the value of errno, so that error messages are accurate.
11628
11629 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11630
11631         * elhash.c (print_hash_table):
11632         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11633         Prettify docstrings and indentation.
11634
11635 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11636
11637         * window.c (Fwindow_pixel_edges): Subtract frame border and
11638         gutter size.
11639
11640 2000-07-31  Andy Piper  <andy@xemacs.org>
11641
11642         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11643         will acknowledge the change.
11644
11645         * glyphs.h: declare tab_control_order_only_changed.
11646
11647         * glyphs-x.c (x_tab_control_redisplay): use
11648         tab_control_order_only_changed.
11649
11650         * glyphs-widget.c (tab_control_order_only_changed): new function.
11651
11652         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11653         tab_control_order_only_changed.
11654
11655         * gui.c (gui_item_equal_sans_selected): new function.
11656         (gui_item_equal): use it.
11657
11658         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11659         :properties in favor of :items..
11660
11661         * glyphs-widget.c (check_valid_item_list): rename from
11662         check_valid_item_list_1.
11663         (check_valid_item_list_1): renamed.
11664         (combo_box_validate): deprecate :properties in favor of :items.
11665         (widget_instantiate): ditto.
11666         (tab_control_update): ditto.
11667         (image_instantiator_combo_box): ditto.
11668         (image_instantiator_tree_view): ditto.
11669         (image_instantiator_tab_control): ditto.
11670         (layout_post_instantiate): remove dead code.
11671
11672         * print.c (debug_print_no_newline): only write to debugger if in
11673         WIN32_NATIVE.
11674
11675         * elhash.c (Fmake_hash_table): update doc string.
11676
11677         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11678         messages whilst in GC. This at least stops XEmacs crashing but has
11679         the potential for wierd behaviour.
11680
11681 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11682
11683         * config.h.in:
11684         Make existence of s&m files optional.
11685
11686         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11687         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11688         * s/gnu.h: Remove HAVE_GETLOADAVG.
11689         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11690         * s/sol2.h: Remove HAVE_GETLOADAVG.
11691         * lisp.h: Remove getloadavg() declaration.
11692         * fns.c:
11693         Include <sys/loadavg.h> if available.
11694         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11695         * config.h.in:  Group together getloadavg()-related macros.
11696         Use only configure-time tests to detect getloadavg().
11697
11698 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11699
11700         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11701
11702 2000-07-25  Andy Piper  <andy@xemacs.org>
11703
11704         * syswindows.h: add tchar.h for native builds.
11705
11706         * frame.c (syms_of_frame): remove set-glyph-image.
11707
11708         * general-slots.h: add Qset_glyph_image.
11709
11710         * glyphs-widget.c (layout_update): add domain arg to
11711         set-glyph-image.
11712         (syms_of_glyphs_widget): remove set-glyph-image.
11713
11714 2000-07-23  Ben Wing  <ben@xemacs.org>
11715
11716         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11717         Vpopup_frame_list.
11718
11719 2000-07-22  Andy Piper  <andy@xemacs.org>
11720
11721         * symsinit.h: add syms_of_win32().
11722
11723         * gui-msw.c (syms_of_gui_mswindows): remove
11724         Fmswindows_shell_execute.
11725         (Fmswindows_shell_execute): moved to win32.c.
11726
11727         * emacs.c (main_1): add syms_of_win32 ().
11728
11729         * win32.c (init_potentially_nonexistent_functions): rewrite in
11730         compiler-friendly terms.
11731         (Fmswindows_shell_execute): move here from gui-msw.c.
11732         (syms_of_win32): new.
11733
11734         * device-msw.c (Fmswindows_printer_list): clean up args to
11735         EnumPrinters.
11736         Don't include tchar under cygwin or mingw.
11737         (msprinter_default_printer): make cygwin-friendly.
11738
11739 2000-07-21  Andy Piper  <andy@xemacs.org>
11740
11741         * glyphs-widget.c (image_instantiator_tree_view): use tab
11742         control's update function.
11743         (layout_property): new function. Retrieve items.
11744
11745         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11746         function. Re-populate the tree view from the pending items.
11747
11748         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11749         is designated the parent if the domain is an image instance. This
11750         is needed so that dirtiness can be cascade up the hierarchy and
11751         thus for layout children to be redisplayed correctly.
11752         (allocate_image_instance): rename glyph -> parent.
11753
11754         * redisplay.h: change redisplay_output_layout signature.
11755
11756         * redisplay-msw.c (mswindows_output_display_block): use domain
11757         arg.
11758
11759         * redisplay-x.c (x_output_display_block): use domain arg.
11760
11761 2000-07-10  Andy Piper  <andy@xemacs.org>
11762
11763         * window.c (Fset_window_configuration): add comment.
11764
11765         * redisplay-output.c (compare_runes):
11766         (redisplay_output_subwindow): redisplay rather than update subwindow.
11767         (redisplay_output_layout): ditto.
11768
11769         * redisplay-msw.c (mswindows_frame_output_end):
11770         (mswindows_frame_output_end): make defer window pos optional.
11771
11772         * lisp.h: add Flast.
11773
11774         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11775         normalize method. Change update method to be for changed
11776         instantiators. Add redisplay method. Change signature of layout
11777         method.
11778         (struct Lisp_Image_Instance): add instantiator.
11779         (IMAGE_INSTANCE_INSTANTIATOR): new.
11780         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11781         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11782         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11783
11784         * glyphs.c:
11785         (find_instantiator_differences): new function.
11786         (Fset_instantiator_property): new convenience function.
11787         (check_image_instance_structure): strictly check for vector
11788         instantiators.
11789         (normalize_image_instantiator): make non-static.
11790         (instantiate_image_instantiator): pass on dest_mask and use new
11791         signatures for image_instance_layout and friends.
11792         (mark_image_instance): mark the instantiator. Mark the subwindow
11793         face not the widget face.
11794         (image_instance_equal): add instantiator.
11795         (image_instance_hash): ditto.
11796         (allocate_image_instance): ditto.
11797         (Fset_image_instance_property): removed.
11798         (Fimage_instance_file_name): ditto.
11799         (Fcolorize_image_instance): ditto.
11800         (image_instance_layout): add offsets to be set.
11801         (update_image_instance): new function. update an image instance
11802         from its changed instantiator.
11803         (inherit_normalize): add dest_mask.
11804         (xbm_normalize): ditto.
11805         (xface_normalize): ditto.
11806         (xpm_normalize): ditto.
11807         (text_update): set_property -> update.
11808         (image_instantiate): use the glyph identity as a hash key, not the
11809         instantiator.
11810         (glyph_width): use new image_instance_layout signature.
11811         (glyph_ascent): ditto.
11812         (glyph_descent): ditto.
11813         (glyph_height): ditto.
11814         (glyph_query_geometry): ressurrect.
11815         (glyph_layout): ditto.
11816         (redisplay_subwindow): update -> redisplay.
11817         (syms_of_glyphs): add Fset_instantiator_property.
11818         (image_instantiator_format_create): set_property -> update.
11819
11820         * glyphs-x.c:
11821         (autodetect_normalize): add dest_maks to signature.
11822         (x_redisplay_subwindow): update -> redisplay.
11823         (x_redisplay_widget): ditto.
11824         (x_button_redisplay): ditto.
11825         (x_progress_gauge_redisplay): ditto.
11826         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11827         stacking order.
11828         (console_type_create_glyphs_x): update -> redisplay.
11829         (image_instantiator_format_create_glyphs_x): ditto.
11830
11831         * glyphs-widget.c:
11832         (check_valid_instantiator): disallow glyphs in the instantiator,
11833         they must now be vectors.
11834         (check_valid_instantiator_list): ditto.
11835         (glyph_instantiator_to_glyph): use internal symbol rather than
11836         intern.
11837         (widget_update): renamed from widget_set_property. Call cascaded
11838         update methods.
11839         (redisplay_widget): renamed from update_widget.
11840         (widget_layout): image_instance_layout now takes position as well
11841         as size.
11842         (widget_normalize): ditto.
11843         (widget_instantiate): ditto.
11844         (tab_control_query_geometry) ditto.:
11845         (tab_control_update): renamed from tab_control_set_property.
11846         (progress_gauge_update): set_property -> update.
11847         (layout_normalize): rewrite so that child instantiators are
11848         normalized also.
11849         (layout_update): new function. Create glyphs from the normalized
11850         children and cope with any other layout keywords. We do not
11851         instantiate children here that will be take care of by
11852         redisplay_output_layout.
11853         (layout_instantiate): call layout_update and not much else.
11854         (layout_post_instantiate): not sure whether this is needed
11855         anymore.
11856         (layout_query_geometry): query glyph geometry rather than
11857         image_instance geometry.
11858         (layout_layout): set offsets from pass in parameters. Use glyph
11859         geometry and layout functions rather than image instance ones.
11860         (native_layout_layout): ditto.
11861         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11862         (image_instantiator_widget): set_property -> update.
11863         (image_instantiator_buttons): ditto.
11864         (image_instantiator_progress_guage): ditto.
11865         (image_instantiator_tab_control): ditto.
11866         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11867         (image_instantiator_layout): add update method.
11868
11869         * glyphs-msw.c (bmp_normalize):
11870         (mswindows_resource_normalize): add dest_mask so that it can be
11871         proprogated by layout_normalize.
11872         (begin_defer_window_pos): make optional because it may not be the
11873         right thing to do and it introduces differences with X.
11874         (mswindows_unmap_subwindow): ditto.
11875         (mswindows_map_subwindow): ditto.
11876         (mswindows_redisplay_subwindow): renamed from
11877         mswindows_update_subwindow.
11878         (mswindows_redisplay_widget): ditto.
11879         (mswindows_button_redisplay): renamed from
11880         mswindows_button_update. Update is now what the instantiation
11881         function does for a changed instantiator.
11882         (mswindows_progress_gauge_instantiate): set the progress value
11883         here if appropriate.
11884         (mswindows_tab_control_redisplay): cope with re-ordering of the
11885         members of the tab widget by simply selecting the new top
11886         widget. This makes things appear ok if you click on a tab.
11887         (mswindows_combo_box_instantiate): image_instance_layout now takes
11888         position as well as size.
11889         (mswindows_progress_gauge_redisplay): renamed from
11890         mswindows_progress_gauge_update.
11891         (console_type_create_glyphs_mswindows): fix update -> redisplay.
11892         (image_instantiator_format_create_glyphs_mswindows): ditto.
11893
11894         * glyphs-eimage.c (jpeg_normalize):
11895         (gif_normalize):
11896         (png_normalize):
11897         (tiff_normalize): add dest_mask so that it can be proprogated by
11898         layout_normalize.
11899
11900         * elhash.c:
11901         (print_hash_table):
11902         (hash_table_weakness_validate):
11903         (decode_hash_table_weakness):
11904         (Fhash_table_weakness):
11905         (Fhash_table_type):
11906         (syms_of_elhash): use Ben's naming scheme for hashtable types..
11907
11908         * console.h (struct console_methods): move update_* to
11909         redisplay_*.
11910
11911 2000-07-20  Ben Wing  <ben@xemacs.org>
11912
11913         * *.[ch] (XSETOBJ): remove unused middle argument.
11914         lisp-disunion.h: correct wrap_object() to one argument.
11915
11916 2000-07-15  Ben Wing  <ben@xemacs.org>
11917
11918         * s/cygwin32.h:
11919         * s/cygwin32.h (CYGWIN_CONV_PATH):
11920         Add missing logb prototype for v1.1.
11921         Use post-b20 names and alias to pre-b20 names when pre-b20.
11922
11923         * s/windowsnt.h: [5].
11924
11925 2000-07-15  Ben Wing  <ben@xemacs.org>
11926
11927         * Makefile.in.in (x_objs):
11928         * Makefile.in.in (sheap_objs):
11929         * Makefile.in.in (objs):
11930         added win32.o, cosmetic cleanups.
11931
11932         * alloc.c (Fmake_byte_code):
11933         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
11934         etc. macros which declare their own args now.
11935
11936         * alloc.c (syms_of_alloc):
11937         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
11938
11939         * buffer.c:
11940         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
11941
11942         * buffer.c (Fget_file_buffer):
11943         Fixed GCPRO problem.
11944
11945         * buffer.c (get_truename_buffer):
11946         Fixed comment about GC checking.
11947
11948         * buffer.c (syms_of_buffer):
11949         Undeclared those dedicated frame funs.
11950         [2].
11951
11952         * buffer.h:
11953         Define convenience macros for internal/external conversions.
11954         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
11955         and Qenvironment_variable_encoding for cleaner code.
11956
11957         * bufslots.h:
11958         Remove dedicated-frame; in lisp.
11959
11960         * bytecode.c (funcall_compiled_function):
11961         [1].
11962
11963         * bytecode.c (syms_of_bytecode):
11964         [2].
11965
11966         * console-msw.c:
11967         * console-msw.c (mswindows_show_console): Rewrote.
11968
11969         * console-msw.c (Fmswindows_debugging_output): New.
11970         Sends to OutputDebugString (special MSWin debugger interface).
11971
11972         * console-msw.c (Fmswindows_message_box):
11973         Fixed stupid bugs so it works when called from kill-emacs.
11974
11975         * console-msw.c (syms_of_console_mswindows):
11976         Declare Fmswindows_debugging_output.
11977
11978         * console-msw.h:
11979         New MSWin prototypes.
11980
11981         * console-msw.h (struct mswindows_frame):
11982         New entry last-click-mods for improved button-modifier support.
11983
11984         * console-msw.h (FRAME_MSWINDOWS_POPUP):
11985         New struct entry `popup' with corresponding accessor.
11986
11987         * console-x.c:
11988         * console-x.c (split_up_display_spec):
11989         * console-x.c (get_display_arg_connection):
11990         * console-x.c (x_semi_canonicalize_console_connection):
11991         * console-x.c (x_canonicalize_device_connection):
11992         [[[6]]]: Change char to more specific type.
11993         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
11994
11995         * console-x.c (x_semi_canonicalize_console_connection):
11996         * console-x.c (x_canonicalize_device_connection):
11997         [[[9]]]: Fix up error signalling to use new structured error system.
11998
11999         * console-x.h:
12000         [[[4]]]: Define codesys aliases:
12001         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
12002         Qx_color_name_encoding, Qx_display_name_encoding.
12003
12004         * console.h (struct console_methods):
12005         New method make_dialog_box_internal supersedes older
12006         popup_dialog_box method.
12007
12008         * data.c:
12009         Define many new errors, part of new structured errors.
12010
12011         * data.c (init_errors_once_early):
12012         * data.c (syms_of_data):
12013         [2].
12014
12015         * device-msw.c (mswindows_init_device):
12016         [[[5]]]: Cleanup to support NT 3.51.
12017
12018         * device-msw.c (decode_devmode): Cleanup.
12019
12020         * device-msw.c (mswindows_handle_print_setup_dialog_box):
12021         * device-msw.c (mswindows_handle_print_dialog_box):
12022         * device-msw.c (mswindows_handle_page_setup_dialog_box):
12023         * device-msw.c (syms_of_device_mswindows):
12024         Delete the dialog box primitives recently introduced by Kirill and
12025         instead interface to general dialog box interface.
12026
12027         * device-x.c:
12028         * device-x.c (compute_x_app_name):
12029         * device-x.c (x_init_device):
12030         * device-x.c (Fx_valid_keysym_name_p):
12031         * device-x.c (Fx_set_font_path):
12032         [6].
12033         [7].
12034
12035         * device.h (wrap_device): New.
12036         First of its kind; meant to replace XSETDEVICE.
12037
12038         * dialog-msw.c: Many file-dialog symbols.
12039
12040         * dialog-msw.c (mswindows_register_popup_frame): New.
12041         * dialog-msw.c (mswindows_is_dialog_msg): New.
12042         For supporting kbd traversal in dialog boxes.
12043
12044         * dialog-msw.c (dialog_proc):
12045         Support hitting ESC in dialogs.
12046
12047         * dialog-msw.c (struct):
12048         Common dialog box errors.
12049
12050         * dialog-msw.c (handle_file_dialog_box): New.
12051         Add file dialog code.
12052
12053         * dialog-msw.c (handle_question_dialog_box):
12054         Redo existing code to support new question dialog syntax.
12055
12056         * dialog-msw.c (console_type_create_dialog_mswindows):
12057         We support new dialog console method.
12058
12059         * dialog-msw.c (syms_of_dialog_mswindows):
12060         * dialog-msw.c (vars_of_dialog_mswindows):
12061         New file dialog symbols, vars.
12062
12063         * dialog-x.c:
12064         * dialog-x.c (maybe_run_dbox_text_callback):
12065         * dialog-x.c (dbox_descriptor_to_widget_value):
12066         * dialog-x.c (x_make_dialog_box_internal):
12067         * dialog-x.c (console_type_create_dialog_x):
12068         Mule-ize entire file.
12069         Redo to support question dialog syntax.
12070         [6].
12071
12072         * dialog.c:
12073         * dialog.c (Fmake_dialog_box_internal):
12074         * dialog.c (syms_of_dialog):
12075         Kill old popup-dialog-box, replace with new primitive.
12076         Just call device method or signal error.
12077
12078         * eldap.c (Fldap_open):
12079         * eldap.c (Fldap_search_basic):
12080         * eldap.c (Fldap_add):
12081         * eldap.c (Fldap_modify):
12082         [1].
12083         [7].
12084
12085         * emacs.c:
12086         * emacs.c (make_arg_list_1):
12087         * emacs.c (make_arg_list):
12088         Mule-ize call to dll_init().
12089         [6].
12090         [8].
12091
12092         * emacs.c (make_argc_argv):
12093         * emacs.c (free_argc_argv):
12094         * emacs.c (init_cmdargs):
12095         * emacs.c (main_1):
12096         * emacs.c (Fkill_emacs):
12097         * emacs.c (Fdump_emacs):
12098         Update comments about what can be used in syms_* etc.
12099         Call init_win32() when necessary.
12100         Fix up MS Win dialog box in kill-buffer to actually work right.
12101         [7].
12102
12103         * eval.c:
12104         * eval.c (For):
12105         * eval.c (Fand):
12106         * eval.c (Fprogn):
12107         * eval.c (Fprog1):
12108         * eval.c (Fprog2):
12109         * eval.c (FletX):
12110         * eval.c (Flet):
12111         * eval.c (condition_case_3):
12112         * eval.c (Feval):
12113         * eval.c (function_argcount):
12114         * eval.c (funcall_lambda):
12115         [1].
12116
12117         * eval.c (type_error): New.
12118         * eval.c (maybe_type_error): New.
12119         * eval.c (continuable_type_error): New.
12120         * eval.c (maybe_continuable_type_error): New.
12121         * eval.c (type_error_with_frob): New.
12122         * eval.c (maybe_type_error_with_frob): New.
12123         * eval.c (continuable_type_error_with_frob): New.
12124         * eval.c (maybe_continuable_type_error_with_frob): New.
12125         New functions for use with structured errors.
12126
12127         * event-Xt.c:
12128         * event-Xt.c (x_event_to_emacs_event):
12129         Buttons are now modifiers too.
12130
12131         * event-Xt.c (emacs_Xt_current_event_timestamp):
12132         Implement new event method.
12133         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
12134
12135         * event-msw.c:
12136         * event-msw.c (ntpipe_shove_writer): [5].
12137         * event-msw.c (mswindows_enqueue_mouse_button_event):
12138         * event-msw.c (mswindows_drain_windows_queue):
12139         * event-msw.c (mswindows_wnd_proc): [7].
12140         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
12141         * event-msw.c (mswindows_modifier_state):
12142         Throughout: support new button modifiers.
12143
12144         * event-msw.c (emacs_mswindows_current_event_timestamp):
12145         Implement new event method.
12146         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
12147
12148         * event-stream.c:
12149         * event-stream.c (event_stream_current_event_timestamp): New.
12150         * event-stream.c (maybe_kbd_translate): New functionality.
12151         * event-stream.c (vars_of_event_stream):
12152         Document new kbd-translate-table functionality.
12153
12154         * event-stream.c (Fcurrent_event_timestamp): New.
12155         New primitive for use in fabricated events.
12156         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
12157
12158         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
12159
12160         * events.c:
12161         * events.c (Fmake_event):
12162         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
12163         [1].
12164         [9].
12165
12166         * events.c (format_event_object): fix gcc warnings.
12167
12168         * events.c (Fevent_timestamp): Document new primitives.
12169
12170         * events.c (TIMESTAMP_HALFSPACE): New.
12171
12172         * events.c (Fevent_timestamp_lessp): New.  New primitive for
12173         comparing timestamps correctly (half-space algorithm).
12174
12175         * events.c (Fevent_modifier_bits): Doc fix.
12176
12177         * events.c (Fevent_modifiers): Major doc addition.
12178         * events.c (event_x_y_pixel_internal): Typo fix.
12179         * events.c (syms_of_events): Declare new primitives.
12180
12181         * events.h:
12182         Update long comment for button modifiers, timestamps.
12183
12184         * events.h (struct event_stream):
12185         New current_event_timestamp method.
12186
12187         * extents.c:
12188         * extents.c (extent_in_region_p):
12189         * extents.c (decode_extent):
12190         * extents.c (Fset_extent_parent):
12191         * extents.c (decode_map_extents_flags):
12192         Fix gcc warnings.
12193         [9].
12194
12195         * extents.c (struct extent_at_arg):
12196         * extents.c (decode_extent_at_flag):
12197         * extents.c (extent_at_mapper):
12198         * extents.c (extent_at_bytind):
12199         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
12200         * extents.c (Fextents_at): New primitive. [9].
12201         * extents.c (symbol_to_glyph_layout): [9].
12202         Support new primitive `extents-at'.
12203
12204
12205         * extents.c (get_text_property_bytind):
12206         extent_at_bytind has another arg.
12207         [9].
12208
12209         * extents.c (syms_of_extents): New primitive.
12210
12211         * file-coding.c (Fmake_coding_system): [1].
12212         * file-coding.c (subsidiary_coding_system): fix gcc warning
12213         * file-coding.c (syms_of_file_coding): [2].
12214
12215         * fileio.c (Fexpand_file_name):
12216         * fileio.c (Fsysnetunam):
12217         * fileio.c (Ffile_exists_p):
12218         * fileio.c (Ffile_executable_p):
12219         * fileio.c (Fverify_visited_file_modtime):
12220         Clean up GCPROing.
12221
12222         * fileio.c (syms_of_fileio): [2].
12223
12224         * filelock.c (lock_file_1):
12225         * filelock.c (current_lock_owner):
12226         * filelock.c (lock_if_free):
12227         * filelock.c (lock_file):
12228         * filelock.c (unlock_file):
12229         Clean up GCPROing.
12230
12231         * fns.c (concat): Fix gcc warning.
12232
12233         * fns.c (Fmember):
12234         * fns.c (Fold_member):
12235         * fns.c (Fmemq):
12236         * fns.c (Fold_memq):
12237         * fns.c (memq_no_quit):
12238         * fns.c (Fassoc):
12239         * fns.c (Fold_assoc):
12240         * fns.c (Fassq):
12241         * fns.c (Fold_assq):
12242         * fns.c (assq_no_quit):
12243         * fns.c (Frassoc):
12244         * fns.c (Fold_rassoc):
12245         * fns.c (Frassq):
12246         * fns.c (Fold_rassq):
12247         * fns.c (rassq_no_quit):
12248         * fns.c (Fdelete):
12249         * fns.c (Fold_delete):
12250         * fns.c (Fdelq):
12251         * fns.c (Fold_delq):
12252         * fns.c (delq_no_quit):
12253         * fns.c (Fremassoc):
12254         * fns.c (Fremassq):
12255         * fns.c (remassq_no_quit):
12256         * fns.c (Fremrassoc):
12257         * fns.c (Fremrassq):
12258         * fns.c (remrassq_no_quit):
12259         * fns.c (Freverse):
12260         * fns.c (mapcar1):
12261         [1].
12262
12263         * frame-msw.c (mswindows_init_frame_1):
12264         * frame-msw.c (mswindows_delete_frame):
12265         Register popups with dialog code so keyboard traversing works.
12266
12267         * frame-tty.c (tty_raise_frame_no_select): [1].
12268
12269         * frame-x.c:
12270         * frame-x.c (x_set_frame_text_value):
12271         * frame-x.c (x_set_frame_properties):
12272         * frame-x.c (x_create_widgets):
12273         [7].
12274
12275         * frame.c:
12276         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12277
12278         * frame.h (wrap_frame): New.
12279         Macro like wrap_device.
12280
12281         * general.c:
12282         * general.c (SYMBOL):
12283         * general.c (syms_of_general):
12284         Major reorg.  This is now just a wrapper and symbols themselves
12285         are listed in general-slots.h.
12286
12287         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12288         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12289
12290         * glyphs-msw.c (mswindows_native_layout_instantiate):
12291         Add DS_CONTROL so keyboard traversal will work.
12292
12293         * glyphs-widget.c:
12294         * glyphs-widget.c (syms_of_glyphs_widget):
12295         Move some symbols to general-slots.h.
12296
12297         * glyphs-x.c:
12298         * glyphs-x.c (xbm_instantiate_1):
12299         * glyphs-x.c (x_xbm_instantiate):
12300         * glyphs-x.c (x_xface_instantiate):
12301         * glyphs-x.c (autodetect_instantiate):
12302         * glyphs-x.c (cursor_font_instantiate):
12303         * glyphs-x.c (x_update_widget):
12304         * glyphs-x.c (x_widget_instantiate):
12305         * glyphs.c (bitmap_to_lisp_data):
12306         * glyphs.c (pixmap_to_lisp_data):
12307         [7].
12308
12309         * glyphs.c (syms_of_glyphs):
12310         [2].
12311
12312         * gui-x.c:
12313         * gui-x.c (print_widget_value):
12314         * gui-x.c (menu_separator_style_and_to_external):
12315         * gui-x.c (add_accel_and_to_external):
12316         * gui-x.c (button_item_to_widget_value):
12317         * gui-x.c (gui_items_to_widget_values_1):
12318         * gui-x.c (gui_items_to_widget_values):
12319         * gui-x.c (syms_of_gui_x):
12320         * gui-x.c (vars_of_gui_x):
12321         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12322         [9].
12323
12324         * gui-x.h:
12325         Muleize, prototype changes matching gui-x.c.
12326
12327         * gui.c:
12328         * gui.c (separator_string_p):
12329         * gui.c (gui_item_add_keyval_pair):
12330         * gui.c (make_gui_item_from_keywords_internal):
12331         * gui.c (signal_too_long_error):
12332         * gui.c (parse_gui_item_tree_item):
12333         * gui.c (syms_of_gui):
12334         * gui.c (vars_of_gui):
12335         * gui.h:
12336         menu-no-selection-hook moved here (used by MSWin).
12337         Move some symbols to general-slots.h.
12338         [6].
12339         [9].
12340
12341         * insdel.c (get_buffer_pos_char):
12342         * insdel.c (get_buffer_range_char):
12343         Add GC comments.
12344
12345         * keymap.c (keymap_lookup_directly):
12346         * keymap.c (keymap_store):
12347         * keymap.c (ensure_meta_prefix_char_keymapp):
12348         * keymap.c (describe_map):
12349         * keymap.h:
12350         Support new button modifiers.
12351
12352         * lisp-disunion.h (wrap_object):
12353         * lisp-disunion.h (XSETOBJ):
12354         Rename make_obj to wrap_object.
12355
12356         * lisp-union.h:
12357         * lisp-union.h (make_int):
12358         * lisp-union.h (make_char):
12359         Support wrap_object.
12360
12361         * lisp.h:
12362         * lisp.h (LIST_LOOP):
12363         * lisp.h (EXTERNAL_LIST_LOOP):
12364         * lisp.h (LIST_LOOP_2):
12365         * lisp.h (EXTERNAL_LIST_LOOP_1):
12366         * lisp.h (EXTERNAL_LIST_LOOP_2):
12367         * lisp.h (EXTERNAL_LIST_LOOP_3):
12368         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12369         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12370         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12371         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12372         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12373         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12374         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12375         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12376         * lisp.h (struct Lisp_Symbol):
12377         * lisp.h (maybe_continuable_error_with_frob):
12378         Fix up section comments.
12379         Add new types for char to indicate usage.
12380         Delete symbols auto-generated from general-slots.h.
12381         Add prototypes for structured error functions.
12382         Add long comments describing looping macros and change interface
12383         so that lvalues are automatically declared.
12384         Add NO_DECLARE macro in case callers want to declare lvalues
12385         themselves.
12386
12387         * lread.c (read_syntax_error):
12388         * lread.c (continuable_read_syntax_error):
12389         * lread.c (read_structure):
12390         * lread.c (sequence_reader):
12391         * lread.c (read_list_conser):
12392         * lread.c (read_compiled_function):
12393         Rename syntax_error and continuable_syntax_error to avoid clash
12394         with same-named structured error functions.
12395
12396         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12397         * menubar-msw.c (populate_menu_add_item):
12398         * menubar-msw.c (populate_or_checksum_helper):
12399         [5].
12400         [9].
12401
12402         * menubar-x.c:
12403         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12404         Mule-ize whole file.
12405
12406         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12407
12408         * mule-charset.c (Fmake_charset):
12409         * mule-wnnfns.c (Fwnn_set_param):
12410         [1].
12411
12412         * ntproc.c (create_child):
12413         * ntproc.c (Fwin32_set_current_locale):
12414         Add comments portending doom.
12415
12416         * objects-msw.c:
12417         * objects-msw.c (old_font_enum_callback_2):
12418         * objects-msw.c (font_enum_callback_1):
12419         * objects-msw.c (mswindows_enumerate_fonts):
12420         [5].
12421
12422         * objects-x.c:
12423         * objects-x.c (allocate_nearest_color):
12424         * objects-x.c (x_parse_nearest_color):
12425         * objects-x.c (x_initialize_color_instance):
12426         * objects-x.c (x_print_color_instance):
12427         * objects-x.c (x_finalize_color_instance):
12428         * objects-x.c (x_valid_color_name_p):
12429         * objects-x.c (x_initialize_font_instance):
12430         * objects-x.c (x_print_font_instance):
12431         * objects-x.c (valid_x_font_name_p):
12432         * objects-x.c (truename_via_FONT_prop):
12433         * objects-x.c (truename_via_random_props):
12434         * objects-x.c (truename_via_XListFonts):
12435         * objects-x.c (x_font_truename):
12436         * objects-x.c (x_font_instance_truename):
12437         * objects-x.c (x_font_instance_properties):
12438         * objects-x.c (x_list_fonts):
12439         * objects-x.c (x_find_charset_font):
12440         Mule-ize entire file.
12441         [7].
12442
12443         * objects-x.h:
12444         Mule-verify.
12445
12446         * print.c:
12447         * print.c (std_handle_out_external):
12448         * print.c (debug_print_no_newline):
12449         * print.c (syms_of_print):
12450         Output to all debugger kinds in debug-print.
12451         Fix console-output code under MSWin to actually work.
12452
12453         * process-nt.c (send_signal):
12454         * process-nt.c (nt_create_process):
12455         Use newer Unicode macros.
12456
12457         * process-unix.c (unix_create_process):
12458         * process-unix.c (unix_canonicalize_host_name):
12459         * process-unix.c (unix_open_network_stream):
12460         [7].
12461
12462         * scrollbar-x.c:
12463         Mule-verify.
12464
12465         * search.c (syms_of_search):
12466         [2].
12467
12468         * select-msw.c (mswindows_destroy_selection):
12469         Use LIST_LOOP_2.
12470
12471         * select-x.c (symbol_to_x_atom):
12472         [7].
12473
12474         * select.c (syms_of_select):
12475         [2].
12476
12477         * sound.c (Fplay_sound_file):
12478         [7].
12479
12480         * specifier.c:
12481         * specifier.c (decode_specifier_type):
12482         * specifier.c (Fvalid_specifier_locale_type_p):
12483         * specifier.c (check_valid_locale_or_locale_type):
12484         * specifier.c (decode_locale):
12485         * specifier.c (decode_locale_type):
12486         * specifier.c (decode_locale_list):
12487         * specifier.c (check_valid_domain):
12488         * specifier.c (decode_specifier_tag_set):
12489         * specifier.c (Fcanonicalize_tag_set):
12490         * specifier.c (Fdefine_specifier_tag):
12491         * specifier.c (Fspecifier_tag_predicate):
12492         * specifier.c (check_valid_inst_list):
12493         * specifier.c (check_valid_spec_list):
12494         * specifier.c (decode_how_to_add_specification):
12495         * specifier.c (check_modifiable_specifier):
12496         * specifier.c (specifier_add_spec):
12497         * specifier.c (boolean_validate):
12498         * specifier.c (display_table_validate):
12499         [9].
12500
12501         * specifier.c (syms_of_specifier):
12502         Move some symbols to general-slots.h.
12503         [2].
12504
12505         * symbols.c:
12506         * symbols.c (Fmapatoms):
12507         * symbols.c (Fapropos_internal):
12508         Add GCPROs.
12509
12510         * symbols.c (set_default_buffer_slot_variable):
12511         * symbols.c (set_default_console_slot_variable):
12512         [1].
12513
12514         * symbols.c (defsymbol_massage_name_1):
12515         * symbols.c (defkeyword_massage_name):
12516         * symbols.c (deferror_1):
12517         * symbols.c (deferror):
12518         * symbols.c (deferror_massage_name_and_message):
12519         * symeval.h:
12520         * symeval.h (DEFSYMBOL):
12521         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12522
12523         * symbols.c (syms_of_symbols):
12524         [2].
12525
12526         * symsinit.h:
12527         * symsinit.h (init_win32): New.
12528         Also new is syms_of_dialog_mswindows.
12529
12530         * syswindows.h:
12531         Add new Unicode macros, missing Cygwin wide-char functions,
12532         convenience conversion macros for Qmswindows_tstr, macros for
12533         encapsulating required MSWin <-> Cygwin filename conversions,
12534         prototype for dynamically-extracted (not in NT 3.51) functions.
12535
12536         * toolbar-x.c:
12537         Mule-verify.
12538
12539         * tooltalk.c (Fadd_tooltalk_message_arg):
12540         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12541         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12542         [7].
12543
12544         * tooltalk.c (syms_of_tooltalk):
12545         [2].
12546
12547         * unexnt.c:
12548         * unexnt.c (unexec):
12549         Fix up headers, declaration of unexec() to be more standard.
12550
12551 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12552
12553         * offix.h: Revert change to guard macros - they're used in offix.c!
12554
12555 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12556
12557         * lisp.h: Defsubred Fdelete.
12558
12559         * console-msw.h:  (msprinter_default_printer): Added.
12560
12561         * console-msw.c (msprinter_canonicalize_console_connection):
12562         (msprinter_canonicalize_device_connection): Added.
12563
12564         * device-msw.c (msprinter_default_printer):
12565         (Fmswingows_get_default_printer):
12566         (signal_enum_priner_error):
12567         (Fmswingows_printer_list): Added.
12568
12569 2000-07-19  Martin Buchholz <martin@xemacs.org>
12570
12571         * XEmacs 21.2.35 is released.
12572
12573 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12574
12575         * select-x.c (x_handle_selection_request):
12576         Text selected in xemacs and pasted into xterm failed to appear.
12577         Spelling fixes and cosmetic changes.
12578
12579 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12580
12581         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12582         XEmacs frame (fix for doubling chars in dialog boxes).
12583
12584 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12585
12586         * select.c (select_convert_in, select_convert_out):
12587         Don't call intern() every time.
12588
12589         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12590         * select.c (vars_of_select): Initialise them.
12591
12592 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12593
12594         * select.c (selection-coercible-types): New.
12595
12596         * select.c (own-selection-internal):
12597         * select.c (get-selection-internal):
12598         MULE bug fix - these should default to COMPOUND_TEXT and not
12599         STRING for MULE. I think.
12600
12601         * select.c (select_convert_out): Use selection-coercible-types
12602         to find types that we can attempt to perform coercions on.
12603
12604 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12605
12606         * mule-wnnfns.c:
12607         * mule-canna.c:
12608         Add coding: cookie to identify encoding.
12609
12610         * mule-canna.c (CANNA_mode_keys): make static.
12611         Use proper prototypes, even for functions of no arguments.
12612         Remove external prototype for Fding().
12613
12614         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12615
12616         * select.c (syms_of_select): Add missing DEFSUBR.
12617
12618 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12619
12620         * select.c (get_selection_internal, own_selection_internal):
12621         Make the type default to STRING, rather than placing a nil type
12622         into Vselection_alist.
12623
12624 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12625
12626         * gpmevent.c (tty_selection_exists_p):
12627         * gpmevent.c (tty_own_selection):
12628         Updated parameter lists.
12629
12630 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12631
12632         * select.h (selection-alist): Removed declaration.
12633
12634         * select.h (get_local_selection):
12635         * select.c (get_local_selection):
12636         Made static.
12637
12638         * select.h (convert_selection): Removed declaration.
12639         * select.c (convert_selection): Removed.
12640         This function belongs in Lisp.
12641
12642         * select.h (select_convert_in): Declare.
12643         * select.h (select_convert_out): Declare.
12644         * select.c (select_convert_in): New.
12645         * select.c (select_convert_out): New.
12646         New conversion functions for other files to call.
12647
12648         * select.h (select_notify_buffer_kill): Declare.
12649         * select.c (select_notify_buffer_kill): New.
12650         New functions that get called from kill-buffer.
12651
12652         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12653         X-specific lisp code.
12654
12655         * select.h: Declare some of the lisp-visible functions for
12656         external use.
12657
12658         * select.c (clean_local_selection_data): Removed. This was
12659         a disgusting function, and previously should have been in
12660         select-x.c in any case. The functionality is now provided
12661         in select-convert-from-integer (select.el).
12662
12663         * select.c (available-selection-types): Fixed stupidity where
12664         INTEGER and ATOM got added twice. Also add STRING when we see an
12665         extent.
12666
12667         * select.c (get-selection-internal): Removed symbol stripping. No
12668         longer causes conversion when data comes from the internal cache.
12669
12670         * select.c (syms_of_select): Added new functions.
12671
12672         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12673         error checking - previously this called abort!
12674
12675         * select-x.c (x_own_selection): Changed comment.
12676
12677         * select-x.c (x_handle_selection_request): Use select_convert_out.
12678         Don't mess with selection-alist; it's an internal variable of select.c.
12679
12680         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12681
12682         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12683         rather than messing with selection-alist.
12684
12685         * select-msw.c (mswindows_get_foreign_selection):
12686         Use TO_INTERNAL_FORMAT rather than hacking.
12687
12688 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12689
12690         * process-unix.c (unix_open_multicast_group):
12691         (unix_open_multicast_group): Remove useless casts.
12692
12693 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12694
12695         * sound.c (Fplay_sound): Fix `unused variable' warning.
12696
12697         * emacs.c (main): Use correct type for _environ on SCO5.
12698
12699 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12700
12701         * console.h (own_selection_method):
12702         * console.h (selection_exists_p_method):
12703         * console.h (available_selection_types_method): New.
12704         * console.h (register_selection_data_type_method): New.
12705         * console.h (selection_data_type_name): New.
12706
12707         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12708         function & alist to track GlobalAlloc()'d handles that need
12709         releasing when the clipboard data gets replaced or emptied.
12710
12711         * event-msw.c (mswindows_wnd_proc): Call it.
12712
12713         * lisp.h, general.c (Qappend): New symbol representing a
12714         `how-to-add' mode.
12715
12716         * select.c (own-selection-internal):
12717         * select.c (selection-exists-p):
12718         * select.c (available-selection-types): New.
12719         * select.c (register-selection-data-type): New.
12720         * select.c (selection-data-type-name): New.  New functions to deal
12721         with device-specific selection data formats.
12722         * select.c (selection-converter-out-alist): Renamed.
12723         * select.c (selection-converter-in-alist): New.
12724         * select.c (selection-appender-alist): New.  Added new alists.
12725         * select.c (syms_of_select, vars_of_select): Added new symbols &
12726         variables.
12727         * select.c (get_local_selection): Split.
12728         * select.c: Removed spurious type checking - selections may now be
12729         of any type, not just strings.
12730         * select.c (own-selection-internal):
12731
12732         * select.h, select.c (convert_selection): New. Created
12733         convert_selection() function based on get_local_selection().
12734         * select.h, select.c (QCF_*): New symbols representing mswindows
12735         clipboard formats.
12736         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12737         symbols representing `how-to-add' modes.
12738
12739         * select-msw.c (x_sym_p): New.
12740         * select-msw.c (symbol_to_ms_cf): New.
12741         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12742         symbols & clipboard formats. Can also handle string names.
12743         * select-msw.c (mswindows_own_selection):
12744         * select-msw.c (mswindows_selection_exists_p):
12745         Added `data-type' parameter. Use it.
12746         * select-msw.c (mswindows_available_selection_types): New.
12747         * select-msw.c (mswindows_register_selection_data_type): New.
12748         * select-msw.c (mswindows_selection_data_type_name): New.
12749         * select-msw.c (mswindows_own_selection):
12750         * select-msw.c (mswindows_get_foreign_selection):
12751         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12752         * select-msw.c (console_create_select_mswindows): Added new methods.
12753         * select-msw.c (mswindows_destroy_selection): New.
12754         * select-msw.c (Vhandle_alist): New list.
12755         * select-msw.c (mswindows_own_selection):
12756
12757         * select-x.c (x_own_selection):
12758         * select-x.c (x_selection_exists_p):
12759         * select-x.c: Added some comments about maybe using new
12760         functionality.
12761         * select-x.c (x_own_selection):
12762
12763         * specifier.c: Remove definition of Qappend (now in general.c)
12764         * specifier.c (syms_of_specifier): Remove Qappend.
12765
12766 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12767
12768         * config.h.in: Add socklen_t.
12769
12770         * s/decosf4-0.h: No special compiler flags needed or desired.
12771         In particular, undefine _BSD for DEC OSF 4.0.
12772
12773 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12774
12775         * redisplay-msw.c (msprinter_frame_output_end): Added.
12776         (console_type_create_redisplay_mswindows): Referred the above.
12777
12778         * frame.c (setup_frame_without_minibuffer): Do not create a
12779         default minibuffer frame on a printer device.
12780
12781         * frame-msw.c (apply_dc_geometry): Added.
12782         (msprinter_start_page):
12783         (msprinter_init_frame_3):
12784         (msprinter_eject_page): Use it.
12785
12786         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12787         and removed residual duplex and orientation properties.
12788
12789 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12790
12791         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12792
12793         * unexalpha.c: Remove system prototypes from C sources!
12794
12795 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12796
12797         * eval.c: Remove references to M-x edit-options in DEFUNs for
12798         `defvar' and `defconst'.
12799
12800 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12801
12802         * config.h.in: Remove SMART_INCLUDE hackery.
12803
12804         PostgreSQL hacking:
12805         * config.h.in: Don't use SMART_INCLUDE.
12806
12807         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12808         * inline.c: Simply #include "postgresql.h"
12809         * postgresql.c:
12810         - Don't use SMART_INCLUDE
12811         - Use simply "const".
12812         - Use standard doc string conventions.
12813         - Use correct type for result of PQstatus.
12814
12815 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12816
12817         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12818
12819         C++ compilation changes.
12820         * config.h.in (EXTERN_C): Define.
12821         * config.h.in (not): This is also a C++ keyword.
12822         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12823         * cm.c: Use EXTERN_C.
12824         * redisplay-tty.c: Use EXTERN_C.
12825         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12826
12827 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12828
12829         * general.c: Remove duplicate definition for Qfunction.
12830
12831 2000-07-08  Ben Wing  <ben@xemacs.org>
12832
12833         * device-msw.c (msprinter_init_device):
12834         * device-msw.c (sync_printer_with_devmode):
12835         * device-msw.c (handle_devmode_changes):
12836         * device-msw.c (print_dialog_worker):
12837         * device-msw.c (Fmsprinter_apply_settings):
12838         * device-msw.c (hash_devmode):
12839         * device-msw.c (Fmsprinter_settings_despecialize):
12840         use Qmswindows_tstr, not Qctext.
12841
12842         * vm-limit.c (check_memory_limits):
12843         avoid infinite loop printing warning messages.
12844
12845 2000-07-05  Craig Lanning  <lanning@scra.org>
12846
12847         * Makefile.in.in: Add support for including the Windows resources
12848         when building with the cygwin and mingw targets.
12849
12850         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12851         not set or not correct.
12852         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12853         (init_initial_directory): Don't try to use $PWD on the
12854         WIN32_NATIVE target.
12855
12856         * s\cygwin32.h:
12857         [[Add -mwindows to eliminate console window.]] not required --ben
12858         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12859         (MAIL_USE_POP): removed; now handled by configure.
12860
12861         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12862         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12863         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12864         (MAIL_USE_POP): removed; now handled by configure.
12865         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12866         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12867         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12868         constant string.
12869         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12870         up from <winsock.h> via systime.h.
12871         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12872         (getpagesize): from Dan Holmsand, added.
12873         Added #endif which was left dangling by Ben's mega patch; added
12874         comment to help prevent this in the future.
12875
12876         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12877
12878 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12879
12880         * console-msw.h (struct mswindows_device): Removed unnecessary
12881         cached device geometry values.
12882         Added update_tick and an accessor macro.
12883         (Lisp_Devmode): Added lrecord declaration.
12884         (struct msprinter_device): Contain devmode as a Lisp object.
12885         Added mswindows_get_selected_frame_hwnd();
12886
12887         * console.h (struct console_methods): Indentation nitpicking.
12888
12889         * device-msw.c (mswindows_init_device): Do not initialize geometry
12890         cache. Initialize update tick.
12891         (mswindows_device_system_metrics): Ask the device for its geometry.
12892         (global_free_2_maybe):
12893         (devmode_to_hglobal):
12894         (handle_printer_changes):
12895         (ensure_not_printing):
12896         (print_dialog_worker):
12897         (Fmsprinter_print_setup_dialog):
12898         (Fmsprinter_print_dialog):
12899         (plist_get_margin):
12900         (plist_set_margin):
12901         (Fmsprinter_page_setup_dialog): Added functions.
12902         (sync_printer_with_devmode):
12903         (handle_devmode_changes):
12904         (Fmsprinter_get_settings):
12905         (Fmsprinter_select_settings):
12906         (Fmsprinter_apply_settings):
12907         (allocate_devmode):
12908         (Fmsprinter_settings_copy):
12909         (Fmsprinter_settings_despecialize):
12910         (print_devmode):
12911         (finalize_devmode):
12912         (equal_devmode):
12913         (hash_devmode): Added functions
12914         (syms_of_device_mswindows): Init devmode lrecord class.
12915
12916         * device.h: Added an exfun for find-device.
12917
12918         * event-msw.c (mswindows_wnd_proc): Do not update the cached
12919         geometry; although, recreate the device compatible DC.
12920
12921         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
12922         (msprinter_init_frame_3):
12923         (msprinter_frame_property):
12924         (msprinter_internal_frame_property_p):
12925         (msprinter_frame_properties):
12926         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
12927         print job properties (will move to device settings).
12928
12929         * lisp.h: Added symbols.
12930
12931         * general.c (syms_of_general): Declared them.
12932
12933         * hash.c (string_hash): Added.
12934
12935         * lrecord.h (lrecord_type): Added devmode lrecord type.
12936
12937 2000-07-02  Mike Sperber <mike@xemacs.org>
12938
12939         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
12940         FreeBSD 4.0.
12941
12942 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
12943
12944         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
12945         integer.
12946
12947 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
12948
12949         * data.c (Fstring_to_number): Don't recognize floating point if
12950         base is not 10.
12951
12952 2000-06-22  Martin Buchholz  <martin@xemacs.org>
12953
12954         * glyphs-widget.c (tab_control_query_geometry):
12955         (widget_query_geometry):
12956         (button_query_geometry):
12957         * glyphs.c (text_query_geometry):
12958         Enforce type correctness.
12959
12960 2000-06-18  Martin Buchholz  <martin@xemacs.org>
12961
12962         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
12963         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
12964
12965 2000-06-17  Martin Buchholz  <martin@xemacs.org>
12966
12967         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
12968         conflicts with gcc's fixincluded version of FOO.h.
12969
12970         * glyphs.h (image_instance_geometry): Remove trailing `,'
12971
12972 2000-06-08  Mike Alexander  <mta@arbortext.com>
12973
12974         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
12975         (shove_thread): Don't write the same output twice
12976         (make_ntpipe_output_stream): Increase priority of shove thread
12977         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
12978         chance to run
12979         (ntpipe_shove_closer): Don't delete the pipe until we're done with
12980         it.
12981
12982 2000-06-12  Ben Wing  <ben@xemacs.org>
12983
12984         * s\mingw32.h (sigset):
12985         * s\windowsnt.h (sigset):
12986         rename msw_ to mswindows_ for consistency with general convention.
12987
12988 2000-06-12  Ben Wing  <ben@xemacs.org>
12989
12990         * console-msw.c:
12991         * console-msw.c (mswindows_get_console_hwnd):
12992         * console-msw.c (mswindows_ensure_console_allocated):
12993         * console-msw.c (mswindows_hide_console):
12994         * console-msw.c (mswindows_show_console):
12995         * console-msw.c (mswindows_ensure_console_buffered):
12996         * console-msw.c (mswindows_output_console_string):
12997         * console-msw.c (mswindows_windows9x_p):
12998         * console-msw.h:
12999         * device-msw.c (mswindows_get_workspace_coords):
13000         * device-msw.c (mswindows_device_system_metrics):
13001         * dialog-msw.c (mswindows_popup_dialog_box):
13002         * event-msw.c (mswindows_wnd_proc):
13003         * frame-msw.c (mswindows_size_frame_internal):
13004         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
13005         * menubar-msw.c (displayable_menu_item):
13006         * menubar-msw.c (mswindows_char_is_accelerator):
13007         * nt.c:
13008         * nt.c (mswindows_sigset):
13009         * nt.c (mswindows_sigrelse):
13010         * nt.c (mswindows_sigpause):
13011         * nt.c (mswindows_raise):
13012         * nt.c (timer_proc):
13013         * ntproc.c:
13014         * ntproc.c (find_child_console):
13015         * ntproc.c (sys_kill):
13016         * print.c:
13017         * print.c (std_handle_out_external):
13018         * process-nt.c (find_child_console):
13019         * process-nt.c (send_signal_the_95_way):
13020         * process-nt.c (ensure_console_window_exists):
13021         * process-nt.c (nt_create_process):
13022         * syssignal.h:
13023         rename msw_ to mswindows_ for consistency with general convention.
13024
13025         * emacs.c:
13026         * dumper.c:
13027         include nt.h, not syswindows.h.
13028
13029         * nt.c (mswindows_fstat):
13030         * nt.c (mswindows_stat):
13031         prefix mswindows_ instead of attempting to directly override the
13032         library functions.  fix declarations.
13033
13034         * nt.h:
13035         include syswindows.h.  move some sysdep.h stuff here.
13036
13037         * ntheap.h:
13038         include syswindows.h, not <windows.h>.
13039
13040         * ntplay.c:
13041         clean up headers.
13042
13043         * sysdep.c:
13044         clean up headers.
13045
13046         * sysdep.c (sys_fstat):
13047         * sysdep.c (sys_stat):
13048         call mswindows versions when appropriate.
13049
13050         * sysdep.h:
13051         move mswin decls to nt.h.
13052
13053         * syswindows.h:
13054         add long comment describing appropriate use of the various windows
13055         headers.
13056
13057 2000-06-11  Ben Wing  <ben@xemacs.org>
13058
13059         * device-x.c: Correct doc string for sixth arg of x-get-resource.
13060
13061 2000-06-10  Ben Wing  <ben@xemacs.org>
13062
13063         * Makefile.in.in (release):
13064         Correction to make sure xemacs.exe always dumped when correct.
13065
13066         * alloca.c:
13067         * balloon_help.c:
13068         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
13069
13070         * buffer.c (set_buffer_internal):
13071         [[[[2]]]]: Remove HAVE_FEP code.
13072
13073         * buffer.c (init_initial_directory):
13074         [3].
13075
13076         * bytecode.c:
13077         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
13078         individual files.
13079
13080         * callproc.c:
13081         * callproc.c (call_process_cleanup):
13082         * callproc.c (Fold_call_process_internal):
13083         * callproc.c (child_setup):
13084         * callproc.c (getenv_internal):
13085         * callproc.c (init_callproc):
13086         * callproc.c (vars_of_callproc):
13087         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
13088         __CYGWIN32__ -> CYGWIN.
13089         DOS_NT -> WIN32_NATIVE.
13090         Remove MSDOS support/references, converting to WIN32_NATIVE
13091           where correct.
13092         __MINGW32__ -> MINGW.
13093         Fix windows.h includes.
13094         Remove bogus HAVE_NTGUI.
13095
13096         * config.h.in:
13097         [2].
13098
13099         * console-msw.c:
13100         mswindows_message_outputted added for use in allowing startup
13101         errors on the console to be seen.
13102
13103         * console-msw.c (msw_ensure_console_allocated):
13104         * console-msw.c (msw_output_console_string):
13105         * console-msw.c (DHEADER):
13106         * console-msw.c (DOPAQUE_DATA):
13107         * console-msw.c (DEVENT):
13108         * console-msw.c (DCONS):
13109         * console-msw.c (DCONSCDR):
13110         * console-msw.c (DSTRING):
13111         * console-msw.c (DVECTOR):
13112         * console-msw.c (DSYMBOL):
13113         * console-msw.c (DSYMNAME):
13114         Fix warnings.
13115
13116         * console-stream.c (stream_init_console):
13117         Fix text/binary problems.
13118
13119         * device-msw.c:
13120         * device-msw.c (mswindows_finish_init_device):
13121         * device-msw.c (mswindows_delete_device):
13122         [1].
13123
13124         * device.c (handle_asynch_device_change):
13125         [3].
13126
13127         * dgif_lib.c:
13128         * dgif_lib.c (DGifOpenFileName):
13129         * dgif_lib.c (DGifOpenFileHandle):
13130         * dgif_lib.c (DGifGetLine):
13131         * dgif_lib.c (DGifGetPixel):
13132         Added config.h/lisp.h, fix up includes.
13133         [1].
13134
13135         * dired-msw.c:
13136         [4].
13137
13138         * dired.c:
13139         * dired.c (file_name_completion):
13140         * dired.c (Ffile_attributes):
13141         * dired.c (syms_of_dired):
13142         [1].
13143
13144         * dumper.c:
13145         * dumper.c (pdump_file_unmap):
13146         * dumper.c (pdump_load):
13147         [1].
13148
13149         * editfns.c:
13150         * editfns.c (Ftemp_directory):
13151         * editfns.c (user_login_name):
13152         * editfns.c (Fuser_real_login_name):
13153         * editfns.c (get_home_directory):
13154         [1].
13155
13156         * elhash.c (finish_marking_weak_hash_tables):
13157         [[[[5]]]]: Fix GCC warnings.
13158
13159         * emacs.c:
13160         * emacs.c (mswindows_handle_hardware_exceptions):
13161         * emacs.c (make_arg_list_1):
13162         * emacs.c (main_1):
13163         * emacs.c (Fkill_emacs):
13164         * emacs.c (Fdump_emacs):
13165         [1].
13166         Fix problems with nested crashes, add long comment.
13167
13168         * event-Xt.c (init_event_Xt_late):
13169         [1].
13170
13171         * event-msw.c:
13172         * event-msw.c (mswindows_dde_callback):
13173         * event-msw.c (mswindows_handle_sticky_modifiers):
13174         * event-msw.c (mswindows_wnd_proc):
13175         [1].
13176         [5].
13177
13178         * events.c (character_to_event):
13179         [1].
13180
13181         * fileio.c:
13182         * fileio.c (Ffile_name_directory):
13183         * fileio.c (Ffile_name_nondirectory):
13184         * fileio.c (directory_file_name):
13185         * fileio.c (Fexpand_file_name):
13186         * fileio.c (Fsubstitute_in_file_name):
13187         * fileio.c (Ffile_name_absolute_p):
13188         * fileio.c (check_executable):
13189         * fileio.c (Ffile_readable_p):
13190         * fileio.c (Ffile_accessible_directory_p):
13191         * fileio.c (Ffile_modes):
13192         * fileio.c (Funix_sync):
13193         * fileio.c (vars_of_fileio):
13194         [1]. [4].
13195
13196         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
13197
13198         Expand getdefdir defn.
13199         Fix bogus rename() comment.
13200
13201         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
13202         to use standard XEmacs include files, e.g. sysfile.h, rather
13203         than system-specific includes.
13204
13205         * fns.c:
13206         * fns.c (Fsubseq):
13207         [5]. [6].
13208
13209         * frame.c (vars_of_frame):
13210         [1].
13211
13212         * getloadavg.c:
13213         * getloadavg.c (getloadavg):
13214         [1]. [6].
13215         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
13216         (We don't use it elsewhere in the code; just add a comment.)
13217
13218         * gif_io.c:
13219         [6].
13220         Add config.h.
13221
13222         * glyphs-msw.c:
13223         * glyphs-msw.c (mswindows_resource_instantiate):
13224         [1].
13225
13226         * glyphs-x.c (x_native_layout_instantiate):
13227         [5].
13228
13229         * gui-msw.c (Fmswindows_shell_execute):
13230         [1].
13231
13232         * insdel.c:
13233         [4].
13234
13235         * lisp.h:
13236         [4]. [5].
13237
13238         * lread.c (locate_file_in_directory_mapper):
13239         [1].
13240
13241         * lstream.c:
13242         [4].
13243
13244         * mem-limits.h:
13245         * mem-limits.h (get_lim_data):
13246         [1].
13247
13248         * menubar-msw.c:
13249         [4].
13250
13251         * ndir.h:
13252         [1].
13253
13254         * nt.c:
13255         * nt.c (getwd):
13256         * nt.c (closedir):
13257         * nt.c (rva_to_section):
13258         * nt.c (mswindows_executable_type):
13259         [1]. [6].
13260         Fix closedir() defn.
13261
13262         * nt.h:
13263         [[[[8]]]]: *_OK defs moved to sysfile.h.
13264
13265         * ntproc.c:
13266         [6]. [7].
13267
13268         * objects-x.c:
13269         [4].
13270
13271         * print.c:
13272         * print.c (std_handle_out_external):
13273         [1]. [4].
13274
13275         * process-nt.c:
13276         * process-nt.c (nt_create_process):
13277         [6].
13278         try to fix process quoting somewhat.
13279
13280         * process-unix.c (unix_create_process):
13281         [1].
13282
13283         * process.c:
13284         * process.c (vars_of_process):
13285         Add Vnull_device.
13286
13287         * process.h:
13288         [1].
13289
13290         * realpath.c:
13291         * realpath.c (xrealpath):
13292         [1].
13293
13294         * redisplay-tty.c (init_tty_for_redisplay):
13295         [3].
13296
13297         * redisplay.c:
13298         [4]. [6].
13299
13300         * scrollbar-msw.c:
13301         [4].
13302
13303         * sheap.c:
13304         * sheap.c (more_static_core):
13305         * sheap.c (report_sheap_usage):
13306         [5]. [6].
13307
13308         * signal.c:
13309         * signal.c (alarm_signal):
13310         [1]. [6].
13311
13312         * sound.c:
13313         [6].
13314
13315         * strftime.c:
13316         * strftime.c (zone_name):
13317         [1]. [5].
13318
13319         * symsinit.h (init_sunpro):
13320         [1].
13321
13322         * syscommctrl.h:
13323         commctrl.h not in Cygwin b20.1.
13324
13325         * sysdep.c:
13326         * sysdep.c (endif):
13327         * sysdep.c (sys_subshell):
13328         * sysdep.c (init_baud_rate):
13329         * sysdep.c (emacs_get_tty):
13330         * sysdep.c (emacs_set_tty):
13331         * sysdep.c (tty_init_sys_modes_on_device):
13332         * sysdep.c (init_system_name):
13333         * sysdep.c (sys_open):
13334         * sysdep.c (interruptible_open):
13335         * sysdep.c (sys_fopen):
13336         * sysdep.c (sys_mkdir):
13337         * sysdep.c (sys_rename):
13338         * sysdep.c (get_process_times_1):
13339         [1]. [6].
13340
13341         * sysdep.h:
13342         [1].
13343
13344         * sysdir.h:
13345         * sysdir.h (DIRENTRY_NONEMPTY):
13346         [1]. [6].
13347
13348         * sysdll.c (dll_init):
13349         * sysdll.h:
13350         [1].
13351
13352         * sysfile.h:
13353         [1]. [6]. [8].
13354         added text/binary defs.
13355
13356         * sysfloat.h:
13357         [1].
13358
13359         * sysproc.h:
13360         * sysproc.h (EDESTADDRREQ):
13361         * sysproc.h (poll_fds_for_input):
13362         [1]. [6].
13363
13364         * syspwd.h:
13365         [6].
13366
13367         * syssignal.h:
13368         [1].
13369
13370         * systime.h:
13371         [1]. [6].
13372
13373         * systty.h:
13374         [1].
13375
13376         * syswindows.h:
13377         [1].
13378         Always define WIN32_LEAN_AND_MEAN.
13379
13380         * unexcw.c (unexec):
13381         [5].
13382
13383         * unexec.c:
13384         * unexec.c (copy_text_and_data):
13385         * unexec.c (adjust_lnnoptrs):
13386         [1].
13387
13388         * unexnt.c:
13389         * unexnt.c (_start):
13390         [1].
13391
13392 2000-06-07  Ben Wing  <ben@xemacs.org>
13393
13394         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13395         was used only as a model.  We've long since extracted any useful
13396         logic or code out of this. (I just did an exhaustive search.)
13397
13398         * s\msdos.h: Removed.
13399
13400         * s\windows95.h: Removed.
13401
13402 2000-06-10  Ben Wing  <ben@xemacs.org>
13403
13404         * s\cygwin32.h:
13405         [1]. [5].
13406         Don't use extern with fun defs.
13407
13408         * s\mingw32.h:
13409         [1]. [7].
13410         Remove nt\inc include.
13411         Remove getdisk, getdefdir. (The former is unused, the latter
13412         expanded in fileio.h.)
13413
13414         * s\windowsnt.h:
13415         * s\windowsnt.h (WIN32_NATIVE):
13416         * s\windowsnt.h (HAVE_STRCASECMP):
13417         [1]. [7].
13418         Add long comment about preprocessor changes.
13419         Remove getdisk, getdefdir. (The former is unused, the latter
13420         expanded in fileio.h.)
13421
13422 2000-06-10  Ben Wing  <ben@xemacs.org>
13423
13424         * m\arm.h:
13425         * m\delta.h:
13426         * m\intel386.h:
13427         * m\sequent.h:
13428         * m\template.h:
13429         * m\windowsnt.h:
13430         [1].
13431         Remove bogus/unused NO_SOCK_SIGIO.
13432
13433 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13434
13435         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13436         not an Emchar.
13437
13438 2000-06-04  Mike Sperber <mike@xemacs.org>
13439
13440         * casetab.c (set_case_table): For `set-standard-case-table',
13441         actually deposit the new case tables where the rest of XEmacs can
13442         see them.
13443
13444 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13445
13446         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13447
13448 2000-06-05  Ben Wing  <ben@xemacs.org>
13449
13450         * callproc.c (child_setup): Don't do close_load_descs() under
13451         MS Windows.  Put in a comment explaining why.
13452
13453 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13454
13455         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13456         Toolkit shell" which breaks `kill-compilation' on Windows NT
13457         native, retaining STDERR handling improvements.
13458
13459 2000-06-01  Andreas Jaeger  <aj@suse.de>
13460
13461         * s/s390.h: Support for S390, based on a patch by Martin
13462         Schwidefsky <schwidefsky@de.ibm.com>.
13463
13464 2000-05-30  Andy Piper  <andy@xemacs.org>
13465
13466         * window.c (allocate_window):
13467         (make_dummy_parent):
13468         (Fset_window_configuration): use new hashtable type.
13469
13470         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13471         (struct image_instantiator_methods):
13472         (struct Lisp_Image_Instance): make instance geometry signed.
13473
13474         * glyphs.c (instantiate_image_instantiator):
13475         (image_instance_query_geometry):
13476         (image_instance_layout):
13477         (image_instance_layout):
13478         (query_string_geometry):
13479         (text_query_geometry):
13480         (image_instantiate):
13481         (image_instantiate):
13482         (cache_subwindow_instance_in_frame_maybe):
13483         (subwindow_query_geometry): make instance geometry signed.
13484
13485         * glyphs-widget.c (widget_query_geometry):
13486         (widget_layout):
13487         (button_query_geometry):
13488         (tree_view_query_geometry):
13489         (tab_control_query_geometry):
13490         (layout_query_geometry):
13491         (layout_layout):
13492         (native_layout_layout): make instance geometry signed.
13493
13494 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13495
13496         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13497         constant.
13498
13499         * general.c (syms_of_general): Add Qfull_assoc symbol.
13500
13501         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13502         correctly.
13503         (decode_weak_list_type): Decode full-assoc type.
13504         (encode_weak_list_type): Encode full-assoc type.
13505         (Fmake_weak_list): Update doc string.
13506
13507 2000-05-30  Andy Piper  <andy@xemacs.org>
13508
13509         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13510
13511         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13512         (decode_hash_table_weakness): ditto.
13513         (Fhash_table_weakness): ditto.
13514         (Fhash_table_type): ditto.
13515         (finish_marking_weak_hash_tables): ditto.
13516         (hash_table_weakness_validate): ditto.
13517         (syms_of_elhash): ditto.
13518
13519 2000-05-28  Martin Buchholz <martin@xemacs.org>
13520
13521         * XEmacs 21.2.34 is released.
13522
13523 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13524
13525         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13526         start cache.
13527         (updating_line_start_cache): Gone.
13528         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13529         generic code to force a minimum of 1 line laid out in the
13530         CMOTION_DISP case.
13531
13532 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13533
13534         * glyphs.c (instantiate_image_instantiator): Check for initialized
13535         height & width no longer special cases IMAGE_NOTHING.
13536         (nothing_instantiate): Set height and width of instance.
13537
13538 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13539
13540         * unexelf.c (unexec): Search for ".data" section.
13541         Initialize new_data2_offset from old_data_index.
13542         Remove redundant check for ElfW.
13543
13544 2000-05-23  Andy Piper  <andy@xemacs.org>
13545
13546         * glyphs.c (get_image_instantiator_governing_domain): allow more
13547         specific domains as the governing domain rather than expecting an
13548         exact match. This fixes problems with layouts.
13549
13550 2000-05-22  Andy Piper  <andy@xemacs.org>
13551
13552         * redisplay-output.c (compare_runes): check for non-images
13553
13554         * glyphs.c (set_glyph_dirty_p): ditto.
13555         (update_glyph_cachel_data): ditto.
13556
13557         * glyphs-widget.c (layout_post_instantiate): ditto.
13558         (layout_post_instantiate): ditto.
13559
13560         * event-msw.c (mswindows_wnd_proc): warning removal.
13561
13562 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13563
13564         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13565
13566         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13567
13568         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13569
13570         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13571         (mswindows_executable_type): mingw32 now has enough headers for
13572         this to work.
13573
13574 2000-05-20  Andy Piper  <andy@xemacs.org>
13575
13576         * console-msw.c (mswindows_output_last_error): ; -> ,
13577
13578 2000-05-12  Andy Piper  <andy@xemacs.org>
13579
13580         * console-msw.c (FROB): compare ints with ints.
13581
13582 2000-05-11  Andy Piper  <andy@xemacs.org>
13583
13584         * glyphs-x.c (x_finalize_image_instance): make minimal build
13585         happy.
13586
13587 2000-05-20  Ben Wing  <ben@xemacs.org>
13588
13589         * event-Xt.c:
13590         * event-Xt.c (vars_of_event_Xt):
13591         move modifier-keys-are-sticky to event-stream.c.
13592
13593         * event-msw.c:
13594         * event-msw.c (mswindows_enqueue_mouse_button_event):
13595         * event-msw.c (key_needs_default_processing_p):
13596         * event-msw.c (XEMSW_LCONTROL):
13597         * event-msw.c (mswindows_handle_sticky_modifiers):
13598         * event-msw.c (FROB):
13599         * event-msw.c (clear_sticky_modifiers):
13600         * event-msw.c (output_modifier_keyboard_state):
13601         * event-msw.c (output_alt_keyboard_state):
13602         * event-msw.c (mswindows_wnd_proc):
13603         * event-msw.c (mswindows_modifier_state):
13604         * event-msw.c (emacs_mswindows_handle_magic_event):
13605         implement sticky modifiers.
13606
13607         * event-stream.c:
13608         * event-stream.c (vars_of_event_stream):
13609         move modifier-keys-are-sticky here.
13610
13611         * lisp.h:
13612         add CHECK_FUNCTION.
13613
13614         * rangetab.c:
13615         implement map-range-table.
13616
13617
13618 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13619
13620         * redisplay-tty.c (reset_tty_modes):
13621         (tty_redisplay_shutdown): Adjust argument type to
13622         tty_frame_output_end.
13623
13624 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13625
13626         * eval.c (Fbacktrace): Don't output a line with only right
13627         parenthesis.
13628
13629 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13630
13631         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13632         (Fpq_reset_poll): Ditto.
13633
13634 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13635
13636         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13637
13638 2000-05-16  Ben Wing  <ben@xemacs.org>
13639
13640         * buffer.c:
13641         * buffer.c (dfc_convert_to/from_internal_format):
13642         * buffer.c (reinit_vars_of_buffer):
13643         Fix conversion functions to allow reentrancy.
13644
13645         * console-msw.c:
13646         * console-msw.c (mswindows_output_last_error):
13647         New fun, generally useful -- output a human-readable
13648         version of GetLastError() on the console.
13649
13650         * console-msw.h:
13651         * console-msw.h (struct mswindows_frame):
13652         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13653
13654         * console-stream.c (stream_output_begin):
13655         * console-stream.c (stream_output_end):
13656         * console-stream.c (stream_output_vertical_divider):
13657         * console-stream.c (stream_clear_region):
13658         * console-stream.c (stream_flash):
13659         * console-stream.c (console_type_create_stream):
13660         Delete blank stream methods, not needed.
13661
13662         * console.h (struct console_methods):
13663         Split begin/end methods into window and frame.
13664
13665         * event-msw.c:
13666         * event-msw.c (mswindows_handle_paint):
13667         * event-msw.c (output_alt_keyboard_state):
13668         * event-msw.c (mswindows_wnd_proc):
13669         * event-msw.c (vars_of_event_mswindows):
13670         Comment about problems with ignored-expose.
13671         Define mswindows-debug-events; not really implemented.
13672
13673         * frame-msw.c (mswindows_init_frame_1):
13674         random cleanups.
13675
13676         * glyphs-msw.c:
13677         * glyphs-msw.c (begin_defer_window_pos):
13678         * glyphs-msw.c (mswindows_unmap_subwindow):
13679         * glyphs-msw.c (mswindows_map_subwindow):
13680         * glyphs-msw.c (mswindows_resize_subwindow):
13681         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13682
13683         * glyphs.c (make_image_instance_1):
13684         Fix crash.
13685
13686         * gutter.c (Fredisplay_gutter_area):
13687         Use new begin/end methods.
13688
13689         * lisp.h (Dynarr_new2):
13690         New creation fun.
13691
13692         * redisplay-msw.c:
13693         * redisplay-msw.c (mswindows_frame_output_begin):
13694         * redisplay-msw.c (mswindows_frame_output_end):
13695         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13696         New begin/end methods -- handle DeferWindowPos.
13697
13698         * redisplay-output.c (redisplay_move_cursor):
13699         * redisplay-output.c (redraw_cursor_in_window):
13700         * redisplay-output.c (redisplay_update_line):
13701         * redisplay-output.c (redisplay_output_window):
13702         New begin/end methods.
13703
13704         * redisplay-tty.c:
13705         * redisplay-tty.c (tty_frame_output_begin):
13706         * redisplay-tty.c (tty_frame_output_end):
13707         * redisplay-tty.c (console_type_create_redisplay_tty):
13708         New begin/end methods.
13709
13710         * redisplay-x.c:
13711         * redisplay-x.c (x_window_output_begin):
13712         * redisplay-x.c (x_window_output_end):
13713         * redisplay-x.c (console_type_create_redisplay_x):
13714         New begin/end methods.
13715
13716         * redisplay.c (redisplay_frame):
13717         * redisplay.c (Fredisplay_echo_area):
13718         New begin/end methods.
13719         use MAYBE_DEVMETH for clear_frame; it may not exist.
13720
13721         * window.h (WINDOW_XFRAME):
13722         WINDOW_XFOO macros -- get locale and decode struct pointer.
13723
13724
13725 2000-05-12  Ben Wing  <ben@xemacs.org>
13726
13727         * emacs.c:
13728         * emacs.c (ensure_no_quitting_from_now_on):
13729         * emacs.c (fatal_error_signal):
13730         * emacs.c (mswindows_handle_hardware_exceptions):
13731         * emacs.c (main):
13732         * emacs.c (Fkill_emacs):
13733         * emacs.c (shut_down_emacs):
13734         * emacs.c (assert_failed):
13735         various improvements in fatal error handling.
13736
13737         * eval.c:
13738         move preparing_for_armageddon to emacs.c.
13739
13740         * lisp.h:
13741         declare fatal_error_in_progress.
13742
13743         * print.c:
13744         * print.c (std_handle_out_external):
13745         * print.c (std_handle_out_va):
13746         * print.c (stderr_out):
13747         * print.c (stdout_out):
13748         use console under mswin when no standard output.
13749         don't do code conversion during fatal error.
13750
13751         * scrollbar.c (Fscrollbar_page_up):
13752         * scrollbar.c (Fscrollbar_page_down):
13753         fix missing else.  reindent.
13754
13755 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13756
13757         Emergency fix.
13758
13759         * glyphs.h (GLYPH_CACHEL_DESCENT):
13760         (GLYPH_CACHEL_DESCENT):
13761         (GLYPH_CACHEL_DESCENT):
13762         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13763         used in case these are inline functions.
13764         Use more absurd values to error check.
13765
13766         include window.h for error check functions.
13767
13768 2000-05-11  Ben Wing  <ben@xemacs.org>
13769
13770         * cmdloop.c (Freally_early_error_handler):
13771         Display message box under windows; otherwise, message will disappear
13772         before it can be viewed.
13773
13774         * console-msw.c:
13775         * console-msw.c (Fmswindows_message_box):
13776         * console-msw.c (FROB):
13777         * console-msw.c (syms_of_console_mswindows):
13778         Define new fun `mswindows-message-box'.
13779         #### I will merge this into `popup-dialog-box'; just give me
13780         a bit of time.
13781
13782         * general.c:
13783         * general.c (syms_of_general):
13784         Some new symbols used in `mswindows-message-box'.
13785
13786         * glyphs.c:
13787         * glyphs.c (Fset_image_instance_property):
13788         put warning in this fun.
13789
13790         * glyphs.h:
13791         * glyphs.h (GLYPH_CACHEL_WIDTH):
13792         * glyphs.h (GLYPH_CACHEL_ASCENT):
13793         * glyphs.h (GLYPH_CACHEL):
13794         * glyphs.h (GLYPH_CACHEL_GLYPH):
13795         define error-checking versions to try to catch a bug i've seen --
13796         redisplay gets in an infinite loop because the glyph width of the
13797         continuation glyph is 65535.
13798
13799         * lisp.h:
13800         Extern message-box stuff.
13801
13802         * window.c (allocate_window):
13803         * window.c (make_dummy_parent):
13804         * window.c (Fset_window_configuration):
13805         Use EQUAL not EQ for subwindow caches to make them work a bit
13806         better. (Something is still very broken.)
13807
13808
13809 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13810
13811         * glyphs.c (image_instantiate): Suppress gcc warnings.
13812         (Fmake_image_instance): Fix doc string.
13813         * specifier.c (Fmake_specifier): Ditto.
13814
13815 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13816
13817         * paths.h.in (PATH_LOCK): Removed.
13818         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13819         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13820
13821 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13822
13823         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13824         Document (featurep '(and xemacs 21.02)).
13825
13826 2000-05-09  Ben Wing  <ben@xemacs.org>
13827
13828         * buffer.c (complex_vars_of_buffer):
13829         update modeline-format doc.
13830
13831         * device.h:
13832         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13833
13834         * emacs.c:
13835         timeline of all released versions of Emacs, for use in creating
13836         authorship comments and in synching up.
13837
13838         * glyphs-widget.c (image_instantiator_buttons):
13839         * glyphs-widget.c (image_instantiator_edit_fields):
13840         * glyphs-widget.c (image_instantiator_combo_box):
13841         * glyphs-widget.c (image_instantiator_scrollbar):
13842         * glyphs-widget.c (image_instantiator_progress_guage):
13843         * glyphs-widget.c (image_instantiator_tree_view):
13844         * glyphs-widget.c (image_instantiator_tab_control):
13845         * glyphs-widget.c (image_instantiator_labels):
13846         * glyphs-widget.c (image_instantiator_layout):
13847         * glyphs-widget.c (image_instantiator_native_layout):
13848         rename decode_domain method to governing_domain.
13849
13850         * glyphs.c:
13851         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13852         * glyphs.c (add_entry_to_device_ii_format_list):
13853         make sure we don't put an entry more than once into the list.
13854         * glyphs.c (check_instance_cache_mapper):
13855         *************************************************************
13856         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13857         HAVE BEEN GETTING.
13858         *************************************************************
13859         * glyphs.c (get_image_instantiator_governing_domain):
13860         clean up, expand on new concept of governing domain.
13861         * glyphs.c (instantiate_image_instantiator):
13862         * glyphs.c (allocate_image_instance):
13863         use governing_domain instead of cache_domain in naming.
13864         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13865         * glyphs.c (make_image_instance_1):
13866         * glyphs.c (Fmake_image_instance):
13867         allow for any domain (not just device), and process the
13868         governing domain correctly.  very big doc fix.
13869         * glyphs.c (Fimage_instance_domain):
13870         new primitive, to retrieve the governing domain of an image instance.
13871         * glyphs.c (image_instantiate):
13872         use new governing_domain stuff.  this fixes a crash you could get
13873         by instantiating certain widget glyphs in frame locales. (should
13874         signal an error instead of crashing.)
13875         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13876         * glyphs.c (Fglyphp): clean up doc.
13877         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13878         * glyphs.c (syms_of_glyphs):
13879         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13880         * glyphs.c (image_instantiator_format_create): add some comments about
13881         bogus code.
13882         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13883         for current-display-table. (Apparently Hrjove implemented in 1998 a
13884         design I wrote up in 1996, but didn't update the doc string.)
13885
13886         * glyphs.h: clean up a doc string.
13887         * glyphs.h (governing_domain):
13888         * glyphs.h (struct image_instantiator_methods):
13889         changes for governing_domain stuff.
13890
13891         * gutter.c:
13892         * gutter.c (Fgutter_specifier_p):
13893         * gutter.c (Fgutter_size_specifier_p):
13894         * gutter.c (Fgutter_visible_specifier_p):
13895         * objects.c:
13896         * objects.c (Fcolor_specifier_p):
13897         * objects.c (Ffont_specifier_p):
13898         * objects.c (Fface_boolean_specifier_p):
13899         doc strings moved to make-*-specifier.
13900
13901         * redisplay.c (add_disp_table_entry_runes_1):
13902         * redisplay.c (generate_fstring_runes):
13903         * redisplay.c (screen):
13904         add random comments and doc strings.
13905
13906         * specifier.c:
13907         * specifier.c (Fmake_specifier):
13908         major overhaul of this doc string.
13909
13910         * specifier.c (Fvalid_specifier_domain_p):
13911         comment about the bogosity of image instances being domains.
13912         * specifier.c (decode_domain):
13913         now non-static, used in glyphs.c.
13914         * specifier.c (specifier_instance):
13915         comment about the bogosity of image instances being domains.
13916         * specifier.c (Fgeneric_specifier_p):
13917         move doc string to make-generic-specifier.
13918         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
13919         rebackslashify.
13920
13921         * specifier.h:
13922         * specifier.h (DOMAIN_FRAME):
13923         * specifier.h (DOMAIN_LIVE_P):
13924         * specifier.h (DOMAIN_XDEVICE):
13925         rebackslashify.
13926         add comments about problems with these macros.
13927         prototype for decode_domain.
13928
13929         * toolbar.c:
13930         * toolbar.c (Ftoolbar_specifier_p):
13931         move doc string to `make-toolbar-specifier'.
13932
13933         * window.c (window_unmap_subwindows_cache_mapper):
13934         *************************************************************
13935         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13936         HAVE BEEN GETTING.
13937         *************************************************************
13938
13939 2000-05-09  Andy Piper  <andy@xemacs.org>
13940
13941         * glyphs.h: declare reset_frame_subwindow_instance_cache.
13942
13943         * window.c (Fset_window_configuration): reset the frame subwindow
13944         cache and re-initialize the window subwindow caches.
13945
13946         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
13947
13948 2000-05-09  Ben Wing  <ben@xemacs.org>
13949
13950         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
13951         DWORD.
13952
13953 2000-04-26  Mike Woolley  <mike@bulsara.com>
13954
13955         * ntheap.c: Changed recreate_heap to limit the amount reserved
13956         for the heap to that which is actually available. Also now
13957         displays a message box (with some dignostics) in the event that
13958         it still can't start.
13959
13960 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
13961
13962         * callproc.c (Fold_call_process_internal): GCPRO path
13963
13964 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
13965
13966         Patch by Bill Perry.
13967
13968         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
13969         back data instead of #ifdef.
13970         (Fscrollbar_page_down): ditto.
13971
13972 2000-05-07  Ben Wing  <ben@xemacs.org>
13973
13974         * buffer.h:
13975         Kludge for defining Qmswindows_tstr.
13976
13977         * nt.c:
13978         * nt.c (open_input_file):
13979         * nt.c (open_output_file):
13980         * nt.c (rva_to_section):
13981         * nt.c (mswindows_executable_type):
13982         Move all memory-mapped-file routines here (some were in unexnt.c,
13983         which is bad because they are used by process-nt.c, and unexnt
13984         won't be around when portable dumping).  Synched the above routines
13985         with FSF 20.6.
13986
13987         * nt.h:
13988         Removed ifdef'd out bogus code.
13989         Fixed some prototypes.
13990
13991         * nt.h (file_data):
13992         * nt.h (OFFSET_TO_RVA):
13993         * nt.h (RVA_TO_OFFSET):
13994         * nt.h (RVA_TO_PTR):
13995         Moved the memory-mapped-file structures, macros and prototypes
13996         here, to parallel nt.c.  ntheap.h should really be removed
13997         entirely, and it's a non-portable-dumper specific file.
13998
13999         * ntheap.h (round_to_next):
14000         Moved the memory-mapped-file structures, macros and prototypes
14001         to nt.h.
14002
14003         * ntproc.c (compare_env):
14004         Moved rva_to_section and mswindows_executable_type to nt.c.
14005         Moved compare_env to process-nt.c.
14006         ntproc.c will die, one day.
14007
14008         * ntproc.c (sys_spawnve):
14009         Account for win32_ -> mswindows_.
14010
14011         * process-nt.c:
14012         * process-nt.c (struct nt_process_data):
14013         * process-nt.c (ensure_console_window_exists):
14014         * process-nt.c (compare_env):
14015         * process-nt.c (nt_create_process):
14016         * process-nt.c (nt_kill_process_by_pid):
14017         * process-nt.c (syms_of_process_nt):
14018         * process-nt.c (vars_of_process_nt):
14019         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
14020         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
14021         changes).  Eliminate our old `nt-quote-process-args' mechanism.
14022         Synch up nt_create_process with FSF 20.6 sys_spawnve.
14023         Move compare_env here from ntproc.c.
14024
14025         * process.c (Fprocess_send_region):
14026         Takes an optional fourth argument, BUFFER, which should fix some
14027         problems with call-process.
14028
14029         * syscommctrl.h:
14030         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
14031
14032         * syswindows.h:
14033         Move ICC_BAR_CLASSES to syscommctrl.h.
14034         Add preliminary macros for MSWindows/Mule.  More to come.
14035
14036         * unexnt.c:
14037         * unexnt.c (unexec):
14038         open_output_file moved to nt.c.
14039
14040
14041 2000-05-05  Andy Piper  <andy@xemacs.org>
14042
14043         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
14044         instance from the frame cache also since GC may catch up too late
14045         to make frame deletion sane.
14046
14047 2000-05-04  Andy Piper  <andy@xemacs.org>
14048
14049         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
14050         (x_finalize_image_instance): ungcpro on deletion.
14051
14052         * glyphs.c (image_instantiator_format_create): give pointers a
14053         query geometry method so that the geometry is at least set.
14054
14055         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
14056         initialize layouts if using widgets.
14057
14058 2000-05-03  Andy Piper  <andy@xemacs.org>
14059
14060         * nt.c: remove bogus reference to sysmmsystem.h
14061
14062         * gui-x.c (popup_selection_callback): fix no selection abort.
14063
14064 2000-05-02  Andy Piper  <andy@xemacs.org>
14065
14066         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
14067         (mswindows_widget_instantiate): ditto.
14068
14069         * glyphs-widget.c (initialize_widget_image_instance): initialize
14070         children correctly.
14071         (widget_instantiate): cope with children and items in the same
14072         instance.
14073
14074         * glyphs.c (mark_image_instance): cope with children as a first
14075         class member.
14076         (image_instance_equal): ditto.
14077         (image_instance_hash): ditto.
14078         (image_instance_changed): ditto.
14079
14080 2000-04-30  Andy Piper  <andy@xemacs.org>
14081
14082         * glyphs.c (subwindow_query_geometry): new function. Return some
14083         defaults.
14084         (subwindow_instantiate): don't assign dimensions if none have been
14085         given.
14086         (image_instantiator_format_create): add subwindow_query_geometry.
14087         (print_image_instance): cope with layouts as widgets.
14088
14089 2000-04-29  Andy Piper  <andy@xemacs.org>
14090
14091         * frame.c (delete_frame_internal): call
14092         free_frame_subwindow_instance_cache so that all subwindows are
14093         finalized before their parent.
14094         (mark_frame): remove subwindow_cachels.
14095         (Fmake_frame): remove subwindow_cachel manipulation.
14096         (allocate_frame_core): subwindow_instance_cache is a weak list.
14097         (delete_frame_internal): set subwindow_instance_cache to nil.
14098
14099         * glyphs-msw.c (mswindows_finalize_image_instance): make double
14100         finalization safe.
14101         (mswindows_finalize_image_instance): use the device
14102         not the domain as the domain may have died already.
14103
14104         * glyphs-x.c (x_finalize_image_instance): ditto.
14105         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
14106         HEIGHT.
14107
14108         * redisplay-output.c (redisplay_unmap_subwindows): update for
14109         subwindow instance cache as a weak list.
14110         (redisplay_unmap_subwindows_maybe): ditto.
14111         (redisplay_unmap_subwindows_except_us): ditto.
14112
14113         * glyphs.c (unmap_subwindow): error checking will check the domain
14114         so don't deal with it here. Don't use cachels anymore.
14115         (map_subwindow): ditto.
14116         (update_subwindow_cachel_data): remove old accessor names.
14117         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
14118         (Fresize_subwindow): don't update cachel.
14119         (mark_subwindow_cachels):
14120         (update_subwindow_cachel_data):
14121         (add_subwindow_cachel):
14122         (get_subwindow_cachel_index):
14123         (update_subwindow_cachel):
14124         (reset_subwindow_cachels):
14125         (mark_subwindow_cachels_as_not_updated): deleted.
14126         (cache_subwindow_instance_in_frame_maybe): new function. Add a
14127         subwindow instance to the frame cache.
14128         (find_matching_subwindow): update for subwindow instance cache as
14129         a weak list.
14130         (update_widget_instances): ditto.
14131         (image_instance_type_to_mask):inlined.
14132         (free_frame_subwindow_instance_cache): new function. finalize all
14133         subwindows that are instantiated.
14134
14135         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
14136         of cachel information.
14137         (IMAGE_INSTANCE_DISPLAY_X):
14138         (IMAGE_INSTANCE_DISPLAY_Y):
14139         (IMAGE_INSTANCE_DISPLAY_WIDTH):
14140         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
14141         (XIMAGE_INSTANCE_DISPLAY_X):
14142         (XIMAGE_INSTANCE_DISPLAY_Y):
14143         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
14144         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
14145         remove subwindow_cachel structure and function references.
14146         (image_instance_type_to_mask): inline from glyphs.c
14147
14148         * redisplay.c (redisplay_frame): remove subwindow_cachel
14149         references.
14150
14151         * frame.h (struct frame): remove subwindow_cachels.
14152         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
14153
14154         * frameslots.h: add subwindow_instance_cache.
14155
14156         * window.c (replace_window): check subwindow cache of replacement.
14157         (window_unmap_subwindows_cache_mapper):
14158         (window_unmap_subwindows): new functions. Unmap all subwindows
14159         cached on this window.
14160         (mark_window_as_deleted): unmap all subwindows.
14161
14162 2000-04-27  Andy Piper  <andy@xemacs.org>
14163
14164         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
14165
14166         * glyphs-widget.c (widget_layout): return something.
14167         (layout_layout): return something. Fail if not initialized.
14168         (layout_query_geometry): ditto.
14169         (image_instantiator_native_layout): new function. Initialized the
14170         native layout type.
14171         (widget_instantiate): don't do layout stuff here.
14172
14173         * glyphs.c (instantiate_image_instantiator): reorded calling or
14174         instantiate and post_instantiate with layout in between.
14175         (image_instance_layout): be more selective about deciding whether
14176         the layout has been done or not.
14177
14178         * glyphs.h (struct image_instantiator_methods): return a value
14179         from layout_method.
14180
14181 2000-04-26  Andy Piper  <andy@xemacs.org>
14182
14183         * glyphs.c (allocate_image_instance): make initial width and
14184         height unspecified. Set initialized to 0.
14185
14186         * syscommctrl.h new file. Encapsulates commctrl.h.
14187
14188         * syswindows.h new file. Encapsulates windows.h.
14189
14190         * ntplay.c: use new syswindows.h and syscommctrl.h header.
14191         * nt.c: ditto.
14192         * console-msw.h: ditto.
14193
14194         * redisplay-tty.c (tty_output_display_block): remove layout references.
14195
14196         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
14197         window handle rather than just the frame.
14198
14199         * glyphs.c (mark_image_instance): remove layout references.
14200         (print_image_instance): ditto.
14201         (image_instance_equal): ditto.
14202         (image_instance_hash): ditto.
14203         (decode_image_instance_type): ditto.
14204         (encode_image_instance_type): ditto.
14205         (image_instantiate): ditto.
14206         (allocate_glyph): ditto.
14207         (Fimage_instance_height): ditto.
14208         (Fimage_instance_width): ditto.
14209         (update_subwindow): ditto.
14210
14211         * redisplay-x.c (x_output_display_block): recode for layouts as
14212         widgets.
14213
14214         * redisplay-output.c (redisplay_output_layout): recode for layouts
14215         as widgets.
14216         (compare_runes): remove layout references.
14217
14218         * redisplay-msw.c (mswindows_output_display_block): recode for
14219         layouts as widgets.
14220
14221         * glyphs-widget.c (image_instantiator_layout): remove
14222         layout_possible_dest_types.
14223         (layout_possible_dest_types): deleted.
14224
14225         * glyphs.h (image_instance_type): remove layout references.
14226         (struct Lisp_Image_Instance): ditto. Add initialized flag.
14227         (IMAGE_INSTANCE_INITIALIZED): new accessor.
14228         (XIMAGE_INSTANCE_INITIALIZED): ditto.
14229
14230 2000-04-25  Andy Piper  <andy@xemacs.org>
14231
14232         * glyphs-widget.c (image_instantiator_buttons):
14233         (image_instantiator_edit_fields):
14234         (image_instantiator_combo_box):
14235         (image_instantiator_scrollbar):
14236         (image_instantiator_progress_guage):
14237         (image_instantiator_tree_view):
14238         (image_instantiator_tab_control):
14239         (image_instantiator_labels):
14240         (image_instantiator_layout): call default post_instantiate method.
14241         (widget_post_instantiate): new function. Simply lays out the
14242         widgets.
14243
14244         * glyphs.h (struct image_instantiator_methods): add
14245         post_instantiate method.
14246
14247         * glyphs.c (instantiate_image_instantiator): add post_instantiate
14248         method calls.
14249
14250 2000-04-23  Andy Piper  <andy@xemacs.org>
14251
14252         * glyphs.h (struct image_instantiator_methods): add
14253         decode_domain_method.
14254         (struct Lisp_Image_Instance): remove subwindow frame - it can be
14255         derived from the domain.
14256         (IMAGE_INSTANCE_FRAME): new accessor.
14257         (XIMAGE_INSTANCE_FRAME): ditto.
14258
14259         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14260         instead of _SUBWINDOW_FRAME.
14261         (finalize_image_instance): ditto.
14262         (Fimage_instance_foreground): ditto.
14263         (Fimage_instance_background): ditto.
14264         (image_instantiate): ditto.
14265         (update_subwindow_cachel): ditto.
14266         (update_subwindow): ditto.
14267         (unmap_subwindow): ditto.
14268         (map_subwindow): ditto
14269         (subwindow_instantiate): ditto.
14270         * glyphs-msw.c (mswindows_update_widget): ditto.
14271         (mswindows_progress_gauge_instantiate): ditto.
14272         (mswindows_tab_control_update): ditto.
14273         * glyphs-x.c (x_update_widget): ditto.
14274         (x_widget_instantiate): ditto.
14275         (x_tab_control_instantiate): ditto.
14276         (x_tab_control_update): ditto.
14277         * event-msw.c (mswindows_wnd_proc): ditto
14278
14279         * glyphs-widget.c (image_instantiator_layout): use
14280         subwindow_decode_domain.
14281         (image_instantiator_buttons): ditto.
14282         (image_instantiator_edit_fields): ditto.
14283         (image_instantiator_combo_box): ditto.
14284         (image_instantiator_scrollbar): ditto.
14285         (image_instantiator_progress_guage): ditto.
14286         (image_instantiator_tree_view): ditto.
14287         (image_instantiator_tab_control): ditto.
14288         (image_instantiator_labels): ditto.
14289         (image_instantiator_layout): ditto.
14290
14291         * glyphs.c: add instance error checking to many functions.
14292         (instantiate_image_instantiator): decode device from cache_domain.
14293         (image_instantiate): partially rewrite by using
14294         decode_image_instantiator_domain to determine what domain the
14295         instance needs to be cached in.
14296         (decode_image_instantiator_domain): new function. Determine what
14297         domain the image needs to be cached in.
14298         (check_window_subwindow_cache): new error checking function.
14299         (check_instance_cache_mapper): ditto.
14300         (check_image_instance_structure): ditto.
14301         (subwindow_decode_domain): new function. Encodes a window as a
14302         subwindow's cache domain.
14303         (image_instantiator_format_create): use it for text and
14304         subwindows.
14305
14306 2000-04-21  Andy Piper  <andy@xemacs.org>
14307
14308         * glyphs.c (image_instance_device): new function.
14309         (image_instance_frame): new function.
14310         (image_instance_window): new function.
14311         (image_instance_live_p): new function.
14312
14313         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14314         cache to nil.
14315
14316         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14317         (IMAGE_INSTANCE_DOMAIN): new accessor.
14318         (XIMAGE_INSTANCE_DOMAIN): ditto.
14319
14320         * glyphs-x.c (x_finalize_image_instance): device->domain.
14321
14322         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14323         (mswindows_finalize_image_instance): ditto.
14324
14325         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14326         (gif_instantiate): ditto.
14327         (png_instantiate): ditto.
14328         (tiff_instantiate): ditto.
14329
14330         * glyphs.c (instantiate_image_instantiator): use domain rather
14331         than device.
14332         (mark_image_instance): device -> domain.
14333         (print_image_instance): ditto.
14334         (finalize_image_instance): ditto.
14335         (image_instance_equal): ditto.
14336         (allocate_image_instance): ditto.
14337         (Fcolorize_image_instance): ditto.
14338         (query_string_geometry): ditto.
14339         (image_instantiate): ditto
14340         (query_string_font): ditto.
14341         (image_instantiate): ditto.
14342         (update_subwindow): ditto.
14343         (unmap_subwindow): ditto.
14344         (map_subwindow): ditto.
14345         (subwindow_instantiate): ditto.
14346
14347         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14348         (DOMAIN_FRAME): ditto.
14349         (DOMAIN_WINDOW): ditto.
14350         (DOMAIN_LIVE_P): ditto.
14351         (XDOMAIN_DEVICE): ditto.
14352         (XDOMAIN_FRAME): ditto.
14353         (XDOMAIN_WINDOW): ditto.
14354
14355         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14356         a valid specifier domain.
14357
14358 2000-04-19  Andy Piper  <andy@xemacs.org>
14359
14360         * glyphs-widget.c (syms_of_glyphs_widget): remove
14361         widget-callback-current-channel.
14362         (vars_of_glyphs_widget): ditto.
14363         * glyphs.h: ditto
14364
14365         * gui.c (get_gui_callback): revert to previous behaviour.
14366
14367 2000-04-18  Andy Piper  <andy@xemacs.org>
14368
14369         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14370         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14371         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14372
14373         * glyphs.c (image_instance_equal): add margin_width.
14374         (image_instance_hash): ditto.
14375
14376         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14377         (layout_query_geometry): ditto.
14378         (layout_layout): ditto.
14379         (syms_of_glyphs_widget): add margin-width.
14380         (image_instantiator_layout): allow margin-width.
14381
14382         * glyphs.c (update_widget_instances): make a normal function.
14383         (syms_of_glyphs): remove Qupdate_widget_instances.
14384         * glyphs.h: ditto.
14385
14386         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14387         so that we don't corrupt ideas about the last event or
14388         command. Remove widget-callback-current-channel fiddling.
14389         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14390
14391 2000-05-01  Martin Buchholz <martin@xemacs.org>
14392
14393         * XEmacs 21.2.33 is released.
14394
14395 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14396
14397         * make-src-depend: Allow dots in header file name.
14398
14399 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14400
14401         * mule-charset.h (struct charset_lookup): Add
14402         next_allocated_1_byte_leading_byte and
14403         next_allocated_2_byte_leading_byte.
14404         * mule-charset.c: Move above two variables so that those values
14405         will be dumped.
14406
14407 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14408
14409         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14410         when string length is zero.
14411         (find_charsets_in_emchar_string): Ditto.
14412
14413 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14414
14415         * lisp.h: extern Qdialog and Qmenubar.
14416
14417         * gui-x.c: added events.h.
14418                 also fixed typo which made the file uncompilable.
14419
14420         * general.c: Added Qmenubar and Qdialog
14421
14422 2000-04-28  Ben Wing  <ben@xemacs.org>
14423
14424         * frame-msw.c (mswindows_init_frame_1):
14425         * frame-msw.c (mswindows_mark_frame):
14426         * event-msw.c (mswindows_enqueue_dispatch_event):
14427         * console-msw.h:
14428         * console-msw.h (struct mswindows_frame):
14429         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14430         there are now three hash tables for callbacks.
14431         mswindows_enqueue_dispatch_event is no longer static.
14432
14433         * dialog-x.c (maybe_run_dbox_text_callback):
14434         * dialog-x.c (dbox_descriptor_to_widget_value):
14435         switch to new cons3 form for callbacks.
14436
14437         * glyphs-msw.c (mswindows_register_gui_item):
14438         * glyphs-msw.c (mswindows_widget_instantiate):
14439         * glyphs-msw.c (add_tree_item):
14440         * glyphs-msw.c (add_tab_item):
14441         new image instance parameter, so it can be passed to callback-ex.
14442         respect :callback-ex as well as :callback.
14443
14444         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14445         add :callback-ex.
14446
14447         * glyphs.c (print_image_instance):
14448         prettify, e.g. now prints widget type.
14449
14450         * gui-x.h:
14451         certain funs have new image instance parameter.
14452
14453         * gui.c:
14454         * gui.c (get_gui_callback):
14455         * gui.c (gui_item_add_keyval_pair):
14456         * gui.c (gui_item_init):
14457         * gui.c (gui_add_item_keywords_to_plist):
14458         * gui.c (mark_gui_item):
14459         * gui.c (gui_item_hash):
14460         * gui.c (gui_item_equal):
14461         * gui.c (copy_gui_item):
14462         * gui.c (syms_of_gui):
14463         recognize callback-ex in a number of places.
14464         also, fix the annoying "can't get out of yes-no dialog" bug.
14465
14466         * gui.h:
14467         * gui.h (struct Lisp_Gui_Item):
14468         recognize callback-ex in a number of places.
14469
14470         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14471         new parameter in button_item_to_widget_value.
14472
14473         * glyphs-x.c (x_update_widget):
14474         * glyphs-x.c (x_button_instantiate):
14475         * glyphs-x.c (x_button_update):
14476         * glyphs-x.c (x_progress_gauge_instantiate):
14477         * glyphs-x.c (x_edit_field_instantiate):
14478         * glyphs-x.c (x_combo_box_instantiate):
14479         * glyphs-x.c (x_tab_control_instantiate):
14480         * glyphs-x.c (x_label_instantiate):
14481         new image instance parameter in various places.
14482
14483         * event-Xt.c:
14484         * event-Xt.c (enqueue_Xt_dispatch_event):
14485         this fun gets exported.
14486
14487         * gui-msw.c:
14488         * gui-msw.c (mswindows_handle_gui_wm_command):
14489         handle both :callback and :callback-ex, and generate our own
14490         event because it's one of the callback-ex arguments.
14491
14492         * gui-x.c:
14493         * gui-x.c (popup_selection_callback):
14494         handle both :callback and :callback-ex, and generate our own
14495         event because it's one of the callback-ex arguments.
14496         * gui-x.c (button_item_to_widget_value):
14497         * gui-x.c (gui_items_to_widget_values_1):
14498         * gui-x.c (gui_item_children_to_widget_values):
14499         * gui-x.c (gui_items_to_widget_values):
14500         new image instance parameter in various places.
14501
14502         * fns.c (Freplace_list):
14503         fix small typo in doc string.
14504
14505         * lisp.h:
14506         declare enqueue_Xt_dispatch_event.
14507
14508 2000-04-28  Ben Wing  <ben@xemacs.org>
14509
14510         * buffer.c:
14511         * buffer.c (Frecord_buffer):
14512         * buffer.c (syms_of_buffer):
14513         delete record-buffer-hook.
14514
14515         * fns.c:
14516         * fns.c (Freplace_list):
14517         * fns.c (syms_of_fns):
14518         new primitive replace-list.
14519
14520         * frameslots.h:
14521         slot for old buffer-alist.
14522
14523         * lisp.h:
14524         exfun replace-list.
14525
14526         * redisplay.c:
14527         * redisplay.c (redisplay_frame):
14528         * redisplay.c (syms_of_redisplay):
14529         * redisplay.c (vars_of_redisplay):
14530         new hook buffer-list-changed-hook.
14531         call it.
14532
14533 2000-04-27  Ben Wing  <ben@xemacs.org>
14534
14535         * extents.h: extern in_modeline_generation.
14536
14537         * redisplay.c (generate_formatted_string_db): set
14538         in_modeline_generation.
14539
14540         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14541         flags if in modeline generation.  otherwise frame-modified-tick
14542         is ticked far too often.
14543         Declare in_modeline_generation.
14544
14545 2000-04-26  Ben Wing  <ben@xemacs.org>
14546
14547         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14548         option.
14549         (vars_of_emacs): add quick-build as an error-checking option.
14550         A bit kludgy, but there doesn't seem much point in creating
14551         a real var for this.
14552
14553         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14554
14555 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14556
14557         * redisplay.h (struct display_line): Add a new variable,
14558         line_continuation.
14559
14560         * redisplay.c (create_text_block): Set dl->line_continuation if
14561         the line continues.
14562         (create_string_text_block): Ditto.
14563         (regenerate_window_incrementally): Use line_continuation instead
14564         of searching continuation glyph.
14565         (add_margin_runes): Call add_glyph_rune.
14566         (add_glyph_rune): Handle margin glyph.
14567
14568 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14569
14570         * filelock.c (fill_in_lock_file_name):
14571         ANSIfy.
14572         Check for IS_ANY_SEP instead of '/'.
14573         (lock_file_1):
14574         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14575         Never check errno without first seeing that system call failed.
14576         (unlock_file): Add GCPRO.
14577         (Flock_buffer): Fix docstring.
14578         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14579
14580 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14581
14582         * sysdep.c (get_pty_max_bytes):
14583         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14584         strings longer than 252 bytes.
14585
14586         * md5.c: Unconditionally include ANSI header <limits.h>
14587
14588         * glyphs-x.c (convert_EImage_to_XImage):
14589         * lisp-union.h (union Lisp_Object):
14590         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14591
14592 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14593
14594         * filelock.c (current_lock_owner): Remove unused variable o, p.
14595
14596 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14597
14598         * callint.c: Remove multiply defined symbol Qlet
14599         (syms_of_callint): ditto.
14600
14601 2000-04-14  Andy Piper  <andy@xemacs.org>
14602
14603         * general.c (syms_of_general): add last-command, this-command, let
14604         and funcall.
14605
14606         * lisp.h: declare various symbols.
14607
14608         * glyphs.h: declare Qwidget_callback_current_channel;
14609
14610         * glyphs-widget.c (syms_of_glyphs_widget): add
14611         Qgui_callback_current_channel.
14612         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14613
14614         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14615         widget-callback-current-channel when invoking the interactive
14616         arg. Also bind last-command and next-command when invoking the
14617         widget updates.
14618         * gui-x.c (popup_selection_callback): ditto.
14619
14620         * gui.c (get_gui_callback): massage args so that we are always
14621         calling eval. This allows us to add our own variable bindings
14622         outside.
14623
14624         * glyphs-x.c (x_button_instantiate): use
14625         gui_items_to_widget_values since this is GC safe.
14626         (x_progress_gauge_instantiate): ditto.
14627         (x_edit_field_instantiate): ditto.
14628         (x_label_instantiate): ditto.
14629
14630         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14631         (emacs_Xt_event_widget_focus_out): new function
14632         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14633         focus.
14634         (emacs_Xt_event_add_widget_actions): new function. add focus
14635         functions as actions.
14636         (init_event_Xt_late): use it.
14637
14638 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14639
14640         * event-stream.c (Fdispatch_event): Doc fix.
14641
14642 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14643
14644         * postgresql.c: Remove all references to PQsetenv*.
14645
14646         * postgresql.h: Remove references to PGsetenvHandler object.
14647         * lrecord.h (lrecord_type): Ditto.
14648
14649 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14650
14651         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14652         real_heigh and real_width members, and accessor macros for these.
14653
14654         * glyphs-msw.c (init_image_instance_geometry): New function.
14655         (init_image_instance_from_dibitmap): Use it.
14656         (mswindows_resource_instantiate): Use it.
14657         (init_image_instance_from_xbm_inline): Use it.
14658         (mswindows_initialize_image_instance_mask): Use real bitmap
14659         geometry.
14660         (mswindows_create_resized_bitmap): Ditto.
14661         (mswindows_create_resized_mask): Ditto.
14662
14663         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14664         and bitmap to their surface size.
14665
14666 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14667
14668         * process-unix.c (unix_send_process): Guard against process MIA
14669         after Faccept_process_output.
14670
14671 2000-04-11  Ben Wing  <ben@xemacs.org>
14672
14673         * eval.c (unbind_to_hairy): fix brokenness introduced by
14674         nanosecond speed improvements.
14675
14676 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14677
14678         * sunplay.c (init_device): To play sounds correctly, the device
14679         apparently needs to be initialized at least once by XEmacs.  Make
14680         it so.
14681
14682 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14683
14684         * redisplay.c (add_margin_runes): Add text image glyph
14685           handling.
14686
14687 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14688
14689         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14690         gcc is newer than 2.5.
14691
14692 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14693
14694         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14695
14696         * fns.c (size_bit_vector):
14697         * alloc.c (size_vector):
14698         (make_vector_internal):
14699         (make_bit_vector_internal):
14700         (sweep_bit_vectors_1):
14701         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14702
14703 2000-04-06  Andy Piper  <andy@xemacs.org>
14704
14705         * gmalloc.c (malloc): undo previous change.
14706         (malloc): ditto.
14707         (free): ditto.
14708         (realloc): ditto.
14709
14710 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14711
14712         * line-number.c (buffer_line_number): Revert to former version.
14713
14714 2000-04-06  Andy Piper  <andy@xemacs.org>
14715
14716         * gmalloc.c (malloc): add error checking.
14717         (malloc): ditto.
14718         (free): ditto.
14719         (realloc): ditto.
14720
14721         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14722         button_item_to_widget_value arg.
14723
14724         * glyphs-x.c (x_button_instantiate): add extra
14725         button_item_to_widget_value arg.
14726         (x_progress_gauge_instantiate): ditto.
14727         (x_edit_field_instantiate): ditto.
14728         (x_label_instantiate): ditto.
14729
14730         * gui-x.c (gui_items_to_widget_values_1): add extra
14731         button_item_to_widget_value arg.
14732         (button_item_to_widget_value): add extra menu_item_p arg.
14733
14734         * gui-x.h: change signature of button_item_to_widget_value.
14735
14736         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14737         button_item_to_widget_value arg.
14738
14739 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14740
14741         * buffer.h (struct buffer): auto_save_modified should be long.
14742
14743 2000-04-05  Andy Piper  <andy@xemacs.org>
14744
14745         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14746         type.
14747         (button_query_geometry): give a little more room so that athena
14748         buttons fit.
14749
14750 2000-04-05  Andy Piper  <andy@xemacs.org>
14751
14752         * faces.c (complex_vars_of_faces): The widget face should inherit
14753         the font of the gui-element face.
14754
14755 2000-04-04  Andy Piper  <andy@xemacs.org>
14756
14757         * glyphs-x.c (x_button_update): new function. unconditionally
14758         update a button's state when the instance is dirty.
14759         (image_instantiator_format_create_glyphs_x): add x_button_update.
14760         (x_widget_instantiate): remove old resize cruft.
14761
14762 2000-04-02  Andy Piper  <andy@xemacs.org>
14763
14764         * frame.c (change_frame_size_1): The introduction of gutters means
14765         that we need to allow 0 as a potential frame dimension.
14766
14767 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14768
14769         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14770         image glyph if allow_cursor.
14771         (add_hscroll_rune): Don't allow cursor to border glyph.
14772         (create_text_block): Ditto.
14773
14774         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14775         text not in buffer.
14776         (redisplay_output_layout): Call ensure_face_cachel_complete for
14777         text image glyph.
14778
14779
14780 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14781
14782         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14783
14784         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14785         not in buffer
14786
14787         * redisplay-tty.c (tty_output_display_block): Delete the routine
14788         for text image glyph
14789         * redisplay-x.c (x_output_display_block): ditto
14790         * redisplay-msw.c (mswindows_output_display_block): ditto
14791
14792 2000-02-02  Mike Alexander  <mta@arbortext.com>
14793
14794         Note: Some of these were committed by accident as part of other
14795         patches.
14796
14797         * regex.c (regex_compile): Avoid compiler warnings.
14798
14799         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14800
14801         * nt.h: Declare term_ntproc correctly.
14802
14803         * nt.c: Remove incorrect declaration of get_home_directory which
14804         is declared correctly in lisp.h.
14805
14806         * keymap.c (get_keyelt): Avoid compiler warnings.
14807         (raw_lookup_key_mapper): Avoid compiler warnings.
14808
14809         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14810
14811         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14812
14813         * filemode.c (mode_string): Avoid compiler warnings.
14814
14815         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14816         avoid warning.
14817
14818         * events-mod.h: Undef some things that winuser.h defines differently.
14819
14820         * data.c (Faset): Avoid compiler warnings.
14821
14822         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14823
14824 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14825
14826         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14827         Fall through to simple beep on error.
14828         Replace "extern" by real header file.
14829
14830         * linuxplay.c: Use nativesound.h
14831         (play_sound_data): Return error code. Be less verbose on error.
14832
14833         * sunplay.c: Use nativesound.h
14834         (play_sound_data): Return error code. Be less verbose on error.
14835
14836         * ntplay.c: Use nativesound.h
14837         (play_sound_data): Return fake error code
14838
14839         * sgiplay.c: Use nativesound.h
14840         (play_sound_data): Return error code
14841
14842         * hpplay.c: Use nativesound.h, partially implement
14843         new error code. Break compilation until finished.
14844         (play_sound_data): error code.
14845
14846         * nativesound.h (play_sound_file):
14847           (play_sound_data): Prototype in new header.
14848
14849 2000-03-31  Andy Piper  <andy@xemacs.org>
14850
14851         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14852         for toggle and radio buttons.
14853         (image_instantiator_buttons): use it.
14854
14855 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14856
14857         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14858         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14859         found. Scrollbar event probably belonged to some old config.
14860
14861 2000-03-31  Andy Piper  <andy@xemacs.org>
14862
14863         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14864         than 1.
14865         (initialize_widget_image_instance): default layout to
14866         LAYOUT_HORIZONTAL rather than 0.
14867         (widget_instantiate): reverse the item list at the end rather than
14868         every iteration.
14869         (layout_layout): re-code for the border text at the front of the
14870         item list rather than at the end.
14871         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14872         provided by the user.
14873         (widget_query_geometry): comment.
14874
14875 2000-03-30  Andy Piper  <andy@xemacs.org>
14876
14877         * glyphs-widget.c (image_instantiator_layout): allow standard
14878         widget keywords in layouts.
14879
14880         * gutter.c (output_gutter): cope with nil gutter contents.
14881
14882         * frame.c (Fset_frame_properties): add gutter docs.
14883
14884 2000-03-29  Andy Piper  <andy@xemacs.org>
14885
14886         * toolbar-msw.c (TBSTYLE_FLAT): add.
14887         (mswindows_output_toolbar): minor fiddling.
14888
14889 2000-03-29  Andy Piper  <andy@xemacs.org>
14890
14891         * gutter.c (output_gutter): force gutter size recalculation if
14892         what we are trying to display won't fit.
14893         (update_gutter_geometry): new function. A per-gutter version of
14894         update_frame_gutter_geometry.
14895         (update_frame_gutter_geometry): use it.
14896         (redraw_exposed_gutter): add extra debugging output.
14897
14898 2000-03-28  Mike Alexander  <mta@arbortext.com>
14899
14900         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
14901         (pdump_file_unmap): Implement it on Windows
14902         (pdump_file_get): Save alocated handles for pdump_file_unmap
14903
14904 2000-03-28  Andy Piper  <andy@xemacs.org>
14905
14906         * gui.c (get_gui_callback): treat Quit specially.
14907
14908 2000-03-27  Andy Piper  <andy@xemacs.org>
14909
14910         * glyphs.c (image_instantiate): be careful to check in the same
14911         way we assigned.
14912
14913 2000-03-27  Didier Verna  <didier@xemacs.org>
14914
14915         * config.h.in: define the proper SMART_INCLUDE macro.
14916         handle renaming of `foo_h_path' to `foo_h_file'.
14917
14918         * database.c: ditto.
14919
14920         * emacs.c: ditto.
14921
14922         * linuxplay.c: ditto.
14923
14924         * terminfo.c: ditto.
14925
14926         * tooltalk.h: ditto.
14927
14928 2000-03-27  Andy Piper  <andy@xemacs.org>
14929
14930         * glyphs-msw.c (mswindows_update_widget): make sure the widget
14931         gets updated whenever the face might have changed.
14932
14933 2000-03-26  Mike Alexander  <mta@arbortext.com>
14934
14935         * dumper.c (pdump_resource_free): Fix the comment.
14936
14937 2000-03-21  Olivier Galibert  <galibert@pobox.com>
14938
14939         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
14940
14941 2000-03-22  Mike Alexander  <mta@arbortext.com>
14942
14943         * dumper.c: Include Windows headers on Windows
14944         (pdump_resource_free): Add a body to the function
14945         (pdump_load): exe_name -> exe_path and add some comments.
14946
14947 2000-03-25  Mike Alexander  <mta@arbortext.com>
14948
14949         * gui.c (copy_gui_item_tree): Return a value in all cases
14950
14951 2000-03-21  Didier Verna  <didier@xemacs.org>
14952
14953         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
14954         lwlib/config.h.in.
14955         (SMART_INCLUDE): new macro.
14956         (POSTGRES_INCLUDE): new macro to include postgresql headers from
14957         the proper location.
14958
14959         * postgresql.c: use it.
14960
14961         * inline.c: ditto.
14962
14963 2000-03-24  Andy Piper  <andy@xemacs.org>
14964
14965         * gutter.c (redraw_exposed_gutters): must be "in display" when we
14966         do this.
14967
14968 2000-03-24  Andy Piper  <andy@xemacs.org>
14969
14970         * redisplay-output.c (compare_runes): use image_instance_changed
14971         to detect changes. Do not depend on glyphs_changed, only depend on
14972         dirtiness.
14973          (redisplay_output_layout): add debug messages.
14974         (compare_runes): ditto.
14975
14976         * glyphs.h: declare new functions.
14977         (struct Lisp_Image_Instance): remove percent and associated
14978         accessors.
14979
14980         * gui.h: declare new copying functions.
14981
14982         * gui.c (copy_gui_item_tree): new function.
14983         (copy_gui_item): new function.
14984         (gui_item_id_hash): revert to standard hash.
14985         (gui_item_hash): ditto.
14986         (gui_item_hash_internal): deleted.
14987         (mark_gui_item): mark value.
14988         (gui_item_add_keyval_pair): add value.
14989         (gui_item_init): ditto.
14990         (gui_add_item_keywords_to_plist): ditto.
14991         (gui_item_equal): ditto.
14992         (syms_of_gui): add Q_value.
14993
14994         * glyphs-x.c (x_progress_gauge_update): use pending items and
14995         value for setting the state.
14996         (x_update_widget): don't set items from pending here.
14997
14998         * glyphs-widget.c (update_widget): update items here.
14999         (progress_gauge_set_property): use items for storing value. Put
15000         new value in pending items.
15001
15002         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
15003         items for new value. Convert percent -> value.
15004         (mswindows_tab_control_update): don't update items here.
15005
15006         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
15007         (update_subwindow): ditto.
15008         (image_instance_changed): new function. Compare hash values and
15009         past and present widget items.
15010         (image_instantiate): We more careful about where we instantiate
15011         things.
15012         (image_instantiate): add error checking.
15013
15014         * gutter.c (syms_of_gutter): use -hook.
15015
15016 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
15017
15018         * console-tty.c (Fset_console_tty_input_coding_system): Use
15019         Qkeyboard.
15020         (Fset_console_tty_output_coding_system): Use Qterminal.
15021         (tty_init_console): Use Qkeyboard and Qterminal.
15022
15023 2000-03-21  Ben Wing  <ben@xemacs.org>
15024
15025         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
15026         From Mike Alexander <mta@arbortext.com>.
15027
15028 2000-03-21  Ben Wing  <ben@xemacs.org>
15029
15030         * event-msw.c (mswindows_need_event): Horrible kludge to fix
15031         process brokenness.  Proper implementation to come.
15032         * callproc.c:
15033         Rename call-process-internal to old-call-process-internal.
15034         New impl. in process.el.
15035
15036 2000-03-21  Martin Buchholz  <martin@xemacs.org>
15037
15038         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
15039
15040 2000-03-20  Andy Piper  <andy@xemacs.org>
15041
15042         * glyphs.c (full_list_hash): make hashes of the same elements in
15043         different orders return different values.
15044
15045 2000-03-20  Martin Buchholz <martin@xemacs.org>
15046
15047         * XEmacs 21.2.32 is released.
15048
15049 2000-03-20  Martin Buchholz  <martin@xemacs.org>
15050
15051         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
15052         (DFC_MALLOC_USE_CONVERTED_DATA):
15053         Add aliasing-safe casts to allow use with char* or unsigned char*
15054         lvalues.
15055
15056         * eldap.c (Fldap_open):
15057         (Fldap_search_basic):
15058         (Fldap_add):
15059         (Fldap_modify):
15060         Make C++-compilable.
15061         Make sure GCPRO'ed variables are initialized.
15062         Use temp variables to avoid repeated calls to Flength.
15063
15064 2000-03-16  Martin Buchholz  <martin@xemacs.org>
15065
15066         * sysfile.h:
15067         Make sure PATH_MAX is always defined.
15068         Include limits.h for PATH_MAX.
15069         Deprecate use of MAXPATHLEN.
15070
15071 2000-03-10  Martin Buchholz  <martin@xemacs.org>
15072
15073         * emacs.c: Add reinit_vars_of_fileio.
15074         * symsinit.h: Add reinit_vars_of_fileio.
15075         * fileio.c (reinit_vars_of_fileio): New.
15076         * fileio.c (Fmake_temp_name):
15077         Initialize temp_name random number from microseconds to make
15078         collisions even less likely.  Initialize always at process startup
15079         time.  (make-temp-name) used to return the same file name twice in
15080         a row when PDUMP.
15081         Random stylistic fiddling.
15082         Comment fixes.
15083
15084 2000-03-20  Andy Piper  <andy@xemacs.org>
15085
15086         * glyphs.c (image_instantiate): allow text glyphs to be
15087         instantiated in the minibuffer window.
15088
15089 2000-03-19  Andy Piper  <andy@xemacs.org>
15090
15091         * glyphs.c (image_instance_hash): be careful about which items we
15092         hash on.
15093
15094         * glyphs-widget.c (tab_control_set_property): record into pending
15095         items rather than the actual items.
15096
15097         * glyphs-x.c (x_update_widget): use pending items to update with.
15098
15099         * glyphs-msw.c (mswindows_tab_control_update): use pending items
15100         to update with.
15101
15102         * glyphs.c (mark_image_instance): mark pending items.
15103
15104         * window.c (Fset_window_configuration): record the buffer.
15105         (Fselect_window): totally revert previous change which breaks many
15106         things.
15107
15108 2000-03-18  Andy Piper  <andy@xemacs.org>
15109
15110         * glyphs-msw.c (mswindows_tab_control_update): force selected
15111         item.
15112
15113         * glyphs.c (image_instantiate): don't allow the minibuffer as a
15114         window domain cache, otherwise we get inconsistencies at
15115         startup. There is something fishy at startup which can lead to the
15116         minibuffer being the selected window when the gutter content is
15117         instantiated.
15118
15119         * gui.c (parse_gui_item_tree_list): add probably unnecessary
15120         gcpros.
15121         (parse_gui_item_tree_children): ditto.
15122         (parse_gui_item_tree_item): ditto.
15123
15124         * glyphs.c (Fupdate_widget_instances): return something.
15125
15126 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
15127
15128         * window.c (Fselect_window): Undo 2000-03-17 change.
15129
15130 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
15131
15132         * postgresql.c (Fpq_setenv): Remove this turkey when linking
15133         against v7.0 libraries.  Insta-coredump city until the postgres
15134         folks fix it.
15135
15136 2000-03-17  Andy Piper  <andy@xemacs.org>
15137
15138         * faces.c (complex_vars_of_faces): don't give the widget face an
15139         inherited background pixmap.
15140
15141         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
15142         selected item.
15143
15144         * event-stream.c (Fdispatch_non_command_events): return something.
15145
15146         * gutter.c (output_gutter): use widget face.
15147         (clear_gutter): ditto.
15148
15149         * NEWS: adjust again.
15150
15151         * window.c (Fselect_window): make sure this runs to completion to
15152         avoid oddities with Fset_window_configuration.
15153         (Fcurrent_window_configuration): in general do not save the
15154         minibuffer as the selected window.
15155
15156         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
15157
15158 2000-03-16  Olivier Galibert  <galibert@pobox.com>
15159
15160         * emacs.c (Frunning_temacs_p): Revert previous patch.
15161         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
15162
15163 2000-03-16  Andy Piper  <andy@xemacs.org>
15164
15165         * glyphs-x.c (x_tab_control_update): if no widget values then
15166         return.
15167
15168         * NEWS: update for new features.
15169
15170         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
15171         synthetic event to the native system.
15172         (reinit_vars_of_event_Xt): set force_event_pending to
15173         emacs_Xt_force_event_pending.
15174
15175         * events.h (struct event_stream): add force_event_pending.
15176
15177         * specifier.c (recompute_one_cached_specifier_in_window): add
15178         comment.
15179
15180         * redisplay.c (redisplay_frame): don't call
15181         update_frame_subwindows. Reset subwindow cachels when
15182         subwindows_changed, removing this was an optimization too far.
15183
15184         * redisplay-output.c (compare_runes): reorganize so that we catch
15185         glyph changes when we want them. Set optimize_output when this
15186         would help layouts.
15187         (redisplay_output_layout): remove frame_really_changed, use
15188         optimize_output instead.
15189
15190         * redisplay-msw.c (mswindows_output_display_block): reset
15191         optimize_output after outputting a glyph.
15192         * redisplay-x.c (x_output_display_block): ditto.
15193         * redisplay-tty.c (tty_output_display_block): ditto.
15194
15195         * gutter.c: (specifier_vars_of_gutter): use new spec changed
15196         functions.
15197         (gutter_specs_changed): do specific gutter positions.
15198         (top_gutter_specs_changed): new function. Only update the
15199         specified gutter specs.
15200         (bottom_gutter_specs_changed): ditto.
15201         (left_gutter_specs_changed): ditto.
15202         (right_gutter_specs_changed): ditto.
15203
15204         * gui.c (gui_item_hash_internal): new function, does a real hash.
15205         (gui_item_id_hash): use it.
15206         (gui_item_hash): hash the eval'ed gui_item.
15207
15208         * gui-x.c (popup_selection_callback): send an eval event to call
15209         Fupdate_widget_instances.
15210
15211         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
15212         to call Fupdate_widget_instances.
15213
15214         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
15215         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
15216
15217         * glyphs.c: (update_frame_subwindows): deleted.
15218         (Fupdate_widget_instances): new function for updating the dirty
15219         state of widgets that might have changed.
15220         (syms_of_glyphs): add Qupdate_widget_instances.
15221         (full_list_hash): hash a list completely.
15222         (image_instance_hash): use it for items and properties.
15223
15224         * frame-msw.c (mswindows_size_frame_internal): remove unused
15225         variable.
15226
15227         * faces.h (struct face_cachel): fix comment.
15228
15229         * event-stream.c (Fdispatch_non_command_events): new
15230         function. Process non-command events, forcing an event cycle
15231         beforehand.
15232         (syms_of_event_stream): declare.
15233         (event_stream_force_event_pending): new function. Force an event
15234         on the native event queue so that an event cycle will occur next
15235         time we check.
15236
15237         * event-msw.c:
15238         (struct ntpipe_shove_stream):
15239         (mswindows_enqueue_dispatch_event):
15240         (mswindows_dequeue_dispatch_event):
15241         (mswindows_cancel_dispatch_event):
15242         (mswindows_pump_outstanding_events):
15243         (mswindows_drain_windows_queue):
15244         (mswindows_handle_paint):
15245         (mswindows_wnd_proc):
15246         (mswindows_key_to_emacs_keysym):
15247         (get_process_input_waitable):
15248         (emacs_mswindows_delete_stream_pair): re-indent file.
15249         (mswindows_need_event): do not process further fds if the windows
15250         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
15251         fixes the 100% cpu problem.
15252         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
15253
15254 2000-03-15  Olivier Galibert  <galibert@pobox.com>
15255
15256         * alloc.h: New.
15257         * dumper.h: New.
15258         * dumper.c: New.
15259
15260         * emacs.c: Moved dump file searching to dumper.c.
15261         (Frunning_temacs_p): Fixed.
15262
15263         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15264         last_lrecord_type_index_assigned.
15265
15266 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15267
15268         * symsinit.h: Added reinit parameter to init_console_stream
15269         declaration.
15270
15271         * lisp.h: Added file parameter to pdump_load declaration.
15272
15273         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15274         support.  Added dump file searching.
15275
15276         * config.h.in: Added EMACS_PROGNAME.
15277
15278         * console-stream.c (init_console_stream): Fix reinitialisation
15279         when running from temacs.
15280
15281         * alloc.c (pdump): Add id support.
15282         (pdump_load): Add file parameter and signature/id support.
15283
15284         * Makefile.in.in: Add full pdump support.
15285
15286 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15287
15288         * postgresql.c: Update documentation to reflect latest code
15289         status.
15290         (print_result): Show tuple counts in printed representation when
15291         appropriate.
15292         (Fpq_put_nbytes): MULE-ize.
15293         (Fpq_get_line_async): Ditto.
15294
15295 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15296
15297         * postgresql.c (Fpq_lo_import): Fix return value.
15298         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15299
15300 2000-03-13  Ben Wing  <ben@xemacs.org>
15301
15302         * alloc.c (pdump_load):
15303         Fix compile warning under mswin.
15304
15305 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15306
15307         * postgresql.c: Mule-ization, bug fixes.
15308         Use PG_CODING to encapsulate coding system name changes.
15309         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15310         (pg-coding-system): Create.
15311
15312         (Fpq_conn_defaults): Mule-ize.
15313         (Fpq_connectdb): Mule-ize & bug fix.
15314         (Fpq_connect_start): Mule-ize.
15315         (Fpq_set_client_encoding): Mule-ize.
15316         (Fpq_finish): Document `DEAD' connection status.
15317         (Fpq_clear): Ditto.
15318         (Fpq_pgconn): Mule-ize.
15319         (Fpq_exec): Mule-ize & bug fix.
15320         (Fpq_send_query): Ditto.
15321         (Fpq_get_result): Ditto.
15322         (Fpq_res_status): Mule-ize.
15323         (Fpq_result_error_message): Mule-ize.
15324         (Fpq_ntuples): fix comments.
15325         (Fpq_fname): Mule-ize.
15326         (Fpq_fnumber): Mule-ize.
15327         (Fpq_ftype): fix comments.
15328         (Fpq_get_value): Mule-ize.
15329         (Fpq_cmd_status): Ditto.
15330         (Fpq_cmd_tuples): Ditto.
15331         (Fpq_oid_value): Ditto.
15332         (Fpq_notifies): Ditto.
15333         (Fpq_lo_import): Ditto.
15334         (Fpq_lo_export): Ditto.
15335         (Fpq_get_line): Ditto.
15336         (Fpq_put_line): Mule-ize and bug fix.
15337         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15338
15339 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15340
15341         * postgresql.c (vars_of_postgresql): Mule-ize.
15342         (Fpq_conn_defaults): Ditto.
15343
15344 2000-03-12  Ben Wing  <ben@xemacs.org>
15345
15346         * alloc.c (Fmake_byte_code):
15347         * alloc.c (debug_string_purity_print):
15348         * alloc.c (pdump_backtrace):
15349         * alloc.c (pdump_get_indirect_count):
15350         * alloc.c (pdump_register_sub):
15351         * alloc.c (pdump_register_object):
15352         * alloc.c (pdump_register_struct):
15353         * alloc.c (pdump_dump_data):
15354         * alloc.c (pdump_reloc_one):
15355         Minor cleanups.
15356
15357         * console-msw.c:
15358         * console-msw.c (GetConsoleHwnd):
15359         * console-msw.c (msw_hide_console):
15360         * console-msw.c (msw_show_console):
15361         * console-msw.c (msw_ensure_console_buffered):
15362         * console-msw.c (msw_output_console_string):
15363         * console-msw.c (console_type_create_mswindows):
15364
15365         a) Added functions to manipulate the console window for use with
15366         shell support.
15367
15368         b) Added support for writing text to the console, which is now
15369         used under Windows when xemacs is not being run non-interactively,
15370         to write text that would otherwise be destined for stdout because
15371         under these circumstances, text written to stdout tends to
15372         disappear and not be seen.
15373
15374         * console-msw.h:
15375         * event-Xt.c:
15376         * event-Xt.c (x_event_to_emacs_event):
15377         * event-Xt.c (describe_event_window):
15378         * events-mod.h (XEMACS_MOD_CONTROL):
15379         * events.c:
15380         * events.c (Fmake_event):
15381         * events.c (character_to_event):
15382         * events.c (event_to_character):
15383         * events.c (format_event_object):
15384         * events.c (Fevent_modifiers):
15385         * events.h:
15386         * events.h (struct key_data):
15387         * events.h (struct button_data):
15388         * events.h (struct misc_user_data):
15389         * frame-x.c (Fcde_start_drag_internal):
15390         * frame-x.c (Foffix_start_drag_internal):
15391         * gpmevent.c (Freceive_gpm_event):
15392         * keymap.c:
15393         * keymap.c (bucky_sym_to_bucky_bit):
15394         * keymap.c (control_meta_superify):
15395         * keymap.c (make_key_description):
15396         * keymap.c (keymap_lookup_directly):
15397         * keymap.c (create_bucky_submap):
15398         * keymap.c (keymap_store):
15399         * keymap.c (define_key_check_and_coerce_keysym):
15400         * keymap.c (define_key_parser):
15401         * keymap.c (define_key_alternate_name):
15402         * keymap.c (Fdefine_key):
15403         * keymap.c (raw_lookup_key_mapper):
15404         * keymap.c (struct map_keymap_unsorted_closure):
15405         * keymap.c (map_keymap_unsorted_mapper):
15406         * keymap.c (map_keymap_sort_predicate):
15407         * keymap.c (map_keymap_sorted):
15408         * keymap.c (accessible_keymaps_mapper_1):
15409         * keymap.c (where_is_recursive_mapper):
15410         * keymap.c (describe_map_mapper):
15411         * keymap.c (describe_map_sort_predicate):
15412         * keymap.c (describe_map):
15413         * keymap.c (complex_vars_of_keymap):
15414         And a number of other files, the key modifier preprocessor
15415         constants that xemacs uses have names that conflict with constants
15416         defined under MS Windows for other purposes, so they were renamed
15417         to begin with the prefix XEMACS_. The variables that hold such
15418         modifiers were changed to consistently be of type int to fix
15419         various compile warnings.
15420
15421         * console.c (complex_vars_of_console):
15422         * device.c:
15423         * device-msw.c:
15424         * device-msw.c (mswindows_finish_init_device):
15425         * device-msw.c (msw_get_workspace_coords):
15426         * device-msw.c (mswindows_device_system_metrics):
15427         and various other files, added support for a new
15428         device property called offset-workspace which returns the position
15429         of the upper left corner of the workspace area and goes along with
15430         the existing size-workspace property.
15431
15432         * dialog-msw.c:
15433         * dialog-msw.c (push_bufbyte_string_as_unicode):
15434         * dialog-msw.c (mswindows_popup_dialog_box):
15435         Added support for XEmacs-style accelerator specifications in
15436         button text.  Note: I didn't add support for this under X Windows,
15437         and somebody needs to do this.
15438
15439         * dialog.c:
15440         * dialog.c (Fpopup_dialog_box):
15441         Documented the support for accelerators that was just mentioned.
15442
15443         editfns.c (get_home_directory): Changed behavior under Windows
15444         when HOME not defined; former behavior was irretrievably broken.
15445
15446         * emacs.c:
15447         * emacs.c (main_1):
15448         * emacs.c (main):
15449         * minibuf.c (clear_echo_area_internal):
15450         * minibuf.c (echo_area_append):
15451         * print.c:
15452         * print.c (std_handle_out_external):
15453         * print.c (std_handle_out_va):
15454         * print.c (fatal):
15455         * print.c (write_string_to_stdio_stream):
15456         * print.c (output_string):
15457         * print.c (debug_print):
15458         * print.c (debug_backtrace):
15459         * print.c (debug_short_backtrace):
15460         Cleaned up the code that prints text to stdout so that this can be
15461         changed to output into a console window instead under MS Windows,
15462         as described above.
15463
15464         * eval.c:
15465         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15466         * eval.c (internal_catch):
15467         * eval.c (unwind_to_catch):
15468         * eval.c (throw_or_bomb_out):
15469         * eval.c (condition_case_1):
15470         * eval.c (signal_1):
15471         * eval.c (check_error_state_sanity):
15472         * eval.c (call_with_suspended_errors_1):
15473         * eval.c (call_with_suspended_errors):
15474         * eval.c (reinit_vars_of_eval):
15475         Added code to catch throw loops and check for a pesky bug that may
15476         be gone now.
15477
15478         * event-msw.c:
15479         * event-msw.c (key_needs_default_processing_p):
15480         * event-msw.c (mswindows_wnd_proc):
15481         * event-msw.c (mswindows_modifier_state):
15482         * event-msw.c (emacs_mswindows_quit_p):
15483         * event-msw.c (vars_of_event_mswindows):
15484         a) Added support for using the alt key to select menu items as is
15485         standard under MS Windows.  This is controlled using the variable
15486         menu-accelerator-enabled, just like under X Windows.  There is an
15487         option on the options menu to turn this support on.  I really
15488         think that it should be on by default under Windows, but I'm not
15489         going to make this change yet.
15490
15491         b)  Added support for dynamic display size changes under Windows.
15492
15493         * event-stream.c:
15494         * event-stream.c (maybe_echo_keys):
15495         * event-stream.c (Fnext_event):
15496         * event-stream.c (command_builder_find_leaf):
15497         * event-stream.c (lookup_command_event):
15498         * event-stream.c (execute_command_event):
15499         * event-stream.c (pre_command_hook):
15500         * event-stream.c (post_command_hook):
15501         * event-stream.c (syms_of_event_stream):
15502         * event-stream.c (vars_of_event_stream):
15503         * event-stream.c (complex_vars_of_event_stream):
15504         * events.h (struct command_builder):
15505
15506         a) Tried to clean up a little bit the horribly written x-specific
15507         accelerator code that crept into this file.  I moved this code
15508         into menubar-x.c where it belongs. I also needed to move the
15509         command builder structure into the file events.h because it is
15510         accessed directly by this accelerator code.  What I didn't do, but
15511         which should be done at some point, is to properly abstract this
15512         code using device methods instead of the kludgy way that it
15513         currently hooks into the event code.
15514
15515         b) Added the lisp variables this-command-properties and
15516         last-command- properties, which should be used to synchronize two
15517         adjacent commands in preference to playing games with the variable
15518         this-command, which is typically what happens.
15519
15520         c) Added some slightly nasty code to hook into the lisp support
15521         for shifted- motion-key selection.  This is actually necessary for
15522         somewhat complicated reasons, which are described in
15523         simple.el. (NB: I think the proper thing would be to have the code
15524         that calls the pre and post command hooks also call out to generic
15525         lisp functions in simple.el, where all built-in stuff could be
15526         added.  I will think about this more.)
15527
15528         * event-unixoid.c (poll_fds_for_input):
15529         * lread.c (readchar):
15530         * redisplay-tty.c (tty_clear_frame):
15531         * redisplay-x.c (x_get_gc):
15532         * signal.c (interrupt_signal):
15533         And a whole bunch of other files: fixed up places that printed
15534         directly to stderr to instead call the function stderr_out so that
15535         the changes I made under Windows work correctly.
15536
15537         * filemode.c (mode_string):
15538         Warning fixes.
15539
15540         * frame-msw.c:
15541         * frame-msw.c (mswindows_size_frame_internal):
15542         Fixed the computation of frame size and position to keep the frame
15543         within the workspace area, rather than within the physical
15544         dimensions of the screen, so that the frame doesn't overlap window
15545         manager decorations, such as the start menu and toolbar, typically
15546         at the bottom of the screen.
15547
15548         * frame.c (vars_of_frame):
15549         Changed the default frame title format under MS Windows to consist
15550         of buffername-XEmacs, which is standard under MS Windows.  I think
15551         it might be a good idea to change this everywhere because I think
15552         it is superior to the current frame title format, but this is the
15553         kind of change that is likely to cause some people to get annoyed,
15554         so I'm not making it.
15555
15556         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15557
15558         * gui-msw.c (mswindows_handle_gui_wm_command):
15559         Fixed compile warnings.
15560
15561         * gui-x.c:
15562         * gui-x.c (strdup_and_add_accel):
15563         * gui-x.c (button_item_to_widget_value):
15564         * gui-x.h:
15565         Added code to automatically put an accelerator onto the beginning
15566         of menu items that don't have one as is now the standard, and is
15567         described more later.  Also fixed things so that the menu item
15568         name can be an evaluated expression, again a new standard.
15569
15570         * gui.c:
15571         * gui.c (gui_item_add_keyval_pair):
15572         * gui.c (make_gui_item_from_keywords_internal):
15573         * gui.c (gui_add_item_keywords_to_plist):
15574         * gui.c (gui_item_accelerator):
15575         * gui.c (gui_name_accelerator):
15576         * gui.c (gui_item_included_p):
15577         * gui.c (gui_item_display_flush_left):
15578         * gui.c (gui_item_display_flush_right):
15579         * gui.c (parse_gui_item_tree_item):
15580         * gui.c (parse_gui_item_tree_children):
15581         * gui.c (parse_gui_item_tree_list):
15582         Mule-ized.  Cleanup.  GCPRO addition.
15583
15584         * line-number.c (buffer_line_number):
15585         * lisp.h:
15586         * lisp.h (EMACS_INT_MAX):
15587         Added the manifest constant EMACS_INT_MIN corresponding to the
15588         existing constant EMACS_INT_MAX.  This is partially to fix compile
15589         warnings under Windows, and partly for cleanliness.
15590
15591         * menubar-msw.c:
15592         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15593         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15594         * menubar-msw.c (displayable_menu_item):
15595         * menubar-msw.c (populate_menu_add_item):
15596         * menubar-msw.c (populate_or_checksum_helper):
15597         * menubar-msw.c (populate_menu):
15598         * menubar-msw.c (update_frame_menubar_maybe):
15599         * menubar-msw.c (prune_menubar):
15600         * menubar-msw.c (msw_char_is_accelerator):
15601         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15602         * menubar-msw.c (mswindows_handle_wm_command):
15603         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15604         * menubar-msw.c (mswindows_handle_wm_initmenu):
15605         * menubar-msw.c (mswindows_update_frame_menubars):
15606         * menubar-msw.c (mswindows_free_frame_menubars):
15607         * menubar-msw.c (mswindows_popup_menu):
15608         Fixed a bug in handling accelerators where an extra character
15609         would be displayed in the menu item.  Also generalized the
15610         function displayable_menu_item because it is now used by the
15611         dialog box code as well.  And finally, added code in the functions
15612         that create the menubar to extract a list of accelerators for the
15613         top level menubar, which is used in the event code to determine
15614         whether a particular alt-key combination should be used to invoke
15615         a menu item, or should be passed through to access the standard
15616         XEmacs keymap binding for this key combination.
15617
15618         Much needed GCPROing.
15619
15620         * menubar-x.c:
15621         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15622         * menubar-x.c (menu_item_descriptor_to_widget_value):
15623         * menubar-x.c (restore_in_menu_callback):
15624         * menubar-x.c (x_popup_menu):
15625         * menubar-x.c (menu_move_up):
15626         * menubar-x.c (menu_move_down):
15627         * menubar-x.c (menu_move_left):
15628         * menubar-x.c (menu_move_right):
15629         * menubar-x.c (menu_select_item):
15630         * menubar-x.c (command_builder_operate_menu_accelerator):
15631         * menubar-x.c (menu_accelerator_junk_on_error):
15632         * menubar-x.c (command_builder_find_menu_accelerator):
15633         * menubar-x.c (Faccelerate_menu):
15634         * menubar.h:
15635         Moved a whole bunch of code here that was previously in
15636         event-stream.c as described above.  There is also code connected
15637         to the new standard of adding an accelerator to the beginning of
15638         menu items that don't have one as described above and below.
15639
15640         * menubar.c:
15641         * menubar.c (menu_parse_submenu_keywords):
15642         * menubar.c (Fmenu_find_real_submenu):
15643         * menubar.c (Fnormalize_menu_item_name):
15644         * menubar.c (syms_of_menubar):
15645         * menubar.c (vars_of_menubar):
15646         * menubar.c (complex_vars_of_menubar):
15647
15648         a) Cleaned up a bunch of documentation and improved it.
15649
15650         b) XEmacs now automatically adds an accelerator onto the beginning
15651         of any menu items that don't have one.  I did this because there
15652         will inevitably be some menu items on the main menubar that don't
15653         have accelerators on them because the package that adds that
15654         particular menu item hasn't yet been fixed up to have accelerators
15655         in them and it looked rather strange to have some items with and
15656         some items without accelerators, especially since even in items
15657         without accelerators, you can, at least under windows, still
15658         access the item through an accelerator corresponding to the first
15659         character in the item's name.  If people don't like this behavior,
15660         I can add a variable to turn it off optionally, but I'm not sure
15661         this is a good idea because we really do need to have accelerators
15662         on all of the menu items, and if a package doesn't like the
15663         accelerators being put on the first character, then it should put
15664         the accelerators where they belong.
15665
15666         c) I made a behavior change, which is that the descriptor that
15667         specifies the text of the menu item, which formerly was just a
15668         string, can now also be an evaluated expression.  This makes this
15669         descriptor parallel with all of the others, which could also be
15670         evaluated expressions.  This also obviates the need for the
15671         keyword :label, which was previously listed in the documentation
15672         as unimplemented, and which was for the same purpose.
15673
15674         d) GCPROing.
15675
15676         * ntproc.c:
15677         * ntproc.c (new_child):
15678         * ntproc.c (sys_spawnve):
15679         * ntproc.c (find_child_console):
15680         * ntproc.c (sys_kill):
15681         Fixed compile warnings.  By the way, this file should really go
15682         away entirely, and this will happen as soon as Kirill makes his
15683         final round of process cleanups, which affect the function
15684         call-process.
15685
15686         * process-nt.c:
15687         * process-nt.c (struct nt_process_data):
15688         * process-nt.c (find_process_from_pid):
15689         * process-nt.c (send_signal_the_nt_way):
15690         * process-nt.c (enable_child_signals):
15691         * process-nt.c (find_child_console):
15692         * process-nt.c (send_signal_the_95_way):
15693         * process-nt.c (nt_finalize_process_data):
15694         * process-nt.c (ensure_console_window_exists):
15695         * process-nt.c (nt_create_process):
15696         * process-nt.c (nt_kill_child_process):
15697         * process-nt.c (nt_kill_process_by_pid):
15698         * process-nt.c (nt_open_network_stream):
15699         * process-nt.c (vars_of_process_nt):
15700         Copied over code from Emacs 20.5 to correctly send signals to sub-
15701         processes under Windows 95.  Also added code to automatically
15702         create and hide console window when a sub-process is created under
15703         Windows 95, which obviates the need for the separate runemacs.exe
15704         executable, and finally implemented some variables that were
15705         implemented in Emacs 20.5, but previously not in XEmacs.  These
15706         include mswindows- start-process-share-console and
15707         mswindows-start-process-inherit-error-mode. (Both of these only
15708         apply to Windows 95.)
15709
15710         * regex.c (regex_compile): Fixed a compile warning.
15711
15712         * select-msw.c:
15713         * select-msw.c (mswindows_own_selection):
15714         * select-msw.c (mswindows_get_foreign_selection):
15715         * select-msw.c (mswindows_disown_selection):
15716         * select-msw.c (console_type_create_select_mswindows):
15717         * select-msw.c (syms_of_select_mswindows):
15718         Cleaned up the file and implemented the device method
15719         selection_exists_p, which had accidentally been left out.  Also
15720         removed four lisp functions that were remnants from before the
15721         time when the selection code was properly device abstracted.
15722         These functions are no longer needed because there are generic
15723         equivalents, and because they were added recently and don't exist
15724         in FSF Emacs, I don't think there's any problem with just deleting
15725         them.
15726
15727         * sysdep.c:
15728         * sysdep.c (sys_subshell):
15729         Fixed a compile warning, although in this case there's probably
15730         something wrong with this code, and it ought to be looked into
15731         more thoroughly by somebody who understands it.
15732
15733         * window.c:
15734         * window.c (Fwindow_text_area_height):
15735         * window.c (Fwindow_width):
15736         * window.c (Fwindow_full_width):
15737         * window.c (Fwindow_pixel_width):
15738         * window.c (debug_print_window):
15739         * window.c (syms_of_window):
15740         Added functions window-text-area-height and window-full-width,
15741         which are functions for returning various width and height
15742         characteristics of a window. (One of these functions is necessary
15743         for making the file dialog box work correctly, and the other one
15744         was added for completeness.)  Also added a table to the
15745         documentation for window-height which describes the entire scheme
15746         for accessing width and height characteristics of a window.
15747
15748 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15749
15750         * nt.c (fstat): Added a comment for another problem with
15751         non-encapsulated [f]stat(), reported by Adrian Aichner
15752         <aichner@ecf.teradyne.com>.
15753
15754 2000-03-11  Andy Piper  <andy@xemacs.org>
15755
15756         * window.c (make_dummy_parent): initialize subwindow instance
15757         cache.
15758         (Fset_window_configuration): zero extent_modiff.
15759
15760 2000-03-10  Andy Piper  <andy@xemacs.org>
15761
15762         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15763         more changes can be triggered.
15764         (Fredisplay_frame): ditto.
15765         (Fredraw_device): ditto.
15766         (Fredisplay_device): ditto.
15767         (redisplay_frame): make non-static.
15768         (redisplay_frame): call update_frame_gutter_geometry outside of
15769         display proper.
15770
15771         * gutter.h: declare update_frame_gutter_geometry.
15772
15773         * redisplay.h: declare redisplay_frame.
15774
15775         * gutter.c (update_frame_gutter_geometry): move geometry changes
15776         in update_frame_gutters here. Geometry changes can only occur
15777         outside of redisplay.
15778         (update_frame_gutters): remove geometry change code.
15779         (Fredisplay_gutter_area): make sure that we are in display when we
15780         update and that we have flushed any size changes.
15781
15782 2000-03-11  Andy Piper  <andy@xemacs.org>
15783
15784         * alloc.c (pdump_dump_data): remove i & count shadows.
15785
15786 2000-02-27  Mike Alexander  <mta@arbortext.com>
15787
15788         * sysdep.h: Declare pdump_read_file
15789
15790         * sysdep.c (pdump_read_file): New function
15791
15792         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15793         dump data
15794
15795 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15796
15797         * lrecord.h: add `lrecord_type_pgsetenv'.
15798
15799 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15800
15801         * symsinit.h: declare (vars|syms)_of* functions.
15802         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15803
15804 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15805
15806         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15807
15808         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15809         GCCs.
15810
15811         * emacs.c (main_1): Call postgres initialization code.
15812
15813         * postgresql.h: New file.  PostgreSQL RDBMS support.
15814         * postgresql.c: New file.
15815
15816 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15817
15818         * redisplay-output.c (redisplay_output_display_block): Disable
15819         redundant code.
15820
15821 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15822
15823         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15824         (Fcanna_henkan_next): Ditto.
15825         (Fcanna_bunsetu_henkou): Ditto.
15826         (Fcanna_henkan_kakutei): Ditto.
15827         (Fcanna_henkan_end): Ditto.
15828         (Fcanna_henkan_quit): Ditto.
15829         (Fcanna_henkan_next): Set retun value correctly.
15830         (c2mu): Use unsigned char instead of signed char.
15831
15832 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15833
15834         * emacs.c (main_1): Always call syms_of_gui.
15835         * inline.c: include gui.h
15836
15837 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15838
15839         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15840         converted to Lisp_Object.
15841         (Qtop_bottom): New variable.
15842         (syms_of_redisplay): Initialize it.
15843         * redisplay.h (Vvisible_bell): Ditto.
15844         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15845         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15846         only flash top and bottom.
15847
15848 2000-03-08  Andy Piper  <andy@xemacs.org>
15849
15850         * buffer.c (Frename_buffer): record new buffer name the right way.
15851
15852 2000-03-08  Andy Piper  <andy@xemacs.org>
15853
15854         * glyphs.c (update_subwindow): increase hash depth so that widget
15855         items get picked up properly.
15856
15857         * redisplay-output.c (compare_runes): increase hash depth so that
15858         widget items get picked up properly.
15859
15860 2000-03-08  Andy Piper  <andy@xemacs.org>
15861
15862         * gutter.c (output_gutter): add some debug.
15863
15864         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15865         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15866         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15867
15868         * redisplay-output.c (compare_runes): use display_hash to
15869         determine if glyphs really are not the same.
15870
15871         * glyphs.c (update_subwindow): check display_hash to see if
15872         anything really needs to be updated. If not then do
15873         nothing. Record the display_hash after updating.
15874         (image_instance_equal): compare the image_instance face also.
15875
15876 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15877
15878         * redisplay.h: Fix comment style.
15879
15880 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15881
15882         * consle-msw.h (struct mswindows_frame):
15883         Added new member paint_pending to indicate whether a WM_PAINT
15884         magic event has been queued for this frame.
15885
15886         * event-msw.c (mswindows_drain_windows_queue):
15887         Don't queue a WM_PAINT magic event if one is already queued.
15888         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15889
15890         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15891
15892 2000-03-07  Didier Verna  <didier@xemacs.org>
15893
15894         * dired.c: #include `regex.h' after `sysfile.h'.
15895
15896 2000-03-06  Martin Buchholz  <martin@xemacs.org>
15897
15898         * sound.c (init_nas_sound): Fix compiler warning.
15899
15900         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
15901         (FREE_STRUCT_P):
15902         (MARK_STRUCT_AS_FREE):
15903         (MARK_STRUCT_AS_NOT_FREE):
15904         Make `gcc -fstrict-aliasing' work properly.
15905
15906 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15907
15908         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
15909         (mswindows_delete_device): Call CoUnnitialize().
15910
15911         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
15912
15913 2000-02-25    <CraigL@DyCon.com>
15914
15915         * process-nt.c: MinGW now has <shellapi.h>, but still needs
15916         <errno.h>.
15917
15918         * sysdep.c: This extern declaration for environ prevents MinGW
15919         from finding the variable in CRTDLL.DLL.
15920
15921         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
15922         windows headers.
15923         (SHGFI_EXETYPE): ..
15924         (WM_MOUSEWHEEL): ..
15925         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
15926         definitions.
15927         (MMRESULT): Removed, now defined in cygwin's windows headers.
15928         (TIMECAPS): ..
15929         (uid_t,gid_t,pid_t,ssize_t): ..
15930         (_timeb): Removed, MinGW defines both _timeb and timeb.
15931         (HAVE_H_ERRNO): Added.
15932         (HAVE_TZNAME): Added, configure is not detecting this.
15933
15934 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
15935
15936         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
15937         * syntax.c (syntax_match): Use it.
15938
15939         * cmds.c: Import auto-fill-chars from FSF Emacs.
15940         (Vauto_fill_chars): New variables.
15941         (internal_self_insert): Check Vauto_fill_chars.
15942         (vars_of_cmds):
15943         Declare auto-fill-chars as a Lisp variable and initialize it.
15944
15945 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15946
15947         * fileio.c (Fmake_symbolic_link):
15948         (Ffile_symlink_p):
15949         Run handlers even if local machine doesn't have symlinks.
15950
15951 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15952
15953         * event-msw.c (mswindows_drain_windows_queue):
15954         Don't generate paint magic events for non-XEmacs frames.
15955
15956 2000-03-05  Andy Piper  <andy@xemacs.org>
15957
15958         * redisplay.c (redisplay_frame): generate_displayable_area and
15959         friends assumes that we are not in GC, we therefore have to make
15960         sure that this doesn't happen.
15961
15962         * gutter.c (calculate_gutter_size): generate_displayable_area
15963         assumes that we are not in GC, we therefore have to make sure that
15964         this doesn't happen.
15965
15966 2000-03-05  Martin Buchholz  <martin@xemacs.org>
15967
15968         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
15969
15970 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15971
15972         * redisplay.c (regenerate_window): Make sure we set a sane value
15973         for end_pos even if we jump out of the loop.
15974         (regenerate_window): Answer Ben's question :-).
15975         (start_end_of_last_line): Add may_error argument.
15976         (start_of_last_line):
15977         (end_of_last_line): Pass may_error = 0.
15978         (end_of_last_line_may_error): New function.
15979         (pixel_to_glyph_translation): Use it, so we don't crash in
15980         event_to_glyph.
15981
15982 2000-03-04  Andy Piper  <andy@xemacs.org>
15983
15984         * window.h (struct window): add gutter_extent_modiff.
15985
15986         * window.c (allocate_window): zero out gutter_extent_modiff.
15987
15988         * redisplay.h: declare sync_display_line_structs.
15989
15990         * redisplay.c (add_glyph_rune): add a better comment.
15991
15992         * redisplay-output.c (sync_display_line_structs): made non-static.
15993         (compare_runes): remove unneccesary glyph cachel access.
15994
15995         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
15996
15997         * gutter.c (output_gutter): don't output the gutter if extent
15998         changes only involve extents in buffers. use 4 sets of display
15999         lines.
16000         (gutter_extent_signal_changed_region_maybe): new function. Mark
16001         extents in gutters as changed.
16002         (update_frame_gutters): use 4 sets of display lines.
16003         (reset_gutter_display_lines): ditto.
16004         (free_frame_gutters): ditto.
16005         (redraw_exposed_gutter): force output of gutters.
16006
16007         * frame.h (struct frame): add 4 sets of gutter display lines.
16008
16009         * extents.c: (extent_changed_for_redisplay): signal changes to
16010         extents in strings in the gutter as well as extents in buffers.
16011
16012 2000-03-02  Andy Piper  <andy@xemacs.org>
16013
16014         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
16015
16016         * frame.c (Fmake_frame): make sure the gutters get initialized
16017         after the frame is visible.
16018         (set_frame_selected_window): re-arrange compilation macros a
16019         little.
16020         (change_frame_size_1): mark gutters changed.
16021
16022         * device.c (Fset_device_class): mark gutters changed.
16023
16024 2000-03-01  Andy Piper  <andy@xemacs.org>
16025
16026         * window.c (window_top_frame_gutter_height): deleted.
16027         (window_bottom_frame_gutter_height): ditto.
16028         (window_left_frame_gutter_height): ditto.
16029         (window_right_frame_gutter_height): ditto.
16030         (window_top_gutter_height): don't use them.
16031         (window_bottom_gutter_height): ditto.
16032         (window_left_gutter_width): ditto.
16033         (window_right_gutter_width): ditto.
16034         (Fsplit_window): ditto.
16035         (Fwindow_pixel_edges): don't use border dimensions here.
16036
16037         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
16038         (update_scrollbar_instance): ditto.
16039
16040         * redisplay.c (generate_modeline): don't take gutters into account.
16041         (generate_modeline): ditto.
16042         (redisplay_frame): small gutter display optimization.
16043
16044         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
16045
16046         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
16047         gutters into account.
16048
16049         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
16050         for window position and type.
16051
16052         * gutter.c (get_gutter_coords): fix for frame gutters.
16053         (update_frame_gutters): update frame geometry if the gutters have
16054         changed.
16055         (init_frame_gutters): record current gutter geometries.
16056
16057         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
16058         var.
16059         (mswindows_widget_instantiate): ditto.
16060
16061         * frame.h (struct frame): add current_gutter_bounds.
16062
16063         * frame.c (change_frame_size_1): position window and minibuffer
16064         appropriately taking into account the frame gutters.
16065
16066         * frame-x.c: (x_initialize_frame_size): take into account the
16067         frame gutters.
16068
16069 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16070
16071         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
16072
16073 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
16074
16075         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
16076
16077 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16078
16079         * file-coding.c (reset_decoding_stream): Clear previous
16080         detection state when autodetect.
16081
16082 2000-02-29  Didier Verna  <didier@xemacs.org>
16083
16084         * extents.c (set_extent_glyph_1): don't require extents to be
16085         attached.
16086
16087 2000-02-27  Andy Piper  <andy@xemacs.org>
16088
16089         * gutter.c (Fset_default_gutter_position): don't default left and
16090         right gutter visibility to t.
16091         (Fset_default_gutter_position): run
16092         default-gutter-position-changed-hook.
16093         (syms_of_gutter): add default-gutter-position-changed-hook.
16094
16095 2000-02-26  Andy Piper  <andy@xemacs.org>
16096
16097         * specifier.c (Fmake_specifier): add gutter references.
16098
16099         * gutter.h (RAW_WINDOW_GUTTER): new macro.
16100
16101         * lisp.h: declare Fvalid_plist_p.
16102
16103         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
16104         as changed.
16105         (default_gutter_visible_p_changed_in_window): invalidate gutter as
16106         well as its visibility so that it gets reconstructed.
16107         (construct_window_gutter_spec): new function. Construct a string
16108         to be displayed in the gutter from a plist of strings. Take care
16109         to only use elements that are declared as visible.
16110         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
16111         WINDOW_GUTTER.
16112         (gutter_validate): allow plists of strings in the specifier.
16113         (gutter_specs_changed): construct the real_gutter from the gutter
16114         specs using construct_window_gutter_spec.
16115         (gutter_visible_validate): gutter-visible is a new specifier type.
16116         (Fgutter_visible_specifier_p): new function for the new specifier.
16117         (syms_of_gutter): declare gutter-visible and
16118         Fgutter_visible_specifier_p.
16119         (specifier_type_create_gutter): intitalize new gutter-visible
16120         specifier.
16121         (reinit_specifier_type_create_gutter): ditto.
16122         (specifier_vars_of_gutter): use new specifier type for gutter
16123         visibility.
16124         (init_frame_gutters): construct real_gutter correctly.
16125         (Fgutter_specifier_p): beef up documentation.
16126         (Fgutter_size_specifier_p): ditto.
16127
16128         * winslots.h: add real_gutter slots.
16129
16130 2000-02-25  Andy Piper  <andy@xemacs.org>
16131
16132         * device-msw.c: Be kind to older cygwin versions. From Raymond
16133         Toy <toy@rtp.ericsson.se>.
16134
16135         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
16136         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
16137
16138 2000-02-25  Martin Buchholz  <martin@xemacs.org>
16139
16140         * elhash.c (MARK_OBJ): Practice macro hygiene.
16141
16142 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16143
16144         * miscplay.c: s/__inline__/inline/g;
16145         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
16146         (get_device_compdc): INLINE ==> static inline
16147         * *.[ch]: Change INLINE to INLINE_HEADER globally.
16148         find -name '*.h' | \
16149         xargs global-replace \
16150         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
16151
16152 2000-02-25  Andy Piper  <andy@xemacs.org>
16153
16154         * window.c (window_top_frame_gutter_height): new function.
16155         (window_top_window_gutter_height): ditto.
16156         (window_top_gutter_height): use them.
16157         (window_bottom_frame_gutter_height): new function.
16158         (window_bottom_window_gutter_height): ditto.
16159         (window_bottom_gutter_height): use them.
16160         (window_left_window_gutter_width): new function.
16161         (window_left_frame_gutter_width): ditto.
16162         (window_left_gutter_width): use them.
16163         (window_right_window_gutter_width): new function.
16164         (window_right_frame_gutter_width): ditto.
16165         (window_right_gutter_width): use them.
16166         (window_pixel_height): new function. calulate window pixel height
16167         with frame gutter involvement.
16168         (Fsplit_window): calculate new sizes taking frame gutters into
16169         account.
16170         (window_char_height_to_pixel_height): don't include frame gutters.
16171         (window_char_height): use window_pixel_height.
16172         (window_pixheight): rename from window_pixel_height.
16173         (change_window_height): use it.
16174         (window_pixel_height_to_char_height): don't include frame gutters.
16175         (window_char_width_to_pixel_width): ditto.
16176
16177 2000-02-25  Andy Piper  <andy@xemacs.org>
16178
16179         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
16180         if it is.
16181
16182 2000-02-24  Martin Buchholz  <martin@xemacs.org>
16183
16184         * alloc.c (staticpro):
16185         (staticpro_nodump):
16186         (dumpstruct):
16187         (dumpopaque):
16188         (pdump_wire):
16189         (pdump_wire_list):
16190         (compact_string_chars):
16191         (pdump_dump_wired):
16192         Convert:  if (foo) abort();  ==>  assert (! foo);
16193
16194         * eldap.c (Fldap_search_basic):
16195         (Fldap_add):
16196         (Fldap_modify):
16197         (Fldap_delete):
16198         Fix compiler warnings, and possible crashes if (random) return
16199         value were to be used.
16200
16201 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16202
16203         * device-msw.c: Workaround ResetDC failure.
16204
16205         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
16206         applying a devmode.
16207
16208         * redisplay-msw.c (get_frame_dc): Added start_page_p.
16209         (mswindows_text_width): Do not start printer page.
16210
16211         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
16212
16213         * glyphs-msw.c: Added image methods to msprinter console and
16214         msprinter-specific image instantiation.
16215
16216 2000-02-20  Mike Alexander  <mta@arbortext.com>
16217
16218         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
16219         to avoid crashes when selection-sets-clipboard is on
16220         (mswindows_own_selection): ditto
16221
16222 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16223
16224         * glyphs-msw.c:
16225         * redisplay-msw.c (get_frame_dc):
16226         (get_frame_compdc):
16227         * console-msw.h:
16228         * device-msw.c (mswindows_init_device):
16229         (mswindows_delete_device):
16230         (msprinter_init_device):
16231         (msprinter_delete_device):
16232         * frame-msw.c (mswindows_init_frame_1):
16233         (mswindows_delete_frame):
16234         (msprinter_init_frame_3):
16235         (msprinter_delete_frame): Move compatible DC to device object from
16236         frame object, for both mswindows and msprinter. Only one at a time
16237         is needed, it is a real waste to have one per frame!
16238
16239 2000-02-23  Andy Piper  <andy@xemacs.org>
16240
16241         * glyphs.c: add dynamic width and height elements.
16242         (image_instance_equal): ditto.
16243
16244         * glyphs-widget.c (widget_query_geometry): calculate width and
16245         height dynamically if required.
16246         (initialize_widget_image_instance): initialize dynamic dimensions.
16247         (widget_instantiate): pick-up dynamic dimensions.
16248
16249         * glyphs.h (struct Lisp_Image_Instance): add width and height for
16250         dynamic determination. Add appropriate macros.
16251
16252         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
16253         dimensions safe.
16254         (WINDOW_GUTTER_SIZE): ditto.
16255         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
16256
16257         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
16258         inline.
16259         (get_frame_dc): ditto.
16260
16261         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16262         here.
16263
16264 2000-02-23  Martin Buchholz <martin@xemacs.org>
16265
16266         * XEmacs 21.2.31 is released.
16267
16268 2000-02-22  Ben Wing <ben@xemacs.org>
16269
16270         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16271
16272 2000-02-22  Andy Piper  <andy@xemacs.org>
16273
16274         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16275
16276 2000-02-21  Mike Sperber <mike@xemacs.org>
16277
16278         * .dbxrc:
16279         * .gdbinit:
16280         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16281         variables.
16282
16283 2000-02-21  Mike Sperber <mike@xemacs.org>
16284
16285         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16286
16287 2000-02-21  Martin Buchholz <martin@xemacs.org>
16288
16289         * XEmacs 21.2.30 is released.
16290
16291 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16292
16293         Performance hacking.
16294         * *.c (syms_of_*):
16295         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16296         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16297         * emacs.c (main_1):
16298         * lisp.h (DEFUN):
16299         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16300         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16301         * symeval.h (DEFVAR_SYMVAL_FWD):
16302         * symbols.c (guts_of_unbound_marker):
16303         Make all c_readonly objects also lisp_readonly and marked for life.
16304         * lrecord.h (struct lrecord_implementation):
16305         Document flags better.
16306         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16307         * lrecord.h (DECLARE_LRECORD):
16308         * lrecord.h (XSETRECORD):
16309         * lrecord.h (RECORDP):
16310         * lrecord.h (RECORD_TYPEP):
16311         * lrecord.h (RECORD_MARKER): New.
16312         * lrecord.h (error_check_*):
16313         * lrecord.h (CONCHECK_NONRECORD):
16314         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16315         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16316         * lrecord.h (set_lheader_implementation):
16317         * lrecord.h (enum lrecord_type): New.
16318         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16319         * alloc.c (disksave_object_finalization_1):
16320         * alloc.c (mark_object):
16321         * alloc.c (lrecord_type_index):
16322         * alloc.c (tick_lcrecord_stats):
16323         * alloc.c (Fgarbage_collect):
16324         * alloc.c (init_alloc_once_early):
16325         * alloc.c (pdump_load):
16326         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16327         * alloc.c (lrecord_type_index): Delete.
16328         Make lisp object type indexes be constant.
16329           Makes (byte-compile) 5% faster.
16330         Put all marker functions into their own array.
16331           Makes (garbage-collect) 5% faster.
16332         Optimize SYMBOL_VALUE_MAGIC_P.
16333           Makes (byte-compile) 2-3% faster.
16334         * config.h.in (gc_checking_assert): New.
16335         * alloc.c: Use gc_checking_assert().
16336         * .dbxrc: Make compatible with new object type implementation.
16337         * .gdbinit: Make compatible with new object type implementation.
16338         * alloc.c: Delete all symbols defined only for debugging, such as
16339         Lisp_Type_Vector and lrecord_charset.
16340
16341 2000-02-21  Andy Piper  <andy@xemacs.org>
16342
16343         * gui-msw.c (Fmswindows_shell_execute): fix file location
16344         problems.
16345
16346         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16347         unshowing so that set_window_buffer doesn't undo
16348         kill_buffer_hook's hard work.
16349
16350         * glyphs-widget.c (tab_control_query_geometry): don't count the
16351         first item when calculating geometry.
16352
16353         * glyphs.c (map_subwindow): remove redundant code.
16354         (update_frame_subwindows): be more circumspect about when to
16355         update subwindows.
16356
16357         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16358         when items haven't changed. Update faces if faces have changed as
16359         well as just the widget face.
16360         (x_tab_control_update): Update faces if faces have changed as well
16361         as just the widget face.
16362
16363 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16364
16365         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16366         registration.
16367         (build_syscolor_string): Use mswindows_color_to_string to try to
16368         get a named color.
16369         (mswindows_device_system_metrics): Reverse the foreground and
16370         background colors so that they match the documentation.
16371
16372         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16373         they match the default Windows palette.
16374         (mswindows_color_to_string): New function.
16375
16376 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16377
16378         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16379
16380 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16381
16382         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16383         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16384
16385         * symbols.c (init_symbols_once_early): Removed obsolete
16386         DATA_SEG_BITS related kludge.
16387         (defvar_magic): Ditto.
16388
16389         * malloc.c: Removed obsolete DATA_SEG_BITS
16390         * ralloc.c: Ditto.
16391         * mem-limits.h: Ditto.
16392
16393         * Makefile.in.in: Removed obsolete HAVE_SHM
16394         * emacs.c: Ditto.
16395
16396 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16397
16398         *  device-msw.c (mswindows_delete_device): Free DDE string
16399         handles.
16400
16401 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16402
16403         * keymap.c (get_keyelt):
16404         * unexnt.c (unexec):
16405         * vm-limit.c (memory_warnings):
16406         * ntheap.c (recreate_heap):
16407         * ntheap.h (UNINIT_PTR):
16408         * select-msw.c (Fmswindows_get_clipboard):
16409         (Fmswindows_set_clipboard):
16410         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16411         * objects-msw.c:
16412         * menubar-msw.c (displayable_menu_item):
16413         * glyphs-msw.c:
16414         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16415         * sysdep.c (sys_subshell):
16416         * process-nt.c (nt_create_process):
16417         * nt.c (normalize_filename):
16418         (dostounix_filename):
16419         (unixtodos_filename):
16420         * ntproc.c (win32_executable_type):
16421         * ntplay.c (play_sound_data_1):
16422         (play_sound_file):
16423         * editfns.c (get_home_directory):
16424         * event-msw.c (struct winsock_stream):
16425         (mswindows_dde_callback):
16426         * device-msw.c (msprinter_init_device):
16427         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16428
16429         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16430         mswindows_clear_toolbar were swapped!
16431
16432         * objects-msw.c:(colormap_t):
16433         (fontmap_t):
16434         * emacs.c (struct standard_args): Fixed const jumble.
16435
16436         * glyphs-widget.c (update_widget): Fixed comparison notation.
16437
16438         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16439
16440         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16441         __declspec(noreturn) syntax.
16442
16443 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16444
16445         * eldap.c (Fldap_open):
16446         (Fldap_search_basic):
16447         (Fldap_add):
16448         (Fldap_modify):
16449         Use new coding system conversion macros.
16450
16451 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16452
16453         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16454
16455 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16456
16457         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16458         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16459
16460         * eldap.c (Qadd, Qreplace): New constant symbols
16461         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16462         interruptions by XEmacs signals
16463         Remove unnecessary calls to slow_down_interrupts and
16464         speed_up_interrupts
16465         (Fldap_search_basic): Renamed from Fldap_search_internal
16466         Added new optional parameter VERBOSE that triggers the
16467         display of progress messages
16468         Remove unnecessary calls to slow_down_interrupts and
16469         speed_up_interrupts
16470         LDAP result code analysis rewritten
16471         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16472         (syms_of_eldap): Define the new symbols and functions
16473
16474
16475 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16476
16477         * realpath.c: Determine PATH_MAX maximally portably.
16478
16479         * insdel.c (bytecount_to_charcount): Optimize.
16480         The function used to be optimized for entirely ASCII sequences.
16481         Now it is optimized for successive characters from the same
16482         charset.  This also wins big for _mostly_ ASCII sequences.
16483
16484         * fileio.c (Ffile_truename): convert return from realpath() using
16485         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16486         - Rewrite GCPROing slightly.
16487
16488         * sysdep.c (sys_open): Do filename conversion, like all other
16489         sys_* functions.  Fixes bug:
16490         (let ((file-name-coding-system 'iso-8859-2))
16491            (write-region x y latin2-name))
16492         ==> writes filename using internal encoding.
16493
16494 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16495
16496         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16497         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16498         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16499         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16500         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16501         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16502         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16503         (CONST_IF_NOT_DEBUG): Delete.
16504         * alloc.c (this_one_is_unmarkable): Delete.
16505         (mark_object): Don't check for this_one_is_unmarkable. Use the
16506         c_readonly flag instead.
16507         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16508
16509 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16510
16511         * event-msw.c (mswindows_drain_windows_queue):
16512         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16513         away redundant repaint events.
16514
16515 2000-02-17  Andy Piper  <andy@xemacs.org>
16516
16517         * redisplay.h: declare mark_redisplay_structs.
16518
16519         * redisplay.c (redisplay_window):
16520         (redisplay_frame): don't check subwindows_state_changed.
16521         (mark_redisplay): mark gutters here.
16522
16523         * glyphs.c: (instantiate_image_instantiator): always layout if we
16524         haven't done so already.
16525         (allocate_image_instance): don't mark as dirty.
16526         (update_subwindow): bind inhibit_quit.
16527
16528         * gutter.c (mark_gutters): new function.
16529
16530         * glyphs-x.c (x_update_widget): Always resize to get round a
16531         widget bug.
16532
16533         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16534         breaking absolutely everything.
16535
16536         * gutter.h: declare mark_gutters.
16537
16538 2000-02-16  Martin Buchholz <martin@xemacs.org>
16539
16540         * XEmacs 21.2.29 is released.
16541
16542 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16543
16544         * fns.c (size_bit_vector): Fix computation of the size.
16545
16546 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16547
16548         * *.[ch]: Change CONST to const globally.
16549         find -name '*.[ch]' | \
16550         xargs global-replace \
16551         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16552         - Remove vestigial references to CONST_IS_LOSING
16553
16554 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16555
16556         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16557         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16558         events instead of dispatching them directly.
16559         (mswindows_handle_paint): New function to do repainting.
16560         (mswindows_wnd_proc):
16561         (emacs_mswindows_handle_magic_event): Call above function.
16562
16563 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16564
16565         * objects-msw.c (mswindows_create_font_variant): Return the new
16566         font handle.
16567         (initialize_font_instance): Get font metrics from the underlined
16568         variant of the font to cope with the case where the underlined
16569         font has a bigger descent.
16570
16571 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16572
16573         * gui.c (gui_item_accelerator): Return the first underlined
16574         character in item name.
16575
16576 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16577
16578         * lisp.h: Added Qprinter.
16579
16580         * general.c (syms_of_general): Initialized it.
16581
16582         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16583         (get_frame_dc):
16584         (get_frame_compdc): Made inline.
16585
16586         * console.h (struct console_methods): Added eject_page method.
16587
16588         * frame.h: Added FRAME_DISPLAY_P and friends.
16589         Aligned backslahes in many macros in more readable fashion.
16590         Added page_number to struct frame, and an accessor macro
16591         for it.
16592
16593         * defice.h: Added DEVICE_DISPLAY_P and friends.
16594
16595         * device.c (Fdevice_printer_p): Used these.
16596
16597         * frame.c (allocate_frame_core): Initialize page number.
16598         (Fprint_job_page_number):
16599         (Fprint_job_eject_page): Implemented.
16600
16601         * frame-msw.c (msprinter_eject_page): Added method.
16602         (msprinter_start_page): Added.
16603
16604         * window.c (Fwindow_truncated_p): Fixed docstring.
16605         (Fwindow_last_line_visible_height): Implemented.
16606
16607 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16608
16609         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16610
16611 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16612
16613         * syntax.c (scan_words): Always advance at least one character.
16614
16615 2000-02-13  Andy Piper  <andy@xemacs.org>
16616
16617         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16618         to make sure the glyph is in the cachels.
16619
16620         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16621         global image instance flag.
16622         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16623         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16624
16625         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16626         (Fset_image_instance_property): mark layout as changed.
16627         (invalidate_glyph_geometry_maybe): mark layout as changed.
16628         (glyph_width): use new NEEDS_LAYOUT macro.
16629         (glyph_ascent): ditto.
16630         (glyph_descent): ditto.
16631         (glyph_height): ditto.
16632         (image_instance_layout): mark layout as clean after laying out.
16633         (update_subwindow): don't mark layout as clean here.
16634
16635         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16636         should no longer be needed.
16637
16638         * glyphs-x.c (x_update_widget): sanitize asserts.
16639         (x_finalize_image_instance): sanitize assignment to widgets.
16640
16641         * glyphs-widget.c (widget_instantiate): don't need to clear the
16642         layout flag here.
16643
16644 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16645
16646         * sysdep.c (getcwd): Use standard prototype.
16647         * sysdep.h (getcwd): Use standard prototype.
16648
16649         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16650         (sequence, start, end).
16651         Remove redundant type checking.
16652         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16653         view of `caller-protects') to avoid a crash where the real fix was
16654         found elsewhere.
16655
16656 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16657
16658         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16659
16660         * s/sol2.h: Remove feature macro initialization.
16661
16662         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16663         (vector_hash): New.  Code from internal_hash.
16664         * lrecord.h:
16665         Fix up allocation subsystem comments.
16666
16667         * config.h.in: Add __EXTENSIONS__ for Solaris.
16668
16669         * systime.h (EMACS_GETTIMEOFDAY): New.
16670         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16671         Remove Solaris-specific code.
16672         Use void* for the (ignored) second arg for gettimeofday().
16673
16674         * elhash.c (hash_table_hash): Implement it, finally.
16675         * elhash.c:  Use hashcode_t.
16676
16677         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16678         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16679
16680         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16681         * fns.c (size_bit_vector):
16682         * alloc.c (size_vector):
16683         (make_vector_internal):
16684         (make_bit_vector_internal):
16685         (sweep_bit_vectors_1):
16686         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16687
16688 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16689
16690         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16691         Include strings.h to avoid warnings for bzero and strcasecmp.
16692
16693 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16694
16695         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16696         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16697
16698         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16699         sequence.
16700
16701 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16702
16703         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16704         use a value field instead.
16705         (symbol_value_forward_forward): Use value field.
16706         (DEFVAR_SYMVAL_FWD): Use value field.
16707         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16708         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16709         (DEFVAR_CONST_INT): Ditto.
16710         (DEFVAR_BOOL): Ditto.
16711         (DEFVAR_CONST_BOOL): Ditto.
16712         (DEFVAR_INT_MAGIC): Ditto.
16713         (DEFVAR_BOOL_MAGIC): Ditto.
16714
16715         * symbols.c (guts_of_unbound_marker): Use value field.
16716         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16717         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16718
16719         * lisp.h: Declare dumpopaque and noninteractive1.
16720
16721         * alloc.c (dumpopaque): Added.
16722         (pdump_dump_opaquevec): Added.
16723         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16724         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16725         noninteractive.
16726
16727 2000-02-10  Andy Piper  <andy@xemacs.org>
16728
16729         * glyphs.c (image_instance_layout): if the size changes, mark it
16730         as such.
16731
16732         * redisplay-output.c (redisplay_output_layout): Update the
16733         subwindow here.
16734         (redisplay_output_subwindow): ditto.
16735
16736         * glyphs.c (update_subwindow): make sure we reset flags for
16737         layouts as well as everything else.
16738
16739         * glyphs-widget.c (layout_layout): don't need to set the instances
16740         dimensions here.
16741
16742 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16743
16744         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16745         not HAVE_DLOPEN, which is a lower-level thing.
16746
16747         * .cvsignore: Ignore gmon.out
16748
16749 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16750
16751         * .cvsignore: Ignore portable dumper xemacs.dmp file
16752
16753 2000-02-09  Andy Piper  <andy@xemacs.org>
16754
16755         * redisplay-output.c (redisplay_output_layout): be more clever
16756         about when we output based on the changed flags.
16757
16758         * glyphs.h (struct image_instantiator_methods): add update_method.
16759         (struct Lisp_Image_Instance): add changed flags. Declare new
16760         macros for manipulating them.
16761
16762         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16763         (image_instance_parent_glyph): find an image_instance's parent
16764         glyph or image_instance.
16765         (image_instance_layout): mark the size as changed.
16766         (set_image_instance_dirty_p): new function. mark an image
16767         instance, plus all of its parents, as dirty.
16768         (Fset_image_instance_property): use it.
16769         (Fglyph_animated_timeout_handler): use it.
16770         (update_subwindow): call update_widget and device methods for
16771         update_subwindow. Mark all changed flags as clean.
16772         (Fresize_subwindow): mark size as changed.
16773
16774         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16775         failures.
16776         (x_update_subwindow): only resize subwindows here.
16777         (x_update_widget): new function. Update all changed properties of
16778         a widget.
16779         (x_resize_subwindow): deleted.
16780         (x_widget_set_property): deleted.
16781         (x_progress_gauge_set_property): deleted.
16782         (x_progress_gauge_update): new function. Implement recorded
16783         changes.
16784         (x_tab_control_update): ditto.
16785         (x_tab_control_set_property): deleted.
16786         (console_type_create_glyphs_x): declare new functions.
16787         (image_instantiator_format_create_glyphs_x): ditto.
16788
16789         * glyphs-widget.c (widget_set_property): mark text changed.
16790         (update_widget): new function. Update properties of a widget.
16791         (widget_instantiate): for layouts make sure we set their
16792         children's parent correctly.
16793         (tab_control_set_property): new function. Record changes that will
16794         take place under redisplay's control.
16795         (progress_gauge_set_property): ditto.
16796         (image_instantiator_progress_guage): declare new functions.
16797         (image_instantiator_tab_control): ditto.
16798
16799         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16800         now.
16801         (mswindows_update_widget): new function. Update all properties on
16802         a widget that have changed.
16803         (mswindows_button_update): new function. Update a button's set
16804         state.
16805         (mswindows_tab_control_update): new function. Update the items in
16806         a tab.
16807         (mswindows_tab_control_set_property): deleted.
16808         (mswindows_progress_gauge_update): new function. Update the
16809         progress gauge's progress.
16810         (mswindows_widget_set_property): deleted. This is all done
16811         asynchronously now.
16812         (mswindows_progress_gauge_set_property): ditto.
16813         (console_type_create_glyphs_mswindows): declare new methods.
16814         (image_instantiator_format_create_glyphs_mswindows): ditto.
16815
16816         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16817         (msprinter_set_frame_properties): ditto.
16818
16819         * console.h (struct console_methods): Add update_widget_method.
16820
16821 2000-02-09  Andy Piper  <andy@xemacs.org>
16822
16823         * gui-msw.c (Fmswindows_shell_execute): Make
16824         mswindows-shell-execute industrial strength.
16825
16826 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16827
16828         * lrecord.h: Make macro argument `props' match member function `plist'.
16829         * fns.c (Fget):
16830         * fns.c (Fput):
16831         * fns.c (Fremprop):
16832         * fns.c (Fobject_plist):
16833         * alloc.c:
16834         * symbols.c:
16835         Object property list frobbing cleanup.
16836         - Allow any lisp object (compared with `eq'), not just symbols, as
16837           keys in object plists.
16838         - Move symbol plist frobbing into symbols.c, where it belongs.
16839         - Move string plist frobbing into alloc.c, where it belongs.
16840         - Everything's an lrecord now, so no need to test for symbolp, etc.
16841         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16842
16843         * extents.c: Reorder code to remove declarations.
16844
16845         * frame.h (store_in_alist): Remove useless declaration.
16846
16847 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16848
16849         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16850         * config.h.in: Add HAVE_XCONVERTCASE.
16851
16852 2000-02-07  Andy Piper  <andy@xemacs.org>
16853
16854         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16855         it breaks many things.
16856
16857 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16858
16859         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16860         actually can start a common comment type.
16861         * src/syntax.h (SYNTAX_END_P): ditto for end.
16862
16863 2000-02-07  Martin Buchholz <martin@xemacs.org>
16864
16865         * XEmacs 21.2.28 is released.
16866
16867 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16868
16869         * event-Xt.c (x_keysym_to_character): New.
16870         (maybe_define_x_key_as_self_inserting_character): New.
16871         (x_has_keysym): New.
16872         Auto-define all keys on the keyboard as self-insert-key.
16873
16874 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16875
16876         * menubar.c (vars_of_menubar): A small code simplification.
16877
16878         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16879
16880         * ExternalShell.c:
16881         * ExternalClient.c:
16882         * EmacsShell-sub.c:
16883         * EmacsManager.c:
16884         * EmacsFrame.c:
16885         Use consistent style for specifying X resources.
16886
16887         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16888         This makes (dontusethis-set-symbol-value-handler) actually usable.
16889
16890         * lrecord.h (lrecord_decription_type):
16891         * alloc.c (pdump_register_sub):
16892         (pdump_dump_data):
16893         (pdump_reloc_one):
16894         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
16895         Comply with XEmacs coding style.
16896         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
16897         args, and XD_LISP_OBJECT_ARRAY with 3 args.
16898
16899         * keymap.c (Faccessible_keymaps):
16900         Make (accessible-keymaps map "\C-h") do the Right Thing.
16901         Make (accessible-keymaps map []) do the Right Thing.
16902         Make (accessible-keymaps map "") do the Right Thing.
16903         (check_keymap_definition_loop): New function.
16904         (keymap_store_internal): Keep luser from shooting self in foot,
16905           via (define-key ctl-x-4-map "p" global-map).
16906         Remove fullness slot from struct Lisp_Keymap, since hash tables
16907         are now reliable.
16908         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
16909
16910 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16911
16912         * redisplay.c (init_redisplay): Fix small memory leak.
16913         * elhash.h:
16914         * elhash.c (pdump_reorganize_hash_table):
16915         Rename from reorganize_hash_table. Change prototype.
16916         Reuse the original memory for hentries.  Save 100k.
16917         * alloc.c (PDUMP_READ): new macro.
16918         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
16919         * alloc.c: No need to #ifndef before #undef.
16920
16921         * print.c: Allow debug_print() to print readably by modifying
16922         debug_print_readably.  Use consistent variable names.
16923
16924         * .dbxrc: Try to get things to work even if stopped in a function
16925         without source available by explicitly specifying source files.
16926 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16927
16928         * unexnt.c (_start): Removed bogus code which caused loading heap
16929         from differrent executable file.
16930         Removed bogus assignment to _fmode, which caused inconsistencies.
16931
16932 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16933
16934         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
16935         Have spawnve encapsulation regard DONT_ENCAPSULATE.
16936         Do not preliminary `#define signal sigset'.
16937
16938         * systime.h: Do not prototype environ on windows nt and cygwin,
16939         this conflicts with system header.
16940
16941         * syssignal.h: Use correct define for WINDOWSNT
16942
16943         * sysdep.h: Do not prototype environ on windows nt, this conflicts
16944         with system header.
16945
16946         * sysdep.c (near start of file): Fixed commentary and rearranged
16947         ifdefs in readable order.
16948         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
16949         (start_of_text):
16950         (end_of_text):
16951         (end_of_data): Do not compile in if using PDUMP.
16952
16953         * symsinit.h: Prototyped vars_of_nt().
16954
16955         * ntproc.c (windows9x_p): Added, instead of os_subtype.
16956         (find_child_console): Use it.
16957         (sys_kill): Use it.
16958
16959         * ntheap.h: Do not extern os_subtype.
16960
16961         * ntheap.c (cache_system_info): Do not cache unneeded:
16962         nt_major_version, nt_minor_version and os_subtype.
16963         (recreate_heap): Do not compile in when PDUMPing.
16964
16965         * nt.c (geteuid and friends): Use the new varibale
16966         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
16967         (init_user_info): Removed the above mentioned hackery.
16968         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
16969         stat has been fixed in the C runtime.
16970         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
16971
16972         * file-coding.c (struct file_coding_dump): Do not define
16973         ucs_to_mule_table in the struct if not MULE.
16974         (struct struct lrecord_description fcd_description_1): Do not dump
16975         the above.
16976
16977         * emacs.c (main_1): Call vars_of_nt().
16978         (right before Fdump_emacs_data): Don't need lastfile if using both
16979         portabe dumper and system malloc.
16980
16981         * alloc.c (Fmemory_limit): Conditionalized out.
16982         (pdump): Use OPEN_BINARY for the portable dump file.
16983         (pdump_load): Ditto.
16984
16985 2000-02-02  Mike Alexander  <mta@arbortext.com>
16986
16987         * nt.c (convert_time): Set tm_isdst before calling mktime and
16988         avoid calling it at all if the compiler supports 64 bit integers.
16989         Also initialize utc_base_ft before using it.
16990
16991 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16992
16993         * frame.c (change_frame_size_1): Take f->internal_border_width
16994         into consideration when calculating the width of the frame.
16995
16996 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16997
16998         * window.c (frame_min_height):
16999         (frame_size_valid_p):
17000         (frame_pixsize_valid_p): Added.
17001         (check_frame_size): Generalized.
17002
17003         * window.h: Prototyped the above.
17004
17005         * lisp.h:
17006         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
17007         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
17008         Deleted Vwin32_* and Vbinary_process_* unused variables.
17009
17010         * device-msw.c (msprinter_init_device): Do not get printer font
17011         list; Added DEVMODE functions.
17012
17013         * frame-msw.c: Added lots of printer code.
17014
17015         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
17016         general.c.
17017
17018         * console-msw.h: Added more msprinter device private slots.
17019
17020 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17021
17022         * event-msw.c (key_needs_default_processing_p): Added.
17023         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
17024
17025 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17026
17027         * glyphs.c (image_instance_layout): Mark image instance as clean
17028         after layout.
17029         (glyph_dirty_p): Removed redundant function.
17030         (invalidate_glyph_geometry_maybe): Added.
17031         (update_glyph_cachel_data): Call it.
17032
17033         * glyphs.h: Prototyped it.
17034
17035         * redisplay.c (add_glyph_rune): Call it.
17036         (redisplay_window): Reset glyphs cachels when frame faces have
17037         changed, thus forcing recomputation of built-in border glyphs.
17038
17039 2000-01-30  Martin Buchholz  <martin@xemacs.org>
17040
17041         * Makefile.in.in: Make portable dumper and purify play well together.
17042         Add imperfect, but better than nothing, support for pdump.
17043         Remove xemacs.dmp when temacs is re-generated.
17044         Don't ignore errors when dumping xemacs.
17045
17046         * symbols.c (maybe_call_magic_handler): Remove one magic number.
17047
17048 2000-01-28  Andy Piper  <andy@xemacs.org>
17049
17050         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
17051         (setup_normal_frame): ditto.
17052         (setup_frame_without_minibuffer): ditto.
17053         (setup_minibuffer_frame): ditto.
17054         (delete_frame_internal): ditto.
17055         (Fmake_frame_invisible): ditto.
17056         (Ficonify_frame): ditto.
17057
17058         * window.h: change Fset_window_buffer signature.
17059
17060         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
17061         (Fset_window_buffer): allow recording of buffer if the window is
17062         the selected window.
17063         (window_loop): Use new Fset_window signature.
17064
17065 2000-01-23  Daniel Pittman  <daniel@danann.net>
17066
17067         * config.h.in: Added template for `HAVE_ATHENA_3D'
17068
17069 2000-01-29  Andy Piper  <andy@xemacs.org>
17070
17071         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
17072
17073         * gutter.c (output_gutter): Don't output if the window isn't live.
17074
17075 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17076
17077         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
17078         of 01/12/00: Moved SetFocus back here where it belongs.
17079
17080 2000-01-23  Andy Piper  <andy@xemacs.org>
17081
17082         * s/cygwin32.h: declare printer things.
17083
17084 2000-01-26  Andy Piper  <andy@xemacs.org>
17085
17086         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
17087         Alexander.
17088
17089 2000-01-24  Andy Piper  <andy@xemacs.org>
17090
17091         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
17092         (mswindows_button_instantiate): Make sure glyph is a pixmap.
17093
17094         * glyphs-widget.c (widget_instantiate): Avoid shadows.
17095
17096         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
17097
17098         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
17099
17100         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
17101         (mswindows_output_display_block): Avoid local shadows.
17102
17103         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
17104         (mswindows_enqueue_mouse_button_event): ditto.
17105         (mswindows_handle_gui_wm_command): remove declaration.
17106
17107         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
17108         warnings.
17109
17110         * console-msw.h: Avoid shadows.
17111         (mswindows_get_toolbar_button_text):
17112         (emacs_mswindows_create_stream_pair):
17113         (emacs_mswindows_delete_stream_pair):
17114         (mswindows_handle_toolbar_wm_command): declare.
17115
17116         * device-msw.c (build_syscolor_string): Avoid shadows.
17117
17118 2000-01-23  Andy Piper  <andy@xemacs.org>
17119
17120         * glyphs-widget.c (widget_instantiate): reverse the items for
17121         layouts so that children are in the expected order.
17122
17123 2000-01-28  Martin Buchholz  <martin@xemacs.org>
17124
17125         * ralloc.c: safe_bcopy ==> memmove
17126         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
17127         * s/msdos.h: Remove BCOPY macros.
17128         * insdel.c (gap_right): Remove BCOPY conditional code.
17129         * insdel.c (gap_left): Remove BCOPY conditional code.
17130         XEmacs demands a working ANSI C compiler - hence memmove.
17131
17132         * regex.c (regex_compile): Remove accidental use of trigraphs.
17133
17134 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17135
17136         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
17137         event timestamp.
17138
17139 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17140
17141         * event-msw.c (mswindows_drain_windows_queue): Added the
17142         parameter.
17143         (mswindows_need_event): Commented the call to
17144         mswindows_drain_windows_queue().
17145         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
17146         only.
17147
17148         * console-msw.h: Moved a few function prototypes here from
17149         event-msw.c.
17150
17151         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
17152         parameter from unsigned short to unsigned long.
17153         (Fmswindows_shell_execute): Added return value.
17154
17155 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17156
17157         * sysdep.c (init_system_name):
17158           process-unix.c (unix_canonicalized_host_name):
17159         Don't call freeaddrinfo() if getaddrinfo() fails.
17160
17161         * process-unix.c (unix_open_unix_network_stream):
17162         Moved the code to get a port # into address loop.
17163
17164 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17165
17166         * buffer.c (reinit_vars_of_buffer):
17167         The right place to initialize conversion_in_dynarr and
17168         conversion_out_dynarr.
17169
17170         * alloc.c (pdump): Use the real open() till sys_open() is functional.
17171
17172         * process-unix.c (unix_canonicalize_host_name): Muleize.
17173         (unix_open_network_stream): Muleize.
17174
17175         * buffer.h: Fix up prototypes for ralloc.c functions.
17176
17177 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
17178         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
17179         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
17180                 instead of gethostbyname()
17181         * process-unix.c: In unix_canonicalize_host_name() and
17182                 unix_open_network_stream(), add code to use getaddrinfo()
17183                 instead of gethostbyname().
17184
17185 2000-01-27  Daniel Pittman <daniel@danann.net>
17186
17187         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
17188         libs when built with flat Athena.
17189
17190 2000-01-27  Martin Buchholz  <martin@xemacs.org>
17191
17192         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
17193         Use coding standards for function prototypes.
17194
17195 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17196
17197         * dialog-msw.c (push_lisp_string_as_unicode):
17198         * doc.c (unparesseuxify_doc_string):
17199         * dired.c (Fuser_name_completion_1):
17200         * dired.c (Fuser_name_all_completions):
17201         * dired.c (free_user_cache):
17202         * dired.c (user_name_completion):
17203         * console-x.c (get_display_arg_connection):
17204         * minibuf.c (clear_echo_area_internal):
17205         * minibuf.c (echo_area_append):
17206         * eldap.c (Fldap_open):
17207         * eldap.c (Fldap_search_internal):
17208         * frame-x.c (x_set_frame_text_value):
17209         * frame-x.c (x_set_frame_properties):
17210         * frame-x.c (x_create_widgets):
17211         * redisplay-tty.c (term_get_fkeys_1):
17212         * objects-x.c (x_parse_nearest_color):
17213         * objects-x.c (x_valid_color_name_p):
17214         * objects-x.c (x_initialize_font_instance):
17215         * objects-x.c (x_list_fonts):
17216         * objects-x.c (x_find_charset_font):
17217         * tooltalk.c (Fadd_tooltalk_message_arg):
17218         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
17219         * tooltalk.c (Fadd_tooltalk_pattern_arg):
17220         * process-unix.c (unix_create_process):
17221         * ntproc.c (sys_spawnve):
17222         * sound.c (Fplay_sound_file):
17223         * sound.c (Fplay_sound):
17224         * buffer.c (init_initial_directory):
17225         * buffer.c (init_buffer):
17226         * editfns.c (init_editfns):
17227         * editfns.c (Ftemp_directory):
17228         * editfns.c (Fuser_full_name):
17229         * editfns.c (uncache_home_directory):
17230         * editfns.c (get_home_directory):
17231         * editfns.c (Fuser_home_directory):
17232         * editfns.c (Fformat_time_string):
17233         * editfns.c (Fcurrent_time_string):
17234         * gui-x.c (button_item_to_widget_value):
17235         * database.c (Fopen_database):
17236         * event-Xt.c (x_to_emacs_keysym):
17237         * event-Xt.c (x_event_to_emacs_event):
17238         * event-Xt.c (describe_event_window):
17239         * event-msw.c (mswindows_wnd_proc):
17240         * glyphs-eimage.c (jpeg_instantiate):
17241         * glyphs-eimage.c (gif_instantiate):
17242         * glyphs-eimage.c (png_instantiate):
17243         * glyphs-eimage.c (tiff_instantiate):
17244         * glyphs-x.c (xbm_instantiate_1):
17245         * glyphs-x.c (x_xbm_instantiate):
17246         * glyphs-x.c (x_xface_instantiate):
17247         * glyphs-x.c (autodetect_instantiate):
17248         * glyphs-x.c (cursor_font_instantiate):
17249         * glyphs-x.c (x_widget_instantiate):
17250         * glyphs-x.c (x_widget_set_property):
17251         * glyphs-x.c (x_widget_property):
17252         * glyphs-x.c (BUILD_GLYPH_INST):
17253         * print.c (write_string_to_stdio_stream):
17254         * print.c (output_string):
17255         * print.c (Falternate_debugging_output):
17256         * print.c (Fexternal_debugging_output):
17257         * glyphs-msw.c (extract_xpm_color_names):
17258         * glyphs-msw.c (mswindows_xpm_instantiate):
17259         * glyphs-msw.c (bmp_instantiate):
17260         * glyphs-msw.c (resource_name_to_resource):
17261         * glyphs-msw.c (mswindows_resource_instantiate):
17262         * glyphs-msw.c (xbm_instantiate_1):
17263         * glyphs-msw.c (mswindows_xbm_instantiate):
17264         * glyphs-msw.c (mswindows_xface_instantiate):
17265         * glyphs-msw.c (mswindows_widget_instantiate):
17266         * glyphs-msw.c (add_tree_item):
17267         * glyphs-msw.c (add_tab_item):
17268         * glyphs-msw.c (mswindows_combo_box_instantiate):
17269         * glyphs-msw.c (mswindows_widget_property):
17270         * glyphs-msw.c (mswindows_combo_box_property):
17271         * glyphs-msw.c (mswindows_widget_set_property):
17272         * console.c (stuff_buffered_input):
17273         * objects-msw.c (mswindows_initialize_color_instance):
17274         * objects-msw.c (mswindows_valid_color_name_p):
17275         * objects-msw.c (mswindows_list_fonts):
17276         * objects-msw.c (mswindows_font_instance_truename):
17277         * bytecode.c (optimize_compiled_function):
17278         * select-x.c (symbol_to_x_atom):
17279         * select-x.c (x_atom_to_symbol):
17280         * select-x.c (hack_motif_clipboard_selection):
17281         * select-x.c (selection_data_to_lisp_data):
17282         * select-x.c (lisp_data_to_selection_data):
17283         * select-x.c (Fx_get_cutbuffer_internal):
17284         * select-x.c (Fx_store_cutbuffer_internal):
17285         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17286         * buffer.h (TO_INTERNAL_FORMAT): New function.
17287         * emacs.c (make_arg_list_1):
17288         * emacs.c (make_argc_argv):
17289         * emacs.c (main_1):
17290         * emacs.c (Fdump_emacs):
17291         * emacs.c (split_string_by_emchar_1):
17292         * file-coding.h:
17293         * lisp.h:
17294         * lstream.h:
17295         * symsinit.h:
17296         * device-x.c (x_init_device):
17297         * device-x.c (Fx_valid_keysym_name_p):
17298         * device-x.c (Fx_get_font_path):
17299         * device-x.c (Fx_set_font_path):
17300         * glyphs.c (bitmap_to_lisp_data):
17301         * glyphs.c (pixmap_to_lisp_data):
17302         * alloc.c (make_ext_string): Use coding system arguments.  Update
17303         all callers.
17304         * alloc.c (build_string):
17305         * callproc.c (child_setup):
17306         * callproc.c (init_callproc):
17307         * fileio.c (lisp_strerror):
17308         * fileio.c (directory_file_name):
17309         * fileio.c (Fexpand_file_name):
17310         * fileio.c (Ffile_truename):
17311         * fileio.c (Fsysnetunam):
17312         * fileio.c (Fdo_auto_save):
17313         * sysdep.c (sys_readdir):
17314         * tests.c: New file.  Allow adding C tests.
17315         Replace GET_* macros with a more comprehensible and flexible
17316         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17317         Modify all calls.
17318         Any coding system can be used to do format conversion.
17319         Eliminate enum external_data_format.
17320         Eliminate convert_to_external_format.
17321         Eliminate convert_to_internal_format.
17322         Make sure file-name, keyboard, terminal, and ctext are always
17323         defined as coding systems or aliases.  Make
17324         file-name-coding-system, terminal-coding-system, and
17325         keyboard-coding-system magical variables that are equivalent to
17326         defining the corresponding coding system aliases.
17327
17328         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17329         * file-coding.c (Fcoding_system_alias_p): New function.
17330         * file-coding.c (Fcoding_system_aliasee): New function.
17331         * file-coding.c (append_suffix_to_symbol): New function.
17332         * file-coding.c (dangling_coding_system_alias_p): New function.
17333         * file-coding.c (Ffind_coding_system):
17334         * file-coding.c (Fcopy_coding_system):
17335         * file-coding.c (encode_coding_no_conversion):
17336         * file-coding.c (syms_of_file_coding):
17337         * file-coding.c (vars_of_file_coding):
17338         Rewrite coding system alias code.
17339         Allow nested aliases, like symbolic links.
17340         Allow redefinition of coding system aliases.
17341         Prevent existence of dangling coding system aliases.
17342
17343         * dired.c (Fuser_name_completion_1):
17344         * dired.c (Fuser_name_all_completions):
17345         A crash would happen if user did QUIT in the middle of building
17346         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17347
17348         * lisp.h:
17349         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17350
17351         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17352         an unsigned char *.  Update all callers.
17353
17354 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17355
17356         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17357
17358 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17359
17360         * elhash.c (hentry_description): Use more portable definition.
17361         (resize_hash_table): Initialize new hentries using
17362         xnew_array_and_zero, thereby simplifying the code.
17363
17364         * mule-charset.c (make_charset): Make sure entire object is
17365         initialized, to avoid Purify warnings.
17366
17367         * alloc.c (resize_string): Fix unlikely crash with big strings.
17368
17369 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17370
17371         * realpath.c (xrealpath):
17372         Don't call getwd().
17373
17374 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17375
17376         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17377
17378 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17379
17380         * unexelfsgi.c (unexec): Change the way we decide which segment
17381         should be extended.
17382
17383         Assumption that .bss section should be outside the PT_LOADable
17384         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17385         it's present) is inside the 'data' segment. This would fail the
17386         test which was used to find a segment to grow and cover new
17387         heap. Instead of this assumption, I created another one - on IRIX
17388         the segment to grow should start below .bss and it's address
17389         should extent above the end of .bss. Once this segment is
17390         identified, it's grown to accommodate the new heap and new
17391         zero-length .bss section is added at the end of .data2.
17392
17393 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17394
17395         * eval.c (Feval): Wrong number of arguments should use original
17396         function, not the indirect_function version of it.
17397
17398 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17399
17400         * glyphs-x.c (x_button_instantiate): Don't add image if
17401         it is not a pixmap.
17402         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17403         is relative.
17404
17405 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17406
17407         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17408         declaration.
17409         (DEFVAR_INT_MAGIC): Ditto.
17410         (DEFVAR_BOOL_MAGIC): Ditto.
17411         * glyphs.h: Reindent backslash.
17412
17413 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17414
17415         * glyphs-widget.c (layout_query_geometry):
17416         (layout_layout): Use correct types for gheight, gwidth.
17417
17418 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17419
17420         * EmacsManager.c (QueryGeometry): Purified.
17421
17422 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17423
17424         * alloc.c (make_float): Make sure entire object is initialized, to
17425         avoid Purify warnings.
17426         (pdump_register_sub): Remove useless assignment.
17427         (pdump): Use xmalloc, not malloc.
17428         (pdump_load): Use xmalloc, not malloc.
17429
17430 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17431
17432         * callproc.c:
17433         * dired-msw.c:
17434         * fileio.c:
17435         * process-nt.c:
17436         * redisplay-msw.c:
17437         * sysdep.c: Removed redundant #include <windows.h>
17438
17439 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17440
17441         * frame.c (delete_frame_internal): Do not delete device when its
17442         implementation so declares.
17443         (delete_frame_internal): Set device selected frame to nil when
17444         last frame goes away.
17445
17446         * device-msw.c (msprinter_device_system_metrics): Implemented.
17447         (mswindows_device_system_metrics): Added 'device-dpi property.
17448
17449         * device.c: (Fdevice_printer_p): Added.
17450         Added 'offset-workspace device metric.
17451
17452         * console.h (device_metrics): Declared DM_offset_workspace.
17453
17454 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17455
17456         * fileio.c (Ffile_truename): Remove pointless and confusing
17457         initialization of elen.
17458
17459         * glyphs-widget.c: Compiler warning fixes.
17460
17461 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17462
17463         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17464         instead of a Lisp_Object as argument to make it consistent with
17465         the other LIVE_P macros.
17466         (CHECK_LIVE_PROCESS): New macro.
17467
17468         * process.c: Declare Qprocess_live_p.
17469         (Fprocess_live_p): New function.
17470         (create_process): Use PROCESS_LIVE_P.
17471         (read_process_output): Ditto.
17472         (set_process_filter): Ditto.
17473         (Fdelete_process): Ditto.
17474         (kill_buffer_processes): Ditto
17475         (process_send_signal): Use CHECK_LIVE_PROCESS.
17476         (Fprocess_input_coding_system): Check whether process is still
17477         alive (fix PR#1061).
17478         (Fprocess_output_coding_system): Ditto.
17479         (Fprocess_coding_system): Ditto.
17480         (Fset_process_input_coding_system): Ditto.
17481         (Fset_process_output_coding_system): Ditto.
17482
17483 2000-01-23  Andy Piper  <andy@xemacs.org>
17484
17485         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17486         layout and widget.
17487
17488         * glyphs.c (mark_image_instance): take into account changed
17489         image_instance format.
17490         (image_instance_equal): ditto.
17491         (image_instance_hash): ditto.
17492
17493         * glyphs-widget.c (widget_instantiate): Incorporate layout
17494         instantiation here. Delay layout of the layout until later.
17495         (layout_instantiate): deleted.
17496         (layout_query_geometry): new function. get the geometry of a
17497         layout.
17498         (layout_layout): layout a layout dynamically.
17499         (image_instantiator_widget): New function - splitting up
17500         image_instantiator_format_create_glyphs_widget for netwinder
17501         compilation.
17502         (image_instantiator_buttons):
17503         (image_instantiator_edit_fields):
17504         (image_instantiator_combo_box):
17505         (image_instantiator_scrollbar):
17506         (image_instantiator_progress_guage):
17507         (image_instantiator_tree_view):
17508         (image_instantiator_tab_control):
17509         (image_instantiator_labels):
17510         (image_instantiator_layout): ditto.
17511         (image_instantiator_format_create_glyphs_widget): Call preceding
17512         functions.
17513
17514 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17515
17516         * process.c (Fset_process_coding_system):
17517         * device-x.c (Fx_keysym_hash_table):
17518         Docstring fixes.
17519
17520         * lstream.c (Lstream_write): Return documented value, not 0.
17521
17522         * fileio.c (directory_file_name):
17523         (Fsubstitute_in_file_name):
17524         (Fsubstitute_insert_file_contents_internal):
17525         (Fwrite_region_internal):
17526         * emacs.c:
17527         * sysdep.c:
17528         * getloadavg.c:
17529         * systty.h:
17530         Remove vestigial APOLLO-conditional code.
17531
17532 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17533
17534         * getpagesize.h: Add guard macros.
17535         * libsst.h: Add guard macros.
17536         * libst.h: Add guard macros.
17537         * line-number.h: Add guard macros.
17538         * ndir.h: Add guard macros.
17539         * sysfloat.h: Add guard macros.
17540         * sysfile.h: Add guard macros.
17541         * sysproc.h: Add guard macros.
17542         * syswait.h: Add guard macros.
17543         * xintrinsic.h: Add guard macros.
17544         * xintrinsicp.h: Add guard macros.
17545         * xmmanager.h: Add guard macros.
17546         * xmmanagerp.h: Add guard macros.
17547         * xmprimitive.h: Add guard macros.
17548         * xmu.h: Add guard macros.
17549         * gpmevent.h: Add copyright statement. Add guard macros.
17550         * miscplay.h: Add guard macros.
17551         * *.h: Use consistent C-standards-approved guard macro names.
17552
17553         * opaque.c (make_opaque): Switch parameter order.
17554         * opaque.h (make_opaque): Switch parameter order.
17555         Update all callers.
17556         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17557
17558         * config.h.in (type_checking_assert): Added.
17559         (bufpos_checking_assert): Added.
17560
17561 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17562
17563         * alloc.c: Harmless pdump changes.
17564         - Use countof().
17565         - spell alignment correctly.
17566         * sysdep.c: Use countof()
17567
17568 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17569
17570         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17571         initially_selected_for_input() console method, default to 0.
17572         (semi_canonicalize_console_connection): Try to delegate to
17573         canonicalize_console_connection if no such console method.
17574         (canonicalize_console_connection): Vice versa.
17575         (print_console): Do not print nil connection.
17576
17577         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17578         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17579         (XDEVIMPF_FRAMELESS_OK): Added.
17580         (CONSOLE_INHERITS_METHOD): Added.
17581
17582         * console-msw.c (mswindows_canonicalize_console_connection):
17583         Added.
17584         (mswindows_canonicalize_device_connection): Added.
17585
17586         * console-msw.h (struct msprinter_device): Added this struct and
17587         accessor macros.
17588         (mswindows_device): Made fontlist a lisp object.
17589
17590         * device.c (semi_canonicalize_device_connection):  Try to delegate
17591         to canonicalize_device_connection if no such console method.
17592         (canonicalize_device_connection): Vice versa.
17593         (print_device): Do not print nil connection.
17594
17595         * device-msw.c (mswindows_init_device): Call InitCommonControls
17596         when have widgets.
17597         (mswindows_delete_device): Removed fontlist deallocation.
17598         (mswindows_mark_device): Added.
17599
17600         * events.c (event_equal): Added abort() at unreached code.
17601         (event_hash): Ditto.
17602
17603         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17604         fallback tags of Windows devices.
17605
17606         * general.c (syms_of_general): Initialized Qmsprinter.
17607
17608         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17609         of fallback tags of Windows devices.
17610
17611         * lisp.h: Declared Qmsprinter.
17612
17613         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17614         of strings.
17615         (mswindows_list_fonts): Ditto.
17616         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17617         that it can be used by both mswindows and msprinter devices.
17618         (initialize_font_instance): Added.
17619         (mswindows_initialize_font_instance): Use it.
17620         (msprinter_initialize_font_instance): Added.
17621
17622         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17623         and implementation flags check.
17624         (redisplay_without_hooks): Changed the call to the above.
17625         (Fredraw_device): Ditto.
17626         (Fredisplay_device): Ditto.
17627
17628         * redisplay-msw.c (get_frame_dc): Implemented.
17629         (get_frame_compdc): Implemented.
17630         (many functions): Use the two functions above to get device
17631         contexts, ether for a window or a printer.
17632
17633 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17634
17635         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17636         initialization here.
17637         (init_symbols_once_early): Call it.
17638         * emacs.c (main_1): Call it.
17639         * symsinit.h: Declare it.
17640
17641 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17642
17643         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17644         Lisp_Object.
17645         (pdump_backtrace): Ditto.
17646         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17647         (pdump_get_entry): Abort if trying to register a null pointer.
17648         (pdump_dump_data): Cleanup types when relocating.
17649         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17650         (pdump_dump_rtables): Remove bad casts.
17651         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17652         Lisp_Object instead of a EMACS_INT for the hashtable
17653         reorganization.
17654
17655 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17656
17657         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17658
17659         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17660
17661         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17662
17663         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17664
17665 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17666
17667         * faces.h (FACE_STRIKETHRU_P): Added.
17668
17669         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17670         of font variants.
17671
17672         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17673         (mswindows_set_dc_font): New function, aware of font variants,
17674         separated from mswindows_update_dc.
17675
17676         * objects-msw.h (struct mswindows_font_instance_data): Added
17677         definition.
17678
17679         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17680         cached fonts and the data structure.
17681         (mswindows_initialize_font_instance): Added creation of font data
17682         structure.
17683         (mswindows_print_font_instance): Print at least something.
17684         (mswindows_create_font_variant): Implemented.
17685         (mswindows_get_hfont): Implemented.
17686
17687 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17688
17689         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17690         prototyping problem with msvc.
17691
17692         * emacs.c (main_1): added syms_of_gui_mswindows() call
17693
17694         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17695         syms_of_gui_mswindows() function
17696
17697         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17698
17699 2000-01-18  Martin Buchholz <martin@xemacs.org>
17700
17701         * XEmacs 21.2.27 is released.
17702
17703 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17704
17705         * glyphs-eimage.c (struct tiff_error_struct):
17706         (tiff_error_func):
17707         (tiff_warning_func):
17708         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17709
17710         * unexmips.c:
17711         * unexhp9k3.c:
17712         * unexfreebsd.c:
17713         * unexec.c: Remove vestigial Lucid C code.
17714         * unexalpha.c:
17715         * unexaix.c:
17716         * termcap.c:
17717         * libsst.c: Ansify.
17718         Remove declarations of errno and strerror().
17719
17720         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17721
17722         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17723
17724 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17725
17726         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17727         Optimize.
17728
17729 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17730
17731         * md5.c:
17732         * file-coding.c:
17733         * file-coding.h:
17734         Change enum eol_type to eol_type_t.
17735
17736 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17737
17738         * gui.c (get_gui_callback): Check cons before accessing car.
17739
17740 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17741
17742         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17743         (XSETSPECIFIER_TYPE): Ditto.
17744
17745 2000-01-17  Didier Verna  <didier@xemacs.org>
17746
17747         * redisplay.c (generate_fstring_runes): compute string size in
17748         characters, not bytes.
17749
17750 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17751
17752         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17753
17754 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17755
17756         * print.c (print_error_message): Call print_prepare().
17757
17758 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17759
17760         * .dbxrc: Renamed from dbxrc.
17761
17762         * events.c (event_to_character):
17763         Use `assert (foo)' instead of `if (!foo) abort()'
17764
17765         * .gdbinit (xtype): Add documentation.
17766         * .gdbinit (check-temacs): New function.
17767         * .gdbinit (check-xemacs): New function.
17768         * dbxrc (check-xemacs): New function.
17769         * dbxrc (check-xemacs): New function.
17770
17771 2000-01-14  Andy Piper  <andy@xemacs.org>
17772
17773         * glyphs-widget.c (widget_query_geometry): Make sure that we
17774         calculate default dimensions correctly.
17775
17776 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17777
17778         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17779
17780         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17781         pdump_wire'd variable.
17782
17783         * emacs.c: (main_1): Conditionalized calls to
17784         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17785
17786 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17787
17788         * window.c (Fset_window_configuration):
17789         * sysdep.c (_start):
17790         * input-method-motif.c (res):
17791         * event-Xt.c (Xt_process_to_emacs_event):
17792         Simple compiler warning fixes.
17793
17794         * bytecode.c (funcall_compiled_function): Use the original
17795         function symbol on the backtrace list in preference to the
17796         compiled_function object in error messages.
17797
17798 2000-01-13  Andy Piper  <andy@xemacs.org>
17799
17800         * glyphs-x.c (update_widget_face): Make sure we update the widget
17801         background as well as foreground.
17802
17803 2000-01-13  Andy Piper  <andy@xemacs.org>
17804
17805         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17806         fields to subwindow.
17807         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17808         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17809         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17810         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17811
17812         * glyphs-widget.c (check_valid_tab_orientation): new function.
17813         (initialize_widget_image_instance): zero orientation and
17814         justification.
17815         (widget_instantiate): pick up orientation.
17816         (tab_control_query_geometry): return appropriate values for
17817         vertical tabs.
17818
17819         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17820         appropriate creation flags for left, right and bottom tabs.
17821
17822         * s/cygwin32.h: add tab definitions.
17823
17824 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17825
17826         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17827         frame upon hiding a subwindow.
17828         (mswindows_button_instantiate): Changed the push button style to
17829         BS_PUSHBUTTON.
17830         (mswindows_button_instantiate): Removed button BS_NOTIFY
17831         style.
17832         (mswindows_button_instantiate): Removed redundant check for
17833         a disabled gui item.
17834         (mswindows_button_instantiate): Made use of WS_TABSTOP
17835         consistent: "operable" controls (edit, button, tree, scroll) have
17836         this style, "display-only" ones (static, progress gauge) do
17837         not. This style is currently ignored by XEmacs though. Also,
17838         removed the WS_EX_CONTROLPARENT style - it is not for children,
17839         it is for their parents!
17840         (mswindows_edit_field_instantiate): Ditto.
17841         (mswindows_progress_gauge_instantiate): Ditto.
17842         (mswindows_tree_view_instantiate): Ditto.
17843         (mswindows_tab_control_instantiate): Ditto.
17844         (mswindows_scrollbar_instantiate): Ditto.
17845         (mswindows_combo_box_instantiate): Ditto.
17846         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17847         style to the "clip" window.
17848         (mswindows_button_instantiate): Removed compilation warning by
17849         equally typing terms of the ?: operator.
17850
17851 2000-01-12  Didier Verna  <didier@xemacs.org>
17852
17853         * redisplay.c (generate_fstring_runes): new parameter holding the
17854         last modeline-format extent.
17855         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17856         extent, fill the glyph block with it.
17857         (generate_fstring_runes): handle these parameters.
17858         (generate_formatted_string_db): ditto.
17859
17860         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17861         glyphs'extents in the modeline.
17862
17863 1999-01-11  Mike Woolley  <mike@bulsara.com>
17864
17865         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17866         256Mb, as a workaround for the non-starting problem many people
17867         have experienced.
17868
17869 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17870
17871         * console-tty.c (Fset_console_tty_output_coding_system):
17872         Force redrawing tty frame.
17873
17874 2000-01-10  Didier Verna  <didier@xemacs.org>
17875
17876         * redisplay.c (generate_fstring_runes): fix size computation bug.
17877
17878 2000-01-09  William M. Perry <wmperry@aventail.com>
17879
17880         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17881
17882 2000-01-09  Andy Piper  <andy@xemacs.org>
17883
17884         * glyphs-msw.c: index -> i to avoid shadows.
17885         (xbm_create_bitmap_from_data): make static.
17886         (check_valid_string_or_int): deleted.
17887         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17888
17889         * glyphs-x.c (x_update_subwindow): remove unused args.
17890
17891         * glyphs.c (glyph_image_instance): return the thing. Don't set the
17892         back pointer - this is done in allocate_image_instance.
17893         (query_string_font): return Qnil to make the compiler happy.
17894         (unmap_subwindow): set to ~0 to make the compiler happy.
17895         (glyph_query_geometry): comment out until used.
17896         (glyph_layout): ditto.
17897
17898 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17899
17900         * insdel.c (signal_after_change): Remove extraneous unbind_to().