update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * emacs.c (main_1): Call `structure_type_create_concord' when
4         HAVE_CONCORD is defined.
5
6         * symsinit.h (structure_type_create_concord): New prototype.
7
8         * concord.c (Qconcord_object): New variable.
9         (Qgenre): Likewise.
10         (Q_id): Likewise.
11         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
12         for directory.
13         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
14         char*> for genre-name.
15         (Fconcord_feature_list): Likewise.
16         (Fconcord_make_object): Likewise.
17         (Fconcord_decode_object): Likewise; use <char*> instead of
18         <unsigned char*> for feature_name and strid.
19         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
20         c_obj and feature_name.
21         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
22         char*> for c_value.
23         (struct closure_for_object_spec): Use <char*> instead of <unsigned
24         char*> for member `object_id'.
25         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
26         char*> for feature-name.
27         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
28         for c_obj.
29         (func_for_each_object): Cast to avoid warnings.
30         (Fconcord_foreach_object_in_feature): Use <char*> instead of
31         <unsigned char*> for genre_name and feature_name.
32         (concord_name_validate): New function.
33         (concord_object_validate): Likewise.
34         (concord_object_instantiate): Likewise.
35         (syms_of_concord): Add new builtin symbols `concord-object',
36         `genre' and `=id'.
37         (structure_type_create_concord): New function.
38
39 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
40
41         * concord.c (Vconcord_ds_hash_table): New variable.
42         (Vconcord_genre_hash_table): New variable.
43         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
44         (Fconcord_ds_directory): New function.
45         (Fconcord_assign_genre): New function.
46         (Fconcord_genre_directory): New function.
47         (Fconcord_genre_ds): New function.
48         (Fconcord_feature_list): Allow to omit `ds'.
49         (Fconcord_make_object): Likewise.
50         (Fconcord_decode_object): Likewise.
51         (Fconcord_foreach_object_in_feature): Likewise.
52         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
53         Fconcord_assign_genre, Fconcord_genre_directory and
54         Fconcord_genre_ds.
55         (vars_of_concord): Setup Vconcord_ds_hash_table and
56         Vconcord_genre_hash_table.
57
58 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
59
60         * concord.c (struct closure_for_each_object): Add new member
61         `ret'.
62         (func_for_each_object): Setup the return value to
63         `for_each_object_closure->ret'.
64         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
65         returns the value instead of Qt.
66
67 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
68
69         * concord.c: New file.
70
71 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
72
73         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
74         `lrecord_type_concord_object'.
75
76 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
77
78         * symsinit.h (syms_of_concord): New prototype.
79         (vars_of_concord): New prototype.
80
81         * emacs.c (main_1): Setup symbols and variable about concord if
82         HAVE_CONCORD is defined.
83
84         * config.h.in (HAVE_CONCORD): New macro.
85
86 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
87
88         * chartab.c (Fput_char_attribute): For each character relation
89         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
90
91 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
92
93         * chartab.c (Fput_char_attribute): Use
94         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
95         calling `put_char_composition'.
96
97 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
98
99         * chartab.c (Q_halfwidth_of): New variable.
100         (put_char_composition): Return `<-halfwidth' instead of
101         `=decomposition' for compatibility mapping to single character
102         tagged `narrow'.
103         (Fput_char_attribute): Convert char-specs in value of
104         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
105         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
106         for `<-halfwidth'.
107         (syms_of_chartab): Add new symbol `<-halfwidth'.
108
109 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
110
111         * chartab.c (put_char_composition): Return
112         `<-formed@{isolated|initial|medial|final}' for compatibility
113         mapping to single character tagged
114         `{isolated|initial|medial|final}'.
115
116 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
117
118         * chartab.c (Q_compat_of): Deleted.
119         (put_char_composition): Return `<-FOO' for compatibility mapping
120         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
121         of `symbol_name (XSYMBOL(...))'.
122         (Fput_char_attribute): Convert char-specs in value of
123         `{<-|->}font[^*]*' to characters and put reverse links.
124         (Fsave_char_attribute_table): Don't refer Q_compat_of.
125         (syms_of_chartab): Delete builtin symbol `<-compat'.
126
127 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
128
129         * chartab.c (Q_circled_of): New variable.
130         (put_char_composition): Return `<-circled' instead of
131         `=decomposition' for compatibility mapping to single character
132         tagged `circle'.
133         (Fput_char_attribute): Convert char-specs in value of
134         `{<-|->}circled[^*]*' to characters and put reverse links.
135         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
136         for `<-circled'.
137         (syms_of_chartab): Add new symbol `<-circled'.
138
139 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
140
141         * chartab.c (Qto_decomposition_at_circled): New variable.
142         (put_char_composition): Return `=>decomposition@circled' instead
143         of `=decomposition' for compatibility decomposition mapping tagged
144         `circle'.
145         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
146
147 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
148
149         * chartab.c (Q_subscript_of): New variable.
150         (put_char_composition): Return `<-subscript' instead of
151         `=decomposition' for compatibility mapping to single character
152         tagged `sub'.
153         (Fput_char_attribute): Convert char-specs in value of
154         `{<-|->}subscript[^*]*' to characters and put reverse links.
155         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
156         for `<-subscript'.
157         (syms_of_chartab): Add new symbol `<-subscript'.
158
159 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
160
161         * chartab.c (Q_superscript_of): New variable.
162         (put_char_composition): Return `<-superscript' instead of
163         `=decomposition' for compatibility mapping to single character
164         tagged `super'.
165         (Fput_char_attribute): Convert char-specs in value of
166         `{<-|->}superscript[^*]*' to characters and put reverse links.
167         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
168         for `<-superscript'.
169         (syms_of_chartab): Add new symbol `<-superscript'.
170
171 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
172
173         * chartab.c (Qto_decomposition_at_compat): Deleted.
174         (Qto_decomposition_at_superscript): New variable.
175         (put_char_composition): Use `=>decomposition@superscript' instead
176         of `=decomposition' for compatibility decomposition mapping tagged
177         `super'.
178         (Fput_char_attribute): Fix condition about `put_char_composition'.
179         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
180         add news symbol `=>decomposition@superscript'.
181
182 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
183
184         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
185         for compatibility decomposition mapping tagged FOO.
186         (Fput_char_attribute): Modify for `put_char_composition'.
187
188 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
189
190         * chartab.c (Qto_decomposition_at_compat): New variable.
191         (Q_compat_of): Renamed from `Q_compatibility_of'.
192         (put_char_composition): Rename `Q_compatibility_of' to
193         `Q_compat_of'; return `=>decomposition@compat' for compatibility
194         decomposition mapping.
195         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
196         `Q_compat_of'.
197         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
198         `<-compatibility' to `<-compat'.
199
200 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
201
202         * chartab.c (Q_compatibility_of): New variable.
203         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
204         object is proved to be a cons cell; return `<-compatibility' if
205         the first element of argument `value' is `compat'.
206         (Fput_char_attribute): Eliminate the first value if
207         `put_char_composition' returns `<-compatibility'.
208         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
209         for `<-compatibility'.
210         (syms_of_chartab): Add new symbol `<-compatibility'.
211
212 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
213
214         * chartab.c (Q_canonical): New variable.
215         (put_char_composition): Return a feature name: return
216         `->canonical' if argument `value' specifies single character.
217         (Fput_char_attribute): Use `put_char_composition' to determine
218         feature name for `=decomposition' or `->denotational'.
219         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
220         for `->canonical'.
221         (syms_of_chartab): Add new symbol `->canonical'.
222
223 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
224
225         * chartab.c (Qmap_decomposition): New variable.
226         (Fput_char_attribute): Convert `->decomposition' to
227         `=decomposition'.
228         (syms_of_chartab): Add new symbol `=decomposition'.
229
230 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
231
232         * chartab.c (Fget_range_char_table): Fix serious problem when
233         `range' is nil.
234
235 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
236
237         * chartab.c (char_table_get_db): Use `read_from_c_string'.
238
239 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
240
241         * lread.c (read_from_c_string): New function.
242
243         * lisp.h (read_from_c_string): New prototype.
244
245 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
246
247         * chartab.c (Fput_char_attribute): Convert char-specs in value of
248         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
249         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
250         for `{<-|->}Oracle-Bones[^*]*'.
251
252 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
253
254         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
255         (Kizu).
256
257 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
258
259         * text-coding.c (Qccs_priority_list): New variable in XEmacs
260         CHISE.
261         (Fmake_coding_system): Support new property `ccs-priority-list' in
262         XEmacs CHISE.
263         (Fcoding_system_property): Likewise.
264         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
265         Vdefault_coded_charset_priority_list in XEmacs CHISE.
266         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
267         XEmacs CHISE.
268         (complex_vars_of_file_coding): Define new coding-system-property
269         `ccs-priority-list' in XEmacs CHISE.
270
271         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
272
273 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
274
275         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
276         changed to normal function.
277         (encode_char_2): Likewise.
278
279         * mule-charset.c (decoding_table_put_char): Copied from
280         char-ucs.h; changed to normal function.
281         (encode_char_2): Likewise.
282
283 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
284
285         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
286         New extern.
287         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
288         (encode_char_2_search_children): New inline function.
289         (encode_char_2): Refer
290         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
291         and use `encode_char_2_search_children'.
292
293 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
294
295         * mule-charset.c
296         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
297         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
298         (vars_of_mule_charset): Add new variable
299         `display-coded-charset-priority-use-inheritance' and
300         `display-coded-charset-priority-use-hierarchy-order'.
301
302 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
303
304         * char-ucs.h (Q_subsumptive): New extern.
305         (Q_denotational): Likewise.
306         (encode_char_2): Search children specified by `->subsumptive' and
307         `->denotational'.
308
309 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
310
311         * mule-charset.c (complex_vars_of_mule_charset): Modify the
312         X-registry of `ucs-bmp'.
313
314 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
315
316         * chartab.c (char-variants): Refer `->subsumptive',
317         `->denotational' and `->identical' as same as `->ucs-unified'.
318
319 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
320
321         * chartab.c (Fput_char_attribute): Convert char-specs in value of
322         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
323         links.
324
325 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
326
327         * text-coding.c: Add EXFUN for `Fregexp_quote'.
328         (decode_add_er_char): Fix problem about infinite loop when a CCS
329         specified in `coded-charset-entity-reference-alist' is not
330         existed.
331
332 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
333
334         * mule-charset.c (syms_of_mule_charset): Rename
335         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
336
337 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
338
339         * fns.c (simplify_char_spec): Don't allocate new character-object
340         if specified char_spec does not have any CCS-features.
341
342         * chartab.h: Add EXFUN for Fdefine_char.
343
344         * chartab.c: Delete EXFUN for Fdefine_char.
345
346 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
347
348         * fns.c (simplify_char_spec): Use Fdefine_char instead of
349         Ffind_char for char-spec.
350
351 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
352
353         * lisp-disunion.h (XCHARVAL): Fix condition about
354         SIZEOF_EMACS_INT.
355
356 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
357
358         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
359         <int> for `code'.
360         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
361         point; use <Emchar> instead of <int> for character-id.
362
363 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
364
365         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
366         (make_char): Likewise.
367         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
368         environment.
369         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
370         instead of <int> as the type of return value; use <Lisp_Object>
371         instead of <Emchar> as the type of argument.
372         (XCHARVAL[macro version]): Cast the result into <Emchar>.
373
374         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
375         syntaxcode> instead of <int>.
376
377 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
378
379         * chartab.c (put_char_composition): Use DECODE_CHAR to get
380         character corresponding with UCS code point.
381         (Fput_char_attribute): Likewise.
382
383         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
384         character in the UCS decoding-table if the char-id is not equal to
385         the UCS code point.
386
387 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
388
389         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
390         for aliases; write `description'; write
391         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
392         not 0.
393
394 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
395
396         * chartab.c (Fsave_char_attribute_table): Don't use
397         `save_charset_properties'.
398
399         * mule-charset.c (Fsave_charset_properties): Renamed from
400         `save_charset_properties' and changed to Lisp function again;
401         write property `type' as `CCS'; write properties `final-byte' and
402         `mother' if they exists.
403         (syms_of_mule_charset): Revive builtin function
404         `save-charset-properties' when HAVE_LIBCHISE is defined.
405
406 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
407
408         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
409         instead of Vexec_directory.
410         (char_attribute_system_db_file): Likewise.
411
412 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
413
414         * chartab.c (Fsave_char_attribute_table): Use
415         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
416         defined.
417
418         * mule-charset.c (save_charset_properties): Renamed from
419         `Fsave_charset_properties'; changed to non-Lisp function.
420         (syms_of_mule_charset): Abolish builtin function
421         `save-charset-properties'.
422
423 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
424
425         * mule-charset.c (Fsave_charset_properties): New function when
426         HAVE_LIBCHISE is defined.
427         (syms_of_mule_charset): Add new builtin function
428         `save-charset-properties' when HAVE_LIBCHISE is defined.
429
430 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
431
432         * chartab.c (Fput_char_attribute): Convert char-specs in value of
433         `{<-|->}ancient[^*]*' to characters and put reverse links.
434         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
435         for `{<-|->}ancient[^*]*'.
436
437 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
438
439         * chartab.c (Fput_char_attribute): Convert char-specs in value of
440         `{<-|->}original[^*]*' to characters and put reverse links.
441         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
442         for `{<-|->}original[^*]*'.
443
444 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
445
446         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
447
448 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
449
450         * mule-charset.c (Qsystem_char_id): New variable.
451
452         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
453         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
454
455 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
456
457         * chartab.c (Fput_char_attribute): When processing a reference of
458         a character, put into the end of the reversed reference of each
459         target character.
460
461 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
462
463         * chartab.c (Q_same): Deleted.
464         (Q_same_of): Deleted.
465         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
466         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
467         for `{<-|->}same'.
468         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
469
470 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
471
472         * chartab.c (Q_vulgar): Deleted.
473         (Q_vulgar_of): Deleted.
474         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
475         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
476         for `{<-|->}vulgar'.
477         (syms_of_chartab): Don't define `{<-|->}vulgar'.
478
479 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
480
481         * chartab.c (Fput_char_attribute): Convert char-specs in value of
482         `{<-|->}wrong[^*]*' to characters and put reverse links.
483         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
484         for `{<-|->}wrong[^*]*'.
485
486 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
487
488         * chartab.c (Q_vulgar): New variable.
489         (Q_vulgar_of): New variable.
490         (Fput_char_attribute): Convert char-specs in value of
491         `{->|<-}vulgar' to characters and put reverse links.
492         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
493         for `{->|<-}vulgar'.
494         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
495
496 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
497
498         * text-coding.c (decode_add_er_char): Must to quote prefix string
499         as regexp.
500
501 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
502
503         * mule-charset.c (put_char_ccs_code_point): Store characters of
504         =ucs whose code_points >= 0xF0000.
505
506 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
507
508         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
509         CHISE.
510         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
511         CHISE.
512         (complex_vars_of_mule_charset): Add new coded-charset
513         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
514         builtin characters over 0xEFFFF.
515
516         * chartab.c (syms_of_chartab): Don't define symbol
517         `system-char-id' in every case.
518
519         * char-ucs.h (Qsystem_char_id): New extern variable.
520         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
521
522 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
523
524         * text-coding.c (char_encode_utf8): Try to use entity-references
525         for U-000F0000 ...  U-0010FFFF.
526
527 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
528
529         * text-coding.c (ER_BUF_SIZE): New macro.
530         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
531         `er_buf'.
532         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
533         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
534
535 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
536
537         * chartab.c (find_char_feature_in_family): New function.
538         (Fchar_feature): Use `find_char_feature_in_family' with
539         `->identical', `<-subsumptive' and `<-denotational'.
540
541 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
542
543         * text-coding.c (char_encode_as_entity_reference): Allow prefix
544         within 8 characters; fix infinite loop.
545
546 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
547
548         * chartab.c (Q_same): New variable.
549         (Q_same_of): New variable.
550         (Fput_char_attribute): Convert char-specs in value of
551         `{->|<-}same' to characters and put reverse links.
552         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
553         for `{->|<-}same'.
554         (syms_of_chartab): Add new symbols `{->|<-}same'.
555
556 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
557
558         * chartab.c (Q_component): New variable.
559         (Q_component_of): Likewise.
560         (Fput_char_attribute): Convert char-specs in value of
561         `{->|<-}ideographic-component-forms' to characters and put reverse
562         links.
563         (syms_of_chartab): Add new symbols
564         `{->|<-}ideographic-component-forms'.
565
566 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
567
568         * chartab.c (Q_identical): New variable.
569         (Q_identical_from): New variable.
570         (Fchar_feature): Regard `->identical' as a feature to find
571         ancestors.
572         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
573         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
574         for `{->|<-}identical'.
575         (syms_of_chartab): Add new symbols `{->|<-}identical'.
576
577 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
578
579         * char-ucs.h (encode_char_2): New inline function.
580         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
581
582 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
583
584         * chartab.c (Fput_char_attribute): Convert char-specs to
585         characters in value of `ideographic-structure'.
586         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
587         for `{<-|->}simplified(@...)'.
588         (Fdefine_char): Try to use predefined character's id.
589
590 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
591
592         * fns.c (simplify_char_spec): Try to convert builtin chars to
593         defined chars.
594
595 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
596
597         * chartab.c (Fput_char_attribute): Convert char-specs in value of
598         `<-simplified[^*]*' to characters and put reverse links.
599
600 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
601
602         * chartab.c (Q_subsumptive): Renamed from Q_unified.
603         (Q_subsumptive_from): Renamed from Q_unified_from.
604         (Fchar_feature): Use `Q_subsumptive_from' instead of
605         `Q_unified_from'.
606         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
607         `Q_unified'.
608         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
609         `<-unified' to `<-subsumptive'.
610
611 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
612
613         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
614         inheritance itself; fix typo; stop recursive search if cyclic
615         inheritance is found.
616
617 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
618
619         * chartab.c (Q_denotational): New variable.
620         (Q_denotational_from): New variable.
621         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
622         (put_char_attribute): New function.
623         (Fput_char_attribute): Use `put_char_attribute'; regard
624         `->denotational' and `<-denotational' as same as `->unified' and
625         `<-unified'.
626         (syms_of_chartab): Add new symbols `->denotational' and
627         `<-denotational'.
628
629 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
630
631         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
632         `Fget_char_attribute'.
633         (Fchar_variants): Likewise.
634         (get_char_table): Likewise.
635         (Fchar_feature): New function.
636         (put_char_composition): Use `Fchar_feature' instead of
637         `Fget_char_attribute'.
638         (Fput_char_attribute): Likewise; don't put the target character
639         into its `->unified' value.
640         (syms_of_chartab): Add new builtin function `char-feature'.
641
642 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
643
644         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
645         `Fget_char_attribute'.
646         (char_encode_utf8): Likewise.
647
648         * chartab.h: Add an EXFUN for `Fchar_feature'.
649
650 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
651
652         * chartab.c (Vnext_defined_char_id): New variable.
653         (Fput_char_attribute): Accept characters in `->unified'.
654         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
655         new characters which are not related with builtin char-id ranges.
656         (vars_of_chartab): Add new variable `next-defined-char-id'.
657
658 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
659
660         * chartab.c (Q_unified): New variable.
661         (Q_unified_from): New variable.
662         (Fput_char_attribute): Add code for `->unified'.
663         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
664         XEmacs CHISE.
665
666 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
667
668         * mule-charset.c (decode_ccs_conversion): New function.
669         (decode_defined_char): Use `decode_ccs_conversion'.
670         (decode_builtin_char): Likewise.
671
672 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
673
674         * char-ucs.h: Change some charset-ids of private coded-charsets.
675
676 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
677
678         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
679         (char_encode_as_entity_reference): Likewise.
680         (decode_coding_big5): Modify for `decode_defined_char' and
681         `DECODE_CHAR'.
682         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
683         avoid compiler warning.
684         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
685
686         * mule-charset.c (decode_defined_char): Add new argument
687         `without_inheritance'.
688         (Fdecode_char): Add new optional argument `without_inheritance'.
689         (Fdecode_builtin_char): Modify for `Fdecode_char'.
690
691         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
692         (simplify_char_spec): Likewise.
693
694         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
695         setting.
696
697         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
698         (map_char_table): Likewise.
699         (Fdefine_char): Use `Fdecode_char' without inheritance.
700         (Ffind_char): Modify for `Fdecode_char'.
701
702         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
703
704         * char-ucs.h (decode_defined_char): Add new argument
705         `without_inheritance'.
706         (DECODE_CHAR): Likewise.
707         (MAKE_CHAR): Modify for `DECODE_CHAR'.
708
709 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
710
711         * chartab.c (Vchise_system_db_directory): New variable.
712         (vars_of_chartab): Add new variable `chise-system-db-directory'.
713
714 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
715
716         * chartab.c: EXFUN `Fmount_char_attribute_table'.
717         (print_chartab_range): Don't define when `UTF2000' is defined.
718         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
719         `CHISE_DS_open'.
720
721 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
722
723         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
724         and optional argument `rehash' is specified, call
725         `open_chise_data_source_maybe' before
726         `chise_ds_foreach_char_feature_name' is called.
727
728 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
729
730         * chartab.c (char_attribute_list_reset_map_func): New function
731         when HAVE_LIBCHISE is defined.
732         (Fchar_attribute_list): Add new optional argument `rehash' when
733         HAVE_LIBCHISE is defined.
734         (open_chise_data_source_maybe): Use "chise-db" instead of
735         "char-db".
736         (char_attribute_system_db_file): Likewise.
737         (Fload_char_attribute_table): Use
738         `chise_feature_foreach_char_with_value' instead of
739         `chise_char_feature_value_iterate'.
740
741 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
742
743         * chartab.c (Vchise_db_directory): New variable.
744         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
745
746 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
747
748         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
749         instead of HAVE_CHISE to specify using with libchise.
750
751         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
752
753         * chartab.h: Don't use HAVE_CHISE_CLIENT.
754
755         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
756         defined or HAVE_LIBCHISE_LIBCHISE is defined.
757         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
758         is defined.
759         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
760         HAVE_CHISE to specify using with libchise.
761         (syms_of_chartab): Don't define symbol `system-char-id' when
762         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
763
764 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
765
766         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
767         specify CHISE DB support.
768         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
769         of `char_attribute_system_db_file' to check feature DB file.
770
771         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
772         HAVE_CHISE_CLIENT to specify CHISE DB support.
773
774         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
775         specify CHISE DB support.
776         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
777         not defined.
778         (Freset_char_attribute_table): Use `chise_feature_setup_db'
779         instead of `char_attribute_system_db_file' to check feature DB
780         file.
781
782 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
783
784         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
785         `HAVE_CHISE_CLIENT'.
786
787 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
788
789         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
790         (Fsave_charset_mapping_table): Don't use
791         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
792
793         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
794         (HAVE_LIBCHISE): New macro.
795
796         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
797
798         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
799         (Fsave_char_attribute_table): Don't use
800         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
801
802 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
803
804         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
805         defined.
806         (save_uint16_byte_table): Likewise.
807         (save_byte_table): Likewise.
808         (char_table_get_db): Use `chise_ds_load_char_feature_value'
809         instead of `chise_char_load_feature_value'.
810         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
811
812 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
813
814         * chartab.h (struct Lisp_Char_Table): Delete member
815         `feature_table' if CHISE is defined.
816
817         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
818         (Fcopy_char_table): Likewise.
819         (char_table_open_db_maybe): Likewise.
820         (char_table_close_db_maybe): Likewise.
821         (char_table_get_db): Likewise.
822         (Fmount_char_attribute_table): Likewise.
823         (Fload_char_attribute_table): Likewise.
824
825 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
826
827         * mule-charset.c (load_char_decoding_entry_maybe): Use
828         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
829         `chise_ccs_decode'.
830
831 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
832
833         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
834         instead of `chise_open_data_source'.
835         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
836         `chise_ds_close'.
837
838 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
839
840         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
841         instead of `chise_ds_open_feature_table'.
842         (char_table_close_db_maybe): Don't use `chise_ft_close'.
843
844 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
845
846         * mule-charset.c (Fsave_charset_mapping_table): Use
847         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
848         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
849         `chise_ccs_sync' instead of `chise_ccst_close'.
850         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
851
852         * chartab.c (open_chise_data_source_maybe): Modify for
853         `chise_open_data_source'.
854         (char_table_open_db_maybe): Modify for
855         `chise_ds_open_feature_table'.
856
857 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
858
859         * mule-charset.c (load_char_decoding_entry_maybe): Use
860         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
861         `chise_ccst_close'.
862
863 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
864
865         * mule-charset.c (Fsave_charset_mapping_table): Use
866         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
867         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
868         `chise_dt_put_char' and `chise_dt_close'.
869         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
870         `chise_ccs_decode' and `chise_ccst_close' instead of
871         `chise_ds_open_decoding_table', `chise_dt_get_char' and
872         `chise_dt_close'.
873
874         * chartab.c (char_table_get_db): Use
875         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
876         (load_char_attribute_table_map_func): Modify for
877         `chise_char_feature_value_iterate'.
878         (Fload_char_attribute_table): Use
879         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
880
881 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
882
883         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
884
885 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
886
887         * chartab.c (put_char_table): Modify for inherited coded-charsets
888         in XEmacs CHISE.
889
890 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
891
892         * chartab.c (Fput_char_table_map_function): Fixed.
893         (word_boundary_p): Don't check charset in XEmacs CHISE.
894
895 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
896
897         * mule-charset.c (Fsave_charset_mapping_table): Use
898         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
899         instead of `chise_open_decoding_table'; refer
900         `default_chise_data_source'; use `chise_dt_close' instead of
901         `chise_close_decoding_table'.
902         (load_char_decoding_entry_maybe): Likewise.
903
904         * chartab.c (default_chise_data_source): New variable when `CHISE'
905         is defined.
906         (Fcopy_char_table): `ct->ds' is deleted.
907         (open_chise_data_source_maybe): New function.
908         (Fclose_char_data_source): New function.
909         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
910         use `chise_ds_open_feature_table' instead of
911         `chise_open_feature_table'.
912         (char_table_close_db_maybe): Use `chise_ft_close' instead of
913         `chise_close_feature_table'; `cit->ds' is deleted.
914         (syms_of_chartab): Add new builtin function
915         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
916
917         * chartab.h (default_chise_data_source): New extern variable.
918         (open_chise_data_source_maybe): New prototype.
919         (struct Lisp_Char_Table): Delete `ds'.
920
921 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
922
923         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
924         `CHISE' is defined.
925
926 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
927
928         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
929         not defined; add code for non-libchise setting.
930         (char_table_close_db_maybe): Likewise.
931         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
932         defined.
933         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
934         even if `CHISE' is not defined.
935         (Freset_char_attribute_table): Likewise.
936         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
937         `char_table_close_db_maybe' even if `CHISE' is not defined; use
938         `char_table_get_db'.
939         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
940         `char_table_close_db_maybe' even if `CHISE' is not defined.
941
942 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
943
944         * chartab.c (char_table_open_db_maybe): New function.
945         (char_table_close_db_maybe): New function.
946         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
947         (Freset_char_attribute_table): Likewise.
948         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
949         `char_table_close_db_maybe'.
950         (Fload_char_attribute_table): Likewise.
951
952 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
953
954         * chartab.c: Don't include <chise.h> because it is included in
955         chartab.h.
956         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
957         defined.
958         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
959         `CHISE' is defined.
960         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
961         `CHISE' is defined.
962         (Fclose_char_attribute_table): Close `ct->feature_table' and
963         `ct->ds' when `CHISE' is defined.
964         (Freset_char_attribute_table): Likewise.
965         (load_char_attribute_maybe): Use `cit->ds' and
966         `cit->feature_table' when `CHISE' is defined.
967         (Fload_char_attribute_table): Likewise.
968
969         * chartab.h: Include <chise.h> when `CHISE' is defined.
970         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
971         when `CHISE' is defined.
972
973 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
974
975         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
976         is defined.
977         (char_table_description): Likewise.
978         (Fmake_char_table): Likewise.
979         (Fcopy_char_table): Likewise.
980         (Fmount_char_attribute_table): Likewise.
981         (Fclose_char_attribute_table): Likewise.
982         (Freset_char_attribute_table): Likewise.
983         (load_char_attribute_maybe): Likewise.
984         (Fload_char_attribute_table): Likewise.
985
986         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
987         defined.
988
989 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
990
991         * chartab.c (load_char_attribute_table_map_func): New function
992         when CHISE is defined.
993         (Qload_char_attribute_table_map_function): Don't define when CHISE
994         is defined.
995         (Fload_char_attribute_table_map_function): Likewise.
996         (Fload_char_attribute_table): Use libchise when `CHISE' is
997         defined.
998         (syms_of_chartab): Don't define
999         `load-char-attribute-table-map-function' when CHISE is defined.
1000
1001 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1002
1003         * chartab.c: Include <chise.h> when `CHISE' is defined.
1004         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1005
1006 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1007
1008         * mule-charset.c (charset_code_point): Fix problem when searching
1009         in mother CCS fails with `defined_only' mode.
1010
1011 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1012
1013         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1014         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1015         (put_char_composition): Likewise.
1016         (Fput_char_attribute): Likewise.
1017         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1018
1019 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1020
1021         * chartab.c (Q_ucs): Deleted.
1022         (Fput_char_attribute): Don't refer `->ucs'.
1023         (Fdefine_char): Likewise.
1024         (Ffind_char): Likewise.
1025         (syms_of_chartab): Delete `->ucs'.
1026
1027 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1028
1029         * mule-charset.c (Qmap_cns11643_2): Renamed from
1030         `Qchinese_cns11643_2'.
1031         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1032         `chinese-cns11643-2'.
1033         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1034         `=cns11643-2'.
1035
1036 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1037
1038         * mule-charset.c (Qmap_cns11643_1): Renamed from
1039         `Qchinese_cns11643_1'.
1040         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1041         `chinese-cns11643-1'.
1042         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1043         `=cns11643-1'.
1044
1045 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1046
1047         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1048         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1049         `chinese-gb12345'.
1050         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1051         `=gb12345'.
1052
1053 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1054
1055         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1056         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1057         `chinese-gb2312'.
1058         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1059         `=gb2312'.
1060
1061 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1062
1063         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1064         (syms_of_mule_charset): Add new symbol `=big5' instead of
1065         `chinese-big5'.
1066         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1067
1068 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1069
1070         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1071         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1072         `korean-ksc5601'.
1073         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1074         `=ks-x1001'.
1075
1076 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1077
1078         * mule-charset.c (Qmap_jis_x0212): Renamed from
1079         `Qjapanese_jisx0212'.
1080         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1081         `japanese-jisx0212'.
1082         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1083         `=jis-x0212'.
1084
1085 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1086
1087         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1088         `Qjapanese_jisx0208'.
1089         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1090         of `japanese-jisx0208'.
1091         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1092         `=jis-x0208-1983'.
1093
1094 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1095
1096         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1097         `Qjapanese_jisx0208_1978'.
1098         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1099         of `japanese-jisx0208-1978'.
1100         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1101         `=jis-x0208-1978'.
1102
1103 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1104
1105         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1106         only for XEmacs CHISE.
1107
1108 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1109
1110         * char-ucs.h: Compact non-ISO-IR charset-ids.
1111         (LEADING_BYTE_UCS): Changed to -177.
1112         (LEADING_BYTE_CONTROL_1): Changed to -77.
1113         (LEADING_BYTE_UCS_BMP): Changed to -176.
1114         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1115
1116 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1117
1118         * mule-charset.c (Qiso_ir): New variable.
1119         (Fmake_charset): Recognise new property `iso-ir'.
1120         (syms_of_mule_charset): Add new symbol `iso-ir'.
1121
1122 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1123
1124         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1125         n to -n; charset-id of non ISO-IR sets are changed to positive
1126         numbers.
1127
1128 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1129
1130         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1131         for &MCS-XXXXXXXX; values.
1132
1133 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1134
1135         * mule.c (Vxemacs_chise_version): Renamed from
1136         `Vutf_2000_version'.
1137         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1138         `utf-2000-version' as an alias for `xemacs-chise-version'.
1139
1140 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1141
1142         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1143         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1144         defined.
1145
1146         * config.h.in (CHISE): New macro.
1147
1148 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1149
1150         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1151         of `ucs'.
1152         (Qmap_ucs): New variable.
1153         (syms_of_mule_charset): Add new symbol `=ucs'.
1154         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1155
1156         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1157         (simplify_char_spec): Likewise.
1158
1159         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1160
1161         * char-ucs.h (Qmap_ucs): New extern variable.
1162
1163 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1164
1165         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1166         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1167         don't define it when UTF2000 is not defined.
1168         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1169         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1170         when UTF2000 is not defined.
1171         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1172         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1173
1174 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1175
1176         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1177
1178         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1179         (Qucs_gb): Deleted.
1180         (syms_of_mule_charset): Delete `ucs-gb'.
1181         (complex_vars_of_mule_charset): Likewise.
1182
1183 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1184
1185         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1186
1187         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1188         (Qucs_cns): Deleted.
1189         (syms_of_mule_charset): Delete `ucs-cns'.
1190         (complex_vars_of_mule_charset): Likewise.
1191
1192 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1193
1194         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1195
1196         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1197         (Qucs_jis): Deleted.
1198         (syms_of_mule_charset): Delete `ucs-jis'.
1199         (complex_vars_of_mule_charset): Likewise.
1200
1201 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1202
1203         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1204
1205         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1206         (Qucs_ks): Deleted.
1207         (syms_of_mule_charset): Delete `ucs-ks'.
1208         (complex_vars_of_mule_charset): Likewise.
1209
1210 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1211
1212         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1213         (Qideograph_daikanwa_2): Deleted.
1214         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1215         (complex_vars_of_mule_charset): Likewise.
1216
1217         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1218         (LEADING_BYTE_DAIKANWA_1): Deleted.
1219         (LEADING_BYTE_DAIKANWA_2): Deleted.
1220         (MIN_CHAR_DAIKANWA): Deleted.
1221         (MAX_CHAR_DAIKANWA): Deleted.
1222
1223 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1224
1225         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1226         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1227         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1228
1229         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1230         (Vcharset_ideograph_daikanwa): Deleted.
1231         (Qideograph_hanziku_{1..12}): Deleted.
1232         (Qideograph_daikanwa): Deleted.
1233         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1234         Vcharset_ideograph_daikanwa.
1235         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1236         `ideograph-hanziku-{1..12}'.
1237         (complex_vars_of_mule_charset): Likewise.
1238
1239 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1240
1241         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1242
1243         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1244         (Qideograph_gt_pj_{1..11}): Deleted.
1245         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1246         (complex_vars_of_mule_charset): Likewise.
1247
1248 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1249
1250         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1251         (Vcharset_ideograph_gt): Deleted.
1252         (Qucs_big5): Deleted.
1253         (Qideograph_gt): Deleted.
1254         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1255         `ideograph-gt'.
1256         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1257         and `ideograph-gt'.
1258
1259         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1260         (LEADING_BYTE_GT): Deleted.
1261         (MIN_CHAR_GT): Deleted.
1262         (MAX_CHAR_GT): Deleted.
1263
1264 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1265
1266         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1267
1268 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1269
1270         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1271         (save_uint16_byte_table): Likewise.
1272         (save_byte_table): Likewise; convert values by it.
1273         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1274         for `ideographic-structure'.
1275         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1276         as the filter for `ideographic-structure'.
1277
1278 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1279
1280         * chartab.c (put_char_composition): New function.
1281         (Fput_char_attribute): Use `put_char_composition'; use
1282         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1283
1284         * fns.c (simplify_char_spec): New function.
1285         (char_ref_simplify_spec): New function.
1286         (Fchar_refs_simplify_char_specs): New function.
1287         (syms_of_fns): Add new builtin function
1288         `char-refs-simplify-char-specs'.
1289
1290 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1291
1292         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1293         (Qideograph_cbeta): Deleted.
1294         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1295         (complex_vars_of_mule_charset): Likewise.
1296
1297         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1298         (MIN_CHAR_CBETA): Comment out.
1299         (MAX_CHAR_CBETA): Likewise.
1300
1301 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1302
1303         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1304         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1305         CHISE client feature.
1306
1307 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1308
1309         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1310
1311 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1312
1313         * mule-charset.c (charset_lookup_description_1): Use
1314         `NUM_LEADING_BYTES' in UTF-2000.
1315
1316 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1317
1318         * char-ucs.h (GC_CHARSETP): Deleted.
1319
1320 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1321
1322         * char-ucs.h (MAX_CHAR_GT): Updated.
1323
1324 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1325
1326         * text-coding.c: Sync with XEmacs 21.4.10.
1327
1328 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1329
1330         * mule-charset.c (Vcharset_china3_jef): Deleted.
1331         (Qchina3_jef): Deleted.
1332         (syms_of_mule_charset): Don't define `china3-jef'.
1333         (complex_vars_of_mule_charset): Likewise.
1334
1335         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1336         (MIN_CHAR_CHINA3_JEF): Comment out.
1337         (MAX_CHAR_CHINA3_JEF): Comment out.
1338
1339 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1340
1341         * mule-charset.c (Vcharset_ucs_gb): New variable.
1342         (Qucs_gb): New variable.
1343         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1344         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1345
1346         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1347
1348 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1349
1350         * mule-charset.c (charset_code_point): if a coded-charset has a
1351         final-byte, don't inherit the builtin range of the mother CCS.
1352
1353 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1354
1355         * mule-charset.c (charset_code_point): Fix problem about
1356         inheritance.
1357
1358 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1359
1360         * mule-charset.c (decode_builtin_char): Reorganized.
1361
1362 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1363
1364         * text-coding.c (char_encode_as_entity_reference): Modify for
1365         `charset_code_point'.
1366         (char_encode_shift_jis): Likewise.
1367         (char_encode_big5): Likewise.
1368         (char_encode_utf8): Likewise.
1369         (char_encode_iso2022): Likewise.
1370
1371         * mule-charset.c (charset_code_point): Add new argument
1372         `defined_only'.
1373         (Fencode_char): Add new optional argument `defined_only'.
1374
1375         * chartab.c (put_char_table): Modify for `charset_code_point'.
1376
1377         * char-ucs.h (charset_code_point): Add new argument
1378         `defined_only'.
1379         (encode_char_1): Modify for `charset_code_point'.
1380
1381 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1382
1383         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1384         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1385
1386 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1387
1388         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1389         (Qjis_x0208): Likewise.
1390         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1391         XCHARSET_FINAL(charset).
1392         (charset_code_point): Modify condition for final-byte based
1393         builtin-chars.
1394         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1395         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1396         in UTF-2000; specify `=jis-x0208' as the mother of
1397         `japanese-jisx0208-1978', `japanese-jisx0208' and
1398         `japanese-jisx0208-1990' in UTF-2000.
1399
1400 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1401
1402         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1403
1404 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1405
1406         * text-coding.c (decode_coding_utf16): Support UTF-16.
1407         (char_encode_utf16): Fixed.
1408
1409 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1410
1411         * text-coding.c (Qutf16): New variable in MULE.
1412         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1413         (Fcoding_system_type): Add `utf-16' in MULE.
1414         (struct detection_state): Add a structure for utf16 in MULE.
1415         (detect_coding_type): Setup st->utf16.mask in MULE.
1416         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1417         MULE.
1418         (reset_encoding_stream): Use `char_encode_utf16' and
1419         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1420         (detect_coding_utf16): New function [incomplete].
1421         (decode_coding_utf16): New function [support only UCS-2].
1422         (char_encode_utf16): New function.
1423         (char_finish_utf16): New function.
1424         (syms_of_file_coding): Add new symbol `utf-16'; setup
1425         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1426
1427         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1428         UTF-2000.
1429         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1430         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1431
1432 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1433
1434         * chartab.c (put_char_table): When a charset is specified as a
1435         range in UTF-2000, don't support builtin characters.
1436
1437 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1438
1439         * mule-charset.c (decode_defined_char): Don't refer external
1440         database if Qunbound or Qnil are found.
1441         (Fsave_charset_mapping_table): Don't define it if
1442         HAVE_CHISE_CLIENT is not defined.
1443         (Freset_charset_mapping_table): New function.
1444         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1445         found in external database.
1446         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1447         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1448         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1449
1450 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1451
1452         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1453         not.
1454
1455 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1456
1457         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1458         Q_lowercase, Q_uppercase in UTF-2000.
1459
1460         * chartab.c (get_char_table): Add special code for the standard
1461         case table to use character attribute `->downcase' and
1462         `->uppercase' for case operations in UTF-2000.
1463
1464         * casetab.c (Qflippedcase): New variable in UTF-2000.
1465         (Q_lowercase): Likewise.
1466         (Q_uppercase): Likewise.
1467         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1468         and `->uppercase' in UTF-2000.
1469         (complex_vars_of_casetab): Assign attribute name `downcase' to
1470         downcase and CANON table of Vstandard_case_table in UTF-2000;
1471         assign attribute name `flippedcase' to upcase and EQV table of
1472         Vstandard_case_table in UTF-2000.
1473
1474 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1475
1476         * text-coding.c (decode_add_er_char): Support isolated-chars.
1477         (char_encode_as_entity_reference): Likewise.
1478
1479 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1480
1481         * emacs.c (Vutf_2000_lisp_directory): New variable.
1482         (Vconfigure_utf_2000_lisp_directory): Likewise.
1483         (complex_vars_of_emacs): Add new variable
1484         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1485
1486 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1487
1488         * char-ucs.h (DECODE_CHAR): Delete special code for
1489         `chinese-big5-1' and `chinese-big5-2'.
1490
1491         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1492         (Qbig5_2): Likewise.
1493         (decode_defined_char): Support CONVERSION_BIG5_1 and
1494         CONVERSION_BIG5_2.
1495         (decode_builtin_char): Likewise.
1496         (charset_code_point): Likewise.
1497         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1498         'conversion in UTF-2000.
1499         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1500         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1501         `chinese-big5-2' as children of `chinese-big5'.
1502
1503         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1504         (CONVERSION_BIG5_2): New macro.
1505
1506 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1507
1508         * text-coding.c (char_encode_big5): Support entity-reference.
1509
1510 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1511
1512         * text-coding.c (char_encode_as_entity_reference): New function.
1513         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1514
1515 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1516
1517         * text-coding.c (decode_coding_big5): Support entity-reference
1518         decoding feature.
1519
1520 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1521
1522         * text-coding.c (allocate_coding_system): Initialize initial
1523         charsets for CODESYS_UTF8.
1524         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1525         charset-g2 for CODESYS_UTF8.
1526         (decode_coding_utf8): Use charset-g0.
1527         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1528         to force variants to map to UCS.
1529
1530 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1531
1532         * text-coding.c (Qutf_8_mcs): New variable.
1533         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1534         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1535         instead of `utf-8' in UTF-2000.
1536
1537 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1538
1539         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1540         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1541         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1542         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1543         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1544         CONVERSION_96x96x96x96 are introduced.
1545         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1546         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1547         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1548
1549         * char-ucs.h (CONVERSION_94): New macro.
1550         (CONVERSION_96): New macro.
1551         (CONVERSION_94x94): New macro.
1552         (CONVERSION_96x96): New macro.
1553         (CONVERSION_94x94x94): New macro.
1554         (CONVERSION_96x96x96): New macro.
1555         (CONVERSION_94x94x94x60): New macro.
1556         (CONVERSION_94x94x94x94): New macro.
1557         (CONVERSION_96x96x96x96): New macro.
1558
1559 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1560
1561         * chartab.c (Vcharacter_variant_table): Deleted.
1562         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1563         of `Vcharacter_variant_table'.
1564         (Fput_char_attribute): Likewise.
1565         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1566         (complex_vars_of_chartab): Likewise.
1567
1568 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1569
1570         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1571
1572         * fns.c (Qideographic_structure): New variable.
1573         (Qkeyword_char): New variable.
1574         (ids_format_unit): New function.
1575         (Fideographic_structure_to_ids): New function.
1576         (syms_of_fns): Add new symbols `ideographic-structure' and
1577         `:char'; add new builtin function `ideographic-structure-to-ids'.
1578
1579         * data.c (Fchar_ref_p): New function.
1580         (syms_of_data): Add new builtin function `char-ref-p'.
1581
1582         * chartab.h: Add an EXFUN for `Ffind_char'.
1583
1584 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1585
1586         * text-coding.c (Vcharacter_composition_table): Deleted.
1587         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1588         in every UTF-2000.
1589
1590         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1591         UTF-2000.
1592         (Vcharacter_composition_table): Deleted.
1593         (Fget_composite_char): Use the implementation for external-DB
1594         support in every UTF-2000.
1595         (Fput_char_attribute): Likewise.
1596         (char_attribute_system_db_file): Don't define if external-DB
1597         feature is not available.
1598         (Fsave_char_attribute_table): Likewise.
1599         (Fmount_char_attribute_table): Likewise.
1600         (Fclose_char_attribute_table): Likewise.
1601         (Freset_char_attribute_table): Likewise.
1602         (Fload_char_attribute_table): Likewise.
1603         (syms_of_chartab): Don't define `save-char-attribute-table',
1604         `mount-char-attribute-table', `reset-char-attribute-table',
1605         `close-char-attribute-table' and `load-char-attribute-table' if
1606         external-DB feature is not available.
1607         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1608
1609 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1610
1611         * text-coding.c (Qcomposition): Add extern if external-DB feature
1612         is supported.
1613         (Vcharacter_composition_table): Don't add extern if external-DB
1614         feature is supported.
1615         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1616         character composition rule if external-DB feature is supported.
1617
1618         * chartab.c (Vcharacter_composition_table): Don't define if
1619         external-DB feature is supported.
1620         (Qcomposition): New variable.
1621         (Fget_composite_char): New implementation for external-DB support.
1622         (Fput_char_attribute): Use `composition' property of each
1623         character instead of `Vcharacter_composition_table' to store
1624         character-composition rules if external-DB feature is supported.
1625         (syms_of_chartab): Add new symbol `composition'.
1626         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1627         external-DB feature is supported.
1628
1629 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1630
1631         * chartab.c (Vchar_db_stingy_mode): New variable.
1632         (load_char_attribute_maybe): Close database if
1633         Vchar_db_stingy_mode is not NIL.
1634         (Fload_char_attribute_table_map_function): Use
1635         `get_char_id_table_0' instead of `get_char_id_table'.
1636         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1637
1638         * chartab.h (get_char_id_table_0): New inline function.
1639         (get_char_id_table): Use `get_char_id_table_0'.
1640
1641 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1642
1643         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1644         and `COMPOSE_ADD_CHAR'.
1645         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1646
1647 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1648
1649         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1650         instead of `DECODE_ADD_UCS_CHAR'.
1651         (COMPOSE_ADD_CHAR): Likewise.
1652
1653 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1654
1655         * text-coding.c (decode_flush_er_chars): New inline function.
1656         (decode_add_er_char): New function.
1657         (decode_coding_utf8): Use `decode_flush_er_chars' and
1658         `decode_add_er_char'.
1659
1660 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1661
1662         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1663         done before `decode_output_utf8_partial_char'.
1664
1665         * mule-charset.c (complex_vars_of_mule_charset): Specify
1666         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1667         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1668
1669 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1670
1671         * mule-charset.c (decode_defined_char): New function; search
1672         mother.
1673         (decode_builtin_char): Don't search mother if
1674         XCHARSET_MAX_CODE(charset) == 0.
1675         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1676         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1677         (Fdecode_char): Use `decode_defined_char' instead of
1678         `DECODE_DEFINED_CHAR'.
1679         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1680         mother of `Vcharset_ucs_jis'.
1681
1682         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1683         instead of `DECODE_DEFINED_CHAR'.
1684
1685         * char-ucs.h (decode_defined_char): Renamed from
1686         `DECODE_DEFINED_CHAR'; changed to normal function.
1687         (DECODE_CHAR): Use `decode_defined_char' instead of
1688         `DECODE_DEFINED_CHAR'.
1689
1690         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1691
1692 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1693
1694         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1695
1696         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1697         variable.
1698         (Quse_entity_reference): New variable.
1699         (Qd): New variable.
1700         (Qx): New variable.
1701         (QX): New variable.
1702         (coding_system_description): Add description for
1703         `ccs_priority_list'.
1704         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1705         (allocate_coding_system): Initialize `ccs_priority_list' in
1706         UTF-2000.
1707         (Fmake_coding_system): Add description about
1708         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1709         (codesys).
1710         (Fcoding_system_property): Accept `disable-composition' and
1711         `use-entity-reference' in UTF-2000.
1712         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1713         in UTF-2000.
1714         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1715         (decode_coding_utf8): Decode entity-reference if
1716         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1717         (char_encode_utf8): Encode non-Unicode characters as
1718         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1719         (str->codesys).
1720         (syms_of_file_coding): Add new symbols `use-entity-reference',
1721         `d', `x', `X'.
1722         (vars_of_file_coding): Add new variable
1723         `coded-charset-entity-reference-alist'.
1724         (complex_vars_of_file_coding): Declare `disable-composition' and
1725         `use-entity-reference' to be coding-system-properties in UTF-2000.
1726
1727         * file-coding.h (struct Lisp_Coding_System): Add new member
1728         `use_entity_reference' and `ccs_priority_list'.
1729         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1730         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1731         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1732
1733 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1734
1735         * chartab.c (save_uint8_byte_table): Don't clear the table.
1736         (save_uint16_byte_table): Likewise.
1737         (save_byte_table): Likewise.
1738         (Fmount_char_attribute_table): New function.
1739         (syms_of_chartab): Add new builtin function
1740         `mount-char-attribute-table'.
1741
1742 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1743
1744         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1745         "w+" mode.
1746         (load_char_decoding_entry_maybe): Open database as read-only mode.
1747
1748         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1749         open database as "w+" mode.
1750         (load_char_attribute_maybe): Open database as read-only mode.
1751         (Fload_char_attribute_table): Likewise.
1752
1753 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1754
1755         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1756         (char_table_description): Delete member `db_file'.
1757         (Fmake_char_table): Don't refer `ct->db_file'.
1758         (Fcopy_char_table): Likewise.
1759         (Fsave_char_attribute_table): Likewise.
1760         (Fclose_char_attribute_table): Likewise.
1761         (Freset_char_attribute_table): Likewise.
1762         (load_char_attribute_maybe): Likewise.
1763         (Fload_char_attribute_table): Likewise.
1764
1765         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1766
1767 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1768
1769         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1770         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1771         `ct->db' is living.
1772         (load_char_attribute_maybe): Likewise.
1773         (Fload_char_attribute_table): Likewise.
1774
1775 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1776
1777         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1778         `ct->db_file' unconditionally.
1779
1780 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1781
1782         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1783         UTF-2000.
1784         (char_table_description): Add description for `db_file' and `db'
1785         in UTF-2000.
1786         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1787         UTF-2000.
1788         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1789         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1790         (Fclose_char_attribute_table): New function.
1791         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1792         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1793         and `cit->db'.
1794         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1795         (syms_of_chartab): Add new builtin function
1796         `Fclose_char_attribute_table'.
1797
1798 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1799
1800         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1801         `db' in UTF-2000.
1802         (load_char_attribute_maybe): Change interface.
1803         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1804
1805 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1806
1807         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1808
1809 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1810
1811         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1812         instead of `DECODE_CHAR' for mother; don't use special code for
1813         chinese-big5 to use code space of chinese-big5-1 and
1814         chinese-big5-2.
1815         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1816         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1817
1818         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1819         (MAX_CHAR_BIG5_CDP): Revival.
1820
1821 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1822
1823         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1824         the XLFD registry-encoding name of `chinese-big5'.
1825
1826 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1827
1828         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1829         (Qchinese_big5_cdp): Deleted.
1830         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1831         (complex_vars_of_mule_charset): Delete coded-charset
1832         `chinese-big5-cdp'.
1833
1834         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1835         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1836         `CHARSET_ID_OFFSET - n' for private CCS.
1837         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1838         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1839         of `MIN_LEADING_BYTE'.
1840         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1841         `(CHARSET_ID_OFFSET - 97)'.
1842         (MIN_CHAR_BIG5_CDP): Deleted.
1843         (MAX_CHAR_BIG5_CDP): Deleted.
1844
1845 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1846
1847         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1848
1849 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1850
1851         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1852         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1853         chartab.c].
1854
1855         * chartab.c (Vutf_2000_version): Moved to mule.c.
1856         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1857
1858 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1859
1860         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1861         when HAVE_CHISE_CLIENT is not defined.
1862
1863         * mule.c (vars_of_mule): Provide feature `chise' when
1864         HAVE_CHISE_CLIENT is defined.
1865
1866 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1867
1868         * config.h.in (UTF2000): Add comment.
1869         (HAVE_CHISE_CLIENT): New macro.
1870
1871 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1872
1873         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1874         CONSP.
1875         (Fput_char_attribute): Likewise.
1876         (char_attribute_system_db_file): Encode file-name of attribute.
1877         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1878         the initial value.
1879
1880 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1881
1882         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1883         (Fsave_charset_mapping_table): Use
1884         `char_attribute_system_db_file'.
1885         (load_char_decoding_entry_maybe): Likewise.
1886
1887         * chartab.h (Qsystem_char_id): New external variable.
1888         (char_attribute_system_db_file): New prototype.
1889
1890         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1891         (char_attribute_system_db_file): New function.
1892         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1893         (Freset_char_attribute_table): Likewise.
1894         (load_char_attribute_maybe): Likewise.
1895         (Fload_char_attribute_table): Likewise.
1896         (syms_of_chartab): Add new symbol `system-char-id'.
1897
1898 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1899
1900         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1901         `XCHARSET_GRAPHIC(ccs)'.
1902
1903 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1904
1905         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1906
1907 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1908
1909         * chartab.c (Q_ucs_variants): New variable.
1910         (syms_of_chartab): Add new symbol `->ucs-variants'.
1911         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1912         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1913         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1914
1915         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1916
1917         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1918         `HAVE_DATABASE' is defined.
1919         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1920         `HAVE_DATABASE' is defined.
1921
1922 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1923
1924         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1925         attribute-table.
1926         (Freset_char_attribute_table): New function.
1927         (syms_of_chartab): Add new builtin function
1928         `reset-char-attribute-table'.
1929
1930 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1931
1932         * chartab.c (load_char_attribute_maybe): Don't make directories.
1933
1934 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1935
1936         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1937
1938         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1939         for decoding-table.
1940
1941 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1942
1943         * mule-charset.c (Fsave_charset_mapping_table): Use
1944         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1945
1946         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1947         instead of `XCHARSET_CHARS'.
1948
1949 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1950
1951         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1952         (XCHARSET_BYTE_SIZE): Likewise.
1953
1954         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1955         mule-charset.c].
1956         (XCHARSET_BYTE_SIZE): Likewise.
1957
1958 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1959
1960         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1961         data-directory to store database.
1962         (Fsave_char_attribute_table): Likewise.
1963         (load_char_attribute_maybe): Likewise.
1964         (Fload_char_attribute_table): Likewise.
1965
1966 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1967
1968         * mule-charset.c (Fsave_charset_mapping_table): New function.
1969         (syms_of_mule_charset): Add new builtin function
1970         `save-charset-mapping-table'.
1971
1972 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1973
1974         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1975         (get_ccs_octet_table): New inline function.
1976         (put_ccs_octet_table): Likewise.
1977         (decoding_table_put_char): Use `get_ccs_octet_table' and
1978         `put_ccs_octet_table'.
1979         (decoding_table_remove_char): Use `decoding_table_put_char'.
1980         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1981
1982         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1983         into encoding_table.
1984         (make_charset): Use Qunbound instead Qnil as initial value of
1985         decoding_table.
1986
1987 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1988
1989         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1990         element is Qunloaded.
1991         (map_over_uint16_byte_table): Likewise.
1992         (map_over_byte_table): Likewise.
1993         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1994         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1995         database support, load encoding-table of the specified
1996         coded-charset if it is not loaded yet.
1997         (save_uint8_byte_table): New function of UTF-2000 with external
1998         database support.
1999         (save_uint16_byte_table): Likewise.
2000         (save_byte_table): Likewise.
2001         (Fput_char_attribute): Don't store value into external database
2002         even if the external database feature is supported in UTF-2000;
2003         set `attribute' as name of char-table if the external database
2004         feature is supported.
2005         (Fsave_char_attribute_table): New function in UTF-2000.
2006         (syms_of_chartab): Add new builtin function
2007         `save-char-attribute-table' in UTF-2000.
2008
2009 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2010
2011         * chartab.c (char_attribute_table_to_put): New variable in
2012         UTF-2000.
2013         (Qput_char_table_map_function): Likewise.
2014         (value_to_put): Likewise.
2015         (Fput_char_table_map_function): New function in UTF-2000.
2016         (put_char_table): Use `Fmap_char_attribute' for
2017         CHARTAB_RANGE_CHARSET in UTF-2000.
2018         (Fput_char_attribute): Store symbol instead of string in
2019         `XCHAR_TABLE_NAME (table)'.
2020         (load_char_attribute_maybe): Likewise.
2021         (syms_of_chartab): Add new symbol/function
2022         `put-char-table-map-function'.
2023
2024 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2025
2026         * database.h: Add new EXFUN for `Fmap_database'.
2027
2028         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2029         (syms_of_database): Likewise.
2030
2031         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2032         UTF-2000.
2033         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2034         (XCHAR_TABLE_UNLOADED): Likewise.
2035
2036         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2037         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2038         HAVE_DATABASE is defined.
2039         (char_attribute_table_to_load): New variable of UTF-2000 with
2040         external database support.
2041         (Qload_char_attribute_table_map_function): Likewise.
2042         (Fload_char_attribute_table_map_function): New function of
2043         UTF-2000 with external database support.
2044         (Fload_char_attribute_table): New function of UTF-2000.
2045         (Fmap_char_attribute): Call Fload_char_attribute_table if
2046         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2047         (syms_of_chartab): Add new symbol and function
2048         `load-char-attribute-table-map-function' in UTF-2000 with external
2049         database support; add new function `load-char-attribute-table' in
2050         UTF-2000.
2051
2052 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2053
2054         * chartab.h (load_char_attribute_maybe): New prototype for
2055         UTF-2000 with DATABASE support.
2056         (get_char_id_table): Use `load_char_attribute_maybe' if
2057         HAVE_DATABASE is defined.
2058
2059         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2060         with DATABASE support.
2061
2062 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2063
2064         * chartab.c (Fput_char_attribute): Use S-expression as key of
2065         external database.
2066
2067         * chartab.h (get_char_id_table): Use S-expression as key of
2068         external database.
2069
2070 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2071
2072         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2073         if an element is not loaded, load the corresponding attributes
2074         from an external database.
2075         (map_over_uint16_byte_table): Likewise.
2076         (map_over_byte_table): Likewise.
2077         (map_char_table): Modify for `map_over_uint8_byte_table',
2078         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2079         element is not loaded, load the corresponding attributes from an
2080         external database.
2081         (Fput_char_attribute): Change initial values to Qunloaded.
2082
2083         * chartab.h (get_char_id_table): If a character attribute is not
2084         loaded and the attribute value is not found in an external
2085         database, store Qunbound as the attribute value.
2086
2087 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2088
2089         * chartab.c (BT_UINT8_unloaded): New macro.
2090         (UINT8_VALUE_P): Accept Qunloaded.
2091         (UINT8_ENCODE): Likewise.
2092         (UINT8_DECODE): Likewise.
2093         (BT_UINT16_unloaded): New macro.
2094         (UINT16_VALUE_P): Accept Qunloaded.
2095         (UINT16_ENCODE): Likewise.
2096         (UINT16_DECODE): Likewise.
2097         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2098         BT_UINT16_unloaded.
2099         (mark_char_table): Mark `ct->name' in UTF-2000.
2100         (char_table_description): Add `name' in UTF-2000.
2101         (Fmake_char_table): Initialize `ct->name'.
2102         (Fcopy_char_table): Copy `ct->name'.
2103         (Fput_char_attribute): Store value into an external database if
2104         HAVE_DATABASE is defined.
2105
2106         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2107         UTF-2000.
2108         (CHAR_TABLE_NAME): New macro in UTF-2000.
2109         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2110         (get_char_id_table): Try to read an external database if Qunloaded
2111         is stored in a table.
2112
2113         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2114         Qunloaded.
2115
2116 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2117
2118         * database.h: Add EXFUN definitions for Fopen_database,
2119         Fput_database, Fget_database and Fclose_database.
2120
2121         * data.c (Qunloaded): New variable in UTF-2000.
2122
2123         * lisp.h (Qunloaded): New variable in UTF-2000.
2124
2125 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2126
2127         * mule-charset.c (put_char_ccs_code_point): Modify for
2128         `decoding_table_remove_char' and `decoding_table_put_char'.
2129         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2130
2131         * char-ucs.h (decoding_table_remove_char): Change arguments to
2132         hide decoding_table vector.
2133         (decoding_table_put_char): Likewise.
2134
2135 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2136
2137         * mule-charset.c (decoding_table_remove_char): Moved to
2138         char-ucs.h.
2139         (decoding_table_put_char): Likewise.
2140
2141         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2142         from mule-charset.c].
2143         (decoding_table_remove_char): New inline function [moved from
2144         mule-charset.c].
2145         (decoding_table_put_char): Likewise.
2146
2147 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2148
2149         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2150         extension.
2151
2152 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2153
2154         * mule-charset.c (decode_builtin_char): Support mother charsets.
2155
2156 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2157
2158         * mule-charset.c (Q94x94x60): New variable.
2159         (charset_code_point): Support conversion `94x94x60'.
2160         (Fmake_charset): Likewise.
2161         (syms_of_mule_charset): Add new symbol `94x94x60'.
2162
2163         * char-ucs.h (CONVERSION_94x94x60): New macro.
2164
2165 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2166
2167         * mule-charset.c (charset_code_point): Unify code about
2168         `code-offset'.
2169
2170 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2171
2172         * mule-charset.c (charset_code_point): Merge code about builtin
2173         characters into code about mother charsets; don't use
2174         `range_charset_code_point'.
2175         (range_charset_code_point): Deleted.
2176
2177 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2178
2179         * mule-charset.c (Qcode_offset): New variable.
2180         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2181         `max-code'; accept new property `code-offset'.
2182         (syms_of_mule_charset): Add new symbol `code-offset'.
2183
2184 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2185
2186         * mule-charset.c (range_charset_code_point): Fixed.
2187
2188 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2189
2190         * mule-charset.c (decode_builtin_char): Change semantics of
2191         code-offset of coded-charset.
2192         (charset_code_point): Likewise.
2193         (range_charset_code_point): Likewise.
2194         (complex_vars_of_mule_charset): Modify for the change.
2195
2196 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2197
2198         * mule-charset.c (Fencode_char): Reverse arguments.
2199
2200         * mule-charset.c (charset_code_point): Fixed.
2201
2202 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2203
2204         * mule-charset.c (Vcharset_mojikyo): Deleted.
2205         (Vcharset_mojikyo_2022_1): Deleted.
2206         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2207         (Qmin_code): New variable in UTF-2000.
2208         (Qmax_code): Likewise.
2209         (Qmother): Likewise.
2210         (Qconversion): Likewise.
2211         (Q94x60): Likewise.
2212         (Qmojikyo): Deleted.
2213         (Qmojikyo_2022_1): Deleted.
2214         (Qmojikyo_pj_{1..22}): Deleted.
2215         (mark_charset): Mark `cs->mother'.
2216         (charset_description): Add description for `mother'.
2217         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2218         new arguments `mother' and `conversion'; use
2219         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2220         (charset_code_point): Moved from char-ucs.h; support `mother'
2221         charset feature.
2222         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2223         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2224         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2225         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2226         allow 2 as the value of `graphic' in UTF-2000; add new properties
2227         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2228         require `final' in UTF-2000; modify for `make_charset'.
2229         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2230         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2231         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2232         (Fencode_char): New function.
2233         (syms_of_mule_charset): Add new builtin function `encode-char' in
2234         UTF-2000; add new symbols `min-code', `max-code', `mother',
2235         `conversion' and `94x60'; delete symbols `mojikyo',
2236         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2237         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2238         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2239         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2240
2241         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2242         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2243
2244         * char-ucs.h (Vcharset_mojikyo): Deleted.
2245         (Vcharset_mojikyo_2022_1): Deleted.
2246         (LEADING_BYTE_MOJIKYO): Deleted.
2247         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2248         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2249         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2250         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2251         add new member `mother'; add new member `conversion'.
2252         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2253         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2254         (CHARSET_MOTHER): New macro.
2255         (CHARSET_CONVERSION): New macro.
2256         (CONVERSION_IDENTICAL): New macro.
2257         (CONVERSION_94x60): New macro.
2258         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2259         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2260         (XCHARSET_MOTHER): New macro.
2261         (XCHARSET_CONVERSION): New macro.
2262         (MIN_CHAR_MOJIKYO): Deleted.
2263         (MAX_CHAR_MOJIKYO): Deleted.
2264         (DECODE_MOJIKYO_2022): Deleted.
2265         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2266         (charset_code_point): Changed to non-inline function.
2267         (encode_char_1): Use `charset_code_point'.
2268         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2269
2270 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2271
2272         * lread.c (read_compiled_function): Fix prototype.
2273         (read_vector): Likewise.
2274
2275 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2276
2277         * lrecord.h (struct lrecord_header): Delete `older'.
2278         (set_lheader_implementation): Delete code for `older'.
2279         (set_lheader_older_implementation): Deleted.
2280         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2281         (OLDER_RECORD_P): Deleted.
2282         (OLDER_RECORD_HEADER_P): Deleted.
2283         (alloc_older_lcrecord): Deleted.
2284         (alloc_older_lcrecord_type): Deleted.
2285
2286         * alloc.c (all_older_lcrecords): Deleted.
2287         (alloc_older_lcrecord): Deleted.
2288         (disksave_object_finalization_1): Delete code for older objects.
2289         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2290         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2291
2292 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2293
2294         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2295         instead of `make_older_vector'.
2296         (put_char_ccs_code_point): Likewise.
2297         (mark_charset): Mark `cs->decoding_table'.
2298         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2299
2300         * lisp.h (make_older_vector): Deleted.
2301         (make_vector_newer): Deleted.
2302
2303         * config.h.in (HAVE_GGC): Deleted.
2304
2305         * alloc.c (make_older_vector): Deleted.
2306         (make_vector_newer_1): Deleted.
2307         (make_vector_newer): Deleted.
2308
2309 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2310
2311         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2312         (Qideograph_daikanwa_2): New variable.
2313         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2314         (complex_vars_of_mule_charset): Add new coded-charset
2315         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2316         `LEADING_BYTE_DAIKANWA'.
2317
2318         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2319         (LEADING_BYTE_DAIKANWA_1): New macro.
2320         (LEADING_BYTE_DAIKANWA_2): New macro.
2321         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2322
2323 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2324
2325         * mule-charset.c (complex_vars_of_mule_charset): Change
2326         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2327         the second revised version.
2328
2329 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2330
2331         * mule-charset.c (Vcharset_ucs_smp): New variable.
2332         (Vcharset_ucs_sip): New variable.
2333         (Qucs_smp): New variable.
2334         (Qucs_sip): New variable.
2335         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2336         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2337         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2338         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2339         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2340         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2341
2342         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2343         (LEADING_BYTE_UCS_SIP): New macro.
2344         (MIN_CHAR_SMP): New macro.
2345         (MAX_CHAR_SMP): New macro.
2346         (MIN_CHAR_SIP): New macro.
2347         (MAX_CHAR_SIP): New macro.
2348
2349 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2350
2351         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2352         utf-2000.
2353
2354 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2355
2356         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2357         value; don't store value into `encoding_table' of `Lisp_Charset'.
2358         (mark_charset): `encoding_table' was deleted.
2359         (charset_description): Likewise.
2360         (make_charset): Likewise.
2361         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2362         `put_char_ccs_code_point'.
2363
2364         * chartab.h (Fput_char_attribute): New EXFUN.
2365
2366         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2367         is unified with normal symbol space.
2368         (Fget_char_attribute): Likewise.
2369         (Fput_char_attribute): Likewise; behavior of
2370         `put_char_ccs_code_point' is changed.
2371
2372         * char-ucs.h: Include "elhash.h".
2373         (Vchar_attribute_hash_table): New external variable.
2374         (struct Lisp_Charset): Delete `encoding_table'.
2375         (CHARSET_ENCODING_TABLE): New implementation; refer
2376         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2377         `Lisp_Charset'.
2378
2379 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2380
2381         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2382         (cs) == 0.
2383
2384 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2385
2386         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2387         `chinese-big5'.
2388
2389 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2390
2391         * chartab.c (uint8_byte_table_description): New constant.
2392         (uint8-byte-table): Use `uint8_byte_table_description'.
2393         (uint16_byte_table_description): New constant.
2394         (uint16-byte-table): Use `uint16_byte_table_description'.
2395
2396 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2397
2398         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2399         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2400
2401 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2402
2403         * mule-charset.c (Vcharset_ucs_ks): New variable.
2404         (Qucs_ks): New variable.
2405         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2406         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2407
2408         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2409
2410 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2411
2412         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2413         (Fdecode_char): Likewise.
2414
2415         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2416         chartab.h.
2417         (Fdefine_char): Modify for Fdecode_char.
2418         (Ffind_char): Likewise.
2419
2420         * mule-charset.c (Fdecode_char): Add new optional argument
2421         `defined-only'.
2422         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2423
2424 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2425
2426         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2427         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2428         (allocate_coding_system): Initialize initial-charsets of
2429         CODESYS_BIG5 in XEmacs UTF-2000.
2430         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2431         CODESYS_BIG5 in XEmacs UTF-2000.
2432         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2433         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2434
2435         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2436         variables.
2437         (Qideograph_hanziku_{1 .. 12}): Likewise.
2438         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2439         .. 12}'.
2440         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2441         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2442         `ideograph-hanziku-{1 .. 12}'.
2443
2444         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2445         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2446         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2447         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2448         (DECODE_DEFINED_CHAR): New inline function.
2449         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2450
2451 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2452
2453         * mule-charset.c (Vcharset_china3_jef): Renamed from
2454         `Vcharset_japanese_jef_china3'.
2455         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2456         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2457         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2458         (syms_of_mule_charset): Rename `china3-jef' from
2459         `japanese-jef-china3'.
2460         (complex_vars_of_mule_charset): Likewise; rename
2461         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2462
2463         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2464         `LEADING_BYTE_JEF_CHINA3'.
2465         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2466         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2467
2468 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2469
2470         * mule-charset.c (encode_builtin_char_1): Comment out special code
2471         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2472
2473         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2474         (MAX_CHAR_MOJIKYO_0): Comment out.
2475         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2476         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2477         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2478         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2479
2480 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2481
2482         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2483         (Qideograph_cbeta): New variable.
2484         (encode_builtin_char_1): Comment out special code for
2485         coded-charset `mojikyo' and `japanese-jef-china3'.
2486         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2487         (complex_vars_of_mule_charset): Add new coded-charset
2488         `ideograph-cbeta'.
2489
2490         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2491         (MIN_CHAR_CBETA): New macro.
2492         (MAX_CHAR_CBETA): New macro.
2493
2494 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2495
2496         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2497         (LEADING_BYTE_JEF_CHINA3): New macro.
2498         (MIN_CHAR_JEF_CHINA3): New macro.
2499         (MAX_CHAR_JEF_CHINA3): Likewise.
2500         (DECODE_CHAR): Fixed.
2501
2502 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2503
2504         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2505         (Qjapanese_jef_china3): New variable.
2506         (encode_builtin_char_1): Support `japanese-jef-china3'.
2507         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2508         (complex_vars_of_mule_charset): Add new coded-charset
2509         `japanese-jef-china3'.
2510
2511 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2512
2513         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2514         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2515         94^4, 96^3, 96^4, 128^n and 256^n set.
2516         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2517         (map_char_table): Likewise.
2518
2519 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2520
2521         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2522         UTF-2000.
2523
2524 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2525
2526         * chartab.h (get_char_id_table): New inline function.
2527
2528         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2529         function.
2530
2531 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2532
2533         * chartab.h (decode_char_table_range): New prototype in XEmacs
2534         UTF-2000.
2535         (put_char_id_table): New inline function in XEmacs UTF-2000.
2536
2537         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2538         function.
2539         (decode_char_table_range): Delete static declaration in XEmacs
2540         UTF-2000.
2541
2542 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2543
2544         * chartab.c (put_char_id_table): Use `put_char_table'.
2545
2546 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2547
2548         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2549         (map_over_uint16_byte_table): Likewise.
2550         (map_over_byte_table): Likewise.
2551         (map_char_table): Modify for `map_over_uint8_byte_table',
2552         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2553         UTF-2000.
2554
2555 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2556
2557         * chartab.c (struct map_char_table_for_charset_arg): New
2558         structure.
2559         (map_char_table_for_charset_fun): New function.
2560         (map_char_table): Use `map_char_table' for encoding_table of
2561         `range->charset'.
2562
2563 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2564
2565         * chartab.c (map_char_table): Check a character is found in
2566         range->charset instead of non default value is defined in
2567         char-table when range is CHARTAB_RANGE_ROW.
2568
2569 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2570
2571         * chartab.c (map_char_id_table): Deleted.
2572         (Fmap_char_attribute): Use `map_char_table' instead of
2573         `map_char_id_table'.
2574
2575 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2576
2577         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2578         UTF-2000.
2579         (update_syntax_table): Deleted in XEmacs UTF-2000.
2580
2581         * syntax.c (find_defun_start): Use `syntax_table' instead of
2582         `mirror_syntax_table' in XEmacs UTF-2000.
2583         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2584         UTF-2000.
2585         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2586         XEmacs UTF-2000.
2587         (Fmatching_paren): Likewise.
2588         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2589         in XEmacs UTF-2000.
2590         (find_start_of_comment): Likewise.
2591         (find_end_of_comment): Likewise.
2592         (Fforward_comment): Likewise.
2593         (scan_lists): Likewise.
2594         (char_quoted): Likewise.
2595         (Fbackward_prefix_chars): Likewise.
2596         (scan_sexps_forward): Likewise.
2597         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2598         (update_syntax_table): Likewise.
2599
2600         * search.c (skip_chars): Use `syntax_table' instead of
2601         `mirror_syntax_table' in XEmacs UTF-2000.
2602         (wordify): Likewise.
2603         (Freplace_match): Likewise.
2604
2605         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2606         `mirror_syntax_table' in XEmacs UTF-2000.
2607         (WORDCHAR_P_UNSAFE): Likewise.
2608         (re_match_2_internal): Likewise.
2609
2610         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2611         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2612
2613         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2614         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2615
2616         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2617         XEmacs UTF-2000.
2618
2619         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2620         UTF-2000.
2621         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2622         (char_table_description): Delete `mirror_table' in XEmacs
2623         UTF-2000.
2624         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2625         UTF-2000.
2626         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2627         (Fcopy_char_table): Likewise.
2628         (put_char_table): Don't call `update_syntax_table' in XEmacs
2629         UTF-2000.
2630
2631         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2632         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2633         (casify_region_internal): Likewise.
2634
2635         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2636
2637         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2638         `mirror_syntax_table' in XEmacs UTF-2000.
2639
2640         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2641         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2642         (Fexpand_abbrev): Likewise.
2643
2644 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2645
2646         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2647
2648 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2649
2650         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2651         (map_over_uint16_byte_table): Likewise.
2652         (map_over_byte_table): Likewise.
2653         (get_char_id_table): Refer `cit->default_value'.
2654         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2655         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2656         of character-id ranges.
2657         (mark_char_table): Mark `ct->default_value'.
2658         (char_table_description): Add `default_value'.
2659         (fill_char_table): Use `default_value'.
2660         (decode_char_table_range): Decode `nil' as
2661         `CHARTAB_RANGE_DEFAULT'.
2662         (get_char_id_table): Refer `cit->default_value'.
2663         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2664         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2665         temporary hack; check value of char-table is bound or not.
2666         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2667
2668         * chartab.h (struct Lisp_Char_Table): Add new member
2669         `default_value' in XEmacs UTF-2000.
2670         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2671         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2672         UTF-2000.
2673
2674 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2675
2676         * chartab.h (Lisp_Char_ID_Table): Deleted.
2677
2678         * chartab.c (char_table_description): Fix typo.
2679         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2680         `Lisp_Char_ID_Table'.
2681
2682 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2683
2684         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2685         `CHAR_ID_TABLE_P'.
2686
2687         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2688         `CHAR_ID_TABLE_P'.
2689
2690         * chartab.h (XCHAR_ID_TABLE): Deleted.
2691         (XSETCHAR_ID_TABLE): Deleted.
2692         (CHAR_ID_TABLE_P): Deleted.
2693
2694         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2695         `CHAR_ID_TABLE_P'.
2696         (Fget_composite_char): Likewise.
2697         (put_char_table): Likewise.
2698         (add_char_attribute_alist_mapper): Fixed.
2699         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2700         `CHAR_ID_TABLE_P'.
2701         (Fget_char_attribute): Likewise.
2702         (Fget_char_attribute): Likewise.
2703         (Fmap_char_attribute): Likewise.
2704
2705         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2706         `CHAR_ID_TABLE_P'.
2707         (encode_char_1): Likewise.
2708
2709 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2710
2711         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2712         `XCHAR_ID_TABLE'.
2713
2714         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2715         instead of `XCHAR_ID_TABLE'.
2716         (remove_char_ccs): Likewise.
2717
2718         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2719         `XCHAR_ID_TABLE'.
2720         (Fget_composite_char): Likewise.
2721         (Fchar_variants): Likewise.
2722         (put_char_table): Likewise.
2723         (add_char_attribute_alist_mapper): Likewise.
2724         (Fchar_attribute_alist): Likewise.
2725         (Fget_char_attribute): Likewise.
2726         (Fput_char_attribute): Likewise.
2727         (Fmap_char_attribute): Likewise.
2728         (Fmap_char_attribute): Likewise.
2729
2730         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2731         `XCHAR_ID_TABLE'.
2732         (encode_char_1): Likewise.
2733
2734 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2735
2736         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2737         `Lisp_Char_ID_Table'.
2738         (mark_char_id_table): Deleted.
2739         (print_char_id_table): Likewise.
2740         (char_id_table_equal): Likewise.
2741         (char_id_table_hash): Likewise.
2742         (char_id_table_description): Likewise.
2743         (char_id_table): Likewise.
2744         (make_char_id_table): Use `Fmake_char_table' and
2745         `fill_char_table'.
2746         (get_char_id_table): Use `Lisp_Char_Table' instead of
2747         `Lisp_Char_ID_Table'.
2748         (put_char_id_table): Likewise.
2749         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2750         `XCHAR_ID_TABLE'.
2751         (Fremove_char_attribute): Likewise.
2752         (syms_of_chartab): Don't define type `char-id-table'.
2753
2754         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2755         (char_id_table): Likewise.
2756         (GC_CHAR_ID_TABLE_P): Likewise.
2757         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2758         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2759         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2760         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2761         (get_char_id_table): Use `Lisp_Char_Table' instead of
2762         `Lisp_Char_ID_Table'.
2763         (put_char_id_table_0): Likewise.
2764         (put_char_id_table): Likewise.
2765
2766 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2767
2768         * chartab.h: Lisp_Byte_Table related codes are moved from
2769         chartab.h.
2770
2771         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2772
2773 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2774
2775         * chartab.h: Don't include "chartab.h".
2776         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2777         (Lisp_Char_ID_Table): Likewise.
2778         (char_id_table): Likewise.
2779         (XCHAR_ID_TABLE): Likewise.
2780         (XSETCHAR_ID_TABLE): Likewise.
2781         (CHAR_ID_TABLE_P): Likewise.
2782         (GC_CHAR_ID_TABLE_P): Likewise.
2783         (get_char_id_table): Likewise.
2784
2785         * char-ucs.h: Include "chartab.h".
2786         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2787         (Lisp_Char_ID_Table): Likewise.
2788         (char_id_table): Likewise.
2789         (XCHAR_ID_TABLE): Likewise.
2790         (XSETCHAR_ID_TABLE): Likewise.
2791         (CHAR_ID_TABLE_P): Likewise.
2792         (GC_CHAR_ID_TABLE_P): Likewise.
2793         (get_char_id_table): Likewise.
2794
2795 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2796
2797         * chartab.c (copy_uint8_byte_table): New function.
2798         (copy_uint16_byte_table): New function.
2799         (copy_byte_table): New function.
2800         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2801         characters to call.
2802         (map_over_uint16_byte_table): Likewise.
2803         (map_over_byte_table): Likewise.
2804         (get_byte_table): Move prototype to chartab.h.
2805         (put_byte_table): Likewise.
2806         (put_char_id_table_0): Moved to chartab.h.
2807         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2808         (char_table_entry_equal): Likewise.
2809         (char_table_entry_hash): Likewise.
2810         (char_table_entry_description): Likewise.
2811         (char_table_entry): Likewise.
2812         (make_char_table_entry): Likewise.
2813         (copy_char_table_entry): Likewise.
2814         (get_non_ascii_char_table_value): Likewise.
2815         (map_over_charset_ascii): Likewise.
2816         (map_over_charset_control_1): Likewise.
2817         (map_over_charset_row): Likewise.
2818         (map_over_other_charset): Likewise.
2819         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2820         (print_char_table): Likewise.
2821         (char_table_equal): Likewise.
2822         (char_table_hash): Likewise.
2823         (char_table_description): Likewise.
2824         (fill_char_table): Likewise.
2825         (Fcopy_char_table): Likewise.
2826         (get_char_table): Likewise.
2827         (Fget_range_char_table): Likewise.
2828         (put_char_table): Likewise.
2829         (map_char_table): Likewise.
2830         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2831         UTF-2000.
2832
2833 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2834
2835         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2836         `Vauto_fill_chars' in XEmacs UTF-2000.
2837
2838         * chartab.h (get_byte_table): New prototype [moved from
2839         chartab.c].
2840         (put_byte_table): Likewise [moved from chartab.c].
2841         (put_char_id_table_0): New inline function [moved from chartab.c].
2842         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2843         (Lisp_Char_Table_Entry): Likewise.
2844         (char_table_entry): Likewise.
2845         (XCHAR_TABLE_ENTRY): Likewise.
2846         (XSETCHAR_TABLE_ENTRY): Likewise.
2847         (CHAR_TABLE_ENTRYP): Likewise.
2848         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2849         (NUM_ASCII_CHARS): Likewise.
2850         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2851         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2852
2853 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2854
2855         * chartab.c (get_char_id_table): Change interface.
2856         (put_char_id_table_0): New function.
2857         (put_char_id_table): Change interface; new implementation.
2858         (Fget_composite_char): Modify for interface change of
2859         `get_char_id_table'.
2860         (Fchar_variants): Likewise.
2861         (add_char_attribute_alist_mapper): Likewise.
2862         (Fchar_attribute_alist): Likewise.
2863         (Fget_char_attribute): Likewise.
2864         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2865         as same as character as the first argument like `put-char-table';
2866         modify for interface change of `put_char_id_table'.
2867         (Fremove_char_attribute): Modify for interface change of
2868         `put_char_id_table'.
2869
2870 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2871
2872         * text-coding.c: Sync up with XEmacs 21.2.41.
2873         (COMPOSE_ADD_CHAR): Modify for interface change of
2874         `get_char_id_table'.
2875
2876         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2877         change of `put_char_id_table'.
2878         (remove_char_ccs): Likewise.
2879
2880         * chartab.h (put_char_id_table): Change interface.
2881
2882         * char-ucs.h (get_char_id_table): Change interface.
2883         (charset_code_point): Modify for interface change of
2884         `get_char_id_table'.
2885         (encode_char_1): Likewise.
2886
2887 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2888
2889         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2890         argument `ccs'.
2891         (map_over_uint16_byte_table): Likewise.
2892         (map_over_byte_table): Likewise.
2893         (map_char_id_table): Add new argument `range' like
2894         `map_char_table'.
2895         (Fmap_char_attribute): Add new argument `range' like
2896         `Fmap_char_table'.
2897
2898 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2899
2900         * chartab.c (map_over_uint8_byte_table): Change interface of
2901         mapping function to use struct chartab_range instead of Emchar.
2902         (map_over_uint16_byte_table): Likewise.
2903         (map_over_byte_table): Likewise.
2904         (map_char_id_table): Likewise.
2905         (struct slow_map_char_id_table_arg): Deleted.
2906         (slow_map_char_id_table_fun): Deleted.
2907         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2908         function `slow_map_char_table_fun' instead of struct
2909         `slow_map_char_id_table_arg' and function
2910         `slow_map_char_id_table_fun'.
2911
2912 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2913
2914         * mule-charset.c: Move char-it-table related codes to chartab.c.
2915         (Vutf_2000_version): Moved to chartab.c.
2916         (Fdefine_char): Likewise.
2917         (Ffind_char): Likewise.
2918         (syms_of_mule_charset): Move types `uint8-byte-table',
2919         `uint16-byte-table', `byte-table' and `char-id-table' to
2920         chartab.c; move functions `char_attribute_list,
2921         `find_char_attribute_table, `char_attribute_alist,
2922         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2923         `map_char_attribute, `define_char, `find_char, `char_variants and
2924         `get_composite_char to chartab.c; move symbols `=>ucs',
2925         `->decomposition', `compat', `isolated', `initial', `medial',
2926         `final', `vertical', `noBreak', `fraction', `super', `sub',
2927         `circle', `square', `wide', `narrow', `small' and `font' to
2928         chartab.c.
2929         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2930         setting codes for `Vcharacter_composition_table' and
2931         `Vcharacter_variant_table' to chartab.c.
2932         (complex_vars_of_mule_charset): Move setting code for
2933         `Vchar_attribute_hash_table' to chartab.c.
2934
2935         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2936         (make_char_id_table): New prototype.
2937         (put_char_id_table): Likewise.
2938         (Fget_char_attribute): Likewise.
2939
2940         * chartab.c: Move char-id-table related code from mule-charset.c.
2941         (Vutf_2000_version): Moved from mule-charset.c.
2942
2943         * char-ucs.h (Qucs): New external variable.
2944         (put_char_ccs_code_point): New prototype.
2945         (remove_char_ccs): Likewise.
2946
2947 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2948
2949         * mule-charset.c (Vcharset_ucs_jis): New variable.
2950         (Qucs_jis): Likewise.
2951         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2952         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2953
2954         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2955
2956 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2957
2958         * mule-charset.c (map_over_uint8_byte_table): New function.
2959         (map_over_uint16_byte_table): Likewise.
2960         (map_over_byte_table): Likewise.
2961         (map_char_id_table): Likewise.
2962         (slow_map_char_id_table_fun): Likewise.
2963         (Fmap_char_attribute): Likewise.
2964         (syms_of_mule_charset): Add new function `map-char-attribute'.
2965
2966 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2967
2968         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2969         (syms_of_mule_charset): Add new function `find-char'.
2970
2971 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2972
2973         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2974         XEmacs UTF-2000.
2975         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2976         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2977         XEmacs UTF-2000.
2978         (complex_vars_of_mule_charset): Add new coded-charset
2979         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2980         `ideograph-gt-pj-*'.
2981
2982         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2983
2984 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2985
2986         * mule-charset.c (encode_builtin_char_1): Purge codes about
2987         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2988         {MIN|MAX}_CHAR_HEBREW.
2989         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2990         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2991
2992         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2993         (MAX_CHAR_GREEK): Purged.
2994         (MIN_CHAR_CYRILLIC): Purged.
2995         (MAX_CHAR_CYRILLIC): Purged.
2996         (MIN_CHAR_HEBREW): Commented out.
2997         (MAX_CHAR_HEBREW): Likewise.
2998
2999 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3000
3001         * mule-charset.c (Qto_ucs): New variable.
3002         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3003         (Fdefine_char): Likewise.
3004         (syms_of_mule_charset): Add new symbol `=>ucs'.
3005
3006 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3007
3008         * mule-charset.c (Fdecode_char): Fixed.
3009
3010 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3011
3012         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3013         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3014         "tcvn5712-1".
3015
3016 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3017
3018         * mule-charset.c (Vcharset_ucs_big5): New variable.
3019         (Qucs_big5): Likewise.
3020         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3021         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3022
3023         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3024
3025 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3026
3027         * mule-charset.c (decode_builtin_char): Check Big5 code range
3028         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3029
3030 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3031
3032         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3033         (Qchinese_gb12345): Likewise.
3034         (Fdecode_builtin_char): Fixed.
3035         (syms_of_mule_charset): Add `chinese-gb12345'.
3036         (complex_vars_of_mule_charset): Add coded-charset
3037         `chinese-gb12345'.
3038
3039         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3040         (LEADING_BYTE_CHINESE_GB12345): New macro.
3041
3042 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3043
3044         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3045         and `latin-viscii-upper' for `latin-viscii'.
3046
3047 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3048
3049         * mule-charset.c (Fdecode_builtin_char): Comment out
3050         regularization code for ISO-IR GR representation.
3051
3052 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3053
3054         * mule-charset.c (decode_builtin_char): New function; renamed from
3055         `make_builtin_char'; return -1 instead of signal.
3056         (Fdecode_builtin_char): Use `decode_builtin_char'.
3057
3058         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3059         `make_builtin_char'.
3060         (DECODE_CHAR): Use `decode_builtin_char' instead of
3061         `make_builtin_char'; use mapping table of `chinese-big5' for
3062         `chinese-big5-{1,2}'.
3063
3064 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3065
3066         * text-coding.c (char_encode_big5): New function.
3067         (char_finish_big5): Likewise.
3068         (reset_encoding_stream): Use `char_encode_big5' and
3069         `char_finish_big5' for CODESYS_BIG5.
3070         (mule_encode): Don't use `encode_coding_big5'.
3071         (encode_coding_big5): Deleted.
3072
3073 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3074
3075         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3076         0x81- in XEmacs UTF-2000.
3077         (detect_coding_big5): Likewise.
3078
3079 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3080
3081         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3082         generate character-id if the CCS property does not have
3083         corresponding predefined character.
3084         (make_builtin_char): Return -1 if corresponding predefined
3085         character is not found.
3086         (Fdecode_char): Return nil if corresponding character is not
3087         found.
3088         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3089         don't map to builtin ucs space.
3090
3091 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3092
3093         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3094         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3095
3096 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3097
3098         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3099         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3100         (Qideograph_gt): Likewise.
3101         (Qideograph_gt_pj_{1..11}): Likewise.
3102         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3103         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3104         `ideograph-gt-pj-11'.
3105         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3106         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3107         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3108
3109         * char-ucs.h (LEADING_BYTE_GT): New macro.
3110         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3111         (MIN_CHAR_GT): Likewise.
3112         (MAX_CHAR_GT): Likewise.
3113
3114 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3115
3116         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3117         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3118
3119         * doprnt.c (unsigned_int_converters): Add `c'.
3120         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3121
3122         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3123         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3124         `MIN_CHAR_MOJIKYO'.
3125         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3126         (MAX_CHAR_MOJIKYO_0): New macro.
3127         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3128
3129 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3130
3131         * mule-charset.c (Fdefine_char): Delete cemented out code.
3132         (encode_builtin_char_1): Modify for new allocation of builtin
3133         Mojikyo characters.
3134
3135         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3136
3137 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3138
3139         * mule-charset.c (Vcharset_ucs_cns): New variable.
3140         (Qucs_cns): New variable.
3141         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3142         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3143
3144 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3145
3146         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3147
3148 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3149
3150         * search.c (search_buffer): Make `charset_base_code' as
3151         character-id >> 6 to eliminate the corresponding last byte in
3152         UTF-8 representation [I'm not sure it is right thing].
3153         (boyer_moore): Likewise.
3154
3155 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3156
3157         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3158         representation in MULE.
3159
3160 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3161
3162         * text-coding.c (Fmake_coding_system): Use
3163         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3164         `EXTERNAL_PROPERTY_LIST_LOOP'.
3165
3166 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3167
3168         * text-coding.c (decode_output_utf8_partial_char): New function.
3169         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3170
3171 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3172
3173         * text-coding.c (decode_coding_utf8): Output original byte
3174         sequence if it is broken; change order of conditions.
3175
3176         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3177         of conditions.
3178
3179         * mb-multibyte.h (BYTE_ASCII_P):
3180         Use bit ops for char-signedness safety.
3181         (BYTE_C0_P): Use bit ops for char-signedness safety.
3182         (BYTE_C1_P): Use bit ops for char-signedness safety.
3183
3184         * character.h: (XCHAR_OR_CHAR_INT):
3185         Always use inline function.
3186         Remove redundant type checking assert() - XINT will abort quite
3187         nicely.
3188
3189 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3190
3191         * text-coding.c: (Fencode_shift_jis_char):
3192         (Fencode_big5_char):
3193         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3194         Replace 0 with '\0' when working with bytes.
3195         Replace initial "(" with "\(" in docstrings.
3196
3197         (Fmake_coding_system):
3198         When type is ccl and value is vector, register it with a proper
3199         symbol.  And checks whether the given ccl program is valid.
3200         (mule_decode): When calling ccl_driver, if src indicates
3201         NULL pointer, set an empty string instead.
3202         (mule_encode): Likewise.
3203
3204         (detect_eol_type):
3205         (detect_coding_sjis):
3206         (decode_coding_sjis):
3207         (detect_coding_big5):
3208         (decode_coding_big5):
3209         (detect_coding_ucs4):
3210         (decode_coding_ucs4):
3211         (detect_coding_utf8):
3212         (decode_coding_utf8):
3213         (detect_coding_iso2022):
3214         (decode_coding_iso2022):
3215         (decode_coding_no_conversion):
3216         (mule_decode):
3217         Make all detecting and decoding functions take an Extbyte * arg.
3218         (text_encode_generic):
3219         (encode_coding_big5):
3220         (encode_coding_no_conversion):
3221         (mule_encode):
3222         Make all encoding functions take a Bufbyte * arg.
3223         Use size_t instead of unsigned int for memory sizes.
3224         Only cast to unsigned char whenever dereferencing Extbyte *.
3225
3226         (struct lrecord_description fcd_description_1): Use countof.
3227         (complex_vars_of_file_coding):
3228         Use countof instead of sizeof.
3229         Use CHECK_NATNUM instead of CHECK_INT.
3230
3231 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3232
3233         * mule-charset.c (Fget_char_attribute): Add new optional argument
3234         `default-value'.
3235         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3236         (remove_char_ccs): Likewise.
3237
3238 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3239
3240         * text-coding.c (char_encode_shift_jis): New implementation in
3241         UTF-2000.
3242         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3243         ...)'.
3244
3245         * mule-charset.c (Vcharset_chinese_big5): New variable in
3246         UTF-2000.
3247         (Qchinese_big5): New variable in UTF-2000.
3248         (BIG5_SAME_ROW): New macro in UTF-2000.
3249         (make_builtin_char): Use builtin characters of
3250         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3251         characters of `Vcharset_chinese_big5'.
3252         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3253         (complex_vars_of_mule_charset): Add new coded-charset
3254         `chinese-big5' in UTF-2000.
3255
3256         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3257         (Vcharset_chinese_big5): New external variable declaration.
3258         (Vcharset_japanese_jisx0208_1990): Likewise.
3259
3260 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3261
3262         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3263         function.
3264         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3265
3266 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3267
3268         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3269         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3270         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3271         `mojikyo-pj-*'.
3272
3273 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3274
3275         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3276
3277 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3278
3279         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3280         to 0.17.
3281
3282 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3283
3284         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3285         for `CHARSET_BY_ATTRIBUTES'.
3286         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3287         `CHARSET_BY_ATTRIBUTES'.
3288
3289         * text-coding.c (struct decoding_stream): Rename member `CH' to
3290         `CPOS'.
3291         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3292         (decode_coding_sjis): Likewise.
3293         (decode_coding_big5): Likewise.
3294         (decode_coding_ucs4): Likewise.
3295         (decode_coding_utf8): Likewise.
3296         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3297         `CHARSET_BY_ATTRIBUTES'.
3298         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3299         `str->counter'; decode 3, 4 bytes sets.
3300         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3301         sets.
3302         (decode_coding_no_conversion): Use `str->cpos' instead of
3303         `str->ch'.
3304
3305         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3306         (Qmojikyo_2022_1): New variable.
3307         (make_charset): Don't use `CHARSET_TYPE_*'.
3308         (range_charset_code_point): Support coded-charset
3309         `mojikyo-2022-1'.
3310         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3311         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3312         `CHARSET_BY_ATTRIBUTES'.
3313         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3314         `CHARSET_BY_ATTRIBUTES'.
3315         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3316         (complex_vars_of_mule_charset): Add new coded-charset
3317         `mojikyo-2022-1'.
3318
3319         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3320         interface; changed to inline function.
3321
3322         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3323         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3324         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3325         (CHARSET_TYPE_94): Deleted.
3326         (CHARSET_TYPE_94X94): Deleted.
3327         (CHARSET_TYPE_96): Deleted.
3328         (CHARSET_TYPE_96X96): Deleted.
3329         (CHARSET_TYPE_128): Deleted.
3330         (CHARSET_TYPE_128X128): Deleted.
3331         (CHARSET_TYPE_256): Deleted.
3332         (CHARSET_TYPE_256X256): Deleted.
3333         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3334         to inline function.
3335         (DECODE_MOJIKYO_2022): New inline function.
3336         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3337         `Vcharset_mojikyo_2022_1'.
3338
3339 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3340
3341         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3342         instead of `EQ'.
3343         (put_byte_table): Likewise.
3344         (char_id_table_equal): Use `get_byte_table' [new implementation].
3345
3346 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3347
3348         * mule-charset.c: Include <limits.h> in UTF-2000.
3349         (BT_UINT8_MIN): New macro in UTF-2000.
3350         (BT_UINT8_MAX): New macro in UTF-2000.
3351         (BT_UINT8_t): New macro in UTF-2000.
3352         (BT_UINT8_nil): New macro in UTF-2000.
3353         (BT_UINT8_unbound): New macro in UTF-2000.
3354         (INT_UINT8_P): New inline function in UTF-2000.
3355         (UINT8_VALUE_P): New inline function in UTF-2000.
3356         (UINT8_ENCODE): New inline function in UTF-2000.
3357         (UINT8_DECODE): New inline function in UTF-2000.
3358         (mark_uint8_byte_table): New function in UTF-2000.
3359         (print_uint8_byte_table): New function in UTF-2000.
3360         (uint8_byte_table_equal): New function in UTF-2000.
3361         (uint8_byte_table_hash): New function in UTF-2000.
3362         (make_uint8_byte_table): New function in UTF-2000.
3363         (uint8_byte_table_same_value_p): New function in UTF-2000.
3364         (BT_UINT16_MIN): New macro in UTF-2000.
3365         (BT_UINT16_MAX): New macro in UTF-2000.
3366         (BT_UINT16_t): New macro in UTF-2000.
3367         (BT_UINT16_nil): New macro in UTF-2000.
3368         (BT_UINT16_unbound): New macro in UTF-2000.
3369         (INT_UINT16_P): New inline function in UTF-2000.
3370         (UINT16_VALUE_P): New inline function in UTF-2000.
3371         (UINT16_ENCODE): New inline function in UTF-2000.
3372         (UINT16_DECODE): New inline function in UTF-2000.
3373         (UINT8_TO_UINT16): New inline function in UTF-2000.
3374         (mark_uint16_byte_table): New function in UTF-2000.
3375         (print_uint16_byte_table): New function in UTF-2000.
3376         (uint16_byte_table_equal): New function in UTF-2000.
3377         (uint16_byte_table_hash): New function in UTF-2000.
3378         (make_uint16_byte_table): New function in UTF-2000.
3379         (uint16_byte_table_same_value_p): New function in UTF-2000.
3380         (print_byte_table): New function in UTF-2000.
3381         (byte-table): Use `print_byte_table' as printer.
3382         (make_byte_table): Delete second argument `older'.
3383         (byte_table_same_value_p): New function in UTF-2000.
3384         (copy_byte_table): Deleted.
3385         (get_byte_table): New function in UTF-2000.
3386         (put_byte_table): New function in UTF-2000.
3387         (print_char_id_table): New function in UTF-2000.
3388         (char-id-table): Use `print_char_id_table' as printer.
3389         (make_char_id_table): Delete second argument `older'.
3390         (get_char_id_table): Use `get_byte_table [new implementation].
3391         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3392         implementation].
3393         (Ffind_char_attribute_table): New function in UTF-2000.
3394         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3395         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3396         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3397         (syms_of_mule_charset): Add new function
3398         `find-char-attribute-table' in UTF-2000.
3399
3400         * lrecord.h (enum lrecord_type): Add
3401         `lrecord_type_uint16_byte_table' and
3402         `lrecord_type_uint8_byte_table'.
3403
3404         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3405         (Lisp_Uint8_Byte_Table): New type.
3406         (XUINT8_BYTE_TABLE): New macro.
3407         (XSETUINT8_BYTE_TABLE): New macro.
3408         (UINT8_BYTE_TABLE_P): New macro.
3409         (GC_UINT8_BYTE_TABLE_P): New macro.
3410         (struct Lisp_Uint16_Byte_Table): New structure.
3411         (Lisp_Uint16_Byte_Table): New type.
3412         (XUINT16_BYTE_TABLE): New macro.
3413         (XSETUINT16_BYTE_TABLE): New macro.
3414         (UINT16_BYTE_TABLE_P): New macro.
3415         (GC_UINT16_BYTE_TABLE_P): New macro.
3416
3417 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3418
3419         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3420         (Vcharacter_ideographic_strokes_table): Deleted.
3421         (Vcharacter_total_strokes_table): Deleted.
3422         (Vcharacter_morohashi_daikanwa_table): Deleted.
3423         (Vcharacter_decomposition_table): Deleted.
3424         (Qname): Deleted because it is duplicated.
3425         (Qideographic_radical): Deleted.
3426         (Qideographic_strokes): Deleted.
3427         (Qtotal_strokes): Deleted.
3428         (Qmorohashi_daikanwa): Deleted.
3429         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3430         `ideographic-radical', `ideographic-strokes', `total-strokes',
3431         `morohashi-daikanwa' and `->decomposition'.
3432         (Fget_char_attribute): Likewise.
3433         (Fput_char_attribute): Likewise; use `make-vector' instead of
3434         `make_older_vector' for `->decomposition' value.
3435         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3436         `ideograph-daikanwa'.
3437         (syms_of_mule_charset): Delete builtin symbols `name',
3438         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3439         `morohashi-daikanwa'.
3440         (vars_of_mule_charset): Don't setup
3441         `Vcharacter_ideographic_radical_table',
3442         `Vcharacter_ideographic_strokes_table',
3443         `Vcharacter_total_strokes_table',
3444         `Vcharacter_morohashi_daikanwa_table' and
3445         `Vcharacter_decomposition_table'.
3446
3447 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3448
3449         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3450         `make_older_vector', `make_vector_newer_1' and
3451         `make_vector_newer'.
3452
3453         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3454         `make_older_vector' and `make_vector_newer'.
3455
3456         * config.h.in (HAVE_GGC): New macro.
3457
3458 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3459
3460         * mule-charset.c (struct char_attribute_list_closure): New
3461         structure in UTF-2000.
3462         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3463         (Fchar_attribute_list): Likewise.
3464         (Fset_charset_mapping_table): Use `make_vector_newer'.
3465         (Fdecode_builtin_char): New function in UTF-2000.
3466         (syms_of_mule_charset): Add new function `char-attribute-list' and
3467         `decode-builtin-char' in UTF-2000.
3468
3469         * lisp.h (make_vector_newer): New prototype.
3470
3471         * alloc.c (make_vector_newer_1): New function.
3472         (make_vector_newer): New function.
3473
3474 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3475
3476         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3477         50100)'.
3478
3479 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3480
3481         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3482         (Vcharacter_attribute_table): Deleted.
3483         (Vcharacter_name_table): Deleted.
3484         (put_char_attribute): Deleted.
3485         (remove_char_attribute): Deleted.
3486         (struct char_attribute_alist_closure): New structure.
3487         (add_char_attribute_alist_mapper): New function.
3488         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3489         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3490         (Fget_char_attribute): Likewise.
3491         (Fput_char_attribute): Likewise.
3492         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3493         of `remove_char_attribute'.
3494         (Fdefine_char): Return character.
3495         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3496         and `Vcharacter_name_table'.
3497         (complex_vars_of_mule_charset): Likewise
3498         `Vchar_attribute_hash_table'.
3499
3500 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3501
3502         * character.h (CHARC_CHARSET): New macro.
3503         (CHARC_CHARSET_ID): New macro.
3504         (CHARC_CODE_POINT): New macro.
3505         (CHARC_COLUMNS): New macro.
3506         (CHARC_TO_CHAR): New inline function.
3507         (CHARC_EQ): New inline function.
3508         (CHARC_ASCII_EQ): New inline function.
3509         (CHARC_IS_SPACE): New inline function.
3510         (ASCII_TO_CHARC): New inline function.
3511
3512         * char-ucs.h (encode_char_2): Deleted.
3513         (ENCODE_CHAR): Use `encode_char_1' again.
3514         (breakup_char_1): Likewise.
3515         (CHAR_TO_CHARC): New inline function.
3516
3517         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3518
3519 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3520
3521         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3522         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3523         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3524         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3525         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3526         `CHARC_IS_SPACE'.
3527         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3528
3529         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3530         `CHARC_CODE_POINT'.
3531         (x_output_display_block): Use `CHARC_CHARSET' and
3532         `CHARC_ASCII_EQ'.
3533
3534         * redisplay-tty.c (tty_output_display_block): Use
3535         `CHARC_ASCII_EQ'.
3536         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3537
3538         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3539
3540         * insdel.c (find_charsets_in_charc_string): Use
3541         `CHARC_CHARSET_ID'.
3542         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3543         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3544         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3545         (convert_charc_string_into_malloced_string): Likewise.
3546
3547 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3548
3549         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3550         instead of <Emchar_dynarr *> for buf; use
3551         `convert_bufbyte_string_into_charc_dynarr' instead of
3552         `convert_bufbyte_string_into_emchar_dynarr'; use
3553         `find_charsets_in_charc_string' instead of
3554         `find_charsets_in_emchar_string'.
3555
3556         * redisplay.h:
3557         - Include "character.h".
3558         (struct rune): New member `cglyph'; delete member `chr'.
3559
3560         * redisplay.c (redisplay_text_width_charc_string): New function;
3561         delete `redisplay_text_width_emchar_string'.
3562         (rtw_charc_dynarr): New variable; renamed from
3563         `rtw_emchar_dynarr'.
3564         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3565         `rtw_emchar_dynarr'; use
3566         `convert_bufbyte_string_into_charc_dynarr' instead of
3567         `convert_bufbyte_string_into_emchar_dynarr'; use
3568         `redisplay_text_width_charc_string' instead of
3569         `redisplay_text_width_emchar_string'.
3570         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3571         instead of `rtw_emchar_dynarr'; use
3572         `convert_bufbyte_string_into_charc_dynarr' instead of
3573         `convert_bufbyte_string_into_emchar_dynarr'.
3574         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3575         `redisplay_text_width_charc_string' instead of
3576         `redisplay_text_width_emchar_string'.
3577         (create_text_block): Modify for <struct rune> change.
3578         (generate_formatted_string_db): Likewise.
3579         (create_string_text_block): Likewise.
3580         (pixel_to_glyph_translation): Likewise.
3581
3582         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3583         instead of <const Emchar *>.
3584         (x_text_width): Likewise.
3585         (x_output_display_block): Use <Charc_dynarr *> instead
3586         <Emchar_dynarr *>; modify for <structure rune> change.
3587         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3588         *>.
3589
3590         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3591         <const Emchar *>; use `charc_string_displayed_columns' instead of
3592         `emchar_string_displayed_columns'.
3593         (tty_output_display_block): Use <Charc_dynarr *> instead of
3594         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3595         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3596         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3597         `tty_output_emchar_dynarr_dynarr'.
3598         (tty_output_charc_dynarr): New function; delete
3599         `tty_output_charc_dynarr'.
3600
3601         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3602         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3603         <Emchar_dynarr *> for buf; use
3604         `convert_bufbyte_string_into_charc_dynarr' instead of
3605         `convert_bufbyte_string_into_emchar_dynarr'.
3606
3607         * frame.c (title_string_charc_dynarr): New variable; renamed from
3608         `title_string_emchar_dynarr'.
3609         (generate_title_string): Use `title_string_charc_dynarr' instead
3610         of `title_string_emchar_dynarr'; use
3611         `convert_charc_string_into_malloced_string' instead of
3612         `convert_emchar_string_into_malloced_string'.
3613         (init_frame): Use `title_string_charc_dynarr' instead of
3614         `title_string_emchar_dynarr'.
3615
3616         * console.h:
3617         - Include "character.h".
3618         (struct console_methods): Use <const Charc *> instead of <const
3619         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3620         <Emchar_dynarr *> in output_string_method.
3621
3622         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3623         <Emchar_dynarr *>.
3624
3625         * console-stream.c (stream_text_width): Use <const Charc *>
3626         instead of <const Emchar *>.
3627
3628         * character.h (Charc_dynarr): New type.
3629
3630         * char-ucs.h (structure Charc): New structure; define new type
3631         `Charc'.
3632
3633         * char-lb.h (DECODE_CHAR): New inline function.
3634         (encode_char_1): New inline function.
3635         (ENCODE_CHAR): New macro.
3636         (structure Charc): New structure; define new type `Charc'.
3637
3638         * char-1byte.h (Vcharset_control_1): New macro.
3639         (Vcharset_latin_iso8859_1): New macro.
3640         (DECODE_CHAR): New inline function.
3641         (encode_char_1): New inline function.
3642         (ENCODE_CHAR): New macro.
3643         (structure Charc): New structure; define new type `Charc'.
3644
3645         * insdel.c (find_charsets_in_charc_string): New function; delete
3646         `find_charsets_in_emchar_string'.
3647         (charc_string_displayed_columns): New function; delete
3648         `emchar_string_displayed_columns'.
3649         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3650         `convert_bufbyte_string_into_emchar_dynarr'.
3651         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3652         `convert_charc_string_into_bufbyte_dynarr'.
3653         (convert_charc_string_into_malloced_string): New function; delete
3654         `convert_charc_string_into_malloced_string'.
3655
3656         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3657         `find_charsets_in_emchar_string'.
3658         (charc_string_displayed_columns): New prototype; delete
3659         `emchar_string_displayed_columns'.
3660         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3661         `convert_charc_string_into_bufbyte_dynarr'.
3662         (convert_charc_string_into_malloced_string): New prototype; delete
3663         `convert_charc_string_into_malloced_string'.
3664
3665 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3666
3667         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3668
3669 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3670
3671         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3672
3673         * char-ucs.h: Use <short> for <Charset_ID>.
3674
3675         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3676         <Charset_ID>.
3677
3678 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3679
3680         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3681         to 0.16.
3682
3683 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3684
3685         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3686         variable.
3687         (Qmorohashi_daikanwa): New variable.
3688         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3689         for `morohashi-daikanwa' attribute.
3690         (Fget_char_attribute): Likewise.
3691         (Fput_char_attribute): Likewise.
3692         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3693         has the same value of `ideograph-daikanwa'.
3694         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3695         (vars_of_mule_charset): Setup
3696         `Vcharacter_morohashi_daikanwa_table'.
3697
3698 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3699
3700         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3701         attributes.
3702         (add_charset_to_list_mapper): Add `key' instead of
3703         `XCHARSET_NAME (value)' to return aliases.
3704
3705 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3706
3707         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3708         variable.
3709         (Vcharacter_ideographic_strokes_table): New variable.
3710         (Qideographic_radical): New variable.
3711         (Qideographic_strokes): New variable.
3712         (Fchar_attribute_alist): Use
3713         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3714         attribute; use `Vcharacter_ideographic_strokes_table' for
3715         `ideographic-strokes' attribute.
3716         (Fget_char_attribute): Likewise.
3717         (Fput_char_attribute): Likewise.
3718         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3719         `ideographic-strokes'.
3720         (vars_of_mule_charset): Setup
3721         `Vcharacter_ideographic_radical_table' and
3722         `Vcharacter_ideographic_strokes_table'.
3723
3724 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3725
3726         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3727         (Qtotal_strokes): New variable.
3728         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3729         `total-strokes' attribute.
3730         (Fget_char_attribute): Likewise.
3731         (Fput_char_attribute): Likewise.
3732         (syms_of_mule_charset): Add new symbol `total-strokes'.
3733         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3734
3735 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3736
3737         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3738         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3739         are found.
3740         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3741         `->decomposition' attribute.
3742         (Fput_char_attribute): Likewise.
3743         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3744
3745 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3746
3747         * mule-charset.c (decoding_table_check_elements): New function.
3748         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3749
3750 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3751
3752         * mule-charset.c (Fset_charset_mapping_table): Use
3753         `put_char_ccs_code_point'.
3754
3755 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3756
3757         * mule-charset.c (decoding_table_put_char): New inline function.
3758         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3759
3760 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3761
3762         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3763         (XCHARSET_BYTE_SIZE): New macro.
3764         (decoding_table_remove_char): New inline function.
3765         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3766         `decoding_table_remove_char'.
3767         (remove_char_ccs): Use `decoding_table_remove_char'.
3768         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3769
3770 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3771
3772         * mule-charset.c (Vcharacter_name_table): New variable.
3773         (Qname): New variable.
3774         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3775         attribute.
3776         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3777         `Vcharacter_name_table' for `name' attribute.
3778         (Fremove_char_attribute): Use function `remove_char_ccs'.
3779         (put_char_ccs_code_point): New function.
3780         (remove_char_ccs): New function.
3781         (syms_of_mule_charset): Add new symbol `name'.
3782         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3783
3784 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3785
3786         * mule-charset.c (make_byte_table): Add new argument `older'.
3787         (make_char_id_table): Likewise.
3788         (copy_char_id_table): Comment out because it is not used.
3789         (put_char_id_table): Modify for `make_byte_table'.
3790         (Fput_char_attribute): Make encoding_table as older object;
3791         inherit older bit of `Vcharacter_composition_table'.
3792         (mark_charset): Don't mark `cs->encoding_table'.
3793         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3794         normal object; make `Vcharacter_composition_table' as an older
3795         object; delete staticpro for `Vcharacter_composition_table'; make
3796         `Vcharacter_variant_table' as a normal object.
3797
3798         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3799         (mark_object): Don't check older object in UTF-2000.
3800
3801         * lrecord.h (struct lrecord_header): Add new member `older' in
3802         UTF-2000.
3803         (set_lheader_implementation): Setup `SLI_header->older' in
3804         UTF-2000.
3805         (set_lheader_older_implementation): New macro in UTF-2000.
3806         (OLDER_RECORD_P): New macro in UTF-2000.
3807         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3808         (alloc_older_lcrecord): New prototype in UTF-2000.
3809         (alloc_older_lcrecord_type): New macro in UTF-2000.
3810
3811 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3812
3813         * mule-charset.c (byte_table_description): Use
3814         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3815         (char_id_table_description): Delete bogus `, 1'.
3816         (Fget_char_attribute): Refer encoding_table of each coded-charset
3817         to get value of coded-charset attribute of a character.
3818         (Fput_char_attribute): Use `make_older_vector' instead of
3819         `make_vector'; use encoding_table of each coded-charset to store
3820         value of coded-charset attribute of a character.
3821         (Fremove_char_attribute): Use encoding_table of each coded-charset
3822         to store value of coded-charset attribute of a character.
3823         (mark_charset): Mark `cs->encoding_table'; don't mark
3824         `cs->decoding_table'.
3825         (charset_description): Add description of new member
3826         `encoding_table'.
3827         (make_charset): Initialize `encoding_table'.
3828
3829         * char-ucs.h (struct Lisp_Charset): Add new member
3830         `encoding_table'.
3831         (CHARSET_ENCODING_TABLE): New macro.
3832         (XCHARSET_ENCODING_TABLE): New macro.
3833         (charset_code_point): New implementation.
3834         (encode_char_1): Likewise.
3835
3836         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3837         (disksave_object_finalization_1): Call finalizers of
3838         `all_older_lcrecords' in UTF-2000.
3839         (make_older_vector): New function in UTF-2000.
3840         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3841         UTF-2000.
3842
3843         * lisp.h (make_older_vector): New prototype in UTF-2000.
3844
3845 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3846
3847         * lrecord.h (enum lrecord_type): Rename
3848         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3849
3850         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3851         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3852         `get_char_code_table'.
3853
3854         * mule-charset.c (mark_char_id_table): Renamed from
3855         `mark_char_code_table'.
3856         (char_id_table_equal): Renamed from `char_code_table_equal'.
3857         (char_id_table_hash): Renamed from `char_code_table_hash'.
3858         (make_char_id_table): Renamed from `make_char_code_table'.
3859         (copy_char_id_table): Renamed from `copy_char_code_table'.
3860         (get_char_id_table): Renamed from `get_char_code_table'.
3861         (put_char_id_table): Renamed from `put_char_code_table'.
3862         (to_char_id): Renamed from `to_char_code'.
3863
3864         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3865         `Lisp_Char_Code_Table'.
3866         (char_id_table): Renamed from `char_code_table'.
3867         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3868         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3869         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3870         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3871         (get_char_id_table): Renamed from `get_char_code_table'.
3872
3873 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3874
3875         * lrecord.h (enum lrecord_type): Rename
3876         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3877
3878         * mule-charset.c (mark_byte_table): Renamed from
3879         `mark_char_byte_table'.
3880         (byte_table_equal): Renamed from `char_byte_table_equal'.
3881         (byte_table_hash): Renamed from `byte_table_hash'.
3882         (make_byte_table): Renamed from `make_byte_table'.
3883         (copy_byte_table): Renamed from `copy_char_byte_table'.
3884
3885         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3886         `Lisp_Char_Byte_Table'.
3887         (byte_table): Renamed from `char_byte_table'.
3888         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3889         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3890         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3891         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3892
3893 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3894
3895         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3896         (dfc_convert_to_internal_format): Likewise.
3897         
3898         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3899         * text-coding.c (Fcoding_system_alias_p): New function.
3900         * text-coding.c (Fcoding_system_aliasee): New function.
3901         * text-coding.c (append_suffix_to_symbol): New function.
3902         * text-coding.c (dangling_coding_system_alias_p): New function.
3903         * text-coding.c (Ffind_coding_system):
3904         * text-coding.c (Fcopy_coding_system):
3905         * text-coding.c (encode_coding_no_conversion):
3906         * text-coding.c (syms_of_file_coding):
3907         * text-coding.c (vars_of_file_coding):
3908         Rewrite coding system alias code.
3909         Allow nested aliases, like symbolic links.
3910         Allow redefinition of coding system aliases.
3911         Prevent existence of dangling coding system aliases.
3912         Eliminate convert_to_external_format.
3913         Eliminate convert_to_internal_format.
3914         
3915         * text-coding.c: Change enum eol_type to eol_type_t.
3916
3917 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3918
3919         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3920         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3921
3922         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3923         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3924
3925 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3926
3927         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3928         `ideograph-daikanwa'.
3929
3930         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3931         (Vcharset_ucs_bmp): Likewise.
3932         (Vcharset_mojikyo): Add new extern variable definition.
3933         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3934         (Vcharset_latin_iso8859_3): Likewise.
3935         (Vcharset_latin_iso8859_4): Likewise.
3936         (Vcharset_latin_iso8859_9): Likewise.
3937         (Vcharset_latin_viscii_lower): Likewise.
3938         (Vcharset_latin_viscii_upper): Likewise.
3939         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3940         `mojikyo' code-point is used to decode.
3941         (encode_char_2): New function [to convert `mojikyo' code-point to
3942         Mojikyo font encoding].
3943         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3944         (breakup_char_1): Likewise.
3945         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3946
3947 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3948
3949         * text-coding.c (Fmake_coding_system): Add document about
3950         `disable-composition' property.
3951
3952 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3953
3954         * text-coding.c (Qdisable_composition): New variable; delete
3955         `Qcomposite'.
3956         (Fmake_coding_system): Add new property `disable-composite';
3957         delete property `composite'.
3958         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3959         instead of `!CODING_SYSTEM_COMPOSITE'.
3960         (syms_of_file_coding): Add new symbol `disable-composition';
3961         delete symbol `composite'.
3962
3963         * file-coding.h (struct Lisp_Coding_System): Add
3964         `disable_composition'; delete `enable_composition'.
3965         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3966         `CODING_SYSTEM_COMPOSITE'.
3967         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3968         `XCODING_SYSTEM_COMPOSITE'.
3969
3970 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3971
3972         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3973         to 0.15.
3974
3975 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3976
3977         * text-coding.c (Qcomposite): New variable.
3978         (Fmake_coding_system): Add new property `composite'.
3979         (struct decoding_stream): Add `combined_char_count',
3980         `combined_chars' and `combining_table' in UTF-2000.
3981         (COMPOSE_FLUSH_CHARS): New macro.
3982         (COMPOSE_ADD_CHAR): New macro.
3983         (reset_decoding_stream): Reset `str->combined_char_count' and
3984         `str->combining_table' in UTF-2000.
3985         (decode_coding_iso2022): Modify for character-decomposition.
3986         (syms_of_file_coding): Add new symbol `composite'.
3987
3988 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3989
3990         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3991         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3992         of `Vcharacter_composition_table' if `->decomposition' property
3993         has only 1 element.
3994         (Qlatin_tcvn5712): New variable.
3995         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3996         (complex_vars_of_mule_charset): Add new coded-charset
3997         `latin-tcvn5712'.
3998
3999         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4000
4001 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4002
4003         * file-coding.h (struct Lisp_Coding_System): Add
4004         `enable_composition'.
4005         (CODING_SYSTEM_COMPOSITE): New macro.
4006         (XCODING_SYSTEM_COMPOSITE): New macro.
4007
4008 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4009
4010         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4011
4012 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4013
4014         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4015         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4016
4017 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4018
4019         * mule-charset.c (Vcharset_mojikyo): New variable.
4020         (Fdefine_char): Don't use coded-charset which does not have
4021         non-builtin character range to allocate character-id.
4022         (Qmojikyo): New variable.
4023         (syms_of_mule_charset): Add new symbol `mojikyo'.
4024         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4025
4026         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4027         (LEADING_BYTE_MOJIKYO): New macro.
4028         (MIN_CHAR_MOJIKYO): New macro.
4029         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4030         (MAX_CHAR_MOJIKYO): New macro.
4031
4032 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4033
4034         * mule-charset.c (remove_char_attribute): Fixed.
4035
4036 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4037
4038         * mule-charset.c (remove_char_attribute): New function.
4039         (Fremove_char_attribute): New function.
4040         (encode_builtin_char_1): Comment out builtin-support for
4041         greek-iso8859-7 and cyrillic-iso8859-5.
4042         (Fdecode_char): Check `code' is an integer.
4043         (syms_of_mule_charset): Add `remove-char-attribute'.
4044         (MIN_CHAR_GREEK): Deleted.
4045         (MAX_CHAR_GREEK): Likewise.
4046         (MIN_CHAR_CYRILLIC): Likewise.
4047         (MAX_CHAR_CYRILLIC): Likewise.
4048         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4049         MAX_CHAR_GREEK for `greek-iso8859-7'.
4050
4051         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4052         (MAX_CHAR_GREEK): Likewise.
4053         (MIN_CHAR_CYRILLIC): Likewise.
4054         (MAX_CHAR_CYRILLIC): Likewise.
4055
4056 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4057
4058         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4059         format is used without `ucs' property.
4060         (Fdecode_char): Fix problem with GR representation.
4061         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4062         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4063
4064 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4065
4066         * mule-charset.c (make_builtin_char): New function.
4067         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4068         (Fset_charset_mapping_table): Modify for new representation of
4069         code-point.
4070         (Fdecode_char): New function.
4071         (syms_of_mule_charset): Add new builtin function `decode-char' in
4072         UTF-2000.
4073
4074         * char-ucs.h (make_builtin_char): New prototype.
4075         (DECODE_CHAR): New inline function.
4076         (MAKE_CHAR): Use `DECODE_CHAR'.
4077
4078 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4079
4080         * text-coding.c (parse_charset_conversion_specs): Use
4081         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4082         `XCHARSET_TYPE'.
4083         (iso2022_designate): Likewise.
4084
4085         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4086         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4087
4088         * mule-charset.c (Vcharset_ucs): New variable.
4089         (print_charset): Change design; use `CHARSET_CHARS' and
4090         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4091         (make_charset): Change signature to specify `chars' and
4092         `dimension' instead of `type'.
4093         (range_charset_code_point): Modify for 256^n-set.
4094         (encode_builtin_char_1): Encode as `ucs' in default.
4095         (Fmake_charset): Modify for `make_charset'.
4096         (Fmake_reverse_direction_charset): Likewise.
4097         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4098         UTF-2000.
4099         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4100         for `make_charset'.
4101
4102         * char-ucs.h (Vcharset_ucs): New variable.
4103         (LEADING_BYTE_UCS): New macro.
4104         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4105         and `chars' to `unsigned short' from `unsigned int'.
4106         (CHARSET_TYPE): Deleted.
4107         (XCHARSET_TYPE): Deleted.
4108
4109 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4110
4111         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4112
4113         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4114         (ENCODE_CHAR): New macro.
4115
4116 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4117
4118         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4119         to 0.14 (Kawachi-Katakami).
4120
4121 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4122
4123         * text-coding.c (char_encode_shift_jis): Modify for
4124         `charset_code_point'.
4125         (char_encode_iso2022): Likewise.
4126
4127         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4128         (integer) instead of list of <Lisp_Object>s (integers) as the
4129         format of code-point of a coded-charset.
4130         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4131         (encode_builtin_char_1): New function; delete
4132         `split_builtin_char'.
4133         (charset_code_point): Return <int> instead of <Lisp_Object>.
4134         (Fsplit_char): Don't use `SPLIT_CHAR'.
4135
4136         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4137         prototype for `split_builtin_char'.
4138         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4139         (charset_code_point): Likewise.
4140         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4141         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4142
4143 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4144
4145         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4146         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4147
4148 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4149
4150         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4151
4152         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4153         (MAX_CHAR_OBS_94x94): Deleted.
4154
4155 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4156
4157         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4158
4159         * char-ucs.h (MAX_CHAR_BMP): New macro.
4160
4161 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4162
4163         * text-coding.c: Sync with r21-2-24.
4164
4165 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4166
4167         * file-coding.c: Modify for UTF-2000.
4168
4169 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4170
4171         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4172         to 0.13 (Takaida).
4173
4174 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4175
4176         * mule-charset.c (split_builtin_char): Delete builtin support for
4177         `katakana-jisx0201'.
4178         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4179         BMP area in builtin representation.
4180
4181         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4182         `Vcharset_katakana_jisx0201'.
4183
4184 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4185
4186         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4187         (Qisolated): New variable.
4188         (Qinitial): New variable.
4189         (Qmedial): New variable.
4190         (Qfinal): New variable.
4191         (Qvertical): New variable.
4192         (Qsmall): New variable.
4193         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4194         `Qvertical' and `Qsmall'.
4195         (Qmojikyo_pj_[1 .. 21]): New variable.
4196         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4197         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4198         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4199         .. 21]'.
4200
4201 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4202
4203         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4204         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4205         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4206
4207 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4208
4209         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4210         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4211         BMP.
4212         (Qjapanese_jisx0208_1990): New variable.
4213         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4214         (complex_vars_of_mule_charset): Add new coded-charset
4215         `japanese-jisx0208-1990'.
4216
4217         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4218         (MIN_CHAR_JIS_X0208_1990): New macro.
4219         (MAX_CHAR_JIS_X0208_1990): New macro.
4220
4221 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4222
4223         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4224         coded-charset is not found.
4225
4226 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4227
4228         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4229         (Fdefine_char): Use `Fmake_char'.
4230
4231 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4232
4233         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4234         (Vcharset_hiragana_jisx0208): Deleted.
4235         (Vcharset_katakana_jisx0208): Deleted.
4236         (Qideograph_daikanwa): New variable.
4237         (Qhiragana_jisx0208): Deleted.
4238         (Qkatakana_jisx0208): Deleted.
4239         (split_builtin_char): Split `ideograph-daikanwa'.
4240         (Fsplit_char): New implementation for UTF-2000.
4241         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4242         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4243         (complex_vars_of_mule_charset): Add new coded-charset
4244         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4245         `katakana-jisx0208'.
4246
4247         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4248         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4249         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4250         (MIN_CHAR_DAIKANWA): New macro.
4251         (MAX_CHAR_DAIKANWA): New macro.
4252
4253 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4254
4255         * data.c (Fstring_to_number): Don't recognize floating point if
4256         base is not 10.
4257
4258 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4259
4260         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4261
4262 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4263
4264         * mule-charset.c (Qsquare): New variable.
4265         (to_char_code): Add `Qsquare'.
4266         (syms_of_mule_charset): Add new symbol `square'.
4267
4268 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4269
4270         * mule-charset.c (Qcircle): New variable.
4271         (to_char_code): Add `Qcircle'.
4272         (syms_of_mule_charset): Add new symbol `circle'.
4273
4274 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4275
4276         * mule-charset.c (Qfont): New variable.
4277         (to_char_code): Add `Qfont'.
4278         (syms_of_mule_charset): Add new symbol `font'.
4279
4280 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4281
4282         * mule-charset.c (Qsub): New variable.
4283         (to_char_code): Add `Qsub'.
4284         (syms_of_mule_charset): Add new symbol `sub'.
4285
4286 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4287
4288         * mule-charset.c (Fput_char_attribute): Convert each element of
4289         VALUE to GL position if ATTRIBUTE is a GR-set,
4290
4291 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4292
4293         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4294         coded-charset is a GR-set.
4295
4296 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4297
4298         * mule-charset.c (Fput_char_attribute): Check each element of
4299         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4300
4301 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4302
4303         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4304         UTF-2000.
4305         (Qethiopic_ucs): New variable in UTF-2000.
4306         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4307         (complex_vars_of_mule_charset): Add new coded-charset
4308         `ethiopic-ucs' in UTF-2000.
4309
4310         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4311         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4312         9)'.
4313         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4314         10)'.
4315         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4316
4317 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4318
4319         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4320         `ascii'.
4321
4322 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4323
4324         * mule-charset.c (Vcharacter_variant_table): New variable.
4325         (Q_ucs): New variable.
4326         (Fchar_variants): New function.
4327         (Fput_char_attribute): Register `->ucs' value to
4328         `Vcharacter_variant_table'.
4329         (syms_of_mule_charset): Add new function `char-variants' and new
4330         symbol `->ucs'.
4331         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4332
4333 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4334
4335         * mule-charset.c (get_char_code_table): Allow negative character
4336         code.
4337         (put_char_code_table): Likewise.
4338         (Vcharacter_composition_table): New variable.
4339         (Q_decomposition): New variable.
4340         (Qwide): New variable.
4341         (Qnarrow): New variable.
4342         (Qcompat): New variable.
4343         (QnoBreak): New variable.
4344         (Qsuper): New variable.
4345         (Qfraction): New variable.
4346         (to_char_code): New function.
4347         (Fget_composite_char): New function.
4348         (Fput_char_attribute): Register `->decomposition' value to
4349         `Vcharacter_composition_table'.
4350         (syms_of_mule_charset): Add new function `get-composite-char', new
4351         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4352         `super' and `fraction'.
4353         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4354
4355 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4356
4357         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4358         character; copy the return value.
4359
4360 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4361
4362         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4363
4364         * mule-charset.c (range_charset_code_point): Must use make_int.
4365         (split_builtin_char): New function.
4366
4367 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4368
4369         * mule-charset.c (char_byte_table): Change name from
4370         "char-code-table" to "char-byte-table".
4371         (mark_char_code_table): New function.
4372         (char_code_table_equal): New function.
4373         (char_code_table_hash): New function.
4374         (char_code_table_description): New constant.
4375         (char_code_table): New type.
4376         (make_char_code_table): New function.
4377         (copy_char_code_table): New function.
4378         (get_char_code_table): Modify for `char_code_table' type.
4379         (put_char_code_table): Likewise.
4380         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4381         (Kashiwara).
4382
4383         * char-ucs.h (char_code_table): New type.
4384         (XCHAR_CODE_TABLE): New macro.
4385         (XSETCHAR_CODE_TABLE): New macro.
4386         (CHAR_CODE_TABLE_P): New macro.
4387         (GC_CHAR_CODE_TABLE_P): New macro.
4388         (struct Lisp_Char_Code_Table): New structure.
4389
4390 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4391
4392         * mule-charset.c (Fmake_charset): Setup byte_offset for
4393         {94|96}^n-set.
4394
4395 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4396
4397         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4398         character.
4399
4400 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4401
4402         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4403         is found.
4404
4405 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4406
4407         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4408         charset, it is regarded as a charset.
4409         (put_char_attribute): New function in UTF-2000.
4410         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4411         charset, mapping-table of the charset is modified.
4412         (Fdefine_char): New function in UTF-2000.
4413         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4414         `Fput_char_attribute'.
4415         (syms_of_mule_charset): Add new function `define-char' and new
4416         symbol `ucs' in UTF-2000.
4417         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4418
4419 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4420
4421         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4422         non-UTF-2000 configuration.
4423
4424 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4425
4426         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4427         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4428
4429         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4430         deleted.
4431         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4432         (Fset_charset_mapping_table): Likewise.
4433
4434         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4435         (CHARSET_ENCODING_TABLE): Delete.
4436         (XCHARSET_ENCODING_TABLE): Delete.
4437         (charset_code_point): New interface.
4438
4439 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4440
4441         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4442         instead of `charset_get_byte1' and `charset_get_byte2'.
4443
4444         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4445         (charset_get_byte2): Deleted.
4446
4447 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4448
4449         * char-ucs.h (SPLIT_CHAR): New inline function.
4450         (breakup_char_1): Use `SPLIT_CHAR'.
4451
4452         * mule-charset.c (range_charset_code_point): New function.
4453         (charset_code_point): New function.
4454
4455         * char-ucs.h (range_charset_code_point): New interface.
4456         (breakup_char_1): Use `range_charset_code_point'.
4457
4458 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4459
4460         * mule-charset.c (Fmake_charset): Delete unused local variable
4461         `code_offset'.
4462
4463         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4464         (breakup_char_1): Find a charset and code-point in
4465         `Vcharacter_attribute_table'.
4466
4467 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4468
4469         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4470         to 0.10 (Yao).
4471
4472 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4473
4474         * mule-charset.c (Vcharacter_attribute_table): New variable.
4475         (Fchar_attribute_alist): New function.
4476         (Fget_char_attribute): New function.
4477         (Fput_char_attribute): New function.
4478         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4479         too.
4480         (syms_of_mule_charset): Add new function `char-attribute-alist',
4481         `get-char-attribute' and `put-char-attribute'.
4482         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4483
4484 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4485
4486         * mule-charset.c (Fmake_charset): Just use
4487         `get_unallocated_leading_byte'.
4488
4489         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4490         sets; don't use final-byte based number for private sets.
4491
4492 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4493
4494         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4495         integer.
4496
4497 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4498
4499         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4500         to 0.9.
4501
4502 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4503
4504         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4505         of `CHAR_LEADING_BYTE' in UTF-2000.
4506
4507         * insdel.c (find_charsets_in_bufbyte_string): Use
4508         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4509         (find_charsets_in_emchar_string): Likewise.
4510
4511         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4512         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4513
4514         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4515         (CHAR_CHARSET_ID): New macro.
4516
4517 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4518
4519         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4520         charset-id - MIN_LEADING_BYTE.
4521         (put_char_table): Likewise.
4522
4523 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4524
4525         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4526         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4527         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4528         (CHARSET_ID_OFFSET): New macro.
4529         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4530         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4531         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4532         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4533         4).
4534         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4535         5).
4536         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4537         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4538         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4539         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4540         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4541
4542 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4543
4544         * mule-charset.c (next_allocated_leading_byte): New variable in
4545         UTF-2000.
4546         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4547         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4548         (get_unallocated_leading_byte): Simply use
4549         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4550         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4551         UTF-2000.
4552
4553         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4554         (MAX_LEADING_BYTE_PRIVATE): New macro.
4555         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4556         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4557
4558 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4559
4560         * mule-charset.c (Fmake_charset): Allocate final-byte based
4561         charset-id for 94-set, 96-set and 94x94-set.
4562
4563 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4564
4565         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4566         ambiguous `else'.
4567         (Fmake_charset): Likewise.
4568         (complex_vars_of_mule_charset): Modify the font registry of
4569         `ucs-bmp' not to match `Ethiopic-Unicode'.
4570
4571 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4572
4573         * mule-charset.c (complex_vars_of_mule_charset): Add font
4574         registory of `ucs-bmp'.
4575
4576 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4577
4578         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4579         coded-charsets in `default-coded-charset-priority-list' when
4580         breaking up a character.
4581
4582         * mule-charset.c (Vcharset_latin_viscii): New variable.
4583         (Qlatin_viscii): New variable.
4584         (make_charset): Don't use `decoding_table'.
4585         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4586         byte_offset.
4587         (Fset_charset_mapping_table): New implementation.
4588         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4589         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4590         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4591         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4592         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4593         charset `latin_viscii'.
4594
4595         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4596         (CHARSET_TYPE_94X94): Change to 1 from 2.
4597         (CHARSET_TYPE_96): Change to 2 from 1.
4598         (CHARSET_TYPE_128): New macro.
4599         (CHARSET_TYPE_128X128): Change to 5 from 4.
4600         (CHARSET_TYPE_256): New macro.
4601         (CHARSET_TYPE_256X256): Change to 7 from 5.
4602         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4603
4604 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4605
4606         * text-coding.c (char_encode_shift_jis): Refer
4607         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4608         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4609
4610         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4611         (char_byte_table_equal): New function in UTF-2000.
4612         (char_byte_table_hash): New function in UTF-2000.
4613         (char_byte_table_description): New constant in UTF-2000.
4614         (char_byte_table): New type in UTF-2000.
4615         (make_char_byte_table): New function in UTF-2000.
4616         (copy_char_byte_table): New function in UTF-2000.
4617         (make_char_code_table): New macro in UTF-2000.
4618         (get_char_code_table): New function in UTF-2000.
4619         (put_char_code_table): New function in UTF-2000.
4620         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4621         (charset_description): Add setting in UTF-2000.
4622         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4623         `CHARSET_TO_BYTE1_TABLE(cs)'.
4624         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4625         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4626         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4627         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4628         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4629         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4630         `CHARSET_TO_BYTE2_TABLE(cs)'.
4631
4632         * char-ucs.h (char_byte_table): New type.
4633         (XCHAR_BYTE_TABLE): New macro.
4634         (XSETCHAR_BYTE_TABLE): New macro.
4635         (CHAR_BYTE_TABLE_P): New macro.
4636         (GC_CHAR_BYTE_TABLE_P): New macro.
4637         (struct Lisp_Char_Byte_Table): New structure.
4638         (get_char_code_table): New interface.
4639         (Emchar_to_byte_table): Deleted.
4640         (get_byte_from_character_table): Deleted.
4641         (struct Lisp_Charset): Add `encoding_table'; delete
4642         `to_byte1_table' and `to_byte2_table'.
4643         (CHARSET_ENCODING_TABLE): New macro.
4644         (CHARSET_TO_BYTE1_TABLE): Deleted.
4645         (CHARSET_TO_BYTE2_TABLE): Deleted.
4646         (XCHARSET_ENCODING_TABLE): New macro.
4647         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4648         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4649
4650 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4651
4652         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4653         `vietnamese-viscii-*'.
4654
4655 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4656
4657         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4658         (Qvietnamese_viscii_upper): New variable.
4659         (Fdefine_charset_alias): New function.
4660         (syms_of_mule_charset): Add new function `define-charset-alias'.
4661         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4662         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4663         `latin-viscii-*'.
4664
4665 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4666
4667         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4668         (MAX_CHAR_OBS_94x94): New macro.
4669         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4670         for 94x94 sets.
4671
4672         * mule-charset.c (put_byte_from_character_table): Change unit size
4673         from 128 to 256.
4674         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4675         not defined.
4676         (Fmake_reverse_direction_charset): Modify dummy argument of
4677         `make_charset' for non-UTF-2000 environment.
4678
4679 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4680
4681         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4682
4683         * mule-charset.c (destroy_byte_from_character_table): New macro.
4684         (latin_jisx0201_to_ucs): Deleted.
4685         (latin_iso8859_2_to_ucs): Deleted.
4686         (latin_iso8859_3_to_ucs): Deleted.
4687         (latin_iso8859_4_to_ucs): Deleted.
4688         (latin_iso8859_9_to_ucs): Deleted.
4689         (latin_viscii_lower_to_ucs): Deleted.
4690         (latin_viscii_upper_to_ucs): Deleted.
4691         (mark_charset): Mark `cs->decoding_table'.
4692         (Fcharset_mapping_table): Fix DOC-string.
4693         (Fset_charset_mapping_table): New function.
4694         (syms_of_mule_charset): Add nwe function
4695         `set-charset-mapping-table'.
4696         (complex_vars_of_mule_charset): Don't setup and use
4697         `latin_*_to_ucs'.
4698
4699 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4700
4701         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4702         charset.
4703
4704 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4705
4706         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4707         (Vcharset_katakana_jisx0208): New variable.
4708         (Qhiragana_jisx0208): New variable.
4709         (Qkatakana_jisx0208): New variable.
4710         (make_charset): Add new argument `byte_offset'.
4711         (charset_get_byte1): Modify for new coded-charset definition; use
4712         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4713         `XCHARSET_BYTE_OFFSET'.
4714         (Fmake_charset): Modify for `make_charset'.
4715         (Fmake_reverse_direction_charset): Likewise.
4716         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4717         `katakana-jisx0208'.
4718         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4719         `.'  in font registry of charset `katakana-jisx0201',
4720         `latin-jisx0201', `vietnamese-viscii-lower' and
4721         `vietnamese-viscii-upper'; modify DOC-string of charset
4722         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4723         registry of charset `japanese-jisx0208' not to use font for JIS
4724         X0208:1990; add new charset `hiragana-jisx0208' and
4725         `katakana-jisx0208'.
4726
4727         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4728         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4729         (struct Lisp_Charset): Add `byte_offset'.
4730         (CHARSET_BYTE_OFFSET): New macro.
4731         (XCHARSET_UCS_MIN): New macro.
4732         (XCHARSET_UCS_MAX): New macro.
4733         (XCHARSET_CODE_OFFSET): New macro.
4734         (XCHARSET_BYTE_OFFSET): New macro.
4735         (MIN_CHAR_HIRAGANA): New macro.
4736         (MAX_CHAR_HIRAGANA): New macro.
4737         (MIN_CHAR_KATAKANA): New macro.
4738         (MAX_CHAR_KATAKANA): New macro.
4739         (MAKE_CHAR): Modify for new coded-charset definition; use
4740         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4741         `XCHARSET_BYTE_OFFSET'.
4742
4743 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4744
4745         * mule-charset.c (CHAR96): Deleted.
4746         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4747         <Lisp_Object>.
4748         (latin_iso8859_2_to_ucs): Likewise.
4749         (latin_iso8859_3_to_ucs): Likewise.
4750         (latin_iso8859_4_to_ucs): Likewise.
4751         (latin_iso8859_9_to_ucs): Likewise.
4752         (latin_viscii_lower_to_ucs): Likewise.
4753         (latin_viscii_upper_to_ucs): Likewise.
4754         (latin_tcvn5712_to_ucs): Commented out.
4755         (make_charset): Change type of argument `decoding_table' from
4756         <Emchar*> to <Lisp_Object> [vector of characters].
4757         (Fmake_charset): Modify for `make_charset'.
4758         (Fmake_reverse_direction_charset): Likewise.
4759         (Fcharset_mapping_table): New function in UTF-2000.
4760         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4761         UTF-2000.
4762         (complex_vars_of_mule_charset): Modify for type change of
4763         `*_to_ucs'; modify for `make_charset'.
4764
4765         * char-ucs.h (struct Lisp_Charset): Change type of
4766         `decoding_table' from <Emchar*> to <Lisp_Object>.
4767         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4768
4769 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4770
4771         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4772         error with non-UTF-2000-Mule.
4773
4774 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4775
4776         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4777         in lisp again].
4778         (Vcharset_chinese_cns11643_4): Likewise.
4779         (Vcharset_chinese_cns11643_5): Likewise.
4780         (Vcharset_chinese_cns11643_6): Likewise.
4781         (Vcharset_chinese_cns11643_7): Likewise.
4782         (Qchinese_cns11643_3): Likewise.
4783         (Qchinese_cns11643_4): Likewise.
4784         (Qchinese_cns11643_5): Likewise.
4785         (Qchinese_cns11643_6): Likewise.
4786         (Qchinese_cns11643_7): Likewise.
4787         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4788         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4789         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4790         (complex_vars_of_mule_charset): Likewise.
4791
4792 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4793
4794         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4795         96-set.
4796         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4797         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4798
4799 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4800
4801         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4802         0xFF60.
4803         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4804         (breakup_char_1): Likewise.
4805
4806         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4807         one of them includes the specified character.
4808
4809 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4810
4811         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4812
4813 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4814
4815         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4816
4817 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4818
4819         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4820         definition for non-UTF-2000 Mule.
4821         (latin_iso8859_3_to_ucs): Likewise.
4822         (latin_iso8859_4_to_ucs): Likewise.
4823         (latin_iso8859_9_to_ucs): Likewise.
4824         (latin_jisx0201_to_ucs): Likewise.
4825         (MIN_CHAR_THAI): Likewise.
4826         (MAX_CHAR_THAI): Likewise.
4827         (MIN_CHAR_GREEK): Likewise.
4828         (MAX_CHAR_GREEK): Likewise.
4829         (MIN_CHAR_HEBREW): Likewise.
4830         (MAX_CHAR_HEBREW): Likewise.
4831         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4832         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4833         (MIN_CHAR_CYRILLIC): Likewise.
4834         (MAX_CHAR_CYRILLIC): Likewise.
4835
4836 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4837
4838         * char-ucs.h (breakup_char_1): Use
4839         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4840         thai-tis620 and katakana-jisx0201 area.
4841
4842 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4843
4844         * char-ucs.h (breakup_char_1): Use
4845         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4846         area.
4847
4848         * text-coding.c (reset_encoding_stream): Fixed.
4849         (char_encode_ucs4): Delete `& 255'.
4850
4851         * char-ucs.h (breakup_char_1): Use
4852         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4853
4854 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4855
4856         * file-coding.c (Fmake_coding_system): Don't set up
4857         `codesys->fixed.size'.
4858         (encode_coding_no_conversion): Don't refer
4859         `str->codesys->fixed.size'.
4860
4861 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4862
4863         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4864         (latin_a_char_to_byte1): Deleted.
4865         (latin_a_char_to_byte2): Deleted.
4866
4867 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4868
4869         * mule-charset.c (make_charset): Add new argument `ucs_min',
4870         `ucs_max' and `code_offset'.
4871         (charset_get_byte1): New implementation [delete specific charset
4872         depended implementations].
4873         (Fmake_charset): Modify for `make_charset'.
4874         (Fmake_reverse_direction_charset): Likewise.
4875         (complex_vars_of_mule_charset): Likewise.
4876
4877         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4878         `code_offset'.
4879         (CHARSET_UCS_MIN): New macro.
4880         (CHARSET_UCS_MAX): New macro.
4881         (CHARSET_CODE_OFFSET): New macro.
4882         (MAKE_CHAR): Delete charset depended definitions [except
4883         katakana-jisx0201].
4884
4885 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4886
4887         * char-ucs.h (breakup_char_1): Use
4888         `Vdefault_coded_charset_priority_list' for C0-Controls,
4889         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4890
4891 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4892
4893         * char-ucs.h (charset_get_byte1): New function.
4894         (XCHARSET_GET_BYTE1): Deleted.
4895         (charset_get_byte2): New function.
4896         (XCHARSET_GET_BYTE2): Deleted.
4897         (Vdefault_coded_charset_priority_list): New external variable.
4898         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4899         `Vdefault_preferred_coded_charset_list'.
4900
4901         * mule-charset.c (charset_get_byte1): New function.
4902         (charset_get_byte2): New function.
4903         (Vdefault_coded_charset_priority_list): New variable.
4904         (vars_of_mule_charset): Add new variable
4905         `default-coded-charset-priority-list'.
4906
4907 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4908
4909         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4910         (XCHARSET_GET_BYTE2): New inline function.
4911         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4912         `XCHARSET_GET_BYTE2'.
4913
4914 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4915
4916         * mule-charset.c (make_charset): Initialize
4917         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4918         NULL if table is not defined.
4919
4920 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4921
4922         * text-coding.c (char_encode_shift_jis): Use
4923         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4924         `ucs_to_latin_jisx0201'.
4925
4926         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4927         (ucs_to_latin_iso8859_2): Deleted.
4928         (ucs_to_latin_iso8859_3): Deleted.
4929         (ucs_to_latin_iso8859_4): Deleted.
4930         (ucs_to_latin_iso8859_9): Deleted.
4931         (ucs_to_latin_viscii_lower): Deleted.
4932         (ucs_to_latin_viscii_upper): Deleted.
4933         (ucs_to_latin_tcvn5712): Deleted.
4934         (make_charset): Add new argument `decoding_table'; set up
4935         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4936         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4937         `decoding_table' is defined in UTF-2000.
4938         (Fmake_charset): Modify for `make_charset'.
4939         (Fmake_reverse_direction_charset): Likewise.
4940         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4941         and `GENERATE_96_SET'.
4942
4943         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4944         (ucs_to_latin_jisx0201): Deleted.
4945         (latin_iso8859_2_to_ucs): Deleted.
4946         (ucs_to_latin_iso8859_2): Deleted.
4947         (latin_iso8859_3_to_ucs): Deleted.
4948         (ucs_to_latin_iso8859_3): Deleted.
4949         (latin_iso8859_4_to_ucs): Deleted.
4950         (ucs_to_latin_iso8859_4): Deleted.
4951         (latin_iso8859_9_to_ucs): Deleted.
4952         (ucs_to_latin_iso8859_9): Deleted.
4953         (latin_viscii_lower_to_ucs): Deleted.
4954         (ucs_to_latin_viscii_lower): Deleted.
4955         (latin_viscii_upper_to_ucs): Deleted.
4956         (ucs_to_latin_viscii_upper): Deleted.
4957         (struct Lisp_Charset): Renamed `encoding_table' to
4958         `to_byte1_table'; add `to_byte2_table'.
4959         (CHARSET_DECODING_TABLE): New macro.
4960         (CHARSET_TO_BYTE1_TABLE): New macro.
4961         (CHARSET_TO_BYTE2_TABLE): New macro.
4962         (XCHARSET_DECODING_TABLE): New macro.
4963         (XCHARSET_TO_BYTE1_TABLE): New macro.
4964         (XCHARSET_TO_BYTE2_TABLE): New macro.
4965         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4966         tables.
4967         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4968         don't use `ucs_to_*' tables.
4969
4970 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4971
4972         * text-coding.c (Fmake_coding_system): Don't set up
4973         `codesys->fixed.size'.
4974         (encode_coding_no_conversion): Use `if' instead of `switch'.
4975
4976         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4977
4978 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4979
4980         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4981         (Fmake_charset): Modify for `make_charset'.
4982         (Fmake_reverse_direction_charset): Likewise.
4983         (complex_vars_of_mule_charset): Likewise.
4984
4985 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4986
4987         * text-coding.c (char_encode_shift_jis): Use table
4988         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4989
4990 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4991
4992         * text-coding.c (text_encode_generic): Use `if' instead of
4993         `switch'.
4994         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4995         decode JIS-Latin.
4996
4997 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4998
4999         * text-coding.c (encode_coding_sjis): Deleted.
5000         (char_encode_shift_jis): New function.
5001         (char_finish_shift_jis): New function.
5002         (reset_encoding_stream): Set up `encode_char' and `finish' for
5003         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5004         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5005         (char_encode_utf8): Treat `eol_type'.
5006
5007 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5008
5009         * file-coding.c (decode_coding_iso2022): Use
5010         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5011
5012 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5013
5014         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5015         to 0.7 (Hirano).
5016
5017 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5018
5019         * char-lb.h (CHAR_COLUMNS): New macro.
5020
5021 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5022
5023         * text-coding.c (char_encode_ucs4): New function.
5024         (char_finish_ucs4): New function.
5025         (encode_coding_ucs4): Deleted.
5026         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5027         (text_encode_generic): Delete local variable `charset' and `half'.
5028         (ucs_to_mule_table): Deleted.
5029         (mule_to_ucs_table): Deleted.
5030         (Fset_ucs_char): Deleted.
5031         (ucs_to_char): Deleted.
5032         (Fucs_char): Deleted.
5033         (Fset_char_ucs): Deleted.
5034         (Fchar_ucs): Deleted.
5035         (decode_ucs4): Deleted.
5036         (mule_char_to_ucs4): Deleted.
5037         (encode_ucs4): Deleted.
5038         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5039         (decode_coding_utf8): Likewise.
5040         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5041         (char_encode_iso2022): Fixed.
5042         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5043         `Fset_char_ucs' and `Fchar_ucs'.
5044         (complex_vars_of_file_coding): Don't initialize
5045         `ucs_to_mule_table'.
5046
5047         * objects-tty.c (tty_initialize_font_instance): Don't use
5048         `XCHARSET_COLUMNS'.
5049
5050         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5051         UTF-2000.
5052
5053         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5054         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5055
5056         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5057         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5058         (emchar_string_displayed_columns): Likewise.
5059
5060         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5061         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5062         (string_column_at_point): Likewise.
5063         (Fmove_to_column): Likewise.
5064
5065         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5066         `encoding_table' and `decoding_table'.
5067         (CHARSET_REP_BYTES): Deleted.
5068         (XCHARSET_REP_BYTES): Deleted.
5069         (XCHARSET_COLUMNS): Deleted.
5070         (CHAR_COLUMNS): New macro.
5071         (lookup_composite_char): Deleted unconditionally.
5072         (composite_char_string): Likewise.
5073
5074 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5075
5076         * char-ucs.h (Emchar_to_byte_table): New type.
5077         (get_byte_from_character_table): New function interface.
5078         (Vcharset_latin_jisx0201): New variable.
5079         (latin_jisx0201_to_ucs): New variable.
5080         (ucs_to_latin_jisx0201): New variable.
5081         (Vcharset_latin_iso8859_2): New variable.
5082         (latin_iso8859_2_to_ucs): New variable.
5083         (ucs_to_latin_iso8859_2): New variable.
5084         (Vcharset_latin_iso8859_3): New variable.
5085         (latin_iso8859_3_to_ucs): New variable.
5086         (ucs_to_latin_iso8859_3): New variable.
5087         (Vcharset_latin_iso8859_4): New variable.
5088         (latin_iso8859_4_to_ucs): New variable.
5089         (ucs_to_latin_iso8859_4): New variable.
5090         (Vcharset_latin_iso8859_9): New variable.
5091         (latin_iso8859_9_to_ucs): New variable.
5092         (ucs_to_latin_iso8859_9): New variable.
5093         (Vcharset_latin_viscii_lower): New variable.
5094         (latin_viscii_lower_to_ucs): New variable.
5095         (ucs_to_latin_viscii_lower): New variable.
5096         (Vcharset_latin_viscii_upper): New variable.
5097         (latin_viscii_upper_to_ucs): New variable.
5098         (ucs_to_latin_viscii_upper): New variable.
5099         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5100         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5101         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5102         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5103         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5104         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5105         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5106         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5107         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5108         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5109
5110         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5111         (Vcharset_latin_viscii_upper): New variable.
5112         (make_byte_from_character_table): New function.
5113         (put_byte_from_character_table): New function.
5114         (get_byte_from_character_table): New function.
5115         (CHAR96): New macro.
5116         (ucs_to_latin_jisx0201): New variable.
5117         (latin_jisx0201_to_ucs): New variable.
5118         (ucs_to_latin_iso8859_2): New variable.
5119         (latin_iso8859_2_to_ucs): New variable.
5120         (ucs_to_latin_iso8859_3): New variable.
5121         (latin_iso8859_3_to_ucs): New variable.
5122         (ucs_to_latin_iso8859_4): New variable.
5123         (latin_iso8859_4_to_ucs): New variable.
5124         (ucs_to_latin_iso8859_9): New variable.
5125         (latin_iso8859_9_to_ucs): New variable.
5126         (ucs_to_latin_viscii_lower): New variable.
5127         (latin_viscii_lower_to_ucs): New variable.
5128         (ucs_to_latin_viscii_upper): New variable.
5129         (latin_viscii_upper_to_ucs): New variable.
5130         (ucs_to_latin_tcvn5712): New variable.
5131         (latin_tcvn5712_to_ucs): New variable.
5132         (Qlatin_viscii_lower): New variable.
5133         (Qlatin_viscii_upper): New variable.
5134         (syms_of_mule_charset): Set up new symbol
5135         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5136         (complex_vars_of_mule_charset): Set up new charset
5137         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5138         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5139         `ucs_to_<CHARSET>' tables.
5140
5141 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5142
5143         * text-coding.c: New file.
5144
5145 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5146
5147         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5148
5149         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5150         (MAKE_CHAR): Modify for `ucs-bmp'.
5151         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5152         non-MULE characters of BMP.
5153
5154 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5155
5156         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5157         to 0.6.
5158
5159 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5160
5161         * lstream.h:
5162         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5163         - Include character.h for `CHAR_ASCII_P'.
5164
5165         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5166
5167         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5168         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5169
5170         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5171         (BYTE_C0_P): Likewise.
5172         (BYTE_C1_P): Likewise.
5173         (Lstream_get_emchar_1): Likewise.
5174         (Lstream_fput_emchar): Likewise.
5175         (Lstream_funget_emchar): Likewise.
5176         (copy_internal_to_external): Likewise.
5177         (copy_external_to_internal): Likewise.
5178
5179         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5180         (BYTE_C0_P): Likewise.
5181         (BYTE_C1_P): Likewise.
5182         (Lstream_get_emchar_1): Likewise.
5183         (Lstream_fput_emchar): Likewise.
5184         (Lstream_funget_emchar): Likewise.
5185         (copy_internal_to_external): Likewise.
5186         (copy_external_to_internal): Likewise.
5187
5188         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5189         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5190
5191         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5192         (BYTE_ASCII_P): Moved to mb-1byte.h.
5193
5194 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5195
5196         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5197
5198         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5199         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5200         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5201         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5202         (VALIDATE_CHARPTR_FORWARD): Likewise.
5203         (simple_charptr_emchar): Moved to mb-multibyte.h.
5204         (simple_set_charptr_emchar): Likewise.
5205         (simple_charptr_copy_char): Likewise.
5206         (non_ascii_charptr_emchar): Likewise.
5207         (non_ascii_set_charptr_emchar): Likewise.
5208         (non_ascii_charptr_copy_char): Likewise.
5209         (charptr_emchar): Moved to mb-*byte.h.
5210         (set_charptr_emchar): Likewise.
5211         (charptr_copy_char): Likewise.
5212
5213         * mb-1byte.h, mb-multibyte.h: New files.
5214
5215 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5216
5217         * mb-utf-8.h (MULTIBYTE): New macro.
5218         (MAX_EMCHAR_LEN): Moved from buffer.h.
5219         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5220
5221         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5222
5223         * mb-lb.h, multibyte.h: New files.
5224
5225         * char-1byte.h (Charset_ID): Moved from buffer.h.
5226         (MIN_LEADING_BYTE): Likewise.
5227         (LEADING_BYTE_ASCII): Likewise.
5228         (NUM_LEADING_BYTES): Likewise.
5229         (CHARSETP): Likewise.
5230         (CHARSET_BY_LEADING_BYTE): Likewise.
5231         (XCHARSET_LEADING_BYTE): Likewise.
5232         (XCHARSET_GRAPHIC): Likewise.
5233         (XCHARSET_COLUMNS): Likewise.
5234         (XCHARSET_DIMENSION): Likewise.
5235         (CHAR_CHARSET): Likewise.
5236         (CHAR_LEADING_BYTE): Likewise.
5237         (BREAKUP_CHAR): Likewise.
5238         (Vcharset_ascii): Likewise.
5239
5240         * buffer.h: Include multibyte.h unconditionally.
5241         (VALID_CHARPTR_P): Moved to multibyte.h.
5242         (ASSERT_VALID_CHARPTR): Likewise.
5243         (REAL_INC_CHARPTR): Likewise.
5244         (REAL_INC_CHARBYTIND): Likewise.
5245         (REAL_DEC_CHARPTR): Likewise.
5246         (INC_CHARPTR): Likewise.
5247         (INC_CHARBYTIND): Likewise.
5248         (DEC_CHARPTR): Likewise.
5249         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5250         (VALIDATE_CHARPTR_FORWARD): Likewise.
5251         (charptr_n_addr): Likewise.
5252         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5253         (simple_charptr_emchar): Moved to multibyte.h.
5254         (simple_set_charptr_emchar): Likewise.
5255         (simple_charptr_copy_char): Likewise.
5256         (non_ascii_charptr_emchar): Likewise.
5257         (non_ascii_set_charptr_emchar): Likewise.
5258         (non_ascii_charptr_copy_char): Likewise.
5259         (charptr_emchar): Likewise.
5260         (set_charptr_emchar): Likewise.
5261         (charptr_copy_char): Likewise.
5262         (charptr_emchar_n): Likewise.
5263         (Charset_ID): Moved to char-1byte.h.
5264         (Vcharset_ascii): Likewise.
5265         (CHAR_CHARSET): Likewise.
5266         (CHAR_LEADING_BYTE): Likewise.
5267         (LEADING_BYTE_ASCII): Likewise.
5268         (NUM_LEADING_BYTES): Likewise.
5269         (MIN_LEADING_BYTE): Likewise.
5270         (CHARSETP): Likewise.
5271         (CHARSET_BY_LEADING_BYTE): Likewise.
5272         (XCHARSET_LEADING_BYTE): Likewise.
5273         (XCHARSET_GRAPHIC): Likewise.
5274         (XCHARSET_COLUMNS): Likewise.
5275         (XCHARSET_DIMENSION): Likewise.
5276         (BREAKUP_CHAR): Likewise.
5277
5278 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5279
5280         * character.h: Add document about interface for characters.
5281
5282         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5283         (MAKE_CHAR): Delete comment about
5284         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5285         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5286         (BREAKUP_CHAR): Modify name of arguments.
5287         (CHAR_CHARSET): Modify name of argument.
5288
5289         * buffer.h: Delete document about Emchar accessors.
5290
5291 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5292
5293         * character.h (CHAR_INTP): Moved from buffer.h
5294         (CHAR_OR_CHAR_INTP): Likewise.
5295         (XCHAR_OR_CHAR_INT): Likewise.
5296         (CHECK_CHAR_COERCE_INT): Likewise.
5297
5298         * buffer.h (CHAR_INTP): Moved to character.h
5299         (CHAR_OR_CHAR_INTP): Likewise.
5300         (XCHAR_OR_CHAR_INT): Likewise.
5301         (CHECK_CHAR_COERCE_INT): Likewise.
5302
5303 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5304
5305         * character.h:
5306         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5307         - Include char-1byte.h, char-lb.h or char-ucs.h.
5308
5309         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5310
5311         * buffer.h: Include character unconditionally.
5312         (valid_char_p): Moved to char-*.h.
5313         (non_ascii_valid_char_p): Moved to char-lb.h.
5314
5315         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5316
5317 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5318
5319         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5320         in UTF-2000 because it is not ported yet and not to use
5321         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5322         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5323         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5324
5325         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5326         (CHAR_ASCII_P): Moved from character.h.
5327
5328         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5329         (CHAR_ASCII_P): Likewise.
5330         (CHAR_FIELD1_MASK): Deleted.
5331         (CHAR_FIELD2_MASK): Deleted.
5332         (CHAR_FIELD3_MASK): Deleted.
5333         (MAX_CHAR_BASIC_LATIN): New macro.
5334         (CHAR_FIELD1): Deleted.
5335         (CHAR_FIELD2_INTERNAL): Deleted.
5336         (CHAR_FIELD3_INTERNAL): Deleted.
5337         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5338         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5339         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5340         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5341         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5342         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5343         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5344         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5345         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5346         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5347         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5348         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5349         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5350         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5351         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5352         (MIN_CHAR_COMPOSITION): Deleted.
5353         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5354         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5355
5356 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5357
5358         * buffer.h: Include mb-utf-8.h in UTF-2000.
5359
5360         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5361
5362         * mb-utf-8.h: New file.
5363
5364 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5365
5366         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5367         instead of `int'.
5368
5369         * mule-charset.h, buffer.h (Charset_ID): New type.
5370
5371 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5372
5373         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5374         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5375         instead of `MULE_CHAR_PRIVATE_OFFSET',
5376         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5377         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5378         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5379
5380         * character.h (Vcharset_japanese_jisx0212): New variable
5381         definition.
5382
5383 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5384
5385         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5386         (charset_by_attributes): Delete array about direction.
5387         (latin_a_char_to_charset): New variable in UTF-2000.
5388         (latin_a_char_to_byte1): New variable in UTF-2000.
5389         (latin_a_char_to_byte2): New variable in UTF-2000.
5390         (Qucs_bmp): New variable.
5391         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5392         `Bufbyte'.
5393         (next_allocated_2_byte_leading_byte): Likewise.
5394         (non_ascii_set_charptr_emchar): Likewise.
5395         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5396         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5397         `charset_by_attributes'.
5398         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5399         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5400         and `CHARSET_BY_LEADING_BYTE'.
5401         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5402         `utf-2000-version' to `vars_of_mule_charset'.
5403         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5404         define `leading-code-private-11' in UTF-2000; move setting of
5405         `utf-2000-version' from `syms_of_mule_charset'.
5406         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5407         UTF-2000.
5408
5409         * character.h (Charset_ID): New type.
5410         (LEADING_BYTE_UCS_BMP): New macro.
5411         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5412         (CHARSET_ID_OFFSET_94): New macro.
5413         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5414         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5415         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5416         final-byte.
5417         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5418         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5419         (CHARSET_ID_OFFSET_96): New macro.
5420         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5421         CHARSET_ID_OFFSET_96 and final-byte.
5422         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5423         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5424         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5425         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5426         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5427         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5428         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5429         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5430         (LEADING_BYTE_THAI_TIS620): Likewise.
5431         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5432         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5433         (CHARSET_ID_OFFSET_94x94): New macro.
5434         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5435         CHARSET_ID_OFFSET_94x94 and final-byte.
5436         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5437         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5438         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5439         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5440         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5441         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5442         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5443         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5444         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5445         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5446         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5447         (CHARSET_TYPE_128X128): New macro.
5448         (CHARSET_TYPE_256X256): New macro.
5449         (XCHARSET_PRIVATE_P): Delete unconditionally.
5450         (charset_by_attributes): Delete array about direction.
5451         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5452         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5453         (MIN_CHAR_94): New macro.
5454         (MAX_CHAR_94): New macro.
5455         (MIN_CHAR_96): New macro.
5456         (MAX_CHAR_96): New macro.
5457         (MIN_CHAR_94x94): New macro.
5458         (MAX_CHAR_94x94): New macro.
5459         (MIN_CHAR_96x96): New macro.
5460         (MAX_CHAR_96x96): New macro.
5461         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5462         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5463         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5464         - 32)'.
5465         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5466         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5467         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5468         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5469         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5470         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5471         `XCHARSET_LEADING_BYTE' to make code-point.
5472         (latin_a_char_to_charset): New variable.
5473         (latin_a_char_to_byte1): New variable.
5474         (latin_a_char_to_byte2): New variable.
5475         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5476         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5477         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5478
5479         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5480         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5481         (find_charsets_in_emchar_string): Likewise.
5482         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5483
5484         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5485         `int'.
5486         (decode_coding_iso2022): Likewise.
5487
5488         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5489         of `unsigned char'.
5490
5491         * redisplay.c (redisplay_text_width_emchar_string): Use
5492         `Charset_ID' instead of `unsigned char'.
5493         (redisplay_frame_text_width_string): Likewise.
5494
5495         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5496         `unsigned char'.
5497
5498         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5499         instead of `unsigned char'.
5500         (face_cachel_charset_font_metric_info): Likewise.
5501
5502         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5503         (get_non_ascii_char_table_value): Likewise.
5504         (get_char_table): Likewise.
5505         (put_char_table): Likewise.
5506         (map_over_other_charset): Likewise.
5507         (map_char_table): Likewise.
5508
5509         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5510         instead of `unsigned char'.
5511
5512 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5513
5514         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5515         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5516
5517         * mule-charset.c (leading_code_private_11): Don't define in
5518         UTF-2000.
5519
5520         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5521         in UTF-2000 because it is not ported yet and not to use
5522         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5523
5524 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5525
5526         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5527
5528 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5529
5530         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5531         in UTF-2000.
5532
5533         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5534         of unsigned char to store leading-byte.
5535
5536         * chartab.c (get_non_ascii_char_table_value): Don't use
5537         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5538
5539         * file-coding.c (encode_coding_big5): Delete bogus implementation
5540         in UTF2000.
5541
5542         * character.h (LEADING_BYTE_*): Delete definition for
5543         non-UTF-2000.
5544         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5545         (LEADING_BYTE_PREFIX_P): Deleted.
5546         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5547         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5548         (BUFBYTE_LEADING_BYTE_P): Deleted.
5549         (CHARSET_PRIVATE_P): Deleted unconditionally.
5550         (rep_bytes_by_first_byte): Deleted unconditionally.
5551         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5552         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5553         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5554         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5555         (CHAR_FIELD2): Deleted.
5556         (CHAR_FIELD3): Deleted.
5557         (MAKE_CHAR): Delete definition for non-UTF-2000.
5558         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5559         (breakup_char_1): New implementation.
5560         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5561         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5562
5563 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5564
5565         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5566         condition.
5567
5568 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5569
5570         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5571         (CHARSET_PRIVATE_P): Likewise.
5572         (XCHARSET_PRIVATE_P): Likewise.
5573         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5574
5575         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5576         UTF2000.
5577         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5578
5579 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5580
5581         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5582         (NUM_LEADING_BYTES): Changed from 128 to 256.
5583         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5584         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5585         UTF2000.
5586         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5587
5588         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5589         UTF2000.
5590         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5591         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5592         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5593         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5594         (Qchinese_cns11643_3): New variable in UTF2000.
5595         (Qchinese_cns11643_4): New variable in UTF2000.
5596         (Qchinese_cns11643_5): New variable in UTF2000.
5597         (Qchinese_cns11643_6): New variable in UTF2000.
5598         (Qchinese_cns11643_7): New variable in UTF2000.
5599         (syms_of_mule_charset): Define `chinese-cns11643-3',
5600         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5601         and `chinese-cns11643-7' in UTF2000.
5602         (vars_of_mule_charset): Initialize
5603         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5604         + 1 in UTF2000.
5605         (complex_vars_of_mule_charset): Setup charset
5606         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5607         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5608
5609 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5610
5611         * mule-charset.c: Move setting for `leading-code-private-11' from
5612         `syms_of_mule_charset' to `vars_of_mule_charset'.
5613
5614 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5615
5616         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5617         and `NUM_LEADING_BYTES' in assert.
5618
5619 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5620
5621         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5622         instead of 128.
5623         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5624         `NUM_LEADING_BYTES' instead of 128.
5625
5626 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5627
5628         * mule-charset.h (charset_by_leading_byte): Use
5629         `NUM_LEADING_BYTES' instead of 128.
5630         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5631
5632         * mule-charset.c (charset_by_leading_byte): Use
5633         `NUM_LEADING_BYTES' instead of 128.
5634         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5635
5636         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5637         128.
5638
5639 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5640
5641         * mule-charset.c (syms_of_mule_charset): Update to
5642         0.4 (Shin-Imamiya).
5643
5644 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5645
5646         * file-coding.c (encode_coding_sjis): New implementation for
5647         UTF2000.  (decode_coding_sjis): Ditto.
5648
5649 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5650
5651         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5652         Don't define in UTF2000.
5653
5654         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5655         defined.
5656
5657         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5658         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5659         MULE.
5660
5661 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5662
5663         * config.h.in (CHAR_IS_UCS4): New macro.
5664
5665         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5666         conventional MULE representation.
5667         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5668
5669         * mule-charset.h: Reverted to original.
5670
5671         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5672         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5673         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5674
5675         * character.h: New file.
5676
5677         * file-coding.c (Fmake_coding_system): Set 1 to
5678         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5679         defined.
5680         (encode_coding_no_conversion): New implementation for UTF2000.
5681
5682         * file-coding.h (struct Lisp_Coding_System): Add new member
5683         `fixed.size'.
5684
5685 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5686
5687         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5688         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5689         (encode_coding_iso2022): New implementation for UTF2000.
5690
5691 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5692
5693         * mule-canna.c (c2mu): New implementation for UTF2000.
5694         (m2c): Likewise.
5695
5696 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5697
5698         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5699
5700 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5701
5702         * file-coding.c (reset_encoding_stream): Set 0 to
5703         `str->iso2022.current_char_boundary' in UTF2000.
5704         (encode_utf8): Don't define in UTF2000.
5705         (encode_coding_utf8): New implementation for UTF-8 representation
5706         of UTF2000.
5707         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5708
5709 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5710
5711         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5712
5713         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5714         UTF2000.
5715         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5716
5717         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5718
5719         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5720         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5721         as UTF-8 in UTF2000.
5722         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5723         (non_ascii_valid_char_p): Don't define in UTF2000.
5724         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5725         (Lstream_get_emchar_1): Likewise.
5726         (utf-2000-version): New variable in UTF2000.
5727
5728         * lread.c (read_escape): Add new reader `u'.
5729
5730         * insdel.c (three_to_one_table): Don't define in UTF2000.
5731         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5732         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5733         UTF2000.
5734         (bytind_to_bufpos_func): Likewise.
5735         (buffer_mule_signal_inserted_region): Likewise.
5736         (vars_of_insdel): Don't initialize `three_to_one_table'.
5737         (init_buffer_text): Use `buf->text->mule_size' instead of
5738         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5739         UTF2000.
5740
5741         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5742         UTF-8 representation in UTF2000.
5743         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5744         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5745         (decode_coding_iso2022): Don't define local variable `lb' in
5746         UTF2000; don't use LEADING_BYTE in UTF2000; use
5747         `DECODE_ADD_UCS_CHAR' in UTF2000.
5748         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5749
5750         * config.h.in (UTF2000): New macro.
5751
5752         * buffer.h (struct buffer_text): Add new member `mule_size' and
5753         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5754         (valid_char_p): Return always 1 in UTF2000.
5755         (MAX_EMCHAR_LEN): 6 in UTF2000.
5756         (three_to_one_table): Don't define in UTF2000.
5757         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5758         UTF2000.
5759         (real_bytind_to_bufpos): Likewise.
5760
5761         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5762
5763 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5764
5765         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5766         representation change.
5767         (Vutf_2000_version): New variable.
5768         (leading_code_private_11): New variable.
5769         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5770         `leading-code-private-11'.
5771
5772         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5773         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5774         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5775         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5776         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5777         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5778         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5779         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5780         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5781         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5782         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5783         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5784         (MIN_CHAR_GREEK): New macro.
5785         (MAX_CHAR_GREEK): New macro.
5786         (MIN_CHAR_CYRILLIC): New macro.
5787         (MAX_CHAR_CYRILLIC): New macro.
5788         (MIN_CHAR_HEBREW): New macro.
5789         (MAX_CHAR_HEBREW): New macro.
5790         (MIN_CHAR_THAI): New macro.
5791         (MAX_CHAR_THAI): New macro.
5792         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5793         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5794         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5795         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5796         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5797         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5798         (CHAR_FIELD2): New inline function.
5799         (CHAR_FIELD3): New inline function.
5800         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5801         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5802         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5803         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5804         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5805         (MIN_CHAR_COMPOSITION): Likewise.
5806         (CHAR_LEADING_BYTE): Modified for character representation change.
5807         (MAKE_CHAR): Likewise.
5808
5809         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5810         (Vcharset_greek_iso8859_7): Likewise.
5811         (Vcharset_cyrillic_iso8859_5): Likewise.
5812         (Vcharset_hebrew_iso8859_8): Likewise.
5813         (Vcharset_thai_tis620): Likewise.
5814         (Vcharset_katakana_jisx0201): Likewise.
5815
5816 2005-02-06  Vin Shelton <acs@xemacs.org>
5817
5818         * XEmacs 21.4.17 is released
5819
5820 2005-01-31  Ben Wing  <ben@xemacs.org>
5821
5822         * emacs.c:
5823         Define assert_failed() always.
5824         * lisp.h:
5825         Always define ABORT().
5826
5827 2005-01-25  Ben Wing  <ben@xemacs.org>
5828
5829         * Makefile.in.in:
5830         * Makefile.in.in (%.o):
5831         Don't compile executable as Windows (-mwindows) under Cygwin.
5832         Semi-recent changes to Cygwin's executable-startup handling make
5833         it impossible to access the TTY this way.
5834
5835         Don't use special linker file under Cygwin (cygwin.sc) except
5836         when non-PDUMP (even in this case it is highly questionable); you
5837         get errors like
5838
5839       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
5840    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
5841
5842 2005-01-29  Ben Wing  <ben@xemacs.org>
5843
5844         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5845
5846         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
5847
5848 2005-01-29  Ben Wing  <ben@xemacs.org>
5849
5850         * bytecode.c (optimize_compiled_function):
5851         * print.c (FROB):
5852         * print.c (long_to_string):
5853         Add casts to avoid warning.
5854         
5855         * glyphs-eimage.c:
5856         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
5857         #### The better solution is to move the TIFF and JPEG code to
5858         different files.
5859         
5860         * glyphs-msw.c (mswindows_xbm_instantiate):
5861         Define __STDC__ to avoid problems with compface.h.
5862         
5863         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
5864         * EmacsShell-sub.c:
5865         * EmacsShell-sub.c (ABORT):
5866         * EmacsShell-sub.c (SuperClassRootGeometryManager):
5867         * EmacsShell-sub.c (RootGeometryManager):
5868         * EmacsShell.c:
5869         * EmacsShell.c (ABORT):
5870         * EmacsShell.c (EmacsShellUpdateSizeHints):
5871         * alloc.c (free_lcrecord):
5872         * alloca.c (i00afunc):
5873         * buffer.c (delete_from_buffer_alist):
5874         * buffer.c (MARKED_SLOT):
5875         * bytecode.c (execute_rare_opcode):
5876         * bytecode.c (optimize_byte_code):
5877         * bytecode.c (Ffetch_bytecode):
5878         * chartab.c (char_table_type_to_symbol):
5879         * chartab.c (Freset_char_table):
5880         * chartab.c (decode_char_table_range):
5881         * chartab.c (Fget_range_char_table):
5882         * chartab.c (check_valid_char_table_value):
5883         * chartab.c (map_char_table):
5884         * chartab.c (slow_map_char_table_fun):
5885         * chartab.c (chartab_instantiate):
5886         * cm.c (cmcheckmagic):
5887         * console-msw.c (DHEADER):
5888         * console.c (MARKED_SLOT):
5889         * data.c (finish_marking_weak_lists):
5890         * data.c (encode_weak_list_type):
5891         * debug.h (DASSERT):
5892         * device-gtk.c (gtk_init_device):
5893         * device-msw.c (mswindows_get_default_margin):
5894         * device-tty.c (tty_init_device):
5895         * device-x.c (get_device_from_display):
5896         * device-x.c (x_get_visual_depth):
5897         * doprnt.c (parse_doprnt_spec):
5898         * doprnt.c (get_doprnt_args):
5899         * dumper.c (pdump_get_indirect_count):
5900         * dumper.c (pdump_register_sub):
5901         * dumper.c (pdump_register_object):
5902         * dumper.c (pdump_register_struct):
5903         * dumper.c (pdump_dump_data):
5904         * dumper.c (pdump_reloc_one):
5905         * elhash.c (print_hash_table):
5906         * elhash.c (make_standard_lisp_hash_table):
5907         * elhash.c (hash_table_instantiate):
5908         * emacs.c:
5909         * emacs.c (Fforce_debugging_signal):
5910         * emacs.c (sort_args):
5911         * emacs.c (main):
5912         * emacs.c (assert_failed):
5913         * eval.c (throw_or_bomb_out):
5914         * eval.c (signal_1):
5915         * eval.c (Fsignal):
5916         * event-Xt.c:
5917         * event-Xt.c (emacs_Xt_mapping_action):
5918         * event-Xt.c (Xt_process_to_emacs_event):
5919         * event-msw.c:
5920         * event-stream.c (check_event_stream_ok):
5921         * event-stream.c (Fadd_timeout):
5922         * event-stream.c (Fadd_async_timeout):
5923         * event-stream.c (Fdiscard_input):
5924         * event-stream.c (execute_internal_event):
5925         * event-stream.c (Frecent_keys):
5926         * event-stream.c (extract_this_command_keys_nth_mouse_event):
5927         * event-stream.c (lookup_command_event):
5928         * event-unixoid.c (poll_fds_for_input):
5929         * events.c:
5930         * events.c (mark_event):
5931         * events.c (event_equal):
5932         * events.c (event_hash):
5933         * events.c (Fmake_event):
5934         * events.c (Fdeallocate_event):
5935         * events.c (event_chain_find_previous):
5936         * events.c (event_to_character):
5937         * events.c (format_event_object):
5938         * events.c (Fevent_type):
5939         * events.c (event_pixel_translation):
5940         * events.c (Fevent_properties):
5941         * extents.c (extent_in_region_p):
5942         * extents.c (print_extent):
5943         * extents.c (process_extents_for_insertion_mapper):
5944         * extents.c (report_extent_modification_mapper):
5945         * extents.c (glyph_layout_to_symbol):
5946         * faces.c (face_validate):
5947         * file-coding.c (eol_type_to_symbol):
5948         * file-coding.c (subsidiary_coding_system):
5949         * file-coding.c (Fcoding_system_type):
5950         * file-coding.c (Fcoding_system_property):
5951         * file-coding.c (mule_decode):
5952         * file-coding.c (mule_encode):
5953         * file-coding.c (encode_coding_ucs4):
5954         * file-coding.c (encode_coding_utf8):
5955         * file-coding.c (parse_iso2022_esc):
5956         * file-coding.c (encode_coding_iso2022):
5957         * fileio.c:
5958         * fns.c (concat):
5959         * fns.c (Fsubseq):
5960         * fns.c (mapcar1):
5961         * fns.c (Fbase64_encode_region):
5962         * fns.c (Fbase64_encode_string):
5963         * fns.c (Fbase64_decode_region):
5964         * fns.c (Fbase64_decode_string):
5965         * font-lock.c (find_context):
5966         * font-lock.c (context_to_symbol):
5967         * frame-gtk.c (gtk_set_frame_pointer):
5968         * frame-gtk.c (gtk_update_frame_external_traits):
5969         * frame-x.c (x_wm_mark_shell_size_user_specified):
5970         * frame-x.c (x_wm_mark_shell_position_user_specified):
5971         * frame-x.c (x_wm_set_shell_iconic_p):
5972         * frame-x.c (x_wm_set_cell_size):
5973         * frame-x.c (x_wm_set_variable_size):
5974         * frame-x.c (x_wm_store_class_hints):
5975         * frame-x.c (x_wm_maybe_store_wm_command):
5976         * frame-x.c (x_initialize_frame_size):
5977         * frame-x.c (x_update_frame_external_traits):
5978         * frame.c:
5979         * frame.c (delete_frame_internal):
5980         * frame.c (mouse_pixel_position_1):
5981         * frame.c (change_frame_size_1):
5982         * free-hook.c (check_free):
5983         * free-hook.c (check_realloc):
5984         * free-hook.c (note_block_input):
5985         * free-hook.c (log_gcpro):
5986         * gccache-gtk.c (gc_cache_lookup):
5987         * glyphs-eimage.c (tiff_memory_write):
5988         * glyphs-gtk.c (gtk_finalize_image_instance):
5989         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
5990         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
5991         * glyphs-gtk.c (gtk_xpm_instantiate):
5992         * glyphs-gtk.c (gtk_unmap_subwindow):
5993         * glyphs-gtk.c (gtk_map_subwindow):
5994         * glyphs-gtk.c (gtk_button_redisplay):
5995         * glyphs-msw.c:
5996         * glyphs-msw.c (init_image_instance_from_xbm_inline):
5997         * glyphs-x.c (init_image_instance_from_xbm_inline):
5998         * glyphs-x.c (extract_xpm_color_names):
5999         * glyphs-x.c (x_xpm_instantiate):
6000         * glyphs.c (get_image_instantiator_governing_domain):
6001         * glyphs.c (print_image_instance):
6002         * glyphs.c (image_instance_equal):
6003         * glyphs.c (image_instance_hash):
6004         * glyphs.c (encode_image_instance_type):
6005         * glyphs.c (make_image_instance_1):
6006         * glyphs.c (inherit_instantiate):
6007         * glyphs.c (image_instantiate):
6008         * glyphs.c (allocate_glyph):
6009         * glyphs.c (Fglyph_type):
6010         * glyphs.c (redisplay_subwindow):
6011         * glyphs.c (display_table_entry):
6012         * gtk-glue.c (xemacs_list_to_gtklist):
6013         * gtk-glue.c (xemacs_gtklist_to_list):
6014         * gtk-glue.c (xemacs_list_to_array):
6015         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6016         * gutter.c (gutter_was_visible):
6017         * gutter.c (get_gutter_coords):
6018         * input-method-xlib.c (get_XIM_input):
6019         * insdel.c (bufpos_to_bytind_func):
6020         * insdel.c (bytind_to_bufpos_func):
6021         * insdel.c (move_gap):
6022         * intl.c (x_get_composed_input):
6023         * keymap.c (keymap_lookup_directly):
6024         * keymap.c (keymap_delete_inverse_internal):
6025         * keymap.c (ensure_meta_prefix_char_keymapp):
6026         * keymap.c (accessible_keymaps_mapper_1):
6027         * keymap.c (where_is_recursive_mapper):
6028         * lisp.h:
6029         * lisp.h (ABORT):
6030         * lread.c (read_atom):
6031         * lstream.c (Lstream_delete):
6032         * lstream.c (make_lisp_buffer_stream_1):
6033         * macros.c (pop_kbd_macro_event):
6034         * malloc.c (malloc):
6035         * malloc.c (free):
6036         * marker.c (bi_marker_position):
6037         * marker.c (set_bi_marker_position):
6038         * menubar-gtk.c (menu_descriptor_to_widget_1):
6039         * menubar-msw.c (prune_menubar):
6040         * menubar-x.c (set_frame_menubar):
6041         * mule-charset.c (get_unallocated_leading_byte):
6042         * mule-charset.h (CHAR_LEADING_BYTE):
6043         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6044         * nt.c (init_environment):
6045         * nt.c (generate_inode_val):
6046         * ntproc.c (delete_child):
6047         * ntproc.c (_sys_read_ahead):
6048         * ntproc.c (create_child):
6049         * objects.c (color_instantiate):
6050         * objects.c (font_instantiate):
6051         * objects.c (face_boolean_instantiate):
6052         * print.c (printing_major_badness):
6053         * process-nt.c (nt_send_process):
6054         * process-unix.c (unix_send_process):
6055         * process.c (get_process):
6056         * ralloc.c (obtain):
6057         * ralloc.c (relinquish):
6058         * ralloc.c (relocate_blocs):
6059         * ralloc.c (resize_bloc):
6060         * ralloc.c (r_alloc_free):
6061         * ralloc.c (r_re_alloc):
6062         * ralloc.c (r_alloc_thaw):
6063         * ralloc.c (init_ralloc):
6064         * ralloc.c (Free_Addr_Block):
6065         * ralloc.c (r_alloc):
6066         * redisplay-gtk.c (gtk_output_display_block):
6067         * redisplay-msw.c (mswindows_output_display_block):
6068         * redisplay-output.c (get_next_display_block):
6069         * redisplay-output.c (get_cursor_size_and_location):
6070         * redisplay-output.c (redisplay_output_layout):
6071         * redisplay-output.c (redisplay_clear_region):
6072         * redisplay-tty.c (tty_output_display_block):
6073         * redisplay-x.c (x_output_display_block):
6074         * redisplay.c (add_propagation_runes):
6075         * redisplay.c (add_glyph_rune):
6076         * redisplay.c (create_text_block):
6077         * redisplay.c (add_margin_runes):
6078         * redisplay.c (create_left_glyph_block):
6079         * redisplay.c (create_right_glyph_block):
6080         * redisplay.c (create_string_text_block):
6081         * redisplay.c (regenerate_window):
6082         * redisplay.c (REGEN_INC_FIND_START_END):
6083         * redisplay.c (redisplay_frame):
6084         * redisplay.c (point_in_line_start_cache):
6085         * regex.c:
6086         * regex.c (ABORT):
6087         * regex.c (re_compile_fastmap):
6088         * regex.c (re_match_2_internal):
6089         * regex.c (regerror):
6090         * scrollbar-gtk.c (gtk_scrollbar_loop):
6091         * scrollbar-gtk.c (scrollbar_cb):
6092         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6093         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6094         * scrollbar-x.c (x_update_scrollbar_instance_status):
6095         * scrollbar-x.c (x_scrollbar_loop):
6096         * scrollbar-x.c (x_update_frame_scrollbars):
6097         * search.c (search_command):
6098         * search.c (Fmatch_data):
6099         * select-x.c (motif_clipboard_cb):
6100         * signal.c (interrupt_signal):
6101         * specifier.c (specifier_add_spec):
6102         * specifier.c (specifier_instance_from_inst_list):
6103         * specifier.c (specifier_instance):
6104         * specifier.h:
6105         * specifier.h (struct specifier_methods):
6106         * strftime.c (add_num_time_t):
6107         * sunplay.c (init_device):
6108         * symbols.c (Fsetplist):
6109         * symbols.c (do_symval_forwarding):
6110         * symbols.c (store_symval_forwarding):
6111         * symbols.c (Fset):
6112         * symbols.c (Fbuilt_in_variable_type):
6113         * symbols.c (decode_magic_handler_type):
6114         * symbols.c (handler_type_from_function_symbol):
6115         * syntax.c (update_syntax_cache):
6116         * sysdep.c (init_baud_rate):
6117         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6118         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6119         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6120         * toolbar.c (get_toolbar_coords):
6121         * ui-gtk.c (build_gtk_boxed):
6122         * ui-gtk.c (describe_gtk_arg):
6123         * ui-gtk.c (gtk_type_to_lisp):
6124         * ui-gtk.c (lisp_to_gtk_type):
6125         * ui-gtk.c (lisp_to_gtk_ret_type):
6126         * ui-gtk.c (lisp_to_flag):
6127         * unexnt.c (read_in_bss):
6128         * unexnt.c (map_in_heap):
6129         * window.c (real_window):
6130         * window.c (window_display_lines):
6131         * window.c (window_display_buffer):
6132         * window.c (set_window_display_buffer):
6133         * window.c (window_modeline_height):
6134         * window.c (unshow_buffer):
6135         * window.c (window_loop):
6136         * window.c (Fget_lru_window):
6137         * window.c (Fsplit_window):
6138         * window.c (Fset_window_configuration):
6139         * window.c (saved_window_index):
6140         * xgccache.c (gc_cache_lookup):
6141         abort() -> ABORT().  Eliminate preprocessor games with abort()
6142         since it creates huge problems in VC7, solvable only by including
6143         massive amounts of files in every compile (and not worth it).
6144
6145         * sysdep.c:
6146         * sysproc.h:
6147         Inclusion of process.h does not need to be before lisp.h any more.
6148         Move later and remove comment about abort().
6149
6150 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6151
6152         * regex.c (re_match_2_internal):
6153         Correctly initialize loop which clears uninitialized registers.
6154
6155 2005-01-28  Vin Shelton  <acs@xemacs.org>
6156
6157         * sheap.c (more_static_core): Applied Ben's version of the long
6158         string patch.
6159
6160 2005-01-24  Vin Shelton  <acs@xemacs.org>
6161
6162         * sheap.c (more_static_core): Reformatted printf string so
6163         gcc-3.3.3 will compile this on Cygwin.
6164
6165 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6166
6167         * console.c (function_key_map): Reference `key-binding'.
6168
6169         * keymap.c (Vkey_translation_map): Improve docstring.
6170
6171 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6172
6173         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6174         * window.c (window_loop): [fix] Take into account
6175         `allow-deletion-of-last-visible-frame' variable.
6176         * window.c (replace-buffer-in-windows): Ditto.
6177
6178 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6179
6180         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6181
6182 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6183
6184         * event-gtk.c: Recognise AltGr as a valid modifier.
6185
6186 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6187
6188         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6189
6190 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6191
6192         Fix backreference bug caught by test suite.
6193
6194         * regex.c (regex_compile):
6195         Make backref duplicate internal register.
6196
6197 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6198
6199         Documentation, code clarification, and warning suppression.
6200         
6201         * regex.c (regex_compile):
6202         Improve comments.
6203         (re_match_2_internal):
6204         Improve comments and avoid redundant braces.  [Most of the big hunk
6205         at l. 4710 is indentation; use diff -w to see the real changes.]
6206         (alt_match_null_string_p):
6207         (common_op_match_null_string_p):
6208         Avoid shadowing global on Mac OS X 10.4, at least.
6209
6210 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6211
6212         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6213         introduced with shy groups fix).  [Already applied, probably
6214         with the second "fix shy groups" patch of 2004-10-07.] 
6215
6216 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6217
6218         From Andrey Slusar <anrays@gmail.com>:
6219
6220         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6221
6222 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6223
6224         * Makefile (RECURSIVE_MAKE): Removed.
6225         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6226         handling parallel builds.
6227
6228 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6229
6230         * Makefile.in.in: Enable support for parallel builds.
6231
6232 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6233
6234         From Andrey Slusar <anrays@gmail.com>:
6235
6236         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6237         FreeBSD version is >= 199701 _and_ < 600006.
6238
6239 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6240
6241         * scrollbar.c (compute_scrollbar_instance_usage):
6242         Only call device method compute_scrollbar_instance_usage() if it
6243         is defined.
6244
6245 2004-12-05  Vin Shelton <acs@xemacs.org>
6246
6247         * XEmacs 21.4.16 is released
6248
6249 2004-12-04  Vin Shelton  <acs@xemacs.org>
6250
6251         * depend: Regenerated.
6252
6253 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6254
6255         * regex.c (re_match_2_internal): Map internal to external
6256         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6257         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6258
6259 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6260
6261         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6262         to fix a crash.  Also, check the buffer is live and it
6263         really exists in buffer_list.  If the buffer is not in the list,
6264         prepend it.
6265
6266 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6267
6268         Fix shy groups by implementing recording of all groups for
6269         repetition and backtracking.  Backport from 21.5.
6270         
6271         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6272         external_to_internal_register, external_to_internal_register_size,
6273         and update comments for re_nsub.
6274
6275         * regex.c (re_opcode_t): Update comments.
6276         (print_compiled_pattern): Ouput external_to_internal_register,
6277         external_to_internal_register_size, and re_ngroups for debugging.
6278         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6279         (regex_compile): Update header comment.
6280         Ensure that all groups are recorded so that repeat matches and
6281         backtracking work correctly.  Comment related warning for groups >
6282         255.
6283         (re_search_2): Construct map of API indexes (which count only
6284         nonshy groups) to internal register numbers, and keep it updated.
6285
6286 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6287
6288         * frame-gtk.c (gtk_make_frame_visible):
6289         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6290         show/hide.  This is what X uses and is prevents previously hidden
6291         widgets from suddenly reappearing.
6292         * gtk-xemacs.c (gtk_xemacs_paint):
6293         * gtk-xemacs.c (gtk_xemacs_draw):
6294         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6295         drawable.
6296         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6297         size and location changes so that they can be seen before the next
6298         idle event.  Without this rapid changes to scrollbar properties
6299         are not seen.
6300
6301 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6302
6303         * console-gtk.h:
6304         * console-gtk.h (struct gtk_frame):
6305         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6306           Add hash tables track tab_control callback data.
6307           Added #defines for GTK object data names.
6308           Declaration of gtk_widget_to_frame().
6309         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6310         * frame-gtk.c (gtk_widget_to_frame): New.
6311         * frame-gtk.c (gtk_create_widgets):
6312         * frame-gtk.c (allocate_gtk_frame_struct):
6313         * frame-gtk.c (gtk_mark_frame):
6314         Manage frame callbakc hash tables.
6315         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6316         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6317         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6318         of widget size.
6319         * glyphs-gtk.c (gtk_widget_query_geometry): New
6320         * glyphs-gtk.c (gtk_register_gui_item): New
6321         * glyphs-gtk.c (gtk_add_tab_item): New
6322         * glyphs-gtk.c (gtk_tab_control_callback): New
6323         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6324         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6325         Use correct list when loading item.
6326         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6327         Register new methods.
6328         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6329         default size, for widgets.
6330         * gui-x.c:  Improved comment.
6331         * menubar-gtk.c (__generic_button_callback): Use
6332         gtk_widget_to_frame instead of __get_channel.
6333         * scrollbar-gtk.c:
6334         * ui-gtk.c: Use symbolic names for GTK object data.
6335
6336 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6337
6338         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6339
6340 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6341
6342         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6343
6344 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6345
6346         * malloc.c (morecore): siz is a long because in some architectures
6347         (eg ia-64) an int cannot hold the address range.  Additional patch
6348         from the SuSe distribution.
6349
6350 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6351
6352         * emacs.c:
6353         * malloc.c: lim_data is a long because in some architectures
6354         (eg ia-64) an int cannot hold the address range.
6355         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6356         instead of ulimit() because ulimit() always returns -1.
6357
6358 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6359
6360         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6361
6362 2004-06-11  David Kastrup  <dak@gnu.org>
6363
6364         * search.c (match_limit): Don't flag an error if match-data
6365         exceeding the allocated search_regs.num_regs gets requested, just
6366         return Qnil.
6367
6368 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6369
6370         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6371         replace symbolic color entries with the real colors specified in
6372         xpm-color-symbols, before passing the XPM to gtk.
6373         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6374         instead of a GTK specific field, so that it is used in by generic
6375         code.
6376
6377 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6378
6379        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6380         coredump from deref of NULL ptr (ExtData)
6381
6382 2004-04-19  Jerry James  <james@xemacs.org>
6383
6384         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6385         VALBITS to compute the location of the sign bit.
6386         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6387         of VALBITS with EMACS_INT_MAX.
6388         * events.c (Fevent_timestamp): Ditto.
6389         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6390         compute the halfway point to timestamp wraparound.
6391         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6392         EMACS_INT_MIN instead of using VALBITS.
6393         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6394         incorrect number with VALBITS.
6395         * fns.c (Frandom): Correct number of integer bits in docstring.
6396         Use INT_VALBITS instead of VALBITS to compute the denominator.
6397         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6398         build random numbers.
6399
6400 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6401         * event-gtk.c:
6402         * event-gtk.c (gtk_event_to_emacs_event):
6403         * menubar-gtk.c:
6404         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6405         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6406         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6407         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6408         * menubar-gtk.c (__activate_menu):
6409         * menubar-gtk.c (convert_underscores):
6410         * menubar-gtk.c (remove_underscores):
6411         * menubar-gtk.c (menu_convert):
6412         * menubar-gtk.c (menu_descriptor_to_widget_1):
6413         * menubar-gtk.c (menu_descriptor_to_widget):
6414         * menubar-gtk.c (menu_can_reuse_widget):
6415         * menubar-gtk.c (menu_create_menubar):
6416         * menubar-gtk.c (gtk_popup_menu):
6417         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6418         Added support for Gtk menu bar and menu item mnemonics.
6419
6420 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6421
6422         * sysdll.c: (dll_function): Added support for finding symbols in
6423         Darwin shared libraries as well in Darwin bundles.
6424         * sysdll.c (image_for_address): New
6425         * sysdll.c (my_find_image): New
6426         * sysdll.c (search_linked_libs): New
6427
6428 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6429
6430         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6431         return to GTK requires a different API to marshalling data to use
6432         as GTK parameters.
6433         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6434
6435 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6436
6437         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6438
6439 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6440
6441         * glyphs.c (process_image_string_instantiator):
6442         (Fset_console_type_image_conversion_list):
6443         Stop GCC from warning about shadowing of `exp'.
6444
6445         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6446
6447 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6448
6449         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6450
6451 2004-02-03  Vin Shelton  <acs@xemacs.org>
6452
6453         * glyphs.c (image_instance_layout): Remove pointless assertion.
6454         * regex.c (regex_grow_registers): Return type is void.
6455
6456 2004-02-02  Vin Shelton <acs@xemacs.org>
6457
6458         * XEmacs 21.4.15 is released
6459
6460 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6461
6462         * device-x.c (x_error_handler): Don't call stderr_out
6463
6464 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6465
6466         * buffer.c (other-buffer): Clarify documentation of order of
6467         arguments for FSF Emacs.
6468
6469 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6470
6471         * window.c (Fdelete_window): Dirty the mirror structure _before_
6472         marking the window deleted.
6473
6474 2003-09-15  Jerry James  <james@xemacs.org>
6475
6476         * event-msw.c (debug_mswin_messages): Conditionally compile
6477         messages missing from the Cygwin headers.
6478
6479 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6480
6481         * data.c (eq_with_ebola_notice): Fix typo in comment.
6482         (Ftrue_list_p): Improve docstring.
6483
6484 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6485
6486         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6487
6488 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6489
6490         * search.c (trivial_regexp_p): Regexps containing "\{" are
6491         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6492         Stefan Monnier for suggesting a diagnosis.
6493
6494 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6495
6496         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6497
6498 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6499
6500         * search.c (Fsearch_forward):
6501         (Fsearch_backward):
6502         Document negative count.
6503
6504 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6505
6506         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6507
6508 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6509
6510         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6511
6512 2003-09-15  Vin Shelton  <acs@xemacs.org>
6513
6514         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6515         21.5.
6516
6517 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6518
6519         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6520         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6521         (re_match_2_internal): Use TRANSLATE instead of
6522         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6523         non-ASCII char case conversion.
6524
6525 2003-09-08  Mike Sperber  <mike@xemacs.org>
6526
6527         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6528         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6529
6530 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6531
6532        * .gdbinit (pobj): fix printing of symbol name.
6533
6534 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6535
6536         * frame-x.c (x_layout_widgets): When resizing is about to cause
6537         frame size slip, mark it for redisplay.
6538
6539 2003-08-18  Jerry James  <james@xemacs.org>
6540
6541         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6542
6543 2003-09-03  Vin Shelton <acs@xemacs.org>
6544
6545         * XEmacs 21.4.14 is released
6546
6547 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6548
6549         * config.h.in (REGEX_MALLOC): Make it configure'able.
6550
6551 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6552
6553         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6554         linking.
6555         * sysdll.c (dll_init):
6556         * sysdll.c (dll_open):
6557         * sysdll.c (dll_close):
6558         * sysdll.c (dll_function):
6559         * sysdll.c (dll_variable):
6560         * sysdll.c (dll_error):
6561         Add support for loading bundles using Darwin/MacOSX
6562         native API.
6563
6564 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6565
6566         * process.c (start-process-internal): Document coding systems.
6567
6568 2003-07-30  Jerry James  <james@xemacs.org>
6569
6570         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6571
6572 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
6573
6574         * event-msw.c (mswindows_enqueue_mouse_button_event):
6575         * event-msw.c (mswindows_wnd_proc):
6576           enqueue button event when scrollwheel event isn't handled by 
6577           mswindows_handle_mousewheel_event, such as when the scrollbars
6578           are not showing.
6579
6580 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
6581
6582         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
6583
6584 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
6585
6586         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
6587
6588 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
6589
6590         * regex.c (re_match_2_internal): Fix matching degenerate word
6591         boundaries.
6592
6593 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
6594
6595         * XEmacs 21.4.13 is released
6596
6597 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
6598
6599         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
6600         * lisp.h (<inttypes.h>):
6601         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
6602         the definition.
6603
6604 2003-03-15  Martin Buchholz  <martin@xemacs.org>
6605
6606         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
6607         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
6608         Result: "temacs can only be run in -batch mode."
6609         Fix: Check xemacs executable candidate for directory-ness.
6610
6611 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
6612
6613         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
6614           they conflict with <sys/types.h>.
6615
6616 2003-02-14  Martin Buchholz  <martin@xemacs.org>
6617
6618         * database.c: Berkeley DB wants __STDC__ to be defined.
6619
6620 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6621
6622         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
6623
6624 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6625
6626         * process-unix.c (unix_send_process): Fix C++ compile error.
6627
6628 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
6629
6630         * Added .dylib as an acceptable shared library file extension
6631         * to support MacOSX.
6632
6633 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6634
6635         * EmacsFrameP.h (EmacsFramePart):
6636         Kludge to allow compiling with Motif1, but linking with Motif2.
6637
6638 2003-01-28  Martin Buchholz  <martin@xemacs.org>
6639
6640         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
6641
6642
6643 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
6644
6645         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
6646
6647 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
6648
6649         * sysdll.c: Included lisp.h to define needed alloca_array.
6650
6651 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6652
6653         Make XEmacs redisplay 10 times faster.
6654         If, that is, you're using a slow X connection and MoveOpaque.
6655         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
6656         Use compress_motion = TRUE.
6657         * EmacsFrame.c (emacsFrameClassRec): 
6658         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
6659         * EmacsManager.c (emacsManagerClassRec):
6660         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
6661
6662 2003-01-30  Vin Shelton  <acs@xemacs.org>
6663
6664         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
6665
6666 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
6667
6668         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
6669         Patch by Martin Buchholz.
6670
6671 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
6672
6673         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
6674         Thanks to icc for warning and Martin Buchholz for reporting.
6675
6676 2003-01-29  Vin Shelton <acs@xemacs.org>
6677
6678         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
6679
6680         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
6681         remember to multiply by the element size.
6682
6683 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
6684
6685         * XEmacs 21.4.12 "Portable Code" is released.
6686
6687 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
6688
6689         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
6690         * s/cygwin.sc: new linker file.
6691
6692 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
6693
6694         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
6695
6696         * redisplay-x.c (x_output_string): Use X11-specified types.
6697         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
6698         * emacs.c (__free_hook): Use typeof with Intel compiler.
6699         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
6700
6701 2003-01-08  Andy Piper  <andy@xemacs.org>
6702
6703         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
6704         reserve size during unexec().
6705
6706 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
6707
6708         * process-unix.c (unix_create_process): Don't let outchannel block.
6709
6710 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
6711
6712         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
6713         Needed for IsBadReadPtr().
6714
6715 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
6716
6717         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
6718
6719 2002-12-14  Ben Wing  <ben@xemacs.org>
6720
6721         * callint.c: Declaration error.
6722         * dumper.c (pdump):
6723         * dumper.c (pdump_load): Warning fix.
6724         * process.c: GCPRO error.
6725         * glyphs.c (unmap_subwindow):
6726         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
6727         * event-stream.c (maybe_kbd_translate): Wrong argument to
6728         character_to_event().
6729
6730         * alloc.c (garbage_collect_1):
6731         * emacs.c:
6732         * emacs.c (debug_can_access_memory):
6733         * emacs.c (fatal_error_signal):
6734         * emacs.c (mswindows_handle_hardware_exceptions):
6735         * emacs.c (main_1):
6736         * emacs.c (main):
6737         * emacs.c (assert_failed):
6738         * emacs.c (syms_of_emacs):
6739         * lisp.h:
6740         * print.c:
6741         * print.c (std_handle_out_va):
6742         * print.c (write_string_to_stdio_stream):
6743         * print.c (write_fmt_string):
6744         * print.c (printing_badness):
6745         * print.c (printing_major_badness):
6746         * print.c (print_internal):
6747         * print.c (debug_print_no_newline):
6748         * print.c (debug_backtrace):
6749         Be more defensive in handling bad values when printing.  Add code
6750         from trunk involving inhibit_non_essential_printing_operations.
6751         When going down or in debug_print(), don't do external conversion
6752         and such and try really, really hard when printing to avoid core
6753         dumping.  Add force-debugging-signal, debug_break().
6754
6755 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
6756
6757         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
6758         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
6759
6760 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
6761
6762         * database.c: Fix open_database. Berkeley DB API has changed in
6763         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
6764
6765 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
6766
6767         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
6768
6769 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
6770
6771         * event-Xt.c (Xt_timeout):
6772         (Xt_timeout_callback):
6773         (emacs_Xt_add_timeout):
6774         (emacs_Xt_remove_timeout):
6775         (Xt_timeout_to_emacs_event):
6776         Turn completed_timeouts from a stack into a queue.  Fixes
6777         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
6778
6779 2002-11-07  Wolfram Gloger  <wg@malloc.de>
6780
6781         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
6782         * emacs.c (main): Assert that mmap'd allocation is disabled.
6783
6784 2002-10-14  Andy Piper  <andy@xemacs.org>
6785
6786         * glyphs-widget.c (layout_query_geometry): add in fiddle
6787         factor. Include border text in width layout calculation.
6788         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
6789
6790 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
6791
6792         * XEmacs 21.4.10 "Military Intelligence" is released.
6793
6794 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
6795
6796         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
6797         using the NAS private array SoundFileInfo that no longer exists in
6798         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
6799         and earlier.  This is broken for some versions between 1.5a and
6800         1.5f.
6801
6802 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
6803
6804         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
6805
6806         * emacs.c (shut_down_emacs): Improve crash message.
6807
6808 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
6809
6810         * file-coding.c (determine_real_coding_system): Check for coding
6811         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
6812         shebangs and Python PEP 263.
6813
6814 2002-10-08  Andy Piper  <andy@xemacs.org>
6815
6816         * glyphs-widget.c (layout_query_geometry): only resize dynamically
6817         if static sizes haven't been set.
6818
6819 2002-08-30  Mike Alexander  <mta@arbortext.com>
6820
6821         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
6822         to close a socket.
6823
6824 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
6825
6826         * callproc.c (child_setup): 21.4 doesn't have retry_close.
6827
6828 2002-09-20  Mike Sperber <mike@xemacs.org>
6829
6830         (This partially gets back my patch from 2002-07-20 without the
6831         bug.)
6832         * callproc.c (child_setup): Remove Ben's comment noting confusion
6833         over the file descriptors >= 3: close_process_descs() doesn't
6834         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
6835         * process-unix.c (unix_create_process): Call
6836         begin_dont_check_for_quit to inhibit unwanted interaction (and
6837         thus breaking of X event synchronicity) in the child.
6838
6839 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
6840
6841         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
6842         widget.
6843
6844 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
6845
6846         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
6847         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
6848         the xemacs process did not exit, but looped infinitely here.  This
6849         fixes that problem.
6850
6851 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6852
6853         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
6854         (find_context): Improve comments.
6855
6856         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
6857         (re_match_2): An XCHAR_TABLE operation was missing.
6858
6859         Many of the following changes were inspired by Andy Piper's (now
6860         obsolete) patch to make syntax-table text property lookup optional.
6861
6862         [Documentation]
6863
6864         * syntax.h (top level): Document semantics of syntax flags.
6865         * syntax.c (comstr_start, Fforward_comment): Improve comments.
6866         * syntax.c, syntax.h (top level): Document syntax cache better in
6867         comments.
6868
6869         [Instrument syntax caching (temporary change)]
6870
6871         * syntax.h (enum syntax_cache_statistics_functions, struct
6872         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
6873         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
6874         * syntax.c (scan_words, Fforward_comment, scan_lists,
6875         Fbackward_prefix_characters):
6876         * font-lock.c (find_context):
6877         Use them to instrument syntax caching. 
6878         * syntax.c (struct syntax_cache_statistics, scs_statistics,
6879         syntax_cache_statistics_function_names): New type and variables.
6880         * syntax.c (update_syntax_cache): Update and report statistics.
6881
6882         [Major syntax cache optimizations]
6883
6884         syntax.c (lookup_syntax_properties): Default off.
6885
6886         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
6887         * syntax.c (update_syntax_cache):
6888         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
6889
6890         [Minor syntax cache optimizations and code clarifications]
6891
6892         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
6893         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
6894         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
6895         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
6896         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
6897         (Code clarification.)
6898
6899         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
6900         scan_lists): Compute code from syncode, use Boolean macros instead
6901         of redundant masking operations.  (Code clarification; any decent
6902         compiler can do this optimization.)
6903
6904         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
6905         for clarity.
6906
6907         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
6908         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
6909         use F*_single_property_change instead of F*_extent_change.
6910         Currently F*_single_property_change is _much_ less efficient.
6911
6912         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
6913         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
6914         syntax_cache.object properly, don't leave Qt or Qnil.
6915         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
6916         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
6917         tests for Qt or Qnil.
6918
6919 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
6920
6921         * redisplay.c (point_in_line_start_cache): 
6922         * extents.c (print_extent_1):
6923         Fix warnings.
6924
6925         * extents.c (Fset_extent_property): Document `syntax-table' property.
6926
6927         * extents.h (Fnext_single_property_change): EXFUN it.
6928
6929 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6930
6931         * search.c (clear_unused_search_regs): New static function.
6932         (search_buffer): 
6933         (simple_search): 
6934         (boyer_moore):
6935         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
6936         Minor clarifications in comments.
6937
6938         * regex.c (re_match_2_internal): Ensure no stale submatches.
6939
6940 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6941
6942         * event-Xt.c (enqueue_focus_event): Add missing prototype.
6943
6944 2002-08-29  Jerry James  <james@xemacs.org>
6945
6946         * lisp.h: structrures -> structures.
6947
6948 2002-06-03  Andy Piper  <andy@xemacs.org>
6949
6950         * frame.c (frame_conversion_internal): add conversion appropriate
6951         for setting frame dimensions in pixels.
6952
6953         * console.h (struct console_methods): add device-specific widget
6954         layout functions.
6955
6956         * emacs.c (main_1): initialize glyph vars.
6957
6958         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
6959         (handle_focus_event_2): new function. Allow focus to
6960         be set to a particular window and widget.
6961         (enqueue_focus_event): new function. Create a
6962         synthetic focus event.
6963         (emacs_Xt_handle_magic_event): call
6964         handle_focus_event_2.
6965
6966         * frame.c (Fset_frame_pixel_height): new function. Allow
6967         pixel-based sizing. Does the right thing on character-oriented
6968         displays.
6969         (Fset_frame_pixel_width): ditto.
6970         (Fset_frame_pixel_size): ditto.
6971         (syms_of_frame): declare.
6972
6973         * general-slots.h: add :vertically-justify and
6974         :horizontally-justify.
6975
6976         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
6977         (mswindows_widget_border_width): new function.
6978         (mswindows_combo_box_instantiate): set border widths.
6979         (console_type_create_glyphs_mswindows): declare.
6980
6981         * glyphs-widget.c:
6982         (check_valid_justification): allow vertical and horizontal
6983         justification.
6984         (widget_border_width): new function. Call device methods.
6985         (widget_instance_border_width): ditto.
6986         (logical_unit_height): new function. Determine the height of a
6987         logical-unit. Logical units are intended to provide grid-like
6988         layout for subcontrols in a layout. If the layout is
6989         :vertically-justify top then subcontrols will be positioned on
6990         logical-unit boundaries, thus allowing adjacent subcontrols to
6991         line up.
6992         (widget_logical_unit_height): ditto for widgets.
6993         (redisplay_widget): misc cleanup.
6994         (widget_spacing): new function. Call device specific
6995         methods. Intended to be the default gap between adjacent widgets.
6996         (widget_query_geometry): use new spacing functions to determine
6997         appropriate geometry.
6998         (initialize_widget_image_instance): initialize horizontal and
6999         vertical justification.
7000         (widget_instantiate): use logica-units where appropriate for
7001         sizing large widgets.
7002         (button_query_geometry): use widget_instance_border_width.
7003         (tree_view_query_geometry): ditto.
7004         (tab_control_query_geometry): ditto.
7005         (edit_field_query_geometry): new function.
7006         (layout_update): pick up :justify, :horizontally-justify and
7007         :vertically-justify none of which worked previously. :justify is
7008         used as a fallback for both horizontal and vertical justification.
7009         (layout_query_geometry): use logical units to size appropriately.
7010         (layout_layout): ditto.
7011         (Fwidget_logical_to_character_width): new function. Allow users to
7012         convert from logical units to characters so that frame sizes can
7013         be set appropriately.
7014         (Fwidget_logical_to_character_height): ditto.
7015         (syms_of_glyphs_widget): declare.
7016         (image_instantiator_edit_fields): add edit_field_query_geometry.
7017         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7018         :horizontally-justify.
7019         (specifier_vars_of_glyphs_widget): new function. Declare
7020         Vwidget_border_width which is not yet used.
7021
7022         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7023         (x_widget_border_width): new function.
7024         (x_widget_instantiate): create a sensible name for widgets.
7025         (console_type_create_glyphs_x): declare x_widget_border_width.
7026
7027         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7028         (struct Lisp_Image_Instance): add :vertically-justify and
7029         :horizontally-justify.
7030         (LAYOUT_JUSTIFY_TOP): new.
7031         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7032         (ROUND_UP): new macro. Round argument up to next integral
7033         interval.
7034
7035         * redisplay-output.c (redisplay_output_layout): misc formatting.
7036
7037         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7038
7039 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7040
7041         * XEmacs 21.4.9 "Informed Management" is released.
7042
7043 2002-08-19  Andy Piper  <andy@xemacs.org>
7044
7045         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7046         win32 format.
7047
7048         * realpath.c (xrealpath): normalize drive spec also so that dir
7049         sep chars are not mixed on cygwin.
7050
7051 2002-08-06  Jerry James  <james@xemacs.org>
7052
7053         * window.c (Fsplit_window): Count only half of the divider width
7054         against the left window when splitting horizontally. 
7055
7056 2002-06-24  Andy Piper  <andy@xemacs.org>
7057
7058         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7059         toolbar was cleared.
7060
7061         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7062         function. Split out from mswindows_output_frame_toolbars.
7063         (mswindows_output_frame_toolbars): move clear pieces to
7064         mswindows_output_frame_toolbars.
7065
7066         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7067         out from gtk_output_frame_toolbars.
7068         (gtk_output_frame_toolbars): move clear pieces to
7069         gtk_clear_frame_toolbars.
7070
7071         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7072         the frame is cleared. How this ever worked before is a mystery.
7073         (x_output_frame_toolbars): Only output toolbars.
7074         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7075
7076         * gutter.c (update_gutter_geometry):
7077         Mark frame layout changed.
7078         (update_frame_gutter_geometry, update_frame_gutters):
7079         Respect frame_layout_changed.
7080
7081         * console.h (struct console_methods): add
7082         clear_frame_toolbars_method.
7083
7084         * redisplay.c (redisplay_frame): call
7085         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7086
7087         * toolbar.h: declare update_frame_toolbars_geometry.
7088
7089         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7090         out from update_frame_toolbars.  Call clear_frame_toolbars.
7091         (update_frame_toolbars): only output, do not change geometry.
7092
7093         * redisplay.c: add frame_layout_changed.
7094
7095         * redisplay.h: add frame_layout_changed.
7096         (CLASS_RESET_CHANGED_FLAGS): set it.
7097         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7098         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7099         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7100
7101         * device.h (struct device): add frame_layout_changed.
7102         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7103
7104         * frame.h (struct frame): add frame_layout_changed.
7105         (MARK_FRAME_LAYOUT_CHANGED): new.
7106
7107 2002-06-30  Mike Alexander  <mta@arbortext.com>
7108
7109         * event-msw.c (mswindows_need_event): Don't wait for a new message
7110         if the queue is not empty.  Suggested by Paul Moore.
7111
7112 2002-06-12  Andy Piper  <andy@xemacs.org>
7113
7114         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7115         for printing on accurately.
7116
7117 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7118
7119         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7120         WM_ACTIVATE message. Make sure that the frame is visible if the
7121         window is visible. This seemss to fix the problem where XEmacs
7122         appears to freeze after switching desktops with certain virtual
7123         window managers.
7124         (debug_output_mswin_message): Added code to output message
7125         parameters for WM_WINDOWPOSCHANGED, 
7126         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7127
7128 2002-05-25  Andy Piper  <andy@xemacs.org>
7129
7130         * select-x.c (vars_of_select_x): Fix docstring of
7131         x-selection-strict-motif-ownership
7132
7133 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7134
7135         * keymap.c (get_keymap):
7136         Add comment about do_autoload GCPROs own args.
7137
7138 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7139
7140         * bytecode.c (execute_optimized_program): check_opcode ifdef
7141         ERROR_CHECK_BYTE_CODE.
7142
7143 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7144
7145         Thanks to Ben Wing and Michael Sperber.
7146
7147         * eval.c (Fcommand_execute):
7148         (Feval):
7149         (Ffuncall):
7150         (Fmacroexpand_internal):
7151         (function_argcount):
7152         callint.c (Fcall_interactively):
7153         Add comment about do_autoload GCPROs own args.
7154
7155         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7156
7157         * eval.c (Ffuncall): Extra braces to placate GCC.
7158
7159 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7160
7161         * backtrace.h (grow_specpdl):
7162         (SPECPDL_RESERVE):
7163         * EmacsFrame.c (EmacsFrameSetValues):
7164         * eval.c (grow_specpdl):
7165         * ExternalShell.c (hack_event_masks_1):
7166         * glyphs-x.c (convert_EImage_to_XImage): 
7167         (x_finalize_image_instance):
7168         * ralloc.c (page_size):
7169         (r_alloc_sbrk):
7170         * xgccache.c (gc_cache_hash):
7171         Fix unsigned comparison warnings.
7172
7173 2002-07-29  Jerry James  <james@xemacs.org>
7174
7175         * lread.c (locate_file): Any nonnegative return value indicates
7176         success if MODE is nonnegative.
7177
7178 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7179
7180         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7181         argument. 
7182
7183 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7184
7185         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7186
7187         * dumper.c (pdump_get_indirect_count):
7188         (pdump_scan_by_alignment):
7189         (pdump_dump_root_struct_ptrs):
7190         (pdump_dump_rtables):
7191         (pdump_dump_root_objects):
7192         (pdump):
7193         * nas.c (WaveOpenDataForReading):
7194         * fns.c (print_bit_vector):
7195         * font-lock.c (SINGLE_SYNTAX_STYLE):
7196         * glyphs.c (check_for_ignored_expose):
7197         (find_matching_subwindow):
7198         * glyphs-eimage.c:
7199         * imgproc.c (get_histogram):
7200         * redisplay.c (point_in_line_start_cache):
7201         * redisplay-output.c (redisplay_unmap_subwindows):
7202         * symbols.c (defsymbol_massage_name_1):
7203         (defkeyword_massage_name):
7204         (deferror_massage_name_and_message):
7205         * redisplay-x.c (x_output_string): 
7206         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7207         * frame.h (struct frame):
7208         * filelock.c (current_lock_owner):
7209         * doprnt.c (emacs_doprnt_1):
7210         * lisp.h (struct Lisp_Bit_Vector):
7211         (DO_REALLOC):
7212         Fix warnings.
7213
7214 2002-02-13  Ben Wing  <ben@xemacs.org>
7215
7216         * event-stream.c (reset_key_echo):
7217         * event-stream.c (reset_this_command_keys):
7218         * event-stream.c (execute_command_event):
7219         If console is dead as a result of C-x 5 0, then post-command stuff
7220         needs to be careful and do only non-console-specific stuff.
7221
7222 2002-07-01  Mike Sperber <mike@xemacs.org>
7223
7224         * process-unix.c (unix_send_process): Mark coding_outstream as
7225         non-open upon SIGPIPE.
7226
7227         * event-stream.c (Fnext_event): Reorder switch cases to something
7228         that makes sense.
7229
7230 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7231
7232         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7233         Don't bogusly reinitialize ascii_character property.
7234
7235 2002-07-08  Mike Sperber <mike@xemacs.org>
7236
7237         * process.c (Fstart_process_internal): Do error checking before we
7238         fork off the child, so the child can't muck with the state of the
7239         parent.
7240
7241 2002-07-08  Mike Sperber <mike@xemacs.org>
7242
7243         * ralloc.c (init_ralloc): Allocate properly for pdump.
7244
7245 2002-06-12  Andy Piper  <andy@xemacs.org>
7246
7247         * glyphs.c (query_string_geometry): check the string.
7248
7249         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7250         widget names.
7251
7252 2002-06-17  Jerry James  <james@xemacs.org>
7253
7254         * sysdll.c: Remove RTLD_GLOBAL initialization.
7255         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7256
7257 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7258
7259         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7260
7261 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7262
7263         * sysdep.c (sys_rename): Make sys_rename work for the case where
7264         Windows rename sets errno to EACCES if target file exists.
7265
7266 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7267
7268         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7269         Fix detection of metric units to work on Win95
7270
7271 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7272
7273         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7274
7275 2002-04-25  Andy Piper  <andy@xemacs.org>
7276
7277         * redisplay.c (create_text_block): Remove extra comment trailer.
7278
7279 2002-04-24  Andy Piper  <andy@xemacs.org>
7280
7281         * redisplay.c (create_text_block): Don't actually add propagation
7282         data if the line ends after we have added a glyph.
7283
7284 2002-04-22  Andy Piper  <andy@xemacs.org>
7285
7286         * extents.c (extent_fragment_update): check for glyphs we have
7287         previously displayed.
7288         * extents.c (print_extent_1): warning removal.
7289         * extents.h: change prototype.
7290         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7291         widths correctly for wide glyphs.
7292         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7293         * redisplay.c (prop_type): add PROP_GLYPH.
7294         * redisplay.c (struct prop_block): add glyph type
7295         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7296         to the propagation data.
7297         * redisplay.c (create_text_block): if there is a glyph in the
7298         propagation data use it to salt extent_fragment_update.
7299         * redisplay.c (create_string_text_block): ditto.
7300
7301 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7302
7303         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7304         * redisplay-output.c (compare_runes): Compare them.
7305         * redisplay.c: Update copyright date.
7306         * redisplay.c (pos_data): Add need_baseline_computation field.
7307         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7308         need_baseline_computation; zero yoffset. Set max_pixmap_height
7309         for all pixmaps, not just automatically positioned ones.
7310         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7311         * redisplay.c (calculate_baseline): New, compute textual baseline.
7312         * redisplay.c (add_glyph_rune): Call them.
7313         * redisplay.c (create_text_block): Likewise.
7314         * redisplay.c (create_overlay_glyph_block): Likewise.
7315         * redisplay.c (add_margin_runes): Likewise.
7316         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7317
7318         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7319         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7320         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7321         * redisplay-msw.c (mswindows_output_string): Likewise.
7322         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7323         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7324         * redisplay-x.c (x_output_display_block): Likewise.
7325
7326 2002-03-28  Ben Wing  <ben@xemacs.org>
7327
7328         * redisplay.c: Fixed bug in redisplay
7329         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7330         and down of the lines, since they're bigger than the line
7331         size. (It was seen most obviously when there's a horizontal scroll
7332         bar, e.g. do C-h a glyph or something like that.) The problem was
7333         that the glyph-contrib-p setting on glyphs was ignored even if it
7334         was set properly, which it wasn't until now.
7335
7336 2002-04-24  Andy Piper  <andy@xemacs.org>
7337
7338         * lisp.h (Dynarr_end): Fix definition.
7339
7340 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7341
7342         * redisplay.c (mark_redisplay): Remove call to
7343         update_frame_window_mirror.
7344
7345 2001-11-15  Andy Piper  <andy@xemacs.org>
7346
7347         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7348         cygwin (again).
7349
7350 2002-02-13  Andy Piper  <andy@xemacs.org>
7351
7352         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7353         we did in fact enqueue the XM_MAPFRAME event.
7354
7355 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7356
7357         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7358         to fix problem switching between virtual desktops under virtuawin
7359         virtual window manager.
7360
7361 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7362
7363         * event-msw.c: Typo fix.
7364         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7365         magic XM_MAPFRAME event has been sent.
7366
7367 2001-11-23  Andy Piper  <andy@xemacs.org>
7368
7369         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7370
7371 2001-11-21  Andy Piper  <andy@xemacs.org>
7372
7373         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7374         mouse events outside the frame.
7375
7376 2002-03-20  Andy Piper  <andy@xemacs.org>
7377
7378         * menubar-msw.c (mswindows_popup_menu): warning removal.
7379         * dialog-msw.c (dialog_popped_down): ditto.
7380
7381 2001-12-11  Andy Piper  <andy@xemacs.org>
7382
7383         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7384         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7385         popup_up_p.
7386         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7387         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7388         * menubar-msw.c (mswindows_popup_menu): ditto.
7389
7390 2001-10-29  Andy Piper  <andy@xemacs.org>
7391
7392         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7393         cancels.
7394
7395 2002-01-03  Andy Piper  <andy@xemacs.org>
7396
7397         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7398         letters.
7399         (xrealpath): ditto.
7400
7401 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7402
7403         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7404         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7405         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7406         Detect and handle case where machine is set up for metric units
7407
7408 2002-04-02  Andy Piper  <andy@xemacs.org>
7409
7410         * dired-msw.c (mswindows_get_files): 
7411         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7412         completely handled by XEmacs. Suggested by Thomas Vogler
7413         <mail@thomas-vogler.de>.
7414
7415 2001-11-14  Andy Piper  <andy@xemacs.org>
7416
7417         * nt.c (REG_ROOT): change registry key to XEmacs.
7418
7419 2002-04-27  Andy Piper  <andy@xemacs.org>
7420
7421         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7422
7423 2002-04-26  Andy Piper  <andy@xemacs.org>
7424
7425         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7426         behavior.
7427
7428 2002-03-14  Mike Alexander  <mta@arbortext.com>
7429
7430         * event-msw.c (mswindows_unwait_process): New, remove process from
7431         wait list
7432         * process-nt.c (nt_finalize_process_data): Call
7433         mswindows_unwait_process
7434         * console-msw.h: Declare mswindows_unwait_process
7435
7436 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7437
7438         * editfns.c (Fdecode_time):
7439         (Fformat_time_string):
7440         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7441         (make_time): Warning elimination (change arg name).
7442
7443 2001-11-24  Andy Piper  <andy@xemacs.org>
7444
7445         * window.c (Fsplit_window): Doc return type.
7446
7447 2002-04-01  Andy Piper  <andy@xemacs.org>
7448
7449         * emacs.c (Fkill_emacs): Only output message box in interactive
7450         mode.
7451
7452 2002-04-26  Andy Piper  <andy@xemacs.org>
7453  
7454         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7455         cygwin.
7456
7457 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7458
7459         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7460         bit platform.
7461
7462 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7463
7464         * XEmacs 21.4.8 "Honest Recruiter" is released.
7465
7466 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7467
7468         Supersedes 2002-04-17 patch.
7469
7470         * process.h (PROCESS_LIVE_P): Use the process status as
7471         evidence of health, not the state of the input stream.
7472         (PROCESS_READABLE_P): Say if the process is readable
7473         from. (It may be dead nonetheless.)
7474         (CHECK_READABLE_PROCESS): Test for that condition.
7475
7476         * process.c (create_process): Use PROCESS_READABLE_P.
7477         (read_process_output, set_process_filter): Likewise.
7478
7479         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7480         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7481
7482         This code is #if 0'd, this is not the time to add new functions:
7483
7484         * process.c (Fprocess_readable_p): Report readability status.
7485         * process.c (Qprocess_readable_p): New, associated symbol...
7486         * process.c (syms_of_process): ... initialize it.
7487
7488 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7489
7490         * XEmacs 21.4.7 "Economic Science" is released.
7491
7492 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7493
7494         * process.h (PROCESS_LIVE_P): Use the process status as
7495         evidence of health, not the state of the input stream.
7496
7497 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7498
7499         * sysdep.c (sys_siglist): change "signum" to "signal"
7500
7501 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7502
7503         * s/darwin.h: New file.
7504         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7505         
7506 2002-04-23  Andreas Jaeger  <aj@suse.de>
7507
7508         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7509         which use lib64 for 64-bit libs.
7510         (START_FILES): Likewise.
7511
7512 2002-02-11  Mike Sperber  <mike@xemacs.org>
7513
7514         * device-x.c: 
7515         (x_IO_error_handler):
7516         (x_init_device): Temporarily keep device in static variable
7517         `device_being_initialized' so we can recover gracefully from
7518         internal XOpenDevice failure.  (XOpenDevice is documented to
7519         return NULL on failure, but sometimes calls the IO error handler
7520         instead.)
7521
7522 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7523
7524         * dired.c (Ffile_name_all_completions): Change documentation --
7525         remove reference to completion-ignored-extensions.
7526         * dired.c (vars_of_dired): Change documentation for
7527         completion-ignored-extensions -- remove reference to
7528         file-name-all-completions.
7529
7530 2002-03-06  Jerry James  <james@xemacs.org>
7531
7532         * emodules.c (emodules_load): Fix multiple loading of same module.
7533
7534 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7535         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7536         RTLD_LAZY to avoid incorrect symbol binding when using nested
7537         shared libraries on Solaris.
7538
7539 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7540
7541         * fileio.c (Ffind_file_name_handler): Improve docstring.
7542
7543 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7544
7545         * fns.c (Fmapconcat): Improve docstring.
7546
7547 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7548
7549         * device-gtk.c: Add prototype for
7550         emacs_gtk_selection_clear_event_handle.
7551         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7552         selection.  Setup signal handler for "selection_clear_event"
7553         (emacs_gtk_selection_clear_event_handle).
7554
7555         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7556         other applications owning the clipboard (based on
7557         x_handle_selection_clear).
7558
7559 2001-12-23  William M. Perry  <wmperry@gnu.org>
7560
7561         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7562         
7563 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7564
7565         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7566
7567 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7568
7569         * XEmacs 21.4.6 "Common Lisp" is released.
7570
7571 2001-12-16  Torsten Duwe  <duwe@caldera.de>
7572
7573         * search.c (Freplace_match): Add missing sub-expression functionality.
7574
7575         * buffer.c (decode_buffer): Add a check for pointer type to
7576         decode_buffer, before gcc's CSE optimization reorders a
7577         dereference in front of the allow_string test.
7578
7579 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
7580
7581         * window.c (window_loop): Fix bug that sometimes prevented
7582         window_loop() from iterating across multiple devices.  Also, at
7583         Ben's request, changed infloop-detecting code to abort() instead
7584         of silently terminating window_loop().
7585
7586 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
7587
7588         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
7589         * editfns.c (make_time): New function.
7590         (Fencode_time): Use it instead of wasteful_word_to_lisp.
7591         * lisp.h (make_time): Prototype and comment it.
7592         * dired.c (wasteful_word_to_lisp): Deprecate.
7593         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
7594
7595 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
7596
7597         * fileio.c (auto_save_1): Use current coding system, not
7598         escape-quoted.
7599
7600 2001-11-13  Ben Wing  <ben@xemacs.org>
7601
7602         * window.c:
7603         * window.c (window_truncation_on):
7604         * window.c (syms_of_window):
7605         truncate-partial-width-windows should respect the buffer being
7606         displayed, like other redisplay vars.
7607
7608 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
7609
7610         * event-stream.c (Fread_key_sequence): save current buffer.
7611
7612 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7613
7614         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
7615
7616 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7617
7618         * alloc.c (lcrecord_stats): Add space for types defined in modules.
7619
7620 2001-10-26  Mike Alexander  <mta@arbortext.com>
7621
7622         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
7623
7624 2001-10-25  Andy Piper  <andy@xemacs.org>
7625
7626         * ChangeLog:
7627         * dialog-msw.c (handle_directory_proc): new function.
7628          (handle_directory_dialog_box): new fucntion.
7629          (handle_file_dialog_box): use new directory dialog support.
7630          (mswindows_make_dialog_box_internal): ditto.
7631         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
7632         handling.
7633         (mswindows_find_frame): make global.
7634         * fileio.c (Fexpand_file_name): build fix.
7635         * general-slots.h: add Qdirectory.
7636         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
7637         handling.
7638         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
7639         cygwin not leaving win32 paths unchanged.
7640         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
7641         cygwin runtime to do path conversion.
7642         (Fmswindows_shell_execute): fix cygwin handling of URLs.
7643         (syms_of_win32): add new function.
7644         * window.c (window_loop): build fix.
7645
7646 2001-10-15  Andy Piper  <andy@xemacs.org>
7647
7648         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
7649
7650 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
7651
7652         * XEmacs 21.4.5 "Civil Service" is released.
7653
7654 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
7655
7656         * glyphs-x.c: Force buffer-tab highlight update when moving the
7657         buffer, avoiding an ugly black border, used for keyboard focus
7658         indication, on a widget that can never have keyboard focus, the
7659         buffer tab.
7660
7661 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
7662
7663         * process-unix.c (unix_open_multicast_group): Remove too much
7664         conversion between host and network byte order.
7665
7666 2001-09-10  Nix  <nix@esperi.demon.co.uk>
7667
7668         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
7669         before replacing them.
7670
7671         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
7672         operation.
7673
7674         * src/window.c (undedicate_windows): Use it.
7675         * src/window.h: Add prototype.
7676
7677 2001-09-17  Ben Wing  <ben@xemacs.org>
7678
7679         * fileio.c (normalize_filename):
7680         * fileio.c (Fexpand_file_name):
7681         Fix various C++ compile errors in Andy's recent code.
7682         
7683         * callint.c (Fcall_interactively):
7684         * editfns.c (Ftemp_directory):
7685         * editfns.c (Fuser_full_name):
7686         * emacs.c (argmatch):
7687         * lread.c (locate_file_map_suffixes):
7688         * redisplay-x.c (x_ring_bell):
7689         Fix sign-compare warnings.
7690         
7691 2001-09-08  Andy Piper  <andy@xemacs.org>
7692
7693         * fileio.c (normalize_filename): copied from nt.c
7694         * (Ffile_name_directory): enable win32 paths under cygwin.
7695         * (Ffile_name_nondirectory): ditto.
7696         * (directory_file_name): ditto.
7697         * (Fexpand_file_name): ditto.
7698         * (Ffile_truename): ditto.
7699         * (Fsubstitute_in_file_name): ditto.
7700         * (Ffile_name_absolute_p): ditto.
7701         * (Ffile_readable_p): ditto.
7702
7703 2001-09-08  Andy Piper  <andy@xemacs.org>
7704
7705         * device-msw.c (mswindows_finish_init_device): remove dde
7706         initialization.
7707         * device-msw.c (mswindows_init_dde): factor out from
7708         mswindows_finish_init_device()
7709         * device-msw.c (init_mswindows_very_early): new function
7710         initialize but don't enable dde.
7711         * emacs.c (main_1): call init_mswindows_very_early.
7712         * event-msw.c:
7713         * event-msw.c (mswindows_dde_callback): only execute when we are
7714         ready.
7715         * symsinit.h: declare init_mswindows_very_early.
7716
7717 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7718
7719         [sjt: This has been in 21.5 for months with no complaints.]
7720
7721         * console.h (struct console_methods): Added flags member.
7722         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
7723         (CONMETH_IMPL_FLAG):
7724         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
7725         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7726
7727         * device.c (window_system_pixelated_geometry): Use the above macros.
7728
7729         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
7730         implememntation flag.
7731         * device.h (DEVICE_DISPLAY_P): Use it.
7732
7733         * frame.c (delete_frame_internal): Use the above macro.
7734
7735         * redisplay.c (redisplay_device): Use it.
7736         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7737         (redisplay_frame): Ditto.
7738
7739         * device-msw.c (mswindows_device_implementation_flags): Removed.
7740         (msprinter_device_implementation_flags): Removed.
7741         (console_type_create_device_mswindows): Removed references to
7742         implementation_flags methods, set implementation flags here.
7743         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
7744
7745         * device-gtk.c (gtk_device_implementation_flags): Removed method.
7746         (console_type_create_device_gtk): Removed method declaration.
7747         Added commented out statement which semantically matches the
7748         commented out statement in the above removed method.
7749
7750 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
7751
7752         The attached patch fixes a few warnings. 
7753
7754         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
7755         * src/frame-gtk.c: guard against GNOME calls in GTK only
7756         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
7757         * src/select-gtk.c: prototype lisp_to_time
7758
7759 2001-06-08  Ben Wing  <ben@xemacs.org>
7760
7761         ------ gc-in-window-procedure fixes ------
7762         
7763         * alloc.c:
7764         * alloc.c (struct post_gc_action):
7765         * alloc.c (register_post_gc_action):
7766         * alloc.c (run_post_gc_actions):
7767         * alloc.c (garbage_collect_1):
7768         Create "post-gc actions", to avoid those dreaded "GC during window
7769         procedure" problems.
7770
7771         * event-msw.c:
7772         Abort, clean and simple, when GC in window procedure.  We want
7773         to flush these puppies out.
7774
7775         * glyphs-msw.c:
7776         * glyphs-msw.c (finalize_destroy_window):
7777         * glyphs-msw.c (mswindows_finalize_image_instance):
7778         Use a post-gc action when destroying subwindows.
7779
7780         * lisp.h:
7781         Declare register_post_gc_action().
7782
7783         * scrollbar-msw.c:
7784         * scrollbar-msw.c (unshow_that_mofo):
7785         Use a post-gc action when unshowing scrollbar windows, if in gc.
7786
7787         * redisplay.c (mark_redisplay):
7788         Add comment about the utter evilness of what's going down here.
7789
7790         ------ cygwin setitimer fixes ------
7791         
7792         * Makefile.in.in (sheap_objs):
7793         * Makefile.in.in (profile_objs):
7794         * Makefile.in.in (objs):
7795         Compile profile.c only when HAVE_SETITIMER.
7796         
7797         * nt.c (mswindows_sigset):
7798         * nt.c (mswindows_sighold):
7799         * nt.c (mswindows_sigrelse):
7800         * nt.c (mswindows_sigpause):
7801         * nt.c (mswindows_raise):
7802         * nt.c (close_file_data):
7803         Style fixes.
7804         
7805         * nt.c:
7806         Move setitimer() emulation to win32.c, because Cygwin needs it too.
7807         
7808         * profile.c:
7809         * profile.c (Fstart_profiling):
7810         * profile.c (Fstop_profiling):
7811         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
7812         instead of just plain setitimer().
7813         
7814         * signal.c:
7815         * signal.c (set_one_shot_timer):
7816         * signal.c (alarm):
7817         Define qxe_setitimer() as an encapsulation around setitimer() --
7818         call setitimer() directly unless Cygwin or MS Win, in which case
7819         we use our simulated version in win32.c.
7820         
7821         * systime.h:
7822         * systime.h (struct itimerval):
7823         * systime.h (ITIMER_REAL):
7824         Prototype mswindows_setitimer() and qxe_setitimer().  Long
7825         comment about "qxe" and the policy regarding encapsulation.
7826
7827         * win32.c:
7828         * win32.c (setitimer_helper_proc):
7829         * win32.c (setitimer_helper_period):
7830         * win32.c (setitimer_helper):
7831         * win32.c (mswindows_setitimer):
7832         Move setitimer() emulation here, so Cygwin can use it.
7833         Rename a couple of functions and variables to be longer and more
7834         descriptive.  In setitimer_helper_proc(), send the signal
7835         using either mswindows_raise() or (on Cygwin) kill().  If for
7836         some reason we are still getting lockups, we'll change the kill()
7837         to directly invoke the signal handlers.
7838
7839         ------ windows shell fixes ------
7840         
7841         * callproc.c:
7842         * ntproc.c:
7843         Comments about how these two files must die.
7844
7845         * callproc.c (init_callproc):
7846         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
7847         not just COMSPEC. (more correct and closer to FSF.) Don't
7848         force a value for SHELL into the environment. (Comments added
7849         to explain why not.)
7850         
7851         * nt.c (init_user_info):
7852         Don't shove a fabricated SHELL into the environment.  See above.
7853
7854 2001-06-01  Ben Wing  <ben@xemacs.org>
7855
7856         * Makefile.in.in (ldflags):
7857         eliminate that pesky "defaulting to 00401000" warning.
7858         * nt.h:
7859         eliminate warnings.
7860
7861 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
7862
7863         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
7864         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
7865
7866 2001-04-24  Jerry James <james@xemacs.org>
7867
7868         * faces.h: pass parameters to Fadd_spec_to_specifier in the
7869         correct order.
7870
7871 2001-06-01  Ben Wing  <ben@xemacs.org>
7872
7873         * event-msw.c (debug_mswin_messages):
7874         conditionalize the messages that were causing compile errors.
7875         (if only macros could generate #ifdef statements ...)
7876
7877 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
7878
7879         * XEmacs 21.4.4 "Artificial Intelligence" is released.
7880
7881 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7882
7883         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
7884
7885 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7886
7887         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
7888         * process-unix.c (unix_canonicalize_host_name):
7889         sysdep.c (init_system_name):
7890         Use it to conditionally support IPv6 canonicalization.
7891
7892 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
7893
7894         * event-msw.c:
7895         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
7896
7897 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
7898
7899         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
7900         attempt is made to scroll when no scroll bar is available.
7901
7902 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7903
7904         * input-method-motif.c (XIM_delete_frame): New callback.
7905         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
7906         got deleted from 21.4.3.)
7907
7908 2001-06-01  Ben Wing  <ben@xemacs.org>
7909
7910         * nt.c (mswindows_utime):
7911         * nt.c (close_file_data):
7912         fix off-by-one-indirection error.
7913
7914 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
7915
7916         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
7917         because set_file_times() now takes Lisp_Object path, instead of
7918         char*.
7919         * nt.c: Include buffer.h.
7920         * nt.c (convert_from_time_t): New.
7921         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
7922         not set mtime correctly.
7923         * nt.h: Declare mswindows_utime().
7924         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
7925         path, instead of char*.
7926         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
7927
7928 2001-05-30  Ben Wing  <ben@xemacs.org>
7929
7930         For 21.4:
7931
7932         (Stephen, just take all event-msw.c patches.  This includes
7933         the "iconify" fix below.)
7934
7935         * event-msw.c:
7936         * event-msw.c (mswindows_dequeue_dispatch_event):
7937         * event-msw.c (assert):
7938         * event-msw.c (emacs_mswindows_quit_p):
7939         * event-msw.c (debug_mswin_messages):
7940         * event-msw.c (debug_output_mswin_message):
7941         * event-msw.c (vars_of_event_mswindows):
7942         Fix yet more problems with C-g handling.
7943         Implement debug-mswindows-events.
7944         
7945 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7946
7947         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
7948         
7949 2001-05-23  Ben Wing  <ben@xemacs.org>
7950
7951         * event-msw.c (winsock_writer):
7952         * event-msw.c (winsock_closer):
7953         prior kludgy code was clobbering the buffer, thinking it was
7954         "unused" space to store an unneeded return value; instead, use
7955         the variable we've already got staring us in the face.
7956
7957 2001-05-17  Andy Piper  <andy@xemacs.org>
7958
7959         * sysfile.h: don't assume that file attributes are boolean
7960
7961 2001-05-23  Ben Wing  <ben@xemacs.org>
7962
7963         * device-msw.c (msprinter_init_device):
7964         signal an error rather than crash with an unavailable network
7965         printer (from Mike Alexander).
7966         
7967         * event-msw.c:
7968         * event-msw.c (struct winsock_stream):
7969         * event-msw.c (winsock_writer):
7970         * event-msw.c (winsock_closer):
7971         * event-msw.c (make_winsock_stream_1):
7972         cleanup headers.  fix (hopefully) an error with data corruption
7973         when sending to a network connection.
7974
7975         * fileio.c (Fexpand_file_name): Fix evil code that attempts
7976         to handle the ~user prefix by (a) always assuming we're referencing
7977         ourselves and not even verifying the user -- hence any file with
7978         a tilde as its first char is invalid! (b) if there wasn't a slash
7979         following the filename, the pointer was set *past* the end of
7980         file and we started reading from uninitialized memory.  Now we
7981         simply treat these as files, always.
7982
7983         * buffer.c (common_init_complex_vars_of_buffer): comment change.
7984         
7985 2001-05-19  Ben Wing  <ben@xemacs.org>
7986
7987         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
7988
7989         * process-nt.c:
7990         * process-nt.c (vars_of_process_nt):
7991         remove unused mswindows-quote-process-args.  rec for 21.4.
7992         
7993 2001-05-12  Ben Wing  <ben@xemacs.org>
7994
7995         * event-msw.c (mswindows_dde_callback):
7996         * event-msw.c (mswindows_wnd_proc):
7997         eliminate cygwin warnings.
7998
7999 2001-05-06  Ben Wing  <ben@xemacs.org>
8000
8001         * console-msw.h:
8002         * device-msw.c:
8003         * device-msw.c (print_dialog_worker):
8004         * device-msw.c (mswindows_handle_print_dialog_box):
8005         * device-msw.c (syms_of_device_mswindows):
8006         * dialog-msw.c (mswindows_make_dialog_box_internal):
8007         * general-slots.h:
8008         implement printing the selection when it's selected.
8009
8010 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8011
8012         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8013
8014 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8015
8016         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8017         EMACS_INT is signed.
8018
8019 2001-04-15  Michael Lausch  <mla@1012surf.net>
8020
8021         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8022         gtk_widget_request_size() to give scrollbar >0 width for
8023         GTK >1.2.8.
8024
8025 2001-05-30  William M. Perry  <wmperry@gnu.org>
8026
8027         * event-gtk.c: Check for buttons as modifier keys.
8028
8029 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8030
8031         * s\mingw32.h:
8032         Properly find MinGW's <process.h> inside Cygwin's restructured
8033         include directories.  Don't try to include <cygwin/version.h>
8034         since we are dropping support for MinGW in versions of Cygwin
8035         earlier than b21.
8036         * nt.c:
8037         Drop support for MinGW in versions of Cygwin before b21.
8038         * sysdep.c:
8039         Properly find MinGW's <process.h> inside Cygwin's restructured
8040         include directories.
8041         * syswindows.h:
8042         Drop support for MinGW in versions of Cygwin before b21.
8043         * unexcw.c:
8044         Even though a.out.h is no longer detected by configure, allow
8045         MinGW to use it until we figure out how to do the job with Win32.
8046
8047 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8048
8049         * syntax.c (find_start_of_comment):
8050         Fix `unbalanced parentheses' bug when dealing with mixed comment
8051         styles in c++/java/etc. mode
8052
8053 2001-05-29  Mike Alexander  <mta@arbortext.com>
8054
8055         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8056         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8057
8058 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8059
8060         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8061
8062 2001-03-31  Mike Sperber <mike@xemacs.org>
8063
8064         * search.c (Freplace_match): Support FSF-style specification of
8065         match subexpression when applied to a buffer.
8066
8067 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8068
8069         * event-stream.c (is_scrollbar_event): add missing semicolon
8070
8071 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8072
8073         * Makefile.in.in: Use TAR macro instead of hardcoding
8074           tar.  Allows use of GNU tar instead of system tar
8075
8076 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8077
8078         * event-stream.c (is_scrollbar_event): add missing semicolon
8079
8080 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8081
8082         * XEmacs 21.4.3 "Academic Rigor" is released.
8083
8084 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8085
8086         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8087
8088 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8089
8090         * buffer.c (Vcase_fold_search): Remove obsolete
8091           comment about non ASCII case-fold-search.  This
8092           bug has been fixed by case-table changes.
8093
8094 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8095
8096         * event-msw.c: Restore include of events-mod.h.
8097
8098 2001-04-22   zhaoway  <zw@debian.org>
8099
8100         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8101         !HAVE_SCROLLBARS.
8102
8103 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8104
8105         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8106
8107 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8108
8109         * mule-charset.c (Fmake_charset): Add missing else.
8110
8111 2001-04-23  Ben Wing  <ben@xemacs.org>
8112
8113         * event-msw.c (FAKE_MOD_QUIT):
8114         * event-msw.c (mswindows_dequeue_dispatch_event):
8115         * event-msw.c (mswindows_wnd_proc):
8116         * event-msw.c (emacs_mswindows_quit_p):
8117         Get critical quit working.
8118
8119 2001-05-05  Ben Wing  <ben@xemacs.org>
8120
8121         * console-msw.h:
8122         * device-msw.c:
8123         * device-msw.c (mswindows_get_default_margin):
8124         * frame-msw.c (mswindows_size_frame_internal):
8125         * frame-msw.c (msprinter_init_frame_1):
8126         * frame-msw.c (vars_of_frame_mswindows):
8127         Change top/bottom margin defaults to 0.5 inches.
8128
8129 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8130
8131         Fix link error with gcc 3.0 on Linux.
8132         * terminfo.c (UP): Remove.
8133         * terminfo.c (BC): Remove.
8134         * terminfo.c (PC): Remove.
8135         They weren't used, and in any case, these symbols should be
8136         defined in the *library*.
8137
8138 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8139
8140         * s/aix4.h: Fix crash with xlc -O3.
8141         Improve comment explaining how -O3 works.
8142
8143 2001-04-15  Ben Wing  <ben@xemacs.org>
8144
8145         * event-stream.c:
8146         * event-stream.c (Fnext_event):
8147         * event-stream.c (is_scrollbar_event):
8148         * event-stream.c (execute_command_event):
8149         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8150         crash' problem.  His fix introduces other problems.  We filter
8151         out scrollbar events specifically, making them somewhat invisible
8152         to command-building, and not appearing in `this-command-keys'.
8153         More work is still needed (see comments in event-stream.c), but
8154         this fixes all the major problems.
8155
8156 2001-04-20  Ben Wing  <ben@xemacs.org>
8157
8158         * .cvsignore: Added stuff for Windows.
8159
8160 2001-04-28  Ben Wing  <ben@xemacs.org>
8161
8162         * buffer.c (Ferase_buffer):
8163         * editfns.c (buffer_insert1):
8164         * editfns.c (Finsert_before_markers):
8165         * editfns.c (Finsert_string):
8166         * editfns.c (Finsert_char):
8167         * editfns.c (Fdelete_region):
8168         * editfns.c (Fwiden):
8169         * editfns.c (Fnarrow_to_region):
8170         remove bogus lines setting zmacs_region_stays to 0.
8171         
8172 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8173
8174         * process-unix.c (unix_open_network_stream): If connect() fails
8175         invalidate file descriptor after closing it.
8176
8177 2001-03-08  Mike Alexander  <mta@arbortext.com>
8178
8179         * event-msw.c (mswindows_need_event_in_modal_loop):
8180         Don't dispatch a message if we didn't get one.
8181         (mswindows_need_event):
8182         Terminate the correct process when one exits instead of the first
8183         one on Vprocess_list and look for process termination when in
8184         mswindows_protect_modal_loop.
8185
8186 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8187
8188         * XEmacs 21.4.1 "Copyleft" is released.
8189
8190 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8191
8192         * input-method-motif.c (XIM_delete_frame): New callback.
8193         (XIM_init_frame): Register it.
8194
8195 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8196
8197         * XEmacs 21.4.0 "Solid Vapor" is released.
8198
8199 2001-04-15  Ben Wing  <ben@xemacs.org>
8200
8201         * cmdloop.c (call_command_loop):
8202         Fix braino in bit-rotting code.
8203         
8204 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8205
8206         * extents.c (Fset_extent_endpoints): Force creation of extent info
8207         in buffer_or_string.
8208
8209         * extents.c (process_extents_for_insertion_mapper): Correctly
8210         check for open-open zero-length extents.
8211
8212 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8213
8214         * lisp.h: New typedefs Memory_count, Element_count.
8215         * regex.c:
8216         * regex.h:
8217         Sign-compare warning elimination: several unsigned -> signed.
8218         Based on work by Ben Wing <ben@xemacs.org>.
8219
8220 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8221
8222         * XEmacs 21.2.47 "Zephir" is released.
8223
8224 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8225
8226         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8227
8228 2001-04-03  Mike Sperber <mike@xemacs.org>
8229
8230         * search.c: Revert previous patch due because of release.
8231
8232 2001-03-30  Ben Wing  <ben@xemacs.org>
8233
8234         * s\cygwin32.h:
8235         Add missing killpg prototype.
8236
8237         * elhash.c:
8238         Add a comment about fixing problems when a new entry is added
8239         while mapping.
8240
8241         * frame-msw.c (mswindows_init_frame_1):
8242         Fix compile warnings.
8243
8244         * menubar.c (vars_of_menubar):
8245         Provide `menu-accelerator-support' to indicate that we properly
8246         support %_ in menu specifications, so that package code can
8247         conditionalize on this (and remove %_ from menu specifications
8248         on older versions).
8249
8250         * event-msw.c:
8251         * scrollbar-msw.c:
8252         * scrollbar-msw.c (can_scroll):
8253         * scrollbar-msw.h:
8254         Fix handling of mouse wheel under Windows to follow standards --
8255         now scrolls window under pointer, not selected window.
8256
8257 2001-03-31  Mike Sperber <mike@xemacs.org>
8258
8259         * search.c (Freplace_match): Support FSF-style specification of
8260         match subexpression when applied to a buffer.
8261
8262 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8263
8264         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8265         function to modify KEYMAP, so map over a copy of the hash table.
8266
8267 2001-03-21  Martin Buchholz <martin@xemacs.org>
8268
8269         * XEmacs 21.2.46 "Urania" is released.
8270
8271 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8272
8273         * realpath.c (xrealpath): Make file-truename work with symlinks to
8274         /cygdrive paths on cygwin. Always lowercase drive-letters on
8275         native windows.
8276         (cygwin_readlink): Don't try to find canonical filename unless
8277         file exists.
8278
8279 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8280
8281         * ChangeLog: Log GTK merge.
8282
8283         * dumper.c:
8284         * select-x.c:
8285         * specifier.c:
8286         * symeval.h:
8287         Revert gratuitous whitespace changes from GTK merge.
8288
8289         * emacs.c: Document end of complex #ifdef @ l. 1495.
8290
8291
8292 2001-03-12  Andy Piper  <andy@xemacs.org>
8293
8294         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8295         have to do likewise.
8296
8297 2001-03-12  Andy Piper  <andy@xemacs.org>
8298
8299         * sysdep.c: we only support mingw now.
8300
8301 2001-03-09  Andy Piper  <andy@xemacs.org>
8302
8303         * unexcw.c (copy_executable_and_dump_data_section): making approx
8304         overrun a warning only.
8305
8306 2001-03-10  William M. Perry  <wmperry@aventail.com>
8307
8308         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8309         satisfy Stephen's identical-after-cpp plea.
8310
8311 2001-03-02  Ben Wing  <ben@xemacs.org>
8312
8313         * cmds.c:
8314         * cmds.c (Fforward_char):
8315         * syntax.c:
8316         * window.c:
8317
8318         Augment documentation of the most common motion commands to make
8319         note of the shifted-motion support.
8320         
8321 2001-03-02  Ben Wing  <ben@xemacs.org>
8322
8323         * nt.c (mswindows_fstat):
8324         * nt.c (mswindows_stat):
8325         * search.c (boyer_moore):
8326         Fix compile warnings under Windows.
8327         
8328         * sysdep.c (sys_readdir):
8329         Fix buggy filename-conversion code under Mule.
8330
8331 2001-03-09  William M. Perry  <wmperry@aventail.com>
8332
8333         * Makefile.in.in:
8334         * config.h.in:
8335         * console.c:
8336         * console.h:
8337         * device.c:
8338         * device.h:
8339         * dragdrop.c:
8340         * emacs.c:
8341         * event-stream.c:
8342         * events.c:
8343         * events.h:
8344         * faces.c:
8345         * frame.h:
8346         * general-slots.h:
8347         * glyphs.c:
8348         * gutter.c:
8349         * inline.c:
8350         * lisp.h:
8351         * lrecord.h:
8352         * make-src-depend:
8353         * redisplay-output.c:
8354         * redisplay.c:
8355         * symsinit.h:
8356         * sysfile.h:
8357         * toolbar.c:
8358         * window.c:
8359         The Great GTK Merge.
8360
8361         * ChangeLog.GTK:
8362         * console-gtk.c:
8363         * console-gtk.h:
8364         * device-gtk.c:
8365         * emacs-marshals.c:
8366         * emacs-widget-accessors.c:
8367         * event-gtk.c:
8368         * frame-gtk.c:
8369         * gccache-gtk.c:
8370         * gccache-gtk.h:
8371         * glade.c:
8372         * glyphs-gtk.c:
8373         * glyphs-gtk.h:
8374         * gtk-glue.c:
8375         * gtk-xemacs.c:
8376         * gtk-xemacs.h:
8377         * gui-gtk.c:
8378         * gui-gtk.h:
8379         * menubar-gtk.c:
8380         * native-gtk-toolbar.c:
8381         * objects-gtk.c:
8382         * objects-gtk.h:
8383         * redisplay-gtk.c:
8384         * scrollbar-gtk.c:
8385         * scrollbar-gtk.h:
8386         * select-gtk.c:
8387         * toolbar-gtk.c:
8388         * ui-byhand.c:
8389         * ui-gtk.c:
8390         * ui-gtk.h:
8391         The Great GTK Merge: new files.
8392
8393 2001-02-26  Ben Wing  <ben@xemacs.org>
8394
8395         Reapplied Lstream change.
8396
8397 2001-02-26  Ben Wing  <ben@xemacs.org>
8398
8399         Undid the last change, since it is more controversial than I
8400         thought.  It should be back in at some point soon.
8401         
8402 2001-02-25  Ben Wing  <ben@xemacs.org>
8403
8404         * buffer.c:
8405         * callproc.c (Fold_call_process_internal):
8406         * event-msw.c (ntpipe_slurp_reader):
8407         * event-msw.c (ntpipe_shove_writer):
8408         * event-msw.c (winsock_reader):
8409         * event-msw.c (winsock_writer):
8410         * file-coding.c:
8411         * file-coding.c (detect_eol_type):
8412         * file-coding.c (detect_coding_type):
8413         * file-coding.c (determine_real_coding_system):
8414         * file-coding.c (Fdetect_coding_region):
8415         * file-coding.c (decoding_reader):
8416         * file-coding.c (decoding_writer):
8417         * file-coding.c (mule_decode):
8418         * file-coding.c (Fdecode_coding_region):
8419         * file-coding.c (encoding_reader):
8420         * file-coding.c (encoding_writer):
8421         * file-coding.c (mule_encode):
8422         * file-coding.c (Fencode_coding_region):
8423         * file-coding.c (detect_coding_sjis):
8424         * file-coding.c (decode_coding_sjis):
8425         * file-coding.c (encode_coding_sjis):
8426         * file-coding.c (detect_coding_big5):
8427         * file-coding.c (decode_coding_big5):
8428         * file-coding.c (encode_coding_big5):
8429         * file-coding.c (detect_coding_ucs4):
8430         * file-coding.c (decode_coding_ucs4):
8431         * file-coding.c (encode_coding_ucs4):
8432         * file-coding.c (detect_coding_utf8):
8433         * file-coding.c (decode_coding_utf8):
8434         * file-coding.c (encode_coding_utf8):
8435         * file-coding.c (detect_coding_iso2022):
8436         * file-coding.c (decode_coding_iso2022):
8437         * file-coding.c (encode_coding_iso2022):
8438         * file-coding.c (decode_coding_no_conversion):
8439         * file-coding.c (encode_coding_no_conversion):
8440         * glyphs-x.c (write_lisp_string_to_temp_file):
8441         * gpmevent.c (tty_get_foreign_selection):
8442         * lisp.h:
8443         * lstream.c:
8444         * lstream.c (Lstream_flush_out):
8445         * lstream.c (Lstream_adding):
8446         * lstream.c (Lstream_write_1):
8447         * lstream.c (Lstream_write):
8448         * lstream.c (Lstream_raw_read):
8449         * lstream.c (Lstream_read_more):
8450         * lstream.c (Lstream_read):
8451         * lstream.c (Lstream_unread):
8452         * lstream.c (Lstream_fputc):
8453         * lstream.c (stdio_reader):
8454         * lstream.c (stdio_writer):
8455         * lstream.c (filedesc_reader):
8456         * lstream.c (filedesc_writer):
8457         * lstream.c (lisp_string_reader):
8458         * lstream.c (struct fixed_buffer_stream):
8459         * lstream.c (make_fixed_buffer_input_stream):
8460         * lstream.c (make_fixed_buffer_output_stream):
8461         * lstream.c (fixed_buffer_reader):
8462         * lstream.c (fixed_buffer_writer):
8463         * lstream.c (struct resizing_buffer_stream):
8464         * lstream.c (resizing_buffer_writer):
8465         * lstream.c (dynarr_writer):
8466         * lstream.c (lisp_buffer_reader):
8467         * lstream.c (lisp_buffer_writer):
8468         * lstream.h:
8469         * lstream.h (lstream_implementation):
8470         * lstream.h (struct lstream):
8471         * md5.c (Fmd5):
8472         * process-nt.c (nt_send_process):
8473         * process-unix.c (unix_send_process):
8474         
8475         Correct Lstream lossage due to mixing of signed and unsigned
8476         quantities.  All Lstream uses of size_t and ssize_t are now a
8477         single signed data type Lstream_data_count.  This fixes problems
8478         under Windows with sending large quantities of data to a process,
8479         and may well fix other subtle bugs.
8480
8481 2001-02-23  Martin Buchholz <martin@xemacs.org>
8482
8483         * XEmacs 21.2.45 "Thelxepeia" is released.
8484
8485 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8486
8487         * lisp-union.h (XSETINT): 
8488         (XSETCHAR):
8489         (XSETOBJ): 
8490         Reverse previous change of 2001-02-06.
8491
8492 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8493
8494         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8495         buffers.
8496         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8497         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8498         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8499         * regex.c (POS_AS_IN_BUFFER): removed
8500         * regex.c (re_search_2):
8501         * regex.c (re_match_2):
8502         Don't use an offset of 1 when calculating buffer positions, since
8503         `BI_BUF_BEGV' does it already.
8504
8505 2001-02-18  Wim Dumon  <wim@easics.be>
8506
8507         * insdel.c (prepare_to_modify_buffer): Also check for
8508         supersession when clash-detection is enabled. 
8509
8510 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8511
8512         * regex.c (re_match_2_internal):
8513         Convert temp characters from 'const unsigned char' to 're_char'.
8514         Fix crashing bug with extended characters under mule.
8515         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8516         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8517         font-lock, pdump, and new syntax-table code.
8518         * syntax.c (find_start_of_comment):
8519         (find_end_of_comment):
8520         (forward-comment):
8521         Fix crashing bugs involving moving beyond end of buffer.
8522         * syntax.c (find_start_of_comment):
8523         Fixed logic to allow proper detection of cases where the same
8524         character is used to end both a two-char comment start and a
8525         two-char comment end sequence. Fixes `(forward-comment -1)'.
8526         * syntax.c (find_start_of_comment):
8527         Return position just past last comment-end character for all cases
8528         (previously was only done for two-char comment-end sequences).
8529         * syntax.c (forward-comment):
8530         Take value returned from `find_end_of_comment', rather than
8531         incrementing it.
8532         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8533         Properly deal with BUFFERP (syntax_cache.object)
8534
8535 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8536
8537         * alloc.c (Fgarbage_collect): 
8538         * alloc.c (make_bit_vector_from_byte_vector):
8539         -Wsign-compare-correctness.
8540
8541 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8542
8543         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8544         (XSETCHAR): Likewise.
8545         (XSETOBJ): Likewise.
8546
8547 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8548
8549         * mule-canna.c (canna-func-delete_previous): 
8550         Rename to canna-func-delete-previous.
8551
8552 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8553
8554         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8555
8556 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8557
8558         * font-lock.c (find_context): Fix C++ compile errors introduced by
8559         recent patch
8560
8561 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8562
8563         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8564         pragma, but earlier ones barf on the same pragma.
8565
8566 2001-02-06  Mike Sperber <mike@xemacs.org>
8567
8568         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8569         `configure-mule-lisp-directory'.
8570
8571 2001-02-12  Martin Buchholz  <martin@xemacs.org>
8572
8573         Make sure dump-id.c is compiled in the same way as other .c's.
8574         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
8575         * dump-id.h: Remove.
8576         * emacs.c: Move dump-id.h into dumper.h.
8577         * dumper.h: Move dump-id.h into dumper.h.
8578         * Makefile.in.in:
8579         Use standard .c.o rule for building dump-id.o.
8580         Remove preprocessor flags from link command.
8581         Add dump-id.o to ${otherobjs} if PDUMP.
8582
8583 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
8584
8585         Port FSF 20.7 syntax table improvements.
8586         * syntax.c.
8587         * syntax.h.
8588
8589         Fixups for new syntax table stuff.
8590         * dired.c: Include syntax.c.
8591         (Fdirectory_files): Initialize regex_match_object and
8592         regex_emacs_buffer.
8593         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
8594         and Fget_char_property.
8595
8596         Use ported FSF 20.7 syntax table improvements.
8597         * font-lock.c.
8598         * regex.c.
8599         * search.c.
8600         
8601 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8602
8603         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
8604         Unixware's enum boolean from sys/types.h.
8605
8606 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8607
8608         Fix support for building with latest Purify.
8609         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
8610         (PURIFY_FLAGS): Likewise.
8611
8612 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8613
8614         * fileio.c (lisp_string_set_file_times): New.
8615         * fileio.c (Fcopy_file): Use it.
8616         Fixes bug:
8617         (copy-file filename non-ascii-filename t t)
8618         ==> No such file or directory, non-ascii-filename
8619
8620 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8621
8622         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
8623         USHRT_MAX seems clearer than ~0 anyways.
8624
8625 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8626
8627         dumper improvements.  Inspired by Olivier.
8628         * dumper.c (pdump_max_align): New.
8629         * dumper.c (pdump_add_entry): Use pdump_max_align.
8630         * dumper.c (pdump_get_entry_list): Likewise.
8631         * dumper.c (pdump_scan_by_alignment): Likewise.
8632         Don't iterate through unnecessary alignments.
8633         * dumper.c (pdump_file_get): No need to align result of malloc().
8634         * dumper.c (pdump_mallocadr): Remove.  
8635         The result of malloc() is guaranteed to be maximally aligned.
8636         * dumper.c: s/elmt/elt/g;
8637         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
8638         * dumper.c (pdump_alert_undump_object): Likewise.
8639         * dumper.c (pdump_align_table): 
8640         Don't support alignments > 64.
8641         Store ALIGNOF's, not shift counts, in table.
8642
8643 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8644
8645         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
8646         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
8647         * systime.h: Use HAVE_UTIME.
8648         * sysdep.c (struct utimbuf): Remove.
8649         * sysdep.c (set_file_times): Prefer utime() to utimes().
8650         * config.h.in (HAVE_UTIME): New.
8651         * config.h.in (HAVE_UTIME_H): Remove.
8652         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
8653
8654 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8655
8656         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
8657
8658 2001-02-08  Martin Buchholz  <martin@xemacs.org>
8659
8660         * s/irix6-0.h: Use the standard system memmove, not bcopy.
8661
8662 2001-02-08  Martin Buchholz <martin@xemacs.org>
8663
8664         * XEmacs 21.2.44 "Thalia" is released.
8665
8666 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8667
8668         Fixes crashes in kill-emacs on some systems.
8669         * process-unix.c (unix_kill_child_process):
8670         It's OK for kill() to fail with ESRCH.
8671
8672 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8673
8674         Contortions to make .gdbinit tricks work on most systems.
8675         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
8676         * alloc.c (dbg_valmask): Make non-const.
8677         * alloc.c (dbg_typemask): Make non-const.
8678         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
8679         * alloc.c (dbg_valbits): Make non-const.
8680         * alloc.c (dbg_gctypebits): Make non-const.
8681         * .gdbinit (decode_object): Make it work with AIX cc.
8682
8683 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8684
8685         * elhash.c (make_general_lisp_hash_table):
8686         Use simpler and more efficient calloc to clear entries.
8687
8688 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8689
8690         * window.c (window_scroll): Work around an AIX C compiler bug.
8691         Fixes 'scroll-up' does nothing problem with xlC.
8692
8693 2001-02-05  Martin Buchholz  <martin@xemacs.org>
8694
8695         * .gdbinit: Remove obsolete comment.
8696
8697 2001-01-31  Mike Alexander  <mta@arbortext.com>
8698
8699         * select.c (Fown_selection_internal): Set owned_p for device
8700         method correctly.
8701
8702 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8703
8704         Port to g++ 2.97.
8705         "not" cannot be used as a macro name as it is an operator in C++
8706         * config.h.in: Stop #defining `not'.
8707         * chartab.c (check_category_char): not ==> not_p
8708         * chartab.h: Likewise.
8709         * regex.c (re_match_2_internal): Likewise.
8710
8711 2001-02-02  Martin Buchholz  <martin@xemacs.org>
8712
8713         * lisp-disunion.h: Fix up comments.
8714
8715 2001-01-31  Martin Buchholz  <martin@xemacs.org>
8716
8717         * keymap.c (define_key_check_and_coerce_keysym):
8718         (syms_of_keymap):
8719         Support mouse-6 and mouse-7 bindings in the obvious way.
8720
8721 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8722
8723         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
8724
8725 2001-01-30  Martin Buchholz  <martin@xemacs.org>
8726
8727         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
8728         Previous patch missed DEFVAR_INT_MAGIC.
8729         Make sure future DEFVAR_foo use correct types.
8730         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
8731         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
8732         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
8733         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
8734         * (DEFVAR_INT): Likewise.
8735         * redisplay.c (vertical_clip): Should be of type Fixnum.
8736         * redisplay.c (horizontal_clip): Likewise.
8737         * lisp.h (dump_add_opaque_int): New.
8738         (dump_add_opaque_fixnum): New.
8739
8740 2001-01-29  Andy Piper  <andy@xemacs.org>
8741
8742         * glyphs-widget.c (check_valid_int_or_function): allow symbols
8743         since they can be eval'ed
8744
8745 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8746
8747         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
8748         Oops, XEmacs redefines `class'.  Use `typename' instead.
8749
8750 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8751
8752         * dumper.c: Fix C++ compile errors.
8753
8754 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8755
8756         * tparam.c: Use correct prototypes.
8757
8758 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8759
8760         * sysproc.h: #include util.h for NetBSD's openpty.
8761
8762 2001-01-27  Martin Buchholz  <martin@xemacs.org>
8763
8764         More 64-bit correctness.
8765         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
8766         Use a typedef `fixnum' for the type used for DEFVAR_INT.
8767         Fix up comments.
8768         This finally finishes the 64-bit SGI port.
8769         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
8770         * symbols.c: Fix up comments and type casts.
8771         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
8772         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
8773         * symeval.h (Fixnum): New type.
8774         * symeval.h (symbol_value_type): Fix up comment.
8775
8776         * commands.h:
8777         * nt.c:
8778         * emacs.c:
8779         * data.c:
8780         * redisplay.c:
8781         * abbrev.c:
8782         * dired-msw.c:
8783         * event-Xt.c:
8784         * eldap.c:
8785         * window.c:
8786         * sound.c:
8787         * event-stream.c:
8788         * eval.c:
8789         * buffer.c:
8790         * mule-canna.c: A million DEFVAR_INTs here...
8791         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
8792         * extents.c:
8793         * cmdloop.c:
8794         * lisp.h:
8795         * select-x.c:
8796         * console-x.h:
8797         * event-msw.c:
8798         * mule-wnnfns.c:
8799         * hpplay.c:
8800         * ralloc.c:
8801         * alloc.c:
8802         * keymap.c:
8803         * profile.c:
8804         s/int/Fixnum/g in DEFVAR_INT declarations.
8805
8806 2001-01-26  Martin Buchholz  <martin@xemacs.org>
8807
8808         Port pdump to SGI alignment-sensitive environment.
8809         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
8810         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
8811         properly aligned.
8812         Define and use aligned reading and writing macros.
8813         Use buffered stdio instead of posix i/o for faster dumping.
8814         Eliminate kludgy 256 byte space for header.
8815         Read and write from dump file using structs for alignment safety.
8816         * dumper.c (pdump_align_stream): New.
8817         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
8818         * dumper.c (PDUMP_READ_ALIGNED): New.
8819         * dumper.c (PDUMP_WRITE_ALIGNED): New.
8820         * dumper.c (pdump_static_Lisp_Object): New struct.
8821         * dumper.c (pdump_static_pointer): New struct.
8822         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
8823         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
8824         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
8825         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
8826
8827         * dumper.c (pdump_backtrace):
8828         * dumper.c (pdump_get_indirect_count):
8829         * dumper.c (pdump_register_object):
8830         * dumper.c (pdump_register_struct):
8831         * dumper.c (pdump_reloc_one):
8832         * dumper.c (pdump_scan_by_alignment):
8833         * dumper.c (pdump_dump_from_root_struct_ptrs):
8834         * dumper.c (pdump_dump_opaques):
8835         * dumper.c (pdump_dump_rtables):
8836         * dumper.c (pdump_dump_from_root_objects):
8837         * dumper.c (pdump):
8838         * dumper.c (pdump_load_finish):
8839         Use aligned reading and writing.
8840
8841         * dumper.c (pdump_free): Make static.
8842         * dumper.c (pdump_hFile): Likewise.
8843         * dumper.c (pdump_hMap): Likewise.
8844
8845 2001-01-26  Martin Buchholz <martin@xemacs.org>
8846
8847         * XEmacs 21.2.43 "Terspichore" is released.
8848
8849 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8850
8851         Type fiddling for window_config.saved_windows_count
8852         * window.c (struct window_config): 
8853         Make saved_windows_count member unsigned.
8854         * window.c (sizeof_window_config_for_n_windows): 
8855         Make parameter unsigned.
8856         * window.c (mark_window_config):
8857         * window.c (window_config_equal):
8858         * window.c (free_window_configuration):
8859         * window.c (Fset_window_configuration):
8860         * window.c (count_windows):
8861         * window.c (Fcurrent_window_configuration):
8862         * window.c (reinit_vars_of_window):
8863         Update all callers and users.
8864
8865 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8866
8867         Alignment correctness for flexible arrays.
8868         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
8869         Make alignment-correct. Add interesting comments.
8870         * alloc.c (size_vector):
8871         * alloc.c (make_vector_internal):
8872         * alloc.c (make_bit_vector_internal):
8873         * alloc.c (sweep_bit_vectors_1):
8874         * fns.c (size_bit_vector):
8875         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
8876         * window.c (sizeof_window_config_for_n_windows): 
8877         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
8878
8879 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8880
8881         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
8882
8883 2001-01-23  Andy Piper  <andy@xemacs.org>
8884
8885         * select.c (Fown_selection_internal): pass owned_p
8886
8887         * select-msw.c (mswindows_own_selection): New Signature.
8888
8889         * console.h (struct console_methods): add owned_p to
8890         _own_selection.
8891
8892         * select-x.c (x_own_selection): pass owned_p
8893         (hack_motif_clipboard_selection): use owned_p
8894         (vars_of_select_x): new variable -
8895         x_selection_strict_motif_ownership.
8896
8897 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8898
8899         * specifier.h (specifier_data_offset): Remove pointless parens.
8900         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
8901
8902 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8903
8904         Make Lisp_Object sizeof methods be alignment-correct.
8905         pdump must restore objects to the same alignment as the C compiler
8906         assumes.  It really matters on SGIs.
8907         * lstream.c (aligned_sizeof_lstream): New.
8908         (sizeof_lstream): Use aligned_sizeof_lstream.
8909         (Lstream_new): Likewise.
8910         * opaque.c (aligned_sizeof_opaque): New.
8911         (sizeof_opaque): Use aligned_sizeof_opaque.
8912         (make_opaque): Likewise.
8913         * specifier.c (aligned_sizeof_specifier): New.
8914         (sizeof_specifier): Use aligned_sizeof_specifier.
8915         (make_specifier_internal): Likewise.
8916
8917 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8918
8919         * lstream.h (struct lstream): Use max_align_t for trailing data.
8920         * specifier.h (struct Lisp_Specifier): Likewise.
8921
8922 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8923
8924         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
8925         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
8926         (CCL_SUSPEND): Likewise.
8927         (CCL_INVALID_CMD): Likewise.
8928         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
8929         (ccl_driver): Likewise.
8930         (CCL_WRITE_CHAR): Macro hygiene.
8931         (CCL_WRITE_STRING): Macro hygiene.
8932
8933 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8934
8935         Port "portable" dumper to SunOS 4 and HP-UX.
8936         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
8937         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
8938         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
8939
8940 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8941
8942         * lisp.h (ALIGNOF): A better definition for C++.
8943
8944 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8945
8946         Macro hygiene.
8947         Fix printf warnings: int format, long int arg.
8948         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
8949         (PUSH_FAILURE_POINT): Use correct printf formats.
8950         (POP_FAILURE_POINT): Use correct printf formats.  
8951         Use do {...} while (0)
8952
8953 2001-01-20  Martin Buchholz <martin@xemacs.org>
8954
8955         * XEmacs 21.2.42 "Poseidon" is released.
8956
8957 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8958
8959         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
8960
8961 2001-01-19  Martin Buchholz  <martin@xemacs.org>
8962
8963         De-kludgify FIXED_TYPE free list frobbing.
8964         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
8965         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
8966         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
8967         * alloc.c (Lisp_Free): New pseudo lisp object definition.
8968         * alloc.c (LRECORD_FREE_P): New.
8969         * alloc.c (MARK_LRECORD_AS_FREE): New.
8970         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
8971         * alloc.c (STRUCT_FREE_P): Deleted.
8972         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
8973         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
8974         * alloc.c (STRING_CHARS_FREE_P): New.
8975         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
8976         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
8977         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
8978         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
8979         * alloc.c (resize_string): Use new definitions.
8980         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
8981         * alloc.c (verify_string_chars_integrity): Use new definitions.
8982         * alloc.c (compact_string_chars): Use new definitions.
8983         * alloc.c: Update monster comments.
8984         * lrecord.h (lrecord_type): Add some new lrecord types for
8985         alloc.c's use.
8986
8987 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8988
8989         Improve alignment hackery.
8990         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
8991         (max_align_t): Moved from opaque.h - general purpose.
8992         (ALIGN_PTR): Use size_t, not long.
8993         * opaque.h (max_align_t): Move to lisp.h.
8994
8995 2001-01-18  Norbert Koch  <nk@LF.net>
8996
8997         * gui.h: Fix and add prototypes to fix build problems.
8998
8999 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9000
9001         temacs is going away, so `dump-temacs' is now a bad name.
9002         * .dbxrc (dump-temacs): Rename to `dmp'.
9003         * .gdbinit (dump-temacs): Rename to `dmp'.
9004
9005 2001-01-17  Andy Piper  <andy@xemacs.org>
9006
9007         * glyphs.c (print_image_instance): comment to make martin happy.
9008
9009         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9010         change.
9011
9012         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9013         activation.
9014         (mswindows_tab_control_redisplay): warning suppression.
9015
9016         * glyphs-widget.c (widget_update): re-write to cope with updated
9017         items.
9018         (widget_instantiate): use new gui_item functions.
9019         (tab_control_update): deleted.
9020         (progress_gauge_update): deleted.
9021         (image_instantiator_progress_guage): take out update reference.
9022         (image_instantiator_tree_view): ditto.
9023         (image_instantiator_tab_control): ditto.
9024
9025         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9026         Right the new way.
9027         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9028         return whether anything was changed.
9029         (update_gui_item_keywords): as it sounds.
9030
9031         * gui.h: declare widget_gui_parse_item_keywords.
9032
9033         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9034         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9035
9036 2001-01-17  Martin Buchholz <martin@xemacs.org>
9037
9038         * XEmacs 21.2.41 "Polyhymnia" is released.
9039
9040 2001-01-16  Didier Verna  <didier@xemacs.org>
9041
9042         * glyphs.c (image_instantiate): don't use fallbacks when
9043         instantiating a face's background pixmap by inheritance.
9044
9045 2001-01-14  Mike Sperber <mike@xemacs.org>
9046
9047         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9048         Conditionalize accordingly.
9049
9050 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9051
9052         * dumper.c (pdump_file_get): Fix a compiler warning.
9053
9054 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9055
9056         Make Purify happy when pdumping.
9057         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9058         iniitalizing all bits of new lisp object memory.
9059         * symbols.c (Fmake_local_variable): Likewise.
9060         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9061         * symbols.c (Fdefvaralias): Likewise.
9062         * mule-charset.c (vars_of_mule_charset): Likewise.
9063
9064 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9065         Add the `-nd' flag when running pre-dump operations under the debugger.
9066         * .dbxrc (run-temacs): Add `-nd'.
9067         * .dbxrc (update-elc): Likewise.
9068         * .dbxrc (dump-temacs): Likewise.
9069         * .gdbinit (run-temacs): Likewise.
9070         * .gdbinit (check-temacs): Likewise.
9071         * .gdbinit (update-elc): Likewise.
9072         * .gdbinit (dump-temacs): Likewise.
9073
9074 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9075
9076         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9077         export OBJECT_MODE=64
9078         configure --pdump --use-union-type=no
9079         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9080         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9081
9082         * miscplay.c (sndcnv8U_2mono):
9083         Avoid two uses of `++' in the same expression.
9084         Suppresses a GCC warning.
9085
9086 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9087
9088         Make sure future compilers don't miscompile alloc.c.
9089         * alloc.c:
9090         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9091         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9092
9093 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9094
9095         * dumper.c: A little post-pdump-rename comment fixup.
9096
9097 2001-01-09  Jerry James  <james@eecs.ku.edu>
9098
9099         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9100
9101 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9102
9103         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9104         script:
9105         #!/bin/sh
9106         replace_symbol () {
9107           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9108         }
9109
9110         replace_symbol pdump_wire_lists pdump_weak_object_chains
9111         replace_symbol pdump_wire_list dump_add_weak_object_chain
9112
9113         replace_symbol pdump_wires pdump_root_objects
9114         replace_symbol pdump_wire dump_add_root_object
9115
9116         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9117         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9118
9119         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9120         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9121         replace_symbol dumpstructinfo pdump_root_struct_ptr
9122         replace_symbol dumpstruct dump_add_root_struct_ptr
9123
9124         replace_symbol dumpopaque dump_add_opaque
9125         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9126         replace_symbol dumpopaqueinfos pdump_opaques
9127         replace_symbol dumpopaqueinfo pdump_opaque
9128
9129         replace_symbol nb_structdump nb_root_struct_ptrs
9130         replace_symbol nb_opaquedump nb_opaques
9131
9132         replace_symbol align_table pdump_align_table
9133         replace_symbol dump_header pdump_header
9134
9135         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9136         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9137
9138
9139 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9140
9141         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9142         optimizing bytecount_to_charcount().
9143
9144 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9145
9146         * config.h.in:
9147         (HAVE_DLFCN_H): Removed.
9148         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9149
9150 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9151
9152         Portable dumper maintainability improvements.
9153         * alloc.c (staticpro):
9154         * alloc.c (staticpro_nodump):
9155         * alloc.c (garbage_collect_1):
9156         * alloc.c (reinit_alloc_once_early):
9157         * alloc.c (init_alloc_once_early):
9158         * alloc.c: Move dumper functions to alloc.c.
9159         * dumper.c (pdump_backtrace):
9160         * dumper.c (pdump_dump_structs):
9161         * dumper.c (pdump_dump_opaques):
9162         * dumper.c (pdump_dump_rtables):
9163         * dumper.c (pdump_dump_wired):
9164         * dumper.c (pdump):
9165         * dumper.c (pdump_load_check):
9166         * dumper.c (pdump_load_finish):
9167         * dumper.c (pdump_file_unmap):
9168         * dumper.c (pdump_file_get):
9169         * dumper.c (pdump_resource_free):
9170         * dumper.c (pdump_resource_get):
9171         * dumper.c (pdump_file_free):
9172         * dumper.c (pdump_file_try):
9173         * dumper.c (pdump_load):
9174         Remove fixed size limits on staticpro(), staticpro_nodump(),
9175         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9176         Remove custom code for dumping lrecord_implementations_table - use
9177         dumpopaque instead.
9178         Remove (most of the) custom code for dumping staticpros - dump it
9179         like any other dynarr.
9180
9181         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9182         * dumper.c: Moved functions from alloc.c.
9183         * alloc.c (dumpstruct): Moved to dumper.c.
9184         * alloc.c (dumpopaque): Likewise.
9185         * alloc.c (pdump_wire): Likewise.
9186         * alloc.c (pdump_wire_list): Likewise.
9187
9188         * lisp.h (Dynarr_sizeof): New.
9189         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9190         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9191         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9192
9193         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9194         * lisp.h (dumpopaque): ditto.
9195         * lisp.h (pdump_wire): ditto.
9196         * lisp.h (pdump_wire_list): ditto.
9197
9198 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9199
9200         * make-src-depend (PrintPatternDeps):
9201         Use `sort' to make output independent of perl version.
9202
9203 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9204
9205         Port to Netbsd 1.5.
9206         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9207         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9208
9209 2001-01-03  Didier Verna  <didier@xemacs.org>
9210
9211         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9212         that `focus_frame' is alive before thinking of calling
9213         `redisplay_redraw_cursor' on it.
9214
9215 2001-01-08  Martin Buchholz <martin@xemacs.org>
9216
9217         * XEmacs 21.2.40 is released.
9218
9219 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9220
9221         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9222
9223 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9224
9225         * alloc.c (dbg_valmask): Make const.
9226         * alloc.c (dbg_typemask): Make const.
9227         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9228         * alloc.c (dbg_valbits): Make const.
9229         * alloc.c (dbg_gctypebits): Make const.
9230
9231 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9232
9233         * redisplay-x.c (x_bevel_area):
9234         redisplay.h (struct rune):
9235         Typo fixes in comments.
9236
9237 2001-01-05  Andy Piper  <andy@xemacs.org>
9238
9239         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9240         adjustment.
9241
9242         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9243
9244 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9245
9246         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9247
9248         * mule-ccl.c (stack_idx_of_map_multiple):
9249         Non const global data must not be initialized!
9250         Found by MIYASHITA Hisashi.
9251
9252 2001-01-02  Andy Piper  <andy@xemacs.org>
9253
9254         * frame.c (change_frame_size): make sure frame size is always
9255         marked as changed.
9256
9257         * glyphs.c (image_instance_layout): minor code reuse.
9258
9259         * window.c (Fcurrent_window_configuration): revert previous
9260         change.
9261
9262 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9263
9264         * glyphs.h:
9265         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9266
9267 2000-12-31  Andy Piper  <andy@xemacs.org>
9268
9269         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9270         when widget gets unmapped.
9271
9272         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9273         function. Make sure widgets losing focus don't just drop it.
9274         (handle_focus_event_1): record the widget with focus.
9275
9276 2000-12-31  Andy Piper  <andy@xemacs.org>
9277
9278         * window.c (allocate_window): use
9279         make_image_instance_cache_hash_table.
9280         (make_dummy_parent): ditto.
9281         (Fset_window_configuration): ditto.
9282
9283         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9284
9285         * glyphs.c (process_image_string_instantiator): use
9286         INSTANTIATOR_TYPE.
9287         (get_image_instantiator_governing_domain): ditto.
9288         (normalize_image_instantiator): ditto.
9289         (instantiate_image_instantiator): ditto.
9290         (make_image_instance_1): ditto.
9291         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9292         (instantiator_eq_equal): new function for use with instance hash
9293         tables.
9294         (instantiator_eq_hash): ditto.
9295         (make_image_instance_cache_hash_table): create a suitable hash
9296         table for storing image instances.
9297
9298         * elhash.h (hash_table_weakness): new internal weakness type
9299         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9300         declare new functions.
9301
9302         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9303         another weakness type for glyphs.
9304         (make_standard_lisp_hash_table): new function split out from
9305         make_general_lisp_hash_table.
9306         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9307         (hash_table_instantiate): ditto.
9308         (Fmake_hash_table): ditto.
9309
9310 2000-12-31  Martin Buchholz <martin@xemacs.org>
9311
9312         * XEmacs 21.2.39 is released.
9313
9314 2000-12-29  Andy Piper  <andy@xemacs.org>
9315
9316         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9317
9318         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9319         the frame has changed so that we pick up geometry changes such as
9320         menubar visibility.
9321
9322 2000-12-28  Andy Piper  <andy@xemacs.org>
9323
9324         * lastfile.c (my_ebss): make a char array so we can pad the
9325         bss. Fixes cygwin unexec.
9326
9327         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9328
9329 2000-12-26  Andy Piper  <andy@xemacs.org>
9330
9331         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9332         comments and try and be more precise about a non-/SIGIO world.
9333         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9334         SIGIO.
9335
9336         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9337         we don't normalize to zero width or height.
9338
9339 2000-12-24  Andy Piper  <andy@xemacs.org>
9340
9341         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9342
9343 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9344
9345         * s/sco5.h: SCO 5 has pty support.
9346
9347 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9348
9349         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9350         input-method-xlib.c contains whole contents of input-method-xfs.c,
9351         so we can use input-method-xlib.c's code for USE_XFONTSET
9352         using #ifdefs.
9353         * input-method-xfs.c: removed.
9354
9355 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9356
9357         * file-coding.h (enum coding_category_type): reorder enumerators to
9358         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9359         (now one greater than largest real coding_category_type enumerator).
9360         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9361         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9362         Fcoding_category_list, Fset_coding_priority_list,
9363         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9364         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9365
9366 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9367
9368         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9369         * redisplay-output.c (redisplay_output_window): Clear top of window
9370         when face is changed.
9371         * redisplay-x.c (x_redraw_exposed_window): Call
9372         redisplay_clear_top_of_window.
9373         * redisplay.h: Publish redisplay_clear_top_of_window.
9374
9375 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9376
9377         * buffer.c (Fkill_buffer): Map over all devices.
9378         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9379         (list_windows): New function.
9380         (list_all_windows): Ditto.
9381         (Freplace_buffer_in_windows): Use them.
9382
9383 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9384
9385         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9386         (Fopen_database): Use `db_create' instead of `db_open'.
9387         (syms_of_database): Initialize Qqueue.
9388
9389 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9390
9391         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9392         buffer_local_face_property.
9393         * buffer.h (struct buffer): New member buffer_local_face_property.
9394         * window.c (Fset_window_buffer):  Mark window's face as changed
9395         when buffer has buffer local face.
9396         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9397         * objects.c (color_after_change): Set buffer_local_face_property
9398         when locale of face specifier is buffer.
9399         * objects.c (font_after_change): Ditto.
9400         * objects.c (face_boolean_after_change): Ditto.
9401         * glyphs.c (image_after_change): Ditto.
9402
9403 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9404
9405         * nt.c (mswindows_fstat): Report file permissions, volume serial
9406         number, etc. Code adapted from FSF Emacs 20.7.
9407
9408 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9409
9410         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9411         of stat when we don't have symbolic links, to make sure
9412         mswindows_stat is called on mswindows.
9413
9414 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9415
9416         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9417
9418 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9419
9420         * doprnt.c (emacs_doprnt_1): More printing fixes.
9421         Make printing of numbers compatible with libc and FSF Emacs.
9422         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9423         Use the system printf to do most of the hard work of formatting,
9424         instead of doprnt_1().
9425         Calculate memory to allocate for format string.
9426         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9427         (doprnt_1): Cleaner code and documentation.
9428
9429 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9430
9431         * Makefile.in.in: Use the loop variable to install headers.
9432
9433 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9434
9435         * window.c (Fsplit_window): Don't invalidate face cache.
9436
9437 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9438
9439         * minibuf.c (Fall_completions): Undo the previous change
9440         which removed checking elements start with space.
9441
9442 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9443
9444         * mule-canna.c: Didier suppression.
9445
9446 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9447
9448         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9449         (warning suppression).  Add English comment translations.
9450
9451 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9452
9453         * unexelfsgi.c (unexec): Better test for mmap failure.
9454
9455 2000-12-05  Martin Buchholz <martin@xemacs.org>
9456
9457         * XEmacs 21.2.38 is released.
9458
9459 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9460
9461         * redisplay.c (bar-cursor): Make a user variable.
9462
9463         * symsinit.h: Add init_postgresql_from_environment.
9464
9465 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9466
9467         * regex.c: Convert to clean C.
9468
9469 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9470
9471         * realpath.c:
9472         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9473         initialization.
9474         (sys_readlink): renamed to system_readlink to avoid conflict with
9475         the other sys_readlink.
9476
9477 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9478
9479         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9480
9481 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9482
9483         * postgresql.c (init_postgresql_from_environment): new function.
9484         (vars_of_postgresql): Move code initializing Lisp variables out and
9485         into init_postgresql_from_environment.
9486         emacs.c (main_1): Call init_postgresql_from_environment if and only
9487         if running a dumped XEmacs.
9488
9489 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9490
9491         * buffer.c: Make find-file-compare-truenames default to true on
9492         windows.
9493
9494         * realpath.c (win32_abs_start):
9495         (cygwin_readlink):
9496         (win32_readlink): New functions.
9497         (xrealpath): Return really real filenames on windows.
9498
9499         * fileio.c (Ffile_truename): Make file-truename work on windows.
9500
9501 2000-11-29  Didier Verna  <didier@xemacs.org>
9502
9503         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9504         * faces.c (update_face_cachel_data): use it.
9505         * faces.c (add_face_cachel): use it. Complete background pixmap
9506         frobbing in face cache if `update_face_cachel_data' has not done so.
9507
9508 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9509
9510         * search.c (string_match_1): Don't set last_thing_searched
9511         when search failed.
9512
9513 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9514
9515         * buffer.c: Include casetab.h
9516         (common_init_complex_vars_of_buffer): Use new case-table object.
9517         * buffer.h: Include casetab.h
9518         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9519         (DOWNCASE_TABLE_OF): Ditto.
9520         * bufslots.h: Remove char-tables and add case-table.
9521         * casetab.c: Include casetab.h
9522         (CASE_TABLE_P): Removed.
9523         (mark_case_table): New function.
9524         (allocate_case_table): New function.
9525         (Fcase_table_p): Use new case-table.
9526         (case_table_char): New function.
9527         (Fget_case_table): Ditto.
9528         (Fput_case_table): Ditto.
9529         (Fput_case_table_pair): Ditto.
9530         (Fcopy_case_table): Ditto.
9531         (Fcurrent_case_table): Return case-table.
9532         (Fstandard_case_table): Return case-table.
9533         (Fset_case_table): Fix doc-string.
9534         (set_case_table): Use case-table
9535         (syms_of_casetab): DEFSUBR new functions.
9536         (complex_vars_of_casetab): Set up standard case-table.
9537         * casetab.h: New file.
9538         * editfns.c: Include casetab.h
9539         (Fcompare_buffer_substrings): Use case-table.
9540         * inline.c: Include casetab.h
9541         * lisp.h: Remove bogus extern.
9542         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9543         * search.c: Include casetab.h
9544         (TRANSLATE_ASCII): Removed.
9545         (TRANSLATE): Unconditionally translate character.
9546         (looking_at_1): Use case-table.
9547         (string_match_1): Ditto.
9548         (fast_string_match): Ditto.
9549         (search_command): Ditto.
9550         (search_buffer): Separate boyer_moore.  Check whether
9551         boyer_moore is possible.
9552         (simple_search): New function.
9553         (boyer_moore): Separated from search_buffer. Translate char.
9554
9555 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9556
9557         * regex.c (RE_TR_ASCII): Removed.
9558         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9559         (PATFETCH): Call PATFETCH_RAW.
9560         (PATFETCH_RAW): Fetch Emchar.
9561         (PATUNFETCH): Decrement charptr.
9562         (GET_BUFFER_SPACE): Rename b to buf_end.
9563         (BUF_PUSH): Ditto.
9564         (BUF_PUSH_2): Ditto.
9565         (BUF_PUSH_3): Ditto.
9566         (EXTEND_BUFFER): Ditto.
9567         (SET_LIST_BIT): Ditto.
9568         (regex_compile): Ditto.  Translate non ASCII char.
9569         (compile_range): Ditto.
9570         (re_search_2): Ditto.
9571         (re_match_2_internal): Compare Emchar.
9572         (bcmp_translate): Ditto.
9573
9574 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
9575
9576         * lisp.h (basic char/int typedefs):  comment improvement.
9577
9578 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
9579
9580         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
9581         unstomp inhibit_site_lisp.  Improve comments.
9582
9583 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
9584
9585         * mule-charset.c (Fcharset_property):  improve type checking, comments.
9586
9587 2000-11-28  Andy Piper  <andy@xemacs.org>
9588
9589         * redisplay-output.c (redisplay_output_subwindow): make sure we do
9590         clipped display for windows in the gutter also.
9591         (redisplay_display_boxes_in_window_p): change semantics of return
9592         codes to be more intuitive.
9593
9594         * gutter.h: declare display_boxes_in_gutter_p.
9595
9596         * gutter.c (display_boxes_in_gutter_p): new function for
9597         redisplay.
9598
9599 2000-11-22  Andy Piper  <andy@xemacs.org>
9600
9601         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
9602         autodetect domain.
9603
9604 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
9605
9606         * callproc.c (Fold_call_process_internal):
9607         * gpm.c (Freceive_gpm_event):
9608         (tty_get_foreign_selection): Might be just warning supression.
9609         * fileio.c (Fwrite_region_internal):
9610         (Fset_visited_file_modtime):
9611         * keymap.c (event_matches_key_specifier_p):
9612         Initialize GCPROed variable.
9613
9614         * menubar-x.c (command_builder_find_menu_accelerator):
9615         Initialize before use.
9616
9617 2000-11-23  Andy Piper  <andy@xemacs.org>
9618
9619         * unexcw.c (unexec): make the resulting executable executable.
9620
9621 2000-11-21  Martin Buchholz  <martin@xemacs.org>
9622
9623         * doc.c (get_doc_string):
9624         Use size_t, not int, for result of XSTRING_LENGTH.
9625
9626         * cmds.c (Fdelete_char):
9627         * cmds.c (Fpoint_at_eol):
9628         * cmds.c (Fself_insert_command):
9629         Use EMACS_INT, not int, for result of XINT.
9630         Someday, someone will want to insert more than 2**31 identical characters.
9631
9632         * cmds.c (Fdelete_char):
9633         * cmds.c (Fdelete_backward_char):
9634         * syntax.c (Fforward_word):
9635         * syntax.c (Fforward_comment):
9636         Make COUNT argument optional, for consistency with forward-char et al.
9637
9638 2000-11-22  Martin Buchholz  <martin@xemacs.org>
9639
9640         * lisp.h:
9641         * print.c (long_to_string):
9642         Return a useful value: the pointer at end of data written.
9643
9644         * doprnt.c:
9645         Use `static const char * const' for constant strings.
9646         (union printf_arg): Delete `i', `ui' members.
9647         (get_doprnt_args):
9648         (emacs_doprnt_1):
9649         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
9650         Do all printf-ing via the `l' specifier.
9651         Use EMACS_INT instead of int.
9652         Optimize.
9653
9654 2000-11-20  Didier Verna  <didier@xemacs.org>
9655
9656         * faces.c (update_face_cachel_data): don't frob the background
9657         pixmap when the window is being created. The face is needed but
9658         does not exist yet.
9659
9660 2000-11-20  Andy Piper  <andy@xemacs.org>
9661
9662         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
9663         messing with a debug environment.
9664
9665 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9666
9667         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
9668
9669 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9670
9671         * casetab.c (Fcase_table_p): Fix compile error and crash.
9672
9673 2000-11-18  Philip Aston  <philipa@mail.com>
9674
9675         * s/cygwin32.h: Cygwin has SVR4-like pty support.
9676
9677 2000-11-18  Martin Buchholz  <martin@xemacs.org>
9678
9679         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
9680         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
9681
9682 2000-11-17  Martin Buchholz  <martin@xemacs.org>
9683
9684         * config.h.in: Define HAVE_ELF_H if elf.h exists.
9685         * unexelf.c: Use HAVE_ELF_H.
9686         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
9687         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
9688         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
9689         Greg Harrington <greg_harrington@hotmail.com> provided a machine
9690         for testing.
9691         So this is an unexelfsgi.c from a different line of development.
9692
9693 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9694
9695         * regex.c (RE_TR_ASCII): New function.
9696         (RE_TRANSLATE): Call it.
9697
9698 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9699
9700         * buffer.h (TRT_TABLE_OF): Remove assert.
9701         (IN_TRT_TABLE_DOMAIN): Removed.
9702
9703 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9704
9705         * free-hook.c (log_gcpro):
9706         (show_gcprohist): Add support for GCPRO5.
9707
9708 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
9709
9710         * emacs.c (main_1): Improve -sd error message when --pdump=no.
9711
9712 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
9713
9714         * symeval.h: Declare flush_all_buffer_local_cache.
9715
9716         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
9717         (flush_buffer_local_cache): Added.
9718         (flush_all_buffer_local_cache): Added.
9719
9720         * lrecord.h: Remove unused XD_LO_RESET_NIL.
9721
9722         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
9723         (pdump_dump_data): Ditto.
9724         (pdump_reloc_one): Ditto.
9725         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
9726         before dumping.
9727
9728
9729 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9730
9731         * buffer.c: Remove if 0'ed entry.
9732         * buffer.h: Rewrite TRT to use char-table.
9733         * bufslots.h: Remove mirror tables.
9734         * casetab.c: Remove mirror tables.
9735         (CASE_TABLE_P): New macro.
9736         (Fcase_table_p): Element of a case table is string or char-table.
9737         (make_mirror_trt_table): Removed.
9738         (set_case_table): Setup char-table from strings for backward
9739         compatibility.
9740         * dired.c (Fdirectory_files):
9741         * dired-msw.c: (mswindows_get_files):
9742         * lisp.h: Change prototype of re_pattern_buffer.
9743         * regex.c: (RE_TRANSLATE): New macro.
9744         (TRANSLATE_P): Ditto.
9745         Change translate to type RE_TRANSLATE_TYPE.
9746         * regex.h: Define RE_TRANSLATE_TYPE
9747         * search.c (TRANSLATE): New macro.
9748         (TRANSLATE_ASCII): New macro.
9749         Translate table is changed to Lisp_Object.
9750         (signal_failure): Inhibit return.
9751
9752 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9753
9754         * device-msw.c:
9755         * eldap.c:
9756         * event-Xt.c:
9757         * event-stream.c:
9758         * print.c:
9759         Do UNGCPRO before return.
9760
9761 2000-11-14  Martin Buchholz <martin@xemacs.org>
9762
9763         * XEmacs 21.2.37 is released.
9764
9765 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9766
9767         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
9768         Add comments about discarded return value.
9769
9770 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9771
9772         * callint.c:
9773         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
9774
9775 2000-10-27  Andy Piper  <andy@xemacs.org>
9776
9777         * gutter.c (Fset_default_gutter_position): default left and right
9778         gutters to visible.
9779         (calculate_gutter_size): calculate resonable heuristic for left
9780         and right gutter sizes.
9781         (specifier_vars_of_gutter): change left and right gutter sizes to
9782         autodetect.
9783         (calculate_gutter_size_from_display_lines): new function.
9784         (output_gutter): check for resizing on left and right gutters.
9785         (clear_gutter): don't special case top and left gutters.
9786         (specifier_vars_of_gutter): use new signature for
9787         set_specifier_caching.
9788
9789         * glyphs-x.c (x_redisplay_widget): spelling fix.
9790         * glyphs.c (specifier_vars_of_glyphs):
9791         * menubar.c (specifier_vars_of_menubar):
9792         * redisplay.c (specifier_vars_of_redisplay):
9793         * toolbar.c (specifier_vars_of_toolbar):
9794         * window.c (specifier_vars_of_window):
9795         * scrollbar.c (specifier_vars_of_scrollbar):
9796         (complex_vars_of_scrollbar): use new signature for
9797         set_specifier_caching.
9798
9799         * specifier.c (set_specifier_caching): include recompute flag.
9800         (recompute_one_cached_specifier_in_window): always recompute if
9801         flag set.
9802         (recompute_one_cached_specifier_in_frame): ditto.
9803
9804         * specifier.h (struct specifier_caching): add recompute flag.
9805
9806 2000-10-24  Andy Piper  <andy@xemacs.org>
9807
9808         * unexcw.c (copy_executable_and_dump_data_section): add new
9809         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
9810         5.0 happy.
9811
9812 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9813
9814         * console-x.h (x_device): New member modifier_release_time.
9815         * event-Xt.c (x_handle_sticky_modifiers):
9816         Bound interval modifier keys are sticky.
9817         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
9818         * events.h: extern it.
9819
9820 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9821
9822         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
9823
9824 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9825
9826         * event-stream.c (execute_command_event): Preserve current_events
9827         and the like when event is misc-user-event.
9828         Inhibit quit during the call to maybe_echo_keys.
9829
9830 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9831
9832         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
9833         symlink when buffer is killed.
9834         (inhibit_clash_detection): New variable.
9835
9836 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9837
9838         * console.c (Fset_input_method): Trigger redisplay on tty.
9839
9840 2000-11-07  Martin Buchholz  <martin@xemacs.org>
9841
9842         * process.c (Fprocess_status): Revert to previous behavior:
9843         (process-status "nosuchprocess") ==> nil
9844
9845 2000-11-06  Martin Buchholz  <martin@xemacs.org>
9846
9847         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
9848         Work around another GCC 2.95.2 optimizer bug.
9849
9850 2000-11-02  Martin Buchholz  <martin@xemacs.org>
9851
9852         * process.c (Fget_process): Use LIST_LOOP_2.
9853         (kill_buffer_processes): Use LIST_LOOP_2.
9854
9855         * minibuf.c (Fall_completions):
9856         Delete old non-functional code for FSF fourth argument.
9857
9858         * frame.c (frame_matches_frame_spec):
9859         Renamed from `frame_matches_frametype'.  Update all callers.
9860         (device_matches_device_spec):
9861         Renamed from 'device_matches_console_spec'.  Update all callers.
9862
9863         * doc.c (Fsubstitute_command_keys):
9864         Remove buffer overflow crash.  Small code cleanups.
9865
9866         * casetab.c (check_case_table): Simpler code.
9867
9868         * window.c (Freplace_buffer_in_windows):
9869         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
9870         (and similar implementation) as Fdelete_windows_on.
9871         Update all callers.
9872
9873         * alloc.c (Fmake_list):
9874         * alloc.c (make_vector):
9875         * alloc.c (Fmake_vector):
9876         * alloc.c (make_bit_vector):
9877         * alloc.c (Fmake_bit_vector):
9878         * alloc.c (Fbit_vector):
9879         * alloc.c (Fmake_string):
9880         * alloc.c (Fpurecopy):
9881         * alloc.c (Fmemory_limit):
9882         * buffer.c:
9883         * buffer.c (Fget_buffer):
9884         * buffer.c (Fkill_buffer):
9885         * buffer.c (complex_vars_of_buffer):
9886         * bytecode.c (Fcompiled_function_stack_depth):
9887         * callint.c (Fprefix_numeric_value):
9888         * event-stream.c:
9889         * event-stream.c (Fread_key_sequence):
9890         * casetab.c:
9891         * casetab.c (Fcase_table_p):
9892         * casetab.c (check_case_table):
9893         * casetab.c (Fset_case_table):
9894         * casetab.c (Fset_standard_case_table):
9895         * chartab.c:
9896         * chartab.c (Fchar_table_type):
9897         * chartab.c (Freset_char_table):
9898         * chartab.c (Fget_char_table):
9899         * chartab.c (Fget_range_char_table):
9900         * chartab.c (Fput_char_table):
9901         * chartab.c (Fmap_char_table):
9902         * chartab.c (Fcategory_table_p):
9903         * chartab.c (Fcheck_category_at):
9904         * chartab.c (Fchar_in_category_p):
9905         * chartab.c (Fcategory_table):
9906         * chartab.c (Fcopy_category_table):
9907         * chartab.c (Fset_category_table):
9908         * chartab.c (Fcategory_designator_p):
9909         * chartab.c (Fcategory_table_value_p):
9910         * cmds.c (Fdelete_char):
9911         * cmds.c (Fdelete_backward_char):
9912         * cmds.c (Fself_insert_command):
9913         * cmds.c (Fself_insert_internal):
9914         * console.c (Fvalid_console_type_p):
9915         * console.c (Fcdfw_console):
9916         * console.c (Fconsole_type):
9917         * console.c (Fconsole_name):
9918         * console.c (Fconsole_device_list):
9919         * console.c (Fconsole_on_window_system_p):
9920         * data.c:
9921         * data.c (Feq):
9922         * data.c (Fold_eq):
9923         * data.c (Fsubr_interactive):
9924         * data.c (Fchar_to_int):
9925         * data.c (Fint_to_char):
9926         * data.c (Fsetcar):
9927         * data.c (Fsetcdr):
9928         * data.c (Fnumber_to_string):
9929         * data.c (Fstring_to_number):
9930         * data.c (Frem):
9931         * database.c (mark_database):
9932         * database.c (finalize_database):
9933         * database.c (Fdatabase_live_p):
9934         * database.c (Fdatabasep):
9935         * device-x.c (Fx_get_resource):
9936         * device.c (Fdfw_device):
9937         * dired.c:
9938         * dired.c (Ffile_name_completion):
9939         * dired.c (Ffile_name_all_completions):
9940         * dired.c (Fuser_name_completion):
9941         * dired.c (Fuser_name_completion_1):
9942         * dired.c (Fuser_name_all_completions):
9943         * doc.c (Fdocumentation):
9944         * doc.c (Fdocumentation_property):
9945         * doc.c (Fsubstitute_command_keys):
9946         * editfns.c:
9947         * editfns.c (Fchar_to_string):
9948         * editfns.c (Fstring_to_char):
9949         * editfns.c (Ftemp_directory):
9950         * editfns.c (Finsert_char):
9951         * editfns.c (Fbuffer_substring_no_properties):
9952         * editfns.c (Fnarrow_to_region):
9953         * editfns.c (Fchar_equal):
9954         * editfns.c (Fchar_Equal):
9955         * editfns.c (Ftranspose_regions):
9956         * emacs.c (Fdump_emacs):
9957         * eval.c (Fthrow):
9958         * eval.c (Fcommand_execute):
9959         * eval.c (Fautoload):
9960         * eval.c (Fbacktrace):
9961         * eval.c (Fbacktrace_frame):
9962         * events.c:
9963         * events.c (Fcopy_event):
9964         * events.c (Fcharacter_to_event):
9965         * events.c (Fevent_button):
9966         * events.c (Fevent_process):
9967         * extents.c:
9968         * extents.c (Fnext_extent_change):
9969         * extents.c (Fextent_property):
9970         * faces.c (Ffacep):
9971         * faces.c (Fmake_face):
9972         * file-coding.c:
9973         * file-coding.c (Fencode_shift_jis_char):
9974         * file-coding.c (Fencode_big5_char):
9975         * fileio.c (Ffile_name_directory):
9976         * fileio.c (Ffile_name_nondirectory):
9977         * fileio.c (Ffile_name_as_directory):
9978         * fileio.c (Fdirectory_file_name):
9979         * fileio.c (Ffile_truename):
9980         * fileio.c (Fsubstitute_in_file_name):
9981         * fileio.c (Ffile_modes):
9982         * fileio.c (Fset_file_modes):
9983         * fileio.c (Fset_default_file_modes):
9984         * fileio.c (Fverify_visited_file_modtime):
9985         * floatfns.c (Facos):
9986         * floatfns.c (Fasin):
9987         * floatfns.c (Fatan):
9988         * floatfns.c (Fcos):
9989         * floatfns.c (Fsin):
9990         * floatfns.c (Ftan):
9991         * floatfns.c (Fbessel_j0):
9992         * floatfns.c (Fbessel_j1):
9993         * floatfns.c (Fbessel_jn):
9994         * floatfns.c (Fbessel_y0):
9995         * floatfns.c (Fbessel_y1):
9996         * floatfns.c (Fbessel_yn):
9997         * floatfns.c (Ferf):
9998         * floatfns.c (Ferfc):
9999         * floatfns.c (Flog_gamma):
10000         * floatfns.c (Fexp):
10001         * floatfns.c (Fexpt):
10002         * floatfns.c (Flog):
10003         * floatfns.c (Flog10):
10004         * floatfns.c (Fsqrt):
10005         * floatfns.c (Fcube_root):
10006         * floatfns.c (Facosh):
10007         * floatfns.c (Fasinh):
10008         * floatfns.c (Fatanh):
10009         * floatfns.c (Fcosh):
10010         * floatfns.c (Fsinh):
10011         * floatfns.c (Ftanh):
10012         * floatfns.c (Fabs):
10013         * floatfns.c (Ffloat):
10014         * floatfns.c (Flogb):
10015         * floatfns.c (Fceiling):
10016         * floatfns.c (Ffloor):
10017         * floatfns.c (Fround):
10018         * floatfns.c (Ftruncate):
10019         * floatfns.c (Ffceiling):
10020         * floatfns.c (Fffloor):
10021         * floatfns.c (Ffround):
10022         * floatfns.c (Fftruncate):
10023         * fns.c (Fstring_equal):
10024         * fns.c (Fstring_lessp):
10025         * fns.c (concat2):
10026         * fns.c (concat3):
10027         * fns.c (vconcat2):
10028         * fns.c (vconcat3):
10029         * fns.c (Fsubstring):
10030         * fns.c (Fassoc):
10031         * fns.c (Fold_assoc):
10032         * fns.c (assoc_no_quit):
10033         * fns.c (Fassq):
10034         * fns.c (Fold_assq):
10035         * fns.c (assq_no_quit):
10036         * fns.c (Frassoc):
10037         * fns.c (Fold_rassoc):
10038         * fns.c (Frassq):
10039         * fns.c (Fold_rassq):
10040         * fns.c (rassq_no_quit):
10041         * fns.c (Fremassoc):
10042         * fns.c (remassoc_no_quit):
10043         * fns.c (Fremassq):
10044         * fns.c (remassq_no_quit):
10045         * fns.c (Fremrassoc):
10046         * fns.c (Fremrassq):
10047         * fns.c (remrassq_no_quit):
10048         * fns.c (Fsort):
10049         * fns.c (Fplist_get):
10050         * fns.c (Fplist_put):
10051         * fns.c (Fplist_remprop):
10052         * fns.c (Fplist_member):
10053         * fns.c (Flax_plist_get):
10054         * fns.c (Flax_plist_put):
10055         * fns.c (Flax_plist_remprop):
10056         * fns.c (Flax_plist_member):
10057         * fns.c (Fequal):
10058         * fns.c (Fold_equal):
10059         * fns.c (Frequire):
10060         * fns.c (Fbase64_encode_region):
10061         * fns.c (Fbase64_encode_string):
10062         * fns.c (Fbase64_decode_region):
10063         * frame.c:
10064         * frame.c (frame_matches_frame_spec):
10065         * frame.c (device_matches_device_spec):
10066         * frame.c (next_frame):
10067         * frame.c (previous_frame):
10068         * frame.c (Fnext_frame):
10069         * frame.c (Fprevious_frame):
10070         * frame.c (Fframe_property):
10071         * frame.c (Fset_frame_height):
10072         * frame.c (Fset_frame_size):
10073         * frame.h:
10074         * glyphs.c:
10075         * glyphs.c (if):
10076         * glyphs.c (decode_error_behavior_flag):
10077         * glyphs.c (Fmake_image_instance):
10078         * indent.c (Findent_to):
10079         * intl.c (Fignore_defer_gettext):
10080         * keymap.c (Fkeymapp):
10081         * keymap.c (Flookup_key):
10082         * lread.c:
10083         * lread.c (Fload_internal):
10084         * lread.c (Feval_buffer):
10085         * lread.c (Feval_region):
10086         * macros.c (Fexecute_kbd_macro):
10087         * marker.c (set_marker_internal):
10088         * marker.c (Fset_marker):
10089         * marker.c (set_marker_restricted):
10090         * marker.c (Fcopy_marker):
10091         * marker.c (noseeum_copy_marker):
10092         * menubar.c:
10093         * menubar.c (Fpopup_menu):
10094         * minibuf.c:
10095         * mule-charset.c (Fcharset_name):
10096         * mule-charset.c (Fchar_charset):
10097         * mule-charset.c (Fchar_octet):
10098         * mule-charset.c (Fsplit_char):
10099         * mule-wnnfns.c (Fwnn_open):
10100         * mule-wnnfns.c (Fwnn_dict_comment):
10101         * mule-wnnfns.c (Fwnn_quit_henkan):
10102         * mule-wnnfns.c (Fwnn_word_toroku):
10103         * mule-wnnfns.c (Fwnn_word_sakujo):
10104         * mule-wnnfns.c (Fwnn_word_use):
10105         * mule-wnnfns.c (Fwnn_hindo_set):
10106         * objects.c:
10107         * objects.c (Fmake_color_instance):
10108         * objects.c (Fmake_font_instance):
10109         * print.c (Fwrite_char):
10110         * process.c:
10111         * process.c (mark_process):
10112         * process.c (print_process):
10113         * process.c (get_process_from_usid):
10114         * process.c (Fprocessp):
10115         * process.c (Fprocess_live_p):
10116         * process.c (Fget_process):
10117         * process.c (Fget_buffer_process):
10118         * process.c (get_process):
10119         * process.c (Fprocess_id):
10120         * process.c (Fprocess_name):
10121         * process.c (Fprocess_command):
10122         * process.c (init_process_io_handles):
10123         * process.c (start_process_unwind):
10124         * process.c (Fstart_process_internal):
10125         * process.c (Fopen_multicast_group_internal):
10126         * process.c (Fset_process_window_size):
10127         * process.c (read_process_output):
10128         * process.c (send_process):
10129         * process.c (Fprocess_tty_name):
10130         * process.c (Fset_process_buffer):
10131         * process.c (Fprocess_buffer):
10132         * process.c (Fprocess_mark):
10133         * process.c (set_process_filter):
10134         * process.c (Fset_process_filter):
10135         * process.c (Fprocess_filter):
10136         * process.c (Fprocess_send_region):
10137         * process.c (Fprocess_send_string):
10138         * process.c (exec_sentinel):
10139         * process.c (Fset_process_sentinel):
10140         * process.c (Fprocess_sentinel):
10141         * process.c (status_notify):
10142         * process.c (Fprocess_status):
10143         * process.c (Fprocess_exit_status):
10144         * process.c (process_send_signal):
10145         * process.c (Fprocess_send_eof):
10146         * process.c (deactivate_process):
10147         * process.c (remove_process):
10148         * process.c (Fdelete_process):
10149         * process.c (kill_buffer_processes):
10150         * process.c (Fprocess_kill_without_query):
10151         * process.c (Fprocess_kill_without_query_p):
10152         * rangetab.c:
10153         * rangetab.c (Fget_range_table):
10154         * rangetab.c (Fput_range_table):
10155         * rangetab.c (Fremove_range_table):
10156         * rangetab.c (Fclear_range_table):
10157         * search.c:
10158         * search.c (Fskip_chars_forward):
10159         * search.c (Fskip_chars_backward):
10160         * search.c (Fskip_syntax_forward):
10161         * search.c (Fskip_syntax_backward):
10162         * search.c (search_command):
10163         * search.c (Freplace_match):
10164         * search.c (Fregexp_quote):
10165         * select.c (Fown_selection_internal):
10166         * select.c (Fselection_owner_p):
10167         * select.c (Fselection_exists_p):
10168         * select.c (Fget_selection_internal):
10169         * specifier.c:
10170         * symbols.c:
10171         * symbols.c (Fintern):
10172         * symbols.c (Fintern_soft):
10173         * symbols.c (Funintern):
10174         * symbols.c (Fapropos_internal):
10175         * symbols.c (Fset_default):
10176         * syntax.c:
10177         * syntax.c (Fsyntax_table_p):
10178         * syntax.c (Fcopy_syntax_table):
10179         * syntax.c (Fset_syntax_table):
10180         * syntax.c (Fchar_syntax):
10181         * syntax.c (syntax_match):
10182         * syntax.c (Fmatching_paren):
10183         * syntax.c (Fforward_word):
10184         * syntax.c (scan_lists):
10185         * syntax.c (Fscan_lists):
10186         * syntax.c (Fscan_sexps):
10187         * syntax.c (Fparse_partial_sexp):
10188         * toolbar.c (Fcheck_toolbar_button_syntax):
10189         * tooltalk.doc:
10190         * window.c:
10191         * window.c (Fwindowp):
10192         * window.c (Fwindow_live_p):
10193         * window.c (Fwindow_point):
10194         * window.c (Fdelete_window):
10195         * window.c (Fnext_window):
10196         * window.c (Fprevious_window):
10197         * window.c (Fother_window):
10198         * window.c (window_loop):
10199         * window.c (Fget_lru_window):
10200         * window.c (Fsplit_window):
10201         * window.c (Fenlarge_window):
10202         * window.c (Fenlarge_window_pixels):
10203         * window.c (Fshrink_window):
10204         * window.c (Fshrink_window_pixels):
10205         * window.c (change_window_height):
10206         * window.c (Fwindow_configuration_p):
10207         * window.c (Fcurrent_window_configuration):
10208         * window.h:
10209         * casefiddle.c (casify_object):
10210         * casefiddle.c (Fupcase):
10211         * casefiddle.c (Fdowncase):
10212         * casefiddle.c (Fcapitalize):
10213         * casefiddle.c (Fupcase_initials):
10214         * casefiddle.c (casify_region_internal):
10215         * casefiddle.c (casify_region):
10216         * casefiddle.c (Fupcase_region):
10217         * casefiddle.c (Fdowncase_region):
10218         * casefiddle.c (Fcapitalize_region):
10219         * casefiddle.c (Fupcase_initials_region):
10220         * casefiddle.c (Fupcase_word):
10221         * casefiddle.c (Fdowncase_word):
10222         * casefiddle.c (Fcapitalize_word):
10223         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10224         Replace 0 with '\0' when working with bytes.
10225         Replace initial "(" with "\(" in docstrings.
10226
10227 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10228
10229         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10230
10231         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10232
10233 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10234
10235         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10236
10237 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10238
10239         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10240         correctly.
10241
10242 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10243
10244         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10245         (inhibit_auto_save_session): New variable.
10246         (vars_of_fileio): Declare and initialize them.
10247         * fileio.c (Fdo_auto_save): Don't create session file if
10248         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10249
10250 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10251
10252         * sgiplay.c (play_internal): C++ compilability.
10253         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10254         * callproc.c (Fold_call_process_internal):
10255         Remove unused vars `env', `first'.
10256         * scrollbar.c (update_scrollbar_instance):
10257         #### unused var `current_window'.
10258         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10259         etc. within #ifdef NOT_YET.
10260         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10261         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10262         * specifier.c (specifier_instance):
10263         #### unused var `tag'.
10264         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10265
10266 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10267
10268         * fns.c (Fbutlast):
10269         * fns.c (list_sort):
10270         * fns.c (Ffillarray):
10271         * fns.c (bytecode_nconc2):
10272         * fns.c (Fnconc):
10273         * fns.c (mapcar1):
10274         * fns.c (Fmapconcat):
10275         Be pedantically 64-bit correct.  For the time when someone will
10276         want to have a list with length > 2**32.
10277
10278         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10279         Work around MIPSpro compiler bug.
10280
10281         * process-unix.c (unix_kill_child_process): Add snarky comment.
10282         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10283
10284         * config.h.in: Oops, _getpt ==> _getpty
10285
10286 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10287
10288         * config.h.in:
10289         * regex.c:
10290         Use void*, not char*, as return type of alloca().
10291
10292         * alloc.c (free_marker): Side effect inside assert expression!
10293
10294 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10295
10296         * mule-charset.c (Fset_charset_ccl_program): To check
10297         if the given ccl program is valid, use setup_ccl_program()
10298         instead of CHECK_VECTOR().
10299         (Fmake_charset): Likewise.
10300
10301 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10302
10303         * faces.c (get_extent_fragment_face_cache_index):
10304         Fix cachel.merged_faces memory leak.
10305
10306 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10307
10308         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10309         Reset MSB of octets obtained by DECODE_SJIS
10310         because of the incompatibility with Emacs.
10311         (ccl_driver)<CCL_ENCODE_SJIS>:
10312         Set MSB of octets before passing them to
10313         ENCODE_SJIS because of the incompatibility
10314         with Emacs.
10315
10316 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10317
10318         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10319         (DECLARE_LRECORD): Undo the last change.
10320         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10321
10322 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10323
10324         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10325         the implementation to lrecord_implementations_table.
10326
10327 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10328
10329         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10330         initial value of `lrecord_type_##c_name' and
10331         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10332         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10333         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10334         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10335         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10336
10337 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10338
10339         * miscplay.c (sndcnv8S_2mono):
10340         (sndcnv2monounsigned):
10341         (sndcnvULaw_2linear):
10342         (sndcnv16swap):
10343         Remove implementation-defined behavior.
10344
10345 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10346
10347         * input-method-xlib.c: Warning suppression.
10348
10349 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10350
10351         * mule-ccl.c: Sync up with Emacs 21.0.90.
10352         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10353         Do nothing.
10354         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10355         Likewise.
10356         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10357         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10358         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10359         leading char belongs to official 2-dimensional charset.
10360         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10361         write the given character as is.  Otherwise,
10362         if it is a multibyte char, convert it by
10363         non_ascii_set_charptr_emchar, then write it.
10364         (CCL_WRITE_STRING): Likewise.
10365         (ccl_get_compiled_code): New function.
10366         (setup_ccl_program): When ccl_prog is invalid,
10367         return -1.
10368         (Fregister_code_conversion_map): New function.
10369         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10370
10371         * mule-ccl.h: Sync up with Emacs 21.0.90.
10372         (Fregister_ccl_program): export it.
10373
10374         * redisplay-msw.c (separate_textual_runs):
10375         If ccl program is not valid, don't do ccl conversion.
10376
10377         * redisplay-x.c (separate_textual_runs): Ditto.
10378
10379         * file-coding.c (Fmake_coding_system):
10380         When type is ccl and value is vector, register it
10381         with a proper symbol.  And checks whether the
10382         given ccl program is valid.
10383         (mule_decode): When calling ccl_driver, if src indicates
10384         NULL pointer, set an empty string instead.
10385         (mule_encode): Likewise.
10386
10387 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10388
10389         The following large batch of changes gets us back to a state of
10390         C++ compilability.  Extbyte is now a char, which means that
10391         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10392
10393         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10394
10395         * sound.c (Fplay_sound): Type correctness.
10396
10397         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10398         (x_get_window_property): Type correctness.
10399         (receive_incremental_selection): unsigned char ==> Extbyte
10400         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10401         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10402         (Fx_store_cutbuffer_internal): Type correctness.
10403
10404         * process-unix.c (try_to_initialize_subtty): Type correctness.
10405
10406         * objects-x.c (x_print_color_instance): Type correctness.
10407         (x_print_font_instance): Type correctness.
10408         (x_list_fonts): SExtbyte ==> Extbyte.
10409         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10410         (x_find_charset_font): SExtbyte ==> Extbyte.
10411         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10412         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10413         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10414         Use bufbyte_strcmp.
10415
10416         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10417         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10418         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10419         (BYTE_C0_P): Use bit ops for char-signedness safety.
10420         (BYTE_C1_P): Use bit ops for char-signedness safety.
10421         (CHARSET_BY_LEADING_BYTE):
10422         (CHARSET_BY_ATTRIBUTES):
10423         Always use inline function.
10424         Use type_checking_assert.
10425         Hide chlook.
10426
10427         * mule-charset.c (non_ascii_charptr_copy_char):
10428         Modify to work with both ASCII and non-ASCII characters.
10429         Improve docs and variable names.
10430         Replace over-clever fall-through switch with a simple loop.
10431         (Lstream_get_emchar_1):
10432         Replace over-clever fall-through switch with a simple loop.
10433
10434         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10435         Warning suppression.
10436
10437         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10438         the return value of Lstream_getc, which could be EOF as well.
10439
10440         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10441
10442         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10443         APIs can be used on Extbytes without casts.  Risky!
10444         (SExtbyte): Remove.
10445         (UExtbyte): Remove.
10446
10447         * input-method-xlib.c (XIM_init_device):
10448         Use Xlib.h instead of IntrinsicP.h.
10449         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10450         which will break in X11R7.
10451         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10452         to call XRegisterIMInstantiateCallback with correct types.
10453
10454         * gui-x.c (button_item_to_widget_value): Type correctness.
10455
10456         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10457
10458         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10459         (xbm_instantiate_1): Type correctness.
10460         (BUILD_GLYPH_INST):  Type correctness.
10461
10462         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10463
10464         * file-coding.c:
10465         (decode_coding_sjis):
10466         (decode_coding_big5):
10467         (decode_coding_ucs4):
10468         (decode_coding_utf8):
10469         (decode_coding_iso2022):
10470         (decode_coding_no_conversion):
10471         Make all decoding functions take an Extbyte * arg.
10472         (encode_coding_sjis):
10473         (encode_coding_big5):
10474         (encode_coding_ucs4):
10475         (encode_coding_utf8):
10476         (encode_coding_iso2022):
10477         (encode_coding_no_conversion):
10478         Make all encoding functions take a Bufbyte * arg.
10479         Use size_t instead of unsigned int for memory sizes.
10480         Only cast to unsigned char whenever dereferencing Extbyte *.
10481
10482         * doc.c (unparesseuxify_doc_string): Type correctness.
10483
10484         * console-x.c (split_up_display_spec):
10485         Rewrite without using details of internal string representation.
10486         (x_semi_canonicalize_device_connection): Type correctness.
10487
10488         * config.h.in:
10489         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10490         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10491         (HAVE_XFREE386): Removed.
10492
10493         * buffer.h (DEC_CHARPTR): `const' correctness.
10494         (bufbyte_strcmp): New.
10495         (bufbyte_memcmp): New.
10496
10497         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10498
10499         * buffer.h (XCHAR_OR_CHAR_INT):
10500         Always use inline function.
10501         Remove redundant type checking assert() - XINT will abort quite nicely.
10502
10503 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10504
10505         * search.c (Freplace_match): Set newtext to an empty string.
10506
10507 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10508
10509         * s/decosf1-3.h: Remove #include of stropts.h
10510         * s/ptx.h: Remove #include of stropts.h
10511         * s/usg5-4.h: Remove #include of stropts.h
10512         * sysproc.h:
10513         * config.h.in:
10514         Use stropts.h, not sys/stropts.h.
10515         Use strtio.h, not sys/strtio.h.
10516
10517 2000-10-04  Martin Buchholz <martin@xemacs.org>
10518
10519         * XEmacs 21.2.36 is released.
10520
10521 2000-09-21  Andy Piper  <andy@xemacs.org>
10522
10523         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10524         changes still involve copying the widget tree.
10525         (update_widget_face): make sure a change is register in the widget
10526         tree. Call update_tab_widget_face appropriately.
10527         (update_tab_widget_face): ditto.
10528         (x_tab_control_redisplay): make sure non-structural changes still
10529         involve copying the widget tree.
10530
10531 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10532
10533         * lread.c (locate_file): Check the path element is non-nil.
10534
10535 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10536
10537         * lisp.h: Warning suppression for SCO compilers.
10538
10539         * redisplay-tty.c (reset_tty_modes): Fix crash.
10540         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10541
10542 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10543
10544         Big signal/process handling overhaul.  Bugs fixed:
10545         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10546         M-x comint-kill-subjob should work for both values nil and t of
10547         process-connection-type. It was broken on most platforms.
10548         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10549         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10550         * process-unix.c: Signal/Process handling overhaul.
10551         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10552         (allocate_pty): Use all available modern methods of allocating
10553         ptys, falling back to old style BSD allocation as a last resort.
10554         Use allegedly more secure Unix98 pty allocation by default.
10555         (allocate_pty_the_old_fashioned_way): New. the last resort.
10556         (unix_create_process): Push ptem, ldterm, ttcompat where
10557         available.  Autoconfiscate.
10558         (try_to_initialize_subtty): New.
10559         (unix_kill_child_process): Proper signal handling for ptys on most
10560         platforms, using special knowledge of AIX, BSD, etc...
10561         (unix_create_process): Always disconnect_controlling_terminal() for
10562         subprocesses, whether using ptys or not.
10563         * process.h: Remove old getpt-dependent PTY code.
10564         * process.c (Fprocess_send_signal): New, obvious generic function.
10565         (decode_signal): New.
10566         (Finterrupt_process):
10567         (Fkill_process):
10568         (Fquit_process):
10569         (Fstop_process):
10570         (Fcontinue_process):
10571         (Fsignal_process): Use decode_signal.
10572         (process_send_signal):
10573         Many docstring corrections.
10574         Allow any signal to be sent to a process object.
10575         * config.h.in: Add symbols for big signal/process overhaul.
10576         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
10577         * sysproc.h: Include process-related headers, where available:
10578         sys/stropts.h sys/strtio.h pty.h libutil.h
10579         * s/irix4-0.h:
10580         * s/irix5-0.h:
10581         * s/cygwin32.h:
10582         * s/gnu.h:
10583         * s/linux.h:
10584         * s/hpux.h:
10585         * s/aix3-1.h:
10586         Remove old S&M pty stuff.
10587         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
10588         * systty.h: Simplify cpp hackery, improve comments.
10589         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
10590
10591         * editfns.c (Fformat_time_string):
10592         Be a little more paranoid with the return value of ctime.
10593
10594         * fileio.c (check_executable):
10595         (check_writable):
10596         Use symbolic constants X_OK, W_OK.
10597
10598         * console-x.c (split_up_display_spec): Fix a warning.
10599
10600 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10601
10602         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
10603         * ntproc.c (sys_spawnve): make_string ==> build_string
10604         Small clarity improvements.
10605
10606 2000-09-30  Martin Buchholz  <martin@xemacs.org>
10607
10608         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
10609
10610         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
10611
10612         * config.h.in (HAVE_STRCASECMP): Remove.
10613
10614 2000-09-29  Martin Buchholz  <martin@xemacs.org>
10615
10616         * redisplay-output.c (redisplay_output_pixmap):
10617         Cleaner and possibly more 64-bit correct code.
10618
10619 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
10620
10621         * dumper.c (pdump_load_finish): move restoration of
10622         `noninteractive1' to emacs.c (main_1).
10623         * emacs.c (main_1): protect LISP-visible command-line flags
10624         from pdump_load().
10625
10626 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
10627
10628         * Makefile.in.in (versionclean):  Use EXE_TARGET and
10629         DUMP_TARGET instead of literal program names.
10630
10631 2000-09-20  Martin Buchholz  <martin@xemacs.org>
10632
10633         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
10634
10635 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10636
10637         * *: Spelling mega-patch
10638
10639 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10640
10641         * fns.c (bad_bad_turtle):
10642         Delete "Eek!" comment, since we fixed the bug to which it refers.
10643
10644 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10645
10646         * alloca.c: Replace REGISTER with register.
10647
10648 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
10649
10650         * file-coding.c (ucs_to_char): Use countof.
10651
10652 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10653
10654         * file-coding.c: (ucs_to_char):
10655         (complex_vars_of_file_coding):
10656         Use countof instead of sizeof.
10657         Use CHECK_NATNUM instead of CHECK_INT.
10658
10659         * sysdep.c (strcasecmp): Remove.
10660         * device-x.c (ascii_strcasecmp): New.
10661         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
10662         Avoid using non-standard non-portable strcasecmp.
10663
10664 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10665
10666         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
10667         * font-lock.c: remove reference to emacsfns.h.
10668         * search.c: small doc improvement.
10669         * event-Xt.c: correct file names in comments.
10670         * console-x.h Correct file names in comments.
10671         * frame.c: Correct file names in comments.
10672         * event-stream.c: remove Energize from comments.
10673
10674 2000-09-15  Martin Buchholz  <martin@xemacs.org>
10675
10676         * symeval.h (DEFERROR_STANDARD):
10677         (DEFERROR):
10678         (DEFSYMBOL):
10679         (DEFSYMBOL_NO_DUMP):
10680         (DEFSYMBOL_MULTIWORD_PREDICATE):
10681         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
10682         (DEFKEYWORD):
10683         The construct &##name is not sensible C.
10684         Fixes compilation errors with Unixware native compiler.
10685
10686 2000-09-14  Martin Buchholz  <martin@xemacs.org>
10687
10688         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
10689         (next_frame_internal): Removed.  We now just have next_frame.
10690         (next_frame):
10691         Write a simpler and cleaner one-pass algorithm.
10692         Remove called_from_delete_device arg and #ifdefed-out code.
10693         (previous_frame):
10694         Renamed from prev_frame.  Update callers.
10695         Cleaned up to have an analogous implementation to next_frame.
10696         (other_visible_frames_internal): Remove the
10697         called_from_delete_device bogus arg, and hence, remove this
10698         function.  Just use other_visible_frames().
10699
10700         * window.c (Fnext_window):
10701         Prettify docstring.
10702         Since next_frame() is guaranteed to return a frame, remove check
10703         for nil inserted in previous patch.
10704         (Fprevious_window):
10705         Prettify docstring.
10706         Make code look more like Fnext_window.
10707         (window_loop):
10708         Respect the `console' arg when iterating through windows.
10709         Fixes bug: (get-buffer-window buffer t device) not respecting
10710         the `device' arg.
10711         This function needs more work, as others have pointed out.
10712
10713         * frame.h: Rename prev_frame to previous_frame.
10714         device_matches_console_spec no longer takes a `frame' arg.
10715
10716         * s/gnu.h:
10717         * s/linux.h:
10718         * s/hpux.h:
10719         Use EMACS_BLOCK_SIGNAL instead of sigblock.
10720         From "Golubev I. N." <gin@mo.msk.ru>.
10721
10722         * make-src-depend: Fix typo.
10723
10724 2000-09-13  Martin Buchholz  <martin@xemacs.org>
10725
10726         * window.c (Fnext_window):
10727         next_frame() might return nil, not a frame.
10728         Fixes this crash:
10729         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10730
10731         * frame.c (next_frame_internal):
10732         We've passed a frame if we've passed its device.
10733         Fixes this crash:
10734         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10735 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
10736
10737 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10738
10739         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10740         Allow option to suppress accelerators in menu/dialog items.
10741         (populate_or_checksum_helper): Pass dialog title through above.
10742
10743 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10744
10745         * event-msw.c (mswindows_key_to_emacs_keysym):
10746         Add "pause" key, fix "menu" key.
10747
10748 2000-09-09  Martin Buchholz  <martin@xemacs.org>
10749
10750         * eval.c (reinit_vars_of_eval):
10751         Increase max_lisp_eval_depth to 1000,
10752         required for thai-xtis.el to byte-compile under some circumstances.
10753
10754 2000-09-04  Martin Buchholz  <martin@xemacs.org>
10755
10756         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
10757         From Kenichi Handa.
10758
10759 2000-09-01  Martin Buchholz  <martin@xemacs.org>
10760
10761         * make-src-depend: Make the generated Makefiles smaller.
10762
10763         * s/hpux.h (SETUP_SLAVE_PTY):
10764         Provide a %d in the format string for the errno argument.
10765
10766         * editfns.c (Ftemp_directory):
10767         Warning fix.
10768         Avoid buffer overrun on very long file name.
10769
10770         * input-method-xlib.c (XIM_init_device):
10771         6th parameter of XRegisterIMInstantiateCallback has different
10772         pointer types on different OSes, so simply cast to (void *).
10773
10774         * unexhp9k800.c: Warning fixes.  Fiddly changes.
10775
10776         * sysdll.c (dll_open):
10777         shl_load will hang hard if passed a NULL filename.
10778         Simply return NULL for compatibility with dlopen.
10779         * sysdll.c: Conform to XEmacs coding standards.
10780
10781         * sysdep.c (get_pty_max_bytes):
10782         Support pty input lines longer than 512 bytes on HP-UX 10.20.
10783
10784 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10785
10786         * tooltalk.c: Add #include <syssignal.h>
10787
10788 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
10789
10790         * s/hpux.h: Don't use undefined function sigunblock().
10791
10792 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10793
10794         * config.h.in: Add HAVE_BALLOON_HELP.
10795         * emacs.c: Use HAVE_BALLOON_HELP.
10796         * Makefile.in.in (x_objs):
10797         Make Balloon Help conditional on finding shape.h.
10798
10799 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
10800
10801         * syntax.c (regex_emacs_buffer_p): New variable.
10802         * syntax.h (regex_emacs_buffer_p): extern.
10803         * search.c (looking_at_1):
10804         (string_match_1):
10805         (fast_string_match):
10806         (search_buffer): Set regex_emacs_buffer_p.
10807         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
10808         when before_dot, at_dot, after_dot.
10809
10810 2000-08-23  Andy Piper  <andy@xemacs.org>
10811
10812         * gui-x.c (popup_selection_callback): Only set action_occurred
10813         when we really have an image instance.
10814         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
10815
10816 2000-08-23  Andy Piper  <andy@xemacs.org>
10817
10818         * gui-msw.c (mswindows_handle_gui_wm_command): set
10819         action_occurred.
10820         * gui-x.c (popup_selection_callback): ditto.
10821
10822         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
10823         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
10824         (struct Lisp_Image_Instance): add action_occurred flag.
10825
10826         * glyphs.c (redisplay_subwindow): use action_occurred flag.
10827         (image_instance_changed): ditto.
10828         (reset_frame_subwindow_instance_cache): only unmap windows - do
10829         not remove them from the cache also.
10830
10831         * glyphs-widget.c (tab_control_update): better debug.
10832         (progress_gauge_update): ditto.
10833         (layout_update): ditto.
10834         (layout_instantiate): ditto.
10835         (tab_control_order_only_changed): cope with null pending items.
10836
10837         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
10838         debug. Force selection of an item when an action occurred. Cope
10839         with null pending_items.
10840         (mswindows_progress_gauge_redisplay): better debug.
10841         * glyphs-x.c (x_tab_control_redisplay): ditto.
10842
10843         * redisplay.c (redisplay_frame): reset the frame cache if the
10844         frame is garbaged.
10845
10846         * window.c (Fset_window_configuration): potentially re-enable
10847         frame cache reset.
10848         (window_unmap_subwindows): need to finalize instances here since
10849         it is only used in mark_window_as_deleted.
10850
10851 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
10852
10853         * nas.c (SndOpenDataForReading):
10854         nas.c (WaveOpenDataForReading):
10855         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
10856         Somehow escaped from the 2000-08-14 patch.
10857
10858 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
10859
10860         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
10861         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
10862
10863 2000-08-21  Andy Piper  <andy@xemacs.org>
10864
10865         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
10866         window if it is not already displayed.
10867
10868         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
10869         it is not already displayed.
10870
10871         * window.c (Fset_window_configuration): don't reset the frame
10872         cache.
10873
10874         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
10875         instances from the frame cache if we are actually finalizing them.
10876         (reset_frame_subwindow_instance_cache): reset frame cache only
10877         after unmapping everything.
10878         (map_subwindow): set displayed flag after mapping.
10879
10880 2000-08-21  Martin Buchholz  <martin@xemacs.org>
10881
10882         * data.c (indirect_function):
10883         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
10884
10885         * eval.c (function_argcount):
10886         Use original function when signaling errors.
10887
10888 2000-08-18  Andy Piper  <andy@xemacs.org>
10889
10890         * frame.c (delete_frame_internal): use new
10891         free_frame_subwindow_instances name.
10892
10893         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
10894         (add_tab_item): make return type correct.
10895         (mswindows_tab_control_instantiate): assert index of tab.
10896         (mswindows_tab_control_redisplay): Re-code to use
10897         gui_item_equal_sans_selected and gui_item_list_find_selected.
10898
10899         * glyphs-widget.c (tab_control_update): Correct comment.
10900
10901         * window.c (window_unmap_subwindows): use new
10902         unmap_subwindow_instance_cache_mapper.
10903         (window_unmap_subwindows_cache_mapper): deleted.
10904         (Fset_window_configuration): comparisons should now be with
10905         EQ. Preserve the subwindow instance cache across configuration
10906         changes.
10907         (allocate_window): ditto.
10908         (make_dummy_parent): ditto.
10909
10910         * glyphs.c (free_frame_subwindow_instances): rename from
10911         free_frame_subwindow_instance_cache. finalize all instances rather
10912         than just those in the display cache.
10913         (finalize_all_subwindow_instances): walk windows unmapping and
10914         finalizing subwindows.
10915         (unmap_subwindow_instance_cache_mapper): moved from
10916         window.c. Allow finalization as well as unmapping.
10917
10918         * gui.c (gui_item_list_find_selected): new function.
10919
10920         * gui.h (gui_item_list_find_selected): declare.
10921
10922         * glyphs-x.c (x_tab_control_redisplay): pick tab
10923         explicitly. Re-code to use gui_item_equal_sans_selected and
10924         gui_item_list_find_selected.
10925
10926         * glyphs-x.h: add lwlib-utils.h
10927
10928         * buffer.c (Frecord_buffer): undo previous change.
10929
10930 2000-08-09  Vin Shelton  <acs@xemacs.org>
10931
10932         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
10933         possible.  Create temporary files more securely.  The patch was
10934         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
10935         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
10936         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
10937         for details.
10938
10939 2000-08-07  Ben Wing  <ben@xemacs.org>
10940
10941         * getloadavg.c: remove duplicate (and windows-breaking)
10942         includes of fcntl.h and sys/file.h.
10943
10944         * nt.c: remove duplicate getloadavg() definition.
10945
10946         * sysdll.h (Qdll_filename_encoding): add missing stand-in
10947         encodings.
10948
10949 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10950
10951         * eval.c (function_argcount): If function needs to be autoloaded
10952         actually use the loaded definition.
10953         GCPRO function.
10954
10955 2000-08-05  Ben Wing  <ben@xemacs.org>
10956
10957         * getloadavg.c: add prototype for getloadavg().  remove
10958         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
10959         of the code).  remove duplicate header includes.
10960
10961         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
10962
10963         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
10964         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
10965         useful load average.
10966
10967         * alloc.c (reinit_alloc_once_early): removed references to
10968         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
10969         the lisp vars are the only things referencing the malloc_sbrk_*
10970         vars, and they were already if 0'd out.  these vars only exist
10971         in the older malloc.c, which is basically unused, and they're
10972         only for informational purposes.
10973
10974         * m\*.h: removed useless VIRT_ADDR_VARIES.
10975
10976         * m\powerpc.h: removed stray NO_ARG_ARRAY.
10977
10978 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10979
10980         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
10981         color if the image is a mono pixmap.
10982
10983 2000-07-30  Ben Wing  <ben@xemacs.org>
10984
10985         * Makefile.in.in (release):
10986         Remove stray @.
10987
10988         * buffer.c (directory_is_current_directory):
10989         * dired-msw.c (mswindows_get_files):
10990         * dired.c:
10991         * dired.c (Fdirectory_files):
10992         * dired.c (file_name_completion_stat):
10993         * dired.c (Ffile_attributes):
10994         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
10995         preprocessor tricks, to avoid problems on some machines
10996         (e.g. SCO).
10997
10998         * callproc.c (egetenv): GC docs.
10999
11000         * console-msw.h:
11001         * console-msw.h (struct mswindows_dialog_id):
11002         * lrecord.h (lrecord_type):
11003         New object for use with MSW dialogs.
11004
11005         * console.h (struct console_methods):
11006         New enable/disable frame methods, for proper modal dialogs.
11007
11008         * device-msw.c (msprinter_default_printer): Fix to follow
11009         proper Mule conventions.
11010
11011         * device-msw.c:
11012         * device-msw.c (signal_open_printer_error):
11013         * device-msw.c (msprinter_init_device):
11014         * device-msw.c (ensure_not_printing):
11015         * device-msw.c (plist_get_margin):
11016         * device-msw.c (Fmsprinter_select_settings):
11017         * device-msw.c (finalize_devmode):
11018         * device-msw.c (Fmsprinter_settings_despecialize):
11019         * device-msw.c (signal_enum_priner_error):
11020         * extents.c (decode_extent):
11021         * extents.c (decode_map_extents_flags):
11022         * extents.c (decode_extent_at_flag):
11023         * extents.c (Fextent_at):
11024         * extents.c (Fextents_at):
11025         * extents.c (symbol_to_glyph_layout):
11026         [[[[2]]]] Use structured errors.
11027
11028         * dialog-msw.c:
11029         * dialog-msw.c (mswindows_is_dialog_msg):
11030         * dialog-msw.c (mark_mswindows_dialog_id):
11031         * dialog-msw.c (dialog_proc):
11032         * dialog-msw.c (handle_question_dialog_box):
11033         * dialog-msw.c (syms_of_dialog_mswindows):
11034         Define new object to clean up marking; use it as a dialog identifier.
11035         Call new delete-dialog-box-hook.
11036
11037         * dialog-x.c (dbox_selection_callback):
11038         * dialog-x.c (dbox_descriptor_to_widget_value):
11039         * dialog-x.c (x_make_dialog_box_internal):
11040         Call new delete-dialog-box-hook.
11041         Return an id.
11042
11043         * dialog.c:
11044         * dialog.c (syms_of_dialog):
11045         * dialog.c (vars_of_dialog):
11046         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11047
11048         * eval.c:
11049         * eval.c (signal_call_debugger):
11050         when noninteractive, output stack traces on the console instead
11051         of in a (never-seen) buffer.
11052
11053         * eval.c (signal_type_error):
11054         * eval.c (invalid_argument_2):
11055         * lisp.h:
11056         new funs for use w/structured errors.
11057
11058         * event-Xt.c:
11059         * event-Xt.c (x_to_emacs_keysym):
11060         * event-Xt.c (describe_event):
11061         * event-Xt.c (emacs_Xt_event_handler):
11062         * event-Xt.c (vars_of_event_Xt):
11063         * event-msw.c:
11064         * event-msw.c (mswindows_wnd_proc):
11065         * event-msw.c (vars_of_event_mswindows):
11066         rename {x,mswindows}-debug-events to debug-{}-events for
11067         consistency with other debug-foo variables.
11068
11069         * event-stream.c:
11070         document next-event more clearly.
11071
11072         * fileio.c (Ffile_name_directory):
11073         * fileio.c (Ffile_name_nondirectory):
11074         * fileio.c (Funhandled_file_name_directory):
11075         * fileio.c (file_name_as_directory):
11076         * fileio.c (Ffile_name_as_directory):
11077         * fileio.c (directory_file_name):
11078         * fileio.c (Fdirectory_file_name):
11079         * fileio.c (Fmake_temp_name):
11080         * fileio.c (Ffile_truename):
11081         * fileio.c (Fsubstitute_in_file_name):
11082         * fileio.c (expand_and_dir_to_file):
11083         * fileio.c (barf_or_query_if_file_exists):
11084         * fileio.c (check_executable):
11085         * fileio.c (Ffile_exists_p):
11086         * fileio.c (Ffile_writable_p):
11087         * fileio.c (Ffile_directory_p):
11088         * fileio.c (Ffile_regular_p):
11089         * fileio.c (Ffile_modes):
11090         * fileio.c (Ffile_newer_than_file_p):
11091         * fileio.c (Fverify_visited_file_modtime):
11092         * fileio.c (Fset_visited_file_modtime):
11093         * fileio.c (auto_save_1):
11094         (1). (2).
11095         fix up gcpro's.
11096
11097         * frame-msw.c:
11098         * frame-msw.c (mswindows_init_frame_1):
11099         * frame-msw.c (mswindows_enable_frame):
11100         * frame-msw.c (error_frame_unsizable):
11101         * frame-msw.c (msprinter_init_frame_1):
11102         * frame-msw.c (msprinter_init_frame_3):
11103         * frame-msw.c (console_type_create_frame_mswindows):
11104         (2).
11105         implement new enable/disable frame methods.
11106
11107         * frame-x.c:
11108         * frame-x.c (x_enable_frame):
11109         * frame-x.c (console_type_create_frame_x):
11110         implement new enable/disable frame methods.
11111
11112         * frame.c:
11113         * frame.c (Fdisable_frame):
11114         * frame.c (syms_of_frame):
11115         * frame.h (struct frame):
11116         implement new enable/disable frame methods/functions.
11117
11118         * general-slots.h:
11119         add initial-focus.
11120
11121         * glyphs-msw.c (mswindows_widget_instantiate):
11122         comment that initial-focus should be implemented.
11123
11124         * glyphs-widget.c:
11125         * glyphs-widget.c (check_valid_instantiator):
11126         * glyphs-widget.c (check_valid_orientation):
11127         * glyphs-widget.c (check_valid_tab_orientation):
11128         * glyphs-widget.c (check_valid_justification):
11129         * glyphs-widget.c (check_valid_border):
11130         * glyphs-widget.c (check_valid_callback):
11131         * glyphs-widget.c (check_valid_int_or_function):
11132         * glyphs-widget.c (check_valid_string_or_vector):
11133         * glyphs-widget.c (check_valid_item_list_1):
11134         * glyphs-widget.c (widget_validate):
11135         * glyphs-widget.c (combo_box_validate):
11136         * glyphs-widget.c (widget_instantiate):
11137         * glyphs-widget.c (syms_of_glyphs_widget):
11138         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11139         * glyphs-widget.c (image_instantiator_combo_box):
11140         * glyphs-widget.c (image_instantiator_scrollbar):
11141         * glyphs-widget.c (image_instantiator_tab_control):
11142         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11143         (2).
11144         support (unimplemented) keyword initial-focus.
11145         reindent long macros.
11146
11147         * glyphs-x.c (x_redisplay_widget):
11148         * glyphs-x.c (x_button_instantiate):
11149         * glyphs-x.c (x_button_redisplay):
11150         * glyphs-x.c (x_progress_gauge_instantiate):
11151         * glyphs-x.c (x_edit_field_instantiate):
11152         * glyphs-x.c (x_combo_box_instantiate):
11153         * glyphs-x.c (x_tab_control_instantiate):
11154         * glyphs-x.c (x_label_instantiate):
11155         * gui-x.c:
11156         * gui-x.c (button_item_to_widget_value):
11157         * gui-x.c (gui_items_to_widget_values_1):
11158         * gui-x.c (gui_item_children_to_widget_values):
11159         * gui-x.c (gui_items_to_widget_values):
11160         * gui-x.h:
11161         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11162         add new flag to gui-parsing routines to indicate whether
11163         accelerator specs should be supported.
11164
11165         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11166
11167         * glyphs.h (struct Lisp_Image_Instance):
11168         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11169         add initial-focus flag.
11170
11171         * gui.c:
11172         * gui.c (syms_of_gui):
11173         * gui.c (vars_of_gui):
11174         clean up menu-no-selection-hook.
11175
11176         * gui.h:
11177         support delete-dialog-box-hook.
11178
11179         * lread.c (Fload_internal):
11180         * lread.c (locate_file_in_directory_mapper):
11181         (1).
11182
11183         * lrecord.h:
11184         * lrecord.h (struct toolbar_button):
11185         * lrecord.h (syms_of_toolbar):
11186         document how to create a new object.
11187
11188         * menubar-msw.c (mswindows_char_is_accelerator):
11189         may be called on frames w/o menus.
11190
11191         * menubar.c (vars_of_menubar):
11192         clean up :filter docs.
11193
11194         * nt.c (readdir):
11195         * ntproc.c:
11196         (1).
11197
11198         * process-nt.c:
11199         * process-nt.c (validate_signal_number):
11200         * process-nt.c (signal_cannot_launch):
11201         * process-nt.c (nt_create_process):
11202         * process-nt.c (nt_send_process):
11203         * process-nt.c (nt_kill_child_process):
11204         * process-nt.c (nt_open_network_stream):
11205         * process-nt.c (syms_of_process_nt):
11206         (2).
11207         delete quote-handling.  call new lisp code that does it better.
11208
11209         * process-unix.c (connect_to_file_descriptor):
11210         * process-unix.c (allocate_pty):
11211         * process-unix.c (unix_send_process):
11212         * process-unix.c (unix_kill_child_process):
11213         * process-unix.c (unix_open_network_stream):
11214         * process-unix.c (unix_open_multicast_group):
11215         (1). (2).
11216
11217         * process.c:
11218         * process.c (Fstart_process_internal):
11219         (2).  need to canonicalize process path even if absolute.
11220
11221         * select-msw.c (symbol_to_ms_cf):
11222         * select-msw.c (ms_cf_to_symbol):
11223         * select-msw.c (cf_is_autofreed):
11224         * select-msw.c (mswindows_destroy_selection):
11225         * select.c:
11226         * select.c (syms_of_select):
11227         * select.h:
11228         support dibv5, fix bugs. (from Mike Alexander)
11229
11230         * select.c (Fget_selection_internal):
11231         * select.c (select_convert_out):
11232
11233         * sysdep.c:
11234         * sysdep.c (xemacs_stat):
11235         renamed.
11236
11237         * sysdep.c (mkdir):
11238         * sysdep.c (rmdir):
11239         but keep original stat() here because we provide encapsulation
11240         around these funs.
11241
11242         * sysfile.h:
11243         * sysfile.h (fstat):
11244         remove stat garbage.
11245
11246         * syswindows.h:
11247         fix X/MSW conflict.
11248         don't include tchar.h.  it's inappropriate because it makes
11249         compile-time distinctions when we want runtime distinctions.
11250         (we provide our own tchar replacements)
11251
11252         * toolbar.c:
11253         use default object printer for toolbar-button.
11254
11255         * unexcw.c:
11256         make sure we don't encapsulate.
11257
11258         * window.c (vars_of_window):
11259         emphasize that temp-buffer-show-hook is obsolete.
11260
11261 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11262
11263         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11264         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11265
11266         * events.c (Fevent_timestamp_lessp):
11267         Not 64-bit clean.  Use EMACS_INT, not int.
11268
11269 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11270
11271         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11272         unsigned int and changed the last enum to
11273         lrecord_type_last_built_in_type.
11274         (lrecord_implementations_table): changed prototype to know how
11275         long the array is supposed to be.
11276         (lrecord_type_count): new unsigned int to keep track of the
11277         current number of lisp lrecord types.
11278         (DEFINE_EXTERNAL_LRECORD):
11279         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11280         dynamic-modules to declare new lisp types. They are the same
11281         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11282         int for each new type, and increment lrecord_type_count by 1.
11283
11284         * alloc.c (lrecord_implementations_table): Changed to reference
11285         lrecord_type_last_built_in_type for the size of the array.
11286         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11287
11288 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11289
11290         * glyphs.h (check_valid_item_list): Renamed from
11291         check_valid_item_list_1.
11292
11293 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11294
11295         * select.c (Qselect_coerce): New.
11296         * select.c (Vselection_coercion_alist): New.
11297         * select.c (syms_of_select): Declare.
11298         * select.c (get-selection-internal): Use it.
11299         Use the new select-coerce functionality.
11300
11301         * select.c (select_coerce): New.
11302         * select.h (select_coerce): Declare.
11303         New function to coerce one type of data into another.
11304
11305 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11306
11307         * callproc.c (Fcall_process_internal):
11308         (Fcall_process_internal):
11309         * process-unix.c (unix_create_process):
11310         Save and restore the value of errno, so that error messages are accurate.
11311
11312 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11313
11314         * elhash.c (print_hash_table):
11315         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11316         Prettify docstrings and indentation.
11317
11318 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11319
11320         * window.c (Fwindow_pixel_edges): Subtract frame border and
11321         gutter size.
11322
11323 2000-07-31  Andy Piper  <andy@xemacs.org>
11324
11325         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11326         will acknowledge the change.
11327
11328         * glyphs.h: declare tab_control_order_only_changed.
11329
11330         * glyphs-x.c (x_tab_control_redisplay): use
11331         tab_control_order_only_changed.
11332
11333         * glyphs-widget.c (tab_control_order_only_changed): new function.
11334
11335         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11336         tab_control_order_only_changed.
11337
11338         * gui.c (gui_item_equal_sans_selected): new function.
11339         (gui_item_equal): use it.
11340
11341         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11342         :properties in favor of :items..
11343
11344         * glyphs-widget.c (check_valid_item_list): rename from
11345         check_valid_item_list_1.
11346         (check_valid_item_list_1): renamed.
11347         (combo_box_validate): deprecate :properties in favor of :items.
11348         (widget_instantiate): ditto.
11349         (tab_control_update): ditto.
11350         (image_instantiator_combo_box): ditto.
11351         (image_instantiator_tree_view): ditto.
11352         (image_instantiator_tab_control): ditto.
11353         (layout_post_instantiate): remove dead code.
11354
11355         * print.c (debug_print_no_newline): only write to debugger if in
11356         WIN32_NATIVE.
11357
11358         * elhash.c (Fmake_hash_table): update doc string.
11359
11360         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11361         messages whilst in GC. This at least stops XEmacs crashing but has
11362         the potential for wierd behaviour.
11363
11364 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11365
11366         * config.h.in:
11367         Make existence of s&m files optional.
11368
11369         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11370         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11371         * s/gnu.h: Remove HAVE_GETLOADAVG.
11372         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11373         * s/sol2.h: Remove HAVE_GETLOADAVG.
11374         * lisp.h: Remove getloadavg() declaration.
11375         * fns.c:
11376         Include <sys/loadavg.h> if available.
11377         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11378         * config.h.in:  Group together getloadavg()-related macros.
11379         Use only configure-time tests to detect getloadavg().
11380
11381 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11382
11383         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11384
11385 2000-07-25  Andy Piper  <andy@xemacs.org>
11386
11387         * syswindows.h: add tchar.h for native builds.
11388
11389         * frame.c (syms_of_frame): remove set-glyph-image.
11390
11391         * general-slots.h: add Qset_glyph_image.
11392
11393         * glyphs-widget.c (layout_update): add domain arg to
11394         set-glyph-image.
11395         (syms_of_glyphs_widget): remove set-glyph-image.
11396
11397 2000-07-23  Ben Wing  <ben@xemacs.org>
11398
11399         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11400         Vpopup_frame_list.
11401
11402 2000-07-22  Andy Piper  <andy@xemacs.org>
11403
11404         * symsinit.h: add syms_of_win32().
11405
11406         * gui-msw.c (syms_of_gui_mswindows): remove
11407         Fmswindows_shell_execute.
11408         (Fmswindows_shell_execute): moved to win32.c.
11409
11410         * emacs.c (main_1): add syms_of_win32 ().
11411
11412         * win32.c (init_potentially_nonexistent_functions): rewrite in
11413         compiler-friendly terms.
11414         (Fmswindows_shell_execute): move here from gui-msw.c.
11415         (syms_of_win32): new.
11416
11417         * device-msw.c (Fmswindows_printer_list): clean up args to
11418         EnumPrinters.
11419         Don't include tchar under cygwin or mingw.
11420         (msprinter_default_printer): make cygwin-friendly.
11421
11422 2000-07-21  Andy Piper  <andy@xemacs.org>
11423
11424         * glyphs-widget.c (image_instantiator_tree_view): use tab
11425         control's update function.
11426         (layout_property): new function. Retrieve items.
11427
11428         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11429         function. Re-populate the tree view from the pending items.
11430
11431         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11432         is designated the parent if the domain is an image instance. This
11433         is needed so that dirtiness can be cascade up the hierarchy and
11434         thus for layout children to be redisplayed correctly.
11435         (allocate_image_instance): rename glyph -> parent.
11436
11437         * redisplay.h: change redisplay_output_layout signature.
11438
11439         * redisplay-msw.c (mswindows_output_display_block): use domain
11440         arg.
11441
11442         * redisplay-x.c (x_output_display_block): use domain arg.
11443
11444 2000-07-10  Andy Piper  <andy@xemacs.org>
11445
11446         * window.c (Fset_window_configuration): add comment.
11447
11448         * redisplay-output.c (compare_runes):
11449         (redisplay_output_subwindow): redisplay rather than update subwindow.
11450         (redisplay_output_layout): ditto.
11451
11452         * redisplay-msw.c (mswindows_frame_output_end):
11453         (mswindows_frame_output_end): make defer window pos optional.
11454
11455         * lisp.h: add Flast.
11456
11457         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11458         normalize method. Change update method to be for changed
11459         instantiators. Add redisplay method. Change signature of layout
11460         method.
11461         (struct Lisp_Image_Instance): add instantiator.
11462         (IMAGE_INSTANCE_INSTANTIATOR): new.
11463         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11464         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11465         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11466
11467         * glyphs.c:
11468         (find_instantiator_differences): new function.
11469         (Fset_instantiator_property): new convenience function.
11470         (check_image_instance_structure): strictly check for vector
11471         instantiators.
11472         (normalize_image_instantiator): make non-static.
11473         (instantiate_image_instantiator): pass on dest_mask and use new
11474         signatures for image_instance_layout and friends.
11475         (mark_image_instance): mark the instantiator. Mark the subwindow
11476         face not the widget face.
11477         (image_instance_equal): add instantiator.
11478         (image_instance_hash): ditto.
11479         (allocate_image_instance): ditto.
11480         (Fset_image_instance_property): removed.
11481         (Fimage_instance_file_name): ditto.
11482         (Fcolorize_image_instance): ditto.
11483         (image_instance_layout): add offsets to be set.
11484         (update_image_instance): new function. update an image instance
11485         from its changed instantiator.
11486         (inherit_normalize): add dest_mask.
11487         (xbm_normalize): ditto.
11488         (xface_normalize): ditto.
11489         (xpm_normalize): ditto.
11490         (text_update): set_property -> update.
11491         (image_instantiate): use the glyph identity as a hash key, not the
11492         instantiator.
11493         (glyph_width): use new image_instance_layout signature.
11494         (glyph_ascent): ditto.
11495         (glyph_descent): ditto.
11496         (glyph_height): ditto.
11497         (glyph_query_geometry): ressurrect.
11498         (glyph_layout): ditto.
11499         (redisplay_subwindow): update -> redisplay.
11500         (syms_of_glyphs): add Fset_instantiator_property.
11501         (image_instantiator_format_create): set_property -> update.
11502
11503         * glyphs-x.c:
11504         (autodetect_normalize): add dest_maks to signature.
11505         (x_redisplay_subwindow): update -> redisplay.
11506         (x_redisplay_widget): ditto.
11507         (x_button_redisplay): ditto.
11508         (x_progress_gauge_redisplay): ditto.
11509         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11510         stacking order.
11511         (console_type_create_glyphs_x): update -> redisplay.
11512         (image_instantiator_format_create_glyphs_x): ditto.
11513
11514         * glyphs-widget.c:
11515         (check_valid_instantiator): disallow glyphs in the instantiator,
11516         they must now be vectors.
11517         (check_valid_instantiator_list): ditto.
11518         (glyph_instantiator_to_glyph): use internal symbol rather than
11519         intern.
11520         (widget_update): renamed from widget_set_property. Call cascaded
11521         update methods.
11522         (redisplay_widget): renamed from update_widget.
11523         (widget_layout): image_instance_layout now takes position as well
11524         as size.
11525         (widget_normalize): ditto.
11526         (widget_instantiate): ditto.
11527         (tab_control_query_geometry) ditto.:
11528         (tab_control_update): renamed from tab_control_set_property.
11529         (progress_gauge_update): set_property -> update.
11530         (layout_normalize): rewrite so that child instantiators are
11531         normalized also.
11532         (layout_update): new function. Create glyphs from the normalized
11533         children and cope with any other layout keywords. We do not
11534         instantiate children here that will be take care of by
11535         redisplay_output_layout.
11536         (layout_instantiate): call layout_update and not much else.
11537         (layout_post_instantiate): not sure whether this is needed
11538         anymore.
11539         (layout_query_geometry): query glyph geometry rather than
11540         image_instance geometry.
11541         (layout_layout): set offsets from pass in parameters. Use glyph
11542         geometry and layout functions rather than image instance ones.
11543         (native_layout_layout): ditto.
11544         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11545         (image_instantiator_widget): set_property -> update.
11546         (image_instantiator_buttons): ditto.
11547         (image_instantiator_progress_guage): ditto.
11548         (image_instantiator_tab_control): ditto.
11549         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11550         (image_instantiator_layout): add update method.
11551
11552         * glyphs-msw.c (bmp_normalize):
11553         (mswindows_resource_normalize): add dest_mask so that it can be
11554         proprogated by layout_normalize.
11555         (begin_defer_window_pos): make optional because it may not be the
11556         right thing to do and it introduces differences with X.
11557         (mswindows_unmap_subwindow): ditto.
11558         (mswindows_map_subwindow): ditto.
11559         (mswindows_redisplay_subwindow): renamed from
11560         mswindows_update_subwindow.
11561         (mswindows_redisplay_widget): ditto.
11562         (mswindows_button_redisplay): renamed from
11563         mswindows_button_update. Update is now what the instantiation
11564         function does for a changed instantiator.
11565         (mswindows_progress_gauge_instantiate): set the progress value
11566         here if appropriate.
11567         (mswindows_tab_control_redisplay): cope with re-ordering of the
11568         members of the tab widget by simply selecting the new top
11569         widget. This makes things appear ok if you click on a tab.
11570         (mswindows_combo_box_instantiate): image_instance_layout now takes
11571         position as well as size.
11572         (mswindows_progress_gauge_redisplay): renamed from
11573         mswindows_progress_gauge_update.
11574         (console_type_create_glyphs_mswindows): fix update -> redisplay.
11575         (image_instantiator_format_create_glyphs_mswindows): ditto.
11576
11577         * glyphs-eimage.c (jpeg_normalize):
11578         (gif_normalize):
11579         (png_normalize):
11580         (tiff_normalize): add dest_mask so that it can be proprogated by
11581         layout_normalize.
11582
11583         * elhash.c:
11584         (print_hash_table):
11585         (hash_table_weakness_validate):
11586         (decode_hash_table_weakness):
11587         (Fhash_table_weakness):
11588         (Fhash_table_type):
11589         (syms_of_elhash): use Ben's naming scheme for hashtable types..
11590
11591         * console.h (struct console_methods): move update_* to
11592         redisplay_*.
11593
11594 2000-07-20  Ben Wing  <ben@xemacs.org>
11595
11596         * *.[ch] (XSETOBJ): remove unused middle argument.
11597         lisp-disunion.h: correct wrap_object() to one argument.
11598
11599 2000-07-15  Ben Wing  <ben@xemacs.org>
11600
11601         * s/cygwin32.h:
11602         * s/cygwin32.h (CYGWIN_CONV_PATH):
11603         Add missing logb prototype for v1.1.
11604         Use post-b20 names and alias to pre-b20 names when pre-b20.
11605
11606         * s/windowsnt.h: [5].
11607
11608 2000-07-15  Ben Wing  <ben@xemacs.org>
11609
11610         * Makefile.in.in (x_objs):
11611         * Makefile.in.in (sheap_objs):
11612         * Makefile.in.in (objs):
11613         added win32.o, cosmetic cleanups.
11614
11615         * alloc.c (Fmake_byte_code):
11616         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
11617         etc. macros which declare their own args now.
11618
11619         * alloc.c (syms_of_alloc):
11620         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
11621
11622         * buffer.c:
11623         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
11624
11625         * buffer.c (Fget_file_buffer):
11626         Fixed GCPRO problem.
11627
11628         * buffer.c (get_truename_buffer):
11629         Fixed comment about GC checking.
11630
11631         * buffer.c (syms_of_buffer):
11632         Undeclared those dedicated frame funs.
11633         [2].
11634
11635         * buffer.h:
11636         Define convenience macros for internal/external conversions.
11637         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
11638         and Qenvironment_variable_encoding for cleaner code.
11639
11640         * bufslots.h:
11641         Remove dedicated-frame; in lisp.
11642
11643         * bytecode.c (funcall_compiled_function):
11644         [1].
11645
11646         * bytecode.c (syms_of_bytecode):
11647         [2].
11648
11649         * console-msw.c:
11650         * console-msw.c (mswindows_show_console): Rewrote.
11651
11652         * console-msw.c (Fmswindows_debugging_output): New.
11653         Sends to OutputDebugString (special MSWin debugger interface).
11654
11655         * console-msw.c (Fmswindows_message_box):
11656         Fixed stupid bugs so it works when called from kill-emacs.
11657
11658         * console-msw.c (syms_of_console_mswindows):
11659         Declare Fmswindows_debugging_output.
11660
11661         * console-msw.h:
11662         New MSWin prototypes.
11663
11664         * console-msw.h (struct mswindows_frame):
11665         New entry last-click-mods for improved button-modifier support.
11666
11667         * console-msw.h (FRAME_MSWINDOWS_POPUP):
11668         New struct entry `popup' with corresponding accessor.
11669
11670         * console-x.c:
11671         * console-x.c (split_up_display_spec):
11672         * console-x.c (get_display_arg_connection):
11673         * console-x.c (x_semi_canonicalize_console_connection):
11674         * console-x.c (x_canonicalize_device_connection):
11675         [[[6]]]: Change char to more specific type.
11676         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
11677
11678         * console-x.c (x_semi_canonicalize_console_connection):
11679         * console-x.c (x_canonicalize_device_connection):
11680         [[[9]]]: Fix up error signalling to use new structured error system.
11681
11682         * console-x.h:
11683         [[[4]]]: Define codesys aliases:
11684         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
11685         Qx_color_name_encoding, Qx_display_name_encoding.
11686
11687         * console.h (struct console_methods):
11688         New method make_dialog_box_internal supersedes older
11689         popup_dialog_box method.
11690
11691         * data.c:
11692         Define many new errors, part of new structured errors.
11693
11694         * data.c (init_errors_once_early):
11695         * data.c (syms_of_data):
11696         [2].
11697
11698         * device-msw.c (mswindows_init_device):
11699         [[[5]]]: Cleanup to support NT 3.51.
11700
11701         * device-msw.c (decode_devmode): Cleanup.
11702
11703         * device-msw.c (mswindows_handle_print_setup_dialog_box):
11704         * device-msw.c (mswindows_handle_print_dialog_box):
11705         * device-msw.c (mswindows_handle_page_setup_dialog_box):
11706         * device-msw.c (syms_of_device_mswindows):
11707         Delete the dialog box primitives recently introduced by Kirill and
11708         instead interface to general dialog box interface.
11709
11710         * device-x.c:
11711         * device-x.c (compute_x_app_name):
11712         * device-x.c (x_init_device):
11713         * device-x.c (Fx_valid_keysym_name_p):
11714         * device-x.c (Fx_set_font_path):
11715         [6].
11716         [7].
11717
11718         * device.h (wrap_device): New.
11719         First of its kind; meant to replace XSETDEVICE.
11720
11721         * dialog-msw.c: Many file-dialog symbols.
11722
11723         * dialog-msw.c (mswindows_register_popup_frame): New.
11724         * dialog-msw.c (mswindows_is_dialog_msg): New.
11725         For supporting kbd traversal in dialog boxes.
11726
11727         * dialog-msw.c (dialog_proc):
11728         Support hitting ESC in dialogs.
11729
11730         * dialog-msw.c (struct):
11731         Common dialog box errors.
11732
11733         * dialog-msw.c (handle_file_dialog_box): New.
11734         Add file dialog code.
11735
11736         * dialog-msw.c (handle_question_dialog_box):
11737         Redo existing code to support new question dialog syntax.
11738
11739         * dialog-msw.c (console_type_create_dialog_mswindows):
11740         We support new dialog console method.
11741
11742         * dialog-msw.c (syms_of_dialog_mswindows):
11743         * dialog-msw.c (vars_of_dialog_mswindows):
11744         New file dialog symbols, vars.
11745
11746         * dialog-x.c:
11747         * dialog-x.c (maybe_run_dbox_text_callback):
11748         * dialog-x.c (dbox_descriptor_to_widget_value):
11749         * dialog-x.c (x_make_dialog_box_internal):
11750         * dialog-x.c (console_type_create_dialog_x):
11751         Mule-ize entire file.
11752         Redo to support question dialog syntax.
11753         [6].
11754
11755         * dialog.c:
11756         * dialog.c (Fmake_dialog_box_internal):
11757         * dialog.c (syms_of_dialog):
11758         Kill old popup-dialog-box, replace with new primitive.
11759         Just call device method or signal error.
11760
11761         * eldap.c (Fldap_open):
11762         * eldap.c (Fldap_search_basic):
11763         * eldap.c (Fldap_add):
11764         * eldap.c (Fldap_modify):
11765         [1].
11766         [7].
11767
11768         * emacs.c:
11769         * emacs.c (make_arg_list_1):
11770         * emacs.c (make_arg_list):
11771         Mule-ize call to dll_init().
11772         [6].
11773         [8].
11774
11775         * emacs.c (make_argc_argv):
11776         * emacs.c (free_argc_argv):
11777         * emacs.c (init_cmdargs):
11778         * emacs.c (main_1):
11779         * emacs.c (Fkill_emacs):
11780         * emacs.c (Fdump_emacs):
11781         Update comments about what can be used in syms_* etc.
11782         Call init_win32() when necessary.
11783         Fix up MS Win dialog box in kill-buffer to actually work right.
11784         [7].
11785
11786         * eval.c:
11787         * eval.c (For):
11788         * eval.c (Fand):
11789         * eval.c (Fprogn):
11790         * eval.c (Fprog1):
11791         * eval.c (Fprog2):
11792         * eval.c (FletX):
11793         * eval.c (Flet):
11794         * eval.c (condition_case_3):
11795         * eval.c (Feval):
11796         * eval.c (function_argcount):
11797         * eval.c (funcall_lambda):
11798         [1].
11799
11800         * eval.c (type_error): New.
11801         * eval.c (maybe_type_error): New.
11802         * eval.c (continuable_type_error): New.
11803         * eval.c (maybe_continuable_type_error): New.
11804         * eval.c (type_error_with_frob): New.
11805         * eval.c (maybe_type_error_with_frob): New.
11806         * eval.c (continuable_type_error_with_frob): New.
11807         * eval.c (maybe_continuable_type_error_with_frob): New.
11808         New functions for use with structured errors.
11809
11810         * event-Xt.c:
11811         * event-Xt.c (x_event_to_emacs_event):
11812         Buttons are now modifiers too.
11813
11814         * event-Xt.c (emacs_Xt_current_event_timestamp):
11815         Implement new event method.
11816         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
11817
11818         * event-msw.c:
11819         * event-msw.c (ntpipe_shove_writer): [5].
11820         * event-msw.c (mswindows_enqueue_mouse_button_event):
11821         * event-msw.c (mswindows_drain_windows_queue):
11822         * event-msw.c (mswindows_wnd_proc): [7].
11823         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
11824         * event-msw.c (mswindows_modifier_state):
11825         Throughout: support new button modifiers.
11826
11827         * event-msw.c (emacs_mswindows_current_event_timestamp):
11828         Implement new event method.
11829         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
11830
11831         * event-stream.c:
11832         * event-stream.c (event_stream_current_event_timestamp): New.
11833         * event-stream.c (maybe_kbd_translate): New functionality.
11834         * event-stream.c (vars_of_event_stream):
11835         Document new kbd-translate-table functionality.
11836
11837         * event-stream.c (Fcurrent_event_timestamp): New.
11838         New primitive for use in fabricated events.
11839         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
11840
11841         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
11842
11843         * events.c:
11844         * events.c (Fmake_event):
11845         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
11846         [1].
11847         [9].
11848
11849         * events.c (format_event_object): fix gcc warnings.
11850
11851         * events.c (Fevent_timestamp): Document new primitives.
11852
11853         * events.c (TIMESTAMP_HALFSPACE): New.
11854
11855         * events.c (Fevent_timestamp_lessp): New.  New primitive for
11856         comparing timestamps correctly (half-space algorithm).
11857
11858         * events.c (Fevent_modifier_bits): Doc fix.
11859
11860         * events.c (Fevent_modifiers): Major doc addition.
11861         * events.c (event_x_y_pixel_internal): Typo fix.
11862         * events.c (syms_of_events): Declare new primitives.
11863
11864         * events.h:
11865         Update long comment for button modifiers, timestamps.
11866
11867         * events.h (struct event_stream):
11868         New current_event_timestamp method.
11869
11870         * extents.c:
11871         * extents.c (extent_in_region_p):
11872         * extents.c (decode_extent):
11873         * extents.c (Fset_extent_parent):
11874         * extents.c (decode_map_extents_flags):
11875         Fix gcc warnings.
11876         [9].
11877
11878         * extents.c (struct extent_at_arg):
11879         * extents.c (decode_extent_at_flag):
11880         * extents.c (extent_at_mapper):
11881         * extents.c (extent_at_bytind):
11882         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
11883         * extents.c (Fextents_at): New primitive. [9].
11884         * extents.c (symbol_to_glyph_layout): [9].
11885         Support new primitive `extents-at'.
11886
11887
11888         * extents.c (get_text_property_bytind):
11889         extent_at_bytind has another arg.
11890         [9].
11891
11892         * extents.c (syms_of_extents): New primitive.
11893
11894         * file-coding.c (Fmake_coding_system): [1].
11895         * file-coding.c (subsidiary_coding_system): fix gcc warning
11896         * file-coding.c (syms_of_file_coding): [2].
11897
11898         * fileio.c (Fexpand_file_name):
11899         * fileio.c (Fsysnetunam):
11900         * fileio.c (Ffile_exists_p):
11901         * fileio.c (Ffile_executable_p):
11902         * fileio.c (Fverify_visited_file_modtime):
11903         Clean up GCPROing.
11904
11905         * fileio.c (syms_of_fileio): [2].
11906
11907         * filelock.c (lock_file_1):
11908         * filelock.c (current_lock_owner):
11909         * filelock.c (lock_if_free):
11910         * filelock.c (lock_file):
11911         * filelock.c (unlock_file):
11912         Clean up GCPROing.
11913
11914         * fns.c (concat): Fix gcc warning.
11915
11916         * fns.c (Fmember):
11917         * fns.c (Fold_member):
11918         * fns.c (Fmemq):
11919         * fns.c (Fold_memq):
11920         * fns.c (memq_no_quit):
11921         * fns.c (Fassoc):
11922         * fns.c (Fold_assoc):
11923         * fns.c (Fassq):
11924         * fns.c (Fold_assq):
11925         * fns.c (assq_no_quit):
11926         * fns.c (Frassoc):
11927         * fns.c (Fold_rassoc):
11928         * fns.c (Frassq):
11929         * fns.c (Fold_rassq):
11930         * fns.c (rassq_no_quit):
11931         * fns.c (Fdelete):
11932         * fns.c (Fold_delete):
11933         * fns.c (Fdelq):
11934         * fns.c (Fold_delq):
11935         * fns.c (delq_no_quit):
11936         * fns.c (Fremassoc):
11937         * fns.c (Fremassq):
11938         * fns.c (remassq_no_quit):
11939         * fns.c (Fremrassoc):
11940         * fns.c (Fremrassq):
11941         * fns.c (remrassq_no_quit):
11942         * fns.c (Freverse):
11943         * fns.c (mapcar1):
11944         [1].
11945
11946         * frame-msw.c (mswindows_init_frame_1):
11947         * frame-msw.c (mswindows_delete_frame):
11948         Register popups with dialog code so keyboard traversing works.
11949
11950         * frame-tty.c (tty_raise_frame_no_select): [1].
11951
11952         * frame-x.c:
11953         * frame-x.c (x_set_frame_text_value):
11954         * frame-x.c (x_set_frame_properties):
11955         * frame-x.c (x_create_widgets):
11956         [7].
11957
11958         * frame.c:
11959         * frame.c (Fmouse_pixel_position): Minor doc fixes.
11960
11961         * frame.h (wrap_frame): New.
11962         Macro like wrap_device.
11963
11964         * general.c:
11965         * general.c (SYMBOL):
11966         * general.c (syms_of_general):
11967         Major reorg.  This is now just a wrapper and symbols themselves
11968         are listed in general-slots.h.
11969
11970         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
11971         * glyphs-msw.c (mswindows_resource_instantiate): [5].
11972
11973         * glyphs-msw.c (mswindows_native_layout_instantiate):
11974         Add DS_CONTROL so keyboard traversal will work.
11975
11976         * glyphs-widget.c:
11977         * glyphs-widget.c (syms_of_glyphs_widget):
11978         Move some symbols to general-slots.h.
11979
11980         * glyphs-x.c:
11981         * glyphs-x.c (xbm_instantiate_1):
11982         * glyphs-x.c (x_xbm_instantiate):
11983         * glyphs-x.c (x_xface_instantiate):
11984         * glyphs-x.c (autodetect_instantiate):
11985         * glyphs-x.c (cursor_font_instantiate):
11986         * glyphs-x.c (x_update_widget):
11987         * glyphs-x.c (x_widget_instantiate):
11988         * glyphs.c (bitmap_to_lisp_data):
11989         * glyphs.c (pixmap_to_lisp_data):
11990         [7].
11991
11992         * glyphs.c (syms_of_glyphs):
11993         [2].
11994
11995         * gui-x.c:
11996         * gui-x.c (print_widget_value):
11997         * gui-x.c (menu_separator_style_and_to_external):
11998         * gui-x.c (add_accel_and_to_external):
11999         * gui-x.c (button_item_to_widget_value):
12000         * gui-x.c (gui_items_to_widget_values_1):
12001         * gui-x.c (gui_items_to_widget_values):
12002         * gui-x.c (syms_of_gui_x):
12003         * gui-x.c (vars_of_gui_x):
12004         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12005         [9].
12006
12007         * gui-x.h:
12008         Muleize, prototype changes matching gui-x.c.
12009
12010         * gui.c:
12011         * gui.c (separator_string_p):
12012         * gui.c (gui_item_add_keyval_pair):
12013         * gui.c (make_gui_item_from_keywords_internal):
12014         * gui.c (signal_too_long_error):
12015         * gui.c (parse_gui_item_tree_item):
12016         * gui.c (syms_of_gui):
12017         * gui.c (vars_of_gui):
12018         * gui.h:
12019         menu-no-selection-hook moved here (used by MSWin).
12020         Move some symbols to general-slots.h.
12021         [6].
12022         [9].
12023
12024         * insdel.c (get_buffer_pos_char):
12025         * insdel.c (get_buffer_range_char):
12026         Add GC comments.
12027
12028         * keymap.c (keymap_lookup_directly):
12029         * keymap.c (keymap_store):
12030         * keymap.c (ensure_meta_prefix_char_keymapp):
12031         * keymap.c (describe_map):
12032         * keymap.h:
12033         Support new button modifiers.
12034
12035         * lisp-disunion.h (wrap_object):
12036         * lisp-disunion.h (XSETOBJ):
12037         Rename make_obj to wrap_object.
12038
12039         * lisp-union.h:
12040         * lisp-union.h (make_int):
12041         * lisp-union.h (make_char):
12042         Support wrap_object.
12043
12044         * lisp.h:
12045         * lisp.h (LIST_LOOP):
12046         * lisp.h (EXTERNAL_LIST_LOOP):
12047         * lisp.h (LIST_LOOP_2):
12048         * lisp.h (EXTERNAL_LIST_LOOP_1):
12049         * lisp.h (EXTERNAL_LIST_LOOP_2):
12050         * lisp.h (EXTERNAL_LIST_LOOP_3):
12051         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12052         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12053         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12054         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12055         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12056         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12057         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12058         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12059         * lisp.h (struct Lisp_Symbol):
12060         * lisp.h (maybe_continuable_error_with_frob):
12061         Fix up section comments.
12062         Add new types for char to indicate usage.
12063         Delete symbols auto-generated from general-slots.h.
12064         Add prototypes for structured error functions.
12065         Add long comments describing looping macros and change interface
12066         so that lvalues are automatically declared.
12067         Add NO_DECLARE macro in case callers want to declare lvalues
12068         themselves.
12069
12070         * lread.c (read_syntax_error):
12071         * lread.c (continuable_read_syntax_error):
12072         * lread.c (read_structure):
12073         * lread.c (sequence_reader):
12074         * lread.c (read_list_conser):
12075         * lread.c (read_compiled_function):
12076         Rename syntax_error and continuable_syntax_error to avoid clash
12077         with same-named structured error functions.
12078
12079         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12080         * menubar-msw.c (populate_menu_add_item):
12081         * menubar-msw.c (populate_or_checksum_helper):
12082         [5].
12083         [9].
12084
12085         * menubar-x.c:
12086         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12087         Mule-ize whole file.
12088
12089         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12090
12091         * mule-charset.c (Fmake_charset):
12092         * mule-wnnfns.c (Fwnn_set_param):
12093         [1].
12094
12095         * ntproc.c (create_child):
12096         * ntproc.c (Fwin32_set_current_locale):
12097         Add comments portending doom.
12098
12099         * objects-msw.c:
12100         * objects-msw.c (old_font_enum_callback_2):
12101         * objects-msw.c (font_enum_callback_1):
12102         * objects-msw.c (mswindows_enumerate_fonts):
12103         [5].
12104
12105         * objects-x.c:
12106         * objects-x.c (allocate_nearest_color):
12107         * objects-x.c (x_parse_nearest_color):
12108         * objects-x.c (x_initialize_color_instance):
12109         * objects-x.c (x_print_color_instance):
12110         * objects-x.c (x_finalize_color_instance):
12111         * objects-x.c (x_valid_color_name_p):
12112         * objects-x.c (x_initialize_font_instance):
12113         * objects-x.c (x_print_font_instance):
12114         * objects-x.c (valid_x_font_name_p):
12115         * objects-x.c (truename_via_FONT_prop):
12116         * objects-x.c (truename_via_random_props):
12117         * objects-x.c (truename_via_XListFonts):
12118         * objects-x.c (x_font_truename):
12119         * objects-x.c (x_font_instance_truename):
12120         * objects-x.c (x_font_instance_properties):
12121         * objects-x.c (x_list_fonts):
12122         * objects-x.c (x_find_charset_font):
12123         Mule-ize entire file.
12124         [7].
12125
12126         * objects-x.h:
12127         Mule-verify.
12128
12129         * print.c:
12130         * print.c (std_handle_out_external):
12131         * print.c (debug_print_no_newline):
12132         * print.c (syms_of_print):
12133         Output to all debugger kinds in debug-print.
12134         Fix console-output code under MSWin to actually work.
12135
12136         * process-nt.c (send_signal):
12137         * process-nt.c (nt_create_process):
12138         Use newer Unicode macros.
12139
12140         * process-unix.c (unix_create_process):
12141         * process-unix.c (unix_canonicalize_host_name):
12142         * process-unix.c (unix_open_network_stream):
12143         [7].
12144
12145         * scrollbar-x.c:
12146         Mule-verify.
12147
12148         * search.c (syms_of_search):
12149         [2].
12150
12151         * select-msw.c (mswindows_destroy_selection):
12152         Use LIST_LOOP_2.
12153
12154         * select-x.c (symbol_to_x_atom):
12155         [7].
12156
12157         * select.c (syms_of_select):
12158         [2].
12159
12160         * sound.c (Fplay_sound_file):
12161         [7].
12162
12163         * specifier.c:
12164         * specifier.c (decode_specifier_type):
12165         * specifier.c (Fvalid_specifier_locale_type_p):
12166         * specifier.c (check_valid_locale_or_locale_type):
12167         * specifier.c (decode_locale):
12168         * specifier.c (decode_locale_type):
12169         * specifier.c (decode_locale_list):
12170         * specifier.c (check_valid_domain):
12171         * specifier.c (decode_specifier_tag_set):
12172         * specifier.c (Fcanonicalize_tag_set):
12173         * specifier.c (Fdefine_specifier_tag):
12174         * specifier.c (Fspecifier_tag_predicate):
12175         * specifier.c (check_valid_inst_list):
12176         * specifier.c (check_valid_spec_list):
12177         * specifier.c (decode_how_to_add_specification):
12178         * specifier.c (check_modifiable_specifier):
12179         * specifier.c (specifier_add_spec):
12180         * specifier.c (boolean_validate):
12181         * specifier.c (display_table_validate):
12182         [9].
12183
12184         * specifier.c (syms_of_specifier):
12185         Move some symbols to general-slots.h.
12186         [2].
12187
12188         * symbols.c:
12189         * symbols.c (Fmapatoms):
12190         * symbols.c (Fapropos_internal):
12191         Add GCPROs.
12192
12193         * symbols.c (set_default_buffer_slot_variable):
12194         * symbols.c (set_default_console_slot_variable):
12195         [1].
12196
12197         * symbols.c (defsymbol_massage_name_1):
12198         * symbols.c (defkeyword_massage_name):
12199         * symbols.c (deferror_1):
12200         * symbols.c (deferror):
12201         * symbols.c (deferror_massage_name_and_message):
12202         * symeval.h:
12203         * symeval.h (DEFSYMBOL):
12204         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12205
12206         * symbols.c (syms_of_symbols):
12207         [2].
12208
12209         * symsinit.h:
12210         * symsinit.h (init_win32): New.
12211         Also new is syms_of_dialog_mswindows.
12212
12213         * syswindows.h:
12214         Add new Unicode macros, missing Cygwin wide-char functions,
12215         convenience conversion macros for Qmswindows_tstr, macros for
12216         encapsulating required MSWin <-> Cygwin filename conversions,
12217         prototype for dynamically-extracted (not in NT 3.51) functions.
12218
12219         * toolbar-x.c:
12220         Mule-verify.
12221
12222         * tooltalk.c (Fadd_tooltalk_message_arg):
12223         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12224         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12225         [7].
12226
12227         * tooltalk.c (syms_of_tooltalk):
12228         [2].
12229
12230         * unexnt.c:
12231         * unexnt.c (unexec):
12232         Fix up headers, declaration of unexec() to be more standard.
12233
12234 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12235
12236         * offix.h: Revert change to guard macros - they're used in offix.c!
12237
12238 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12239
12240         * lisp.h: Defsubred Fdelete.
12241
12242         * console-msw.h:  (msprinter_default_printer): Added.
12243
12244         * console-msw.c (msprinter_canonicalize_console_connection):
12245         (msprinter_canonicalize_device_connection): Added.
12246
12247         * device-msw.c (msprinter_default_printer):
12248         (Fmswingows_get_default_printer):
12249         (signal_enum_priner_error):
12250         (Fmswingows_printer_list): Added.
12251
12252 2000-07-19  Martin Buchholz <martin@xemacs.org>
12253
12254         * XEmacs 21.2.35 is released.
12255
12256 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12257
12258         * select-x.c (x_handle_selection_request):
12259         Text selected in xemacs and pasted into xterm failed to appear.
12260         Spelling fixes and cosmetic changes.
12261
12262 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12263
12264         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12265         XEmacs frame (fix for doubling chars in dialog boxes).
12266
12267 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12268
12269         * select.c (select_convert_in, select_convert_out):
12270         Don't call intern() every time.
12271
12272         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12273         * select.c (vars_of_select): Initialise them.
12274
12275 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12276
12277         * select.c (selection-coercible-types): New.
12278
12279         * select.c (own-selection-internal):
12280         * select.c (get-selection-internal):
12281         MULE bug fix - these should default to COMPOUND_TEXT and not
12282         STRING for MULE. I think.
12283
12284         * select.c (select_convert_out): Use selection-coercible-types
12285         to find types that we can attempt to perform coercions on.
12286
12287 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12288
12289         * mule-wnnfns.c:
12290         * mule-canna.c:
12291         Add coding: cookie to identify encoding.
12292
12293         * mule-canna.c (CANNA_mode_keys): make static.
12294         Use proper prototypes, even for functions of no arguments.
12295         Remove external prototype for Fding().
12296
12297         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12298
12299         * select.c (syms_of_select): Add missing DEFSUBR.
12300
12301 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12302
12303         * select.c (get_selection_internal, own_selection_internal):
12304         Make the type default to STRING, rather than placing a nil type
12305         into Vselection_alist.
12306
12307 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12308
12309         * gpmevent.c (tty_selection_exists_p):
12310         * gpmevent.c (tty_own_selection):
12311         Updated parameter lists.
12312
12313 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12314
12315         * select.h (selection-alist): Removed declaration.
12316
12317         * select.h (get_local_selection):
12318         * select.c (get_local_selection):
12319         Made static.
12320
12321         * select.h (convert_selection): Removed declaration.
12322         * select.c (convert_selection): Removed.
12323         This function belongs in Lisp.
12324
12325         * select.h (select_convert_in): Declare.
12326         * select.h (select_convert_out): Declare.
12327         * select.c (select_convert_in): New.
12328         * select.c (select_convert_out): New.
12329         New conversion functions for other files to call.
12330
12331         * select.h (select_notify_buffer_kill): Declare.
12332         * select.c (select_notify_buffer_kill): New.
12333         New functions that get called from kill-buffer.
12334
12335         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12336         X-specific lisp code.
12337
12338         * select.h: Declare some of the lisp-visible functions for
12339         external use.
12340
12341         * select.c (clean_local_selection_data): Removed. This was
12342         a disgusting function, and previously should have been in
12343         select-x.c in any case. The functionality is now provided
12344         in select-convert-from-integer (select.el).
12345
12346         * select.c (available-selection-types): Fixed stupidity where
12347         INTEGER and ATOM got added twice. Also add STRING when we see an
12348         extent.
12349
12350         * select.c (get-selection-internal): Removed symbol stripping. No
12351         longer causes conversion when data comes from the internal cache.
12352
12353         * select.c (syms_of_select): Added new functions.
12354
12355         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12356         error checking - previously this called abort!
12357
12358         * select-x.c (x_own_selection): Changed comment.
12359
12360         * select-x.c (x_handle_selection_request): Use select_convert_out.
12361         Don't mess with selection-alist; it's an internal variable of select.c.
12362
12363         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12364
12365         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12366         rather than messing with selection-alist.
12367
12368         * select-msw.c (mswindows_get_foreign_selection):
12369         Use TO_INTERNAL_FORMAT rather than hacking.
12370
12371 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12372
12373         * process-unix.c (unix_open_multicast_group):
12374         (unix_open_multicast_group): Remove useless casts.
12375
12376 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12377
12378         * sound.c (Fplay_sound): Fix `unused variable' warning.
12379
12380         * emacs.c (main): Use correct type for _environ on SCO5.
12381
12382 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12383
12384         * console.h (own_selection_method):
12385         * console.h (selection_exists_p_method):
12386         * console.h (available_selection_types_method): New.
12387         * console.h (register_selection_data_type_method): New.
12388         * console.h (selection_data_type_name): New.
12389
12390         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12391         function & alist to track GlobalAlloc()'d handles that need
12392         releasing when the clipboard data gets replaced or emptied.
12393
12394         * event-msw.c (mswindows_wnd_proc): Call it.
12395
12396         * lisp.h, general.c (Qappend): New symbol representing a
12397         `how-to-add' mode.
12398
12399         * select.c (own-selection-internal):
12400         * select.c (selection-exists-p):
12401         * select.c (available-selection-types): New.
12402         * select.c (register-selection-data-type): New.
12403         * select.c (selection-data-type-name): New.  New functions to deal
12404         with device-specific selection data formats.
12405         * select.c (selection-converter-out-alist): Renamed.
12406         * select.c (selection-converter-in-alist): New.
12407         * select.c (selection-appender-alist): New.  Added new alists.
12408         * select.c (syms_of_select, vars_of_select): Added new symbols &
12409         variables.
12410         * select.c (get_local_selection): Split.
12411         * select.c: Removed spurious type checking - selections may now be
12412         of any type, not just strings.
12413         * select.c (own-selection-internal):
12414
12415         * select.h, select.c (convert_selection): New. Created
12416         convert_selection() function based on get_local_selection().
12417         * select.h, select.c (QCF_*): New symbols representing mswindows
12418         clipboard formats.
12419         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12420         symbols representing `how-to-add' modes.
12421
12422         * select-msw.c (x_sym_p): New.
12423         * select-msw.c (symbol_to_ms_cf): New.
12424         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12425         symbols & clipboard formats. Can also handle string names.
12426         * select-msw.c (mswindows_own_selection):
12427         * select-msw.c (mswindows_selection_exists_p):
12428         Added `data-type' parameter. Use it.
12429         * select-msw.c (mswindows_available_selection_types): New.
12430         * select-msw.c (mswindows_register_selection_data_type): New.
12431         * select-msw.c (mswindows_selection_data_type_name): New.
12432         * select-msw.c (mswindows_own_selection):
12433         * select-msw.c (mswindows_get_foreign_selection):
12434         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12435         * select-msw.c (console_create_select_mswindows): Added new methods.
12436         * select-msw.c (mswindows_destroy_selection): New.
12437         * select-msw.c (Vhandle_alist): New list.
12438         * select-msw.c (mswindows_own_selection):
12439
12440         * select-x.c (x_own_selection):
12441         * select-x.c (x_selection_exists_p):
12442         * select-x.c: Added some comments about maybe using new
12443         functionality.
12444         * select-x.c (x_own_selection):
12445
12446         * specifier.c: Remove definition of Qappend (now in general.c)
12447         * specifier.c (syms_of_specifier): Remove Qappend.
12448
12449 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12450
12451         * config.h.in: Add socklen_t.
12452
12453         * s/decosf4-0.h: No special compiler flags needed or desired.
12454         In particular, undefine _BSD for DEC OSF 4.0.
12455
12456 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12457
12458         * redisplay-msw.c (msprinter_frame_output_end): Added.
12459         (console_type_create_redisplay_mswindows): Referred the above.
12460
12461         * frame.c (setup_frame_without_minibuffer): Do not create a
12462         default minibuffer frame on a printer device.
12463
12464         * frame-msw.c (apply_dc_geometry): Added.
12465         (msprinter_start_page):
12466         (msprinter_init_frame_3):
12467         (msprinter_eject_page): Use it.
12468
12469         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12470         and removed residual duplex and orientation properties.
12471
12472 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12473
12474         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12475
12476         * unexalpha.c: Remove system prototypes from C sources!
12477
12478 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12479
12480         * eval.c: Remove references to M-x edit-options in DEFUNs for
12481         `defvar' and `defconst'.
12482
12483 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12484
12485         * config.h.in: Remove SMART_INCLUDE hackery.
12486
12487         PostgreSQL hacking:
12488         * config.h.in: Don't use SMART_INCLUDE.
12489
12490         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12491         * inline.c: Simply #include "postgresql.h"
12492         * postgresql.c:
12493         - Don't use SMART_INCLUDE
12494         - Use simply "const".
12495         - Use standard doc string conventions.
12496         - Use correct type for result of PQstatus.
12497
12498 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12499
12500         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12501
12502         C++ compilation changes.
12503         * config.h.in (EXTERN_C): Define.
12504         * config.h.in (not): This is also a C++ keyword.
12505         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12506         * cm.c: Use EXTERN_C.
12507         * redisplay-tty.c: Use EXTERN_C.
12508         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12509
12510 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12511
12512         * general.c: Remove duplicate definition for Qfunction.
12513
12514 2000-07-08  Ben Wing  <ben@xemacs.org>
12515
12516         * device-msw.c (msprinter_init_device):
12517         * device-msw.c (sync_printer_with_devmode):
12518         * device-msw.c (handle_devmode_changes):
12519         * device-msw.c (print_dialog_worker):
12520         * device-msw.c (Fmsprinter_apply_settings):
12521         * device-msw.c (hash_devmode):
12522         * device-msw.c (Fmsprinter_settings_despecialize):
12523         use Qmswindows_tstr, not Qctext.
12524
12525         * vm-limit.c (check_memory_limits):
12526         avoid infinite loop printing warning messages.
12527
12528 2000-07-05  Craig Lanning  <lanning@scra.org>
12529
12530         * Makefile.in.in: Add support for including the Windows resources
12531         when building with the cygwin and mingw targets.
12532
12533         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12534         not set or not correct.
12535         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12536         (init_initial_directory): Don't try to use $PWD on the
12537         WIN32_NATIVE target.
12538
12539         * s\cygwin32.h:
12540         [[Add -mwindows to eliminate console window.]] not required --ben
12541         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12542         (MAIL_USE_POP): removed; now handled by configure.
12543
12544         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12545         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12546         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12547         (MAIL_USE_POP): removed; now handled by configure.
12548         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12549         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12550         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12551         constant string.
12552         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12553         up from <winsock.h> via systime.h.
12554         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12555         (getpagesize): from Dan Holmsand, added.
12556         Added #endif which was left dangling by Ben's mega patch; added
12557         comment to help prevent this in the future.
12558
12559         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12560
12561 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12562
12563         * console-msw.h (struct mswindows_device): Removed unnecessary
12564         cached device geometry values.
12565         Added update_tick and an accessor macro.
12566         (Lisp_Devmode): Added lrecord declaration.
12567         (struct msprinter_device): Contain devmode as a Lisp object.
12568         Added mswindows_get_selected_frame_hwnd();
12569
12570         * console.h (struct console_methods): Indentation nitpicking.
12571
12572         * device-msw.c (mswindows_init_device): Do not initialize geometry
12573         cache. Initialize update tick.
12574         (mswindows_device_system_metrics): Ask the device for its geometry.
12575         (global_free_2_maybe):
12576         (devmode_to_hglobal):
12577         (handle_printer_changes):
12578         (ensure_not_printing):
12579         (print_dialog_worker):
12580         (Fmsprinter_print_setup_dialog):
12581         (Fmsprinter_print_dialog):
12582         (plist_get_margin):
12583         (plist_set_margin):
12584         (Fmsprinter_page_setup_dialog): Added functions.
12585         (sync_printer_with_devmode):
12586         (handle_devmode_changes):
12587         (Fmsprinter_get_settings):
12588         (Fmsprinter_select_settings):
12589         (Fmsprinter_apply_settings):
12590         (allocate_devmode):
12591         (Fmsprinter_settings_copy):
12592         (Fmsprinter_settings_despecialize):
12593         (print_devmode):
12594         (finalize_devmode):
12595         (equal_devmode):
12596         (hash_devmode): Added functions
12597         (syms_of_device_mswindows): Init devmode lrecord class.
12598
12599         * device.h: Added an exfun for find-device.
12600
12601         * event-msw.c (mswindows_wnd_proc): Do not update the cached
12602         geometry; although, recreate the device compatible DC.
12603
12604         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
12605         (msprinter_init_frame_3):
12606         (msprinter_frame_property):
12607         (msprinter_internal_frame_property_p):
12608         (msprinter_frame_properties):
12609         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
12610         print job properties (will move to device settings).
12611
12612         * lisp.h: Added symbols.
12613
12614         * general.c (syms_of_general): Declared them.
12615
12616         * hash.c (string_hash): Added.
12617
12618         * lrecord.h (lrecord_type): Added devmode lrecord type.
12619
12620 2000-07-02  Mike Sperber <mike@xemacs.org>
12621
12622         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
12623         FreeBSD 4.0.
12624
12625 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
12626
12627         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
12628         integer.
12629
12630 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
12631
12632         * data.c (Fstring_to_number): Don't recognize floating point if
12633         base is not 10.
12634
12635 2000-06-22  Martin Buchholz  <martin@xemacs.org>
12636
12637         * glyphs-widget.c (tab_control_query_geometry):
12638         (widget_query_geometry):
12639         (button_query_geometry):
12640         * glyphs.c (text_query_geometry):
12641         Enforce type correctness.
12642
12643 2000-06-18  Martin Buchholz  <martin@xemacs.org>
12644
12645         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
12646         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
12647
12648 2000-06-17  Martin Buchholz  <martin@xemacs.org>
12649
12650         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
12651         conflicts with gcc's fixincluded version of FOO.h.
12652
12653         * glyphs.h (image_instance_geometry): Remove trailing `,'
12654
12655 2000-06-08  Mike Alexander  <mta@arbortext.com>
12656
12657         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
12658         (shove_thread): Don't write the same output twice
12659         (make_ntpipe_output_stream): Increase priority of shove thread
12660         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
12661         chance to run
12662         (ntpipe_shove_closer): Don't delete the pipe until we're done with
12663         it.
12664
12665 2000-06-12  Ben Wing  <ben@xemacs.org>
12666
12667         * s\mingw32.h (sigset):
12668         * s\windowsnt.h (sigset):
12669         rename msw_ to mswindows_ for consistency with general convention.
12670
12671 2000-06-12  Ben Wing  <ben@xemacs.org>
12672
12673         * console-msw.c:
12674         * console-msw.c (mswindows_get_console_hwnd):
12675         * console-msw.c (mswindows_ensure_console_allocated):
12676         * console-msw.c (mswindows_hide_console):
12677         * console-msw.c (mswindows_show_console):
12678         * console-msw.c (mswindows_ensure_console_buffered):
12679         * console-msw.c (mswindows_output_console_string):
12680         * console-msw.c (mswindows_windows9x_p):
12681         * console-msw.h:
12682         * device-msw.c (mswindows_get_workspace_coords):
12683         * device-msw.c (mswindows_device_system_metrics):
12684         * dialog-msw.c (mswindows_popup_dialog_box):
12685         * event-msw.c (mswindows_wnd_proc):
12686         * frame-msw.c (mswindows_size_frame_internal):
12687         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12688         * menubar-msw.c (displayable_menu_item):
12689         * menubar-msw.c (mswindows_char_is_accelerator):
12690         * nt.c:
12691         * nt.c (mswindows_sigset):
12692         * nt.c (mswindows_sigrelse):
12693         * nt.c (mswindows_sigpause):
12694         * nt.c (mswindows_raise):
12695         * nt.c (timer_proc):
12696         * ntproc.c:
12697         * ntproc.c (find_child_console):
12698         * ntproc.c (sys_kill):
12699         * print.c:
12700         * print.c (std_handle_out_external):
12701         * process-nt.c (find_child_console):
12702         * process-nt.c (send_signal_the_95_way):
12703         * process-nt.c (ensure_console_window_exists):
12704         * process-nt.c (nt_create_process):
12705         * syssignal.h:
12706         rename msw_ to mswindows_ for consistency with general convention.
12707
12708         * emacs.c:
12709         * dumper.c:
12710         include nt.h, not syswindows.h.
12711
12712         * nt.c (mswindows_fstat):
12713         * nt.c (mswindows_stat):
12714         prefix mswindows_ instead of attempting to directly override the
12715         library functions.  fix declarations.
12716
12717         * nt.h:
12718         include syswindows.h.  move some sysdep.h stuff here.
12719
12720         * ntheap.h:
12721         include syswindows.h, not <windows.h>.
12722
12723         * ntplay.c:
12724         clean up headers.
12725
12726         * sysdep.c:
12727         clean up headers.
12728
12729         * sysdep.c (sys_fstat):
12730         * sysdep.c (sys_stat):
12731         call mswindows versions when appropriate.
12732
12733         * sysdep.h:
12734         move mswin decls to nt.h.
12735
12736         * syswindows.h:
12737         add long comment describing appropriate use of the various windows
12738         headers.
12739
12740 2000-06-11  Ben Wing  <ben@xemacs.org>
12741
12742         * device-x.c: Correct doc string for sixth arg of x-get-resource.
12743
12744 2000-06-10  Ben Wing  <ben@xemacs.org>
12745
12746         * Makefile.in.in (release):
12747         Correction to make sure xemacs.exe always dumped when correct.
12748
12749         * alloca.c:
12750         * balloon_help.c:
12751         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
12752
12753         * buffer.c (set_buffer_internal):
12754         [[[[2]]]]: Remove HAVE_FEP code.
12755
12756         * buffer.c (init_initial_directory):
12757         [3].
12758
12759         * bytecode.c:
12760         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
12761         individual files.
12762
12763         * callproc.c:
12764         * callproc.c (call_process_cleanup):
12765         * callproc.c (Fold_call_process_internal):
12766         * callproc.c (child_setup):
12767         * callproc.c (getenv_internal):
12768         * callproc.c (init_callproc):
12769         * callproc.c (vars_of_callproc):
12770         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
12771         __CYGWIN32__ -> CYGWIN.
12772         DOS_NT -> WIN32_NATIVE.
12773         Remove MSDOS support/references, converting to WIN32_NATIVE
12774           where correct.
12775         __MINGW32__ -> MINGW.
12776         Fix windows.h includes.
12777         Remove bogus HAVE_NTGUI.
12778
12779         * config.h.in:
12780         [2].
12781
12782         * console-msw.c:
12783         mswindows_message_outputted added for use in allowing startup
12784         errors on the console to be seen.
12785
12786         * console-msw.c (msw_ensure_console_allocated):
12787         * console-msw.c (msw_output_console_string):
12788         * console-msw.c (DHEADER):
12789         * console-msw.c (DOPAQUE_DATA):
12790         * console-msw.c (DEVENT):
12791         * console-msw.c (DCONS):
12792         * console-msw.c (DCONSCDR):
12793         * console-msw.c (DSTRING):
12794         * console-msw.c (DVECTOR):
12795         * console-msw.c (DSYMBOL):
12796         * console-msw.c (DSYMNAME):
12797         Fix warnings.
12798
12799         * console-stream.c (stream_init_console):
12800         Fix text/binary problems.
12801
12802         * device-msw.c:
12803         * device-msw.c (mswindows_finish_init_device):
12804         * device-msw.c (mswindows_delete_device):
12805         [1].
12806
12807         * device.c (handle_asynch_device_change):
12808         [3].
12809
12810         * dgif_lib.c:
12811         * dgif_lib.c (DGifOpenFileName):
12812         * dgif_lib.c (DGifOpenFileHandle):
12813         * dgif_lib.c (DGifGetLine):
12814         * dgif_lib.c (DGifGetPixel):
12815         Added config.h/lisp.h, fix up includes.
12816         [1].
12817
12818         * dired-msw.c:
12819         [4].
12820
12821         * dired.c:
12822         * dired.c (file_name_completion):
12823         * dired.c (Ffile_attributes):
12824         * dired.c (syms_of_dired):
12825         [1].
12826
12827         * dumper.c:
12828         * dumper.c (pdump_file_unmap):
12829         * dumper.c (pdump_load):
12830         [1].
12831
12832         * editfns.c:
12833         * editfns.c (Ftemp_directory):
12834         * editfns.c (user_login_name):
12835         * editfns.c (Fuser_real_login_name):
12836         * editfns.c (get_home_directory):
12837         [1].
12838
12839         * elhash.c (finish_marking_weak_hash_tables):
12840         [[[[5]]]]: Fix GCC warnings.
12841
12842         * emacs.c:
12843         * emacs.c (mswindows_handle_hardware_exceptions):
12844         * emacs.c (make_arg_list_1):
12845         * emacs.c (main_1):
12846         * emacs.c (Fkill_emacs):
12847         * emacs.c (Fdump_emacs):
12848         [1].
12849         Fix problems with nested crashes, add long comment.
12850
12851         * event-Xt.c (init_event_Xt_late):
12852         [1].
12853
12854         * event-msw.c:
12855         * event-msw.c (mswindows_dde_callback):
12856         * event-msw.c (mswindows_handle_sticky_modifiers):
12857         * event-msw.c (mswindows_wnd_proc):
12858         [1].
12859         [5].
12860
12861         * events.c (character_to_event):
12862         [1].
12863
12864         * fileio.c:
12865         * fileio.c (Ffile_name_directory):
12866         * fileio.c (Ffile_name_nondirectory):
12867         * fileio.c (directory_file_name):
12868         * fileio.c (Fexpand_file_name):
12869         * fileio.c (Fsubstitute_in_file_name):
12870         * fileio.c (Ffile_name_absolute_p):
12871         * fileio.c (check_executable):
12872         * fileio.c (Ffile_readable_p):
12873         * fileio.c (Ffile_accessible_directory_p):
12874         * fileio.c (Ffile_modes):
12875         * fileio.c (Funix_sync):
12876         * fileio.c (vars_of_fileio):
12877         [1]. [4].
12878
12879         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
12880
12881         Expand getdefdir defn.
12882         Fix bogus rename() comment.
12883
12884         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
12885         to use standard XEmacs include files, e.g. sysfile.h, rather
12886         than system-specific includes.
12887
12888         * fns.c:
12889         * fns.c (Fsubseq):
12890         [5]. [6].
12891
12892         * frame.c (vars_of_frame):
12893         [1].
12894
12895         * getloadavg.c:
12896         * getloadavg.c (getloadavg):
12897         [1]. [6].
12898         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
12899         (We don't use it elsewhere in the code; just add a comment.)
12900
12901         * gif_io.c:
12902         [6].
12903         Add config.h.
12904
12905         * glyphs-msw.c:
12906         * glyphs-msw.c (mswindows_resource_instantiate):
12907         [1].
12908
12909         * glyphs-x.c (x_native_layout_instantiate):
12910         [5].
12911
12912         * gui-msw.c (Fmswindows_shell_execute):
12913         [1].
12914
12915         * insdel.c:
12916         [4].
12917
12918         * lisp.h:
12919         [4]. [5].
12920
12921         * lread.c (locate_file_in_directory_mapper):
12922         [1].
12923
12924         * lstream.c:
12925         [4].
12926
12927         * mem-limits.h:
12928         * mem-limits.h (get_lim_data):
12929         [1].
12930
12931         * menubar-msw.c:
12932         [4].
12933
12934         * ndir.h:
12935         [1].
12936
12937         * nt.c:
12938         * nt.c (getwd):
12939         * nt.c (closedir):
12940         * nt.c (rva_to_section):
12941         * nt.c (mswindows_executable_type):
12942         [1]. [6].
12943         Fix closedir() defn.
12944
12945         * nt.h:
12946         [[[[8]]]]: *_OK defs moved to sysfile.h.
12947
12948         * ntproc.c:
12949         [6]. [7].
12950
12951         * objects-x.c:
12952         [4].
12953
12954         * print.c:
12955         * print.c (std_handle_out_external):
12956         [1]. [4].
12957
12958         * process-nt.c:
12959         * process-nt.c (nt_create_process):
12960         [6].
12961         try to fix process quoting somewhat.
12962
12963         * process-unix.c (unix_create_process):
12964         [1].
12965
12966         * process.c:
12967         * process.c (vars_of_process):
12968         Add Vnull_device.
12969
12970         * process.h:
12971         [1].
12972
12973         * realpath.c:
12974         * realpath.c (xrealpath):
12975         [1].
12976
12977         * redisplay-tty.c (init_tty_for_redisplay):
12978         [3].
12979
12980         * redisplay.c:
12981         [4]. [6].
12982
12983         * scrollbar-msw.c:
12984         [4].
12985
12986         * sheap.c:
12987         * sheap.c (more_static_core):
12988         * sheap.c (report_sheap_usage):
12989         [5]. [6].
12990
12991         * signal.c:
12992         * signal.c (alarm_signal):
12993         [1]. [6].
12994
12995         * sound.c:
12996         [6].
12997
12998         * strftime.c:
12999         * strftime.c (zone_name):
13000         [1]. [5].
13001
13002         * symsinit.h (init_sunpro):
13003         [1].
13004
13005         * syscommctrl.h:
13006         commctrl.h not in Cygwin b20.1.
13007
13008         * sysdep.c:
13009         * sysdep.c (endif):
13010         * sysdep.c (sys_subshell):
13011         * sysdep.c (init_baud_rate):
13012         * sysdep.c (emacs_get_tty):
13013         * sysdep.c (emacs_set_tty):
13014         * sysdep.c (tty_init_sys_modes_on_device):
13015         * sysdep.c (init_system_name):
13016         * sysdep.c (sys_open):
13017         * sysdep.c (interruptible_open):
13018         * sysdep.c (sys_fopen):
13019         * sysdep.c (sys_mkdir):
13020         * sysdep.c (sys_rename):
13021         * sysdep.c (get_process_times_1):
13022         [1]. [6].
13023
13024         * sysdep.h:
13025         [1].
13026
13027         * sysdir.h:
13028         * sysdir.h (DIRENTRY_NONEMPTY):
13029         [1]. [6].
13030
13031         * sysdll.c (dll_init):
13032         * sysdll.h:
13033         [1].
13034
13035         * sysfile.h:
13036         [1]. [6]. [8].
13037         added text/binary defs.
13038
13039         * sysfloat.h:
13040         [1].
13041
13042         * sysproc.h:
13043         * sysproc.h (EDESTADDRREQ):
13044         * sysproc.h (poll_fds_for_input):
13045         [1]. [6].
13046
13047         * syspwd.h:
13048         [6].
13049
13050         * syssignal.h:
13051         [1].
13052
13053         * systime.h:
13054         [1]. [6].
13055
13056         * systty.h:
13057         [1].
13058
13059         * syswindows.h:
13060         [1].
13061         Always define WIN32_LEAN_AND_MEAN.
13062
13063         * unexcw.c (unexec):
13064         [5].
13065
13066         * unexec.c:
13067         * unexec.c (copy_text_and_data):
13068         * unexec.c (adjust_lnnoptrs):
13069         [1].
13070
13071         * unexnt.c:
13072         * unexnt.c (_start):
13073         [1].
13074
13075 2000-06-07  Ben Wing  <ben@xemacs.org>
13076
13077         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13078         was used only as a model.  We've long since extracted any useful
13079         logic or code out of this. (I just did an exhaustive search.)
13080
13081         * s\msdos.h: Removed.
13082
13083         * s\windows95.h: Removed.
13084
13085 2000-06-10  Ben Wing  <ben@xemacs.org>
13086
13087         * s\cygwin32.h:
13088         [1]. [5].
13089         Don't use extern with fun defs.
13090
13091         * s\mingw32.h:
13092         [1]. [7].
13093         Remove nt\inc include.
13094         Remove getdisk, getdefdir. (The former is unused, the latter
13095         expanded in fileio.h.)
13096
13097         * s\windowsnt.h:
13098         * s\windowsnt.h (WIN32_NATIVE):
13099         * s\windowsnt.h (HAVE_STRCASECMP):
13100         [1]. [7].
13101         Add long comment about preprocessor changes.
13102         Remove getdisk, getdefdir. (The former is unused, the latter
13103         expanded in fileio.h.)
13104
13105 2000-06-10  Ben Wing  <ben@xemacs.org>
13106
13107         * m\arm.h:
13108         * m\delta.h:
13109         * m\intel386.h:
13110         * m\sequent.h:
13111         * m\template.h:
13112         * m\windowsnt.h:
13113         [1].
13114         Remove bogus/unused NO_SOCK_SIGIO.
13115
13116 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13117
13118         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13119         not an Emchar.
13120
13121 2000-06-04  Mike Sperber <mike@xemacs.org>
13122
13123         * casetab.c (set_case_table): For `set-standard-case-table',
13124         actually deposit the new case tables where the rest of XEmacs can
13125         see them.
13126
13127 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13128
13129         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13130
13131 2000-06-05  Ben Wing  <ben@xemacs.org>
13132
13133         * callproc.c (child_setup): Don't do close_load_descs() under
13134         MS Windows.  Put in a comment explaining why.
13135
13136 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13137
13138         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13139         Toolkit shell" which breaks `kill-compilation' on Windows NT
13140         native, retaining STDERR handling improvements.
13141
13142 2000-06-01  Andreas Jaeger  <aj@suse.de>
13143
13144         * s/s390.h: Support for S390, based on a patch by Martin
13145         Schwidefsky <schwidefsky@de.ibm.com>.
13146
13147 2000-05-30  Andy Piper  <andy@xemacs.org>
13148
13149         * window.c (allocate_window):
13150         (make_dummy_parent):
13151         (Fset_window_configuration): use new hashtable type.
13152
13153         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13154         (struct image_instantiator_methods):
13155         (struct Lisp_Image_Instance): make instance geometry signed.
13156
13157         * glyphs.c (instantiate_image_instantiator):
13158         (image_instance_query_geometry):
13159         (image_instance_layout):
13160         (image_instance_layout):
13161         (query_string_geometry):
13162         (text_query_geometry):
13163         (image_instantiate):
13164         (image_instantiate):
13165         (cache_subwindow_instance_in_frame_maybe):
13166         (subwindow_query_geometry): make instance geometry signed.
13167
13168         * glyphs-widget.c (widget_query_geometry):
13169         (widget_layout):
13170         (button_query_geometry):
13171         (tree_view_query_geometry):
13172         (tab_control_query_geometry):
13173         (layout_query_geometry):
13174         (layout_layout):
13175         (native_layout_layout): make instance geometry signed.
13176
13177 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13178
13179         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13180         constant.
13181
13182         * general.c (syms_of_general): Add Qfull_assoc symbol.
13183
13184         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13185         correctly.
13186         (decode_weak_list_type): Decode full-assoc type.
13187         (encode_weak_list_type): Encode full-assoc type.
13188         (Fmake_weak_list): Update doc string.
13189
13190 2000-05-30  Andy Piper  <andy@xemacs.org>
13191
13192         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13193
13194         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13195         (decode_hash_table_weakness): ditto.
13196         (Fhash_table_weakness): ditto.
13197         (Fhash_table_type): ditto.
13198         (finish_marking_weak_hash_tables): ditto.
13199         (hash_table_weakness_validate): ditto.
13200         (syms_of_elhash): ditto.
13201
13202 2000-05-28  Martin Buchholz <martin@xemacs.org>
13203
13204         * XEmacs 21.2.34 is released.
13205
13206 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13207
13208         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13209         start cache.
13210         (updating_line_start_cache): Gone.
13211         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13212         generic code to force a minimum of 1 line laid out in the
13213         CMOTION_DISP case.
13214
13215 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13216
13217         * glyphs.c (instantiate_image_instantiator): Check for initialized
13218         height & width no longer special cases IMAGE_NOTHING.
13219         (nothing_instantiate): Set height and width of instance.
13220
13221 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13222
13223         * unexelf.c (unexec): Search for ".data" section.
13224         Initialize new_data2_offset from old_data_index.
13225         Remove redundant check for ElfW.
13226
13227 2000-05-23  Andy Piper  <andy@xemacs.org>
13228
13229         * glyphs.c (get_image_instantiator_governing_domain): allow more
13230         specific domains as the governing domain rather than expecting an
13231         exact match. This fixes problems with layouts.
13232
13233 2000-05-22  Andy Piper  <andy@xemacs.org>
13234
13235         * redisplay-output.c (compare_runes): check for non-images
13236
13237         * glyphs.c (set_glyph_dirty_p): ditto.
13238         (update_glyph_cachel_data): ditto.
13239
13240         * glyphs-widget.c (layout_post_instantiate): ditto.
13241         (layout_post_instantiate): ditto.
13242
13243         * event-msw.c (mswindows_wnd_proc): warning removal.
13244
13245 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13246
13247         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13248
13249         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13250
13251         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13252
13253         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13254         (mswindows_executable_type): mingw32 now has enough headers for
13255         this to work.
13256
13257 2000-05-20  Andy Piper  <andy@xemacs.org>
13258
13259         * console-msw.c (mswindows_output_last_error): ; -> ,
13260
13261 2000-05-12  Andy Piper  <andy@xemacs.org>
13262
13263         * console-msw.c (FROB): compare ints with ints.
13264
13265 2000-05-11  Andy Piper  <andy@xemacs.org>
13266
13267         * glyphs-x.c (x_finalize_image_instance): make minimal build
13268         happy.
13269
13270 2000-05-20  Ben Wing  <ben@xemacs.org>
13271
13272         * event-Xt.c:
13273         * event-Xt.c (vars_of_event_Xt):
13274         move modifier-keys-are-sticky to event-stream.c.
13275
13276         * event-msw.c:
13277         * event-msw.c (mswindows_enqueue_mouse_button_event):
13278         * event-msw.c (key_needs_default_processing_p):
13279         * event-msw.c (XEMSW_LCONTROL):
13280         * event-msw.c (mswindows_handle_sticky_modifiers):
13281         * event-msw.c (FROB):
13282         * event-msw.c (clear_sticky_modifiers):
13283         * event-msw.c (output_modifier_keyboard_state):
13284         * event-msw.c (output_alt_keyboard_state):
13285         * event-msw.c (mswindows_wnd_proc):
13286         * event-msw.c (mswindows_modifier_state):
13287         * event-msw.c (emacs_mswindows_handle_magic_event):
13288         implement sticky modifiers.
13289
13290         * event-stream.c:
13291         * event-stream.c (vars_of_event_stream):
13292         move modifier-keys-are-sticky here.
13293
13294         * lisp.h:
13295         add CHECK_FUNCTION.
13296
13297         * rangetab.c:
13298         implement map-range-table.
13299
13300
13301 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13302
13303         * redisplay-tty.c (reset_tty_modes):
13304         (tty_redisplay_shutdown): Adjust argument type to
13305         tty_frame_output_end.
13306
13307 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13308
13309         * eval.c (Fbacktrace): Don't output a line with only right
13310         parenthesis.
13311
13312 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13313
13314         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13315         (Fpq_reset_poll): Ditto.
13316
13317 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13318
13319         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13320
13321 2000-05-16  Ben Wing  <ben@xemacs.org>
13322
13323         * buffer.c:
13324         * buffer.c (dfc_convert_to/from_internal_format):
13325         * buffer.c (reinit_vars_of_buffer):
13326         Fix conversion functions to allow reentrancy.
13327
13328         * console-msw.c:
13329         * console-msw.c (mswindows_output_last_error):
13330         New fun, generally useful -- output a human-readable
13331         version of GetLastError() on the console.
13332
13333         * console-msw.h:
13334         * console-msw.h (struct mswindows_frame):
13335         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13336
13337         * console-stream.c (stream_output_begin):
13338         * console-stream.c (stream_output_end):
13339         * console-stream.c (stream_output_vertical_divider):
13340         * console-stream.c (stream_clear_region):
13341         * console-stream.c (stream_flash):
13342         * console-stream.c (console_type_create_stream):
13343         Delete blank stream methods, not needed.
13344
13345         * console.h (struct console_methods):
13346         Split begin/end methods into window and frame.
13347
13348         * event-msw.c:
13349         * event-msw.c (mswindows_handle_paint):
13350         * event-msw.c (output_alt_keyboard_state):
13351         * event-msw.c (mswindows_wnd_proc):
13352         * event-msw.c (vars_of_event_mswindows):
13353         Comment about problems with ignored-expose.
13354         Define mswindows-debug-events; not really implemented.
13355
13356         * frame-msw.c (mswindows_init_frame_1):
13357         random cleanups.
13358
13359         * glyphs-msw.c:
13360         * glyphs-msw.c (begin_defer_window_pos):
13361         * glyphs-msw.c (mswindows_unmap_subwindow):
13362         * glyphs-msw.c (mswindows_map_subwindow):
13363         * glyphs-msw.c (mswindows_resize_subwindow):
13364         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13365
13366         * glyphs.c (make_image_instance_1):
13367         Fix crash.
13368
13369         * gutter.c (Fredisplay_gutter_area):
13370         Use new begin/end methods.
13371
13372         * lisp.h (Dynarr_new2):
13373         New creation fun.
13374
13375         * redisplay-msw.c:
13376         * redisplay-msw.c (mswindows_frame_output_begin):
13377         * redisplay-msw.c (mswindows_frame_output_end):
13378         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13379         New begin/end methods -- handle DeferWindowPos.
13380
13381         * redisplay-output.c (redisplay_move_cursor):
13382         * redisplay-output.c (redraw_cursor_in_window):
13383         * redisplay-output.c (redisplay_update_line):
13384         * redisplay-output.c (redisplay_output_window):
13385         New begin/end methods.
13386
13387         * redisplay-tty.c:
13388         * redisplay-tty.c (tty_frame_output_begin):
13389         * redisplay-tty.c (tty_frame_output_end):
13390         * redisplay-tty.c (console_type_create_redisplay_tty):
13391         New begin/end methods.
13392
13393         * redisplay-x.c:
13394         * redisplay-x.c (x_window_output_begin):
13395         * redisplay-x.c (x_window_output_end):
13396         * redisplay-x.c (console_type_create_redisplay_x):
13397         New begin/end methods.
13398
13399         * redisplay.c (redisplay_frame):
13400         * redisplay.c (Fredisplay_echo_area):
13401         New begin/end methods.
13402         use MAYBE_DEVMETH for clear_frame; it may not exist.
13403
13404         * window.h (WINDOW_XFRAME):
13405         WINDOW_XFOO macros -- get locale and decode struct pointer.
13406
13407
13408 2000-05-12  Ben Wing  <ben@xemacs.org>
13409
13410         * emacs.c:
13411         * emacs.c (ensure_no_quitting_from_now_on):
13412         * emacs.c (fatal_error_signal):
13413         * emacs.c (mswindows_handle_hardware_exceptions):
13414         * emacs.c (main):
13415         * emacs.c (Fkill_emacs):
13416         * emacs.c (shut_down_emacs):
13417         * emacs.c (assert_failed):
13418         various improvements in fatal error handling.
13419
13420         * eval.c:
13421         move preparing_for_armageddon to emacs.c.
13422
13423         * lisp.h:
13424         declare fatal_error_in_progress.
13425
13426         * print.c:
13427         * print.c (std_handle_out_external):
13428         * print.c (std_handle_out_va):
13429         * print.c (stderr_out):
13430         * print.c (stdout_out):
13431         use console under mswin when no standard output.
13432         don't do code conversion during fatal error.
13433
13434         * scrollbar.c (Fscrollbar_page_up):
13435         * scrollbar.c (Fscrollbar_page_down):
13436         fix missing else.  reindent.
13437
13438 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13439
13440         Emergency fix.
13441
13442         * glyphs.h (GLYPH_CACHEL_DESCENT):
13443         (GLYPH_CACHEL_DESCENT):
13444         (GLYPH_CACHEL_DESCENT):
13445         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13446         used in case these are inline functions.
13447         Use more absurd values to error check.
13448
13449         include window.h for error check functions.
13450
13451 2000-05-11  Ben Wing  <ben@xemacs.org>
13452
13453         * cmdloop.c (Freally_early_error_handler):
13454         Display message box under windows; otherwise, message will disappear
13455         before it can be viewed.
13456
13457         * console-msw.c:
13458         * console-msw.c (Fmswindows_message_box):
13459         * console-msw.c (FROB):
13460         * console-msw.c (syms_of_console_mswindows):
13461         Define new fun `mswindows-message-box'.
13462         #### I will merge this into `popup-dialog-box'; just give me
13463         a bit of time.
13464
13465         * general.c:
13466         * general.c (syms_of_general):
13467         Some new symbols used in `mswindows-message-box'.
13468
13469         * glyphs.c:
13470         * glyphs.c (Fset_image_instance_property):
13471         put warning in this fun.
13472
13473         * glyphs.h:
13474         * glyphs.h (GLYPH_CACHEL_WIDTH):
13475         * glyphs.h (GLYPH_CACHEL_ASCENT):
13476         * glyphs.h (GLYPH_CACHEL):
13477         * glyphs.h (GLYPH_CACHEL_GLYPH):
13478         define error-checking versions to try to catch a bug i've seen --
13479         redisplay gets in an infinite loop because the glyph width of the
13480         continuation glyph is 65535.
13481
13482         * lisp.h:
13483         Extern message-box stuff.
13484
13485         * window.c (allocate_window):
13486         * window.c (make_dummy_parent):
13487         * window.c (Fset_window_configuration):
13488         Use EQUAL not EQ for subwindow caches to make them work a bit
13489         better. (Something is still very broken.)
13490
13491
13492 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13493
13494         * glyphs.c (image_instantiate): Suppress gcc warnings.
13495         (Fmake_image_instance): Fix doc string.
13496         * specifier.c (Fmake_specifier): Ditto.
13497
13498 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13499
13500         * paths.h.in (PATH_LOCK): Removed.
13501         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13502         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13503
13504 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13505
13506         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13507         Document (featurep '(and xemacs 21.02)).
13508
13509 2000-05-09  Ben Wing  <ben@xemacs.org>
13510
13511         * buffer.c (complex_vars_of_buffer):
13512         update modeline-format doc.
13513
13514         * device.h:
13515         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13516
13517         * emacs.c:
13518         timeline of all released versions of Emacs, for use in creating
13519         authorship comments and in synching up.
13520
13521         * glyphs-widget.c (image_instantiator_buttons):
13522         * glyphs-widget.c (image_instantiator_edit_fields):
13523         * glyphs-widget.c (image_instantiator_combo_box):
13524         * glyphs-widget.c (image_instantiator_scrollbar):
13525         * glyphs-widget.c (image_instantiator_progress_guage):
13526         * glyphs-widget.c (image_instantiator_tree_view):
13527         * glyphs-widget.c (image_instantiator_tab_control):
13528         * glyphs-widget.c (image_instantiator_labels):
13529         * glyphs-widget.c (image_instantiator_layout):
13530         * glyphs-widget.c (image_instantiator_native_layout):
13531         rename decode_domain method to governing_domain.
13532
13533         * glyphs.c:
13534         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13535         * glyphs.c (add_entry_to_device_ii_format_list):
13536         make sure we don't put an entry more than once into the list.
13537         * glyphs.c (check_instance_cache_mapper):
13538         *************************************************************
13539         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13540         HAVE BEEN GETTING.
13541         *************************************************************
13542         * glyphs.c (get_image_instantiator_governing_domain):
13543         clean up, expand on new concept of governing domain.
13544         * glyphs.c (instantiate_image_instantiator):
13545         * glyphs.c (allocate_image_instance):
13546         use governing_domain instead of cache_domain in naming.
13547         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13548         * glyphs.c (make_image_instance_1):
13549         * glyphs.c (Fmake_image_instance):
13550         allow for any domain (not just device), and process the
13551         governing domain correctly.  very big doc fix.
13552         * glyphs.c (Fimage_instance_domain):
13553         new primitive, to retrieve the governing domain of an image instance.
13554         * glyphs.c (image_instantiate):
13555         use new governing_domain stuff.  this fixes a crash you could get
13556         by instantiating certain widget glyphs in frame locales. (should
13557         signal an error instead of crashing.)
13558         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13559         * glyphs.c (Fglyphp): clean up doc.
13560         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13561         * glyphs.c (syms_of_glyphs):
13562         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13563         * glyphs.c (image_instantiator_format_create): add some comments about
13564         bogus code.
13565         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13566         for current-display-table. (Apparently Hrjove implemented in 1998 a
13567         design I wrote up in 1996, but didn't update the doc string.)
13568
13569         * glyphs.h: clean up a doc string.
13570         * glyphs.h (governing_domain):
13571         * glyphs.h (struct image_instantiator_methods):
13572         changes for governing_domain stuff.
13573
13574         * gutter.c:
13575         * gutter.c (Fgutter_specifier_p):
13576         * gutter.c (Fgutter_size_specifier_p):
13577         * gutter.c (Fgutter_visible_specifier_p):
13578         * objects.c:
13579         * objects.c (Fcolor_specifier_p):
13580         * objects.c (Ffont_specifier_p):
13581         * objects.c (Fface_boolean_specifier_p):
13582         doc strings moved to make-*-specifier.
13583
13584         * redisplay.c (add_disp_table_entry_runes_1):
13585         * redisplay.c (generate_fstring_runes):
13586         * redisplay.c (screen):
13587         add random comments and doc strings.
13588
13589         * specifier.c:
13590         * specifier.c (Fmake_specifier):
13591         major overhaul of this doc string.
13592
13593         * specifier.c (Fvalid_specifier_domain_p):
13594         comment about the bogosity of image instances being domains.
13595         * specifier.c (decode_domain):
13596         now non-static, used in glyphs.c.
13597         * specifier.c (specifier_instance):
13598         comment about the bogosity of image instances being domains.
13599         * specifier.c (Fgeneric_specifier_p):
13600         move doc string to make-generic-specifier.
13601         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
13602         rebackslashify.
13603
13604         * specifier.h:
13605         * specifier.h (DOMAIN_FRAME):
13606         * specifier.h (DOMAIN_LIVE_P):
13607         * specifier.h (DOMAIN_XDEVICE):
13608         rebackslashify.
13609         add comments about problems with these macros.
13610         prototype for decode_domain.
13611
13612         * toolbar.c:
13613         * toolbar.c (Ftoolbar_specifier_p):
13614         move doc string to `make-toolbar-specifier'.
13615
13616         * window.c (window_unmap_subwindows_cache_mapper):
13617         *************************************************************
13618         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13619         HAVE BEEN GETTING.
13620         *************************************************************
13621
13622 2000-05-09  Andy Piper  <andy@xemacs.org>
13623
13624         * glyphs.h: declare reset_frame_subwindow_instance_cache.
13625
13626         * window.c (Fset_window_configuration): reset the frame subwindow
13627         cache and re-initialize the window subwindow caches.
13628
13629         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
13630
13631 2000-05-09  Ben Wing  <ben@xemacs.org>
13632
13633         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
13634         DWORD.
13635
13636 2000-04-26  Mike Woolley  <mike@bulsara.com>
13637
13638         * ntheap.c: Changed recreate_heap to limit the amount reserved
13639         for the heap to that which is actually available. Also now
13640         displays a message box (with some dignostics) in the event that
13641         it still can't start.
13642
13643 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
13644
13645         * callproc.c (Fold_call_process_internal): GCPRO path
13646
13647 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
13648
13649         Patch by Bill Perry.
13650
13651         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
13652         back data instead of #ifdef.
13653         (Fscrollbar_page_down): ditto.
13654
13655 2000-05-07  Ben Wing  <ben@xemacs.org>
13656
13657         * buffer.h:
13658         Kludge for defining Qmswindows_tstr.
13659
13660         * nt.c:
13661         * nt.c (open_input_file):
13662         * nt.c (open_output_file):
13663         * nt.c (rva_to_section):
13664         * nt.c (mswindows_executable_type):
13665         Move all memory-mapped-file routines here (some were in unexnt.c,
13666         which is bad because they are used by process-nt.c, and unexnt
13667         won't be around when portable dumping).  Synched the above routines
13668         with FSF 20.6.
13669
13670         * nt.h:
13671         Removed ifdef'd out bogus code.
13672         Fixed some prototypes.
13673
13674         * nt.h (file_data):
13675         * nt.h (OFFSET_TO_RVA):
13676         * nt.h (RVA_TO_OFFSET):
13677         * nt.h (RVA_TO_PTR):
13678         Moved the memory-mapped-file structures, macros and prototypes
13679         here, to parallel nt.c.  ntheap.h should really be removed
13680         entirely, and it's a non-portable-dumper specific file.
13681
13682         * ntheap.h (round_to_next):
13683         Moved the memory-mapped-file structures, macros and prototypes
13684         to nt.h.
13685
13686         * ntproc.c (compare_env):
13687         Moved rva_to_section and mswindows_executable_type to nt.c.
13688         Moved compare_env to process-nt.c.
13689         ntproc.c will die, one day.
13690
13691         * ntproc.c (sys_spawnve):
13692         Account for win32_ -> mswindows_.
13693
13694         * process-nt.c:
13695         * process-nt.c (struct nt_process_data):
13696         * process-nt.c (ensure_console_window_exists):
13697         * process-nt.c (compare_env):
13698         * process-nt.c (nt_create_process):
13699         * process-nt.c (nt_kill_process_by_pid):
13700         * process-nt.c (syms_of_process_nt):
13701         * process-nt.c (vars_of_process_nt):
13702         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
13703         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
13704         changes).  Eliminate our old `nt-quote-process-args' mechanism.
13705         Synch up nt_create_process with FSF 20.6 sys_spawnve.
13706         Move compare_env here from ntproc.c.
13707
13708         * process.c (Fprocess_send_region):
13709         Takes an optional fourth argument, BUFFER, which should fix some
13710         problems with call-process.
13711
13712         * syscommctrl.h:
13713         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
13714
13715         * syswindows.h:
13716         Move ICC_BAR_CLASSES to syscommctrl.h.
13717         Add preliminary macros for MSWindows/Mule.  More to come.
13718
13719         * unexnt.c:
13720         * unexnt.c (unexec):
13721         open_output_file moved to nt.c.
13722
13723
13724 2000-05-05  Andy Piper  <andy@xemacs.org>
13725
13726         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
13727         instance from the frame cache also since GC may catch up too late
13728         to make frame deletion sane.
13729
13730 2000-05-04  Andy Piper  <andy@xemacs.org>
13731
13732         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
13733         (x_finalize_image_instance): ungcpro on deletion.
13734
13735         * glyphs.c (image_instantiator_format_create): give pointers a
13736         query geometry method so that the geometry is at least set.
13737
13738         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
13739         initialize layouts if using widgets.
13740
13741 2000-05-03  Andy Piper  <andy@xemacs.org>
13742
13743         * nt.c: remove bogus reference to sysmmsystem.h
13744
13745         * gui-x.c (popup_selection_callback): fix no selection abort.
13746
13747 2000-05-02  Andy Piper  <andy@xemacs.org>
13748
13749         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
13750         (mswindows_widget_instantiate): ditto.
13751
13752         * glyphs-widget.c (initialize_widget_image_instance): initialize
13753         children correctly.
13754         (widget_instantiate): cope with children and items in the same
13755         instance.
13756
13757         * glyphs.c (mark_image_instance): cope with children as a first
13758         class member.
13759         (image_instance_equal): ditto.
13760         (image_instance_hash): ditto.
13761         (image_instance_changed): ditto.
13762
13763 2000-04-30  Andy Piper  <andy@xemacs.org>
13764
13765         * glyphs.c (subwindow_query_geometry): new function. Return some
13766         defaults.
13767         (subwindow_instantiate): don't assign dimensions if none have been
13768         given.
13769         (image_instantiator_format_create): add subwindow_query_geometry.
13770         (print_image_instance): cope with layouts as widgets.
13771
13772 2000-04-29  Andy Piper  <andy@xemacs.org>
13773
13774         * frame.c (delete_frame_internal): call
13775         free_frame_subwindow_instance_cache so that all subwindows are
13776         finalized before their parent.
13777         (mark_frame): remove subwindow_cachels.
13778         (Fmake_frame): remove subwindow_cachel manipulation.
13779         (allocate_frame_core): subwindow_instance_cache is a weak list.
13780         (delete_frame_internal): set subwindow_instance_cache to nil.
13781
13782         * glyphs-msw.c (mswindows_finalize_image_instance): make double
13783         finalization safe.
13784         (mswindows_finalize_image_instance): use the device
13785         not the domain as the domain may have died already.
13786
13787         * glyphs-x.c (x_finalize_image_instance): ditto.
13788         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
13789         HEIGHT.
13790
13791         * redisplay-output.c (redisplay_unmap_subwindows): update for
13792         subwindow instance cache as a weak list.
13793         (redisplay_unmap_subwindows_maybe): ditto.
13794         (redisplay_unmap_subwindows_except_us): ditto.
13795
13796         * glyphs.c (unmap_subwindow): error checking will check the domain
13797         so don't deal with it here. Don't use cachels anymore.
13798         (map_subwindow): ditto.
13799         (update_subwindow_cachel_data): remove old accessor names.
13800         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
13801         (Fresize_subwindow): don't update cachel.
13802         (mark_subwindow_cachels):
13803         (update_subwindow_cachel_data):
13804         (add_subwindow_cachel):
13805         (get_subwindow_cachel_index):
13806         (update_subwindow_cachel):
13807         (reset_subwindow_cachels):
13808         (mark_subwindow_cachels_as_not_updated): deleted.
13809         (cache_subwindow_instance_in_frame_maybe): new function. Add a
13810         subwindow instance to the frame cache.
13811         (find_matching_subwindow): update for subwindow instance cache as
13812         a weak list.
13813         (update_widget_instances): ditto.
13814         (image_instance_type_to_mask):inlined.
13815         (free_frame_subwindow_instance_cache): new function. finalize all
13816         subwindows that are instantiated.
13817
13818         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
13819         of cachel information.
13820         (IMAGE_INSTANCE_DISPLAY_X):
13821         (IMAGE_INSTANCE_DISPLAY_Y):
13822         (IMAGE_INSTANCE_DISPLAY_WIDTH):
13823         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
13824         (XIMAGE_INSTANCE_DISPLAY_X):
13825         (XIMAGE_INSTANCE_DISPLAY_Y):
13826         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
13827         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
13828         remove subwindow_cachel structure and function references.
13829         (image_instance_type_to_mask): inline from glyphs.c
13830
13831         * redisplay.c (redisplay_frame): remove subwindow_cachel
13832         references.
13833
13834         * frame.h (struct frame): remove subwindow_cachels.
13835         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
13836
13837         * frameslots.h: add subwindow_instance_cache.
13838
13839         * window.c (replace_window): check subwindow cache of replacement.
13840         (window_unmap_subwindows_cache_mapper):
13841         (window_unmap_subwindows): new functions. Unmap all subwindows
13842         cached on this window.
13843         (mark_window_as_deleted): unmap all subwindows.
13844
13845 2000-04-27  Andy Piper  <andy@xemacs.org>
13846
13847         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
13848
13849         * glyphs-widget.c (widget_layout): return something.
13850         (layout_layout): return something. Fail if not initialized.
13851         (layout_query_geometry): ditto.
13852         (image_instantiator_native_layout): new function. Initialized the
13853         native layout type.
13854         (widget_instantiate): don't do layout stuff here.
13855
13856         * glyphs.c (instantiate_image_instantiator): reorded calling or
13857         instantiate and post_instantiate with layout in between.
13858         (image_instance_layout): be more selective about deciding whether
13859         the layout has been done or not.
13860
13861         * glyphs.h (struct image_instantiator_methods): return a value
13862         from layout_method.
13863
13864 2000-04-26  Andy Piper  <andy@xemacs.org>
13865
13866         * glyphs.c (allocate_image_instance): make initial width and
13867         height unspecified. Set initialized to 0.
13868
13869         * syscommctrl.h new file. Encapsulates commctrl.h.
13870
13871         * syswindows.h new file. Encapsulates windows.h.
13872
13873         * ntplay.c: use new syswindows.h and syscommctrl.h header.
13874         * nt.c: ditto.
13875         * console-msw.h: ditto.
13876
13877         * redisplay-tty.c (tty_output_display_block): remove layout references.
13878
13879         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
13880         window handle rather than just the frame.
13881
13882         * glyphs.c (mark_image_instance): remove layout references.
13883         (print_image_instance): ditto.
13884         (image_instance_equal): ditto.
13885         (image_instance_hash): ditto.
13886         (decode_image_instance_type): ditto.
13887         (encode_image_instance_type): ditto.
13888         (image_instantiate): ditto.
13889         (allocate_glyph): ditto.
13890         (Fimage_instance_height): ditto.
13891         (Fimage_instance_width): ditto.
13892         (update_subwindow): ditto.
13893
13894         * redisplay-x.c (x_output_display_block): recode for layouts as
13895         widgets.
13896
13897         * redisplay-output.c (redisplay_output_layout): recode for layouts
13898         as widgets.
13899         (compare_runes): remove layout references.
13900
13901         * redisplay-msw.c (mswindows_output_display_block): recode for
13902         layouts as widgets.
13903
13904         * glyphs-widget.c (image_instantiator_layout): remove
13905         layout_possible_dest_types.
13906         (layout_possible_dest_types): deleted.
13907
13908         * glyphs.h (image_instance_type): remove layout references.
13909         (struct Lisp_Image_Instance): ditto. Add initialized flag.
13910         (IMAGE_INSTANCE_INITIALIZED): new accessor.
13911         (XIMAGE_INSTANCE_INITIALIZED): ditto.
13912
13913 2000-04-25  Andy Piper  <andy@xemacs.org>
13914
13915         * glyphs-widget.c (image_instantiator_buttons):
13916         (image_instantiator_edit_fields):
13917         (image_instantiator_combo_box):
13918         (image_instantiator_scrollbar):
13919         (image_instantiator_progress_guage):
13920         (image_instantiator_tree_view):
13921         (image_instantiator_tab_control):
13922         (image_instantiator_labels):
13923         (image_instantiator_layout): call default post_instantiate method.
13924         (widget_post_instantiate): new function. Simply lays out the
13925         widgets.
13926
13927         * glyphs.h (struct image_instantiator_methods): add
13928         post_instantiate method.
13929
13930         * glyphs.c (instantiate_image_instantiator): add post_instantiate
13931         method calls.
13932
13933 2000-04-23  Andy Piper  <andy@xemacs.org>
13934
13935         * glyphs.h (struct image_instantiator_methods): add
13936         decode_domain_method.
13937         (struct Lisp_Image_Instance): remove subwindow frame - it can be
13938         derived from the domain.
13939         (IMAGE_INSTANCE_FRAME): new accessor.
13940         (XIMAGE_INSTANCE_FRAME): ditto.
13941
13942         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
13943         instead of _SUBWINDOW_FRAME.
13944         (finalize_image_instance): ditto.
13945         (Fimage_instance_foreground): ditto.
13946         (Fimage_instance_background): ditto.
13947         (image_instantiate): ditto.
13948         (update_subwindow_cachel): ditto.
13949         (update_subwindow): ditto.
13950         (unmap_subwindow): ditto.
13951         (map_subwindow): ditto
13952         (subwindow_instantiate): ditto.
13953         * glyphs-msw.c (mswindows_update_widget): ditto.
13954         (mswindows_progress_gauge_instantiate): ditto.
13955         (mswindows_tab_control_update): ditto.
13956         * glyphs-x.c (x_update_widget): ditto.
13957         (x_widget_instantiate): ditto.
13958         (x_tab_control_instantiate): ditto.
13959         (x_tab_control_update): ditto.
13960         * event-msw.c (mswindows_wnd_proc): ditto
13961
13962         * glyphs-widget.c (image_instantiator_layout): use
13963         subwindow_decode_domain.
13964         (image_instantiator_buttons): ditto.
13965         (image_instantiator_edit_fields): ditto.
13966         (image_instantiator_combo_box): ditto.
13967         (image_instantiator_scrollbar): ditto.
13968         (image_instantiator_progress_guage): ditto.
13969         (image_instantiator_tree_view): ditto.
13970         (image_instantiator_tab_control): ditto.
13971         (image_instantiator_labels): ditto.
13972         (image_instantiator_layout): ditto.
13973
13974         * glyphs.c: add instance error checking to many functions.
13975         (instantiate_image_instantiator): decode device from cache_domain.
13976         (image_instantiate): partially rewrite by using
13977         decode_image_instantiator_domain to determine what domain the
13978         instance needs to be cached in.
13979         (decode_image_instantiator_domain): new function. Determine what
13980         domain the image needs to be cached in.
13981         (check_window_subwindow_cache): new error checking function.
13982         (check_instance_cache_mapper): ditto.
13983         (check_image_instance_structure): ditto.
13984         (subwindow_decode_domain): new function. Encodes a window as a
13985         subwindow's cache domain.
13986         (image_instantiator_format_create): use it for text and
13987         subwindows.
13988
13989 2000-04-21  Andy Piper  <andy@xemacs.org>
13990
13991         * glyphs.c (image_instance_device): new function.
13992         (image_instance_frame): new function.
13993         (image_instance_window): new function.
13994         (image_instance_live_p): new function.
13995
13996         * window.c (mark_window_as_deleted): reset the subwindow_instance_
13997         cache to nil.
13998
13999         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14000         (IMAGE_INSTANCE_DOMAIN): new accessor.
14001         (XIMAGE_INSTANCE_DOMAIN): ditto.
14002
14003         * glyphs-x.c (x_finalize_image_instance): device->domain.
14004
14005         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14006         (mswindows_finalize_image_instance): ditto.
14007
14008         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14009         (gif_instantiate): ditto.
14010         (png_instantiate): ditto.
14011         (tiff_instantiate): ditto.
14012
14013         * glyphs.c (instantiate_image_instantiator): use domain rather
14014         than device.
14015         (mark_image_instance): device -> domain.
14016         (print_image_instance): ditto.
14017         (finalize_image_instance): ditto.
14018         (image_instance_equal): ditto.
14019         (allocate_image_instance): ditto.
14020         (Fcolorize_image_instance): ditto.
14021         (query_string_geometry): ditto.
14022         (image_instantiate): ditto
14023         (query_string_font): ditto.
14024         (image_instantiate): ditto.
14025         (update_subwindow): ditto.
14026         (unmap_subwindow): ditto.
14027         (map_subwindow): ditto.
14028         (subwindow_instantiate): ditto.
14029
14030         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14031         (DOMAIN_FRAME): ditto.
14032         (DOMAIN_WINDOW): ditto.
14033         (DOMAIN_LIVE_P): ditto.
14034         (XDOMAIN_DEVICE): ditto.
14035         (XDOMAIN_FRAME): ditto.
14036         (XDOMAIN_WINDOW): ditto.
14037
14038         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14039         a valid specifier domain.
14040
14041 2000-04-19  Andy Piper  <andy@xemacs.org>
14042
14043         * glyphs-widget.c (syms_of_glyphs_widget): remove
14044         widget-callback-current-channel.
14045         (vars_of_glyphs_widget): ditto.
14046         * glyphs.h: ditto
14047
14048         * gui.c (get_gui_callback): revert to previous behaviour.
14049
14050 2000-04-18  Andy Piper  <andy@xemacs.org>
14051
14052         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14053         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14054         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14055
14056         * glyphs.c (image_instance_equal): add margin_width.
14057         (image_instance_hash): ditto.
14058
14059         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14060         (layout_query_geometry): ditto.
14061         (layout_layout): ditto.
14062         (syms_of_glyphs_widget): add margin-width.
14063         (image_instantiator_layout): allow margin-width.
14064
14065         * glyphs.c (update_widget_instances): make a normal function.
14066         (syms_of_glyphs): remove Qupdate_widget_instances.
14067         * glyphs.h: ditto.
14068
14069         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14070         so that we don't corrupt ideas about the last event or
14071         command. Remove widget-callback-current-channel fiddling.
14072         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14073
14074 2000-05-01  Martin Buchholz <martin@xemacs.org>
14075
14076         * XEmacs 21.2.33 is released.
14077
14078 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14079
14080         * make-src-depend: Allow dots in header file name.
14081
14082 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14083
14084         * mule-charset.h (struct charset_lookup): Add
14085         next_allocated_1_byte_leading_byte and
14086         next_allocated_2_byte_leading_byte.
14087         * mule-charset.c: Move above two variables so that those values
14088         will be dumped.
14089
14090 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14091
14092         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14093         when string length is zero.
14094         (find_charsets_in_emchar_string): Ditto.
14095
14096 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14097
14098         * lisp.h: extern Qdialog and Qmenubar.
14099
14100         * gui-x.c: added events.h.
14101                 also fixed typo which made the file uncompilable.
14102
14103         * general.c: Added Qmenubar and Qdialog
14104
14105 2000-04-28  Ben Wing  <ben@xemacs.org>
14106
14107         * frame-msw.c (mswindows_init_frame_1):
14108         * frame-msw.c (mswindows_mark_frame):
14109         * event-msw.c (mswindows_enqueue_dispatch_event):
14110         * console-msw.h:
14111         * console-msw.h (struct mswindows_frame):
14112         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14113         there are now three hash tables for callbacks.
14114         mswindows_enqueue_dispatch_event is no longer static.
14115
14116         * dialog-x.c (maybe_run_dbox_text_callback):
14117         * dialog-x.c (dbox_descriptor_to_widget_value):
14118         switch to new cons3 form for callbacks.
14119
14120         * glyphs-msw.c (mswindows_register_gui_item):
14121         * glyphs-msw.c (mswindows_widget_instantiate):
14122         * glyphs-msw.c (add_tree_item):
14123         * glyphs-msw.c (add_tab_item):
14124         new image instance parameter, so it can be passed to callback-ex.
14125         respect :callback-ex as well as :callback.
14126
14127         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14128         add :callback-ex.
14129
14130         * glyphs.c (print_image_instance):
14131         prettify, e.g. now prints widget type.
14132
14133         * gui-x.h:
14134         certain funs have new image instance parameter.
14135
14136         * gui.c:
14137         * gui.c (get_gui_callback):
14138         * gui.c (gui_item_add_keyval_pair):
14139         * gui.c (gui_item_init):
14140         * gui.c (gui_add_item_keywords_to_plist):
14141         * gui.c (mark_gui_item):
14142         * gui.c (gui_item_hash):
14143         * gui.c (gui_item_equal):
14144         * gui.c (copy_gui_item):
14145         * gui.c (syms_of_gui):
14146         recognize callback-ex in a number of places.
14147         also, fix the annoying "can't get out of yes-no dialog" bug.
14148
14149         * gui.h:
14150         * gui.h (struct Lisp_Gui_Item):
14151         recognize callback-ex in a number of places.
14152
14153         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14154         new parameter in button_item_to_widget_value.
14155
14156         * glyphs-x.c (x_update_widget):
14157         * glyphs-x.c (x_button_instantiate):
14158         * glyphs-x.c (x_button_update):
14159         * glyphs-x.c (x_progress_gauge_instantiate):
14160         * glyphs-x.c (x_edit_field_instantiate):
14161         * glyphs-x.c (x_combo_box_instantiate):
14162         * glyphs-x.c (x_tab_control_instantiate):
14163         * glyphs-x.c (x_label_instantiate):
14164         new image instance parameter in various places.
14165
14166         * event-Xt.c:
14167         * event-Xt.c (enqueue_Xt_dispatch_event):
14168         this fun gets exported.
14169
14170         * gui-msw.c:
14171         * gui-msw.c (mswindows_handle_gui_wm_command):
14172         handle both :callback and :callback-ex, and generate our own
14173         event because it's one of the callback-ex arguments.
14174
14175         * gui-x.c:
14176         * gui-x.c (popup_selection_callback):
14177         handle both :callback and :callback-ex, and generate our own
14178         event because it's one of the callback-ex arguments.
14179         * gui-x.c (button_item_to_widget_value):
14180         * gui-x.c (gui_items_to_widget_values_1):
14181         * gui-x.c (gui_item_children_to_widget_values):
14182         * gui-x.c (gui_items_to_widget_values):
14183         new image instance parameter in various places.
14184
14185         * fns.c (Freplace_list):
14186         fix small typo in doc string.
14187
14188         * lisp.h:
14189         declare enqueue_Xt_dispatch_event.
14190
14191 2000-04-28  Ben Wing  <ben@xemacs.org>
14192
14193         * buffer.c:
14194         * buffer.c (Frecord_buffer):
14195         * buffer.c (syms_of_buffer):
14196         delete record-buffer-hook.
14197
14198         * fns.c:
14199         * fns.c (Freplace_list):
14200         * fns.c (syms_of_fns):
14201         new primitive replace-list.
14202
14203         * frameslots.h:
14204         slot for old buffer-alist.
14205
14206         * lisp.h:
14207         exfun replace-list.
14208
14209         * redisplay.c:
14210         * redisplay.c (redisplay_frame):
14211         * redisplay.c (syms_of_redisplay):
14212         * redisplay.c (vars_of_redisplay):
14213         new hook buffer-list-changed-hook.
14214         call it.
14215
14216 2000-04-27  Ben Wing  <ben@xemacs.org>
14217
14218         * extents.h: extern in_modeline_generation.
14219
14220         * redisplay.c (generate_formatted_string_db): set
14221         in_modeline_generation.
14222
14223         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14224         flags if in modeline generation.  otherwise frame-modified-tick
14225         is ticked far too often.
14226         Declare in_modeline_generation.
14227
14228 2000-04-26  Ben Wing  <ben@xemacs.org>
14229
14230         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14231         option.
14232         (vars_of_emacs): add quick-build as an error-checking option.
14233         A bit kludgy, but there doesn't seem much point in creating
14234         a real var for this.
14235
14236         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14237
14238 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14239
14240         * redisplay.h (struct display_line): Add a new variable,
14241         line_continuation.
14242
14243         * redisplay.c (create_text_block): Set dl->line_continuation if
14244         the line continues.
14245         (create_string_text_block): Ditto.
14246         (regenerate_window_incrementally): Use line_continuation instead
14247         of searching continuation glyph.
14248         (add_margin_runes): Call add_glyph_rune.
14249         (add_glyph_rune): Handle margin glyph.
14250
14251 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14252
14253         * filelock.c (fill_in_lock_file_name):
14254         ANSIfy.
14255         Check for IS_ANY_SEP instead of '/'.
14256         (lock_file_1):
14257         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14258         Never check errno without first seeing that system call failed.
14259         (unlock_file): Add GCPRO.
14260         (Flock_buffer): Fix docstring.
14261         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14262
14263 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14264
14265         * sysdep.c (get_pty_max_bytes):
14266         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14267         strings longer than 252 bytes.
14268
14269         * md5.c: Unconditionally include ANSI header <limits.h>
14270
14271         * glyphs-x.c (convert_EImage_to_XImage):
14272         * lisp-union.h (union Lisp_Object):
14273         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14274
14275 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14276
14277         * filelock.c (current_lock_owner): Remove unused variable o, p.
14278
14279 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14280
14281         * callint.c: Remove multiply defined symbol Qlet
14282         (syms_of_callint): ditto.
14283
14284 2000-04-14  Andy Piper  <andy@xemacs.org>
14285
14286         * general.c (syms_of_general): add last-command, this-command, let
14287         and funcall.
14288
14289         * lisp.h: declare various symbols.
14290
14291         * glyphs.h: declare Qwidget_callback_current_channel;
14292
14293         * glyphs-widget.c (syms_of_glyphs_widget): add
14294         Qgui_callback_current_channel.
14295         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14296
14297         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14298         widget-callback-current-channel when invoking the interactive
14299         arg. Also bind last-command and next-command when invoking the
14300         widget updates.
14301         * gui-x.c (popup_selection_callback): ditto.
14302
14303         * gui.c (get_gui_callback): massage args so that we are always
14304         calling eval. This allows us to add our own variable bindings
14305         outside.
14306
14307         * glyphs-x.c (x_button_instantiate): use
14308         gui_items_to_widget_values since this is GC safe.
14309         (x_progress_gauge_instantiate): ditto.
14310         (x_edit_field_instantiate): ditto.
14311         (x_label_instantiate): ditto.
14312
14313         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14314         (emacs_Xt_event_widget_focus_out): new function
14315         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14316         focus.
14317         (emacs_Xt_event_add_widget_actions): new function. add focus
14318         functions as actions.
14319         (init_event_Xt_late): use it.
14320
14321 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14322
14323         * event-stream.c (Fdispatch_event): Doc fix.
14324
14325 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14326
14327         * postgresql.c: Remove all references to PQsetenv*.
14328
14329         * postgresql.h: Remove references to PGsetenvHandler object.
14330         * lrecord.h (lrecord_type): Ditto.
14331
14332 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14333
14334         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14335         real_heigh and real_width members, and accessor macros for these.
14336
14337         * glyphs-msw.c (init_image_instance_geometry): New function.
14338         (init_image_instance_from_dibitmap): Use it.
14339         (mswindows_resource_instantiate): Use it.
14340         (init_image_instance_from_xbm_inline): Use it.
14341         (mswindows_initialize_image_instance_mask): Use real bitmap
14342         geometry.
14343         (mswindows_create_resized_bitmap): Ditto.
14344         (mswindows_create_resized_mask): Ditto.
14345
14346         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14347         and bitmap to their surface size.
14348
14349 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14350
14351         * process-unix.c (unix_send_process): Guard against process MIA
14352         after Faccept_process_output.
14353
14354 2000-04-11  Ben Wing  <ben@xemacs.org>
14355
14356         * eval.c (unbind_to_hairy): fix brokenness introduced by
14357         nanosecond speed improvements.
14358
14359 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14360
14361         * sunplay.c (init_device): To play sounds correctly, the device
14362         apparently needs to be initialized at least once by XEmacs.  Make
14363         it so.
14364
14365 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14366
14367         * redisplay.c (add_margin_runes): Add text image glyph
14368           handling.
14369
14370 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14371
14372         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14373         gcc is newer than 2.5.
14374
14375 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14376
14377         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14378
14379         * fns.c (size_bit_vector):
14380         * alloc.c (size_vector):
14381         (make_vector_internal):
14382         (make_bit_vector_internal):
14383         (sweep_bit_vectors_1):
14384         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14385
14386 2000-04-06  Andy Piper  <andy@xemacs.org>
14387
14388         * gmalloc.c (malloc): undo previous change.
14389         (malloc): ditto.
14390         (free): ditto.
14391         (realloc): ditto.
14392
14393 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14394
14395         * line-number.c (buffer_line_number): Revert to former version.
14396
14397 2000-04-06  Andy Piper  <andy@xemacs.org>
14398
14399         * gmalloc.c (malloc): add error checking.
14400         (malloc): ditto.
14401         (free): ditto.
14402         (realloc): ditto.
14403
14404         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14405         button_item_to_widget_value arg.
14406
14407         * glyphs-x.c (x_button_instantiate): add extra
14408         button_item_to_widget_value arg.
14409         (x_progress_gauge_instantiate): ditto.
14410         (x_edit_field_instantiate): ditto.
14411         (x_label_instantiate): ditto.
14412
14413         * gui-x.c (gui_items_to_widget_values_1): add extra
14414         button_item_to_widget_value arg.
14415         (button_item_to_widget_value): add extra menu_item_p arg.
14416
14417         * gui-x.h: change signature of button_item_to_widget_value.
14418
14419         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14420         button_item_to_widget_value arg.
14421
14422 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14423
14424         * buffer.h (struct buffer): auto_save_modified should be long.
14425
14426 2000-04-05  Andy Piper  <andy@xemacs.org>
14427
14428         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14429         type.
14430         (button_query_geometry): give a little more room so that athena
14431         buttons fit.
14432
14433 2000-04-05  Andy Piper  <andy@xemacs.org>
14434
14435         * faces.c (complex_vars_of_faces): The widget face should inherit
14436         the font of the gui-element face.
14437
14438 2000-04-04  Andy Piper  <andy@xemacs.org>
14439
14440         * glyphs-x.c (x_button_update): new function. unconditionally
14441         update a button's state when the instance is dirty.
14442         (image_instantiator_format_create_glyphs_x): add x_button_update.
14443         (x_widget_instantiate): remove old resize cruft.
14444
14445 2000-04-02  Andy Piper  <andy@xemacs.org>
14446
14447         * frame.c (change_frame_size_1): The introduction of gutters means
14448         that we need to allow 0 as a potential frame dimension.
14449
14450 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14451
14452         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14453         image glyph if allow_cursor.
14454         (add_hscroll_rune): Don't allow cursor to border glyph.
14455         (create_text_block): Ditto.
14456
14457         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14458         text not in buffer.
14459         (redisplay_output_layout): Call ensure_face_cachel_complete for
14460         text image glyph.
14461
14462
14463 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14464
14465         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14466
14467         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14468         not in buffer
14469
14470         * redisplay-tty.c (tty_output_display_block): Delete the routine
14471         for text image glyph
14472         * redisplay-x.c (x_output_display_block): ditto
14473         * redisplay-msw.c (mswindows_output_display_block): ditto
14474
14475 2000-02-02  Mike Alexander  <mta@arbortext.com>
14476
14477         Note: Some of these were committed by accident as part of other
14478         patches.
14479
14480         * regex.c (regex_compile): Avoid compiler warnings.
14481
14482         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14483
14484         * nt.h: Declare term_ntproc correctly.
14485
14486         * nt.c: Remove incorrect declaration of get_home_directory which
14487         is declared correctly in lisp.h.
14488
14489         * keymap.c (get_keyelt): Avoid compiler warnings.
14490         (raw_lookup_key_mapper): Avoid compiler warnings.
14491
14492         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14493
14494         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14495
14496         * filemode.c (mode_string): Avoid compiler warnings.
14497
14498         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14499         avoid warning.
14500
14501         * events-mod.h: Undef some things that winuser.h defines differently.
14502
14503         * data.c (Faset): Avoid compiler warnings.
14504
14505         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14506
14507 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14508
14509         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14510         Fall through to simple beep on error.
14511         Replace "extern" by real header file.
14512
14513         * linuxplay.c: Use nativesound.h
14514         (play_sound_data): Return error code. Be less verbose on error.
14515
14516         * sunplay.c: Use nativesound.h
14517         (play_sound_data): Return error code. Be less verbose on error.
14518
14519         * ntplay.c: Use nativesound.h
14520         (play_sound_data): Return fake error code
14521
14522         * sgiplay.c: Use nativesound.h
14523         (play_sound_data): Return error code
14524
14525         * hpplay.c: Use nativesound.h, partially implement
14526         new error code. Break compilation until finished.
14527         (play_sound_data): error code.
14528
14529         * nativesound.h (play_sound_file):
14530           (play_sound_data): Prototype in new header.
14531
14532 2000-03-31  Andy Piper  <andy@xemacs.org>
14533
14534         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14535         for toggle and radio buttons.
14536         (image_instantiator_buttons): use it.
14537
14538 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14539
14540         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14541         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14542         found. Scrollbar event probably belonged to some old config.
14543
14544 2000-03-31  Andy Piper  <andy@xemacs.org>
14545
14546         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14547         than 1.
14548         (initialize_widget_image_instance): default layout to
14549         LAYOUT_HORIZONTAL rather than 0.
14550         (widget_instantiate): reverse the item list at the end rather than
14551         every iteration.
14552         (layout_layout): re-code for the border text at the front of the
14553         item list rather than at the end.
14554         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14555         provided by the user.
14556         (widget_query_geometry): comment.
14557
14558 2000-03-30  Andy Piper  <andy@xemacs.org>
14559
14560         * glyphs-widget.c (image_instantiator_layout): allow standard
14561         widget keywords in layouts.
14562
14563         * gutter.c (output_gutter): cope with nil gutter contents.
14564
14565         * frame.c (Fset_frame_properties): add gutter docs.
14566
14567 2000-03-29  Andy Piper  <andy@xemacs.org>
14568
14569         * toolbar-msw.c (TBSTYLE_FLAT): add.
14570         (mswindows_output_toolbar): minor fiddling.
14571
14572 2000-03-29  Andy Piper  <andy@xemacs.org>
14573
14574         * gutter.c (output_gutter): force gutter size recalculation if
14575         what we are trying to display won't fit.
14576         (update_gutter_geometry): new function. A per-gutter version of
14577         update_frame_gutter_geometry.
14578         (update_frame_gutter_geometry): use it.
14579         (redraw_exposed_gutter): add extra debugging output.
14580
14581 2000-03-28  Mike Alexander  <mta@arbortext.com>
14582
14583         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
14584         (pdump_file_unmap): Implement it on Windows
14585         (pdump_file_get): Save alocated handles for pdump_file_unmap
14586
14587 2000-03-28  Andy Piper  <andy@xemacs.org>
14588
14589         * gui.c (get_gui_callback): treat Quit specially.
14590
14591 2000-03-27  Andy Piper  <andy@xemacs.org>
14592
14593         * glyphs.c (image_instantiate): be careful to check in the same
14594         way we assigned.
14595
14596 2000-03-27  Didier Verna  <didier@xemacs.org>
14597
14598         * config.h.in: define the proper SMART_INCLUDE macro.
14599         handle renaming of `foo_h_path' to `foo_h_file'.
14600
14601         * database.c: ditto.
14602
14603         * emacs.c: ditto.
14604
14605         * linuxplay.c: ditto.
14606
14607         * terminfo.c: ditto.
14608
14609         * tooltalk.h: ditto.
14610
14611 2000-03-27  Andy Piper  <andy@xemacs.org>
14612
14613         * glyphs-msw.c (mswindows_update_widget): make sure the widget
14614         gets updated whenever the face might have changed.
14615
14616 2000-03-26  Mike Alexander  <mta@arbortext.com>
14617
14618         * dumper.c (pdump_resource_free): Fix the comment.
14619
14620 2000-03-21  Olivier Galibert  <galibert@pobox.com>
14621
14622         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
14623
14624 2000-03-22  Mike Alexander  <mta@arbortext.com>
14625
14626         * dumper.c: Include Windows headers on Windows
14627         (pdump_resource_free): Add a body to the function
14628         (pdump_load): exe_name -> exe_path and add some comments.
14629
14630 2000-03-25  Mike Alexander  <mta@arbortext.com>
14631
14632         * gui.c (copy_gui_item_tree): Return a value in all cases
14633
14634 2000-03-21  Didier Verna  <didier@xemacs.org>
14635
14636         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
14637         lwlib/config.h.in.
14638         (SMART_INCLUDE): new macro.
14639         (POSTGRES_INCLUDE): new macro to include postgresql headers from
14640         the proper location.
14641
14642         * postgresql.c: use it.
14643
14644         * inline.c: ditto.
14645
14646 2000-03-24  Andy Piper  <andy@xemacs.org>
14647
14648         * gutter.c (redraw_exposed_gutters): must be "in display" when we
14649         do this.
14650
14651 2000-03-24  Andy Piper  <andy@xemacs.org>
14652
14653         * redisplay-output.c (compare_runes): use image_instance_changed
14654         to detect changes. Do not depend on glyphs_changed, only depend on
14655         dirtiness.
14656          (redisplay_output_layout): add debug messages.
14657         (compare_runes): ditto.
14658
14659         * glyphs.h: declare new functions.
14660         (struct Lisp_Image_Instance): remove percent and associated
14661         accessors.
14662
14663         * gui.h: declare new copying functions.
14664
14665         * gui.c (copy_gui_item_tree): new function.
14666         (copy_gui_item): new function.
14667         (gui_item_id_hash): revert to standard hash.
14668         (gui_item_hash): ditto.
14669         (gui_item_hash_internal): deleted.
14670         (mark_gui_item): mark value.
14671         (gui_item_add_keyval_pair): add value.
14672         (gui_item_init): ditto.
14673         (gui_add_item_keywords_to_plist): ditto.
14674         (gui_item_equal): ditto.
14675         (syms_of_gui): add Q_value.
14676
14677         * glyphs-x.c (x_progress_gauge_update): use pending items and
14678         value for setting the state.
14679         (x_update_widget): don't set items from pending here.
14680
14681         * glyphs-widget.c (update_widget): update items here.
14682         (progress_gauge_set_property): use items for storing value. Put
14683         new value in pending items.
14684
14685         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
14686         items for new value. Convert percent -> value.
14687         (mswindows_tab_control_update): don't update items here.
14688
14689         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
14690         (update_subwindow): ditto.
14691         (image_instance_changed): new function. Compare hash values and
14692         past and present widget items.
14693         (image_instantiate): We more careful about where we instantiate
14694         things.
14695         (image_instantiate): add error checking.
14696
14697         * gutter.c (syms_of_gutter): use -hook.
14698
14699 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
14700
14701         * console-tty.c (Fset_console_tty_input_coding_system): Use
14702         Qkeyboard.
14703         (Fset_console_tty_output_coding_system): Use Qterminal.
14704         (tty_init_console): Use Qkeyboard and Qterminal.
14705
14706 2000-03-21  Ben Wing  <ben@xemacs.org>
14707
14708         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
14709         From Mike Alexander <mta@arbortext.com>.
14710
14711 2000-03-21  Ben Wing  <ben@xemacs.org>
14712
14713         * event-msw.c (mswindows_need_event): Horrible kludge to fix
14714         process brokenness.  Proper implementation to come.
14715         * callproc.c:
14716         Rename call-process-internal to old-call-process-internal.
14717         New impl. in process.el.
14718
14719 2000-03-21  Martin Buchholz  <martin@xemacs.org>
14720
14721         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
14722
14723 2000-03-20  Andy Piper  <andy@xemacs.org>
14724
14725         * glyphs.c (full_list_hash): make hashes of the same elements in
14726         different orders return different values.
14727
14728 2000-03-20  Martin Buchholz <martin@xemacs.org>
14729
14730         * XEmacs 21.2.32 is released.
14731
14732 2000-03-20  Martin Buchholz  <martin@xemacs.org>
14733
14734         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
14735         (DFC_MALLOC_USE_CONVERTED_DATA):
14736         Add aliasing-safe casts to allow use with char* or unsigned char*
14737         lvalues.
14738
14739         * eldap.c (Fldap_open):
14740         (Fldap_search_basic):
14741         (Fldap_add):
14742         (Fldap_modify):
14743         Make C++-compilable.
14744         Make sure GCPRO'ed variables are initialized.
14745         Use temp variables to avoid repeated calls to Flength.
14746
14747 2000-03-16  Martin Buchholz  <martin@xemacs.org>
14748
14749         * sysfile.h:
14750         Make sure PATH_MAX is always defined.
14751         Include limits.h for PATH_MAX.
14752         Deprecate use of MAXPATHLEN.
14753
14754 2000-03-10  Martin Buchholz  <martin@xemacs.org>
14755
14756         * emacs.c: Add reinit_vars_of_fileio.
14757         * symsinit.h: Add reinit_vars_of_fileio.
14758         * fileio.c (reinit_vars_of_fileio): New.
14759         * fileio.c (Fmake_temp_name):
14760         Initialize temp_name random number from microseconds to make
14761         collisions even less likely.  Initialize always at process startup
14762         time.  (make-temp-name) used to return the same file name twice in
14763         a row when PDUMP.
14764         Random stylistic fiddling.
14765         Comment fixes.
14766
14767 2000-03-20  Andy Piper  <andy@xemacs.org>
14768
14769         * glyphs.c (image_instantiate): allow text glyphs to be
14770         instantiated in the minibuffer window.
14771
14772 2000-03-19  Andy Piper  <andy@xemacs.org>
14773
14774         * glyphs.c (image_instance_hash): be careful about which items we
14775         hash on.
14776
14777         * glyphs-widget.c (tab_control_set_property): record into pending
14778         items rather than the actual items.
14779
14780         * glyphs-x.c (x_update_widget): use pending items to update with.
14781
14782         * glyphs-msw.c (mswindows_tab_control_update): use pending items
14783         to update with.
14784
14785         * glyphs.c (mark_image_instance): mark pending items.
14786
14787         * window.c (Fset_window_configuration): record the buffer.
14788         (Fselect_window): totally revert previous change which breaks many
14789         things.
14790
14791 2000-03-18  Andy Piper  <andy@xemacs.org>
14792
14793         * glyphs-msw.c (mswindows_tab_control_update): force selected
14794         item.
14795
14796         * glyphs.c (image_instantiate): don't allow the minibuffer as a
14797         window domain cache, otherwise we get inconsistencies at
14798         startup. There is something fishy at startup which can lead to the
14799         minibuffer being the selected window when the gutter content is
14800         instantiated.
14801
14802         * gui.c (parse_gui_item_tree_list): add probably unnecessary
14803         gcpros.
14804         (parse_gui_item_tree_children): ditto.
14805         (parse_gui_item_tree_item): ditto.
14806
14807         * glyphs.c (Fupdate_widget_instances): return something.
14808
14809 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
14810
14811         * window.c (Fselect_window): Undo 2000-03-17 change.
14812
14813 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
14814
14815         * postgresql.c (Fpq_setenv): Remove this turkey when linking
14816         against v7.0 libraries.  Insta-coredump city until the postgres
14817         folks fix it.
14818
14819 2000-03-17  Andy Piper  <andy@xemacs.org>
14820
14821         * faces.c (complex_vars_of_faces): don't give the widget face an
14822         inherited background pixmap.
14823
14824         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
14825         selected item.
14826
14827         * event-stream.c (Fdispatch_non_command_events): return something.
14828
14829         * gutter.c (output_gutter): use widget face.
14830         (clear_gutter): ditto.
14831
14832         * NEWS: adjust again.
14833
14834         * window.c (Fselect_window): make sure this runs to completion to
14835         avoid oddities with Fset_window_configuration.
14836         (Fcurrent_window_configuration): in general do not save the
14837         minibuffer as the selected window.
14838
14839         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
14840
14841 2000-03-16  Olivier Galibert  <galibert@pobox.com>
14842
14843         * emacs.c (Frunning_temacs_p): Revert previous patch.
14844         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
14845
14846 2000-03-16  Andy Piper  <andy@xemacs.org>
14847
14848         * glyphs-x.c (x_tab_control_update): if no widget values then
14849         return.
14850
14851         * NEWS: update for new features.
14852
14853         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
14854         synthetic event to the native system.
14855         (reinit_vars_of_event_Xt): set force_event_pending to
14856         emacs_Xt_force_event_pending.
14857
14858         * events.h (struct event_stream): add force_event_pending.
14859
14860         * specifier.c (recompute_one_cached_specifier_in_window): add
14861         comment.
14862
14863         * redisplay.c (redisplay_frame): don't call
14864         update_frame_subwindows. Reset subwindow cachels when
14865         subwindows_changed, removing this was an optimization too far.
14866
14867         * redisplay-output.c (compare_runes): reorganize so that we catch
14868         glyph changes when we want them. Set optimize_output when this
14869         would help layouts.
14870         (redisplay_output_layout): remove frame_really_changed, use
14871         optimize_output instead.
14872
14873         * redisplay-msw.c (mswindows_output_display_block): reset
14874         optimize_output after outputting a glyph.
14875         * redisplay-x.c (x_output_display_block): ditto.
14876         * redisplay-tty.c (tty_output_display_block): ditto.
14877
14878         * gutter.c: (specifier_vars_of_gutter): use new spec changed
14879         functions.
14880         (gutter_specs_changed): do specific gutter positions.
14881         (top_gutter_specs_changed): new function. Only update the
14882         specified gutter specs.
14883         (bottom_gutter_specs_changed): ditto.
14884         (left_gutter_specs_changed): ditto.
14885         (right_gutter_specs_changed): ditto.
14886
14887         * gui.c (gui_item_hash_internal): new function, does a real hash.
14888         (gui_item_id_hash): use it.
14889         (gui_item_hash): hash the eval'ed gui_item.
14890
14891         * gui-x.c (popup_selection_callback): send an eval event to call
14892         Fupdate_widget_instances.
14893
14894         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
14895         to call Fupdate_widget_instances.
14896
14897         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
14898         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
14899
14900         * glyphs.c: (update_frame_subwindows): deleted.
14901         (Fupdate_widget_instances): new function for updating the dirty
14902         state of widgets that might have changed.
14903         (syms_of_glyphs): add Qupdate_widget_instances.
14904         (full_list_hash): hash a list completely.
14905         (image_instance_hash): use it for items and properties.
14906
14907         * frame-msw.c (mswindows_size_frame_internal): remove unused
14908         variable.
14909
14910         * faces.h (struct face_cachel): fix comment.
14911
14912         * event-stream.c (Fdispatch_non_command_events): new
14913         function. Process non-command events, forcing an event cycle
14914         beforehand.
14915         (syms_of_event_stream): declare.
14916         (event_stream_force_event_pending): new function. Force an event
14917         on the native event queue so that an event cycle will occur next
14918         time we check.
14919
14920         * event-msw.c:
14921         (struct ntpipe_shove_stream):
14922         (mswindows_enqueue_dispatch_event):
14923         (mswindows_dequeue_dispatch_event):
14924         (mswindows_cancel_dispatch_event):
14925         (mswindows_pump_outstanding_events):
14926         (mswindows_drain_windows_queue):
14927         (mswindows_handle_paint):
14928         (mswindows_wnd_proc):
14929         (mswindows_key_to_emacs_keysym):
14930         (get_process_input_waitable):
14931         (emacs_mswindows_delete_stream_pair): re-indent file.
14932         (mswindows_need_event): do not process further fds if the windows
14933         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
14934         fixes the 100% cpu problem.
14935         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
14936
14937 2000-03-15  Olivier Galibert  <galibert@pobox.com>
14938
14939         * alloc.h: New.
14940         * dumper.h: New.
14941         * dumper.c: New.
14942
14943         * emacs.c: Moved dump file searching to dumper.c.
14944         (Frunning_temacs_p): Fixed.
14945
14946         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
14947         last_lrecord_type_index_assigned.
14948
14949 2000-02-20  Olivier Galibert  <galibert@pobox.com>
14950
14951         * symsinit.h: Added reinit parameter to init_console_stream
14952         declaration.
14953
14954         * lisp.h: Added file parameter to pdump_load declaration.
14955
14956         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
14957         support.  Added dump file searching.
14958
14959         * config.h.in: Added EMACS_PROGNAME.
14960
14961         * console-stream.c (init_console_stream): Fix reinitialisation
14962         when running from temacs.
14963
14964         * alloc.c (pdump): Add id support.
14965         (pdump_load): Add file parameter and signature/id support.
14966
14967         * Makefile.in.in: Add full pdump support.
14968
14969 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
14970
14971         * postgresql.c: Update documentation to reflect latest code
14972         status.
14973         (print_result): Show tuple counts in printed representation when
14974         appropriate.
14975         (Fpq_put_nbytes): MULE-ize.
14976         (Fpq_get_line_async): Ditto.
14977
14978 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14979
14980         * postgresql.c (Fpq_lo_import): Fix return value.
14981         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
14982
14983 2000-03-13  Ben Wing  <ben@xemacs.org>
14984
14985         * alloc.c (pdump_load):
14986         Fix compile warning under mswin.
14987
14988 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14989
14990         * postgresql.c: Mule-ization, bug fixes.
14991         Use PG_CODING to encapsulate coding system name changes.
14992         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
14993         (pg-coding-system): Create.
14994
14995         (Fpq_conn_defaults): Mule-ize.
14996         (Fpq_connectdb): Mule-ize & bug fix.
14997         (Fpq_connect_start): Mule-ize.
14998         (Fpq_set_client_encoding): Mule-ize.
14999         (Fpq_finish): Document `DEAD' connection status.
15000         (Fpq_clear): Ditto.
15001         (Fpq_pgconn): Mule-ize.
15002         (Fpq_exec): Mule-ize & bug fix.
15003         (Fpq_send_query): Ditto.
15004         (Fpq_get_result): Ditto.
15005         (Fpq_res_status): Mule-ize.
15006         (Fpq_result_error_message): Mule-ize.
15007         (Fpq_ntuples): fix comments.
15008         (Fpq_fname): Mule-ize.
15009         (Fpq_fnumber): Mule-ize.
15010         (Fpq_ftype): fix comments.
15011         (Fpq_get_value): Mule-ize.
15012         (Fpq_cmd_status): Ditto.
15013         (Fpq_cmd_tuples): Ditto.
15014         (Fpq_oid_value): Ditto.
15015         (Fpq_notifies): Ditto.
15016         (Fpq_lo_import): Ditto.
15017         (Fpq_lo_export): Ditto.
15018         (Fpq_get_line): Ditto.
15019         (Fpq_put_line): Mule-ize and bug fix.
15020         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15021
15022 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15023
15024         * postgresql.c (vars_of_postgresql): Mule-ize.
15025         (Fpq_conn_defaults): Ditto.
15026
15027 2000-03-12  Ben Wing  <ben@xemacs.org>
15028
15029         * alloc.c (Fmake_byte_code):
15030         * alloc.c (debug_string_purity_print):
15031         * alloc.c (pdump_backtrace):
15032         * alloc.c (pdump_get_indirect_count):
15033         * alloc.c (pdump_register_sub):
15034         * alloc.c (pdump_register_object):
15035         * alloc.c (pdump_register_struct):
15036         * alloc.c (pdump_dump_data):
15037         * alloc.c (pdump_reloc_one):
15038         Minor cleanups.
15039
15040         * console-msw.c:
15041         * console-msw.c (GetConsoleHwnd):
15042         * console-msw.c (msw_hide_console):
15043         * console-msw.c (msw_show_console):
15044         * console-msw.c (msw_ensure_console_buffered):
15045         * console-msw.c (msw_output_console_string):
15046         * console-msw.c (console_type_create_mswindows):
15047
15048         a) Added functions to manipulate the console window for use with
15049         shell support.
15050
15051         b) Added support for writing text to the console, which is now
15052         used under Windows when xemacs is not being run non-interactively,
15053         to write text that would otherwise be destined for stdout because
15054         under these circumstances, text written to stdout tends to
15055         disappear and not be seen.
15056
15057         * console-msw.h:
15058         * event-Xt.c:
15059         * event-Xt.c (x_event_to_emacs_event):
15060         * event-Xt.c (describe_event_window):
15061         * events-mod.h (XEMACS_MOD_CONTROL):
15062         * events.c:
15063         * events.c (Fmake_event):
15064         * events.c (character_to_event):
15065         * events.c (event_to_character):
15066         * events.c (format_event_object):
15067         * events.c (Fevent_modifiers):
15068         * events.h:
15069         * events.h (struct key_data):
15070         * events.h (struct button_data):
15071         * events.h (struct misc_user_data):
15072         * frame-x.c (Fcde_start_drag_internal):
15073         * frame-x.c (Foffix_start_drag_internal):
15074         * gpmevent.c (Freceive_gpm_event):
15075         * keymap.c:
15076         * keymap.c (bucky_sym_to_bucky_bit):
15077         * keymap.c (control_meta_superify):
15078         * keymap.c (make_key_description):
15079         * keymap.c (keymap_lookup_directly):
15080         * keymap.c (create_bucky_submap):
15081         * keymap.c (keymap_store):
15082         * keymap.c (define_key_check_and_coerce_keysym):
15083         * keymap.c (define_key_parser):
15084         * keymap.c (define_key_alternate_name):
15085         * keymap.c (Fdefine_key):
15086         * keymap.c (raw_lookup_key_mapper):
15087         * keymap.c (struct map_keymap_unsorted_closure):
15088         * keymap.c (map_keymap_unsorted_mapper):
15089         * keymap.c (map_keymap_sort_predicate):
15090         * keymap.c (map_keymap_sorted):
15091         * keymap.c (accessible_keymaps_mapper_1):
15092         * keymap.c (where_is_recursive_mapper):
15093         * keymap.c (describe_map_mapper):
15094         * keymap.c (describe_map_sort_predicate):
15095         * keymap.c (describe_map):
15096         * keymap.c (complex_vars_of_keymap):
15097         And a number of other files, the key modifier preprocessor
15098         constants that xemacs uses have names that conflict with constants
15099         defined under MS Windows for other purposes, so they were renamed
15100         to begin with the prefix XEMACS_. The variables that hold such
15101         modifiers were changed to consistently be of type int to fix
15102         various compile warnings.
15103
15104         * console.c (complex_vars_of_console):
15105         * device.c:
15106         * device-msw.c:
15107         * device-msw.c (mswindows_finish_init_device):
15108         * device-msw.c (msw_get_workspace_coords):
15109         * device-msw.c (mswindows_device_system_metrics):
15110         and various other files, added support for a new
15111         device property called offset-workspace which returns the position
15112         of the upper left corner of the workspace area and goes along with
15113         the existing size-workspace property.
15114
15115         * dialog-msw.c:
15116         * dialog-msw.c (push_bufbyte_string_as_unicode):
15117         * dialog-msw.c (mswindows_popup_dialog_box):
15118         Added support for XEmacs-style accelerator specifications in
15119         button text.  Note: I didn't add support for this under X Windows,
15120         and somebody needs to do this.
15121
15122         * dialog.c:
15123         * dialog.c (Fpopup_dialog_box):
15124         Documented the support for accelerators that was just mentioned.
15125
15126         editfns.c (get_home_directory): Changed behavior under Windows
15127         when HOME not defined; former behavior was irretrievably broken.
15128
15129         * emacs.c:
15130         * emacs.c (main_1):
15131         * emacs.c (main):
15132         * minibuf.c (clear_echo_area_internal):
15133         * minibuf.c (echo_area_append):
15134         * print.c:
15135         * print.c (std_handle_out_external):
15136         * print.c (std_handle_out_va):
15137         * print.c (fatal):
15138         * print.c (write_string_to_stdio_stream):
15139         * print.c (output_string):
15140         * print.c (debug_print):
15141         * print.c (debug_backtrace):
15142         * print.c (debug_short_backtrace):
15143         Cleaned up the code that prints text to stdout so that this can be
15144         changed to output into a console window instead under MS Windows,
15145         as described above.
15146
15147         * eval.c:
15148         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15149         * eval.c (internal_catch):
15150         * eval.c (unwind_to_catch):
15151         * eval.c (throw_or_bomb_out):
15152         * eval.c (condition_case_1):
15153         * eval.c (signal_1):
15154         * eval.c (check_error_state_sanity):
15155         * eval.c (call_with_suspended_errors_1):
15156         * eval.c (call_with_suspended_errors):
15157         * eval.c (reinit_vars_of_eval):
15158         Added code to catch throw loops and check for a pesky bug that may
15159         be gone now.
15160
15161         * event-msw.c:
15162         * event-msw.c (key_needs_default_processing_p):
15163         * event-msw.c (mswindows_wnd_proc):
15164         * event-msw.c (mswindows_modifier_state):
15165         * event-msw.c (emacs_mswindows_quit_p):
15166         * event-msw.c (vars_of_event_mswindows):
15167         a) Added support for using the alt key to select menu items as is
15168         standard under MS Windows.  This is controlled using the variable
15169         menu-accelerator-enabled, just like under X Windows.  There is an
15170         option on the options menu to turn this support on.  I really
15171         think that it should be on by default under Windows, but I'm not
15172         going to make this change yet.
15173
15174         b)  Added support for dynamic display size changes under Windows.
15175
15176         * event-stream.c:
15177         * event-stream.c (maybe_echo_keys):
15178         * event-stream.c (Fnext_event):
15179         * event-stream.c (command_builder_find_leaf):
15180         * event-stream.c (lookup_command_event):
15181         * event-stream.c (execute_command_event):
15182         * event-stream.c (pre_command_hook):
15183         * event-stream.c (post_command_hook):
15184         * event-stream.c (syms_of_event_stream):
15185         * event-stream.c (vars_of_event_stream):
15186         * event-stream.c (complex_vars_of_event_stream):
15187         * events.h (struct command_builder):
15188
15189         a) Tried to clean up a little bit the horribly written x-specific
15190         accelerator code that crept into this file.  I moved this code
15191         into menubar-x.c where it belongs. I also needed to move the
15192         command builder structure into the file events.h because it is
15193         accessed directly by this accelerator code.  What I didn't do, but
15194         which should be done at some point, is to properly abstract this
15195         code using device methods instead of the kludgy way that it
15196         currently hooks into the event code.
15197
15198         b) Added the lisp variables this-command-properties and
15199         last-command- properties, which should be used to synchronize two
15200         adjacent commands in preference to playing games with the variable
15201         this-command, which is typically what happens.
15202
15203         c) Added some slightly nasty code to hook into the lisp support
15204         for shifted- motion-key selection.  This is actually necessary for
15205         somewhat complicated reasons, which are described in
15206         simple.el. (NB: I think the proper thing would be to have the code
15207         that calls the pre and post command hooks also call out to generic
15208         lisp functions in simple.el, where all built-in stuff could be
15209         added.  I will think about this more.)
15210
15211         * event-unixoid.c (poll_fds_for_input):
15212         * lread.c (readchar):
15213         * redisplay-tty.c (tty_clear_frame):
15214         * redisplay-x.c (x_get_gc):
15215         * signal.c (interrupt_signal):
15216         And a whole bunch of other files: fixed up places that printed
15217         directly to stderr to instead call the function stderr_out so that
15218         the changes I made under Windows work correctly.
15219
15220         * filemode.c (mode_string):
15221         Warning fixes.
15222
15223         * frame-msw.c:
15224         * frame-msw.c (mswindows_size_frame_internal):
15225         Fixed the computation of frame size and position to keep the frame
15226         within the workspace area, rather than within the physical
15227         dimensions of the screen, so that the frame doesn't overlap window
15228         manager decorations, such as the start menu and toolbar, typically
15229         at the bottom of the screen.
15230
15231         * frame.c (vars_of_frame):
15232         Changed the default frame title format under MS Windows to consist
15233         of buffername-XEmacs, which is standard under MS Windows.  I think
15234         it might be a good idea to change this everywhere because I think
15235         it is superior to the current frame title format, but this is the
15236         kind of change that is likely to cause some people to get annoyed,
15237         so I'm not making it.
15238
15239         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15240
15241         * gui-msw.c (mswindows_handle_gui_wm_command):
15242         Fixed compile warnings.
15243
15244         * gui-x.c:
15245         * gui-x.c (strdup_and_add_accel):
15246         * gui-x.c (button_item_to_widget_value):
15247         * gui-x.h:
15248         Added code to automatically put an accelerator onto the beginning
15249         of menu items that don't have one as is now the standard, and is
15250         described more later.  Also fixed things so that the menu item
15251         name can be an evaluated expression, again a new standard.
15252
15253         * gui.c:
15254         * gui.c (gui_item_add_keyval_pair):
15255         * gui.c (make_gui_item_from_keywords_internal):
15256         * gui.c (gui_add_item_keywords_to_plist):
15257         * gui.c (gui_item_accelerator):
15258         * gui.c (gui_name_accelerator):
15259         * gui.c (gui_item_included_p):
15260         * gui.c (gui_item_display_flush_left):
15261         * gui.c (gui_item_display_flush_right):
15262         * gui.c (parse_gui_item_tree_item):
15263         * gui.c (parse_gui_item_tree_children):
15264         * gui.c (parse_gui_item_tree_list):
15265         Mule-ized.  Cleanup.  GCPRO addition.
15266
15267         * line-number.c (buffer_line_number):
15268         * lisp.h:
15269         * lisp.h (EMACS_INT_MAX):
15270         Added the manifest constant EMACS_INT_MIN corresponding to the
15271         existing constant EMACS_INT_MAX.  This is partially to fix compile
15272         warnings under Windows, and partly for cleanliness.
15273
15274         * menubar-msw.c:
15275         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15276         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15277         * menubar-msw.c (displayable_menu_item):
15278         * menubar-msw.c (populate_menu_add_item):
15279         * menubar-msw.c (populate_or_checksum_helper):
15280         * menubar-msw.c (populate_menu):
15281         * menubar-msw.c (update_frame_menubar_maybe):
15282         * menubar-msw.c (prune_menubar):
15283         * menubar-msw.c (msw_char_is_accelerator):
15284         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15285         * menubar-msw.c (mswindows_handle_wm_command):
15286         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15287         * menubar-msw.c (mswindows_handle_wm_initmenu):
15288         * menubar-msw.c (mswindows_update_frame_menubars):
15289         * menubar-msw.c (mswindows_free_frame_menubars):
15290         * menubar-msw.c (mswindows_popup_menu):
15291         Fixed a bug in handling accelerators where an extra character
15292         would be displayed in the menu item.  Also generalized the
15293         function displayable_menu_item because it is now used by the
15294         dialog box code as well.  And finally, added code in the functions
15295         that create the menubar to extract a list of accelerators for the
15296         top level menubar, which is used in the event code to determine
15297         whether a particular alt-key combination should be used to invoke
15298         a menu item, or should be passed through to access the standard
15299         XEmacs keymap binding for this key combination.
15300
15301         Much needed GCPROing.
15302
15303         * menubar-x.c:
15304         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15305         * menubar-x.c (menu_item_descriptor_to_widget_value):
15306         * menubar-x.c (restore_in_menu_callback):
15307         * menubar-x.c (x_popup_menu):
15308         * menubar-x.c (menu_move_up):
15309         * menubar-x.c (menu_move_down):
15310         * menubar-x.c (menu_move_left):
15311         * menubar-x.c (menu_move_right):
15312         * menubar-x.c (menu_select_item):
15313         * menubar-x.c (command_builder_operate_menu_accelerator):
15314         * menubar-x.c (menu_accelerator_junk_on_error):
15315         * menubar-x.c (command_builder_find_menu_accelerator):
15316         * menubar-x.c (Faccelerate_menu):
15317         * menubar.h:
15318         Moved a whole bunch of code here that was previously in
15319         event-stream.c as described above.  There is also code connected
15320         to the new standard of adding an accelerator to the beginning of
15321         menu items that don't have one as described above and below.
15322
15323         * menubar.c:
15324         * menubar.c (menu_parse_submenu_keywords):
15325         * menubar.c (Fmenu_find_real_submenu):
15326         * menubar.c (Fnormalize_menu_item_name):
15327         * menubar.c (syms_of_menubar):
15328         * menubar.c (vars_of_menubar):
15329         * menubar.c (complex_vars_of_menubar):
15330
15331         a) Cleaned up a bunch of documentation and improved it.
15332
15333         b) XEmacs now automatically adds an accelerator onto the beginning
15334         of any menu items that don't have one.  I did this because there
15335         will inevitably be some menu items on the main menubar that don't
15336         have accelerators on them because the package that adds that
15337         particular menu item hasn't yet been fixed up to have accelerators
15338         in them and it looked rather strange to have some items with and
15339         some items without accelerators, especially since even in items
15340         without accelerators, you can, at least under windows, still
15341         access the item through an accelerator corresponding to the first
15342         character in the item's name.  If people don't like this behavior,
15343         I can add a variable to turn it off optionally, but I'm not sure
15344         this is a good idea because we really do need to have accelerators
15345         on all of the menu items, and if a package doesn't like the
15346         accelerators being put on the first character, then it should put
15347         the accelerators where they belong.
15348
15349         c) I made a behavior change, which is that the descriptor that
15350         specifies the text of the menu item, which formerly was just a
15351         string, can now also be an evaluated expression.  This makes this
15352         descriptor parallel with all of the others, which could also be
15353         evaluated expressions.  This also obviates the need for the
15354         keyword :label, which was previously listed in the documentation
15355         as unimplemented, and which was for the same purpose.
15356
15357         d) GCPROing.
15358
15359         * ntproc.c:
15360         * ntproc.c (new_child):
15361         * ntproc.c (sys_spawnve):
15362         * ntproc.c (find_child_console):
15363         * ntproc.c (sys_kill):
15364         Fixed compile warnings.  By the way, this file should really go
15365         away entirely, and this will happen as soon as Kirill makes his
15366         final round of process cleanups, which affect the function
15367         call-process.
15368
15369         * process-nt.c:
15370         * process-nt.c (struct nt_process_data):
15371         * process-nt.c (find_process_from_pid):
15372         * process-nt.c (send_signal_the_nt_way):
15373         * process-nt.c (enable_child_signals):
15374         * process-nt.c (find_child_console):
15375         * process-nt.c (send_signal_the_95_way):
15376         * process-nt.c (nt_finalize_process_data):
15377         * process-nt.c (ensure_console_window_exists):
15378         * process-nt.c (nt_create_process):
15379         * process-nt.c (nt_kill_child_process):
15380         * process-nt.c (nt_kill_process_by_pid):
15381         * process-nt.c (nt_open_network_stream):
15382         * process-nt.c (vars_of_process_nt):
15383         Copied over code from Emacs 20.5 to correctly send signals to sub-
15384         processes under Windows 95.  Also added code to automatically
15385         create and hide console window when a sub-process is created under
15386         Windows 95, which obviates the need for the separate runemacs.exe
15387         executable, and finally implemented some variables that were
15388         implemented in Emacs 20.5, but previously not in XEmacs.  These
15389         include mswindows- start-process-share-console and
15390         mswindows-start-process-inherit-error-mode. (Both of these only
15391         apply to Windows 95.)
15392
15393         * regex.c (regex_compile): Fixed a compile warning.
15394
15395         * select-msw.c:
15396         * select-msw.c (mswindows_own_selection):
15397         * select-msw.c (mswindows_get_foreign_selection):
15398         * select-msw.c (mswindows_disown_selection):
15399         * select-msw.c (console_type_create_select_mswindows):
15400         * select-msw.c (syms_of_select_mswindows):
15401         Cleaned up the file and implemented the device method
15402         selection_exists_p, which had accidentally been left out.  Also
15403         removed four lisp functions that were remnants from before the
15404         time when the selection code was properly device abstracted.
15405         These functions are no longer needed because there are generic
15406         equivalents, and because they were added recently and don't exist
15407         in FSF Emacs, I don't think there's any problem with just deleting
15408         them.
15409
15410         * sysdep.c:
15411         * sysdep.c (sys_subshell):
15412         Fixed a compile warning, although in this case there's probably
15413         something wrong with this code, and it ought to be looked into
15414         more thoroughly by somebody who understands it.
15415
15416         * window.c:
15417         * window.c (Fwindow_text_area_height):
15418         * window.c (Fwindow_width):
15419         * window.c (Fwindow_full_width):
15420         * window.c (Fwindow_pixel_width):
15421         * window.c (debug_print_window):
15422         * window.c (syms_of_window):
15423         Added functions window-text-area-height and window-full-width,
15424         which are functions for returning various width and height
15425         characteristics of a window. (One of these functions is necessary
15426         for making the file dialog box work correctly, and the other one
15427         was added for completeness.)  Also added a table to the
15428         documentation for window-height which describes the entire scheme
15429         for accessing width and height characteristics of a window.
15430
15431 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15432
15433         * nt.c (fstat): Added a comment for another problem with
15434         non-encapsulated [f]stat(), reported by Adrian Aichner
15435         <aichner@ecf.teradyne.com>.
15436
15437 2000-03-11  Andy Piper  <andy@xemacs.org>
15438
15439         * window.c (make_dummy_parent): initialize subwindow instance
15440         cache.
15441         (Fset_window_configuration): zero extent_modiff.
15442
15443 2000-03-10  Andy Piper  <andy@xemacs.org>
15444
15445         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15446         more changes can be triggered.
15447         (Fredisplay_frame): ditto.
15448         (Fredraw_device): ditto.
15449         (Fredisplay_device): ditto.
15450         (redisplay_frame): make non-static.
15451         (redisplay_frame): call update_frame_gutter_geometry outside of
15452         display proper.
15453
15454         * gutter.h: declare update_frame_gutter_geometry.
15455
15456         * redisplay.h: declare redisplay_frame.
15457
15458         * gutter.c (update_frame_gutter_geometry): move geometry changes
15459         in update_frame_gutters here. Geometry changes can only occur
15460         outside of redisplay.
15461         (update_frame_gutters): remove geometry change code.
15462         (Fredisplay_gutter_area): make sure that we are in display when we
15463         update and that we have flushed any size changes.
15464
15465 2000-03-11  Andy Piper  <andy@xemacs.org>
15466
15467         * alloc.c (pdump_dump_data): remove i & count shadows.
15468
15469 2000-02-27  Mike Alexander  <mta@arbortext.com>
15470
15471         * sysdep.h: Declare pdump_read_file
15472
15473         * sysdep.c (pdump_read_file): New function
15474
15475         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15476         dump data
15477
15478 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15479
15480         * lrecord.h: add `lrecord_type_pgsetenv'.
15481
15482 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15483
15484         * symsinit.h: declare (vars|syms)_of* functions.
15485         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15486
15487 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15488
15489         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15490
15491         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15492         GCCs.
15493
15494         * emacs.c (main_1): Call postgres initialization code.
15495
15496         * postgresql.h: New file.  PostgreSQL RDBMS support.
15497         * postgresql.c: New file.
15498
15499 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15500
15501         * redisplay-output.c (redisplay_output_display_block): Disable
15502         redundant code.
15503
15504 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15505
15506         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15507         (Fcanna_henkan_next): Ditto.
15508         (Fcanna_bunsetu_henkou): Ditto.
15509         (Fcanna_henkan_kakutei): Ditto.
15510         (Fcanna_henkan_end): Ditto.
15511         (Fcanna_henkan_quit): Ditto.
15512         (Fcanna_henkan_next): Set retun value correctly.
15513         (c2mu): Use unsigned char instead of signed char.
15514
15515 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15516
15517         * emacs.c (main_1): Always call syms_of_gui.
15518         * inline.c: include gui.h
15519
15520 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15521
15522         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15523         converted to Lisp_Object.
15524         (Qtop_bottom): New variable.
15525         (syms_of_redisplay): Initialize it.
15526         * redisplay.h (Vvisible_bell): Ditto.
15527         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15528         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15529         only flash top and bottom.
15530
15531 2000-03-08  Andy Piper  <andy@xemacs.org>
15532
15533         * buffer.c (Frename_buffer): record new buffer name the right way.
15534
15535 2000-03-08  Andy Piper  <andy@xemacs.org>
15536
15537         * glyphs.c (update_subwindow): increase hash depth so that widget
15538         items get picked up properly.
15539
15540         * redisplay-output.c (compare_runes): increase hash depth so that
15541         widget items get picked up properly.
15542
15543 2000-03-08  Andy Piper  <andy@xemacs.org>
15544
15545         * gutter.c (output_gutter): add some debug.
15546
15547         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15548         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15549         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15550
15551         * redisplay-output.c (compare_runes): use display_hash to
15552         determine if glyphs really are not the same.
15553
15554         * glyphs.c (update_subwindow): check display_hash to see if
15555         anything really needs to be updated. If not then do
15556         nothing. Record the display_hash after updating.
15557         (image_instance_equal): compare the image_instance face also.
15558
15559 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15560
15561         * redisplay.h: Fix comment style.
15562
15563 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15564
15565         * consle-msw.h (struct mswindows_frame):
15566         Added new member paint_pending to indicate whether a WM_PAINT
15567         magic event has been queued for this frame.
15568
15569         * event-msw.c (mswindows_drain_windows_queue):
15570         Don't queue a WM_PAINT magic event if one is already queued.
15571         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15572
15573         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15574
15575 2000-03-07  Didier Verna  <didier@xemacs.org>
15576
15577         * dired.c: #include `regex.h' after `sysfile.h'.
15578
15579 2000-03-06  Martin Buchholz  <martin@xemacs.org>
15580
15581         * sound.c (init_nas_sound): Fix compiler warning.
15582
15583         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
15584         (FREE_STRUCT_P):
15585         (MARK_STRUCT_AS_FREE):
15586         (MARK_STRUCT_AS_NOT_FREE):
15587         Make `gcc -fstrict-aliasing' work properly.
15588
15589 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15590
15591         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
15592         (mswindows_delete_device): Call CoUnnitialize().
15593
15594         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
15595
15596 2000-02-25    <CraigL@DyCon.com>
15597
15598         * process-nt.c: MinGW now has <shellapi.h>, but still needs
15599         <errno.h>.
15600
15601         * sysdep.c: This extern declaration for environ prevents MinGW
15602         from finding the variable in CRTDLL.DLL.
15603
15604         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
15605         windows headers.
15606         (SHGFI_EXETYPE): ..
15607         (WM_MOUSEWHEEL): ..
15608         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
15609         definitions.
15610         (MMRESULT): Removed, now defined in cygwin's windows headers.
15611         (TIMECAPS): ..
15612         (uid_t,gid_t,pid_t,ssize_t): ..
15613         (_timeb): Removed, MinGW defines both _timeb and timeb.
15614         (HAVE_H_ERRNO): Added.
15615         (HAVE_TZNAME): Added, configure is not detecting this.
15616
15617 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
15618
15619         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
15620         * syntax.c (syntax_match): Use it.
15621
15622         * cmds.c: Import auto-fill-chars from FSF Emacs.
15623         (Vauto_fill_chars): New variables.
15624         (internal_self_insert): Check Vauto_fill_chars.
15625         (vars_of_cmds):
15626         Declare auto-fill-chars as a Lisp variable and initialize it.
15627
15628 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15629
15630         * fileio.c (Fmake_symbolic_link):
15631         (Ffile_symlink_p):
15632         Run handlers even if local machine doesn't have symlinks.
15633
15634 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15635
15636         * event-msw.c (mswindows_drain_windows_queue):
15637         Don't generate paint magic events for non-XEmacs frames.
15638
15639 2000-03-05  Andy Piper  <andy@xemacs.org>
15640
15641         * redisplay.c (redisplay_frame): generate_displayable_area and
15642         friends assumes that we are not in GC, we therefore have to make
15643         sure that this doesn't happen.
15644
15645         * gutter.c (calculate_gutter_size): generate_displayable_area
15646         assumes that we are not in GC, we therefore have to make sure that
15647         this doesn't happen.
15648
15649 2000-03-05  Martin Buchholz  <martin@xemacs.org>
15650
15651         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
15652
15653 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15654
15655         * redisplay.c (regenerate_window): Make sure we set a sane value
15656         for end_pos even if we jump out of the loop.
15657         (regenerate_window): Answer Ben's question :-).
15658         (start_end_of_last_line): Add may_error argument.
15659         (start_of_last_line):
15660         (end_of_last_line): Pass may_error = 0.
15661         (end_of_last_line_may_error): New function.
15662         (pixel_to_glyph_translation): Use it, so we don't crash in
15663         event_to_glyph.
15664
15665 2000-03-04  Andy Piper  <andy@xemacs.org>
15666
15667         * window.h (struct window): add gutter_extent_modiff.
15668
15669         * window.c (allocate_window): zero out gutter_extent_modiff.
15670
15671         * redisplay.h: declare sync_display_line_structs.
15672
15673         * redisplay.c (add_glyph_rune): add a better comment.
15674
15675         * redisplay-output.c (sync_display_line_structs): made non-static.
15676         (compare_runes): remove unneccesary glyph cachel access.
15677
15678         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
15679
15680         * gutter.c (output_gutter): don't output the gutter if extent
15681         changes only involve extents in buffers. use 4 sets of display
15682         lines.
15683         (gutter_extent_signal_changed_region_maybe): new function. Mark
15684         extents in gutters as changed.
15685         (update_frame_gutters): use 4 sets of display lines.
15686         (reset_gutter_display_lines): ditto.
15687         (free_frame_gutters): ditto.
15688         (redraw_exposed_gutter): force output of gutters.
15689
15690         * frame.h (struct frame): add 4 sets of gutter display lines.
15691
15692         * extents.c: (extent_changed_for_redisplay): signal changes to
15693         extents in strings in the gutter as well as extents in buffers.
15694
15695 2000-03-02  Andy Piper  <andy@xemacs.org>
15696
15697         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
15698
15699         * frame.c (Fmake_frame): make sure the gutters get initialized
15700         after the frame is visible.
15701         (set_frame_selected_window): re-arrange compilation macros a
15702         little.
15703         (change_frame_size_1): mark gutters changed.
15704
15705         * device.c (Fset_device_class): mark gutters changed.
15706
15707 2000-03-01  Andy Piper  <andy@xemacs.org>
15708
15709         * window.c (window_top_frame_gutter_height): deleted.
15710         (window_bottom_frame_gutter_height): ditto.
15711         (window_left_frame_gutter_height): ditto.
15712         (window_right_frame_gutter_height): ditto.
15713         (window_top_gutter_height): don't use them.
15714         (window_bottom_gutter_height): ditto.
15715         (window_left_gutter_width): ditto.
15716         (window_right_gutter_width): ditto.
15717         (Fsplit_window): ditto.
15718         (Fwindow_pixel_edges): don't use border dimensions here.
15719
15720         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
15721         (update_scrollbar_instance): ditto.
15722
15723         * redisplay.c (generate_modeline): don't take gutters into account.
15724         (generate_modeline): ditto.
15725         (redisplay_frame): small gutter display optimization.
15726
15727         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
15728
15729         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
15730         gutters into account.
15731
15732         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
15733         for window position and type.
15734
15735         * gutter.c (get_gutter_coords): fix for frame gutters.
15736         (update_frame_gutters): update frame geometry if the gutters have
15737         changed.
15738         (init_frame_gutters): record current gutter geometries.
15739
15740         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
15741         var.
15742         (mswindows_widget_instantiate): ditto.
15743
15744         * frame.h (struct frame): add current_gutter_bounds.
15745
15746         * frame.c (change_frame_size_1): position window and minibuffer
15747         appropriately taking into account the frame gutters.
15748
15749         * frame-x.c: (x_initialize_frame_size): take into account the
15750         frame gutters.
15751
15752 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15753
15754         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
15755
15756 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15757
15758         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
15759
15760 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15761
15762         * file-coding.c (reset_decoding_stream): Clear previous
15763         detection state when autodetect.
15764
15765 2000-02-29  Didier Verna  <didier@xemacs.org>
15766
15767         * extents.c (set_extent_glyph_1): don't require extents to be
15768         attached.
15769
15770 2000-02-27  Andy Piper  <andy@xemacs.org>
15771
15772         * gutter.c (Fset_default_gutter_position): don't default left and
15773         right gutter visibility to t.
15774         (Fset_default_gutter_position): run
15775         default-gutter-position-changed-hook.
15776         (syms_of_gutter): add default-gutter-position-changed-hook.
15777
15778 2000-02-26  Andy Piper  <andy@xemacs.org>
15779
15780         * specifier.c (Fmake_specifier): add gutter references.
15781
15782         * gutter.h (RAW_WINDOW_GUTTER): new macro.
15783
15784         * lisp.h: declare Fvalid_plist_p.
15785
15786         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
15787         as changed.
15788         (default_gutter_visible_p_changed_in_window): invalidate gutter as
15789         well as its visibility so that it gets reconstructed.
15790         (construct_window_gutter_spec): new function. Construct a string
15791         to be displayed in the gutter from a plist of strings. Take care
15792         to only use elements that are declared as visible.
15793         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
15794         WINDOW_GUTTER.
15795         (gutter_validate): allow plists of strings in the specifier.
15796         (gutter_specs_changed): construct the real_gutter from the gutter
15797         specs using construct_window_gutter_spec.
15798         (gutter_visible_validate): gutter-visible is a new specifier type.
15799         (Fgutter_visible_specifier_p): new function for the new specifier.
15800         (syms_of_gutter): declare gutter-visible and
15801         Fgutter_visible_specifier_p.
15802         (specifier_type_create_gutter): intitalize new gutter-visible
15803         specifier.
15804         (reinit_specifier_type_create_gutter): ditto.
15805         (specifier_vars_of_gutter): use new specifier type for gutter
15806         visibility.
15807         (init_frame_gutters): construct real_gutter correctly.
15808         (Fgutter_specifier_p): beef up documentation.
15809         (Fgutter_size_specifier_p): ditto.
15810
15811         * winslots.h: add real_gutter slots.
15812
15813 2000-02-25  Andy Piper  <andy@xemacs.org>
15814
15815         * device-msw.c: Be kind to older cygwin versions. From Raymond
15816         Toy <toy@rtp.ericsson.se>.
15817
15818         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
15819         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
15820
15821 2000-02-25  Martin Buchholz  <martin@xemacs.org>
15822
15823         * elhash.c (MARK_OBJ): Practice macro hygiene.
15824
15825 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15826
15827         * miscplay.c: s/__inline__/inline/g;
15828         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
15829         (get_device_compdc): INLINE ==> static inline
15830         * *.[ch]: Change INLINE to INLINE_HEADER globally.
15831         find -name '*.h' | \
15832         xargs global-replace \
15833         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
15834
15835 2000-02-25  Andy Piper  <andy@xemacs.org>
15836
15837         * window.c (window_top_frame_gutter_height): new function.
15838         (window_top_window_gutter_height): ditto.
15839         (window_top_gutter_height): use them.
15840         (window_bottom_frame_gutter_height): new function.
15841         (window_bottom_window_gutter_height): ditto.
15842         (window_bottom_gutter_height): use them.
15843         (window_left_window_gutter_width): new function.
15844         (window_left_frame_gutter_width): ditto.
15845         (window_left_gutter_width): use them.
15846         (window_right_window_gutter_width): new function.
15847         (window_right_frame_gutter_width): ditto.
15848         (window_right_gutter_width): use them.
15849         (window_pixel_height): new function. calulate window pixel height
15850         with frame gutter involvement.
15851         (Fsplit_window): calculate new sizes taking frame gutters into
15852         account.
15853         (window_char_height_to_pixel_height): don't include frame gutters.
15854         (window_char_height): use window_pixel_height.
15855         (window_pixheight): rename from window_pixel_height.
15856         (change_window_height): use it.
15857         (window_pixel_height_to_char_height): don't include frame gutters.
15858         (window_char_width_to_pixel_width): ditto.
15859
15860 2000-02-25  Andy Piper  <andy@xemacs.org>
15861
15862         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
15863         if it is.
15864
15865 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15866
15867         * alloc.c (staticpro):
15868         (staticpro_nodump):
15869         (dumpstruct):
15870         (dumpopaque):
15871         (pdump_wire):
15872         (pdump_wire_list):
15873         (compact_string_chars):
15874         (pdump_dump_wired):
15875         Convert:  if (foo) abort();  ==>  assert (! foo);
15876
15877         * eldap.c (Fldap_search_basic):
15878         (Fldap_add):
15879         (Fldap_modify):
15880         (Fldap_delete):
15881         Fix compiler warnings, and possible crashes if (random) return
15882         value were to be used.
15883
15884 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15885
15886         * device-msw.c: Workaround ResetDC failure.
15887
15888         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
15889         applying a devmode.
15890
15891         * redisplay-msw.c (get_frame_dc): Added start_page_p.
15892         (mswindows_text_width): Do not start printer page.
15893
15894         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
15895
15896         * glyphs-msw.c: Added image methods to msprinter console and
15897         msprinter-specific image instantiation.
15898
15899 2000-02-20  Mike Alexander  <mta@arbortext.com>
15900
15901         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
15902         to avoid crashes when selection-sets-clipboard is on
15903         (mswindows_own_selection): ditto
15904
15905 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15906
15907         * glyphs-msw.c:
15908         * redisplay-msw.c (get_frame_dc):
15909         (get_frame_compdc):
15910         * console-msw.h:
15911         * device-msw.c (mswindows_init_device):
15912         (mswindows_delete_device):
15913         (msprinter_init_device):
15914         (msprinter_delete_device):
15915         * frame-msw.c (mswindows_init_frame_1):
15916         (mswindows_delete_frame):
15917         (msprinter_init_frame_3):
15918         (msprinter_delete_frame): Move compatible DC to device object from
15919         frame object, for both mswindows and msprinter. Only one at a time
15920         is needed, it is a real waste to have one per frame!
15921
15922 2000-02-23  Andy Piper  <andy@xemacs.org>
15923
15924         * glyphs.c: add dynamic width and height elements.
15925         (image_instance_equal): ditto.
15926
15927         * glyphs-widget.c (widget_query_geometry): calculate width and
15928         height dynamically if required.
15929         (initialize_widget_image_instance): initialize dynamic dimensions.
15930         (widget_instantiate): pick-up dynamic dimensions.
15931
15932         * glyphs.h (struct Lisp_Image_Instance): add width and height for
15933         dynamic determination. Add appropriate macros.
15934
15935         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
15936         dimensions safe.
15937         (WINDOW_GUTTER_SIZE): ditto.
15938         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
15939
15940         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
15941         inline.
15942         (get_frame_dc): ditto.
15943
15944         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
15945         here.
15946
15947 2000-02-23  Martin Buchholz <martin@xemacs.org>
15948
15949         * XEmacs 21.2.31 is released.
15950
15951 2000-02-22  Ben Wing <ben@xemacs.org>
15952
15953         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
15954
15955 2000-02-22  Andy Piper  <andy@xemacs.org>
15956
15957         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
15958
15959 2000-02-21  Mike Sperber <mike@xemacs.org>
15960
15961         * .dbxrc:
15962         * .gdbinit:
15963         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
15964         variables.
15965
15966 2000-02-21  Mike Sperber <mike@xemacs.org>
15967
15968         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
15969
15970 2000-02-21  Martin Buchholz <martin@xemacs.org>
15971
15972         * XEmacs 21.2.30 is released.
15973
15974 2000-02-20  Martin Buchholz  <martin@xemacs.org>
15975
15976         Performance hacking.
15977         * *.c (syms_of_*):
15978         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
15979         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
15980         * emacs.c (main_1):
15981         * lisp.h (DEFUN):
15982         * console.c (DEFVAR_CONSOLE_LOCAL_1):
15983         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
15984         * symeval.h (DEFVAR_SYMVAL_FWD):
15985         * symbols.c (guts_of_unbound_marker):
15986         Make all c_readonly objects also lisp_readonly and marked for life.
15987         * lrecord.h (struct lrecord_implementation):
15988         Document flags better.
15989         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
15990         * lrecord.h (DECLARE_LRECORD):
15991         * lrecord.h (XSETRECORD):
15992         * lrecord.h (RECORDP):
15993         * lrecord.h (RECORD_TYPEP):
15994         * lrecord.h (RECORD_MARKER): New.
15995         * lrecord.h (error_check_*):
15996         * lrecord.h (CONCHECK_NONRECORD):
15997         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
15998         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
15999         * lrecord.h (set_lheader_implementation):
16000         * lrecord.h (enum lrecord_type): New.
16001         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16002         * alloc.c (disksave_object_finalization_1):
16003         * alloc.c (mark_object):
16004         * alloc.c (lrecord_type_index):
16005         * alloc.c (tick_lcrecord_stats):
16006         * alloc.c (Fgarbage_collect):
16007         * alloc.c (init_alloc_once_early):
16008         * alloc.c (pdump_load):
16009         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16010         * alloc.c (lrecord_type_index): Delete.
16011         Make lisp object type indexes be constant.
16012           Makes (byte-compile) 5% faster.
16013         Put all marker functions into their own array.
16014           Makes (garbage-collect) 5% faster.
16015         Optimize SYMBOL_VALUE_MAGIC_P.
16016           Makes (byte-compile) 2-3% faster.
16017         * config.h.in (gc_checking_assert): New.
16018         * alloc.c: Use gc_checking_assert().
16019         * .dbxrc: Make compatible with new object type implementation.
16020         * .gdbinit: Make compatible with new object type implementation.
16021         * alloc.c: Delete all symbols defined only for debugging, such as
16022         Lisp_Type_Vector and lrecord_charset.
16023
16024 2000-02-21  Andy Piper  <andy@xemacs.org>
16025
16026         * gui-msw.c (Fmswindows_shell_execute): fix file location
16027         problems.
16028
16029         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16030         unshowing so that set_window_buffer doesn't undo
16031         kill_buffer_hook's hard work.
16032
16033         * glyphs-widget.c (tab_control_query_geometry): don't count the
16034         first item when calculating geometry.
16035
16036         * glyphs.c (map_subwindow): remove redundant code.
16037         (update_frame_subwindows): be more circumspect about when to
16038         update subwindows.
16039
16040         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16041         when items haven't changed. Update faces if faces have changed as
16042         well as just the widget face.
16043         (x_tab_control_update): Update faces if faces have changed as well
16044         as just the widget face.
16045
16046 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16047
16048         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16049         registration.
16050         (build_syscolor_string): Use mswindows_color_to_string to try to
16051         get a named color.
16052         (mswindows_device_system_metrics): Reverse the foreground and
16053         background colors so that they match the documentation.
16054
16055         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16056         they match the default Windows palette.
16057         (mswindows_color_to_string): New function.
16058
16059 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16060
16061         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16062
16063 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16064
16065         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16066         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16067
16068         * symbols.c (init_symbols_once_early): Removed obsolete
16069         DATA_SEG_BITS related kludge.
16070         (defvar_magic): Ditto.
16071
16072         * malloc.c: Removed obsolete DATA_SEG_BITS
16073         * ralloc.c: Ditto.
16074         * mem-limits.h: Ditto.
16075
16076         * Makefile.in.in: Removed obsolete HAVE_SHM
16077         * emacs.c: Ditto.
16078
16079 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16080
16081         *  device-msw.c (mswindows_delete_device): Free DDE string
16082         handles.
16083
16084 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16085
16086         * keymap.c (get_keyelt):
16087         * unexnt.c (unexec):
16088         * vm-limit.c (memory_warnings):
16089         * ntheap.c (recreate_heap):
16090         * ntheap.h (UNINIT_PTR):
16091         * select-msw.c (Fmswindows_get_clipboard):
16092         (Fmswindows_set_clipboard):
16093         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16094         * objects-msw.c:
16095         * menubar-msw.c (displayable_menu_item):
16096         * glyphs-msw.c:
16097         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16098         * sysdep.c (sys_subshell):
16099         * process-nt.c (nt_create_process):
16100         * nt.c (normalize_filename):
16101         (dostounix_filename):
16102         (unixtodos_filename):
16103         * ntproc.c (win32_executable_type):
16104         * ntplay.c (play_sound_data_1):
16105         (play_sound_file):
16106         * editfns.c (get_home_directory):
16107         * event-msw.c (struct winsock_stream):
16108         (mswindows_dde_callback):
16109         * device-msw.c (msprinter_init_device):
16110         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16111
16112         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16113         mswindows_clear_toolbar were swapped!
16114
16115         * objects-msw.c:(colormap_t):
16116         (fontmap_t):
16117         * emacs.c (struct standard_args): Fixed const jumble.
16118
16119         * glyphs-widget.c (update_widget): Fixed comparison notation.
16120
16121         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16122
16123         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16124         __declspec(noreturn) syntax.
16125
16126 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16127
16128         * eldap.c (Fldap_open):
16129         (Fldap_search_basic):
16130         (Fldap_add):
16131         (Fldap_modify):
16132         Use new coding system conversion macros.
16133
16134 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16135
16136         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16137
16138 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16139
16140         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16141         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16142
16143         * eldap.c (Qadd, Qreplace): New constant symbols
16144         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16145         interruptions by XEmacs signals
16146         Remove unnecessary calls to slow_down_interrupts and
16147         speed_up_interrupts
16148         (Fldap_search_basic): Renamed from Fldap_search_internal
16149         Added new optional parameter VERBOSE that triggers the
16150         display of progress messages
16151         Remove unnecessary calls to slow_down_interrupts and
16152         speed_up_interrupts
16153         LDAP result code analysis rewritten
16154         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16155         (syms_of_eldap): Define the new symbols and functions
16156
16157
16158 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16159
16160         * realpath.c: Determine PATH_MAX maximally portably.
16161
16162         * insdel.c (bytecount_to_charcount): Optimize.
16163         The function used to be optimized for entirely ASCII sequences.
16164         Now it is optimized for successive characters from the same
16165         charset.  This also wins big for _mostly_ ASCII sequences.
16166
16167         * fileio.c (Ffile_truename): convert return from realpath() using
16168         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16169         - Rewrite GCPROing slightly.
16170
16171         * sysdep.c (sys_open): Do filename conversion, like all other
16172         sys_* functions.  Fixes bug:
16173         (let ((file-name-coding-system 'iso-8859-2))
16174            (write-region x y latin2-name))
16175         ==> writes filename using internal encoding.
16176
16177 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16178
16179         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16180         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16181         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16182         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16183         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16184         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16185         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16186         (CONST_IF_NOT_DEBUG): Delete.
16187         * alloc.c (this_one_is_unmarkable): Delete.
16188         (mark_object): Don't check for this_one_is_unmarkable. Use the
16189         c_readonly flag instead.
16190         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16191
16192 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16193
16194         * event-msw.c (mswindows_drain_windows_queue):
16195         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16196         away redundant repaint events.
16197
16198 2000-02-17  Andy Piper  <andy@xemacs.org>
16199
16200         * redisplay.h: declare mark_redisplay_structs.
16201
16202         * redisplay.c (redisplay_window):
16203         (redisplay_frame): don't check subwindows_state_changed.
16204         (mark_redisplay): mark gutters here.
16205
16206         * glyphs.c: (instantiate_image_instantiator): always layout if we
16207         haven't done so already.
16208         (allocate_image_instance): don't mark as dirty.
16209         (update_subwindow): bind inhibit_quit.
16210
16211         * gutter.c (mark_gutters): new function.
16212
16213         * glyphs-x.c (x_update_widget): Always resize to get round a
16214         widget bug.
16215
16216         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16217         breaking absolutely everything.
16218
16219         * gutter.h: declare mark_gutters.
16220
16221 2000-02-16  Martin Buchholz <martin@xemacs.org>
16222
16223         * XEmacs 21.2.29 is released.
16224
16225 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16226
16227         * fns.c (size_bit_vector): Fix computation of the size.
16228
16229 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16230
16231         * *.[ch]: Change CONST to const globally.
16232         find -name '*.[ch]' | \
16233         xargs global-replace \
16234         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16235         - Remove vestigial references to CONST_IS_LOSING
16236
16237 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16238
16239         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16240         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16241         events instead of dispatching them directly.
16242         (mswindows_handle_paint): New function to do repainting.
16243         (mswindows_wnd_proc):
16244         (emacs_mswindows_handle_magic_event): Call above function.
16245
16246 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16247
16248         * objects-msw.c (mswindows_create_font_variant): Return the new
16249         font handle.
16250         (initialize_font_instance): Get font metrics from the underlined
16251         variant of the font to cope with the case where the underlined
16252         font has a bigger descent.
16253
16254 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16255
16256         * gui.c (gui_item_accelerator): Return the first underlined
16257         character in item name.
16258
16259 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16260
16261         * lisp.h: Added Qprinter.
16262
16263         * general.c (syms_of_general): Initialized it.
16264
16265         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16266         (get_frame_dc):
16267         (get_frame_compdc): Made inline.
16268
16269         * console.h (struct console_methods): Added eject_page method.
16270
16271         * frame.h: Added FRAME_DISPLAY_P and friends.
16272         Aligned backslahes in many macros in more readable fashion.
16273         Added page_number to struct frame, and an accessor macro
16274         for it.
16275
16276         * defice.h: Added DEVICE_DISPLAY_P and friends.
16277
16278         * device.c (Fdevice_printer_p): Used these.
16279
16280         * frame.c (allocate_frame_core): Initialize page number.
16281         (Fprint_job_page_number):
16282         (Fprint_job_eject_page): Implemented.
16283
16284         * frame-msw.c (msprinter_eject_page): Added method.
16285         (msprinter_start_page): Added.
16286
16287         * window.c (Fwindow_truncated_p): Fixed docstring.
16288         (Fwindow_last_line_visible_height): Implemented.
16289
16290 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16291
16292         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16293
16294 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16295
16296         * syntax.c (scan_words): Always advance at least one character.
16297
16298 2000-02-13  Andy Piper  <andy@xemacs.org>
16299
16300         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16301         to make sure the glyph is in the cachels.
16302
16303         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16304         global image instance flag.
16305         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16306         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16307
16308         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16309         (Fset_image_instance_property): mark layout as changed.
16310         (invalidate_glyph_geometry_maybe): mark layout as changed.
16311         (glyph_width): use new NEEDS_LAYOUT macro.
16312         (glyph_ascent): ditto.
16313         (glyph_descent): ditto.
16314         (glyph_height): ditto.
16315         (image_instance_layout): mark layout as clean after laying out.
16316         (update_subwindow): don't mark layout as clean here.
16317
16318         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16319         should no longer be needed.
16320
16321         * glyphs-x.c (x_update_widget): sanitize asserts.
16322         (x_finalize_image_instance): sanitize assignment to widgets.
16323
16324         * glyphs-widget.c (widget_instantiate): don't need to clear the
16325         layout flag here.
16326
16327 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16328
16329         * sysdep.c (getcwd): Use standard prototype.
16330         * sysdep.h (getcwd): Use standard prototype.
16331
16332         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16333         (sequence, start, end).
16334         Remove redundant type checking.
16335         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16336         view of `caller-protects') to avoid a crash where the real fix was
16337         found elsewhere.
16338
16339 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16340
16341         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16342
16343         * s/sol2.h: Remove feature macro initialization.
16344
16345         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16346         (vector_hash): New.  Code from internal_hash.
16347         * lrecord.h:
16348         Fix up allocation subsystem comments.
16349
16350         * config.h.in: Add __EXTENSIONS__ for Solaris.
16351
16352         * systime.h (EMACS_GETTIMEOFDAY): New.
16353         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16354         Remove Solaris-specific code.
16355         Use void* for the (ignored) second arg for gettimeofday().
16356
16357         * elhash.c (hash_table_hash): Implement it, finally.
16358         * elhash.c:  Use hashcode_t.
16359
16360         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16361         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16362
16363         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16364         * fns.c (size_bit_vector):
16365         * alloc.c (size_vector):
16366         (make_vector_internal):
16367         (make_bit_vector_internal):
16368         (sweep_bit_vectors_1):
16369         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16370
16371 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16372
16373         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16374         Include strings.h to avoid warnings for bzero and strcasecmp.
16375
16376 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16377
16378         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16379         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16380
16381         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16382         sequence.
16383
16384 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16385
16386         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16387         use a value field instead.
16388         (symbol_value_forward_forward): Use value field.
16389         (DEFVAR_SYMVAL_FWD): Use value field.
16390         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16391         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16392         (DEFVAR_CONST_INT): Ditto.
16393         (DEFVAR_BOOL): Ditto.
16394         (DEFVAR_CONST_BOOL): Ditto.
16395         (DEFVAR_INT_MAGIC): Ditto.
16396         (DEFVAR_BOOL_MAGIC): Ditto.
16397
16398         * symbols.c (guts_of_unbound_marker): Use value field.
16399         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16400         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16401
16402         * lisp.h: Declare dumpopaque and noninteractive1.
16403
16404         * alloc.c (dumpopaque): Added.
16405         (pdump_dump_opaquevec): Added.
16406         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16407         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16408         noninteractive.
16409
16410 2000-02-10  Andy Piper  <andy@xemacs.org>
16411
16412         * glyphs.c (image_instance_layout): if the size changes, mark it
16413         as such.
16414
16415         * redisplay-output.c (redisplay_output_layout): Update the
16416         subwindow here.
16417         (redisplay_output_subwindow): ditto.
16418
16419         * glyphs.c (update_subwindow): make sure we reset flags for
16420         layouts as well as everything else.
16421
16422         * glyphs-widget.c (layout_layout): don't need to set the instances
16423         dimensions here.
16424
16425 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16426
16427         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16428         not HAVE_DLOPEN, which is a lower-level thing.
16429
16430         * .cvsignore: Ignore gmon.out
16431
16432 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16433
16434         * .cvsignore: Ignore portable dumper xemacs.dmp file
16435
16436 2000-02-09  Andy Piper  <andy@xemacs.org>
16437
16438         * redisplay-output.c (redisplay_output_layout): be more clever
16439         about when we output based on the changed flags.
16440
16441         * glyphs.h (struct image_instantiator_methods): add update_method.
16442         (struct Lisp_Image_Instance): add changed flags. Declare new
16443         macros for manipulating them.
16444
16445         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16446         (image_instance_parent_glyph): find an image_instance's parent
16447         glyph or image_instance.
16448         (image_instance_layout): mark the size as changed.
16449         (set_image_instance_dirty_p): new function. mark an image
16450         instance, plus all of its parents, as dirty.
16451         (Fset_image_instance_property): use it.
16452         (Fglyph_animated_timeout_handler): use it.
16453         (update_subwindow): call update_widget and device methods for
16454         update_subwindow. Mark all changed flags as clean.
16455         (Fresize_subwindow): mark size as changed.
16456
16457         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16458         failures.
16459         (x_update_subwindow): only resize subwindows here.
16460         (x_update_widget): new function. Update all changed properties of
16461         a widget.
16462         (x_resize_subwindow): deleted.
16463         (x_widget_set_property): deleted.
16464         (x_progress_gauge_set_property): deleted.
16465         (x_progress_gauge_update): new function. Implement recorded
16466         changes.
16467         (x_tab_control_update): ditto.
16468         (x_tab_control_set_property): deleted.
16469         (console_type_create_glyphs_x): declare new functions.
16470         (image_instantiator_format_create_glyphs_x): ditto.
16471
16472         * glyphs-widget.c (widget_set_property): mark text changed.
16473         (update_widget): new function. Update properties of a widget.
16474         (widget_instantiate): for layouts make sure we set their
16475         children's parent correctly.
16476         (tab_control_set_property): new function. Record changes that will
16477         take place under redisplay's control.
16478         (progress_gauge_set_property): ditto.
16479         (image_instantiator_progress_guage): declare new functions.
16480         (image_instantiator_tab_control): ditto.
16481
16482         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16483         now.
16484         (mswindows_update_widget): new function. Update all properties on
16485         a widget that have changed.
16486         (mswindows_button_update): new function. Update a button's set
16487         state.
16488         (mswindows_tab_control_update): new function. Update the items in
16489         a tab.
16490         (mswindows_tab_control_set_property): deleted.
16491         (mswindows_progress_gauge_update): new function. Update the
16492         progress gauge's progress.
16493         (mswindows_widget_set_property): deleted. This is all done
16494         asynchronously now.
16495         (mswindows_progress_gauge_set_property): ditto.
16496         (console_type_create_glyphs_mswindows): declare new methods.
16497         (image_instantiator_format_create_glyphs_mswindows): ditto.
16498
16499         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16500         (msprinter_set_frame_properties): ditto.
16501
16502         * console.h (struct console_methods): Add update_widget_method.
16503
16504 2000-02-09  Andy Piper  <andy@xemacs.org>
16505
16506         * gui-msw.c (Fmswindows_shell_execute): Make
16507         mswindows-shell-execute industrial strength.
16508
16509 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16510
16511         * lrecord.h: Make macro argument `props' match member function `plist'.
16512         * fns.c (Fget):
16513         * fns.c (Fput):
16514         * fns.c (Fremprop):
16515         * fns.c (Fobject_plist):
16516         * alloc.c:
16517         * symbols.c:
16518         Object property list frobbing cleanup.
16519         - Allow any lisp object (compared with `eq'), not just symbols, as
16520           keys in object plists.
16521         - Move symbol plist frobbing into symbols.c, where it belongs.
16522         - Move string plist frobbing into alloc.c, where it belongs.
16523         - Everything's an lrecord now, so no need to test for symbolp, etc.
16524         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16525
16526         * extents.c: Reorder code to remove declarations.
16527
16528         * frame.h (store_in_alist): Remove useless declaration.
16529
16530 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16531
16532         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16533         * config.h.in: Add HAVE_XCONVERTCASE.
16534
16535 2000-02-07  Andy Piper  <andy@xemacs.org>
16536
16537         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16538         it breaks many things.
16539
16540 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16541
16542         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16543         actually can start a common comment type.
16544         * src/syntax.h (SYNTAX_END_P): ditto for end.
16545
16546 2000-02-07  Martin Buchholz <martin@xemacs.org>
16547
16548         * XEmacs 21.2.28 is released.
16549
16550 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16551
16552         * event-Xt.c (x_keysym_to_character): New.
16553         (maybe_define_x_key_as_self_inserting_character): New.
16554         (x_has_keysym): New.
16555         Auto-define all keys on the keyboard as self-insert-key.
16556
16557 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16558
16559         * menubar.c (vars_of_menubar): A small code simplification.
16560
16561         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16562
16563         * ExternalShell.c:
16564         * ExternalClient.c:
16565         * EmacsShell-sub.c:
16566         * EmacsManager.c:
16567         * EmacsFrame.c:
16568         Use consistent style for specifying X resources.
16569
16570         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16571         This makes (dontusethis-set-symbol-value-handler) actually usable.
16572
16573         * lrecord.h (lrecord_decription_type):
16574         * alloc.c (pdump_register_sub):
16575         (pdump_dump_data):
16576         (pdump_reloc_one):
16577         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
16578         Comply with XEmacs coding style.
16579         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
16580         args, and XD_LISP_OBJECT_ARRAY with 3 args.
16581
16582         * keymap.c (Faccessible_keymaps):
16583         Make (accessible-keymaps map "\C-h") do the Right Thing.
16584         Make (accessible-keymaps map []) do the Right Thing.
16585         Make (accessible-keymaps map "") do the Right Thing.
16586         (check_keymap_definition_loop): New function.
16587         (keymap_store_internal): Keep luser from shooting self in foot,
16588           via (define-key ctl-x-4-map "p" global-map).
16589         Remove fullness slot from struct Lisp_Keymap, since hash tables
16590         are now reliable.
16591         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
16592
16593 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16594
16595         * redisplay.c (init_redisplay): Fix small memory leak.
16596         * elhash.h:
16597         * elhash.c (pdump_reorganize_hash_table):
16598         Rename from reorganize_hash_table. Change prototype.
16599         Reuse the original memory for hentries.  Save 100k.
16600         * alloc.c (PDUMP_READ): new macro.
16601         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
16602         * alloc.c: No need to #ifndef before #undef.
16603
16604         * print.c: Allow debug_print() to print readably by modifying
16605         debug_print_readably.  Use consistent variable names.
16606
16607         * .dbxrc: Try to get things to work even if stopped in a function
16608         without source available by explicitly specifying source files.
16609 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16610
16611         * unexnt.c (_start): Removed bogus code which caused loading heap
16612         from differrent executable file.
16613         Removed bogus assignment to _fmode, which caused inconsistencies.
16614
16615 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16616
16617         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
16618         Have spawnve encapsulation regard DONT_ENCAPSULATE.
16619         Do not preliminary `#define signal sigset'.
16620
16621         * systime.h: Do not prototype environ on windows nt and cygwin,
16622         this conflicts with system header.
16623
16624         * syssignal.h: Use correct define for WINDOWSNT
16625
16626         * sysdep.h: Do not prototype environ on windows nt, this conflicts
16627         with system header.
16628
16629         * sysdep.c (near start of file): Fixed commentary and rearranged
16630         ifdefs in readable order.
16631         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
16632         (start_of_text):
16633         (end_of_text):
16634         (end_of_data): Do not compile in if using PDUMP.
16635
16636         * symsinit.h: Prototyped vars_of_nt().
16637
16638         * ntproc.c (windows9x_p): Added, instead of os_subtype.
16639         (find_child_console): Use it.
16640         (sys_kill): Use it.
16641
16642         * ntheap.h: Do not extern os_subtype.
16643
16644         * ntheap.c (cache_system_info): Do not cache unneeded:
16645         nt_major_version, nt_minor_version and os_subtype.
16646         (recreate_heap): Do not compile in when PDUMPing.
16647
16648         * nt.c (geteuid and friends): Use the new varibale
16649         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
16650         (init_user_info): Removed the above mentioned hackery.
16651         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
16652         stat has been fixed in the C runtime.
16653         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
16654
16655         * file-coding.c (struct file_coding_dump): Do not define
16656         ucs_to_mule_table in the struct if not MULE.
16657         (struct struct lrecord_description fcd_description_1): Do not dump
16658         the above.
16659
16660         * emacs.c (main_1): Call vars_of_nt().
16661         (right before Fdump_emacs_data): Don't need lastfile if using both
16662         portabe dumper and system malloc.
16663
16664         * alloc.c (Fmemory_limit): Conditionalized out.
16665         (pdump): Use OPEN_BINARY for the portable dump file.
16666         (pdump_load): Ditto.
16667
16668 2000-02-02  Mike Alexander  <mta@arbortext.com>
16669
16670         * nt.c (convert_time): Set tm_isdst before calling mktime and
16671         avoid calling it at all if the compiler supports 64 bit integers.
16672         Also initialize utc_base_ft before using it.
16673
16674 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16675
16676         * frame.c (change_frame_size_1): Take f->internal_border_width
16677         into consideration when calculating the width of the frame.
16678
16679 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16680
16681         * window.c (frame_min_height):
16682         (frame_size_valid_p):
16683         (frame_pixsize_valid_p): Added.
16684         (check_frame_size): Generalized.
16685
16686         * window.h: Prototyped the above.
16687
16688         * lisp.h:
16689         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
16690         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
16691         Deleted Vwin32_* and Vbinary_process_* unused variables.
16692
16693         * device-msw.c (msprinter_init_device): Do not get printer font
16694         list; Added DEVMODE functions.
16695
16696         * frame-msw.c: Added lots of printer code.
16697
16698         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
16699         general.c.
16700
16701         * console-msw.h: Added more msprinter device private slots.
16702
16703 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16704
16705         * event-msw.c (key_needs_default_processing_p): Added.
16706         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
16707
16708 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16709
16710         * glyphs.c (image_instance_layout): Mark image instance as clean
16711         after layout.
16712         (glyph_dirty_p): Removed redundant function.
16713         (invalidate_glyph_geometry_maybe): Added.
16714         (update_glyph_cachel_data): Call it.
16715
16716         * glyphs.h: Prototyped it.
16717
16718         * redisplay.c (add_glyph_rune): Call it.
16719         (redisplay_window): Reset glyphs cachels when frame faces have
16720         changed, thus forcing recomputation of built-in border glyphs.
16721
16722 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16723
16724         * Makefile.in.in: Make portable dumper and purify play well together.
16725         Add imperfect, but better than nothing, support for pdump.
16726         Remove xemacs.dmp when temacs is re-generated.
16727         Don't ignore errors when dumping xemacs.
16728
16729         * symbols.c (maybe_call_magic_handler): Remove one magic number.
16730
16731 2000-01-28  Andy Piper  <andy@xemacs.org>
16732
16733         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
16734         (setup_normal_frame): ditto.
16735         (setup_frame_without_minibuffer): ditto.
16736         (setup_minibuffer_frame): ditto.
16737         (delete_frame_internal): ditto.
16738         (Fmake_frame_invisible): ditto.
16739         (Ficonify_frame): ditto.
16740
16741         * window.h: change Fset_window_buffer signature.
16742
16743         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
16744         (Fset_window_buffer): allow recording of buffer if the window is
16745         the selected window.
16746         (window_loop): Use new Fset_window signature.
16747
16748 2000-01-23  Daniel Pittman  <daniel@danann.net>
16749
16750         * config.h.in: Added template for `HAVE_ATHENA_3D'
16751
16752 2000-01-29  Andy Piper  <andy@xemacs.org>
16753
16754         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
16755
16756         * gutter.c (output_gutter): Don't output if the window isn't live.
16757
16758 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16759
16760         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
16761         of 01/12/00: Moved SetFocus back here where it belongs.
16762
16763 2000-01-23  Andy Piper  <andy@xemacs.org>
16764
16765         * s/cygwin32.h: declare printer things.
16766
16767 2000-01-26  Andy Piper  <andy@xemacs.org>
16768
16769         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
16770         Alexander.
16771
16772 2000-01-24  Andy Piper  <andy@xemacs.org>
16773
16774         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
16775         (mswindows_button_instantiate): Make sure glyph is a pixmap.
16776
16777         * glyphs-widget.c (widget_instantiate): Avoid shadows.
16778
16779         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
16780
16781         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
16782
16783         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
16784         (mswindows_output_display_block): Avoid local shadows.
16785
16786         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
16787         (mswindows_enqueue_mouse_button_event): ditto.
16788         (mswindows_handle_gui_wm_command): remove declaration.
16789
16790         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
16791         warnings.
16792
16793         * console-msw.h: Avoid shadows.
16794         (mswindows_get_toolbar_button_text):
16795         (emacs_mswindows_create_stream_pair):
16796         (emacs_mswindows_delete_stream_pair):
16797         (mswindows_handle_toolbar_wm_command): declare.
16798
16799         * device-msw.c (build_syscolor_string): Avoid shadows.
16800
16801 2000-01-23  Andy Piper  <andy@xemacs.org>
16802
16803         * glyphs-widget.c (widget_instantiate): reverse the items for
16804         layouts so that children are in the expected order.
16805
16806 2000-01-28  Martin Buchholz  <martin@xemacs.org>
16807
16808         * ralloc.c: safe_bcopy ==> memmove
16809         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
16810         * s/msdos.h: Remove BCOPY macros.
16811         * insdel.c (gap_right): Remove BCOPY conditional code.
16812         * insdel.c (gap_left): Remove BCOPY conditional code.
16813         XEmacs demands a working ANSI C compiler - hence memmove.
16814
16815         * regex.c (regex_compile): Remove accidental use of trigraphs.
16816
16817 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16818
16819         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
16820         event timestamp.
16821
16822 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16823
16824         * event-msw.c (mswindows_drain_windows_queue): Added the
16825         parameter.
16826         (mswindows_need_event): Commented the call to
16827         mswindows_drain_windows_queue().
16828         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
16829         only.
16830
16831         * console-msw.h: Moved a few function prototypes here from
16832         event-msw.c.
16833
16834         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
16835         parameter from unsigned short to unsigned long.
16836         (Fmswindows_shell_execute): Added return value.
16837
16838 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16839
16840         * sysdep.c (init_system_name):
16841           process-unix.c (unix_canonicalized_host_name):
16842         Don't call freeaddrinfo() if getaddrinfo() fails.
16843
16844         * process-unix.c (unix_open_unix_network_stream):
16845         Moved the code to get a port # into address loop.
16846
16847 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16848
16849         * buffer.c (reinit_vars_of_buffer):
16850         The right place to initialize conversion_in_dynarr and
16851         conversion_out_dynarr.
16852
16853         * alloc.c (pdump): Use the real open() till sys_open() is functional.
16854
16855         * process-unix.c (unix_canonicalize_host_name): Muleize.
16856         (unix_open_network_stream): Muleize.
16857
16858         * buffer.h: Fix up prototypes for ralloc.c functions.
16859
16860 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16861         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
16862         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
16863                 instead of gethostbyname()
16864         * process-unix.c: In unix_canonicalize_host_name() and
16865                 unix_open_network_stream(), add code to use getaddrinfo()
16866                 instead of gethostbyname().
16867
16868 2000-01-27  Daniel Pittman <daniel@danann.net>
16869
16870         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
16871         libs when built with flat Athena.
16872
16873 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16874
16875         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
16876         Use coding standards for function prototypes.
16877
16878 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16879
16880         * dialog-msw.c (push_lisp_string_as_unicode):
16881         * doc.c (unparesseuxify_doc_string):
16882         * dired.c (Fuser_name_completion_1):
16883         * dired.c (Fuser_name_all_completions):
16884         * dired.c (free_user_cache):
16885         * dired.c (user_name_completion):
16886         * console-x.c (get_display_arg_connection):
16887         * minibuf.c (clear_echo_area_internal):
16888         * minibuf.c (echo_area_append):
16889         * eldap.c (Fldap_open):
16890         * eldap.c (Fldap_search_internal):
16891         * frame-x.c (x_set_frame_text_value):
16892         * frame-x.c (x_set_frame_properties):
16893         * frame-x.c (x_create_widgets):
16894         * redisplay-tty.c (term_get_fkeys_1):
16895         * objects-x.c (x_parse_nearest_color):
16896         * objects-x.c (x_valid_color_name_p):
16897         * objects-x.c (x_initialize_font_instance):
16898         * objects-x.c (x_list_fonts):
16899         * objects-x.c (x_find_charset_font):
16900         * tooltalk.c (Fadd_tooltalk_message_arg):
16901         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
16902         * tooltalk.c (Fadd_tooltalk_pattern_arg):
16903         * process-unix.c (unix_create_process):
16904         * ntproc.c (sys_spawnve):
16905         * sound.c (Fplay_sound_file):
16906         * sound.c (Fplay_sound):
16907         * buffer.c (init_initial_directory):
16908         * buffer.c (init_buffer):
16909         * editfns.c (init_editfns):
16910         * editfns.c (Ftemp_directory):
16911         * editfns.c (Fuser_full_name):
16912         * editfns.c (uncache_home_directory):
16913         * editfns.c (get_home_directory):
16914         * editfns.c (Fuser_home_directory):
16915         * editfns.c (Fformat_time_string):
16916         * editfns.c (Fcurrent_time_string):
16917         * gui-x.c (button_item_to_widget_value):
16918         * database.c (Fopen_database):
16919         * event-Xt.c (x_to_emacs_keysym):
16920         * event-Xt.c (x_event_to_emacs_event):
16921         * event-Xt.c (describe_event_window):
16922         * event-msw.c (mswindows_wnd_proc):
16923         * glyphs-eimage.c (jpeg_instantiate):
16924         * glyphs-eimage.c (gif_instantiate):
16925         * glyphs-eimage.c (png_instantiate):
16926         * glyphs-eimage.c (tiff_instantiate):
16927         * glyphs-x.c (xbm_instantiate_1):
16928         * glyphs-x.c (x_xbm_instantiate):
16929         * glyphs-x.c (x_xface_instantiate):
16930         * glyphs-x.c (autodetect_instantiate):
16931         * glyphs-x.c (cursor_font_instantiate):
16932         * glyphs-x.c (x_widget_instantiate):
16933         * glyphs-x.c (x_widget_set_property):
16934         * glyphs-x.c (x_widget_property):
16935         * glyphs-x.c (BUILD_GLYPH_INST):
16936         * print.c (write_string_to_stdio_stream):
16937         * print.c (output_string):
16938         * print.c (Falternate_debugging_output):
16939         * print.c (Fexternal_debugging_output):
16940         * glyphs-msw.c (extract_xpm_color_names):
16941         * glyphs-msw.c (mswindows_xpm_instantiate):
16942         * glyphs-msw.c (bmp_instantiate):
16943         * glyphs-msw.c (resource_name_to_resource):
16944         * glyphs-msw.c (mswindows_resource_instantiate):
16945         * glyphs-msw.c (xbm_instantiate_1):
16946         * glyphs-msw.c (mswindows_xbm_instantiate):
16947         * glyphs-msw.c (mswindows_xface_instantiate):
16948         * glyphs-msw.c (mswindows_widget_instantiate):
16949         * glyphs-msw.c (add_tree_item):
16950         * glyphs-msw.c (add_tab_item):
16951         * glyphs-msw.c (mswindows_combo_box_instantiate):
16952         * glyphs-msw.c (mswindows_widget_property):
16953         * glyphs-msw.c (mswindows_combo_box_property):
16954         * glyphs-msw.c (mswindows_widget_set_property):
16955         * console.c (stuff_buffered_input):
16956         * objects-msw.c (mswindows_initialize_color_instance):
16957         * objects-msw.c (mswindows_valid_color_name_p):
16958         * objects-msw.c (mswindows_list_fonts):
16959         * objects-msw.c (mswindows_font_instance_truename):
16960         * bytecode.c (optimize_compiled_function):
16961         * select-x.c (symbol_to_x_atom):
16962         * select-x.c (x_atom_to_symbol):
16963         * select-x.c (hack_motif_clipboard_selection):
16964         * select-x.c (selection_data_to_lisp_data):
16965         * select-x.c (lisp_data_to_selection_data):
16966         * select-x.c (Fx_get_cutbuffer_internal):
16967         * select-x.c (Fx_store_cutbuffer_internal):
16968         * buffer.h (TO_EXTERNAL_FORMAT): New function.
16969         * buffer.h (TO_INTERNAL_FORMAT): New function.
16970         * emacs.c (make_arg_list_1):
16971         * emacs.c (make_argc_argv):
16972         * emacs.c (main_1):
16973         * emacs.c (Fdump_emacs):
16974         * emacs.c (split_string_by_emchar_1):
16975         * file-coding.h:
16976         * lisp.h:
16977         * lstream.h:
16978         * symsinit.h:
16979         * device-x.c (x_init_device):
16980         * device-x.c (Fx_valid_keysym_name_p):
16981         * device-x.c (Fx_get_font_path):
16982         * device-x.c (Fx_set_font_path):
16983         * glyphs.c (bitmap_to_lisp_data):
16984         * glyphs.c (pixmap_to_lisp_data):
16985         * alloc.c (make_ext_string): Use coding system arguments.  Update
16986         all callers.
16987         * alloc.c (build_string):
16988         * callproc.c (child_setup):
16989         * callproc.c (init_callproc):
16990         * fileio.c (lisp_strerror):
16991         * fileio.c (directory_file_name):
16992         * fileio.c (Fexpand_file_name):
16993         * fileio.c (Ffile_truename):
16994         * fileio.c (Fsysnetunam):
16995         * fileio.c (Fdo_auto_save):
16996         * sysdep.c (sys_readdir):
16997         * tests.c: New file.  Allow adding C tests.
16998         Replace GET_* macros with a more comprehensible and flexible
16999         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17000         Modify all calls.
17001         Any coding system can be used to do format conversion.
17002         Eliminate enum external_data_format.
17003         Eliminate convert_to_external_format.
17004         Eliminate convert_to_internal_format.
17005         Make sure file-name, keyboard, terminal, and ctext are always
17006         defined as coding systems or aliases.  Make
17007         file-name-coding-system, terminal-coding-system, and
17008         keyboard-coding-system magical variables that are equivalent to
17009         defining the corresponding coding system aliases.
17010
17011         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17012         * file-coding.c (Fcoding_system_alias_p): New function.
17013         * file-coding.c (Fcoding_system_aliasee): New function.
17014         * file-coding.c (append_suffix_to_symbol): New function.
17015         * file-coding.c (dangling_coding_system_alias_p): New function.
17016         * file-coding.c (Ffind_coding_system):
17017         * file-coding.c (Fcopy_coding_system):
17018         * file-coding.c (encode_coding_no_conversion):
17019         * file-coding.c (syms_of_file_coding):
17020         * file-coding.c (vars_of_file_coding):
17021         Rewrite coding system alias code.
17022         Allow nested aliases, like symbolic links.
17023         Allow redefinition of coding system aliases.
17024         Prevent existence of dangling coding system aliases.
17025
17026         * dired.c (Fuser_name_completion_1):
17027         * dired.c (Fuser_name_all_completions):
17028         A crash would happen if user did QUIT in the middle of building
17029         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17030
17031         * lisp.h:
17032         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17033
17034         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17035         an unsigned char *.  Update all callers.
17036
17037 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17038
17039         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17040
17041 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17042
17043         * elhash.c (hentry_description): Use more portable definition.
17044         (resize_hash_table): Initialize new hentries using
17045         xnew_array_and_zero, thereby simplifying the code.
17046
17047         * mule-charset.c (make_charset): Make sure entire object is
17048         initialized, to avoid Purify warnings.
17049
17050         * alloc.c (resize_string): Fix unlikely crash with big strings.
17051
17052 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17053
17054         * realpath.c (xrealpath):
17055         Don't call getwd().
17056
17057 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17058
17059         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17060
17061 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17062
17063         * unexelfsgi.c (unexec): Change the way we decide which segment
17064         should be extended.
17065
17066         Assumption that .bss section should be outside the PT_LOADable
17067         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17068         it's present) is inside the 'data' segment. This would fail the
17069         test which was used to find a segment to grow and cover new
17070         heap. Instead of this assumption, I created another one - on IRIX
17071         the segment to grow should start below .bss and it's address
17072         should extent above the end of .bss. Once this segment is
17073         identified, it's grown to accommodate the new heap and new
17074         zero-length .bss section is added at the end of .data2.
17075
17076 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17077
17078         * eval.c (Feval): Wrong number of arguments should use original
17079         function, not the indirect_function version of it.
17080
17081 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17082
17083         * glyphs-x.c (x_button_instantiate): Don't add image if
17084         it is not a pixmap.
17085         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17086         is relative.
17087
17088 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17089
17090         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17091         declaration.
17092         (DEFVAR_INT_MAGIC): Ditto.
17093         (DEFVAR_BOOL_MAGIC): Ditto.
17094         * glyphs.h: Reindent backslash.
17095
17096 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17097
17098         * glyphs-widget.c (layout_query_geometry):
17099         (layout_layout): Use correct types for gheight, gwidth.
17100
17101 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17102
17103         * EmacsManager.c (QueryGeometry): Purified.
17104
17105 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17106
17107         * alloc.c (make_float): Make sure entire object is initialized, to
17108         avoid Purify warnings.
17109         (pdump_register_sub): Remove useless assignment.
17110         (pdump): Use xmalloc, not malloc.
17111         (pdump_load): Use xmalloc, not malloc.
17112
17113 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17114
17115         * callproc.c:
17116         * dired-msw.c:
17117         * fileio.c:
17118         * process-nt.c:
17119         * redisplay-msw.c:
17120         * sysdep.c: Removed redundant #include <windows.h>
17121
17122 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17123
17124         * frame.c (delete_frame_internal): Do not delete device when its
17125         implementation so declares.
17126         (delete_frame_internal): Set device selected frame to nil when
17127         last frame goes away.
17128
17129         * device-msw.c (msprinter_device_system_metrics): Implemented.
17130         (mswindows_device_system_metrics): Added 'device-dpi property.
17131
17132         * device.c: (Fdevice_printer_p): Added.
17133         Added 'offset-workspace device metric.
17134
17135         * console.h (device_metrics): Declared DM_offset_workspace.
17136
17137 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17138
17139         * fileio.c (Ffile_truename): Remove pointless and confusing
17140         initialization of elen.
17141
17142         * glyphs-widget.c: Compiler warning fixes.
17143
17144 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17145
17146         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17147         instead of a Lisp_Object as argument to make it consistent with
17148         the other LIVE_P macros.
17149         (CHECK_LIVE_PROCESS): New macro.
17150
17151         * process.c: Declare Qprocess_live_p.
17152         (Fprocess_live_p): New function.
17153         (create_process): Use PROCESS_LIVE_P.
17154         (read_process_output): Ditto.
17155         (set_process_filter): Ditto.
17156         (Fdelete_process): Ditto.
17157         (kill_buffer_processes): Ditto
17158         (process_send_signal): Use CHECK_LIVE_PROCESS.
17159         (Fprocess_input_coding_system): Check whether process is still
17160         alive (fix PR#1061).
17161         (Fprocess_output_coding_system): Ditto.
17162         (Fprocess_coding_system): Ditto.
17163         (Fset_process_input_coding_system): Ditto.
17164         (Fset_process_output_coding_system): Ditto.
17165
17166 2000-01-23  Andy Piper  <andy@xemacs.org>
17167
17168         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17169         layout and widget.
17170
17171         * glyphs.c (mark_image_instance): take into account changed
17172         image_instance format.
17173         (image_instance_equal): ditto.
17174         (image_instance_hash): ditto.
17175
17176         * glyphs-widget.c (widget_instantiate): Incorporate layout
17177         instantiation here. Delay layout of the layout until later.
17178         (layout_instantiate): deleted.
17179         (layout_query_geometry): new function. get the geometry of a
17180         layout.
17181         (layout_layout): layout a layout dynamically.
17182         (image_instantiator_widget): New function - splitting up
17183         image_instantiator_format_create_glyphs_widget for netwinder
17184         compilation.
17185         (image_instantiator_buttons):
17186         (image_instantiator_edit_fields):
17187         (image_instantiator_combo_box):
17188         (image_instantiator_scrollbar):
17189         (image_instantiator_progress_guage):
17190         (image_instantiator_tree_view):
17191         (image_instantiator_tab_control):
17192         (image_instantiator_labels):
17193         (image_instantiator_layout): ditto.
17194         (image_instantiator_format_create_glyphs_widget): Call preceding
17195         functions.
17196
17197 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17198
17199         * process.c (Fset_process_coding_system):
17200         * device-x.c (Fx_keysym_hash_table):
17201         Docstring fixes.
17202
17203         * lstream.c (Lstream_write): Return documented value, not 0.
17204
17205         * fileio.c (directory_file_name):
17206         (Fsubstitute_in_file_name):
17207         (Fsubstitute_insert_file_contents_internal):
17208         (Fwrite_region_internal):
17209         * emacs.c:
17210         * sysdep.c:
17211         * getloadavg.c:
17212         * systty.h:
17213         Remove vestigial APOLLO-conditional code.
17214
17215 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17216
17217         * getpagesize.h: Add guard macros.
17218         * libsst.h: Add guard macros.
17219         * libst.h: Add guard macros.
17220         * line-number.h: Add guard macros.
17221         * ndir.h: Add guard macros.
17222         * sysfloat.h: Add guard macros.
17223         * sysfile.h: Add guard macros.
17224         * sysproc.h: Add guard macros.
17225         * syswait.h: Add guard macros.
17226         * xintrinsic.h: Add guard macros.
17227         * xintrinsicp.h: Add guard macros.
17228         * xmmanager.h: Add guard macros.
17229         * xmmanagerp.h: Add guard macros.
17230         * xmprimitive.h: Add guard macros.
17231         * xmu.h: Add guard macros.
17232         * gpmevent.h: Add copyright statement. Add guard macros.
17233         * miscplay.h: Add guard macros.
17234         * *.h: Use consistent C-standards-approved guard macro names.
17235
17236         * opaque.c (make_opaque): Switch parameter order.
17237         * opaque.h (make_opaque): Switch parameter order.
17238         Update all callers.
17239         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17240
17241         * config.h.in (type_checking_assert): Added.
17242         (bufpos_checking_assert): Added.
17243
17244 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17245
17246         * alloc.c: Harmless pdump changes.
17247         - Use countof().
17248         - spell alignment correctly.
17249         * sysdep.c: Use countof()
17250
17251 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17252
17253         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17254         initially_selected_for_input() console method, default to 0.
17255         (semi_canonicalize_console_connection): Try to delegate to
17256         canonicalize_console_connection if no such console method.
17257         (canonicalize_console_connection): Vice versa.
17258         (print_console): Do not print nil connection.
17259
17260         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17261         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17262         (XDEVIMPF_FRAMELESS_OK): Added.
17263         (CONSOLE_INHERITS_METHOD): Added.
17264
17265         * console-msw.c (mswindows_canonicalize_console_connection):
17266         Added.
17267         (mswindows_canonicalize_device_connection): Added.
17268
17269         * console-msw.h (struct msprinter_device): Added this struct and
17270         accessor macros.
17271         (mswindows_device): Made fontlist a lisp object.
17272
17273         * device.c (semi_canonicalize_device_connection):  Try to delegate
17274         to canonicalize_device_connection if no such console method.
17275         (canonicalize_device_connection): Vice versa.
17276         (print_device): Do not print nil connection.
17277
17278         * device-msw.c (mswindows_init_device): Call InitCommonControls
17279         when have widgets.
17280         (mswindows_delete_device): Removed fontlist deallocation.
17281         (mswindows_mark_device): Added.
17282
17283         * events.c (event_equal): Added abort() at unreached code.
17284         (event_hash): Ditto.
17285
17286         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17287         fallback tags of Windows devices.
17288
17289         * general.c (syms_of_general): Initialized Qmsprinter.
17290
17291         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17292         of fallback tags of Windows devices.
17293
17294         * lisp.h: Declared Qmsprinter.
17295
17296         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17297         of strings.
17298         (mswindows_list_fonts): Ditto.
17299         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17300         that it can be used by both mswindows and msprinter devices.
17301         (initialize_font_instance): Added.
17302         (mswindows_initialize_font_instance): Use it.
17303         (msprinter_initialize_font_instance): Added.
17304
17305         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17306         and implementation flags check.
17307         (redisplay_without_hooks): Changed the call to the above.
17308         (Fredraw_device): Ditto.
17309         (Fredisplay_device): Ditto.
17310
17311         * redisplay-msw.c (get_frame_dc): Implemented.
17312         (get_frame_compdc): Implemented.
17313         (many functions): Use the two functions above to get device
17314         contexts, ether for a window or a printer.
17315
17316 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17317
17318         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17319         initialization here.
17320         (init_symbols_once_early): Call it.
17321         * emacs.c (main_1): Call it.
17322         * symsinit.h: Declare it.
17323
17324 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17325
17326         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17327         Lisp_Object.
17328         (pdump_backtrace): Ditto.
17329         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17330         (pdump_get_entry): Abort if trying to register a null pointer.
17331         (pdump_dump_data): Cleanup types when relocating.
17332         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17333         (pdump_dump_rtables): Remove bad casts.
17334         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17335         Lisp_Object instead of a EMACS_INT for the hashtable
17336         reorganization.
17337
17338 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17339
17340         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17341
17342         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17343
17344         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17345
17346         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17347
17348 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17349
17350         * faces.h (FACE_STRIKETHRU_P): Added.
17351
17352         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17353         of font variants.
17354
17355         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17356         (mswindows_set_dc_font): New function, aware of font variants,
17357         separated from mswindows_update_dc.
17358
17359         * objects-msw.h (struct mswindows_font_instance_data): Added
17360         definition.
17361
17362         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17363         cached fonts and the data structure.
17364         (mswindows_initialize_font_instance): Added creation of font data
17365         structure.
17366         (mswindows_print_font_instance): Print at least something.
17367         (mswindows_create_font_variant): Implemented.
17368         (mswindows_get_hfont): Implemented.
17369
17370 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17371
17372         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17373         prototyping problem with msvc.
17374
17375         * emacs.c (main_1): added syms_of_gui_mswindows() call
17376
17377         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17378         syms_of_gui_mswindows() function
17379
17380         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17381
17382 2000-01-18  Martin Buchholz <martin@xemacs.org>
17383
17384         * XEmacs 21.2.27 is released.
17385
17386 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17387
17388         * glyphs-eimage.c (struct tiff_error_struct):
17389         (tiff_error_func):
17390         (tiff_warning_func):
17391         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17392
17393         * unexmips.c:
17394         * unexhp9k3.c:
17395         * unexfreebsd.c:
17396         * unexec.c: Remove vestigial Lucid C code.
17397         * unexalpha.c:
17398         * unexaix.c:
17399         * termcap.c:
17400         * libsst.c: Ansify.
17401         Remove declarations of errno and strerror().
17402
17403         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17404
17405         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17406
17407 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17408
17409         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17410         Optimize.
17411
17412 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17413
17414         * md5.c:
17415         * file-coding.c:
17416         * file-coding.h:
17417         Change enum eol_type to eol_type_t.
17418
17419 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17420
17421         * gui.c (get_gui_callback): Check cons before accessing car.
17422
17423 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17424
17425         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17426         (XSETSPECIFIER_TYPE): Ditto.
17427
17428 2000-01-17  Didier Verna  <didier@xemacs.org>
17429
17430         * redisplay.c (generate_fstring_runes): compute string size in
17431         characters, not bytes.
17432
17433 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17434
17435         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17436
17437 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17438
17439         * print.c (print_error_message): Call print_prepare().
17440
17441 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17442
17443         * .dbxrc: Renamed from dbxrc.
17444
17445         * events.c (event_to_character):
17446         Use `assert (foo)' instead of `if (!foo) abort()'
17447
17448         * .gdbinit (xtype): Add documentation.
17449         * .gdbinit (check-temacs): New function.
17450         * .gdbinit (check-xemacs): New function.
17451         * dbxrc (check-xemacs): New function.
17452         * dbxrc (check-xemacs): New function.
17453
17454 2000-01-14  Andy Piper  <andy@xemacs.org>
17455
17456         * glyphs-widget.c (widget_query_geometry): Make sure that we
17457         calculate default dimensions correctly.
17458
17459 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17460
17461         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17462
17463         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17464         pdump_wire'd variable.
17465
17466         * emacs.c: (main_1): Conditionalized calls to
17467         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17468
17469 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17470
17471         * window.c (Fset_window_configuration):
17472         * sysdep.c (_start):
17473         * input-method-motif.c (res):
17474         * event-Xt.c (Xt_process_to_emacs_event):
17475         Simple compiler warning fixes.
17476
17477         * bytecode.c (funcall_compiled_function): Use the original
17478         function symbol on the backtrace list in preference to the
17479         compiled_function object in error messages.
17480
17481 2000-01-13  Andy Piper  <andy@xemacs.org>
17482
17483         * glyphs-x.c (update_widget_face): Make sure we update the widget
17484         background as well as foreground.
17485
17486 2000-01-13  Andy Piper  <andy@xemacs.org>
17487
17488         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17489         fields to subwindow.
17490         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17491         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17492         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17493         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17494
17495         * glyphs-widget.c (check_valid_tab_orientation): new function.
17496         (initialize_widget_image_instance): zero orientation and
17497         justification.
17498         (widget_instantiate): pick up orientation.
17499         (tab_control_query_geometry): return appropriate values for
17500         vertical tabs.
17501
17502         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17503         appropriate creation flags for left, right and bottom tabs.
17504
17505         * s/cygwin32.h: add tab definitions.
17506
17507 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17508
17509         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17510         frame upon hiding a subwindow.
17511         (mswindows_button_instantiate): Changed the push button style to
17512         BS_PUSHBUTTON.
17513         (mswindows_button_instantiate): Removed button BS_NOTIFY
17514         style.
17515         (mswindows_button_instantiate): Removed redundant check for
17516         a disabled gui item.
17517         (mswindows_button_instantiate): Made use of WS_TABSTOP
17518         consistent: "operable" controls (edit, button, tree, scroll) have
17519         this style, "display-only" ones (static, progress gauge) do
17520         not. This style is currently ignored by XEmacs though. Also,
17521         removed the WS_EX_CONTROLPARENT style - it is not for children,
17522         it is for their parents!
17523         (mswindows_edit_field_instantiate): Ditto.
17524         (mswindows_progress_gauge_instantiate): Ditto.
17525         (mswindows_tree_view_instantiate): Ditto.
17526         (mswindows_tab_control_instantiate): Ditto.
17527         (mswindows_scrollbar_instantiate): Ditto.
17528         (mswindows_combo_box_instantiate): Ditto.
17529         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17530         style to the "clip" window.
17531         (mswindows_button_instantiate): Removed compilation warning by
17532         equally typing terms of the ?: operator.
17533
17534 2000-01-12  Didier Verna  <didier@xemacs.org>
17535
17536         * redisplay.c (generate_fstring_runes): new parameter holding the
17537         last modeline-format extent.
17538         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17539         extent, fill the glyph block with it.
17540         (generate_fstring_runes): handle these parameters.
17541         (generate_formatted_string_db): ditto.
17542
17543         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17544         glyphs'extents in the modeline.
17545
17546 1999-01-11  Mike Woolley  <mike@bulsara.com>
17547
17548         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17549         256Mb, as a workaround for the non-starting problem many people
17550         have experienced.
17551
17552 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17553
17554         * console-tty.c (Fset_console_tty_output_coding_system):
17555         Force redrawing tty frame.
17556
17557 2000-01-10  Didier Verna  <didier@xemacs.org>
17558
17559         * redisplay.c (generate_fstring_runes): fix size computation bug.
17560
17561 2000-01-09  William M. Perry <wmperry@aventail.com>
17562
17563         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17564
17565 2000-01-09  Andy Piper  <andy@xemacs.org>
17566
17567         * glyphs-msw.c: index -> i to avoid shadows.
17568         (xbm_create_bitmap_from_data): make static.
17569         (check_valid_string_or_int): deleted.
17570         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17571
17572         * glyphs-x.c (x_update_subwindow): remove unused args.
17573
17574         * glyphs.c (glyph_image_instance): return the thing. Don't set the
17575         back pointer - this is done in allocate_image_instance.
17576         (query_string_font): return Qnil to make the compiler happy.
17577         (unmap_subwindow): set to ~0 to make the compiler happy.
17578         (glyph_query_geometry): comment out until used.
17579         (glyph_layout): ditto.
17580
17581 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17582
17583         * insdel.c (signal_after_change): Remove extraneous unbind_to().