96be443771a8ffe36ef254245eef10f8cc3deb45
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * concord.c (print_concord_object): Support readable form.
4
5 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
6
7         * emacs.c (main_1): Call `structure_type_create_concord' when
8         HAVE_CONCORD is defined.
9
10         * symsinit.h (structure_type_create_concord): New prototype.
11
12         * concord.c (Qconcord_object): New variable.
13         (Qgenre): Likewise.
14         (Q_id): Likewise.
15         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
16         for directory.
17         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
18         char*> for genre-name.
19         (Fconcord_feature_list): Likewise.
20         (Fconcord_make_object): Likewise.
21         (Fconcord_decode_object): Likewise; use <char*> instead of
22         <unsigned char*> for feature_name and strid.
23         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
24         c_obj and feature_name.
25         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
26         char*> for c_value.
27         (struct closure_for_object_spec): Use <char*> instead of <unsigned
28         char*> for member `object_id'.
29         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
30         char*> for feature-name.
31         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
32         for c_obj.
33         (func_for_each_object): Cast to avoid warnings.
34         (Fconcord_foreach_object_in_feature): Use <char*> instead of
35         <unsigned char*> for genre_name and feature_name.
36         (concord_name_validate): New function.
37         (concord_object_validate): Likewise.
38         (concord_object_instantiate): Likewise.
39         (syms_of_concord): Add new builtin symbols `concord-object',
40         `genre' and `=id'.
41         (structure_type_create_concord): New function.
42
43 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
44
45         * concord.c (Vconcord_ds_hash_table): New variable.
46         (Vconcord_genre_hash_table): New variable.
47         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
48         (Fconcord_ds_directory): New function.
49         (Fconcord_assign_genre): New function.
50         (Fconcord_genre_directory): New function.
51         (Fconcord_genre_ds): New function.
52         (Fconcord_feature_list): Allow to omit `ds'.
53         (Fconcord_make_object): Likewise.
54         (Fconcord_decode_object): Likewise.
55         (Fconcord_foreach_object_in_feature): Likewise.
56         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
57         Fconcord_assign_genre, Fconcord_genre_directory and
58         Fconcord_genre_ds.
59         (vars_of_concord): Setup Vconcord_ds_hash_table and
60         Vconcord_genre_hash_table.
61
62 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
63
64         * concord.c (struct closure_for_each_object): Add new member
65         `ret'.
66         (func_for_each_object): Setup the return value to
67         `for_each_object_closure->ret'.
68         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
69         returns the value instead of Qt.
70
71 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
72
73         * concord.c: New file.
74
75 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
76
77         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
78         `lrecord_type_concord_object'.
79
80 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
81
82         * symsinit.h (syms_of_concord): New prototype.
83         (vars_of_concord): New prototype.
84
85         * emacs.c (main_1): Setup symbols and variable about concord if
86         HAVE_CONCORD is defined.
87
88         * config.h.in (HAVE_CONCORD): New macro.
89
90 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
91
92         * chartab.c (Fput_char_attribute): For each character relation
93         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
94
95 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
96
97         * chartab.c (Fput_char_attribute): Use
98         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
99         calling `put_char_composition'.
100
101 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
102
103         * chartab.c (Q_halfwidth_of): New variable.
104         (put_char_composition): Return `<-halfwidth' instead of
105         `=decomposition' for compatibility mapping to single character
106         tagged `narrow'.
107         (Fput_char_attribute): Convert char-specs in value of
108         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
109         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
110         for `<-halfwidth'.
111         (syms_of_chartab): Add new symbol `<-halfwidth'.
112
113 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
114
115         * chartab.c (put_char_composition): Return
116         `<-formed@{isolated|initial|medial|final}' for compatibility
117         mapping to single character tagged
118         `{isolated|initial|medial|final}'.
119
120 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
121
122         * chartab.c (Q_compat_of): Deleted.
123         (put_char_composition): Return `<-FOO' for compatibility mapping
124         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
125         of `symbol_name (XSYMBOL(...))'.
126         (Fput_char_attribute): Convert char-specs in value of
127         `{<-|->}font[^*]*' to characters and put reverse links.
128         (Fsave_char_attribute_table): Don't refer Q_compat_of.
129         (syms_of_chartab): Delete builtin symbol `<-compat'.
130
131 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
132
133         * chartab.c (Q_circled_of): New variable.
134         (put_char_composition): Return `<-circled' instead of
135         `=decomposition' for compatibility mapping to single character
136         tagged `circle'.
137         (Fput_char_attribute): Convert char-specs in value of
138         `{<-|->}circled[^*]*' to characters and put reverse links.
139         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
140         for `<-circled'.
141         (syms_of_chartab): Add new symbol `<-circled'.
142
143 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
144
145         * chartab.c (Qto_decomposition_at_circled): New variable.
146         (put_char_composition): Return `=>decomposition@circled' instead
147         of `=decomposition' for compatibility decomposition mapping tagged
148         `circle'.
149         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
150
151 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
152
153         * chartab.c (Q_subscript_of): New variable.
154         (put_char_composition): Return `<-subscript' instead of
155         `=decomposition' for compatibility mapping to single character
156         tagged `sub'.
157         (Fput_char_attribute): Convert char-specs in value of
158         `{<-|->}subscript[^*]*' to characters and put reverse links.
159         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
160         for `<-subscript'.
161         (syms_of_chartab): Add new symbol `<-subscript'.
162
163 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
164
165         * chartab.c (Q_superscript_of): New variable.
166         (put_char_composition): Return `<-superscript' instead of
167         `=decomposition' for compatibility mapping to single character
168         tagged `super'.
169         (Fput_char_attribute): Convert char-specs in value of
170         `{<-|->}superscript[^*]*' to characters and put reverse links.
171         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
172         for `<-superscript'.
173         (syms_of_chartab): Add new symbol `<-superscript'.
174
175 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
176
177         * chartab.c (Qto_decomposition_at_compat): Deleted.
178         (Qto_decomposition_at_superscript): New variable.
179         (put_char_composition): Use `=>decomposition@superscript' instead
180         of `=decomposition' for compatibility decomposition mapping tagged
181         `super'.
182         (Fput_char_attribute): Fix condition about `put_char_composition'.
183         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
184         add news symbol `=>decomposition@superscript'.
185
186 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
187
188         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
189         for compatibility decomposition mapping tagged FOO.
190         (Fput_char_attribute): Modify for `put_char_composition'.
191
192 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
193
194         * chartab.c (Qto_decomposition_at_compat): New variable.
195         (Q_compat_of): Renamed from `Q_compatibility_of'.
196         (put_char_composition): Rename `Q_compatibility_of' to
197         `Q_compat_of'; return `=>decomposition@compat' for compatibility
198         decomposition mapping.
199         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
200         `Q_compat_of'.
201         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
202         `<-compatibility' to `<-compat'.
203
204 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
205
206         * chartab.c (Q_compatibility_of): New variable.
207         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
208         object is proved to be a cons cell; return `<-compatibility' if
209         the first element of argument `value' is `compat'.
210         (Fput_char_attribute): Eliminate the first value if
211         `put_char_composition' returns `<-compatibility'.
212         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
213         for `<-compatibility'.
214         (syms_of_chartab): Add new symbol `<-compatibility'.
215
216 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
217
218         * chartab.c (Q_canonical): New variable.
219         (put_char_composition): Return a feature name: return
220         `->canonical' if argument `value' specifies single character.
221         (Fput_char_attribute): Use `put_char_composition' to determine
222         feature name for `=decomposition' or `->denotational'.
223         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
224         for `->canonical'.
225         (syms_of_chartab): Add new symbol `->canonical'.
226
227 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
228
229         * chartab.c (Qmap_decomposition): New variable.
230         (Fput_char_attribute): Convert `->decomposition' to
231         `=decomposition'.
232         (syms_of_chartab): Add new symbol `=decomposition'.
233
234 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
235
236         * chartab.c (Fget_range_char_table): Fix serious problem when
237         `range' is nil.
238
239 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
240
241         * chartab.c (char_table_get_db): Use `read_from_c_string'.
242
243 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
244
245         * lread.c (read_from_c_string): New function.
246
247         * lisp.h (read_from_c_string): New prototype.
248
249 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
250
251         * chartab.c (Fput_char_attribute): Convert char-specs in value of
252         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
253         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
254         for `{<-|->}Oracle-Bones[^*]*'.
255
256 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
257
258         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
259         (Kizu).
260
261 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
262
263         * text-coding.c (Qccs_priority_list): New variable in XEmacs
264         CHISE.
265         (Fmake_coding_system): Support new property `ccs-priority-list' in
266         XEmacs CHISE.
267         (Fcoding_system_property): Likewise.
268         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
269         Vdefault_coded_charset_priority_list in XEmacs CHISE.
270         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
271         XEmacs CHISE.
272         (complex_vars_of_file_coding): Define new coding-system-property
273         `ccs-priority-list' in XEmacs CHISE.
274
275         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
276
277 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
278
279         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
280         changed to normal function.
281         (encode_char_2): Likewise.
282
283         * mule-charset.c (decoding_table_put_char): Copied from
284         char-ucs.h; changed to normal function.
285         (encode_char_2): Likewise.
286
287 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
288
289         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
290         New extern.
291         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
292         (encode_char_2_search_children): New inline function.
293         (encode_char_2): Refer
294         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
295         and use `encode_char_2_search_children'.
296
297 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
298
299         * mule-charset.c
300         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
301         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
302         (vars_of_mule_charset): Add new variable
303         `display-coded-charset-priority-use-inheritance' and
304         `display-coded-charset-priority-use-hierarchy-order'.
305
306 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
307
308         * char-ucs.h (Q_subsumptive): New extern.
309         (Q_denotational): Likewise.
310         (encode_char_2): Search children specified by `->subsumptive' and
311         `->denotational'.
312
313 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
314
315         * mule-charset.c (complex_vars_of_mule_charset): Modify the
316         X-registry of `ucs-bmp'.
317
318 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
319
320         * chartab.c (char-variants): Refer `->subsumptive',
321         `->denotational' and `->identical' as same as `->ucs-unified'.
322
323 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
324
325         * chartab.c (Fput_char_attribute): Convert char-specs in value of
326         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
327         links.
328
329 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
330
331         * text-coding.c: Add EXFUN for `Fregexp_quote'.
332         (decode_add_er_char): Fix problem about infinite loop when a CCS
333         specified in `coded-charset-entity-reference-alist' is not
334         existed.
335
336 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
337
338         * mule-charset.c (syms_of_mule_charset): Rename
339         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
340
341 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
342
343         * fns.c (simplify_char_spec): Don't allocate new character-object
344         if specified char_spec does not have any CCS-features.
345
346         * chartab.h: Add EXFUN for Fdefine_char.
347
348         * chartab.c: Delete EXFUN for Fdefine_char.
349
350 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
351
352         * fns.c (simplify_char_spec): Use Fdefine_char instead of
353         Ffind_char for char-spec.
354
355 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
356
357         * lisp-disunion.h (XCHARVAL): Fix condition about
358         SIZEOF_EMACS_INT.
359
360 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
361
362         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
363         <int> for `code'.
364         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
365         point; use <Emchar> instead of <int> for character-id.
366
367 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
368
369         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
370         (make_char): Likewise.
371         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
372         environment.
373         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
374         instead of <int> as the type of return value; use <Lisp_Object>
375         instead of <Emchar> as the type of argument.
376         (XCHARVAL[macro version]): Cast the result into <Emchar>.
377
378         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
379         syntaxcode> instead of <int>.
380
381 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
382
383         * chartab.c (put_char_composition): Use DECODE_CHAR to get
384         character corresponding with UCS code point.
385         (Fput_char_attribute): Likewise.
386
387         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
388         character in the UCS decoding-table if the char-id is not equal to
389         the UCS code point.
390
391 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
392
393         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
394         for aliases; write `description'; write
395         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
396         not 0.
397
398 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
399
400         * chartab.c (Fsave_char_attribute_table): Don't use
401         `save_charset_properties'.
402
403         * mule-charset.c (Fsave_charset_properties): Renamed from
404         `save_charset_properties' and changed to Lisp function again;
405         write property `type' as `CCS'; write properties `final-byte' and
406         `mother' if they exists.
407         (syms_of_mule_charset): Revive builtin function
408         `save-charset-properties' when HAVE_LIBCHISE is defined.
409
410 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
411
412         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
413         instead of Vexec_directory.
414         (char_attribute_system_db_file): Likewise.
415
416 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
417
418         * chartab.c (Fsave_char_attribute_table): Use
419         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
420         defined.
421
422         * mule-charset.c (save_charset_properties): Renamed from
423         `Fsave_charset_properties'; changed to non-Lisp function.
424         (syms_of_mule_charset): Abolish builtin function
425         `save-charset-properties'.
426
427 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
428
429         * mule-charset.c (Fsave_charset_properties): New function when
430         HAVE_LIBCHISE is defined.
431         (syms_of_mule_charset): Add new builtin function
432         `save-charset-properties' when HAVE_LIBCHISE is defined.
433
434 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
435
436         * chartab.c (Fput_char_attribute): Convert char-specs in value of
437         `{<-|->}ancient[^*]*' to characters and put reverse links.
438         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
439         for `{<-|->}ancient[^*]*'.
440
441 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
442
443         * chartab.c (Fput_char_attribute): Convert char-specs in value of
444         `{<-|->}original[^*]*' to characters and put reverse links.
445         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
446         for `{<-|->}original[^*]*'.
447
448 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
449
450         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
451
452 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
453
454         * mule-charset.c (Qsystem_char_id): New variable.
455
456         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
457         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
458
459 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
460
461         * chartab.c (Fput_char_attribute): When processing a reference of
462         a character, put into the end of the reversed reference of each
463         target character.
464
465 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
466
467         * chartab.c (Q_same): Deleted.
468         (Q_same_of): Deleted.
469         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
470         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
471         for `{<-|->}same'.
472         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
473
474 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
475
476         * chartab.c (Q_vulgar): Deleted.
477         (Q_vulgar_of): Deleted.
478         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
479         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
480         for `{<-|->}vulgar'.
481         (syms_of_chartab): Don't define `{<-|->}vulgar'.
482
483 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
484
485         * chartab.c (Fput_char_attribute): Convert char-specs in value of
486         `{<-|->}wrong[^*]*' to characters and put reverse links.
487         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
488         for `{<-|->}wrong[^*]*'.
489
490 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
491
492         * chartab.c (Q_vulgar): New variable.
493         (Q_vulgar_of): New variable.
494         (Fput_char_attribute): Convert char-specs in value of
495         `{->|<-}vulgar' to characters and put reverse links.
496         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
497         for `{->|<-}vulgar'.
498         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
499
500 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
501
502         * text-coding.c (decode_add_er_char): Must to quote prefix string
503         as regexp.
504
505 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
506
507         * mule-charset.c (put_char_ccs_code_point): Store characters of
508         =ucs whose code_points >= 0xF0000.
509
510 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
511
512         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
513         CHISE.
514         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
515         CHISE.
516         (complex_vars_of_mule_charset): Add new coded-charset
517         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
518         builtin characters over 0xEFFFF.
519
520         * chartab.c (syms_of_chartab): Don't define symbol
521         `system-char-id' in every case.
522
523         * char-ucs.h (Qsystem_char_id): New extern variable.
524         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
525
526 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
527
528         * text-coding.c (char_encode_utf8): Try to use entity-references
529         for U-000F0000 ...  U-0010FFFF.
530
531 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
532
533         * text-coding.c (ER_BUF_SIZE): New macro.
534         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
535         `er_buf'.
536         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
537         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
538
539 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
540
541         * chartab.c (find_char_feature_in_family): New function.
542         (Fchar_feature): Use `find_char_feature_in_family' with
543         `->identical', `<-subsumptive' and `<-denotational'.
544
545 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
546
547         * text-coding.c (char_encode_as_entity_reference): Allow prefix
548         within 8 characters; fix infinite loop.
549
550 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
551
552         * chartab.c (Q_same): New variable.
553         (Q_same_of): New variable.
554         (Fput_char_attribute): Convert char-specs in value of
555         `{->|<-}same' to characters and put reverse links.
556         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
557         for `{->|<-}same'.
558         (syms_of_chartab): Add new symbols `{->|<-}same'.
559
560 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
561
562         * chartab.c (Q_component): New variable.
563         (Q_component_of): Likewise.
564         (Fput_char_attribute): Convert char-specs in value of
565         `{->|<-}ideographic-component-forms' to characters and put reverse
566         links.
567         (syms_of_chartab): Add new symbols
568         `{->|<-}ideographic-component-forms'.
569
570 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
571
572         * chartab.c (Q_identical): New variable.
573         (Q_identical_from): New variable.
574         (Fchar_feature): Regard `->identical' as a feature to find
575         ancestors.
576         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
577         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
578         for `{->|<-}identical'.
579         (syms_of_chartab): Add new symbols `{->|<-}identical'.
580
581 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
582
583         * char-ucs.h (encode_char_2): New inline function.
584         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
585
586 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
587
588         * chartab.c (Fput_char_attribute): Convert char-specs to
589         characters in value of `ideographic-structure'.
590         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
591         for `{<-|->}simplified(@...)'.
592         (Fdefine_char): Try to use predefined character's id.
593
594 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
595
596         * fns.c (simplify_char_spec): Try to convert builtin chars to
597         defined chars.
598
599 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
600
601         * chartab.c (Fput_char_attribute): Convert char-specs in value of
602         `<-simplified[^*]*' to characters and put reverse links.
603
604 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
605
606         * chartab.c (Q_subsumptive): Renamed from Q_unified.
607         (Q_subsumptive_from): Renamed from Q_unified_from.
608         (Fchar_feature): Use `Q_subsumptive_from' instead of
609         `Q_unified_from'.
610         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
611         `Q_unified'.
612         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
613         `<-unified' to `<-subsumptive'.
614
615 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
616
617         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
618         inheritance itself; fix typo; stop recursive search if cyclic
619         inheritance is found.
620
621 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
622
623         * chartab.c (Q_denotational): New variable.
624         (Q_denotational_from): New variable.
625         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
626         (put_char_attribute): New function.
627         (Fput_char_attribute): Use `put_char_attribute'; regard
628         `->denotational' and `<-denotational' as same as `->unified' and
629         `<-unified'.
630         (syms_of_chartab): Add new symbols `->denotational' and
631         `<-denotational'.
632
633 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
634
635         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
636         `Fget_char_attribute'.
637         (Fchar_variants): Likewise.
638         (get_char_table): Likewise.
639         (Fchar_feature): New function.
640         (put_char_composition): Use `Fchar_feature' instead of
641         `Fget_char_attribute'.
642         (Fput_char_attribute): Likewise; don't put the target character
643         into its `->unified' value.
644         (syms_of_chartab): Add new builtin function `char-feature'.
645
646 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
647
648         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
649         `Fget_char_attribute'.
650         (char_encode_utf8): Likewise.
651
652         * chartab.h: Add an EXFUN for `Fchar_feature'.
653
654 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
655
656         * chartab.c (Vnext_defined_char_id): New variable.
657         (Fput_char_attribute): Accept characters in `->unified'.
658         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
659         new characters which are not related with builtin char-id ranges.
660         (vars_of_chartab): Add new variable `next-defined-char-id'.
661
662 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
663
664         * chartab.c (Q_unified): New variable.
665         (Q_unified_from): New variable.
666         (Fput_char_attribute): Add code for `->unified'.
667         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
668         XEmacs CHISE.
669
670 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
671
672         * mule-charset.c (decode_ccs_conversion): New function.
673         (decode_defined_char): Use `decode_ccs_conversion'.
674         (decode_builtin_char): Likewise.
675
676 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
677
678         * char-ucs.h: Change some charset-ids of private coded-charsets.
679
680 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
681
682         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
683         (char_encode_as_entity_reference): Likewise.
684         (decode_coding_big5): Modify for `decode_defined_char' and
685         `DECODE_CHAR'.
686         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
687         avoid compiler warning.
688         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
689
690         * mule-charset.c (decode_defined_char): Add new argument
691         `without_inheritance'.
692         (Fdecode_char): Add new optional argument `without_inheritance'.
693         (Fdecode_builtin_char): Modify for `Fdecode_char'.
694
695         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
696         (simplify_char_spec): Likewise.
697
698         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
699         setting.
700
701         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
702         (map_char_table): Likewise.
703         (Fdefine_char): Use `Fdecode_char' without inheritance.
704         (Ffind_char): Modify for `Fdecode_char'.
705
706         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
707
708         * char-ucs.h (decode_defined_char): Add new argument
709         `without_inheritance'.
710         (DECODE_CHAR): Likewise.
711         (MAKE_CHAR): Modify for `DECODE_CHAR'.
712
713 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
714
715         * chartab.c (Vchise_system_db_directory): New variable.
716         (vars_of_chartab): Add new variable `chise-system-db-directory'.
717
718 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
719
720         * chartab.c: EXFUN `Fmount_char_attribute_table'.
721         (print_chartab_range): Don't define when `UTF2000' is defined.
722         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
723         `CHISE_DS_open'.
724
725 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
726
727         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
728         and optional argument `rehash' is specified, call
729         `open_chise_data_source_maybe' before
730         `chise_ds_foreach_char_feature_name' is called.
731
732 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
733
734         * chartab.c (char_attribute_list_reset_map_func): New function
735         when HAVE_LIBCHISE is defined.
736         (Fchar_attribute_list): Add new optional argument `rehash' when
737         HAVE_LIBCHISE is defined.
738         (open_chise_data_source_maybe): Use "chise-db" instead of
739         "char-db".
740         (char_attribute_system_db_file): Likewise.
741         (Fload_char_attribute_table): Use
742         `chise_feature_foreach_char_with_value' instead of
743         `chise_char_feature_value_iterate'.
744
745 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
746
747         * chartab.c (Vchise_db_directory): New variable.
748         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
749
750 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
751
752         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
753         instead of HAVE_CHISE to specify using with libchise.
754
755         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
756
757         * chartab.h: Don't use HAVE_CHISE_CLIENT.
758
759         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
760         defined or HAVE_LIBCHISE_LIBCHISE is defined.
761         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
762         is defined.
763         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
764         HAVE_CHISE to specify using with libchise.
765         (syms_of_chartab): Don't define symbol `system-char-id' when
766         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
767
768 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
769
770         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
771         specify CHISE DB support.
772         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
773         of `char_attribute_system_db_file' to check feature DB file.
774
775         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
776         HAVE_CHISE_CLIENT to specify CHISE DB support.
777
778         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
779         specify CHISE DB support.
780         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
781         not defined.
782         (Freset_char_attribute_table): Use `chise_feature_setup_db'
783         instead of `char_attribute_system_db_file' to check feature DB
784         file.
785
786 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
787
788         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
789         `HAVE_CHISE_CLIENT'.
790
791 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
792
793         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
794         (Fsave_charset_mapping_table): Don't use
795         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
796
797         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
798         (HAVE_LIBCHISE): New macro.
799
800         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
801
802         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
803         (Fsave_char_attribute_table): Don't use
804         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
805
806 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
807
808         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
809         defined.
810         (save_uint16_byte_table): Likewise.
811         (save_byte_table): Likewise.
812         (char_table_get_db): Use `chise_ds_load_char_feature_value'
813         instead of `chise_char_load_feature_value'.
814         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
815
816 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
817
818         * chartab.h (struct Lisp_Char_Table): Delete member
819         `feature_table' if CHISE is defined.
820
821         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
822         (Fcopy_char_table): Likewise.
823         (char_table_open_db_maybe): Likewise.
824         (char_table_close_db_maybe): Likewise.
825         (char_table_get_db): Likewise.
826         (Fmount_char_attribute_table): Likewise.
827         (Fload_char_attribute_table): Likewise.
828
829 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
830
831         * mule-charset.c (load_char_decoding_entry_maybe): Use
832         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
833         `chise_ccs_decode'.
834
835 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
836
837         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
838         instead of `chise_open_data_source'.
839         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
840         `chise_ds_close'.
841
842 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
843
844         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
845         instead of `chise_ds_open_feature_table'.
846         (char_table_close_db_maybe): Don't use `chise_ft_close'.
847
848 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
849
850         * mule-charset.c (Fsave_charset_mapping_table): Use
851         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
852         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
853         `chise_ccs_sync' instead of `chise_ccst_close'.
854         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
855
856         * chartab.c (open_chise_data_source_maybe): Modify for
857         `chise_open_data_source'.
858         (char_table_open_db_maybe): Modify for
859         `chise_ds_open_feature_table'.
860
861 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
862
863         * mule-charset.c (load_char_decoding_entry_maybe): Use
864         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
865         `chise_ccst_close'.
866
867 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
868
869         * mule-charset.c (Fsave_charset_mapping_table): Use
870         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
871         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
872         `chise_dt_put_char' and `chise_dt_close'.
873         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
874         `chise_ccs_decode' and `chise_ccst_close' instead of
875         `chise_ds_open_decoding_table', `chise_dt_get_char' and
876         `chise_dt_close'.
877
878         * chartab.c (char_table_get_db): Use
879         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
880         (load_char_attribute_table_map_func): Modify for
881         `chise_char_feature_value_iterate'.
882         (Fload_char_attribute_table): Use
883         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
884
885 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
886
887         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
888
889 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
890
891         * chartab.c (put_char_table): Modify for inherited coded-charsets
892         in XEmacs CHISE.
893
894 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
895
896         * chartab.c (Fput_char_table_map_function): Fixed.
897         (word_boundary_p): Don't check charset in XEmacs CHISE.
898
899 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
900
901         * mule-charset.c (Fsave_charset_mapping_table): Use
902         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
903         instead of `chise_open_decoding_table'; refer
904         `default_chise_data_source'; use `chise_dt_close' instead of
905         `chise_close_decoding_table'.
906         (load_char_decoding_entry_maybe): Likewise.
907
908         * chartab.c (default_chise_data_source): New variable when `CHISE'
909         is defined.
910         (Fcopy_char_table): `ct->ds' is deleted.
911         (open_chise_data_source_maybe): New function.
912         (Fclose_char_data_source): New function.
913         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
914         use `chise_ds_open_feature_table' instead of
915         `chise_open_feature_table'.
916         (char_table_close_db_maybe): Use `chise_ft_close' instead of
917         `chise_close_feature_table'; `cit->ds' is deleted.
918         (syms_of_chartab): Add new builtin function
919         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
920
921         * chartab.h (default_chise_data_source): New extern variable.
922         (open_chise_data_source_maybe): New prototype.
923         (struct Lisp_Char_Table): Delete `ds'.
924
925 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
926
927         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
928         `CHISE' is defined.
929
930 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
931
932         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
933         not defined; add code for non-libchise setting.
934         (char_table_close_db_maybe): Likewise.
935         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
936         defined.
937         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
938         even if `CHISE' is not defined.
939         (Freset_char_attribute_table): Likewise.
940         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
941         `char_table_close_db_maybe' even if `CHISE' is not defined; use
942         `char_table_get_db'.
943         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
944         `char_table_close_db_maybe' even if `CHISE' is not defined.
945
946 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
947
948         * chartab.c (char_table_open_db_maybe): New function.
949         (char_table_close_db_maybe): New function.
950         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
951         (Freset_char_attribute_table): Likewise.
952         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
953         `char_table_close_db_maybe'.
954         (Fload_char_attribute_table): Likewise.
955
956 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
957
958         * chartab.c: Don't include <chise.h> because it is included in
959         chartab.h.
960         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
961         defined.
962         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
963         `CHISE' is defined.
964         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
965         `CHISE' is defined.
966         (Fclose_char_attribute_table): Close `ct->feature_table' and
967         `ct->ds' when `CHISE' is defined.
968         (Freset_char_attribute_table): Likewise.
969         (load_char_attribute_maybe): Use `cit->ds' and
970         `cit->feature_table' when `CHISE' is defined.
971         (Fload_char_attribute_table): Likewise.
972
973         * chartab.h: Include <chise.h> when `CHISE' is defined.
974         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
975         when `CHISE' is defined.
976
977 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
978
979         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
980         is defined.
981         (char_table_description): Likewise.
982         (Fmake_char_table): Likewise.
983         (Fcopy_char_table): Likewise.
984         (Fmount_char_attribute_table): Likewise.
985         (Fclose_char_attribute_table): Likewise.
986         (Freset_char_attribute_table): Likewise.
987         (load_char_attribute_maybe): Likewise.
988         (Fload_char_attribute_table): Likewise.
989
990         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
991         defined.
992
993 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
994
995         * chartab.c (load_char_attribute_table_map_func): New function
996         when CHISE is defined.
997         (Qload_char_attribute_table_map_function): Don't define when CHISE
998         is defined.
999         (Fload_char_attribute_table_map_function): Likewise.
1000         (Fload_char_attribute_table): Use libchise when `CHISE' is
1001         defined.
1002         (syms_of_chartab): Don't define
1003         `load-char-attribute-table-map-function' when CHISE is defined.
1004
1005 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1006
1007         * chartab.c: Include <chise.h> when `CHISE' is defined.
1008         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1009
1010 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1011
1012         * mule-charset.c (charset_code_point): Fix problem when searching
1013         in mother CCS fails with `defined_only' mode.
1014
1015 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1016
1017         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1018         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1019         (put_char_composition): Likewise.
1020         (Fput_char_attribute): Likewise.
1021         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1022
1023 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1024
1025         * chartab.c (Q_ucs): Deleted.
1026         (Fput_char_attribute): Don't refer `->ucs'.
1027         (Fdefine_char): Likewise.
1028         (Ffind_char): Likewise.
1029         (syms_of_chartab): Delete `->ucs'.
1030
1031 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1032
1033         * mule-charset.c (Qmap_cns11643_2): Renamed from
1034         `Qchinese_cns11643_2'.
1035         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1036         `chinese-cns11643-2'.
1037         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1038         `=cns11643-2'.
1039
1040 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1041
1042         * mule-charset.c (Qmap_cns11643_1): Renamed from
1043         `Qchinese_cns11643_1'.
1044         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1045         `chinese-cns11643-1'.
1046         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1047         `=cns11643-1'.
1048
1049 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1050
1051         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1052         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1053         `chinese-gb12345'.
1054         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1055         `=gb12345'.
1056
1057 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1058
1059         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1060         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1061         `chinese-gb2312'.
1062         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1063         `=gb2312'.
1064
1065 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1066
1067         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1068         (syms_of_mule_charset): Add new symbol `=big5' instead of
1069         `chinese-big5'.
1070         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1071
1072 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1073
1074         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1075         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1076         `korean-ksc5601'.
1077         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1078         `=ks-x1001'.
1079
1080 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1081
1082         * mule-charset.c (Qmap_jis_x0212): Renamed from
1083         `Qjapanese_jisx0212'.
1084         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1085         `japanese-jisx0212'.
1086         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1087         `=jis-x0212'.
1088
1089 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1090
1091         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1092         `Qjapanese_jisx0208'.
1093         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1094         of `japanese-jisx0208'.
1095         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1096         `=jis-x0208-1983'.
1097
1098 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1099
1100         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1101         `Qjapanese_jisx0208_1978'.
1102         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1103         of `japanese-jisx0208-1978'.
1104         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1105         `=jis-x0208-1978'.
1106
1107 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1108
1109         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1110         only for XEmacs CHISE.
1111
1112 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1113
1114         * char-ucs.h: Compact non-ISO-IR charset-ids.
1115         (LEADING_BYTE_UCS): Changed to -177.
1116         (LEADING_BYTE_CONTROL_1): Changed to -77.
1117         (LEADING_BYTE_UCS_BMP): Changed to -176.
1118         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1119
1120 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1121
1122         * mule-charset.c (Qiso_ir): New variable.
1123         (Fmake_charset): Recognise new property `iso-ir'.
1124         (syms_of_mule_charset): Add new symbol `iso-ir'.
1125
1126 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1127
1128         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1129         n to -n; charset-id of non ISO-IR sets are changed to positive
1130         numbers.
1131
1132 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1133
1134         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1135         for &MCS-XXXXXXXX; values.
1136
1137 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1138
1139         * mule.c (Vxemacs_chise_version): Renamed from
1140         `Vutf_2000_version'.
1141         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1142         `utf-2000-version' as an alias for `xemacs-chise-version'.
1143
1144 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1145
1146         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1147         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1148         defined.
1149
1150         * config.h.in (CHISE): New macro.
1151
1152 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1153
1154         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1155         of `ucs'.
1156         (Qmap_ucs): New variable.
1157         (syms_of_mule_charset): Add new symbol `=ucs'.
1158         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1159
1160         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1161         (simplify_char_spec): Likewise.
1162
1163         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1164
1165         * char-ucs.h (Qmap_ucs): New extern variable.
1166
1167 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1168
1169         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1170         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1171         don't define it when UTF2000 is not defined.
1172         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1173         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1174         when UTF2000 is not defined.
1175         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1176         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1177
1178 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1179
1180         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1181
1182         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1183         (Qucs_gb): Deleted.
1184         (syms_of_mule_charset): Delete `ucs-gb'.
1185         (complex_vars_of_mule_charset): Likewise.
1186
1187 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1188
1189         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1190
1191         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1192         (Qucs_cns): Deleted.
1193         (syms_of_mule_charset): Delete `ucs-cns'.
1194         (complex_vars_of_mule_charset): Likewise.
1195
1196 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1197
1198         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1199
1200         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1201         (Qucs_jis): Deleted.
1202         (syms_of_mule_charset): Delete `ucs-jis'.
1203         (complex_vars_of_mule_charset): Likewise.
1204
1205 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1206
1207         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1208
1209         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1210         (Qucs_ks): Deleted.
1211         (syms_of_mule_charset): Delete `ucs-ks'.
1212         (complex_vars_of_mule_charset): Likewise.
1213
1214 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1215
1216         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1217         (Qideograph_daikanwa_2): Deleted.
1218         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1219         (complex_vars_of_mule_charset): Likewise.
1220
1221         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1222         (LEADING_BYTE_DAIKANWA_1): Deleted.
1223         (LEADING_BYTE_DAIKANWA_2): Deleted.
1224         (MIN_CHAR_DAIKANWA): Deleted.
1225         (MAX_CHAR_DAIKANWA): Deleted.
1226
1227 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1228
1229         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1230         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1231         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1232
1233         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1234         (Vcharset_ideograph_daikanwa): Deleted.
1235         (Qideograph_hanziku_{1..12}): Deleted.
1236         (Qideograph_daikanwa): Deleted.
1237         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1238         Vcharset_ideograph_daikanwa.
1239         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1240         `ideograph-hanziku-{1..12}'.
1241         (complex_vars_of_mule_charset): Likewise.
1242
1243 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1244
1245         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1246
1247         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1248         (Qideograph_gt_pj_{1..11}): Deleted.
1249         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1250         (complex_vars_of_mule_charset): Likewise.
1251
1252 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1253
1254         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1255         (Vcharset_ideograph_gt): Deleted.
1256         (Qucs_big5): Deleted.
1257         (Qideograph_gt): Deleted.
1258         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1259         `ideograph-gt'.
1260         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1261         and `ideograph-gt'.
1262
1263         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1264         (LEADING_BYTE_GT): Deleted.
1265         (MIN_CHAR_GT): Deleted.
1266         (MAX_CHAR_GT): Deleted.
1267
1268 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1269
1270         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1271
1272 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1273
1274         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1275         (save_uint16_byte_table): Likewise.
1276         (save_byte_table): Likewise; convert values by it.
1277         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1278         for `ideographic-structure'.
1279         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1280         as the filter for `ideographic-structure'.
1281
1282 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1283
1284         * chartab.c (put_char_composition): New function.
1285         (Fput_char_attribute): Use `put_char_composition'; use
1286         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1287
1288         * fns.c (simplify_char_spec): New function.
1289         (char_ref_simplify_spec): New function.
1290         (Fchar_refs_simplify_char_specs): New function.
1291         (syms_of_fns): Add new builtin function
1292         `char-refs-simplify-char-specs'.
1293
1294 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1295
1296         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1297         (Qideograph_cbeta): Deleted.
1298         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1299         (complex_vars_of_mule_charset): Likewise.
1300
1301         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1302         (MIN_CHAR_CBETA): Comment out.
1303         (MAX_CHAR_CBETA): Likewise.
1304
1305 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1306
1307         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1308         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1309         CHISE client feature.
1310
1311 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1312
1313         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1314
1315 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1316
1317         * mule-charset.c (charset_lookup_description_1): Use
1318         `NUM_LEADING_BYTES' in UTF-2000.
1319
1320 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1321
1322         * char-ucs.h (GC_CHARSETP): Deleted.
1323
1324 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1325
1326         * char-ucs.h (MAX_CHAR_GT): Updated.
1327
1328 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1329
1330         * text-coding.c: Sync with XEmacs 21.4.10.
1331
1332 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1333
1334         * mule-charset.c (Vcharset_china3_jef): Deleted.
1335         (Qchina3_jef): Deleted.
1336         (syms_of_mule_charset): Don't define `china3-jef'.
1337         (complex_vars_of_mule_charset): Likewise.
1338
1339         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1340         (MIN_CHAR_CHINA3_JEF): Comment out.
1341         (MAX_CHAR_CHINA3_JEF): Comment out.
1342
1343 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1344
1345         * mule-charset.c (Vcharset_ucs_gb): New variable.
1346         (Qucs_gb): New variable.
1347         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1348         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1349
1350         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1351
1352 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1353
1354         * mule-charset.c (charset_code_point): if a coded-charset has a
1355         final-byte, don't inherit the builtin range of the mother CCS.
1356
1357 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1358
1359         * mule-charset.c (charset_code_point): Fix problem about
1360         inheritance.
1361
1362 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1363
1364         * mule-charset.c (decode_builtin_char): Reorganized.
1365
1366 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1367
1368         * text-coding.c (char_encode_as_entity_reference): Modify for
1369         `charset_code_point'.
1370         (char_encode_shift_jis): Likewise.
1371         (char_encode_big5): Likewise.
1372         (char_encode_utf8): Likewise.
1373         (char_encode_iso2022): Likewise.
1374
1375         * mule-charset.c (charset_code_point): Add new argument
1376         `defined_only'.
1377         (Fencode_char): Add new optional argument `defined_only'.
1378
1379         * chartab.c (put_char_table): Modify for `charset_code_point'.
1380
1381         * char-ucs.h (charset_code_point): Add new argument
1382         `defined_only'.
1383         (encode_char_1): Modify for `charset_code_point'.
1384
1385 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1386
1387         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1388         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1389
1390 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1391
1392         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1393         (Qjis_x0208): Likewise.
1394         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1395         XCHARSET_FINAL(charset).
1396         (charset_code_point): Modify condition for final-byte based
1397         builtin-chars.
1398         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1399         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1400         in UTF-2000; specify `=jis-x0208' as the mother of
1401         `japanese-jisx0208-1978', `japanese-jisx0208' and
1402         `japanese-jisx0208-1990' in UTF-2000.
1403
1404 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1405
1406         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1407
1408 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1409
1410         * text-coding.c (decode_coding_utf16): Support UTF-16.
1411         (char_encode_utf16): Fixed.
1412
1413 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1414
1415         * text-coding.c (Qutf16): New variable in MULE.
1416         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1417         (Fcoding_system_type): Add `utf-16' in MULE.
1418         (struct detection_state): Add a structure for utf16 in MULE.
1419         (detect_coding_type): Setup st->utf16.mask in MULE.
1420         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1421         MULE.
1422         (reset_encoding_stream): Use `char_encode_utf16' and
1423         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1424         (detect_coding_utf16): New function [incomplete].
1425         (decode_coding_utf16): New function [support only UCS-2].
1426         (char_encode_utf16): New function.
1427         (char_finish_utf16): New function.
1428         (syms_of_file_coding): Add new symbol `utf-16'; setup
1429         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1430
1431         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1432         UTF-2000.
1433         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1434         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1435
1436 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1437
1438         * chartab.c (put_char_table): When a charset is specified as a
1439         range in UTF-2000, don't support builtin characters.
1440
1441 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1442
1443         * mule-charset.c (decode_defined_char): Don't refer external
1444         database if Qunbound or Qnil are found.
1445         (Fsave_charset_mapping_table): Don't define it if
1446         HAVE_CHISE_CLIENT is not defined.
1447         (Freset_charset_mapping_table): New function.
1448         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1449         found in external database.
1450         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1451         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1452         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1453
1454 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1455
1456         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1457         not.
1458
1459 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1460
1461         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1462         Q_lowercase, Q_uppercase in UTF-2000.
1463
1464         * chartab.c (get_char_table): Add special code for the standard
1465         case table to use character attribute `->downcase' and
1466         `->uppercase' for case operations in UTF-2000.
1467
1468         * casetab.c (Qflippedcase): New variable in UTF-2000.
1469         (Q_lowercase): Likewise.
1470         (Q_uppercase): Likewise.
1471         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1472         and `->uppercase' in UTF-2000.
1473         (complex_vars_of_casetab): Assign attribute name `downcase' to
1474         downcase and CANON table of Vstandard_case_table in UTF-2000;
1475         assign attribute name `flippedcase' to upcase and EQV table of
1476         Vstandard_case_table in UTF-2000.
1477
1478 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1479
1480         * text-coding.c (decode_add_er_char): Support isolated-chars.
1481         (char_encode_as_entity_reference): Likewise.
1482
1483 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1484
1485         * emacs.c (Vutf_2000_lisp_directory): New variable.
1486         (Vconfigure_utf_2000_lisp_directory): Likewise.
1487         (complex_vars_of_emacs): Add new variable
1488         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1489
1490 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1491
1492         * char-ucs.h (DECODE_CHAR): Delete special code for
1493         `chinese-big5-1' and `chinese-big5-2'.
1494
1495         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1496         (Qbig5_2): Likewise.
1497         (decode_defined_char): Support CONVERSION_BIG5_1 and
1498         CONVERSION_BIG5_2.
1499         (decode_builtin_char): Likewise.
1500         (charset_code_point): Likewise.
1501         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1502         'conversion in UTF-2000.
1503         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1504         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1505         `chinese-big5-2' as children of `chinese-big5'.
1506
1507         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1508         (CONVERSION_BIG5_2): New macro.
1509
1510 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1511
1512         * text-coding.c (char_encode_big5): Support entity-reference.
1513
1514 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1515
1516         * text-coding.c (char_encode_as_entity_reference): New function.
1517         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1518
1519 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1520
1521         * text-coding.c (decode_coding_big5): Support entity-reference
1522         decoding feature.
1523
1524 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1525
1526         * text-coding.c (allocate_coding_system): Initialize initial
1527         charsets for CODESYS_UTF8.
1528         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1529         charset-g2 for CODESYS_UTF8.
1530         (decode_coding_utf8): Use charset-g0.
1531         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1532         to force variants to map to UCS.
1533
1534 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1535
1536         * text-coding.c (Qutf_8_mcs): New variable.
1537         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1538         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1539         instead of `utf-8' in UTF-2000.
1540
1541 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1542
1543         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1544         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1545         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1546         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1547         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1548         CONVERSION_96x96x96x96 are introduced.
1549         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1550         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1551         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1552
1553         * char-ucs.h (CONVERSION_94): New macro.
1554         (CONVERSION_96): New macro.
1555         (CONVERSION_94x94): New macro.
1556         (CONVERSION_96x96): New macro.
1557         (CONVERSION_94x94x94): New macro.
1558         (CONVERSION_96x96x96): New macro.
1559         (CONVERSION_94x94x94x60): New macro.
1560         (CONVERSION_94x94x94x94): New macro.
1561         (CONVERSION_96x96x96x96): New macro.
1562
1563 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1564
1565         * chartab.c (Vcharacter_variant_table): Deleted.
1566         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1567         of `Vcharacter_variant_table'.
1568         (Fput_char_attribute): Likewise.
1569         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1570         (complex_vars_of_chartab): Likewise.
1571
1572 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1573
1574         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1575
1576         * fns.c (Qideographic_structure): New variable.
1577         (Qkeyword_char): New variable.
1578         (ids_format_unit): New function.
1579         (Fideographic_structure_to_ids): New function.
1580         (syms_of_fns): Add new symbols `ideographic-structure' and
1581         `:char'; add new builtin function `ideographic-structure-to-ids'.
1582
1583         * data.c (Fchar_ref_p): New function.
1584         (syms_of_data): Add new builtin function `char-ref-p'.
1585
1586         * chartab.h: Add an EXFUN for `Ffind_char'.
1587
1588 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1589
1590         * text-coding.c (Vcharacter_composition_table): Deleted.
1591         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1592         in every UTF-2000.
1593
1594         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1595         UTF-2000.
1596         (Vcharacter_composition_table): Deleted.
1597         (Fget_composite_char): Use the implementation for external-DB
1598         support in every UTF-2000.
1599         (Fput_char_attribute): Likewise.
1600         (char_attribute_system_db_file): Don't define if external-DB
1601         feature is not available.
1602         (Fsave_char_attribute_table): Likewise.
1603         (Fmount_char_attribute_table): Likewise.
1604         (Fclose_char_attribute_table): Likewise.
1605         (Freset_char_attribute_table): Likewise.
1606         (Fload_char_attribute_table): Likewise.
1607         (syms_of_chartab): Don't define `save-char-attribute-table',
1608         `mount-char-attribute-table', `reset-char-attribute-table',
1609         `close-char-attribute-table' and `load-char-attribute-table' if
1610         external-DB feature is not available.
1611         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1612
1613 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1614
1615         * text-coding.c (Qcomposition): Add extern if external-DB feature
1616         is supported.
1617         (Vcharacter_composition_table): Don't add extern if external-DB
1618         feature is supported.
1619         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1620         character composition rule if external-DB feature is supported.
1621
1622         * chartab.c (Vcharacter_composition_table): Don't define if
1623         external-DB feature is supported.
1624         (Qcomposition): New variable.
1625         (Fget_composite_char): New implementation for external-DB support.
1626         (Fput_char_attribute): Use `composition' property of each
1627         character instead of `Vcharacter_composition_table' to store
1628         character-composition rules if external-DB feature is supported.
1629         (syms_of_chartab): Add new symbol `composition'.
1630         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1631         external-DB feature is supported.
1632
1633 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1634
1635         * chartab.c (Vchar_db_stingy_mode): New variable.
1636         (load_char_attribute_maybe): Close database if
1637         Vchar_db_stingy_mode is not NIL.
1638         (Fload_char_attribute_table_map_function): Use
1639         `get_char_id_table_0' instead of `get_char_id_table'.
1640         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1641
1642         * chartab.h (get_char_id_table_0): New inline function.
1643         (get_char_id_table): Use `get_char_id_table_0'.
1644
1645 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1646
1647         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1648         and `COMPOSE_ADD_CHAR'.
1649         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1650
1651 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1652
1653         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1654         instead of `DECODE_ADD_UCS_CHAR'.
1655         (COMPOSE_ADD_CHAR): Likewise.
1656
1657 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1658
1659         * text-coding.c (decode_flush_er_chars): New inline function.
1660         (decode_add_er_char): New function.
1661         (decode_coding_utf8): Use `decode_flush_er_chars' and
1662         `decode_add_er_char'.
1663
1664 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1665
1666         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1667         done before `decode_output_utf8_partial_char'.
1668
1669         * mule-charset.c (complex_vars_of_mule_charset): Specify
1670         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1671         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1672
1673 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1674
1675         * mule-charset.c (decode_defined_char): New function; search
1676         mother.
1677         (decode_builtin_char): Don't search mother if
1678         XCHARSET_MAX_CODE(charset) == 0.
1679         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1680         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1681         (Fdecode_char): Use `decode_defined_char' instead of
1682         `DECODE_DEFINED_CHAR'.
1683         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1684         mother of `Vcharset_ucs_jis'.
1685
1686         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1687         instead of `DECODE_DEFINED_CHAR'.
1688
1689         * char-ucs.h (decode_defined_char): Renamed from
1690         `DECODE_DEFINED_CHAR'; changed to normal function.
1691         (DECODE_CHAR): Use `decode_defined_char' instead of
1692         `DECODE_DEFINED_CHAR'.
1693
1694         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1695
1696 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1697
1698         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1699
1700         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1701         variable.
1702         (Quse_entity_reference): New variable.
1703         (Qd): New variable.
1704         (Qx): New variable.
1705         (QX): New variable.
1706         (coding_system_description): Add description for
1707         `ccs_priority_list'.
1708         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1709         (allocate_coding_system): Initialize `ccs_priority_list' in
1710         UTF-2000.
1711         (Fmake_coding_system): Add description about
1712         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1713         (codesys).
1714         (Fcoding_system_property): Accept `disable-composition' and
1715         `use-entity-reference' in UTF-2000.
1716         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1717         in UTF-2000.
1718         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1719         (decode_coding_utf8): Decode entity-reference if
1720         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1721         (char_encode_utf8): Encode non-Unicode characters as
1722         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1723         (str->codesys).
1724         (syms_of_file_coding): Add new symbols `use-entity-reference',
1725         `d', `x', `X'.
1726         (vars_of_file_coding): Add new variable
1727         `coded-charset-entity-reference-alist'.
1728         (complex_vars_of_file_coding): Declare `disable-composition' and
1729         `use-entity-reference' to be coding-system-properties in UTF-2000.
1730
1731         * file-coding.h (struct Lisp_Coding_System): Add new member
1732         `use_entity_reference' and `ccs_priority_list'.
1733         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1734         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1735         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1736
1737 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1738
1739         * chartab.c (save_uint8_byte_table): Don't clear the table.
1740         (save_uint16_byte_table): Likewise.
1741         (save_byte_table): Likewise.
1742         (Fmount_char_attribute_table): New function.
1743         (syms_of_chartab): Add new builtin function
1744         `mount-char-attribute-table'.
1745
1746 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1747
1748         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1749         "w+" mode.
1750         (load_char_decoding_entry_maybe): Open database as read-only mode.
1751
1752         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1753         open database as "w+" mode.
1754         (load_char_attribute_maybe): Open database as read-only mode.
1755         (Fload_char_attribute_table): Likewise.
1756
1757 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1758
1759         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1760         (char_table_description): Delete member `db_file'.
1761         (Fmake_char_table): Don't refer `ct->db_file'.
1762         (Fcopy_char_table): Likewise.
1763         (Fsave_char_attribute_table): Likewise.
1764         (Fclose_char_attribute_table): Likewise.
1765         (Freset_char_attribute_table): Likewise.
1766         (load_char_attribute_maybe): Likewise.
1767         (Fload_char_attribute_table): Likewise.
1768
1769         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1770
1771 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1772
1773         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1774         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1775         `ct->db' is living.
1776         (load_char_attribute_maybe): Likewise.
1777         (Fload_char_attribute_table): Likewise.
1778
1779 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1780
1781         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1782         `ct->db_file' unconditionally.
1783
1784 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1785
1786         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1787         UTF-2000.
1788         (char_table_description): Add description for `db_file' and `db'
1789         in UTF-2000.
1790         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1791         UTF-2000.
1792         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1793         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1794         (Fclose_char_attribute_table): New function.
1795         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1796         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1797         and `cit->db'.
1798         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1799         (syms_of_chartab): Add new builtin function
1800         `Fclose_char_attribute_table'.
1801
1802 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1803
1804         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1805         `db' in UTF-2000.
1806         (load_char_attribute_maybe): Change interface.
1807         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1808
1809 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1810
1811         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1812
1813 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1814
1815         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1816         instead of `DECODE_CHAR' for mother; don't use special code for
1817         chinese-big5 to use code space of chinese-big5-1 and
1818         chinese-big5-2.
1819         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1820         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1821
1822         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1823         (MAX_CHAR_BIG5_CDP): Revival.
1824
1825 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1826
1827         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1828         the XLFD registry-encoding name of `chinese-big5'.
1829
1830 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1831
1832         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1833         (Qchinese_big5_cdp): Deleted.
1834         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1835         (complex_vars_of_mule_charset): Delete coded-charset
1836         `chinese-big5-cdp'.
1837
1838         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1839         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1840         `CHARSET_ID_OFFSET - n' for private CCS.
1841         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1842         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1843         of `MIN_LEADING_BYTE'.
1844         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1845         `(CHARSET_ID_OFFSET - 97)'.
1846         (MIN_CHAR_BIG5_CDP): Deleted.
1847         (MAX_CHAR_BIG5_CDP): Deleted.
1848
1849 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1850
1851         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1852
1853 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1854
1855         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1856         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1857         chartab.c].
1858
1859         * chartab.c (Vutf_2000_version): Moved to mule.c.
1860         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1861
1862 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1863
1864         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1865         when HAVE_CHISE_CLIENT is not defined.
1866
1867         * mule.c (vars_of_mule): Provide feature `chise' when
1868         HAVE_CHISE_CLIENT is defined.
1869
1870 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1871
1872         * config.h.in (UTF2000): Add comment.
1873         (HAVE_CHISE_CLIENT): New macro.
1874
1875 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1876
1877         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1878         CONSP.
1879         (Fput_char_attribute): Likewise.
1880         (char_attribute_system_db_file): Encode file-name of attribute.
1881         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1882         the initial value.
1883
1884 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1885
1886         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1887         (Fsave_charset_mapping_table): Use
1888         `char_attribute_system_db_file'.
1889         (load_char_decoding_entry_maybe): Likewise.
1890
1891         * chartab.h (Qsystem_char_id): New external variable.
1892         (char_attribute_system_db_file): New prototype.
1893
1894         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1895         (char_attribute_system_db_file): New function.
1896         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1897         (Freset_char_attribute_table): Likewise.
1898         (load_char_attribute_maybe): Likewise.
1899         (Fload_char_attribute_table): Likewise.
1900         (syms_of_chartab): Add new symbol `system-char-id'.
1901
1902 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1903
1904         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1905         `XCHARSET_GRAPHIC(ccs)'.
1906
1907 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1908
1909         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1910
1911 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1912
1913         * chartab.c (Q_ucs_variants): New variable.
1914         (syms_of_chartab): Add new symbol `->ucs-variants'.
1915         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1916         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1917         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1918
1919         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1920
1921         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1922         `HAVE_DATABASE' is defined.
1923         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1924         `HAVE_DATABASE' is defined.
1925
1926 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1927
1928         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1929         attribute-table.
1930         (Freset_char_attribute_table): New function.
1931         (syms_of_chartab): Add new builtin function
1932         `reset-char-attribute-table'.
1933
1934 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1935
1936         * chartab.c (load_char_attribute_maybe): Don't make directories.
1937
1938 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1939
1940         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1941
1942         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1943         for decoding-table.
1944
1945 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1946
1947         * mule-charset.c (Fsave_charset_mapping_table): Use
1948         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1949
1950         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1951         instead of `XCHARSET_CHARS'.
1952
1953 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1954
1955         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1956         (XCHARSET_BYTE_SIZE): Likewise.
1957
1958         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1959         mule-charset.c].
1960         (XCHARSET_BYTE_SIZE): Likewise.
1961
1962 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1963
1964         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1965         data-directory to store database.
1966         (Fsave_char_attribute_table): Likewise.
1967         (load_char_attribute_maybe): Likewise.
1968         (Fload_char_attribute_table): Likewise.
1969
1970 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1971
1972         * mule-charset.c (Fsave_charset_mapping_table): New function.
1973         (syms_of_mule_charset): Add new builtin function
1974         `save-charset-mapping-table'.
1975
1976 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1977
1978         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1979         (get_ccs_octet_table): New inline function.
1980         (put_ccs_octet_table): Likewise.
1981         (decoding_table_put_char): Use `get_ccs_octet_table' and
1982         `put_ccs_octet_table'.
1983         (decoding_table_remove_char): Use `decoding_table_put_char'.
1984         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1985
1986         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1987         into encoding_table.
1988         (make_charset): Use Qunbound instead Qnil as initial value of
1989         decoding_table.
1990
1991 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1992
1993         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1994         element is Qunloaded.
1995         (map_over_uint16_byte_table): Likewise.
1996         (map_over_byte_table): Likewise.
1997         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1998         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1999         database support, load encoding-table of the specified
2000         coded-charset if it is not loaded yet.
2001         (save_uint8_byte_table): New function of UTF-2000 with external
2002         database support.
2003         (save_uint16_byte_table): Likewise.
2004         (save_byte_table): Likewise.
2005         (Fput_char_attribute): Don't store value into external database
2006         even if the external database feature is supported in UTF-2000;
2007         set `attribute' as name of char-table if the external database
2008         feature is supported.
2009         (Fsave_char_attribute_table): New function in UTF-2000.
2010         (syms_of_chartab): Add new builtin function
2011         `save-char-attribute-table' in UTF-2000.
2012
2013 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2014
2015         * chartab.c (char_attribute_table_to_put): New variable in
2016         UTF-2000.
2017         (Qput_char_table_map_function): Likewise.
2018         (value_to_put): Likewise.
2019         (Fput_char_table_map_function): New function in UTF-2000.
2020         (put_char_table): Use `Fmap_char_attribute' for
2021         CHARTAB_RANGE_CHARSET in UTF-2000.
2022         (Fput_char_attribute): Store symbol instead of string in
2023         `XCHAR_TABLE_NAME (table)'.
2024         (load_char_attribute_maybe): Likewise.
2025         (syms_of_chartab): Add new symbol/function
2026         `put-char-table-map-function'.
2027
2028 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2029
2030         * database.h: Add new EXFUN for `Fmap_database'.
2031
2032         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2033         (syms_of_database): Likewise.
2034
2035         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2036         UTF-2000.
2037         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2038         (XCHAR_TABLE_UNLOADED): Likewise.
2039
2040         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2041         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2042         HAVE_DATABASE is defined.
2043         (char_attribute_table_to_load): New variable of UTF-2000 with
2044         external database support.
2045         (Qload_char_attribute_table_map_function): Likewise.
2046         (Fload_char_attribute_table_map_function): New function of
2047         UTF-2000 with external database support.
2048         (Fload_char_attribute_table): New function of UTF-2000.
2049         (Fmap_char_attribute): Call Fload_char_attribute_table if
2050         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2051         (syms_of_chartab): Add new symbol and function
2052         `load-char-attribute-table-map-function' in UTF-2000 with external
2053         database support; add new function `load-char-attribute-table' in
2054         UTF-2000.
2055
2056 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2057
2058         * chartab.h (load_char_attribute_maybe): New prototype for
2059         UTF-2000 with DATABASE support.
2060         (get_char_id_table): Use `load_char_attribute_maybe' if
2061         HAVE_DATABASE is defined.
2062
2063         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2064         with DATABASE support.
2065
2066 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2067
2068         * chartab.c (Fput_char_attribute): Use S-expression as key of
2069         external database.
2070
2071         * chartab.h (get_char_id_table): Use S-expression as key of
2072         external database.
2073
2074 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2075
2076         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2077         if an element is not loaded, load the corresponding attributes
2078         from an external database.
2079         (map_over_uint16_byte_table): Likewise.
2080         (map_over_byte_table): Likewise.
2081         (map_char_table): Modify for `map_over_uint8_byte_table',
2082         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2083         element is not loaded, load the corresponding attributes from an
2084         external database.
2085         (Fput_char_attribute): Change initial values to Qunloaded.
2086
2087         * chartab.h (get_char_id_table): If a character attribute is not
2088         loaded and the attribute value is not found in an external
2089         database, store Qunbound as the attribute value.
2090
2091 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2092
2093         * chartab.c (BT_UINT8_unloaded): New macro.
2094         (UINT8_VALUE_P): Accept Qunloaded.
2095         (UINT8_ENCODE): Likewise.
2096         (UINT8_DECODE): Likewise.
2097         (BT_UINT16_unloaded): New macro.
2098         (UINT16_VALUE_P): Accept Qunloaded.
2099         (UINT16_ENCODE): Likewise.
2100         (UINT16_DECODE): Likewise.
2101         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2102         BT_UINT16_unloaded.
2103         (mark_char_table): Mark `ct->name' in UTF-2000.
2104         (char_table_description): Add `name' in UTF-2000.
2105         (Fmake_char_table): Initialize `ct->name'.
2106         (Fcopy_char_table): Copy `ct->name'.
2107         (Fput_char_attribute): Store value into an external database if
2108         HAVE_DATABASE is defined.
2109
2110         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2111         UTF-2000.
2112         (CHAR_TABLE_NAME): New macro in UTF-2000.
2113         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2114         (get_char_id_table): Try to read an external database if Qunloaded
2115         is stored in a table.
2116
2117         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2118         Qunloaded.
2119
2120 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2121
2122         * database.h: Add EXFUN definitions for Fopen_database,
2123         Fput_database, Fget_database and Fclose_database.
2124
2125         * data.c (Qunloaded): New variable in UTF-2000.
2126
2127         * lisp.h (Qunloaded): New variable in UTF-2000.
2128
2129 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2130
2131         * mule-charset.c (put_char_ccs_code_point): Modify for
2132         `decoding_table_remove_char' and `decoding_table_put_char'.
2133         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2134
2135         * char-ucs.h (decoding_table_remove_char): Change arguments to
2136         hide decoding_table vector.
2137         (decoding_table_put_char): Likewise.
2138
2139 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2140
2141         * mule-charset.c (decoding_table_remove_char): Moved to
2142         char-ucs.h.
2143         (decoding_table_put_char): Likewise.
2144
2145         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2146         from mule-charset.c].
2147         (decoding_table_remove_char): New inline function [moved from
2148         mule-charset.c].
2149         (decoding_table_put_char): Likewise.
2150
2151 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2152
2153         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2154         extension.
2155
2156 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2157
2158         * mule-charset.c (decode_builtin_char): Support mother charsets.
2159
2160 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2161
2162         * mule-charset.c (Q94x94x60): New variable.
2163         (charset_code_point): Support conversion `94x94x60'.
2164         (Fmake_charset): Likewise.
2165         (syms_of_mule_charset): Add new symbol `94x94x60'.
2166
2167         * char-ucs.h (CONVERSION_94x94x60): New macro.
2168
2169 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2170
2171         * mule-charset.c (charset_code_point): Unify code about
2172         `code-offset'.
2173
2174 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2175
2176         * mule-charset.c (charset_code_point): Merge code about builtin
2177         characters into code about mother charsets; don't use
2178         `range_charset_code_point'.
2179         (range_charset_code_point): Deleted.
2180
2181 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2182
2183         * mule-charset.c (Qcode_offset): New variable.
2184         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2185         `max-code'; accept new property `code-offset'.
2186         (syms_of_mule_charset): Add new symbol `code-offset'.
2187
2188 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2189
2190         * mule-charset.c (range_charset_code_point): Fixed.
2191
2192 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2193
2194         * mule-charset.c (decode_builtin_char): Change semantics of
2195         code-offset of coded-charset.
2196         (charset_code_point): Likewise.
2197         (range_charset_code_point): Likewise.
2198         (complex_vars_of_mule_charset): Modify for the change.
2199
2200 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2201
2202         * mule-charset.c (Fencode_char): Reverse arguments.
2203
2204         * mule-charset.c (charset_code_point): Fixed.
2205
2206 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2207
2208         * mule-charset.c (Vcharset_mojikyo): Deleted.
2209         (Vcharset_mojikyo_2022_1): Deleted.
2210         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2211         (Qmin_code): New variable in UTF-2000.
2212         (Qmax_code): Likewise.
2213         (Qmother): Likewise.
2214         (Qconversion): Likewise.
2215         (Q94x60): Likewise.
2216         (Qmojikyo): Deleted.
2217         (Qmojikyo_2022_1): Deleted.
2218         (Qmojikyo_pj_{1..22}): Deleted.
2219         (mark_charset): Mark `cs->mother'.
2220         (charset_description): Add description for `mother'.
2221         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2222         new arguments `mother' and `conversion'; use
2223         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2224         (charset_code_point): Moved from char-ucs.h; support `mother'
2225         charset feature.
2226         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2227         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2228         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2229         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2230         allow 2 as the value of `graphic' in UTF-2000; add new properties
2231         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2232         require `final' in UTF-2000; modify for `make_charset'.
2233         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2234         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2235         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2236         (Fencode_char): New function.
2237         (syms_of_mule_charset): Add new builtin function `encode-char' in
2238         UTF-2000; add new symbols `min-code', `max-code', `mother',
2239         `conversion' and `94x60'; delete symbols `mojikyo',
2240         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2241         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2242         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2243         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2244
2245         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2246         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2247
2248         * char-ucs.h (Vcharset_mojikyo): Deleted.
2249         (Vcharset_mojikyo_2022_1): Deleted.
2250         (LEADING_BYTE_MOJIKYO): Deleted.
2251         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2252         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2253         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2254         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2255         add new member `mother'; add new member `conversion'.
2256         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2257         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2258         (CHARSET_MOTHER): New macro.
2259         (CHARSET_CONVERSION): New macro.
2260         (CONVERSION_IDENTICAL): New macro.
2261         (CONVERSION_94x60): New macro.
2262         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2263         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2264         (XCHARSET_MOTHER): New macro.
2265         (XCHARSET_CONVERSION): New macro.
2266         (MIN_CHAR_MOJIKYO): Deleted.
2267         (MAX_CHAR_MOJIKYO): Deleted.
2268         (DECODE_MOJIKYO_2022): Deleted.
2269         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2270         (charset_code_point): Changed to non-inline function.
2271         (encode_char_1): Use `charset_code_point'.
2272         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2273
2274 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2275
2276         * lread.c (read_compiled_function): Fix prototype.
2277         (read_vector): Likewise.
2278
2279 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2280
2281         * lrecord.h (struct lrecord_header): Delete `older'.
2282         (set_lheader_implementation): Delete code for `older'.
2283         (set_lheader_older_implementation): Deleted.
2284         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2285         (OLDER_RECORD_P): Deleted.
2286         (OLDER_RECORD_HEADER_P): Deleted.
2287         (alloc_older_lcrecord): Deleted.
2288         (alloc_older_lcrecord_type): Deleted.
2289
2290         * alloc.c (all_older_lcrecords): Deleted.
2291         (alloc_older_lcrecord): Deleted.
2292         (disksave_object_finalization_1): Delete code for older objects.
2293         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2294         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2295
2296 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2297
2298         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2299         instead of `make_older_vector'.
2300         (put_char_ccs_code_point): Likewise.
2301         (mark_charset): Mark `cs->decoding_table'.
2302         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2303
2304         * lisp.h (make_older_vector): Deleted.
2305         (make_vector_newer): Deleted.
2306
2307         * config.h.in (HAVE_GGC): Deleted.
2308
2309         * alloc.c (make_older_vector): Deleted.
2310         (make_vector_newer_1): Deleted.
2311         (make_vector_newer): Deleted.
2312
2313 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2314
2315         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2316         (Qideograph_daikanwa_2): New variable.
2317         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2318         (complex_vars_of_mule_charset): Add new coded-charset
2319         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2320         `LEADING_BYTE_DAIKANWA'.
2321
2322         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2323         (LEADING_BYTE_DAIKANWA_1): New macro.
2324         (LEADING_BYTE_DAIKANWA_2): New macro.
2325         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2326
2327 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2328
2329         * mule-charset.c (complex_vars_of_mule_charset): Change
2330         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2331         the second revised version.
2332
2333 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2334
2335         * mule-charset.c (Vcharset_ucs_smp): New variable.
2336         (Vcharset_ucs_sip): New variable.
2337         (Qucs_smp): New variable.
2338         (Qucs_sip): New variable.
2339         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2340         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2341         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2342         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2343         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2344         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2345
2346         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2347         (LEADING_BYTE_UCS_SIP): New macro.
2348         (MIN_CHAR_SMP): New macro.
2349         (MAX_CHAR_SMP): New macro.
2350         (MIN_CHAR_SIP): New macro.
2351         (MAX_CHAR_SIP): New macro.
2352
2353 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2354
2355         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2356         utf-2000.
2357
2358 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2359
2360         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2361         value; don't store value into `encoding_table' of `Lisp_Charset'.
2362         (mark_charset): `encoding_table' was deleted.
2363         (charset_description): Likewise.
2364         (make_charset): Likewise.
2365         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2366         `put_char_ccs_code_point'.
2367
2368         * chartab.h (Fput_char_attribute): New EXFUN.
2369
2370         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2371         is unified with normal symbol space.
2372         (Fget_char_attribute): Likewise.
2373         (Fput_char_attribute): Likewise; behavior of
2374         `put_char_ccs_code_point' is changed.
2375
2376         * char-ucs.h: Include "elhash.h".
2377         (Vchar_attribute_hash_table): New external variable.
2378         (struct Lisp_Charset): Delete `encoding_table'.
2379         (CHARSET_ENCODING_TABLE): New implementation; refer
2380         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2381         `Lisp_Charset'.
2382
2383 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2384
2385         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2386         (cs) == 0.
2387
2388 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2389
2390         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2391         `chinese-big5'.
2392
2393 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2394
2395         * chartab.c (uint8_byte_table_description): New constant.
2396         (uint8-byte-table): Use `uint8_byte_table_description'.
2397         (uint16_byte_table_description): New constant.
2398         (uint16-byte-table): Use `uint16_byte_table_description'.
2399
2400 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2401
2402         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2403         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2404
2405 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2406
2407         * mule-charset.c (Vcharset_ucs_ks): New variable.
2408         (Qucs_ks): New variable.
2409         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2410         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2411
2412         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2413
2414 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2415
2416         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2417         (Fdecode_char): Likewise.
2418
2419         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2420         chartab.h.
2421         (Fdefine_char): Modify for Fdecode_char.
2422         (Ffind_char): Likewise.
2423
2424         * mule-charset.c (Fdecode_char): Add new optional argument
2425         `defined-only'.
2426         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2427
2428 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2429
2430         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2431         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2432         (allocate_coding_system): Initialize initial-charsets of
2433         CODESYS_BIG5 in XEmacs UTF-2000.
2434         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2435         CODESYS_BIG5 in XEmacs UTF-2000.
2436         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2437         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2438
2439         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2440         variables.
2441         (Qideograph_hanziku_{1 .. 12}): Likewise.
2442         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2443         .. 12}'.
2444         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2445         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2446         `ideograph-hanziku-{1 .. 12}'.
2447
2448         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2449         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2450         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2451         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2452         (DECODE_DEFINED_CHAR): New inline function.
2453         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2454
2455 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2456
2457         * mule-charset.c (Vcharset_china3_jef): Renamed from
2458         `Vcharset_japanese_jef_china3'.
2459         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2460         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2461         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2462         (syms_of_mule_charset): Rename `china3-jef' from
2463         `japanese-jef-china3'.
2464         (complex_vars_of_mule_charset): Likewise; rename
2465         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2466
2467         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2468         `LEADING_BYTE_JEF_CHINA3'.
2469         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2470         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2471
2472 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2473
2474         * mule-charset.c (encode_builtin_char_1): Comment out special code
2475         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2476
2477         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2478         (MAX_CHAR_MOJIKYO_0): Comment out.
2479         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2480         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2481         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2482         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2483
2484 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2485
2486         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2487         (Qideograph_cbeta): New variable.
2488         (encode_builtin_char_1): Comment out special code for
2489         coded-charset `mojikyo' and `japanese-jef-china3'.
2490         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2491         (complex_vars_of_mule_charset): Add new coded-charset
2492         `ideograph-cbeta'.
2493
2494         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2495         (MIN_CHAR_CBETA): New macro.
2496         (MAX_CHAR_CBETA): New macro.
2497
2498 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2499
2500         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2501         (LEADING_BYTE_JEF_CHINA3): New macro.
2502         (MIN_CHAR_JEF_CHINA3): New macro.
2503         (MAX_CHAR_JEF_CHINA3): Likewise.
2504         (DECODE_CHAR): Fixed.
2505
2506 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2507
2508         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2509         (Qjapanese_jef_china3): New variable.
2510         (encode_builtin_char_1): Support `japanese-jef-china3'.
2511         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2512         (complex_vars_of_mule_charset): Add new coded-charset
2513         `japanese-jef-china3'.
2514
2515 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2516
2517         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2518         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2519         94^4, 96^3, 96^4, 128^n and 256^n set.
2520         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2521         (map_char_table): Likewise.
2522
2523 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2524
2525         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2526         UTF-2000.
2527
2528 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2529
2530         * chartab.h (get_char_id_table): New inline function.
2531
2532         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2533         function.
2534
2535 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2536
2537         * chartab.h (decode_char_table_range): New prototype in XEmacs
2538         UTF-2000.
2539         (put_char_id_table): New inline function in XEmacs UTF-2000.
2540
2541         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2542         function.
2543         (decode_char_table_range): Delete static declaration in XEmacs
2544         UTF-2000.
2545
2546 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2547
2548         * chartab.c (put_char_id_table): Use `put_char_table'.
2549
2550 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2551
2552         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2553         (map_over_uint16_byte_table): Likewise.
2554         (map_over_byte_table): Likewise.
2555         (map_char_table): Modify for `map_over_uint8_byte_table',
2556         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2557         UTF-2000.
2558
2559 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2560
2561         * chartab.c (struct map_char_table_for_charset_arg): New
2562         structure.
2563         (map_char_table_for_charset_fun): New function.
2564         (map_char_table): Use `map_char_table' for encoding_table of
2565         `range->charset'.
2566
2567 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2568
2569         * chartab.c (map_char_table): Check a character is found in
2570         range->charset instead of non default value is defined in
2571         char-table when range is CHARTAB_RANGE_ROW.
2572
2573 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2574
2575         * chartab.c (map_char_id_table): Deleted.
2576         (Fmap_char_attribute): Use `map_char_table' instead of
2577         `map_char_id_table'.
2578
2579 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2580
2581         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2582         UTF-2000.
2583         (update_syntax_table): Deleted in XEmacs UTF-2000.
2584
2585         * syntax.c (find_defun_start): Use `syntax_table' instead of
2586         `mirror_syntax_table' in XEmacs UTF-2000.
2587         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2588         UTF-2000.
2589         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2590         XEmacs UTF-2000.
2591         (Fmatching_paren): Likewise.
2592         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2593         in XEmacs UTF-2000.
2594         (find_start_of_comment): Likewise.
2595         (find_end_of_comment): Likewise.
2596         (Fforward_comment): Likewise.
2597         (scan_lists): Likewise.
2598         (char_quoted): Likewise.
2599         (Fbackward_prefix_chars): Likewise.
2600         (scan_sexps_forward): Likewise.
2601         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2602         (update_syntax_table): Likewise.
2603
2604         * search.c (skip_chars): Use `syntax_table' instead of
2605         `mirror_syntax_table' in XEmacs UTF-2000.
2606         (wordify): Likewise.
2607         (Freplace_match): Likewise.
2608
2609         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2610         `mirror_syntax_table' in XEmacs UTF-2000.
2611         (WORDCHAR_P_UNSAFE): Likewise.
2612         (re_match_2_internal): Likewise.
2613
2614         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2615         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2616
2617         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2618         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2619
2620         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2621         XEmacs UTF-2000.
2622
2623         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2624         UTF-2000.
2625         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2626         (char_table_description): Delete `mirror_table' in XEmacs
2627         UTF-2000.
2628         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2629         UTF-2000.
2630         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2631         (Fcopy_char_table): Likewise.
2632         (put_char_table): Don't call `update_syntax_table' in XEmacs
2633         UTF-2000.
2634
2635         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2636         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2637         (casify_region_internal): Likewise.
2638
2639         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2640
2641         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2642         `mirror_syntax_table' in XEmacs UTF-2000.
2643
2644         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2645         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2646         (Fexpand_abbrev): Likewise.
2647
2648 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2649
2650         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2651
2652 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2653
2654         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2655         (map_over_uint16_byte_table): Likewise.
2656         (map_over_byte_table): Likewise.
2657         (get_char_id_table): Refer `cit->default_value'.
2658         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2659         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2660         of character-id ranges.
2661         (mark_char_table): Mark `ct->default_value'.
2662         (char_table_description): Add `default_value'.
2663         (fill_char_table): Use `default_value'.
2664         (decode_char_table_range): Decode `nil' as
2665         `CHARTAB_RANGE_DEFAULT'.
2666         (get_char_id_table): Refer `cit->default_value'.
2667         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2668         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2669         temporary hack; check value of char-table is bound or not.
2670         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2671
2672         * chartab.h (struct Lisp_Char_Table): Add new member
2673         `default_value' in XEmacs UTF-2000.
2674         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2675         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2676         UTF-2000.
2677
2678 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2679
2680         * chartab.h (Lisp_Char_ID_Table): Deleted.
2681
2682         * chartab.c (char_table_description): Fix typo.
2683         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2684         `Lisp_Char_ID_Table'.
2685
2686 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2687
2688         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2689         `CHAR_ID_TABLE_P'.
2690
2691         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2692         `CHAR_ID_TABLE_P'.
2693
2694         * chartab.h (XCHAR_ID_TABLE): Deleted.
2695         (XSETCHAR_ID_TABLE): Deleted.
2696         (CHAR_ID_TABLE_P): Deleted.
2697
2698         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2699         `CHAR_ID_TABLE_P'.
2700         (Fget_composite_char): Likewise.
2701         (put_char_table): Likewise.
2702         (add_char_attribute_alist_mapper): Fixed.
2703         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2704         `CHAR_ID_TABLE_P'.
2705         (Fget_char_attribute): Likewise.
2706         (Fget_char_attribute): Likewise.
2707         (Fmap_char_attribute): Likewise.
2708
2709         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2710         `CHAR_ID_TABLE_P'.
2711         (encode_char_1): Likewise.
2712
2713 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2714
2715         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2716         `XCHAR_ID_TABLE'.
2717
2718         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2719         instead of `XCHAR_ID_TABLE'.
2720         (remove_char_ccs): Likewise.
2721
2722         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2723         `XCHAR_ID_TABLE'.
2724         (Fget_composite_char): Likewise.
2725         (Fchar_variants): Likewise.
2726         (put_char_table): Likewise.
2727         (add_char_attribute_alist_mapper): Likewise.
2728         (Fchar_attribute_alist): Likewise.
2729         (Fget_char_attribute): Likewise.
2730         (Fput_char_attribute): Likewise.
2731         (Fmap_char_attribute): Likewise.
2732         (Fmap_char_attribute): Likewise.
2733
2734         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2735         `XCHAR_ID_TABLE'.
2736         (encode_char_1): Likewise.
2737
2738 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2739
2740         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2741         `Lisp_Char_ID_Table'.
2742         (mark_char_id_table): Deleted.
2743         (print_char_id_table): Likewise.
2744         (char_id_table_equal): Likewise.
2745         (char_id_table_hash): Likewise.
2746         (char_id_table_description): Likewise.
2747         (char_id_table): Likewise.
2748         (make_char_id_table): Use `Fmake_char_table' and
2749         `fill_char_table'.
2750         (get_char_id_table): Use `Lisp_Char_Table' instead of
2751         `Lisp_Char_ID_Table'.
2752         (put_char_id_table): Likewise.
2753         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2754         `XCHAR_ID_TABLE'.
2755         (Fremove_char_attribute): Likewise.
2756         (syms_of_chartab): Don't define type `char-id-table'.
2757
2758         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2759         (char_id_table): Likewise.
2760         (GC_CHAR_ID_TABLE_P): Likewise.
2761         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2762         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2763         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2764         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2765         (get_char_id_table): Use `Lisp_Char_Table' instead of
2766         `Lisp_Char_ID_Table'.
2767         (put_char_id_table_0): Likewise.
2768         (put_char_id_table): Likewise.
2769
2770 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2771
2772         * chartab.h: Lisp_Byte_Table related codes are moved from
2773         chartab.h.
2774
2775         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2776
2777 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2778
2779         * chartab.h: Don't include "chartab.h".
2780         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2781         (Lisp_Char_ID_Table): Likewise.
2782         (char_id_table): Likewise.
2783         (XCHAR_ID_TABLE): Likewise.
2784         (XSETCHAR_ID_TABLE): Likewise.
2785         (CHAR_ID_TABLE_P): Likewise.
2786         (GC_CHAR_ID_TABLE_P): Likewise.
2787         (get_char_id_table): Likewise.
2788
2789         * char-ucs.h: Include "chartab.h".
2790         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2791         (Lisp_Char_ID_Table): Likewise.
2792         (char_id_table): Likewise.
2793         (XCHAR_ID_TABLE): Likewise.
2794         (XSETCHAR_ID_TABLE): Likewise.
2795         (CHAR_ID_TABLE_P): Likewise.
2796         (GC_CHAR_ID_TABLE_P): Likewise.
2797         (get_char_id_table): Likewise.
2798
2799 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2800
2801         * chartab.c (copy_uint8_byte_table): New function.
2802         (copy_uint16_byte_table): New function.
2803         (copy_byte_table): New function.
2804         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2805         characters to call.
2806         (map_over_uint16_byte_table): Likewise.
2807         (map_over_byte_table): Likewise.
2808         (get_byte_table): Move prototype to chartab.h.
2809         (put_byte_table): Likewise.
2810         (put_char_id_table_0): Moved to chartab.h.
2811         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2812         (char_table_entry_equal): Likewise.
2813         (char_table_entry_hash): Likewise.
2814         (char_table_entry_description): Likewise.
2815         (char_table_entry): Likewise.
2816         (make_char_table_entry): Likewise.
2817         (copy_char_table_entry): Likewise.
2818         (get_non_ascii_char_table_value): Likewise.
2819         (map_over_charset_ascii): Likewise.
2820         (map_over_charset_control_1): Likewise.
2821         (map_over_charset_row): Likewise.
2822         (map_over_other_charset): Likewise.
2823         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2824         (print_char_table): Likewise.
2825         (char_table_equal): Likewise.
2826         (char_table_hash): Likewise.
2827         (char_table_description): Likewise.
2828         (fill_char_table): Likewise.
2829         (Fcopy_char_table): Likewise.
2830         (get_char_table): Likewise.
2831         (Fget_range_char_table): Likewise.
2832         (put_char_table): Likewise.
2833         (map_char_table): Likewise.
2834         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2835         UTF-2000.
2836
2837 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2838
2839         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2840         `Vauto_fill_chars' in XEmacs UTF-2000.
2841
2842         * chartab.h (get_byte_table): New prototype [moved from
2843         chartab.c].
2844         (put_byte_table): Likewise [moved from chartab.c].
2845         (put_char_id_table_0): New inline function [moved from chartab.c].
2846         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2847         (Lisp_Char_Table_Entry): Likewise.
2848         (char_table_entry): Likewise.
2849         (XCHAR_TABLE_ENTRY): Likewise.
2850         (XSETCHAR_TABLE_ENTRY): Likewise.
2851         (CHAR_TABLE_ENTRYP): Likewise.
2852         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2853         (NUM_ASCII_CHARS): Likewise.
2854         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2855         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2856
2857 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2858
2859         * chartab.c (get_char_id_table): Change interface.
2860         (put_char_id_table_0): New function.
2861         (put_char_id_table): Change interface; new implementation.
2862         (Fget_composite_char): Modify for interface change of
2863         `get_char_id_table'.
2864         (Fchar_variants): Likewise.
2865         (add_char_attribute_alist_mapper): Likewise.
2866         (Fchar_attribute_alist): Likewise.
2867         (Fget_char_attribute): Likewise.
2868         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2869         as same as character as the first argument like `put-char-table';
2870         modify for interface change of `put_char_id_table'.
2871         (Fremove_char_attribute): Modify for interface change of
2872         `put_char_id_table'.
2873
2874 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2875
2876         * text-coding.c: Sync up with XEmacs 21.2.41.
2877         (COMPOSE_ADD_CHAR): Modify for interface change of
2878         `get_char_id_table'.
2879
2880         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2881         change of `put_char_id_table'.
2882         (remove_char_ccs): Likewise.
2883
2884         * chartab.h (put_char_id_table): Change interface.
2885
2886         * char-ucs.h (get_char_id_table): Change interface.
2887         (charset_code_point): Modify for interface change of
2888         `get_char_id_table'.
2889         (encode_char_1): Likewise.
2890
2891 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2892
2893         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2894         argument `ccs'.
2895         (map_over_uint16_byte_table): Likewise.
2896         (map_over_byte_table): Likewise.
2897         (map_char_id_table): Add new argument `range' like
2898         `map_char_table'.
2899         (Fmap_char_attribute): Add new argument `range' like
2900         `Fmap_char_table'.
2901
2902 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2903
2904         * chartab.c (map_over_uint8_byte_table): Change interface of
2905         mapping function to use struct chartab_range instead of Emchar.
2906         (map_over_uint16_byte_table): Likewise.
2907         (map_over_byte_table): Likewise.
2908         (map_char_id_table): Likewise.
2909         (struct slow_map_char_id_table_arg): Deleted.
2910         (slow_map_char_id_table_fun): Deleted.
2911         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2912         function `slow_map_char_table_fun' instead of struct
2913         `slow_map_char_id_table_arg' and function
2914         `slow_map_char_id_table_fun'.
2915
2916 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2917
2918         * mule-charset.c: Move char-it-table related codes to chartab.c.
2919         (Vutf_2000_version): Moved to chartab.c.
2920         (Fdefine_char): Likewise.
2921         (Ffind_char): Likewise.
2922         (syms_of_mule_charset): Move types `uint8-byte-table',
2923         `uint16-byte-table', `byte-table' and `char-id-table' to
2924         chartab.c; move functions `char_attribute_list,
2925         `find_char_attribute_table, `char_attribute_alist,
2926         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2927         `map_char_attribute, `define_char, `find_char, `char_variants and
2928         `get_composite_char to chartab.c; move symbols `=>ucs',
2929         `->decomposition', `compat', `isolated', `initial', `medial',
2930         `final', `vertical', `noBreak', `fraction', `super', `sub',
2931         `circle', `square', `wide', `narrow', `small' and `font' to
2932         chartab.c.
2933         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2934         setting codes for `Vcharacter_composition_table' and
2935         `Vcharacter_variant_table' to chartab.c.
2936         (complex_vars_of_mule_charset): Move setting code for
2937         `Vchar_attribute_hash_table' to chartab.c.
2938
2939         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2940         (make_char_id_table): New prototype.
2941         (put_char_id_table): Likewise.
2942         (Fget_char_attribute): Likewise.
2943
2944         * chartab.c: Move char-id-table related code from mule-charset.c.
2945         (Vutf_2000_version): Moved from mule-charset.c.
2946
2947         * char-ucs.h (Qucs): New external variable.
2948         (put_char_ccs_code_point): New prototype.
2949         (remove_char_ccs): Likewise.
2950
2951 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2952
2953         * mule-charset.c (Vcharset_ucs_jis): New variable.
2954         (Qucs_jis): Likewise.
2955         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2956         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2957
2958         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2959
2960 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2961
2962         * mule-charset.c (map_over_uint8_byte_table): New function.
2963         (map_over_uint16_byte_table): Likewise.
2964         (map_over_byte_table): Likewise.
2965         (map_char_id_table): Likewise.
2966         (slow_map_char_id_table_fun): Likewise.
2967         (Fmap_char_attribute): Likewise.
2968         (syms_of_mule_charset): Add new function `map-char-attribute'.
2969
2970 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2971
2972         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2973         (syms_of_mule_charset): Add new function `find-char'.
2974
2975 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2976
2977         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2978         XEmacs UTF-2000.
2979         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2980         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2981         XEmacs UTF-2000.
2982         (complex_vars_of_mule_charset): Add new coded-charset
2983         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2984         `ideograph-gt-pj-*'.
2985
2986         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2987
2988 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2989
2990         * mule-charset.c (encode_builtin_char_1): Purge codes about
2991         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2992         {MIN|MAX}_CHAR_HEBREW.
2993         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2994         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2995
2996         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2997         (MAX_CHAR_GREEK): Purged.
2998         (MIN_CHAR_CYRILLIC): Purged.
2999         (MAX_CHAR_CYRILLIC): Purged.
3000         (MIN_CHAR_HEBREW): Commented out.
3001         (MAX_CHAR_HEBREW): Likewise.
3002
3003 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3004
3005         * mule-charset.c (Qto_ucs): New variable.
3006         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3007         (Fdefine_char): Likewise.
3008         (syms_of_mule_charset): Add new symbol `=>ucs'.
3009
3010 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3011
3012         * mule-charset.c (Fdecode_char): Fixed.
3013
3014 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3015
3016         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3017         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3018         "tcvn5712-1".
3019
3020 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3021
3022         * mule-charset.c (Vcharset_ucs_big5): New variable.
3023         (Qucs_big5): Likewise.
3024         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3025         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3026
3027         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3028
3029 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3030
3031         * mule-charset.c (decode_builtin_char): Check Big5 code range
3032         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3033
3034 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3035
3036         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3037         (Qchinese_gb12345): Likewise.
3038         (Fdecode_builtin_char): Fixed.
3039         (syms_of_mule_charset): Add `chinese-gb12345'.
3040         (complex_vars_of_mule_charset): Add coded-charset
3041         `chinese-gb12345'.
3042
3043         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3044         (LEADING_BYTE_CHINESE_GB12345): New macro.
3045
3046 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3047
3048         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3049         and `latin-viscii-upper' for `latin-viscii'.
3050
3051 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3052
3053         * mule-charset.c (Fdecode_builtin_char): Comment out
3054         regularization code for ISO-IR GR representation.
3055
3056 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3057
3058         * mule-charset.c (decode_builtin_char): New function; renamed from
3059         `make_builtin_char'; return -1 instead of signal.
3060         (Fdecode_builtin_char): Use `decode_builtin_char'.
3061
3062         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3063         `make_builtin_char'.
3064         (DECODE_CHAR): Use `decode_builtin_char' instead of
3065         `make_builtin_char'; use mapping table of `chinese-big5' for
3066         `chinese-big5-{1,2}'.
3067
3068 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3069
3070         * text-coding.c (char_encode_big5): New function.
3071         (char_finish_big5): Likewise.
3072         (reset_encoding_stream): Use `char_encode_big5' and
3073         `char_finish_big5' for CODESYS_BIG5.
3074         (mule_encode): Don't use `encode_coding_big5'.
3075         (encode_coding_big5): Deleted.
3076
3077 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3078
3079         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3080         0x81- in XEmacs UTF-2000.
3081         (detect_coding_big5): Likewise.
3082
3083 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3084
3085         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3086         generate character-id if the CCS property does not have
3087         corresponding predefined character.
3088         (make_builtin_char): Return -1 if corresponding predefined
3089         character is not found.
3090         (Fdecode_char): Return nil if corresponding character is not
3091         found.
3092         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3093         don't map to builtin ucs space.
3094
3095 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3096
3097         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3098         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3099
3100 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3101
3102         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3103         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3104         (Qideograph_gt): Likewise.
3105         (Qideograph_gt_pj_{1..11}): Likewise.
3106         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3107         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3108         `ideograph-gt-pj-11'.
3109         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3110         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3111         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3112
3113         * char-ucs.h (LEADING_BYTE_GT): New macro.
3114         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3115         (MIN_CHAR_GT): Likewise.
3116         (MAX_CHAR_GT): Likewise.
3117
3118 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3119
3120         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3121         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3122
3123         * doprnt.c (unsigned_int_converters): Add `c'.
3124         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3125
3126         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3127         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3128         `MIN_CHAR_MOJIKYO'.
3129         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3130         (MAX_CHAR_MOJIKYO_0): New macro.
3131         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3132
3133 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3134
3135         * mule-charset.c (Fdefine_char): Delete cemented out code.
3136         (encode_builtin_char_1): Modify for new allocation of builtin
3137         Mojikyo characters.
3138
3139         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3140
3141 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3142
3143         * mule-charset.c (Vcharset_ucs_cns): New variable.
3144         (Qucs_cns): New variable.
3145         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3146         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3147
3148 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3149
3150         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3151
3152 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3153
3154         * search.c (search_buffer): Make `charset_base_code' as
3155         character-id >> 6 to eliminate the corresponding last byte in
3156         UTF-8 representation [I'm not sure it is right thing].
3157         (boyer_moore): Likewise.
3158
3159 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3160
3161         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3162         representation in MULE.
3163
3164 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3165
3166         * text-coding.c (Fmake_coding_system): Use
3167         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3168         `EXTERNAL_PROPERTY_LIST_LOOP'.
3169
3170 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3171
3172         * text-coding.c (decode_output_utf8_partial_char): New function.
3173         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3174
3175 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3176
3177         * text-coding.c (decode_coding_utf8): Output original byte
3178         sequence if it is broken; change order of conditions.
3179
3180         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3181         of conditions.
3182
3183         * mb-multibyte.h (BYTE_ASCII_P):
3184         Use bit ops for char-signedness safety.
3185         (BYTE_C0_P): Use bit ops for char-signedness safety.
3186         (BYTE_C1_P): Use bit ops for char-signedness safety.
3187
3188         * character.h: (XCHAR_OR_CHAR_INT):
3189         Always use inline function.
3190         Remove redundant type checking assert() - XINT will abort quite
3191         nicely.
3192
3193 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3194
3195         * text-coding.c: (Fencode_shift_jis_char):
3196         (Fencode_big5_char):
3197         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3198         Replace 0 with '\0' when working with bytes.
3199         Replace initial "(" with "\(" in docstrings.
3200
3201         (Fmake_coding_system):
3202         When type is ccl and value is vector, register it with a proper
3203         symbol.  And checks whether the given ccl program is valid.
3204         (mule_decode): When calling ccl_driver, if src indicates
3205         NULL pointer, set an empty string instead.
3206         (mule_encode): Likewise.
3207
3208         (detect_eol_type):
3209         (detect_coding_sjis):
3210         (decode_coding_sjis):
3211         (detect_coding_big5):
3212         (decode_coding_big5):
3213         (detect_coding_ucs4):
3214         (decode_coding_ucs4):
3215         (detect_coding_utf8):
3216         (decode_coding_utf8):
3217         (detect_coding_iso2022):
3218         (decode_coding_iso2022):
3219         (decode_coding_no_conversion):
3220         (mule_decode):
3221         Make all detecting and decoding functions take an Extbyte * arg.
3222         (text_encode_generic):
3223         (encode_coding_big5):
3224         (encode_coding_no_conversion):
3225         (mule_encode):
3226         Make all encoding functions take a Bufbyte * arg.
3227         Use size_t instead of unsigned int for memory sizes.
3228         Only cast to unsigned char whenever dereferencing Extbyte *.
3229
3230         (struct lrecord_description fcd_description_1): Use countof.
3231         (complex_vars_of_file_coding):
3232         Use countof instead of sizeof.
3233         Use CHECK_NATNUM instead of CHECK_INT.
3234
3235 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3236
3237         * mule-charset.c (Fget_char_attribute): Add new optional argument
3238         `default-value'.
3239         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3240         (remove_char_ccs): Likewise.
3241
3242 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3243
3244         * text-coding.c (char_encode_shift_jis): New implementation in
3245         UTF-2000.
3246         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3247         ...)'.
3248
3249         * mule-charset.c (Vcharset_chinese_big5): New variable in
3250         UTF-2000.
3251         (Qchinese_big5): New variable in UTF-2000.
3252         (BIG5_SAME_ROW): New macro in UTF-2000.
3253         (make_builtin_char): Use builtin characters of
3254         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3255         characters of `Vcharset_chinese_big5'.
3256         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3257         (complex_vars_of_mule_charset): Add new coded-charset
3258         `chinese-big5' in UTF-2000.
3259
3260         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3261         (Vcharset_chinese_big5): New external variable declaration.
3262         (Vcharset_japanese_jisx0208_1990): Likewise.
3263
3264 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3265
3266         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3267         function.
3268         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3269
3270 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3271
3272         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3273         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3274         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3275         `mojikyo-pj-*'.
3276
3277 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3278
3279         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3280
3281 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3282
3283         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3284         to 0.17.
3285
3286 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3287
3288         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3289         for `CHARSET_BY_ATTRIBUTES'.
3290         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3291         `CHARSET_BY_ATTRIBUTES'.
3292
3293         * text-coding.c (struct decoding_stream): Rename member `CH' to
3294         `CPOS'.
3295         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3296         (decode_coding_sjis): Likewise.
3297         (decode_coding_big5): Likewise.
3298         (decode_coding_ucs4): Likewise.
3299         (decode_coding_utf8): Likewise.
3300         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3301         `CHARSET_BY_ATTRIBUTES'.
3302         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3303         `str->counter'; decode 3, 4 bytes sets.
3304         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3305         sets.
3306         (decode_coding_no_conversion): Use `str->cpos' instead of
3307         `str->ch'.
3308
3309         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3310         (Qmojikyo_2022_1): New variable.
3311         (make_charset): Don't use `CHARSET_TYPE_*'.
3312         (range_charset_code_point): Support coded-charset
3313         `mojikyo-2022-1'.
3314         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3315         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3316         `CHARSET_BY_ATTRIBUTES'.
3317         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3318         `CHARSET_BY_ATTRIBUTES'.
3319         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3320         (complex_vars_of_mule_charset): Add new coded-charset
3321         `mojikyo-2022-1'.
3322
3323         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3324         interface; changed to inline function.
3325
3326         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3327         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3328         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3329         (CHARSET_TYPE_94): Deleted.
3330         (CHARSET_TYPE_94X94): Deleted.
3331         (CHARSET_TYPE_96): Deleted.
3332         (CHARSET_TYPE_96X96): Deleted.
3333         (CHARSET_TYPE_128): Deleted.
3334         (CHARSET_TYPE_128X128): Deleted.
3335         (CHARSET_TYPE_256): Deleted.
3336         (CHARSET_TYPE_256X256): Deleted.
3337         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3338         to inline function.
3339         (DECODE_MOJIKYO_2022): New inline function.
3340         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3341         `Vcharset_mojikyo_2022_1'.
3342
3343 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3344
3345         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3346         instead of `EQ'.
3347         (put_byte_table): Likewise.
3348         (char_id_table_equal): Use `get_byte_table' [new implementation].
3349
3350 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3351
3352         * mule-charset.c: Include <limits.h> in UTF-2000.
3353         (BT_UINT8_MIN): New macro in UTF-2000.
3354         (BT_UINT8_MAX): New macro in UTF-2000.
3355         (BT_UINT8_t): New macro in UTF-2000.
3356         (BT_UINT8_nil): New macro in UTF-2000.
3357         (BT_UINT8_unbound): New macro in UTF-2000.
3358         (INT_UINT8_P): New inline function in UTF-2000.
3359         (UINT8_VALUE_P): New inline function in UTF-2000.
3360         (UINT8_ENCODE): New inline function in UTF-2000.
3361         (UINT8_DECODE): New inline function in UTF-2000.
3362         (mark_uint8_byte_table): New function in UTF-2000.
3363         (print_uint8_byte_table): New function in UTF-2000.
3364         (uint8_byte_table_equal): New function in UTF-2000.
3365         (uint8_byte_table_hash): New function in UTF-2000.
3366         (make_uint8_byte_table): New function in UTF-2000.
3367         (uint8_byte_table_same_value_p): New function in UTF-2000.
3368         (BT_UINT16_MIN): New macro in UTF-2000.
3369         (BT_UINT16_MAX): New macro in UTF-2000.
3370         (BT_UINT16_t): New macro in UTF-2000.
3371         (BT_UINT16_nil): New macro in UTF-2000.
3372         (BT_UINT16_unbound): New macro in UTF-2000.
3373         (INT_UINT16_P): New inline function in UTF-2000.
3374         (UINT16_VALUE_P): New inline function in UTF-2000.
3375         (UINT16_ENCODE): New inline function in UTF-2000.
3376         (UINT16_DECODE): New inline function in UTF-2000.
3377         (UINT8_TO_UINT16): New inline function in UTF-2000.
3378         (mark_uint16_byte_table): New function in UTF-2000.
3379         (print_uint16_byte_table): New function in UTF-2000.
3380         (uint16_byte_table_equal): New function in UTF-2000.
3381         (uint16_byte_table_hash): New function in UTF-2000.
3382         (make_uint16_byte_table): New function in UTF-2000.
3383         (uint16_byte_table_same_value_p): New function in UTF-2000.
3384         (print_byte_table): New function in UTF-2000.
3385         (byte-table): Use `print_byte_table' as printer.
3386         (make_byte_table): Delete second argument `older'.
3387         (byte_table_same_value_p): New function in UTF-2000.
3388         (copy_byte_table): Deleted.
3389         (get_byte_table): New function in UTF-2000.
3390         (put_byte_table): New function in UTF-2000.
3391         (print_char_id_table): New function in UTF-2000.
3392         (char-id-table): Use `print_char_id_table' as printer.
3393         (make_char_id_table): Delete second argument `older'.
3394         (get_char_id_table): Use `get_byte_table [new implementation].
3395         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3396         implementation].
3397         (Ffind_char_attribute_table): New function in UTF-2000.
3398         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3399         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3400         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3401         (syms_of_mule_charset): Add new function
3402         `find-char-attribute-table' in UTF-2000.
3403
3404         * lrecord.h (enum lrecord_type): Add
3405         `lrecord_type_uint16_byte_table' and
3406         `lrecord_type_uint8_byte_table'.
3407
3408         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3409         (Lisp_Uint8_Byte_Table): New type.
3410         (XUINT8_BYTE_TABLE): New macro.
3411         (XSETUINT8_BYTE_TABLE): New macro.
3412         (UINT8_BYTE_TABLE_P): New macro.
3413         (GC_UINT8_BYTE_TABLE_P): New macro.
3414         (struct Lisp_Uint16_Byte_Table): New structure.
3415         (Lisp_Uint16_Byte_Table): New type.
3416         (XUINT16_BYTE_TABLE): New macro.
3417         (XSETUINT16_BYTE_TABLE): New macro.
3418         (UINT16_BYTE_TABLE_P): New macro.
3419         (GC_UINT16_BYTE_TABLE_P): New macro.
3420
3421 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3422
3423         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3424         (Vcharacter_ideographic_strokes_table): Deleted.
3425         (Vcharacter_total_strokes_table): Deleted.
3426         (Vcharacter_morohashi_daikanwa_table): Deleted.
3427         (Vcharacter_decomposition_table): Deleted.
3428         (Qname): Deleted because it is duplicated.
3429         (Qideographic_radical): Deleted.
3430         (Qideographic_strokes): Deleted.
3431         (Qtotal_strokes): Deleted.
3432         (Qmorohashi_daikanwa): Deleted.
3433         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3434         `ideographic-radical', `ideographic-strokes', `total-strokes',
3435         `morohashi-daikanwa' and `->decomposition'.
3436         (Fget_char_attribute): Likewise.
3437         (Fput_char_attribute): Likewise; use `make-vector' instead of
3438         `make_older_vector' for `->decomposition' value.
3439         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3440         `ideograph-daikanwa'.
3441         (syms_of_mule_charset): Delete builtin symbols `name',
3442         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3443         `morohashi-daikanwa'.
3444         (vars_of_mule_charset): Don't setup
3445         `Vcharacter_ideographic_radical_table',
3446         `Vcharacter_ideographic_strokes_table',
3447         `Vcharacter_total_strokes_table',
3448         `Vcharacter_morohashi_daikanwa_table' and
3449         `Vcharacter_decomposition_table'.
3450
3451 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3452
3453         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3454         `make_older_vector', `make_vector_newer_1' and
3455         `make_vector_newer'.
3456
3457         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3458         `make_older_vector' and `make_vector_newer'.
3459
3460         * config.h.in (HAVE_GGC): New macro.
3461
3462 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3463
3464         * mule-charset.c (struct char_attribute_list_closure): New
3465         structure in UTF-2000.
3466         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3467         (Fchar_attribute_list): Likewise.
3468         (Fset_charset_mapping_table): Use `make_vector_newer'.
3469         (Fdecode_builtin_char): New function in UTF-2000.
3470         (syms_of_mule_charset): Add new function `char-attribute-list' and
3471         `decode-builtin-char' in UTF-2000.
3472
3473         * lisp.h (make_vector_newer): New prototype.
3474
3475         * alloc.c (make_vector_newer_1): New function.
3476         (make_vector_newer): New function.
3477
3478 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3479
3480         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3481         50100)'.
3482
3483 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3484
3485         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3486         (Vcharacter_attribute_table): Deleted.
3487         (Vcharacter_name_table): Deleted.
3488         (put_char_attribute): Deleted.
3489         (remove_char_attribute): Deleted.
3490         (struct char_attribute_alist_closure): New structure.
3491         (add_char_attribute_alist_mapper): New function.
3492         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3493         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3494         (Fget_char_attribute): Likewise.
3495         (Fput_char_attribute): Likewise.
3496         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3497         of `remove_char_attribute'.
3498         (Fdefine_char): Return character.
3499         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3500         and `Vcharacter_name_table'.
3501         (complex_vars_of_mule_charset): Likewise
3502         `Vchar_attribute_hash_table'.
3503
3504 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3505
3506         * character.h (CHARC_CHARSET): New macro.
3507         (CHARC_CHARSET_ID): New macro.
3508         (CHARC_CODE_POINT): New macro.
3509         (CHARC_COLUMNS): New macro.
3510         (CHARC_TO_CHAR): New inline function.
3511         (CHARC_EQ): New inline function.
3512         (CHARC_ASCII_EQ): New inline function.
3513         (CHARC_IS_SPACE): New inline function.
3514         (ASCII_TO_CHARC): New inline function.
3515
3516         * char-ucs.h (encode_char_2): Deleted.
3517         (ENCODE_CHAR): Use `encode_char_1' again.
3518         (breakup_char_1): Likewise.
3519         (CHAR_TO_CHARC): New inline function.
3520
3521         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3522
3523 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3524
3525         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3526         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3527         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3528         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3529         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3530         `CHARC_IS_SPACE'.
3531         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3532
3533         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3534         `CHARC_CODE_POINT'.
3535         (x_output_display_block): Use `CHARC_CHARSET' and
3536         `CHARC_ASCII_EQ'.
3537
3538         * redisplay-tty.c (tty_output_display_block): Use
3539         `CHARC_ASCII_EQ'.
3540         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3541
3542         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3543
3544         * insdel.c (find_charsets_in_charc_string): Use
3545         `CHARC_CHARSET_ID'.
3546         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3547         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3548         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3549         (convert_charc_string_into_malloced_string): Likewise.
3550
3551 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3552
3553         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3554         instead of <Emchar_dynarr *> for buf; use
3555         `convert_bufbyte_string_into_charc_dynarr' instead of
3556         `convert_bufbyte_string_into_emchar_dynarr'; use
3557         `find_charsets_in_charc_string' instead of
3558         `find_charsets_in_emchar_string'.
3559
3560         * redisplay.h:
3561         - Include "character.h".
3562         (struct rune): New member `cglyph'; delete member `chr'.
3563
3564         * redisplay.c (redisplay_text_width_charc_string): New function;
3565         delete `redisplay_text_width_emchar_string'.
3566         (rtw_charc_dynarr): New variable; renamed from
3567         `rtw_emchar_dynarr'.
3568         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3569         `rtw_emchar_dynarr'; use
3570         `convert_bufbyte_string_into_charc_dynarr' instead of
3571         `convert_bufbyte_string_into_emchar_dynarr'; use
3572         `redisplay_text_width_charc_string' instead of
3573         `redisplay_text_width_emchar_string'.
3574         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3575         instead of `rtw_emchar_dynarr'; use
3576         `convert_bufbyte_string_into_charc_dynarr' instead of
3577         `convert_bufbyte_string_into_emchar_dynarr'.
3578         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3579         `redisplay_text_width_charc_string' instead of
3580         `redisplay_text_width_emchar_string'.
3581         (create_text_block): Modify for <struct rune> change.
3582         (generate_formatted_string_db): Likewise.
3583         (create_string_text_block): Likewise.
3584         (pixel_to_glyph_translation): Likewise.
3585
3586         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3587         instead of <const Emchar *>.
3588         (x_text_width): Likewise.
3589         (x_output_display_block): Use <Charc_dynarr *> instead
3590         <Emchar_dynarr *>; modify for <structure rune> change.
3591         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3592         *>.
3593
3594         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3595         <const Emchar *>; use `charc_string_displayed_columns' instead of
3596         `emchar_string_displayed_columns'.
3597         (tty_output_display_block): Use <Charc_dynarr *> instead of
3598         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3599         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3600         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3601         `tty_output_emchar_dynarr_dynarr'.
3602         (tty_output_charc_dynarr): New function; delete
3603         `tty_output_charc_dynarr'.
3604
3605         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3606         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3607         <Emchar_dynarr *> for buf; use
3608         `convert_bufbyte_string_into_charc_dynarr' instead of
3609         `convert_bufbyte_string_into_emchar_dynarr'.
3610
3611         * frame.c (title_string_charc_dynarr): New variable; renamed from
3612         `title_string_emchar_dynarr'.
3613         (generate_title_string): Use `title_string_charc_dynarr' instead
3614         of `title_string_emchar_dynarr'; use
3615         `convert_charc_string_into_malloced_string' instead of
3616         `convert_emchar_string_into_malloced_string'.
3617         (init_frame): Use `title_string_charc_dynarr' instead of
3618         `title_string_emchar_dynarr'.
3619
3620         * console.h:
3621         - Include "character.h".
3622         (struct console_methods): Use <const Charc *> instead of <const
3623         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3624         <Emchar_dynarr *> in output_string_method.
3625
3626         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3627         <Emchar_dynarr *>.
3628
3629         * console-stream.c (stream_text_width): Use <const Charc *>
3630         instead of <const Emchar *>.
3631
3632         * character.h (Charc_dynarr): New type.
3633
3634         * char-ucs.h (structure Charc): New structure; define new type
3635         `Charc'.
3636
3637         * char-lb.h (DECODE_CHAR): New inline function.
3638         (encode_char_1): New inline function.
3639         (ENCODE_CHAR): New macro.
3640         (structure Charc): New structure; define new type `Charc'.
3641
3642         * char-1byte.h (Vcharset_control_1): New macro.
3643         (Vcharset_latin_iso8859_1): New macro.
3644         (DECODE_CHAR): New inline function.
3645         (encode_char_1): New inline function.
3646         (ENCODE_CHAR): New macro.
3647         (structure Charc): New structure; define new type `Charc'.
3648
3649         * insdel.c (find_charsets_in_charc_string): New function; delete
3650         `find_charsets_in_emchar_string'.
3651         (charc_string_displayed_columns): New function; delete
3652         `emchar_string_displayed_columns'.
3653         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3654         `convert_bufbyte_string_into_emchar_dynarr'.
3655         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3656         `convert_charc_string_into_bufbyte_dynarr'.
3657         (convert_charc_string_into_malloced_string): New function; delete
3658         `convert_charc_string_into_malloced_string'.
3659
3660         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3661         `find_charsets_in_emchar_string'.
3662         (charc_string_displayed_columns): New prototype; delete
3663         `emchar_string_displayed_columns'.
3664         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3665         `convert_charc_string_into_bufbyte_dynarr'.
3666         (convert_charc_string_into_malloced_string): New prototype; delete
3667         `convert_charc_string_into_malloced_string'.
3668
3669 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3670
3671         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3672
3673 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3674
3675         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3676
3677         * char-ucs.h: Use <short> for <Charset_ID>.
3678
3679         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3680         <Charset_ID>.
3681
3682 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3683
3684         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3685         to 0.16.
3686
3687 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3688
3689         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3690         variable.
3691         (Qmorohashi_daikanwa): New variable.
3692         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3693         for `morohashi-daikanwa' attribute.
3694         (Fget_char_attribute): Likewise.
3695         (Fput_char_attribute): Likewise.
3696         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3697         has the same value of `ideograph-daikanwa'.
3698         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3699         (vars_of_mule_charset): Setup
3700         `Vcharacter_morohashi_daikanwa_table'.
3701
3702 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3703
3704         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3705         attributes.
3706         (add_charset_to_list_mapper): Add `key' instead of
3707         `XCHARSET_NAME (value)' to return aliases.
3708
3709 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3710
3711         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3712         variable.
3713         (Vcharacter_ideographic_strokes_table): New variable.
3714         (Qideographic_radical): New variable.
3715         (Qideographic_strokes): New variable.
3716         (Fchar_attribute_alist): Use
3717         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3718         attribute; use `Vcharacter_ideographic_strokes_table' for
3719         `ideographic-strokes' attribute.
3720         (Fget_char_attribute): Likewise.
3721         (Fput_char_attribute): Likewise.
3722         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3723         `ideographic-strokes'.
3724         (vars_of_mule_charset): Setup
3725         `Vcharacter_ideographic_radical_table' and
3726         `Vcharacter_ideographic_strokes_table'.
3727
3728 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3729
3730         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3731         (Qtotal_strokes): New variable.
3732         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3733         `total-strokes' attribute.
3734         (Fget_char_attribute): Likewise.
3735         (Fput_char_attribute): Likewise.
3736         (syms_of_mule_charset): Add new symbol `total-strokes'.
3737         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3738
3739 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3740
3741         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3742         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3743         are found.
3744         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3745         `->decomposition' attribute.
3746         (Fput_char_attribute): Likewise.
3747         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3748
3749 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3750
3751         * mule-charset.c (decoding_table_check_elements): New function.
3752         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3753
3754 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3755
3756         * mule-charset.c (Fset_charset_mapping_table): Use
3757         `put_char_ccs_code_point'.
3758
3759 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3760
3761         * mule-charset.c (decoding_table_put_char): New inline function.
3762         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3763
3764 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3765
3766         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3767         (XCHARSET_BYTE_SIZE): New macro.
3768         (decoding_table_remove_char): New inline function.
3769         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3770         `decoding_table_remove_char'.
3771         (remove_char_ccs): Use `decoding_table_remove_char'.
3772         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3773
3774 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3775
3776         * mule-charset.c (Vcharacter_name_table): New variable.
3777         (Qname): New variable.
3778         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3779         attribute.
3780         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3781         `Vcharacter_name_table' for `name' attribute.
3782         (Fremove_char_attribute): Use function `remove_char_ccs'.
3783         (put_char_ccs_code_point): New function.
3784         (remove_char_ccs): New function.
3785         (syms_of_mule_charset): Add new symbol `name'.
3786         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3787
3788 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3789
3790         * mule-charset.c (make_byte_table): Add new argument `older'.
3791         (make_char_id_table): Likewise.
3792         (copy_char_id_table): Comment out because it is not used.
3793         (put_char_id_table): Modify for `make_byte_table'.
3794         (Fput_char_attribute): Make encoding_table as older object;
3795         inherit older bit of `Vcharacter_composition_table'.
3796         (mark_charset): Don't mark `cs->encoding_table'.
3797         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3798         normal object; make `Vcharacter_composition_table' as an older
3799         object; delete staticpro for `Vcharacter_composition_table'; make
3800         `Vcharacter_variant_table' as a normal object.
3801
3802         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3803         (mark_object): Don't check older object in UTF-2000.
3804
3805         * lrecord.h (struct lrecord_header): Add new member `older' in
3806         UTF-2000.
3807         (set_lheader_implementation): Setup `SLI_header->older' in
3808         UTF-2000.
3809         (set_lheader_older_implementation): New macro in UTF-2000.
3810         (OLDER_RECORD_P): New macro in UTF-2000.
3811         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3812         (alloc_older_lcrecord): New prototype in UTF-2000.
3813         (alloc_older_lcrecord_type): New macro in UTF-2000.
3814
3815 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3816
3817         * mule-charset.c (byte_table_description): Use
3818         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3819         (char_id_table_description): Delete bogus `, 1'.
3820         (Fget_char_attribute): Refer encoding_table of each coded-charset
3821         to get value of coded-charset attribute of a character.
3822         (Fput_char_attribute): Use `make_older_vector' instead of
3823         `make_vector'; use encoding_table of each coded-charset to store
3824         value of coded-charset attribute of a character.
3825         (Fremove_char_attribute): Use encoding_table of each coded-charset
3826         to store value of coded-charset attribute of a character.
3827         (mark_charset): Mark `cs->encoding_table'; don't mark
3828         `cs->decoding_table'.
3829         (charset_description): Add description of new member
3830         `encoding_table'.
3831         (make_charset): Initialize `encoding_table'.
3832
3833         * char-ucs.h (struct Lisp_Charset): Add new member
3834         `encoding_table'.
3835         (CHARSET_ENCODING_TABLE): New macro.
3836         (XCHARSET_ENCODING_TABLE): New macro.
3837         (charset_code_point): New implementation.
3838         (encode_char_1): Likewise.
3839
3840         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3841         (disksave_object_finalization_1): Call finalizers of
3842         `all_older_lcrecords' in UTF-2000.
3843         (make_older_vector): New function in UTF-2000.
3844         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3845         UTF-2000.
3846
3847         * lisp.h (make_older_vector): New prototype in UTF-2000.
3848
3849 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3850
3851         * lrecord.h (enum lrecord_type): Rename
3852         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3853
3854         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3855         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3856         `get_char_code_table'.
3857
3858         * mule-charset.c (mark_char_id_table): Renamed from
3859         `mark_char_code_table'.
3860         (char_id_table_equal): Renamed from `char_code_table_equal'.
3861         (char_id_table_hash): Renamed from `char_code_table_hash'.
3862         (make_char_id_table): Renamed from `make_char_code_table'.
3863         (copy_char_id_table): Renamed from `copy_char_code_table'.
3864         (get_char_id_table): Renamed from `get_char_code_table'.
3865         (put_char_id_table): Renamed from `put_char_code_table'.
3866         (to_char_id): Renamed from `to_char_code'.
3867
3868         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3869         `Lisp_Char_Code_Table'.
3870         (char_id_table): Renamed from `char_code_table'.
3871         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3872         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3873         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3874         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3875         (get_char_id_table): Renamed from `get_char_code_table'.
3876
3877 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3878
3879         * lrecord.h (enum lrecord_type): Rename
3880         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3881
3882         * mule-charset.c (mark_byte_table): Renamed from
3883         `mark_char_byte_table'.
3884         (byte_table_equal): Renamed from `char_byte_table_equal'.
3885         (byte_table_hash): Renamed from `byte_table_hash'.
3886         (make_byte_table): Renamed from `make_byte_table'.
3887         (copy_byte_table): Renamed from `copy_char_byte_table'.
3888
3889         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3890         `Lisp_Char_Byte_Table'.
3891         (byte_table): Renamed from `char_byte_table'.
3892         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3893         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3894         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3895         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3896
3897 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3898
3899         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3900         (dfc_convert_to_internal_format): Likewise.
3901         
3902         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3903         * text-coding.c (Fcoding_system_alias_p): New function.
3904         * text-coding.c (Fcoding_system_aliasee): New function.
3905         * text-coding.c (append_suffix_to_symbol): New function.
3906         * text-coding.c (dangling_coding_system_alias_p): New function.
3907         * text-coding.c (Ffind_coding_system):
3908         * text-coding.c (Fcopy_coding_system):
3909         * text-coding.c (encode_coding_no_conversion):
3910         * text-coding.c (syms_of_file_coding):
3911         * text-coding.c (vars_of_file_coding):
3912         Rewrite coding system alias code.
3913         Allow nested aliases, like symbolic links.
3914         Allow redefinition of coding system aliases.
3915         Prevent existence of dangling coding system aliases.
3916         Eliminate convert_to_external_format.
3917         Eliminate convert_to_internal_format.
3918         
3919         * text-coding.c: Change enum eol_type to eol_type_t.
3920
3921 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3922
3923         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3924         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3925
3926         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3927         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3928
3929 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3930
3931         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3932         `ideograph-daikanwa'.
3933
3934         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3935         (Vcharset_ucs_bmp): Likewise.
3936         (Vcharset_mojikyo): Add new extern variable definition.
3937         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3938         (Vcharset_latin_iso8859_3): Likewise.
3939         (Vcharset_latin_iso8859_4): Likewise.
3940         (Vcharset_latin_iso8859_9): Likewise.
3941         (Vcharset_latin_viscii_lower): Likewise.
3942         (Vcharset_latin_viscii_upper): Likewise.
3943         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3944         `mojikyo' code-point is used to decode.
3945         (encode_char_2): New function [to convert `mojikyo' code-point to
3946         Mojikyo font encoding].
3947         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3948         (breakup_char_1): Likewise.
3949         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3950
3951 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3952
3953         * text-coding.c (Fmake_coding_system): Add document about
3954         `disable-composition' property.
3955
3956 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3957
3958         * text-coding.c (Qdisable_composition): New variable; delete
3959         `Qcomposite'.
3960         (Fmake_coding_system): Add new property `disable-composite';
3961         delete property `composite'.
3962         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3963         instead of `!CODING_SYSTEM_COMPOSITE'.
3964         (syms_of_file_coding): Add new symbol `disable-composition';
3965         delete symbol `composite'.
3966
3967         * file-coding.h (struct Lisp_Coding_System): Add
3968         `disable_composition'; delete `enable_composition'.
3969         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3970         `CODING_SYSTEM_COMPOSITE'.
3971         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3972         `XCODING_SYSTEM_COMPOSITE'.
3973
3974 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3975
3976         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3977         to 0.15.
3978
3979 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3980
3981         * text-coding.c (Qcomposite): New variable.
3982         (Fmake_coding_system): Add new property `composite'.
3983         (struct decoding_stream): Add `combined_char_count',
3984         `combined_chars' and `combining_table' in UTF-2000.
3985         (COMPOSE_FLUSH_CHARS): New macro.
3986         (COMPOSE_ADD_CHAR): New macro.
3987         (reset_decoding_stream): Reset `str->combined_char_count' and
3988         `str->combining_table' in UTF-2000.
3989         (decode_coding_iso2022): Modify for character-decomposition.
3990         (syms_of_file_coding): Add new symbol `composite'.
3991
3992 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3993
3994         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3995         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3996         of `Vcharacter_composition_table' if `->decomposition' property
3997         has only 1 element.
3998         (Qlatin_tcvn5712): New variable.
3999         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4000         (complex_vars_of_mule_charset): Add new coded-charset
4001         `latin-tcvn5712'.
4002
4003         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4004
4005 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4006
4007         * file-coding.h (struct Lisp_Coding_System): Add
4008         `enable_composition'.
4009         (CODING_SYSTEM_COMPOSITE): New macro.
4010         (XCODING_SYSTEM_COMPOSITE): New macro.
4011
4012 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4013
4014         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4015
4016 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4017
4018         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4019         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4020
4021 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4022
4023         * mule-charset.c (Vcharset_mojikyo): New variable.
4024         (Fdefine_char): Don't use coded-charset which does not have
4025         non-builtin character range to allocate character-id.
4026         (Qmojikyo): New variable.
4027         (syms_of_mule_charset): Add new symbol `mojikyo'.
4028         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4029
4030         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4031         (LEADING_BYTE_MOJIKYO): New macro.
4032         (MIN_CHAR_MOJIKYO): New macro.
4033         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4034         (MAX_CHAR_MOJIKYO): New macro.
4035
4036 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4037
4038         * mule-charset.c (remove_char_attribute): Fixed.
4039
4040 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4041
4042         * mule-charset.c (remove_char_attribute): New function.
4043         (Fremove_char_attribute): New function.
4044         (encode_builtin_char_1): Comment out builtin-support for
4045         greek-iso8859-7 and cyrillic-iso8859-5.
4046         (Fdecode_char): Check `code' is an integer.
4047         (syms_of_mule_charset): Add `remove-char-attribute'.
4048         (MIN_CHAR_GREEK): Deleted.
4049         (MAX_CHAR_GREEK): Likewise.
4050         (MIN_CHAR_CYRILLIC): Likewise.
4051         (MAX_CHAR_CYRILLIC): Likewise.
4052         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4053         MAX_CHAR_GREEK for `greek-iso8859-7'.
4054
4055         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4056         (MAX_CHAR_GREEK): Likewise.
4057         (MIN_CHAR_CYRILLIC): Likewise.
4058         (MAX_CHAR_CYRILLIC): Likewise.
4059
4060 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4061
4062         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4063         format is used without `ucs' property.
4064         (Fdecode_char): Fix problem with GR representation.
4065         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4066         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4067
4068 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4069
4070         * mule-charset.c (make_builtin_char): New function.
4071         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4072         (Fset_charset_mapping_table): Modify for new representation of
4073         code-point.
4074         (Fdecode_char): New function.
4075         (syms_of_mule_charset): Add new builtin function `decode-char' in
4076         UTF-2000.
4077
4078         * char-ucs.h (make_builtin_char): New prototype.
4079         (DECODE_CHAR): New inline function.
4080         (MAKE_CHAR): Use `DECODE_CHAR'.
4081
4082 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4083
4084         * text-coding.c (parse_charset_conversion_specs): Use
4085         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4086         `XCHARSET_TYPE'.
4087         (iso2022_designate): Likewise.
4088
4089         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4090         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4091
4092         * mule-charset.c (Vcharset_ucs): New variable.
4093         (print_charset): Change design; use `CHARSET_CHARS' and
4094         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4095         (make_charset): Change signature to specify `chars' and
4096         `dimension' instead of `type'.
4097         (range_charset_code_point): Modify for 256^n-set.
4098         (encode_builtin_char_1): Encode as `ucs' in default.
4099         (Fmake_charset): Modify for `make_charset'.
4100         (Fmake_reverse_direction_charset): Likewise.
4101         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4102         UTF-2000.
4103         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4104         for `make_charset'.
4105
4106         * char-ucs.h (Vcharset_ucs): New variable.
4107         (LEADING_BYTE_UCS): New macro.
4108         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4109         and `chars' to `unsigned short' from `unsigned int'.
4110         (CHARSET_TYPE): Deleted.
4111         (XCHARSET_TYPE): Deleted.
4112
4113 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4114
4115         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4116
4117         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4118         (ENCODE_CHAR): New macro.
4119
4120 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4121
4122         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4123         to 0.14 (Kawachi-Katakami).
4124
4125 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4126
4127         * text-coding.c (char_encode_shift_jis): Modify for
4128         `charset_code_point'.
4129         (char_encode_iso2022): Likewise.
4130
4131         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4132         (integer) instead of list of <Lisp_Object>s (integers) as the
4133         format of code-point of a coded-charset.
4134         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4135         (encode_builtin_char_1): New function; delete
4136         `split_builtin_char'.
4137         (charset_code_point): Return <int> instead of <Lisp_Object>.
4138         (Fsplit_char): Don't use `SPLIT_CHAR'.
4139
4140         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4141         prototype for `split_builtin_char'.
4142         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4143         (charset_code_point): Likewise.
4144         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4145         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4146
4147 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4148
4149         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4150         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4151
4152 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4153
4154         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4155
4156         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4157         (MAX_CHAR_OBS_94x94): Deleted.
4158
4159 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4160
4161         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4162
4163         * char-ucs.h (MAX_CHAR_BMP): New macro.
4164
4165 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4166
4167         * text-coding.c: Sync with r21-2-24.
4168
4169 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4170
4171         * file-coding.c: Modify for UTF-2000.
4172
4173 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4174
4175         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4176         to 0.13 (Takaida).
4177
4178 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4179
4180         * mule-charset.c (split_builtin_char): Delete builtin support for
4181         `katakana-jisx0201'.
4182         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4183         BMP area in builtin representation.
4184
4185         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4186         `Vcharset_katakana_jisx0201'.
4187
4188 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4189
4190         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4191         (Qisolated): New variable.
4192         (Qinitial): New variable.
4193         (Qmedial): New variable.
4194         (Qfinal): New variable.
4195         (Qvertical): New variable.
4196         (Qsmall): New variable.
4197         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4198         `Qvertical' and `Qsmall'.
4199         (Qmojikyo_pj_[1 .. 21]): New variable.
4200         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4201         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4202         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4203         .. 21]'.
4204
4205 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4206
4207         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4208         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4209         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4210
4211 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4212
4213         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4214         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4215         BMP.
4216         (Qjapanese_jisx0208_1990): New variable.
4217         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4218         (complex_vars_of_mule_charset): Add new coded-charset
4219         `japanese-jisx0208-1990'.
4220
4221         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4222         (MIN_CHAR_JIS_X0208_1990): New macro.
4223         (MAX_CHAR_JIS_X0208_1990): New macro.
4224
4225 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4226
4227         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4228         coded-charset is not found.
4229
4230 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4231
4232         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4233         (Fdefine_char): Use `Fmake_char'.
4234
4235 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4236
4237         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4238         (Vcharset_hiragana_jisx0208): Deleted.
4239         (Vcharset_katakana_jisx0208): Deleted.
4240         (Qideograph_daikanwa): New variable.
4241         (Qhiragana_jisx0208): Deleted.
4242         (Qkatakana_jisx0208): Deleted.
4243         (split_builtin_char): Split `ideograph-daikanwa'.
4244         (Fsplit_char): New implementation for UTF-2000.
4245         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4246         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4247         (complex_vars_of_mule_charset): Add new coded-charset
4248         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4249         `katakana-jisx0208'.
4250
4251         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4252         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4253         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4254         (MIN_CHAR_DAIKANWA): New macro.
4255         (MAX_CHAR_DAIKANWA): New macro.
4256
4257 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4258
4259         * data.c (Fstring_to_number): Don't recognize floating point if
4260         base is not 10.
4261
4262 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4263
4264         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4265
4266 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4267
4268         * mule-charset.c (Qsquare): New variable.
4269         (to_char_code): Add `Qsquare'.
4270         (syms_of_mule_charset): Add new symbol `square'.
4271
4272 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4273
4274         * mule-charset.c (Qcircle): New variable.
4275         (to_char_code): Add `Qcircle'.
4276         (syms_of_mule_charset): Add new symbol `circle'.
4277
4278 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4279
4280         * mule-charset.c (Qfont): New variable.
4281         (to_char_code): Add `Qfont'.
4282         (syms_of_mule_charset): Add new symbol `font'.
4283
4284 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4285
4286         * mule-charset.c (Qsub): New variable.
4287         (to_char_code): Add `Qsub'.
4288         (syms_of_mule_charset): Add new symbol `sub'.
4289
4290 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4291
4292         * mule-charset.c (Fput_char_attribute): Convert each element of
4293         VALUE to GL position if ATTRIBUTE is a GR-set,
4294
4295 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4296
4297         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4298         coded-charset is a GR-set.
4299
4300 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4301
4302         * mule-charset.c (Fput_char_attribute): Check each element of
4303         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4304
4305 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4306
4307         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4308         UTF-2000.
4309         (Qethiopic_ucs): New variable in UTF-2000.
4310         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4311         (complex_vars_of_mule_charset): Add new coded-charset
4312         `ethiopic-ucs' in UTF-2000.
4313
4314         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4315         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4316         9)'.
4317         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4318         10)'.
4319         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4320
4321 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4322
4323         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4324         `ascii'.
4325
4326 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4327
4328         * mule-charset.c (Vcharacter_variant_table): New variable.
4329         (Q_ucs): New variable.
4330         (Fchar_variants): New function.
4331         (Fput_char_attribute): Register `->ucs' value to
4332         `Vcharacter_variant_table'.
4333         (syms_of_mule_charset): Add new function `char-variants' and new
4334         symbol `->ucs'.
4335         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4336
4337 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4338
4339         * mule-charset.c (get_char_code_table): Allow negative character
4340         code.
4341         (put_char_code_table): Likewise.
4342         (Vcharacter_composition_table): New variable.
4343         (Q_decomposition): New variable.
4344         (Qwide): New variable.
4345         (Qnarrow): New variable.
4346         (Qcompat): New variable.
4347         (QnoBreak): New variable.
4348         (Qsuper): New variable.
4349         (Qfraction): New variable.
4350         (to_char_code): New function.
4351         (Fget_composite_char): New function.
4352         (Fput_char_attribute): Register `->decomposition' value to
4353         `Vcharacter_composition_table'.
4354         (syms_of_mule_charset): Add new function `get-composite-char', new
4355         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4356         `super' and `fraction'.
4357         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4358
4359 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4360
4361         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4362         character; copy the return value.
4363
4364 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4365
4366         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4367
4368         * mule-charset.c (range_charset_code_point): Must use make_int.
4369         (split_builtin_char): New function.
4370
4371 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4372
4373         * mule-charset.c (char_byte_table): Change name from
4374         "char-code-table" to "char-byte-table".
4375         (mark_char_code_table): New function.
4376         (char_code_table_equal): New function.
4377         (char_code_table_hash): New function.
4378         (char_code_table_description): New constant.
4379         (char_code_table): New type.
4380         (make_char_code_table): New function.
4381         (copy_char_code_table): New function.
4382         (get_char_code_table): Modify for `char_code_table' type.
4383         (put_char_code_table): Likewise.
4384         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4385         (Kashiwara).
4386
4387         * char-ucs.h (char_code_table): New type.
4388         (XCHAR_CODE_TABLE): New macro.
4389         (XSETCHAR_CODE_TABLE): New macro.
4390         (CHAR_CODE_TABLE_P): New macro.
4391         (GC_CHAR_CODE_TABLE_P): New macro.
4392         (struct Lisp_Char_Code_Table): New structure.
4393
4394 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4395
4396         * mule-charset.c (Fmake_charset): Setup byte_offset for
4397         {94|96}^n-set.
4398
4399 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4400
4401         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4402         character.
4403
4404 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4405
4406         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4407         is found.
4408
4409 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4410
4411         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4412         charset, it is regarded as a charset.
4413         (put_char_attribute): New function in UTF-2000.
4414         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4415         charset, mapping-table of the charset is modified.
4416         (Fdefine_char): New function in UTF-2000.
4417         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4418         `Fput_char_attribute'.
4419         (syms_of_mule_charset): Add new function `define-char' and new
4420         symbol `ucs' in UTF-2000.
4421         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4422
4423 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4424
4425         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4426         non-UTF-2000 configuration.
4427
4428 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4429
4430         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4431         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4432
4433         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4434         deleted.
4435         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4436         (Fset_charset_mapping_table): Likewise.
4437
4438         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4439         (CHARSET_ENCODING_TABLE): Delete.
4440         (XCHARSET_ENCODING_TABLE): Delete.
4441         (charset_code_point): New interface.
4442
4443 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4444
4445         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4446         instead of `charset_get_byte1' and `charset_get_byte2'.
4447
4448         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4449         (charset_get_byte2): Deleted.
4450
4451 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4452
4453         * char-ucs.h (SPLIT_CHAR): New inline function.
4454         (breakup_char_1): Use `SPLIT_CHAR'.
4455
4456         * mule-charset.c (range_charset_code_point): New function.
4457         (charset_code_point): New function.
4458
4459         * char-ucs.h (range_charset_code_point): New interface.
4460         (breakup_char_1): Use `range_charset_code_point'.
4461
4462 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4463
4464         * mule-charset.c (Fmake_charset): Delete unused local variable
4465         `code_offset'.
4466
4467         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4468         (breakup_char_1): Find a charset and code-point in
4469         `Vcharacter_attribute_table'.
4470
4471 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4472
4473         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4474         to 0.10 (Yao).
4475
4476 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4477
4478         * mule-charset.c (Vcharacter_attribute_table): New variable.
4479         (Fchar_attribute_alist): New function.
4480         (Fget_char_attribute): New function.
4481         (Fput_char_attribute): New function.
4482         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4483         too.
4484         (syms_of_mule_charset): Add new function `char-attribute-alist',
4485         `get-char-attribute' and `put-char-attribute'.
4486         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4487
4488 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4489
4490         * mule-charset.c (Fmake_charset): Just use
4491         `get_unallocated_leading_byte'.
4492
4493         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4494         sets; don't use final-byte based number for private sets.
4495
4496 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4497
4498         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4499         integer.
4500
4501 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4502
4503         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4504         to 0.9.
4505
4506 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4507
4508         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4509         of `CHAR_LEADING_BYTE' in UTF-2000.
4510
4511         * insdel.c (find_charsets_in_bufbyte_string): Use
4512         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4513         (find_charsets_in_emchar_string): Likewise.
4514
4515         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4516         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4517
4518         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4519         (CHAR_CHARSET_ID): New macro.
4520
4521 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4522
4523         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4524         charset-id - MIN_LEADING_BYTE.
4525         (put_char_table): Likewise.
4526
4527 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4528
4529         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4530         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4531         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4532         (CHARSET_ID_OFFSET): New macro.
4533         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4534         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4535         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4536         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4537         4).
4538         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4539         5).
4540         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4541         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4542         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4543         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4544         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4545
4546 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4547
4548         * mule-charset.c (next_allocated_leading_byte): New variable in
4549         UTF-2000.
4550         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4551         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4552         (get_unallocated_leading_byte): Simply use
4553         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4554         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4555         UTF-2000.
4556
4557         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4558         (MAX_LEADING_BYTE_PRIVATE): New macro.
4559         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4560         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4561
4562 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4563
4564         * mule-charset.c (Fmake_charset): Allocate final-byte based
4565         charset-id for 94-set, 96-set and 94x94-set.
4566
4567 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4568
4569         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4570         ambiguous `else'.
4571         (Fmake_charset): Likewise.
4572         (complex_vars_of_mule_charset): Modify the font registry of
4573         `ucs-bmp' not to match `Ethiopic-Unicode'.
4574
4575 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4576
4577         * mule-charset.c (complex_vars_of_mule_charset): Add font
4578         registory of `ucs-bmp'.
4579
4580 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4581
4582         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4583         coded-charsets in `default-coded-charset-priority-list' when
4584         breaking up a character.
4585
4586         * mule-charset.c (Vcharset_latin_viscii): New variable.
4587         (Qlatin_viscii): New variable.
4588         (make_charset): Don't use `decoding_table'.
4589         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4590         byte_offset.
4591         (Fset_charset_mapping_table): New implementation.
4592         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4593         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4594         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4595         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4596         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4597         charset `latin_viscii'.
4598
4599         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4600         (CHARSET_TYPE_94X94): Change to 1 from 2.
4601         (CHARSET_TYPE_96): Change to 2 from 1.
4602         (CHARSET_TYPE_128): New macro.
4603         (CHARSET_TYPE_128X128): Change to 5 from 4.
4604         (CHARSET_TYPE_256): New macro.
4605         (CHARSET_TYPE_256X256): Change to 7 from 5.
4606         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4607
4608 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4609
4610         * text-coding.c (char_encode_shift_jis): Refer
4611         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4612         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4613
4614         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4615         (char_byte_table_equal): New function in UTF-2000.
4616         (char_byte_table_hash): New function in UTF-2000.
4617         (char_byte_table_description): New constant in UTF-2000.
4618         (char_byte_table): New type in UTF-2000.
4619         (make_char_byte_table): New function in UTF-2000.
4620         (copy_char_byte_table): New function in UTF-2000.
4621         (make_char_code_table): New macro in UTF-2000.
4622         (get_char_code_table): New function in UTF-2000.
4623         (put_char_code_table): New function in UTF-2000.
4624         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4625         (charset_description): Add setting in UTF-2000.
4626         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4627         `CHARSET_TO_BYTE1_TABLE(cs)'.
4628         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4629         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4630         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4631         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4632         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4633         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4634         `CHARSET_TO_BYTE2_TABLE(cs)'.
4635
4636         * char-ucs.h (char_byte_table): New type.
4637         (XCHAR_BYTE_TABLE): New macro.
4638         (XSETCHAR_BYTE_TABLE): New macro.
4639         (CHAR_BYTE_TABLE_P): New macro.
4640         (GC_CHAR_BYTE_TABLE_P): New macro.
4641         (struct Lisp_Char_Byte_Table): New structure.
4642         (get_char_code_table): New interface.
4643         (Emchar_to_byte_table): Deleted.
4644         (get_byte_from_character_table): Deleted.
4645         (struct Lisp_Charset): Add `encoding_table'; delete
4646         `to_byte1_table' and `to_byte2_table'.
4647         (CHARSET_ENCODING_TABLE): New macro.
4648         (CHARSET_TO_BYTE1_TABLE): Deleted.
4649         (CHARSET_TO_BYTE2_TABLE): Deleted.
4650         (XCHARSET_ENCODING_TABLE): New macro.
4651         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4652         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4653
4654 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4655
4656         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4657         `vietnamese-viscii-*'.
4658
4659 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4660
4661         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4662         (Qvietnamese_viscii_upper): New variable.
4663         (Fdefine_charset_alias): New function.
4664         (syms_of_mule_charset): Add new function `define-charset-alias'.
4665         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4666         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4667         `latin-viscii-*'.
4668
4669 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4670
4671         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4672         (MAX_CHAR_OBS_94x94): New macro.
4673         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4674         for 94x94 sets.
4675
4676         * mule-charset.c (put_byte_from_character_table): Change unit size
4677         from 128 to 256.
4678         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4679         not defined.
4680         (Fmake_reverse_direction_charset): Modify dummy argument of
4681         `make_charset' for non-UTF-2000 environment.
4682
4683 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4684
4685         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4686
4687         * mule-charset.c (destroy_byte_from_character_table): New macro.
4688         (latin_jisx0201_to_ucs): Deleted.
4689         (latin_iso8859_2_to_ucs): Deleted.
4690         (latin_iso8859_3_to_ucs): Deleted.
4691         (latin_iso8859_4_to_ucs): Deleted.
4692         (latin_iso8859_9_to_ucs): Deleted.
4693         (latin_viscii_lower_to_ucs): Deleted.
4694         (latin_viscii_upper_to_ucs): Deleted.
4695         (mark_charset): Mark `cs->decoding_table'.
4696         (Fcharset_mapping_table): Fix DOC-string.
4697         (Fset_charset_mapping_table): New function.
4698         (syms_of_mule_charset): Add nwe function
4699         `set-charset-mapping-table'.
4700         (complex_vars_of_mule_charset): Don't setup and use
4701         `latin_*_to_ucs'.
4702
4703 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4704
4705         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4706         charset.
4707
4708 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4709
4710         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4711         (Vcharset_katakana_jisx0208): New variable.
4712         (Qhiragana_jisx0208): New variable.
4713         (Qkatakana_jisx0208): New variable.
4714         (make_charset): Add new argument `byte_offset'.
4715         (charset_get_byte1): Modify for new coded-charset definition; use
4716         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4717         `XCHARSET_BYTE_OFFSET'.
4718         (Fmake_charset): Modify for `make_charset'.
4719         (Fmake_reverse_direction_charset): Likewise.
4720         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4721         `katakana-jisx0208'.
4722         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4723         `.'  in font registry of charset `katakana-jisx0201',
4724         `latin-jisx0201', `vietnamese-viscii-lower' and
4725         `vietnamese-viscii-upper'; modify DOC-string of charset
4726         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4727         registry of charset `japanese-jisx0208' not to use font for JIS
4728         X0208:1990; add new charset `hiragana-jisx0208' and
4729         `katakana-jisx0208'.
4730
4731         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4732         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4733         (struct Lisp_Charset): Add `byte_offset'.
4734         (CHARSET_BYTE_OFFSET): New macro.
4735         (XCHARSET_UCS_MIN): New macro.
4736         (XCHARSET_UCS_MAX): New macro.
4737         (XCHARSET_CODE_OFFSET): New macro.
4738         (XCHARSET_BYTE_OFFSET): New macro.
4739         (MIN_CHAR_HIRAGANA): New macro.
4740         (MAX_CHAR_HIRAGANA): New macro.
4741         (MIN_CHAR_KATAKANA): New macro.
4742         (MAX_CHAR_KATAKANA): New macro.
4743         (MAKE_CHAR): Modify for new coded-charset definition; use
4744         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4745         `XCHARSET_BYTE_OFFSET'.
4746
4747 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4748
4749         * mule-charset.c (CHAR96): Deleted.
4750         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4751         <Lisp_Object>.
4752         (latin_iso8859_2_to_ucs): Likewise.
4753         (latin_iso8859_3_to_ucs): Likewise.
4754         (latin_iso8859_4_to_ucs): Likewise.
4755         (latin_iso8859_9_to_ucs): Likewise.
4756         (latin_viscii_lower_to_ucs): Likewise.
4757         (latin_viscii_upper_to_ucs): Likewise.
4758         (latin_tcvn5712_to_ucs): Commented out.
4759         (make_charset): Change type of argument `decoding_table' from
4760         <Emchar*> to <Lisp_Object> [vector of characters].
4761         (Fmake_charset): Modify for `make_charset'.
4762         (Fmake_reverse_direction_charset): Likewise.
4763         (Fcharset_mapping_table): New function in UTF-2000.
4764         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4765         UTF-2000.
4766         (complex_vars_of_mule_charset): Modify for type change of
4767         `*_to_ucs'; modify for `make_charset'.
4768
4769         * char-ucs.h (struct Lisp_Charset): Change type of
4770         `decoding_table' from <Emchar*> to <Lisp_Object>.
4771         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4772
4773 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4774
4775         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4776         error with non-UTF-2000-Mule.
4777
4778 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4779
4780         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4781         in lisp again].
4782         (Vcharset_chinese_cns11643_4): Likewise.
4783         (Vcharset_chinese_cns11643_5): Likewise.
4784         (Vcharset_chinese_cns11643_6): Likewise.
4785         (Vcharset_chinese_cns11643_7): Likewise.
4786         (Qchinese_cns11643_3): Likewise.
4787         (Qchinese_cns11643_4): Likewise.
4788         (Qchinese_cns11643_5): Likewise.
4789         (Qchinese_cns11643_6): Likewise.
4790         (Qchinese_cns11643_7): Likewise.
4791         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4792         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4793         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4794         (complex_vars_of_mule_charset): Likewise.
4795
4796 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4797
4798         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4799         96-set.
4800         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4801         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4802
4803 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4804
4805         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4806         0xFF60.
4807         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4808         (breakup_char_1): Likewise.
4809
4810         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4811         one of them includes the specified character.
4812
4813 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4814
4815         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4816
4817 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4818
4819         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4820
4821 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4822
4823         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4824         definition for non-UTF-2000 Mule.
4825         (latin_iso8859_3_to_ucs): Likewise.
4826         (latin_iso8859_4_to_ucs): Likewise.
4827         (latin_iso8859_9_to_ucs): Likewise.
4828         (latin_jisx0201_to_ucs): Likewise.
4829         (MIN_CHAR_THAI): Likewise.
4830         (MAX_CHAR_THAI): Likewise.
4831         (MIN_CHAR_GREEK): Likewise.
4832         (MAX_CHAR_GREEK): Likewise.
4833         (MIN_CHAR_HEBREW): Likewise.
4834         (MAX_CHAR_HEBREW): Likewise.
4835         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4836         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4837         (MIN_CHAR_CYRILLIC): Likewise.
4838         (MAX_CHAR_CYRILLIC): Likewise.
4839
4840 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4841
4842         * char-ucs.h (breakup_char_1): Use
4843         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4844         thai-tis620 and katakana-jisx0201 area.
4845
4846 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4847
4848         * char-ucs.h (breakup_char_1): Use
4849         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4850         area.
4851
4852         * text-coding.c (reset_encoding_stream): Fixed.
4853         (char_encode_ucs4): Delete `& 255'.
4854
4855         * char-ucs.h (breakup_char_1): Use
4856         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4857
4858 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4859
4860         * file-coding.c (Fmake_coding_system): Don't set up
4861         `codesys->fixed.size'.
4862         (encode_coding_no_conversion): Don't refer
4863         `str->codesys->fixed.size'.
4864
4865 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4866
4867         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4868         (latin_a_char_to_byte1): Deleted.
4869         (latin_a_char_to_byte2): Deleted.
4870
4871 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4872
4873         * mule-charset.c (make_charset): Add new argument `ucs_min',
4874         `ucs_max' and `code_offset'.
4875         (charset_get_byte1): New implementation [delete specific charset
4876         depended implementations].
4877         (Fmake_charset): Modify for `make_charset'.
4878         (Fmake_reverse_direction_charset): Likewise.
4879         (complex_vars_of_mule_charset): Likewise.
4880
4881         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4882         `code_offset'.
4883         (CHARSET_UCS_MIN): New macro.
4884         (CHARSET_UCS_MAX): New macro.
4885         (CHARSET_CODE_OFFSET): New macro.
4886         (MAKE_CHAR): Delete charset depended definitions [except
4887         katakana-jisx0201].
4888
4889 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4890
4891         * char-ucs.h (breakup_char_1): Use
4892         `Vdefault_coded_charset_priority_list' for C0-Controls,
4893         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4894
4895 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4896
4897         * char-ucs.h (charset_get_byte1): New function.
4898         (XCHARSET_GET_BYTE1): Deleted.
4899         (charset_get_byte2): New function.
4900         (XCHARSET_GET_BYTE2): Deleted.
4901         (Vdefault_coded_charset_priority_list): New external variable.
4902         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4903         `Vdefault_preferred_coded_charset_list'.
4904
4905         * mule-charset.c (charset_get_byte1): New function.
4906         (charset_get_byte2): New function.
4907         (Vdefault_coded_charset_priority_list): New variable.
4908         (vars_of_mule_charset): Add new variable
4909         `default-coded-charset-priority-list'.
4910
4911 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4912
4913         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4914         (XCHARSET_GET_BYTE2): New inline function.
4915         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4916         `XCHARSET_GET_BYTE2'.
4917
4918 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4919
4920         * mule-charset.c (make_charset): Initialize
4921         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4922         NULL if table is not defined.
4923
4924 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4925
4926         * text-coding.c (char_encode_shift_jis): Use
4927         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4928         `ucs_to_latin_jisx0201'.
4929
4930         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4931         (ucs_to_latin_iso8859_2): Deleted.
4932         (ucs_to_latin_iso8859_3): Deleted.
4933         (ucs_to_latin_iso8859_4): Deleted.
4934         (ucs_to_latin_iso8859_9): Deleted.
4935         (ucs_to_latin_viscii_lower): Deleted.
4936         (ucs_to_latin_viscii_upper): Deleted.
4937         (ucs_to_latin_tcvn5712): Deleted.
4938         (make_charset): Add new argument `decoding_table'; set up
4939         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4940         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4941         `decoding_table' is defined in UTF-2000.
4942         (Fmake_charset): Modify for `make_charset'.
4943         (Fmake_reverse_direction_charset): Likewise.
4944         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4945         and `GENERATE_96_SET'.
4946
4947         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4948         (ucs_to_latin_jisx0201): Deleted.
4949         (latin_iso8859_2_to_ucs): Deleted.
4950         (ucs_to_latin_iso8859_2): Deleted.
4951         (latin_iso8859_3_to_ucs): Deleted.
4952         (ucs_to_latin_iso8859_3): Deleted.
4953         (latin_iso8859_4_to_ucs): Deleted.
4954         (ucs_to_latin_iso8859_4): Deleted.
4955         (latin_iso8859_9_to_ucs): Deleted.
4956         (ucs_to_latin_iso8859_9): Deleted.
4957         (latin_viscii_lower_to_ucs): Deleted.
4958         (ucs_to_latin_viscii_lower): Deleted.
4959         (latin_viscii_upper_to_ucs): Deleted.
4960         (ucs_to_latin_viscii_upper): Deleted.
4961         (struct Lisp_Charset): Renamed `encoding_table' to
4962         `to_byte1_table'; add `to_byte2_table'.
4963         (CHARSET_DECODING_TABLE): New macro.
4964         (CHARSET_TO_BYTE1_TABLE): New macro.
4965         (CHARSET_TO_BYTE2_TABLE): New macro.
4966         (XCHARSET_DECODING_TABLE): New macro.
4967         (XCHARSET_TO_BYTE1_TABLE): New macro.
4968         (XCHARSET_TO_BYTE2_TABLE): New macro.
4969         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4970         tables.
4971         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4972         don't use `ucs_to_*' tables.
4973
4974 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4975
4976         * text-coding.c (Fmake_coding_system): Don't set up
4977         `codesys->fixed.size'.
4978         (encode_coding_no_conversion): Use `if' instead of `switch'.
4979
4980         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4981
4982 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4983
4984         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4985         (Fmake_charset): Modify for `make_charset'.
4986         (Fmake_reverse_direction_charset): Likewise.
4987         (complex_vars_of_mule_charset): Likewise.
4988
4989 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4990
4991         * text-coding.c (char_encode_shift_jis): Use table
4992         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4993
4994 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4995
4996         * text-coding.c (text_encode_generic): Use `if' instead of
4997         `switch'.
4998         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4999         decode JIS-Latin.
5000
5001 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5002
5003         * text-coding.c (encode_coding_sjis): Deleted.
5004         (char_encode_shift_jis): New function.
5005         (char_finish_shift_jis): New function.
5006         (reset_encoding_stream): Set up `encode_char' and `finish' for
5007         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5008         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5009         (char_encode_utf8): Treat `eol_type'.
5010
5011 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5012
5013         * file-coding.c (decode_coding_iso2022): Use
5014         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5015
5016 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5017
5018         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5019         to 0.7 (Hirano).
5020
5021 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5022
5023         * char-lb.h (CHAR_COLUMNS): New macro.
5024
5025 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5026
5027         * text-coding.c (char_encode_ucs4): New function.
5028         (char_finish_ucs4): New function.
5029         (encode_coding_ucs4): Deleted.
5030         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5031         (text_encode_generic): Delete local variable `charset' and `half'.
5032         (ucs_to_mule_table): Deleted.
5033         (mule_to_ucs_table): Deleted.
5034         (Fset_ucs_char): Deleted.
5035         (ucs_to_char): Deleted.
5036         (Fucs_char): Deleted.
5037         (Fset_char_ucs): Deleted.
5038         (Fchar_ucs): Deleted.
5039         (decode_ucs4): Deleted.
5040         (mule_char_to_ucs4): Deleted.
5041         (encode_ucs4): Deleted.
5042         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5043         (decode_coding_utf8): Likewise.
5044         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5045         (char_encode_iso2022): Fixed.
5046         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5047         `Fset_char_ucs' and `Fchar_ucs'.
5048         (complex_vars_of_file_coding): Don't initialize
5049         `ucs_to_mule_table'.
5050
5051         * objects-tty.c (tty_initialize_font_instance): Don't use
5052         `XCHARSET_COLUMNS'.
5053
5054         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5055         UTF-2000.
5056
5057         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5058         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5059
5060         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5061         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5062         (emchar_string_displayed_columns): Likewise.
5063
5064         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5065         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5066         (string_column_at_point): Likewise.
5067         (Fmove_to_column): Likewise.
5068
5069         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5070         `encoding_table' and `decoding_table'.
5071         (CHARSET_REP_BYTES): Deleted.
5072         (XCHARSET_REP_BYTES): Deleted.
5073         (XCHARSET_COLUMNS): Deleted.
5074         (CHAR_COLUMNS): New macro.
5075         (lookup_composite_char): Deleted unconditionally.
5076         (composite_char_string): Likewise.
5077
5078 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5079
5080         * char-ucs.h (Emchar_to_byte_table): New type.
5081         (get_byte_from_character_table): New function interface.
5082         (Vcharset_latin_jisx0201): New variable.
5083         (latin_jisx0201_to_ucs): New variable.
5084         (ucs_to_latin_jisx0201): New variable.
5085         (Vcharset_latin_iso8859_2): New variable.
5086         (latin_iso8859_2_to_ucs): New variable.
5087         (ucs_to_latin_iso8859_2): New variable.
5088         (Vcharset_latin_iso8859_3): New variable.
5089         (latin_iso8859_3_to_ucs): New variable.
5090         (ucs_to_latin_iso8859_3): New variable.
5091         (Vcharset_latin_iso8859_4): New variable.
5092         (latin_iso8859_4_to_ucs): New variable.
5093         (ucs_to_latin_iso8859_4): New variable.
5094         (Vcharset_latin_iso8859_9): New variable.
5095         (latin_iso8859_9_to_ucs): New variable.
5096         (ucs_to_latin_iso8859_9): New variable.
5097         (Vcharset_latin_viscii_lower): New variable.
5098         (latin_viscii_lower_to_ucs): New variable.
5099         (ucs_to_latin_viscii_lower): New variable.
5100         (Vcharset_latin_viscii_upper): New variable.
5101         (latin_viscii_upper_to_ucs): New variable.
5102         (ucs_to_latin_viscii_upper): New variable.
5103         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5104         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5105         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5106         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5107         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5108         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5109         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5110         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5111         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5112         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5113
5114         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5115         (Vcharset_latin_viscii_upper): New variable.
5116         (make_byte_from_character_table): New function.
5117         (put_byte_from_character_table): New function.
5118         (get_byte_from_character_table): New function.
5119         (CHAR96): New macro.
5120         (ucs_to_latin_jisx0201): New variable.
5121         (latin_jisx0201_to_ucs): New variable.
5122         (ucs_to_latin_iso8859_2): New variable.
5123         (latin_iso8859_2_to_ucs): New variable.
5124         (ucs_to_latin_iso8859_3): New variable.
5125         (latin_iso8859_3_to_ucs): New variable.
5126         (ucs_to_latin_iso8859_4): New variable.
5127         (latin_iso8859_4_to_ucs): New variable.
5128         (ucs_to_latin_iso8859_9): New variable.
5129         (latin_iso8859_9_to_ucs): New variable.
5130         (ucs_to_latin_viscii_lower): New variable.
5131         (latin_viscii_lower_to_ucs): New variable.
5132         (ucs_to_latin_viscii_upper): New variable.
5133         (latin_viscii_upper_to_ucs): New variable.
5134         (ucs_to_latin_tcvn5712): New variable.
5135         (latin_tcvn5712_to_ucs): New variable.
5136         (Qlatin_viscii_lower): New variable.
5137         (Qlatin_viscii_upper): New variable.
5138         (syms_of_mule_charset): Set up new symbol
5139         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5140         (complex_vars_of_mule_charset): Set up new charset
5141         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5142         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5143         `ucs_to_<CHARSET>' tables.
5144
5145 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5146
5147         * text-coding.c: New file.
5148
5149 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5150
5151         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5152
5153         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5154         (MAKE_CHAR): Modify for `ucs-bmp'.
5155         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5156         non-MULE characters of BMP.
5157
5158 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5159
5160         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5161         to 0.6.
5162
5163 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5164
5165         * lstream.h:
5166         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5167         - Include character.h for `CHAR_ASCII_P'.
5168
5169         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5170
5171         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5172         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5173
5174         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5175         (BYTE_C0_P): Likewise.
5176         (BYTE_C1_P): Likewise.
5177         (Lstream_get_emchar_1): Likewise.
5178         (Lstream_fput_emchar): Likewise.
5179         (Lstream_funget_emchar): Likewise.
5180         (copy_internal_to_external): Likewise.
5181         (copy_external_to_internal): Likewise.
5182
5183         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5184         (BYTE_C0_P): Likewise.
5185         (BYTE_C1_P): Likewise.
5186         (Lstream_get_emchar_1): Likewise.
5187         (Lstream_fput_emchar): Likewise.
5188         (Lstream_funget_emchar): Likewise.
5189         (copy_internal_to_external): Likewise.
5190         (copy_external_to_internal): Likewise.
5191
5192         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5193         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5194
5195         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5196         (BYTE_ASCII_P): Moved to mb-1byte.h.
5197
5198 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5199
5200         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5201
5202         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5203         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5204         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5205         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5206         (VALIDATE_CHARPTR_FORWARD): Likewise.
5207         (simple_charptr_emchar): Moved to mb-multibyte.h.
5208         (simple_set_charptr_emchar): Likewise.
5209         (simple_charptr_copy_char): Likewise.
5210         (non_ascii_charptr_emchar): Likewise.
5211         (non_ascii_set_charptr_emchar): Likewise.
5212         (non_ascii_charptr_copy_char): Likewise.
5213         (charptr_emchar): Moved to mb-*byte.h.
5214         (set_charptr_emchar): Likewise.
5215         (charptr_copy_char): Likewise.
5216
5217         * mb-1byte.h, mb-multibyte.h: New files.
5218
5219 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5220
5221         * mb-utf-8.h (MULTIBYTE): New macro.
5222         (MAX_EMCHAR_LEN): Moved from buffer.h.
5223         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5224
5225         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5226
5227         * mb-lb.h, multibyte.h: New files.
5228
5229         * char-1byte.h (Charset_ID): Moved from buffer.h.
5230         (MIN_LEADING_BYTE): Likewise.
5231         (LEADING_BYTE_ASCII): Likewise.
5232         (NUM_LEADING_BYTES): Likewise.
5233         (CHARSETP): Likewise.
5234         (CHARSET_BY_LEADING_BYTE): Likewise.
5235         (XCHARSET_LEADING_BYTE): Likewise.
5236         (XCHARSET_GRAPHIC): Likewise.
5237         (XCHARSET_COLUMNS): Likewise.
5238         (XCHARSET_DIMENSION): Likewise.
5239         (CHAR_CHARSET): Likewise.
5240         (CHAR_LEADING_BYTE): Likewise.
5241         (BREAKUP_CHAR): Likewise.
5242         (Vcharset_ascii): Likewise.
5243
5244         * buffer.h: Include multibyte.h unconditionally.
5245         (VALID_CHARPTR_P): Moved to multibyte.h.
5246         (ASSERT_VALID_CHARPTR): Likewise.
5247         (REAL_INC_CHARPTR): Likewise.
5248         (REAL_INC_CHARBYTIND): Likewise.
5249         (REAL_DEC_CHARPTR): Likewise.
5250         (INC_CHARPTR): Likewise.
5251         (INC_CHARBYTIND): Likewise.
5252         (DEC_CHARPTR): Likewise.
5253         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5254         (VALIDATE_CHARPTR_FORWARD): Likewise.
5255         (charptr_n_addr): Likewise.
5256         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5257         (simple_charptr_emchar): Moved to multibyte.h.
5258         (simple_set_charptr_emchar): Likewise.
5259         (simple_charptr_copy_char): Likewise.
5260         (non_ascii_charptr_emchar): Likewise.
5261         (non_ascii_set_charptr_emchar): Likewise.
5262         (non_ascii_charptr_copy_char): Likewise.
5263         (charptr_emchar): Likewise.
5264         (set_charptr_emchar): Likewise.
5265         (charptr_copy_char): Likewise.
5266         (charptr_emchar_n): Likewise.
5267         (Charset_ID): Moved to char-1byte.h.
5268         (Vcharset_ascii): Likewise.
5269         (CHAR_CHARSET): Likewise.
5270         (CHAR_LEADING_BYTE): Likewise.
5271         (LEADING_BYTE_ASCII): Likewise.
5272         (NUM_LEADING_BYTES): Likewise.
5273         (MIN_LEADING_BYTE): Likewise.
5274         (CHARSETP): Likewise.
5275         (CHARSET_BY_LEADING_BYTE): Likewise.
5276         (XCHARSET_LEADING_BYTE): Likewise.
5277         (XCHARSET_GRAPHIC): Likewise.
5278         (XCHARSET_COLUMNS): Likewise.
5279         (XCHARSET_DIMENSION): Likewise.
5280         (BREAKUP_CHAR): Likewise.
5281
5282 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5283
5284         * character.h: Add document about interface for characters.
5285
5286         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5287         (MAKE_CHAR): Delete comment about
5288         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5289         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5290         (BREAKUP_CHAR): Modify name of arguments.
5291         (CHAR_CHARSET): Modify name of argument.
5292
5293         * buffer.h: Delete document about Emchar accessors.
5294
5295 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5296
5297         * character.h (CHAR_INTP): Moved from buffer.h
5298         (CHAR_OR_CHAR_INTP): Likewise.
5299         (XCHAR_OR_CHAR_INT): Likewise.
5300         (CHECK_CHAR_COERCE_INT): Likewise.
5301
5302         * buffer.h (CHAR_INTP): Moved to character.h
5303         (CHAR_OR_CHAR_INTP): Likewise.
5304         (XCHAR_OR_CHAR_INT): Likewise.
5305         (CHECK_CHAR_COERCE_INT): Likewise.
5306
5307 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5308
5309         * character.h:
5310         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5311         - Include char-1byte.h, char-lb.h or char-ucs.h.
5312
5313         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5314
5315         * buffer.h: Include character unconditionally.
5316         (valid_char_p): Moved to char-*.h.
5317         (non_ascii_valid_char_p): Moved to char-lb.h.
5318
5319         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5320
5321 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5322
5323         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5324         in UTF-2000 because it is not ported yet and not to use
5325         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5326         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5327         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5328
5329         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5330         (CHAR_ASCII_P): Moved from character.h.
5331
5332         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5333         (CHAR_ASCII_P): Likewise.
5334         (CHAR_FIELD1_MASK): Deleted.
5335         (CHAR_FIELD2_MASK): Deleted.
5336         (CHAR_FIELD3_MASK): Deleted.
5337         (MAX_CHAR_BASIC_LATIN): New macro.
5338         (CHAR_FIELD1): Deleted.
5339         (CHAR_FIELD2_INTERNAL): Deleted.
5340         (CHAR_FIELD3_INTERNAL): Deleted.
5341         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5342         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5343         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5344         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5345         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5346         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5347         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5348         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5349         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5350         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5351         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5352         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5353         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5354         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5355         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5356         (MIN_CHAR_COMPOSITION): Deleted.
5357         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5358         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5359
5360 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5361
5362         * buffer.h: Include mb-utf-8.h in UTF-2000.
5363
5364         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5365
5366         * mb-utf-8.h: New file.
5367
5368 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5369
5370         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5371         instead of `int'.
5372
5373         * mule-charset.h, buffer.h (Charset_ID): New type.
5374
5375 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5376
5377         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5378         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5379         instead of `MULE_CHAR_PRIVATE_OFFSET',
5380         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5381         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5382         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5383
5384         * character.h (Vcharset_japanese_jisx0212): New variable
5385         definition.
5386
5387 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5388
5389         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5390         (charset_by_attributes): Delete array about direction.
5391         (latin_a_char_to_charset): New variable in UTF-2000.
5392         (latin_a_char_to_byte1): New variable in UTF-2000.
5393         (latin_a_char_to_byte2): New variable in UTF-2000.
5394         (Qucs_bmp): New variable.
5395         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5396         `Bufbyte'.
5397         (next_allocated_2_byte_leading_byte): Likewise.
5398         (non_ascii_set_charptr_emchar): Likewise.
5399         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5400         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5401         `charset_by_attributes'.
5402         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5403         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5404         and `CHARSET_BY_LEADING_BYTE'.
5405         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5406         `utf-2000-version' to `vars_of_mule_charset'.
5407         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5408         define `leading-code-private-11' in UTF-2000; move setting of
5409         `utf-2000-version' from `syms_of_mule_charset'.
5410         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5411         UTF-2000.
5412
5413         * character.h (Charset_ID): New type.
5414         (LEADING_BYTE_UCS_BMP): New macro.
5415         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5416         (CHARSET_ID_OFFSET_94): New macro.
5417         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5418         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5419         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5420         final-byte.
5421         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5422         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5423         (CHARSET_ID_OFFSET_96): New macro.
5424         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5425         CHARSET_ID_OFFSET_96 and final-byte.
5426         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5427         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5428         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5429         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5430         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5431         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5432         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5433         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5434         (LEADING_BYTE_THAI_TIS620): Likewise.
5435         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5436         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5437         (CHARSET_ID_OFFSET_94x94): New macro.
5438         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5439         CHARSET_ID_OFFSET_94x94 and final-byte.
5440         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5441         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5442         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5443         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5444         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5445         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5446         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5447         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5448         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5449         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5450         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5451         (CHARSET_TYPE_128X128): New macro.
5452         (CHARSET_TYPE_256X256): New macro.
5453         (XCHARSET_PRIVATE_P): Delete unconditionally.
5454         (charset_by_attributes): Delete array about direction.
5455         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5456         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5457         (MIN_CHAR_94): New macro.
5458         (MAX_CHAR_94): New macro.
5459         (MIN_CHAR_96): New macro.
5460         (MAX_CHAR_96): New macro.
5461         (MIN_CHAR_94x94): New macro.
5462         (MAX_CHAR_94x94): New macro.
5463         (MIN_CHAR_96x96): New macro.
5464         (MAX_CHAR_96x96): New macro.
5465         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5466         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5467         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5468         - 32)'.
5469         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5470         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5471         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5472         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5473         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5474         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5475         `XCHARSET_LEADING_BYTE' to make code-point.
5476         (latin_a_char_to_charset): New variable.
5477         (latin_a_char_to_byte1): New variable.
5478         (latin_a_char_to_byte2): New variable.
5479         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5480         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5481         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5482
5483         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5484         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5485         (find_charsets_in_emchar_string): Likewise.
5486         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5487
5488         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5489         `int'.
5490         (decode_coding_iso2022): Likewise.
5491
5492         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5493         of `unsigned char'.
5494
5495         * redisplay.c (redisplay_text_width_emchar_string): Use
5496         `Charset_ID' instead of `unsigned char'.
5497         (redisplay_frame_text_width_string): Likewise.
5498
5499         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5500         `unsigned char'.
5501
5502         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5503         instead of `unsigned char'.
5504         (face_cachel_charset_font_metric_info): Likewise.
5505
5506         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5507         (get_non_ascii_char_table_value): Likewise.
5508         (get_char_table): Likewise.
5509         (put_char_table): Likewise.
5510         (map_over_other_charset): Likewise.
5511         (map_char_table): Likewise.
5512
5513         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5514         instead of `unsigned char'.
5515
5516 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5517
5518         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5519         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5520
5521         * mule-charset.c (leading_code_private_11): Don't define in
5522         UTF-2000.
5523
5524         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5525         in UTF-2000 because it is not ported yet and not to use
5526         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5527
5528 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5529
5530         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5531
5532 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5533
5534         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5535         in UTF-2000.
5536
5537         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5538         of unsigned char to store leading-byte.
5539
5540         * chartab.c (get_non_ascii_char_table_value): Don't use
5541         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5542
5543         * file-coding.c (encode_coding_big5): Delete bogus implementation
5544         in UTF2000.
5545
5546         * character.h (LEADING_BYTE_*): Delete definition for
5547         non-UTF-2000.
5548         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5549         (LEADING_BYTE_PREFIX_P): Deleted.
5550         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5551         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5552         (BUFBYTE_LEADING_BYTE_P): Deleted.
5553         (CHARSET_PRIVATE_P): Deleted unconditionally.
5554         (rep_bytes_by_first_byte): Deleted unconditionally.
5555         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5556         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5557         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5558         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5559         (CHAR_FIELD2): Deleted.
5560         (CHAR_FIELD3): Deleted.
5561         (MAKE_CHAR): Delete definition for non-UTF-2000.
5562         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5563         (breakup_char_1): New implementation.
5564         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5565         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5566
5567 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5568
5569         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5570         condition.
5571
5572 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5573
5574         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5575         (CHARSET_PRIVATE_P): Likewise.
5576         (XCHARSET_PRIVATE_P): Likewise.
5577         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5578
5579         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5580         UTF2000.
5581         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5582
5583 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5584
5585         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5586         (NUM_LEADING_BYTES): Changed from 128 to 256.
5587         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5588         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5589         UTF2000.
5590         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5591
5592         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5593         UTF2000.
5594         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5595         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5596         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5597         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5598         (Qchinese_cns11643_3): New variable in UTF2000.
5599         (Qchinese_cns11643_4): New variable in UTF2000.
5600         (Qchinese_cns11643_5): New variable in UTF2000.
5601         (Qchinese_cns11643_6): New variable in UTF2000.
5602         (Qchinese_cns11643_7): New variable in UTF2000.
5603         (syms_of_mule_charset): Define `chinese-cns11643-3',
5604         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5605         and `chinese-cns11643-7' in UTF2000.
5606         (vars_of_mule_charset): Initialize
5607         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5608         + 1 in UTF2000.
5609         (complex_vars_of_mule_charset): Setup charset
5610         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5611         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5612
5613 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5614
5615         * mule-charset.c: Move setting for `leading-code-private-11' from
5616         `syms_of_mule_charset' to `vars_of_mule_charset'.
5617
5618 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5619
5620         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5621         and `NUM_LEADING_BYTES' in assert.
5622
5623 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5624
5625         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5626         instead of 128.
5627         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5628         `NUM_LEADING_BYTES' instead of 128.
5629
5630 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5631
5632         * mule-charset.h (charset_by_leading_byte): Use
5633         `NUM_LEADING_BYTES' instead of 128.
5634         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5635
5636         * mule-charset.c (charset_by_leading_byte): Use
5637         `NUM_LEADING_BYTES' instead of 128.
5638         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5639
5640         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5641         128.
5642
5643 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5644
5645         * mule-charset.c (syms_of_mule_charset): Update to
5646         0.4 (Shin-Imamiya).
5647
5648 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5649
5650         * file-coding.c (encode_coding_sjis): New implementation for
5651         UTF2000.  (decode_coding_sjis): Ditto.
5652
5653 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5654
5655         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5656         Don't define in UTF2000.
5657
5658         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5659         defined.
5660
5661         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5662         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5663         MULE.
5664
5665 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5666
5667         * config.h.in (CHAR_IS_UCS4): New macro.
5668
5669         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5670         conventional MULE representation.
5671         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5672
5673         * mule-charset.h: Reverted to original.
5674
5675         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5676         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5677         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5678
5679         * character.h: New file.
5680
5681         * file-coding.c (Fmake_coding_system): Set 1 to
5682         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5683         defined.
5684         (encode_coding_no_conversion): New implementation for UTF2000.
5685
5686         * file-coding.h (struct Lisp_Coding_System): Add new member
5687         `fixed.size'.
5688
5689 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5690
5691         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5692         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5693         (encode_coding_iso2022): New implementation for UTF2000.
5694
5695 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5696
5697         * mule-canna.c (c2mu): New implementation for UTF2000.
5698         (m2c): Likewise.
5699
5700 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5701
5702         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5703
5704 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5705
5706         * file-coding.c (reset_encoding_stream): Set 0 to
5707         `str->iso2022.current_char_boundary' in UTF2000.
5708         (encode_utf8): Don't define in UTF2000.
5709         (encode_coding_utf8): New implementation for UTF-8 representation
5710         of UTF2000.
5711         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5712
5713 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5714
5715         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5716
5717         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5718         UTF2000.
5719         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5720
5721         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5722
5723         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5724         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5725         as UTF-8 in UTF2000.
5726         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5727         (non_ascii_valid_char_p): Don't define in UTF2000.
5728         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5729         (Lstream_get_emchar_1): Likewise.
5730         (utf-2000-version): New variable in UTF2000.
5731
5732         * lread.c (read_escape): Add new reader `u'.
5733
5734         * insdel.c (three_to_one_table): Don't define in UTF2000.
5735         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5736         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5737         UTF2000.
5738         (bytind_to_bufpos_func): Likewise.
5739         (buffer_mule_signal_inserted_region): Likewise.
5740         (vars_of_insdel): Don't initialize `three_to_one_table'.
5741         (init_buffer_text): Use `buf->text->mule_size' instead of
5742         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5743         UTF2000.
5744
5745         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5746         UTF-8 representation in UTF2000.
5747         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5748         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5749         (decode_coding_iso2022): Don't define local variable `lb' in
5750         UTF2000; don't use LEADING_BYTE in UTF2000; use
5751         `DECODE_ADD_UCS_CHAR' in UTF2000.
5752         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5753
5754         * config.h.in (UTF2000): New macro.
5755
5756         * buffer.h (struct buffer_text): Add new member `mule_size' and
5757         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5758         (valid_char_p): Return always 1 in UTF2000.
5759         (MAX_EMCHAR_LEN): 6 in UTF2000.
5760         (three_to_one_table): Don't define in UTF2000.
5761         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5762         UTF2000.
5763         (real_bytind_to_bufpos): Likewise.
5764
5765         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5766
5767 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5768
5769         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5770         representation change.
5771         (Vutf_2000_version): New variable.
5772         (leading_code_private_11): New variable.
5773         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5774         `leading-code-private-11'.
5775
5776         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5777         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5778         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5779         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5780         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5781         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5782         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5783         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5784         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5785         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5786         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5787         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5788         (MIN_CHAR_GREEK): New macro.
5789         (MAX_CHAR_GREEK): New macro.
5790         (MIN_CHAR_CYRILLIC): New macro.
5791         (MAX_CHAR_CYRILLIC): New macro.
5792         (MIN_CHAR_HEBREW): New macro.
5793         (MAX_CHAR_HEBREW): New macro.
5794         (MIN_CHAR_THAI): New macro.
5795         (MAX_CHAR_THAI): New macro.
5796         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5797         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5798         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5799         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5800         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5801         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5802         (CHAR_FIELD2): New inline function.
5803         (CHAR_FIELD3): New inline function.
5804         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5805         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5806         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5807         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5808         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5809         (MIN_CHAR_COMPOSITION): Likewise.
5810         (CHAR_LEADING_BYTE): Modified for character representation change.
5811         (MAKE_CHAR): Likewise.
5812
5813         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5814         (Vcharset_greek_iso8859_7): Likewise.
5815         (Vcharset_cyrillic_iso8859_5): Likewise.
5816         (Vcharset_hebrew_iso8859_8): Likewise.
5817         (Vcharset_thai_tis620): Likewise.
5818         (Vcharset_katakana_jisx0201): Likewise.
5819
5820 2005-02-06  Vin Shelton <acs@xemacs.org>
5821
5822         * XEmacs 21.4.17 is released
5823
5824 2005-01-31  Ben Wing  <ben@xemacs.org>
5825
5826         * emacs.c:
5827         Define assert_failed() always.
5828         * lisp.h:
5829         Always define ABORT().
5830
5831 2005-01-25  Ben Wing  <ben@xemacs.org>
5832
5833         * Makefile.in.in:
5834         * Makefile.in.in (%.o):
5835         Don't compile executable as Windows (-mwindows) under Cygwin.
5836         Semi-recent changes to Cygwin's executable-startup handling make
5837         it impossible to access the TTY this way.
5838
5839         Don't use special linker file under Cygwin (cygwin.sc) except
5840         when non-PDUMP (even in this case it is highly questionable); you
5841         get errors like
5842
5843       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
5844    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
5845
5846 2005-01-29  Ben Wing  <ben@xemacs.org>
5847
5848         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5849
5850         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
5851
5852 2005-01-29  Ben Wing  <ben@xemacs.org>
5853
5854         * bytecode.c (optimize_compiled_function):
5855         * print.c (FROB):
5856         * print.c (long_to_string):
5857         Add casts to avoid warning.
5858         
5859         * glyphs-eimage.c:
5860         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
5861         #### The better solution is to move the TIFF and JPEG code to
5862         different files.
5863         
5864         * glyphs-msw.c (mswindows_xbm_instantiate):
5865         Define __STDC__ to avoid problems with compface.h.
5866         
5867         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
5868         * EmacsShell-sub.c:
5869         * EmacsShell-sub.c (ABORT):
5870         * EmacsShell-sub.c (SuperClassRootGeometryManager):
5871         * EmacsShell-sub.c (RootGeometryManager):
5872         * EmacsShell.c:
5873         * EmacsShell.c (ABORT):
5874         * EmacsShell.c (EmacsShellUpdateSizeHints):
5875         * alloc.c (free_lcrecord):
5876         * alloca.c (i00afunc):
5877         * buffer.c (delete_from_buffer_alist):
5878         * buffer.c (MARKED_SLOT):
5879         * bytecode.c (execute_rare_opcode):
5880         * bytecode.c (optimize_byte_code):
5881         * bytecode.c (Ffetch_bytecode):
5882         * chartab.c (char_table_type_to_symbol):
5883         * chartab.c (Freset_char_table):
5884         * chartab.c (decode_char_table_range):
5885         * chartab.c (Fget_range_char_table):
5886         * chartab.c (check_valid_char_table_value):
5887         * chartab.c (map_char_table):
5888         * chartab.c (slow_map_char_table_fun):
5889         * chartab.c (chartab_instantiate):
5890         * cm.c (cmcheckmagic):
5891         * console-msw.c (DHEADER):
5892         * console.c (MARKED_SLOT):
5893         * data.c (finish_marking_weak_lists):
5894         * data.c (encode_weak_list_type):
5895         * debug.h (DASSERT):
5896         * device-gtk.c (gtk_init_device):
5897         * device-msw.c (mswindows_get_default_margin):
5898         * device-tty.c (tty_init_device):
5899         * device-x.c (get_device_from_display):
5900         * device-x.c (x_get_visual_depth):
5901         * doprnt.c (parse_doprnt_spec):
5902         * doprnt.c (get_doprnt_args):
5903         * dumper.c (pdump_get_indirect_count):
5904         * dumper.c (pdump_register_sub):
5905         * dumper.c (pdump_register_object):
5906         * dumper.c (pdump_register_struct):
5907         * dumper.c (pdump_dump_data):
5908         * dumper.c (pdump_reloc_one):
5909         * elhash.c (print_hash_table):
5910         * elhash.c (make_standard_lisp_hash_table):
5911         * elhash.c (hash_table_instantiate):
5912         * emacs.c:
5913         * emacs.c (Fforce_debugging_signal):
5914         * emacs.c (sort_args):
5915         * emacs.c (main):
5916         * emacs.c (assert_failed):
5917         * eval.c (throw_or_bomb_out):
5918         * eval.c (signal_1):
5919         * eval.c (Fsignal):
5920         * event-Xt.c:
5921         * event-Xt.c (emacs_Xt_mapping_action):
5922         * event-Xt.c (Xt_process_to_emacs_event):
5923         * event-msw.c:
5924         * event-stream.c (check_event_stream_ok):
5925         * event-stream.c (Fadd_timeout):
5926         * event-stream.c (Fadd_async_timeout):
5927         * event-stream.c (Fdiscard_input):
5928         * event-stream.c (execute_internal_event):
5929         * event-stream.c (Frecent_keys):
5930         * event-stream.c (extract_this_command_keys_nth_mouse_event):
5931         * event-stream.c (lookup_command_event):
5932         * event-unixoid.c (poll_fds_for_input):
5933         * events.c:
5934         * events.c (mark_event):
5935         * events.c (event_equal):
5936         * events.c (event_hash):
5937         * events.c (Fmake_event):
5938         * events.c (Fdeallocate_event):
5939         * events.c (event_chain_find_previous):
5940         * events.c (event_to_character):
5941         * events.c (format_event_object):
5942         * events.c (Fevent_type):
5943         * events.c (event_pixel_translation):
5944         * events.c (Fevent_properties):
5945         * extents.c (extent_in_region_p):
5946         * extents.c (print_extent):
5947         * extents.c (process_extents_for_insertion_mapper):
5948         * extents.c (report_extent_modification_mapper):
5949         * extents.c (glyph_layout_to_symbol):
5950         * faces.c (face_validate):
5951         * file-coding.c (eol_type_to_symbol):
5952         * file-coding.c (subsidiary_coding_system):
5953         * file-coding.c (Fcoding_system_type):
5954         * file-coding.c (Fcoding_system_property):
5955         * file-coding.c (mule_decode):
5956         * file-coding.c (mule_encode):
5957         * file-coding.c (encode_coding_ucs4):
5958         * file-coding.c (encode_coding_utf8):
5959         * file-coding.c (parse_iso2022_esc):
5960         * file-coding.c (encode_coding_iso2022):
5961         * fileio.c:
5962         * fns.c (concat):
5963         * fns.c (Fsubseq):
5964         * fns.c (mapcar1):
5965         * fns.c (Fbase64_encode_region):
5966         * fns.c (Fbase64_encode_string):
5967         * fns.c (Fbase64_decode_region):
5968         * fns.c (Fbase64_decode_string):
5969         * font-lock.c (find_context):
5970         * font-lock.c (context_to_symbol):
5971         * frame-gtk.c (gtk_set_frame_pointer):
5972         * frame-gtk.c (gtk_update_frame_external_traits):
5973         * frame-x.c (x_wm_mark_shell_size_user_specified):
5974         * frame-x.c (x_wm_mark_shell_position_user_specified):
5975         * frame-x.c (x_wm_set_shell_iconic_p):
5976         * frame-x.c (x_wm_set_cell_size):
5977         * frame-x.c (x_wm_set_variable_size):
5978         * frame-x.c (x_wm_store_class_hints):
5979         * frame-x.c (x_wm_maybe_store_wm_command):
5980         * frame-x.c (x_initialize_frame_size):
5981         * frame-x.c (x_update_frame_external_traits):
5982         * frame.c:
5983         * frame.c (delete_frame_internal):
5984         * frame.c (mouse_pixel_position_1):
5985         * frame.c (change_frame_size_1):
5986         * free-hook.c (check_free):
5987         * free-hook.c (check_realloc):
5988         * free-hook.c (note_block_input):
5989         * free-hook.c (log_gcpro):
5990         * gccache-gtk.c (gc_cache_lookup):
5991         * glyphs-eimage.c (tiff_memory_write):
5992         * glyphs-gtk.c (gtk_finalize_image_instance):
5993         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
5994         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
5995         * glyphs-gtk.c (gtk_xpm_instantiate):
5996         * glyphs-gtk.c (gtk_unmap_subwindow):
5997         * glyphs-gtk.c (gtk_map_subwindow):
5998         * glyphs-gtk.c (gtk_button_redisplay):
5999         * glyphs-msw.c:
6000         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6001         * glyphs-x.c (init_image_instance_from_xbm_inline):
6002         * glyphs-x.c (extract_xpm_color_names):
6003         * glyphs-x.c (x_xpm_instantiate):
6004         * glyphs.c (get_image_instantiator_governing_domain):
6005         * glyphs.c (print_image_instance):
6006         * glyphs.c (image_instance_equal):
6007         * glyphs.c (image_instance_hash):
6008         * glyphs.c (encode_image_instance_type):
6009         * glyphs.c (make_image_instance_1):
6010         * glyphs.c (inherit_instantiate):
6011         * glyphs.c (image_instantiate):
6012         * glyphs.c (allocate_glyph):
6013         * glyphs.c (Fglyph_type):
6014         * glyphs.c (redisplay_subwindow):
6015         * glyphs.c (display_table_entry):
6016         * gtk-glue.c (xemacs_list_to_gtklist):
6017         * gtk-glue.c (xemacs_gtklist_to_list):
6018         * gtk-glue.c (xemacs_list_to_array):
6019         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6020         * gutter.c (gutter_was_visible):
6021         * gutter.c (get_gutter_coords):
6022         * input-method-xlib.c (get_XIM_input):
6023         * insdel.c (bufpos_to_bytind_func):
6024         * insdel.c (bytind_to_bufpos_func):
6025         * insdel.c (move_gap):
6026         * intl.c (x_get_composed_input):
6027         * keymap.c (keymap_lookup_directly):
6028         * keymap.c (keymap_delete_inverse_internal):
6029         * keymap.c (ensure_meta_prefix_char_keymapp):
6030         * keymap.c (accessible_keymaps_mapper_1):
6031         * keymap.c (where_is_recursive_mapper):
6032         * lisp.h:
6033         * lisp.h (ABORT):
6034         * lread.c (read_atom):
6035         * lstream.c (Lstream_delete):
6036         * lstream.c (make_lisp_buffer_stream_1):
6037         * macros.c (pop_kbd_macro_event):
6038         * malloc.c (malloc):
6039         * malloc.c (free):
6040         * marker.c (bi_marker_position):
6041         * marker.c (set_bi_marker_position):
6042         * menubar-gtk.c (menu_descriptor_to_widget_1):
6043         * menubar-msw.c (prune_menubar):
6044         * menubar-x.c (set_frame_menubar):
6045         * mule-charset.c (get_unallocated_leading_byte):
6046         * mule-charset.h (CHAR_LEADING_BYTE):
6047         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6048         * nt.c (init_environment):
6049         * nt.c (generate_inode_val):
6050         * ntproc.c (delete_child):
6051         * ntproc.c (_sys_read_ahead):
6052         * ntproc.c (create_child):
6053         * objects.c (color_instantiate):
6054         * objects.c (font_instantiate):
6055         * objects.c (face_boolean_instantiate):
6056         * print.c (printing_major_badness):
6057         * process-nt.c (nt_send_process):
6058         * process-unix.c (unix_send_process):
6059         * process.c (get_process):
6060         * ralloc.c (obtain):
6061         * ralloc.c (relinquish):
6062         * ralloc.c (relocate_blocs):
6063         * ralloc.c (resize_bloc):
6064         * ralloc.c (r_alloc_free):
6065         * ralloc.c (r_re_alloc):
6066         * ralloc.c (r_alloc_thaw):
6067         * ralloc.c (init_ralloc):
6068         * ralloc.c (Free_Addr_Block):
6069         * ralloc.c (r_alloc):
6070         * redisplay-gtk.c (gtk_output_display_block):
6071         * redisplay-msw.c (mswindows_output_display_block):
6072         * redisplay-output.c (get_next_display_block):
6073         * redisplay-output.c (get_cursor_size_and_location):
6074         * redisplay-output.c (redisplay_output_layout):
6075         * redisplay-output.c (redisplay_clear_region):
6076         * redisplay-tty.c (tty_output_display_block):
6077         * redisplay-x.c (x_output_display_block):
6078         * redisplay.c (add_propagation_runes):
6079         * redisplay.c (add_glyph_rune):
6080         * redisplay.c (create_text_block):
6081         * redisplay.c (add_margin_runes):
6082         * redisplay.c (create_left_glyph_block):
6083         * redisplay.c (create_right_glyph_block):
6084         * redisplay.c (create_string_text_block):
6085         * redisplay.c (regenerate_window):
6086         * redisplay.c (REGEN_INC_FIND_START_END):
6087         * redisplay.c (redisplay_frame):
6088         * redisplay.c (point_in_line_start_cache):
6089         * regex.c:
6090         * regex.c (ABORT):
6091         * regex.c (re_compile_fastmap):
6092         * regex.c (re_match_2_internal):
6093         * regex.c (regerror):
6094         * scrollbar-gtk.c (gtk_scrollbar_loop):
6095         * scrollbar-gtk.c (scrollbar_cb):
6096         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6097         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6098         * scrollbar-x.c (x_update_scrollbar_instance_status):
6099         * scrollbar-x.c (x_scrollbar_loop):
6100         * scrollbar-x.c (x_update_frame_scrollbars):
6101         * search.c (search_command):
6102         * search.c (Fmatch_data):
6103         * select-x.c (motif_clipboard_cb):
6104         * signal.c (interrupt_signal):
6105         * specifier.c (specifier_add_spec):
6106         * specifier.c (specifier_instance_from_inst_list):
6107         * specifier.c (specifier_instance):
6108         * specifier.h:
6109         * specifier.h (struct specifier_methods):
6110         * strftime.c (add_num_time_t):
6111         * sunplay.c (init_device):
6112         * symbols.c (Fsetplist):
6113         * symbols.c (do_symval_forwarding):
6114         * symbols.c (store_symval_forwarding):
6115         * symbols.c (Fset):
6116         * symbols.c (Fbuilt_in_variable_type):
6117         * symbols.c (decode_magic_handler_type):
6118         * symbols.c (handler_type_from_function_symbol):
6119         * syntax.c (update_syntax_cache):
6120         * sysdep.c (init_baud_rate):
6121         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6122         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6123         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6124         * toolbar.c (get_toolbar_coords):
6125         * ui-gtk.c (build_gtk_boxed):
6126         * ui-gtk.c (describe_gtk_arg):
6127         * ui-gtk.c (gtk_type_to_lisp):
6128         * ui-gtk.c (lisp_to_gtk_type):
6129         * ui-gtk.c (lisp_to_gtk_ret_type):
6130         * ui-gtk.c (lisp_to_flag):
6131         * unexnt.c (read_in_bss):
6132         * unexnt.c (map_in_heap):
6133         * window.c (real_window):
6134         * window.c (window_display_lines):
6135         * window.c (window_display_buffer):
6136         * window.c (set_window_display_buffer):
6137         * window.c (window_modeline_height):
6138         * window.c (unshow_buffer):
6139         * window.c (window_loop):
6140         * window.c (Fget_lru_window):
6141         * window.c (Fsplit_window):
6142         * window.c (Fset_window_configuration):
6143         * window.c (saved_window_index):
6144         * xgccache.c (gc_cache_lookup):
6145         abort() -> ABORT().  Eliminate preprocessor games with abort()
6146         since it creates huge problems in VC7, solvable only by including
6147         massive amounts of files in every compile (and not worth it).
6148
6149         * sysdep.c:
6150         * sysproc.h:
6151         Inclusion of process.h does not need to be before lisp.h any more.
6152         Move later and remove comment about abort().
6153
6154 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6155
6156         * regex.c (re_match_2_internal):
6157         Correctly initialize loop which clears uninitialized registers.
6158
6159 2005-01-28  Vin Shelton  <acs@xemacs.org>
6160
6161         * sheap.c (more_static_core): Applied Ben's version of the long
6162         string patch.
6163
6164 2005-01-24  Vin Shelton  <acs@xemacs.org>
6165
6166         * sheap.c (more_static_core): Reformatted printf string so
6167         gcc-3.3.3 will compile this on Cygwin.
6168
6169 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6170
6171         * console.c (function_key_map): Reference `key-binding'.
6172
6173         * keymap.c (Vkey_translation_map): Improve docstring.
6174
6175 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6176
6177         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6178         * window.c (window_loop): [fix] Take into account
6179         `allow-deletion-of-last-visible-frame' variable.
6180         * window.c (replace-buffer-in-windows): Ditto.
6181
6182 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6183
6184         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6185
6186 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6187
6188         * event-gtk.c: Recognise AltGr as a valid modifier.
6189
6190 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6191
6192         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6193
6194 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6195
6196         Fix backreference bug caught by test suite.
6197
6198         * regex.c (regex_compile):
6199         Make backref duplicate internal register.
6200
6201 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6202
6203         Documentation, code clarification, and warning suppression.
6204         
6205         * regex.c (regex_compile):
6206         Improve comments.
6207         (re_match_2_internal):
6208         Improve comments and avoid redundant braces.  [Most of the big hunk
6209         at l. 4710 is indentation; use diff -w to see the real changes.]
6210         (alt_match_null_string_p):
6211         (common_op_match_null_string_p):
6212         Avoid shadowing global on Mac OS X 10.4, at least.
6213
6214 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6215
6216         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6217         introduced with shy groups fix).  [Already applied, probably
6218         with the second "fix shy groups" patch of 2004-10-07.] 
6219
6220 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6221
6222         From Andrey Slusar <anrays@gmail.com>:
6223
6224         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6225
6226 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6227
6228         * Makefile (RECURSIVE_MAKE): Removed.
6229         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6230         handling parallel builds.
6231
6232 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6233
6234         * Makefile.in.in: Enable support for parallel builds.
6235
6236 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6237
6238         From Andrey Slusar <anrays@gmail.com>:
6239
6240         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6241         FreeBSD version is >= 199701 _and_ < 600006.
6242
6243 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6244
6245         * scrollbar.c (compute_scrollbar_instance_usage):
6246         Only call device method compute_scrollbar_instance_usage() if it
6247         is defined.
6248
6249 2004-12-05  Vin Shelton <acs@xemacs.org>
6250
6251         * XEmacs 21.4.16 is released
6252
6253 2004-12-04  Vin Shelton  <acs@xemacs.org>
6254
6255         * depend: Regenerated.
6256
6257 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6258
6259         * regex.c (re_match_2_internal): Map internal to external
6260         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6261         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6262
6263 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6264
6265         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6266         to fix a crash.  Also, check the buffer is live and it
6267         really exists in buffer_list.  If the buffer is not in the list,
6268         prepend it.
6269
6270 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6271
6272         Fix shy groups by implementing recording of all groups for
6273         repetition and backtracking.  Backport from 21.5.
6274         
6275         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6276         external_to_internal_register, external_to_internal_register_size,
6277         and update comments for re_nsub.
6278
6279         * regex.c (re_opcode_t): Update comments.
6280         (print_compiled_pattern): Ouput external_to_internal_register,
6281         external_to_internal_register_size, and re_ngroups for debugging.
6282         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6283         (regex_compile): Update header comment.
6284         Ensure that all groups are recorded so that repeat matches and
6285         backtracking work correctly.  Comment related warning for groups >
6286         255.
6287         (re_search_2): Construct map of API indexes (which count only
6288         nonshy groups) to internal register numbers, and keep it updated.
6289
6290 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6291
6292         * frame-gtk.c (gtk_make_frame_visible):
6293         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6294         show/hide.  This is what X uses and is prevents previously hidden
6295         widgets from suddenly reappearing.
6296         * gtk-xemacs.c (gtk_xemacs_paint):
6297         * gtk-xemacs.c (gtk_xemacs_draw):
6298         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6299         drawable.
6300         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6301         size and location changes so that they can be seen before the next
6302         idle event.  Without this rapid changes to scrollbar properties
6303         are not seen.
6304
6305 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6306
6307         * console-gtk.h:
6308         * console-gtk.h (struct gtk_frame):
6309         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6310           Add hash tables track tab_control callback data.
6311           Added #defines for GTK object data names.
6312           Declaration of gtk_widget_to_frame().
6313         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6314         * frame-gtk.c (gtk_widget_to_frame): New.
6315         * frame-gtk.c (gtk_create_widgets):
6316         * frame-gtk.c (allocate_gtk_frame_struct):
6317         * frame-gtk.c (gtk_mark_frame):
6318         Manage frame callbakc hash tables.
6319         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6320         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6321         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6322         of widget size.
6323         * glyphs-gtk.c (gtk_widget_query_geometry): New
6324         * glyphs-gtk.c (gtk_register_gui_item): New
6325         * glyphs-gtk.c (gtk_add_tab_item): New
6326         * glyphs-gtk.c (gtk_tab_control_callback): New
6327         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6328         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6329         Use correct list when loading item.
6330         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6331         Register new methods.
6332         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6333         default size, for widgets.
6334         * gui-x.c:  Improved comment.
6335         * menubar-gtk.c (__generic_button_callback): Use
6336         gtk_widget_to_frame instead of __get_channel.
6337         * scrollbar-gtk.c:
6338         * ui-gtk.c: Use symbolic names for GTK object data.
6339
6340 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6341
6342         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6343
6344 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6345
6346         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6347
6348 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6349
6350         * malloc.c (morecore): siz is a long because in some architectures
6351         (eg ia-64) an int cannot hold the address range.  Additional patch
6352         from the SuSe distribution.
6353
6354 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6355
6356         * emacs.c:
6357         * malloc.c: lim_data is a long because in some architectures
6358         (eg ia-64) an int cannot hold the address range.
6359         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6360         instead of ulimit() because ulimit() always returns -1.
6361
6362 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6363
6364         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6365
6366 2004-06-11  David Kastrup  <dak@gnu.org>
6367
6368         * search.c (match_limit): Don't flag an error if match-data
6369         exceeding the allocated search_regs.num_regs gets requested, just
6370         return Qnil.
6371
6372 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6373
6374         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6375         replace symbolic color entries with the real colors specified in
6376         xpm-color-symbols, before passing the XPM to gtk.
6377         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6378         instead of a GTK specific field, so that it is used in by generic
6379         code.
6380
6381 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6382
6383        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6384         coredump from deref of NULL ptr (ExtData)
6385
6386 2004-04-19  Jerry James  <james@xemacs.org>
6387
6388         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6389         VALBITS to compute the location of the sign bit.
6390         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6391         of VALBITS with EMACS_INT_MAX.
6392         * events.c (Fevent_timestamp): Ditto.
6393         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6394         compute the halfway point to timestamp wraparound.
6395         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6396         EMACS_INT_MIN instead of using VALBITS.
6397         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6398         incorrect number with VALBITS.
6399         * fns.c (Frandom): Correct number of integer bits in docstring.
6400         Use INT_VALBITS instead of VALBITS to compute the denominator.
6401         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6402         build random numbers.
6403
6404 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6405         * event-gtk.c:
6406         * event-gtk.c (gtk_event_to_emacs_event):
6407         * menubar-gtk.c:
6408         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6409         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6410         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6411         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6412         * menubar-gtk.c (__activate_menu):
6413         * menubar-gtk.c (convert_underscores):
6414         * menubar-gtk.c (remove_underscores):
6415         * menubar-gtk.c (menu_convert):
6416         * menubar-gtk.c (menu_descriptor_to_widget_1):
6417         * menubar-gtk.c (menu_descriptor_to_widget):
6418         * menubar-gtk.c (menu_can_reuse_widget):
6419         * menubar-gtk.c (menu_create_menubar):
6420         * menubar-gtk.c (gtk_popup_menu):
6421         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6422         Added support for Gtk menu bar and menu item mnemonics.
6423
6424 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6425
6426         * sysdll.c: (dll_function): Added support for finding symbols in
6427         Darwin shared libraries as well in Darwin bundles.
6428         * sysdll.c (image_for_address): New
6429         * sysdll.c (my_find_image): New
6430         * sysdll.c (search_linked_libs): New
6431
6432 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6433
6434         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6435         return to GTK requires a different API to marshalling data to use
6436         as GTK parameters.
6437         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6438
6439 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6440
6441         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6442
6443 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6444
6445         * glyphs.c (process_image_string_instantiator):
6446         (Fset_console_type_image_conversion_list):
6447         Stop GCC from warning about shadowing of `exp'.
6448
6449         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6450
6451 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6452
6453         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6454
6455 2004-02-03  Vin Shelton  <acs@xemacs.org>
6456
6457         * glyphs.c (image_instance_layout): Remove pointless assertion.
6458         * regex.c (regex_grow_registers): Return type is void.
6459
6460 2004-02-02  Vin Shelton <acs@xemacs.org>
6461
6462         * XEmacs 21.4.15 is released
6463
6464 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6465
6466         * device-x.c (x_error_handler): Don't call stderr_out
6467
6468 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6469
6470         * buffer.c (other-buffer): Clarify documentation of order of
6471         arguments for FSF Emacs.
6472
6473 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6474
6475         * window.c (Fdelete_window): Dirty the mirror structure _before_
6476         marking the window deleted.
6477
6478 2003-09-15  Jerry James  <james@xemacs.org>
6479
6480         * event-msw.c (debug_mswin_messages): Conditionally compile
6481         messages missing from the Cygwin headers.
6482
6483 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6484
6485         * data.c (eq_with_ebola_notice): Fix typo in comment.
6486         (Ftrue_list_p): Improve docstring.
6487
6488 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6489
6490         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6491
6492 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6493
6494         * search.c (trivial_regexp_p): Regexps containing "\{" are
6495         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6496         Stefan Monnier for suggesting a diagnosis.
6497
6498 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6499
6500         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6501
6502 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6503
6504         * search.c (Fsearch_forward):
6505         (Fsearch_backward):
6506         Document negative count.
6507
6508 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6509
6510         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6511
6512 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6513
6514         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6515
6516 2003-09-15  Vin Shelton  <acs@xemacs.org>
6517
6518         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6519         21.5.
6520
6521 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6522
6523         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6524         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6525         (re_match_2_internal): Use TRANSLATE instead of
6526         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6527         non-ASCII char case conversion.
6528
6529 2003-09-08  Mike Sperber  <mike@xemacs.org>
6530
6531         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6532         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6533
6534 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6535
6536        * .gdbinit (pobj): fix printing of symbol name.
6537
6538 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6539
6540         * frame-x.c (x_layout_widgets): When resizing is about to cause
6541         frame size slip, mark it for redisplay.
6542
6543 2003-08-18  Jerry James  <james@xemacs.org>
6544
6545         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6546
6547 2003-09-03  Vin Shelton <acs@xemacs.org>
6548
6549         * XEmacs 21.4.14 is released
6550
6551 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6552
6553         * config.h.in (REGEX_MALLOC): Make it configure'able.
6554
6555 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6556
6557         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6558         linking.
6559         * sysdll.c (dll_init):
6560         * sysdll.c (dll_open):
6561         * sysdll.c (dll_close):
6562         * sysdll.c (dll_function):
6563         * sysdll.c (dll_variable):
6564         * sysdll.c (dll_error):
6565         Add support for loading bundles using Darwin/MacOSX
6566         native API.
6567
6568 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6569
6570         * process.c (start-process-internal): Document coding systems.
6571
6572 2003-07-30  Jerry James  <james@xemacs.org>
6573
6574         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6575
6576 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
6577
6578         * event-msw.c (mswindows_enqueue_mouse_button_event):
6579         * event-msw.c (mswindows_wnd_proc):
6580           enqueue button event when scrollwheel event isn't handled by 
6581           mswindows_handle_mousewheel_event, such as when the scrollbars
6582           are not showing.
6583
6584 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
6585
6586         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
6587
6588 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
6589
6590         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
6591
6592 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
6593
6594         * regex.c (re_match_2_internal): Fix matching degenerate word
6595         boundaries.
6596
6597 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
6598
6599         * XEmacs 21.4.13 is released
6600
6601 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
6602
6603         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
6604         * lisp.h (<inttypes.h>):
6605         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
6606         the definition.
6607
6608 2003-03-15  Martin Buchholz  <martin@xemacs.org>
6609
6610         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
6611         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
6612         Result: "temacs can only be run in -batch mode."
6613         Fix: Check xemacs executable candidate for directory-ness.
6614
6615 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
6616
6617         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
6618           they conflict with <sys/types.h>.
6619
6620 2003-02-14  Martin Buchholz  <martin@xemacs.org>
6621
6622         * database.c: Berkeley DB wants __STDC__ to be defined.
6623
6624 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6625
6626         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
6627
6628 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6629
6630         * process-unix.c (unix_send_process): Fix C++ compile error.
6631
6632 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
6633
6634         * Added .dylib as an acceptable shared library file extension
6635         * to support MacOSX.
6636
6637 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6638
6639         * EmacsFrameP.h (EmacsFramePart):
6640         Kludge to allow compiling with Motif1, but linking with Motif2.
6641
6642 2003-01-28  Martin Buchholz  <martin@xemacs.org>
6643
6644         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
6645
6646
6647 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
6648
6649         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
6650
6651 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
6652
6653         * sysdll.c: Included lisp.h to define needed alloca_array.
6654
6655 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6656
6657         Make XEmacs redisplay 10 times faster.
6658         If, that is, you're using a slow X connection and MoveOpaque.
6659         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
6660         Use compress_motion = TRUE.
6661         * EmacsFrame.c (emacsFrameClassRec): 
6662         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
6663         * EmacsManager.c (emacsManagerClassRec):
6664         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
6665
6666 2003-01-30  Vin Shelton  <acs@xemacs.org>
6667
6668         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
6669
6670 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
6671
6672         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
6673         Patch by Martin Buchholz.
6674
6675 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
6676
6677         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
6678         Thanks to icc for warning and Martin Buchholz for reporting.
6679
6680 2003-01-29  Vin Shelton <acs@xemacs.org>
6681
6682         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
6683
6684         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
6685         remember to multiply by the element size.
6686
6687 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
6688
6689         * XEmacs 21.4.12 "Portable Code" is released.
6690
6691 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
6692
6693         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
6694         * s/cygwin.sc: new linker file.
6695
6696 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
6697
6698         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
6699
6700         * redisplay-x.c (x_output_string): Use X11-specified types.
6701         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
6702         * emacs.c (__free_hook): Use typeof with Intel compiler.
6703         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
6704
6705 2003-01-08  Andy Piper  <andy@xemacs.org>
6706
6707         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
6708         reserve size during unexec().
6709
6710 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
6711
6712         * process-unix.c (unix_create_process): Don't let outchannel block.
6713
6714 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
6715
6716         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
6717         Needed for IsBadReadPtr().
6718
6719 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
6720
6721         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
6722
6723 2002-12-14  Ben Wing  <ben@xemacs.org>
6724
6725         * callint.c: Declaration error.
6726         * dumper.c (pdump):
6727         * dumper.c (pdump_load): Warning fix.
6728         * process.c: GCPRO error.
6729         * glyphs.c (unmap_subwindow):
6730         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
6731         * event-stream.c (maybe_kbd_translate): Wrong argument to
6732         character_to_event().
6733
6734         * alloc.c (garbage_collect_1):
6735         * emacs.c:
6736         * emacs.c (debug_can_access_memory):
6737         * emacs.c (fatal_error_signal):
6738         * emacs.c (mswindows_handle_hardware_exceptions):
6739         * emacs.c (main_1):
6740         * emacs.c (main):
6741         * emacs.c (assert_failed):
6742         * emacs.c (syms_of_emacs):
6743         * lisp.h:
6744         * print.c:
6745         * print.c (std_handle_out_va):
6746         * print.c (write_string_to_stdio_stream):
6747         * print.c (write_fmt_string):
6748         * print.c (printing_badness):
6749         * print.c (printing_major_badness):
6750         * print.c (print_internal):
6751         * print.c (debug_print_no_newline):
6752         * print.c (debug_backtrace):
6753         Be more defensive in handling bad values when printing.  Add code
6754         from trunk involving inhibit_non_essential_printing_operations.
6755         When going down or in debug_print(), don't do external conversion
6756         and such and try really, really hard when printing to avoid core
6757         dumping.  Add force-debugging-signal, debug_break().
6758
6759 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
6760
6761         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
6762         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
6763
6764 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
6765
6766         * database.c: Fix open_database. Berkeley DB API has changed in
6767         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
6768
6769 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
6770
6771         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
6772
6773 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
6774
6775         * event-Xt.c (Xt_timeout):
6776         (Xt_timeout_callback):
6777         (emacs_Xt_add_timeout):
6778         (emacs_Xt_remove_timeout):
6779         (Xt_timeout_to_emacs_event):
6780         Turn completed_timeouts from a stack into a queue.  Fixes
6781         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
6782
6783 2002-11-07  Wolfram Gloger  <wg@malloc.de>
6784
6785         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
6786         * emacs.c (main): Assert that mmap'd allocation is disabled.
6787
6788 2002-10-14  Andy Piper  <andy@xemacs.org>
6789
6790         * glyphs-widget.c (layout_query_geometry): add in fiddle
6791         factor. Include border text in width layout calculation.
6792         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
6793
6794 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
6795
6796         * XEmacs 21.4.10 "Military Intelligence" is released.
6797
6798 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
6799
6800         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
6801         using the NAS private array SoundFileInfo that no longer exists in
6802         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
6803         and earlier.  This is broken for some versions between 1.5a and
6804         1.5f.
6805
6806 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
6807
6808         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
6809
6810         * emacs.c (shut_down_emacs): Improve crash message.
6811
6812 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
6813
6814         * file-coding.c (determine_real_coding_system): Check for coding
6815         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
6816         shebangs and Python PEP 263.
6817
6818 2002-10-08  Andy Piper  <andy@xemacs.org>
6819
6820         * glyphs-widget.c (layout_query_geometry): only resize dynamically
6821         if static sizes haven't been set.
6822
6823 2002-08-30  Mike Alexander  <mta@arbortext.com>
6824
6825         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
6826         to close a socket.
6827
6828 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
6829
6830         * callproc.c (child_setup): 21.4 doesn't have retry_close.
6831
6832 2002-09-20  Mike Sperber <mike@xemacs.org>
6833
6834         (This partially gets back my patch from 2002-07-20 without the
6835         bug.)
6836         * callproc.c (child_setup): Remove Ben's comment noting confusion
6837         over the file descriptors >= 3: close_process_descs() doesn't
6838         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
6839         * process-unix.c (unix_create_process): Call
6840         begin_dont_check_for_quit to inhibit unwanted interaction (and
6841         thus breaking of X event synchronicity) in the child.
6842
6843 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
6844
6845         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
6846         widget.
6847
6848 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
6849
6850         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
6851         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
6852         the xemacs process did not exit, but looped infinitely here.  This
6853         fixes that problem.
6854
6855 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6856
6857         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
6858         (find_context): Improve comments.
6859
6860         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
6861         (re_match_2): An XCHAR_TABLE operation was missing.
6862
6863         Many of the following changes were inspired by Andy Piper's (now
6864         obsolete) patch to make syntax-table text property lookup optional.
6865
6866         [Documentation]
6867
6868         * syntax.h (top level): Document semantics of syntax flags.
6869         * syntax.c (comstr_start, Fforward_comment): Improve comments.
6870         * syntax.c, syntax.h (top level): Document syntax cache better in
6871         comments.
6872
6873         [Instrument syntax caching (temporary change)]
6874
6875         * syntax.h (enum syntax_cache_statistics_functions, struct
6876         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
6877         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
6878         * syntax.c (scan_words, Fforward_comment, scan_lists,
6879         Fbackward_prefix_characters):
6880         * font-lock.c (find_context):
6881         Use them to instrument syntax caching. 
6882         * syntax.c (struct syntax_cache_statistics, scs_statistics,
6883         syntax_cache_statistics_function_names): New type and variables.
6884         * syntax.c (update_syntax_cache): Update and report statistics.
6885
6886         [Major syntax cache optimizations]
6887
6888         syntax.c (lookup_syntax_properties): Default off.
6889
6890         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
6891         * syntax.c (update_syntax_cache):
6892         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
6893
6894         [Minor syntax cache optimizations and code clarifications]
6895
6896         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
6897         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
6898         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
6899         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
6900         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
6901         (Code clarification.)
6902
6903         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
6904         scan_lists): Compute code from syncode, use Boolean macros instead
6905         of redundant masking operations.  (Code clarification; any decent
6906         compiler can do this optimization.)
6907
6908         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
6909         for clarity.
6910
6911         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
6912         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
6913         use F*_single_property_change instead of F*_extent_change.
6914         Currently F*_single_property_change is _much_ less efficient.
6915
6916         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
6917         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
6918         syntax_cache.object properly, don't leave Qt or Qnil.
6919         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
6920         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
6921         tests for Qt or Qnil.
6922
6923 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
6924
6925         * redisplay.c (point_in_line_start_cache): 
6926         * extents.c (print_extent_1):
6927         Fix warnings.
6928
6929         * extents.c (Fset_extent_property): Document `syntax-table' property.
6930
6931         * extents.h (Fnext_single_property_change): EXFUN it.
6932
6933 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6934
6935         * search.c (clear_unused_search_regs): New static function.
6936         (search_buffer): 
6937         (simple_search): 
6938         (boyer_moore):
6939         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
6940         Minor clarifications in comments.
6941
6942         * regex.c (re_match_2_internal): Ensure no stale submatches.
6943
6944 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6945
6946         * event-Xt.c (enqueue_focus_event): Add missing prototype.
6947
6948 2002-08-29  Jerry James  <james@xemacs.org>
6949
6950         * lisp.h: structrures -> structures.
6951
6952 2002-06-03  Andy Piper  <andy@xemacs.org>
6953
6954         * frame.c (frame_conversion_internal): add conversion appropriate
6955         for setting frame dimensions in pixels.
6956
6957         * console.h (struct console_methods): add device-specific widget
6958         layout functions.
6959
6960         * emacs.c (main_1): initialize glyph vars.
6961
6962         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
6963         (handle_focus_event_2): new function. Allow focus to
6964         be set to a particular window and widget.
6965         (enqueue_focus_event): new function. Create a
6966         synthetic focus event.
6967         (emacs_Xt_handle_magic_event): call
6968         handle_focus_event_2.
6969
6970         * frame.c (Fset_frame_pixel_height): new function. Allow
6971         pixel-based sizing. Does the right thing on character-oriented
6972         displays.
6973         (Fset_frame_pixel_width): ditto.
6974         (Fset_frame_pixel_size): ditto.
6975         (syms_of_frame): declare.
6976
6977         * general-slots.h: add :vertically-justify and
6978         :horizontally-justify.
6979
6980         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
6981         (mswindows_widget_border_width): new function.
6982         (mswindows_combo_box_instantiate): set border widths.
6983         (console_type_create_glyphs_mswindows): declare.
6984
6985         * glyphs-widget.c:
6986         (check_valid_justification): allow vertical and horizontal
6987         justification.
6988         (widget_border_width): new function. Call device methods.
6989         (widget_instance_border_width): ditto.
6990         (logical_unit_height): new function. Determine the height of a
6991         logical-unit. Logical units are intended to provide grid-like
6992         layout for subcontrols in a layout. If the layout is
6993         :vertically-justify top then subcontrols will be positioned on
6994         logical-unit boundaries, thus allowing adjacent subcontrols to
6995         line up.
6996         (widget_logical_unit_height): ditto for widgets.
6997         (redisplay_widget): misc cleanup.
6998         (widget_spacing): new function. Call device specific
6999         methods. Intended to be the default gap between adjacent widgets.
7000         (widget_query_geometry): use new spacing functions to determine
7001         appropriate geometry.
7002         (initialize_widget_image_instance): initialize horizontal and
7003         vertical justification.
7004         (widget_instantiate): use logica-units where appropriate for
7005         sizing large widgets.
7006         (button_query_geometry): use widget_instance_border_width.
7007         (tree_view_query_geometry): ditto.
7008         (tab_control_query_geometry): ditto.
7009         (edit_field_query_geometry): new function.
7010         (layout_update): pick up :justify, :horizontally-justify and
7011         :vertically-justify none of which worked previously. :justify is
7012         used as a fallback for both horizontal and vertical justification.
7013         (layout_query_geometry): use logical units to size appropriately.
7014         (layout_layout): ditto.
7015         (Fwidget_logical_to_character_width): new function. Allow users to
7016         convert from logical units to characters so that frame sizes can
7017         be set appropriately.
7018         (Fwidget_logical_to_character_height): ditto.
7019         (syms_of_glyphs_widget): declare.
7020         (image_instantiator_edit_fields): add edit_field_query_geometry.
7021         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7022         :horizontally-justify.
7023         (specifier_vars_of_glyphs_widget): new function. Declare
7024         Vwidget_border_width which is not yet used.
7025
7026         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7027         (x_widget_border_width): new function.
7028         (x_widget_instantiate): create a sensible name for widgets.
7029         (console_type_create_glyphs_x): declare x_widget_border_width.
7030
7031         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7032         (struct Lisp_Image_Instance): add :vertically-justify and
7033         :horizontally-justify.
7034         (LAYOUT_JUSTIFY_TOP): new.
7035         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7036         (ROUND_UP): new macro. Round argument up to next integral
7037         interval.
7038
7039         * redisplay-output.c (redisplay_output_layout): misc formatting.
7040
7041         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7042
7043 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7044
7045         * XEmacs 21.4.9 "Informed Management" is released.
7046
7047 2002-08-19  Andy Piper  <andy@xemacs.org>
7048
7049         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7050         win32 format.
7051
7052         * realpath.c (xrealpath): normalize drive spec also so that dir
7053         sep chars are not mixed on cygwin.
7054
7055 2002-08-06  Jerry James  <james@xemacs.org>
7056
7057         * window.c (Fsplit_window): Count only half of the divider width
7058         against the left window when splitting horizontally. 
7059
7060 2002-06-24  Andy Piper  <andy@xemacs.org>
7061
7062         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7063         toolbar was cleared.
7064
7065         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7066         function. Split out from mswindows_output_frame_toolbars.
7067         (mswindows_output_frame_toolbars): move clear pieces to
7068         mswindows_output_frame_toolbars.
7069
7070         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7071         out from gtk_output_frame_toolbars.
7072         (gtk_output_frame_toolbars): move clear pieces to
7073         gtk_clear_frame_toolbars.
7074
7075         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7076         the frame is cleared. How this ever worked before is a mystery.
7077         (x_output_frame_toolbars): Only output toolbars.
7078         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7079
7080         * gutter.c (update_gutter_geometry):
7081         Mark frame layout changed.
7082         (update_frame_gutter_geometry, update_frame_gutters):
7083         Respect frame_layout_changed.
7084
7085         * console.h (struct console_methods): add
7086         clear_frame_toolbars_method.
7087
7088         * redisplay.c (redisplay_frame): call
7089         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7090
7091         * toolbar.h: declare update_frame_toolbars_geometry.
7092
7093         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7094         out from update_frame_toolbars.  Call clear_frame_toolbars.
7095         (update_frame_toolbars): only output, do not change geometry.
7096
7097         * redisplay.c: add frame_layout_changed.
7098
7099         * redisplay.h: add frame_layout_changed.
7100         (CLASS_RESET_CHANGED_FLAGS): set it.
7101         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7102         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7103         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7104
7105         * device.h (struct device): add frame_layout_changed.
7106         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7107
7108         * frame.h (struct frame): add frame_layout_changed.
7109         (MARK_FRAME_LAYOUT_CHANGED): new.
7110
7111 2002-06-30  Mike Alexander  <mta@arbortext.com>
7112
7113         * event-msw.c (mswindows_need_event): Don't wait for a new message
7114         if the queue is not empty.  Suggested by Paul Moore.
7115
7116 2002-06-12  Andy Piper  <andy@xemacs.org>
7117
7118         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7119         for printing on accurately.
7120
7121 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7122
7123         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7124         WM_ACTIVATE message. Make sure that the frame is visible if the
7125         window is visible. This seemss to fix the problem where XEmacs
7126         appears to freeze after switching desktops with certain virtual
7127         window managers.
7128         (debug_output_mswin_message): Added code to output message
7129         parameters for WM_WINDOWPOSCHANGED, 
7130         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7131
7132 2002-05-25  Andy Piper  <andy@xemacs.org>
7133
7134         * select-x.c (vars_of_select_x): Fix docstring of
7135         x-selection-strict-motif-ownership
7136
7137 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7138
7139         * keymap.c (get_keymap):
7140         Add comment about do_autoload GCPROs own args.
7141
7142 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7143
7144         * bytecode.c (execute_optimized_program): check_opcode ifdef
7145         ERROR_CHECK_BYTE_CODE.
7146
7147 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7148
7149         Thanks to Ben Wing and Michael Sperber.
7150
7151         * eval.c (Fcommand_execute):
7152         (Feval):
7153         (Ffuncall):
7154         (Fmacroexpand_internal):
7155         (function_argcount):
7156         callint.c (Fcall_interactively):
7157         Add comment about do_autoload GCPROs own args.
7158
7159         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7160
7161         * eval.c (Ffuncall): Extra braces to placate GCC.
7162
7163 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7164
7165         * backtrace.h (grow_specpdl):
7166         (SPECPDL_RESERVE):
7167         * EmacsFrame.c (EmacsFrameSetValues):
7168         * eval.c (grow_specpdl):
7169         * ExternalShell.c (hack_event_masks_1):
7170         * glyphs-x.c (convert_EImage_to_XImage): 
7171         (x_finalize_image_instance):
7172         * ralloc.c (page_size):
7173         (r_alloc_sbrk):
7174         * xgccache.c (gc_cache_hash):
7175         Fix unsigned comparison warnings.
7176
7177 2002-07-29  Jerry James  <james@xemacs.org>
7178
7179         * lread.c (locate_file): Any nonnegative return value indicates
7180         success if MODE is nonnegative.
7181
7182 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7183
7184         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7185         argument. 
7186
7187 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7188
7189         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7190
7191         * dumper.c (pdump_get_indirect_count):
7192         (pdump_scan_by_alignment):
7193         (pdump_dump_root_struct_ptrs):
7194         (pdump_dump_rtables):
7195         (pdump_dump_root_objects):
7196         (pdump):
7197         * nas.c (WaveOpenDataForReading):
7198         * fns.c (print_bit_vector):
7199         * font-lock.c (SINGLE_SYNTAX_STYLE):
7200         * glyphs.c (check_for_ignored_expose):
7201         (find_matching_subwindow):
7202         * glyphs-eimage.c:
7203         * imgproc.c (get_histogram):
7204         * redisplay.c (point_in_line_start_cache):
7205         * redisplay-output.c (redisplay_unmap_subwindows):
7206         * symbols.c (defsymbol_massage_name_1):
7207         (defkeyword_massage_name):
7208         (deferror_massage_name_and_message):
7209         * redisplay-x.c (x_output_string): 
7210         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7211         * frame.h (struct frame):
7212         * filelock.c (current_lock_owner):
7213         * doprnt.c (emacs_doprnt_1):
7214         * lisp.h (struct Lisp_Bit_Vector):
7215         (DO_REALLOC):
7216         Fix warnings.
7217
7218 2002-02-13  Ben Wing  <ben@xemacs.org>
7219
7220         * event-stream.c (reset_key_echo):
7221         * event-stream.c (reset_this_command_keys):
7222         * event-stream.c (execute_command_event):
7223         If console is dead as a result of C-x 5 0, then post-command stuff
7224         needs to be careful and do only non-console-specific stuff.
7225
7226 2002-07-01  Mike Sperber <mike@xemacs.org>
7227
7228         * process-unix.c (unix_send_process): Mark coding_outstream as
7229         non-open upon SIGPIPE.
7230
7231         * event-stream.c (Fnext_event): Reorder switch cases to something
7232         that makes sense.
7233
7234 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7235
7236         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7237         Don't bogusly reinitialize ascii_character property.
7238
7239 2002-07-08  Mike Sperber <mike@xemacs.org>
7240
7241         * process.c (Fstart_process_internal): Do error checking before we
7242         fork off the child, so the child can't muck with the state of the
7243         parent.
7244
7245 2002-07-08  Mike Sperber <mike@xemacs.org>
7246
7247         * ralloc.c (init_ralloc): Allocate properly for pdump.
7248
7249 2002-06-12  Andy Piper  <andy@xemacs.org>
7250
7251         * glyphs.c (query_string_geometry): check the string.
7252
7253         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7254         widget names.
7255
7256 2002-06-17  Jerry James  <james@xemacs.org>
7257
7258         * sysdll.c: Remove RTLD_GLOBAL initialization.
7259         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7260
7261 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7262
7263         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7264
7265 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7266
7267         * sysdep.c (sys_rename): Make sys_rename work for the case where
7268         Windows rename sets errno to EACCES if target file exists.
7269
7270 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7271
7272         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7273         Fix detection of metric units to work on Win95
7274
7275 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7276
7277         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7278
7279 2002-04-25  Andy Piper  <andy@xemacs.org>
7280
7281         * redisplay.c (create_text_block): Remove extra comment trailer.
7282
7283 2002-04-24  Andy Piper  <andy@xemacs.org>
7284
7285         * redisplay.c (create_text_block): Don't actually add propagation
7286         data if the line ends after we have added a glyph.
7287
7288 2002-04-22  Andy Piper  <andy@xemacs.org>
7289
7290         * extents.c (extent_fragment_update): check for glyphs we have
7291         previously displayed.
7292         * extents.c (print_extent_1): warning removal.
7293         * extents.h: change prototype.
7294         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7295         widths correctly for wide glyphs.
7296         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7297         * redisplay.c (prop_type): add PROP_GLYPH.
7298         * redisplay.c (struct prop_block): add glyph type
7299         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7300         to the propagation data.
7301         * redisplay.c (create_text_block): if there is a glyph in the
7302         propagation data use it to salt extent_fragment_update.
7303         * redisplay.c (create_string_text_block): ditto.
7304
7305 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7306
7307         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7308         * redisplay-output.c (compare_runes): Compare them.
7309         * redisplay.c: Update copyright date.
7310         * redisplay.c (pos_data): Add need_baseline_computation field.
7311         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7312         need_baseline_computation; zero yoffset. Set max_pixmap_height
7313         for all pixmaps, not just automatically positioned ones.
7314         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7315         * redisplay.c (calculate_baseline): New, compute textual baseline.
7316         * redisplay.c (add_glyph_rune): Call them.
7317         * redisplay.c (create_text_block): Likewise.
7318         * redisplay.c (create_overlay_glyph_block): Likewise.
7319         * redisplay.c (add_margin_runes): Likewise.
7320         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7321
7322         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7323         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7324         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7325         * redisplay-msw.c (mswindows_output_string): Likewise.
7326         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7327         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7328         * redisplay-x.c (x_output_display_block): Likewise.
7329
7330 2002-03-28  Ben Wing  <ben@xemacs.org>
7331
7332         * redisplay.c: Fixed bug in redisplay
7333         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7334         and down of the lines, since they're bigger than the line
7335         size. (It was seen most obviously when there's a horizontal scroll
7336         bar, e.g. do C-h a glyph or something like that.) The problem was
7337         that the glyph-contrib-p setting on glyphs was ignored even if it
7338         was set properly, which it wasn't until now.
7339
7340 2002-04-24  Andy Piper  <andy@xemacs.org>
7341
7342         * lisp.h (Dynarr_end): Fix definition.
7343
7344 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7345
7346         * redisplay.c (mark_redisplay): Remove call to
7347         update_frame_window_mirror.
7348
7349 2001-11-15  Andy Piper  <andy@xemacs.org>
7350
7351         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7352         cygwin (again).
7353
7354 2002-02-13  Andy Piper  <andy@xemacs.org>
7355
7356         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7357         we did in fact enqueue the XM_MAPFRAME event.
7358
7359 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7360
7361         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7362         to fix problem switching between virtual desktops under virtuawin
7363         virtual window manager.
7364
7365 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7366
7367         * event-msw.c: Typo fix.
7368         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7369         magic XM_MAPFRAME event has been sent.
7370
7371 2001-11-23  Andy Piper  <andy@xemacs.org>
7372
7373         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7374
7375 2001-11-21  Andy Piper  <andy@xemacs.org>
7376
7377         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7378         mouse events outside the frame.
7379
7380 2002-03-20  Andy Piper  <andy@xemacs.org>
7381
7382         * menubar-msw.c (mswindows_popup_menu): warning removal.
7383         * dialog-msw.c (dialog_popped_down): ditto.
7384
7385 2001-12-11  Andy Piper  <andy@xemacs.org>
7386
7387         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7388         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7389         popup_up_p.
7390         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7391         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7392         * menubar-msw.c (mswindows_popup_menu): ditto.
7393
7394 2001-10-29  Andy Piper  <andy@xemacs.org>
7395
7396         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7397         cancels.
7398
7399 2002-01-03  Andy Piper  <andy@xemacs.org>
7400
7401         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7402         letters.
7403         (xrealpath): ditto.
7404
7405 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7406
7407         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7408         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7409         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7410         Detect and handle case where machine is set up for metric units
7411
7412 2002-04-02  Andy Piper  <andy@xemacs.org>
7413
7414         * dired-msw.c (mswindows_get_files): 
7415         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7416         completely handled by XEmacs. Suggested by Thomas Vogler
7417         <mail@thomas-vogler.de>.
7418
7419 2001-11-14  Andy Piper  <andy@xemacs.org>
7420
7421         * nt.c (REG_ROOT): change registry key to XEmacs.
7422
7423 2002-04-27  Andy Piper  <andy@xemacs.org>
7424
7425         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7426
7427 2002-04-26  Andy Piper  <andy@xemacs.org>
7428
7429         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7430         behavior.
7431
7432 2002-03-14  Mike Alexander  <mta@arbortext.com>
7433
7434         * event-msw.c (mswindows_unwait_process): New, remove process from
7435         wait list
7436         * process-nt.c (nt_finalize_process_data): Call
7437         mswindows_unwait_process
7438         * console-msw.h: Declare mswindows_unwait_process
7439
7440 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7441
7442         * editfns.c (Fdecode_time):
7443         (Fformat_time_string):
7444         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7445         (make_time): Warning elimination (change arg name).
7446
7447 2001-11-24  Andy Piper  <andy@xemacs.org>
7448
7449         * window.c (Fsplit_window): Doc return type.
7450
7451 2002-04-01  Andy Piper  <andy@xemacs.org>
7452
7453         * emacs.c (Fkill_emacs): Only output message box in interactive
7454         mode.
7455
7456 2002-04-26  Andy Piper  <andy@xemacs.org>
7457  
7458         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7459         cygwin.
7460
7461 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7462
7463         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7464         bit platform.
7465
7466 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7467
7468         * XEmacs 21.4.8 "Honest Recruiter" is released.
7469
7470 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7471
7472         Supersedes 2002-04-17 patch.
7473
7474         * process.h (PROCESS_LIVE_P): Use the process status as
7475         evidence of health, not the state of the input stream.
7476         (PROCESS_READABLE_P): Say if the process is readable
7477         from. (It may be dead nonetheless.)
7478         (CHECK_READABLE_PROCESS): Test for that condition.
7479
7480         * process.c (create_process): Use PROCESS_READABLE_P.
7481         (read_process_output, set_process_filter): Likewise.
7482
7483         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7484         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7485
7486         This code is #if 0'd, this is not the time to add new functions:
7487
7488         * process.c (Fprocess_readable_p): Report readability status.
7489         * process.c (Qprocess_readable_p): New, associated symbol...
7490         * process.c (syms_of_process): ... initialize it.
7491
7492 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7493
7494         * XEmacs 21.4.7 "Economic Science" is released.
7495
7496 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7497
7498         * process.h (PROCESS_LIVE_P): Use the process status as
7499         evidence of health, not the state of the input stream.
7500
7501 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7502
7503         * sysdep.c (sys_siglist): change "signum" to "signal"
7504
7505 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7506
7507         * s/darwin.h: New file.
7508         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7509         
7510 2002-04-23  Andreas Jaeger  <aj@suse.de>
7511
7512         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7513         which use lib64 for 64-bit libs.
7514         (START_FILES): Likewise.
7515
7516 2002-02-11  Mike Sperber  <mike@xemacs.org>
7517
7518         * device-x.c: 
7519         (x_IO_error_handler):
7520         (x_init_device): Temporarily keep device in static variable
7521         `device_being_initialized' so we can recover gracefully from
7522         internal XOpenDevice failure.  (XOpenDevice is documented to
7523         return NULL on failure, but sometimes calls the IO error handler
7524         instead.)
7525
7526 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7527
7528         * dired.c (Ffile_name_all_completions): Change documentation --
7529         remove reference to completion-ignored-extensions.
7530         * dired.c (vars_of_dired): Change documentation for
7531         completion-ignored-extensions -- remove reference to
7532         file-name-all-completions.
7533
7534 2002-03-06  Jerry James  <james@xemacs.org>
7535
7536         * emodules.c (emodules_load): Fix multiple loading of same module.
7537
7538 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7539         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7540         RTLD_LAZY to avoid incorrect symbol binding when using nested
7541         shared libraries on Solaris.
7542
7543 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7544
7545         * fileio.c (Ffind_file_name_handler): Improve docstring.
7546
7547 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7548
7549         * fns.c (Fmapconcat): Improve docstring.
7550
7551 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7552
7553         * device-gtk.c: Add prototype for
7554         emacs_gtk_selection_clear_event_handle.
7555         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7556         selection.  Setup signal handler for "selection_clear_event"
7557         (emacs_gtk_selection_clear_event_handle).
7558
7559         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7560         other applications owning the clipboard (based on
7561         x_handle_selection_clear).
7562
7563 2001-12-23  William M. Perry  <wmperry@gnu.org>
7564
7565         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7566         
7567 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7568
7569         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7570
7571 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7572
7573         * XEmacs 21.4.6 "Common Lisp" is released.
7574
7575 2001-12-16  Torsten Duwe  <duwe@caldera.de>
7576
7577         * search.c (Freplace_match): Add missing sub-expression functionality.
7578
7579         * buffer.c (decode_buffer): Add a check for pointer type to
7580         decode_buffer, before gcc's CSE optimization reorders a
7581         dereference in front of the allow_string test.
7582
7583 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
7584
7585         * window.c (window_loop): Fix bug that sometimes prevented
7586         window_loop() from iterating across multiple devices.  Also, at
7587         Ben's request, changed infloop-detecting code to abort() instead
7588         of silently terminating window_loop().
7589
7590 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
7591
7592         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
7593         * editfns.c (make_time): New function.
7594         (Fencode_time): Use it instead of wasteful_word_to_lisp.
7595         * lisp.h (make_time): Prototype and comment it.
7596         * dired.c (wasteful_word_to_lisp): Deprecate.
7597         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
7598
7599 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
7600
7601         * fileio.c (auto_save_1): Use current coding system, not
7602         escape-quoted.
7603
7604 2001-11-13  Ben Wing  <ben@xemacs.org>
7605
7606         * window.c:
7607         * window.c (window_truncation_on):
7608         * window.c (syms_of_window):
7609         truncate-partial-width-windows should respect the buffer being
7610         displayed, like other redisplay vars.
7611
7612 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
7613
7614         * event-stream.c (Fread_key_sequence): save current buffer.
7615
7616 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7617
7618         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
7619
7620 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7621
7622         * alloc.c (lcrecord_stats): Add space for types defined in modules.
7623
7624 2001-10-26  Mike Alexander  <mta@arbortext.com>
7625
7626         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
7627
7628 2001-10-25  Andy Piper  <andy@xemacs.org>
7629
7630         * ChangeLog:
7631         * dialog-msw.c (handle_directory_proc): new function.
7632          (handle_directory_dialog_box): new fucntion.
7633          (handle_file_dialog_box): use new directory dialog support.
7634          (mswindows_make_dialog_box_internal): ditto.
7635         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
7636         handling.
7637         (mswindows_find_frame): make global.
7638         * fileio.c (Fexpand_file_name): build fix.
7639         * general-slots.h: add Qdirectory.
7640         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
7641         handling.
7642         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
7643         cygwin not leaving win32 paths unchanged.
7644         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
7645         cygwin runtime to do path conversion.
7646         (Fmswindows_shell_execute): fix cygwin handling of URLs.
7647         (syms_of_win32): add new function.
7648         * window.c (window_loop): build fix.
7649
7650 2001-10-15  Andy Piper  <andy@xemacs.org>
7651
7652         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
7653
7654 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
7655
7656         * XEmacs 21.4.5 "Civil Service" is released.
7657
7658 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
7659
7660         * glyphs-x.c: Force buffer-tab highlight update when moving the
7661         buffer, avoiding an ugly black border, used for keyboard focus
7662         indication, on a widget that can never have keyboard focus, the
7663         buffer tab.
7664
7665 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
7666
7667         * process-unix.c (unix_open_multicast_group): Remove too much
7668         conversion between host and network byte order.
7669
7670 2001-09-10  Nix  <nix@esperi.demon.co.uk>
7671
7672         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
7673         before replacing them.
7674
7675         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
7676         operation.
7677
7678         * src/window.c (undedicate_windows): Use it.
7679         * src/window.h: Add prototype.
7680
7681 2001-09-17  Ben Wing  <ben@xemacs.org>
7682
7683         * fileio.c (normalize_filename):
7684         * fileio.c (Fexpand_file_name):
7685         Fix various C++ compile errors in Andy's recent code.
7686         
7687         * callint.c (Fcall_interactively):
7688         * editfns.c (Ftemp_directory):
7689         * editfns.c (Fuser_full_name):
7690         * emacs.c (argmatch):
7691         * lread.c (locate_file_map_suffixes):
7692         * redisplay-x.c (x_ring_bell):
7693         Fix sign-compare warnings.
7694         
7695 2001-09-08  Andy Piper  <andy@xemacs.org>
7696
7697         * fileio.c (normalize_filename): copied from nt.c
7698         * (Ffile_name_directory): enable win32 paths under cygwin.
7699         * (Ffile_name_nondirectory): ditto.
7700         * (directory_file_name): ditto.
7701         * (Fexpand_file_name): ditto.
7702         * (Ffile_truename): ditto.
7703         * (Fsubstitute_in_file_name): ditto.
7704         * (Ffile_name_absolute_p): ditto.
7705         * (Ffile_readable_p): ditto.
7706
7707 2001-09-08  Andy Piper  <andy@xemacs.org>
7708
7709         * device-msw.c (mswindows_finish_init_device): remove dde
7710         initialization.
7711         * device-msw.c (mswindows_init_dde): factor out from
7712         mswindows_finish_init_device()
7713         * device-msw.c (init_mswindows_very_early): new function
7714         initialize but don't enable dde.
7715         * emacs.c (main_1): call init_mswindows_very_early.
7716         * event-msw.c:
7717         * event-msw.c (mswindows_dde_callback): only execute when we are
7718         ready.
7719         * symsinit.h: declare init_mswindows_very_early.
7720
7721 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7722
7723         [sjt: This has been in 21.5 for months with no complaints.]
7724
7725         * console.h (struct console_methods): Added flags member.
7726         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
7727         (CONMETH_IMPL_FLAG):
7728         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
7729         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7730
7731         * device.c (window_system_pixelated_geometry): Use the above macros.
7732
7733         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
7734         implememntation flag.
7735         * device.h (DEVICE_DISPLAY_P): Use it.
7736
7737         * frame.c (delete_frame_internal): Use the above macro.
7738
7739         * redisplay.c (redisplay_device): Use it.
7740         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7741         (redisplay_frame): Ditto.
7742
7743         * device-msw.c (mswindows_device_implementation_flags): Removed.
7744         (msprinter_device_implementation_flags): Removed.
7745         (console_type_create_device_mswindows): Removed references to
7746         implementation_flags methods, set implementation flags here.
7747         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
7748
7749         * device-gtk.c (gtk_device_implementation_flags): Removed method.
7750         (console_type_create_device_gtk): Removed method declaration.
7751         Added commented out statement which semantically matches the
7752         commented out statement in the above removed method.
7753
7754 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
7755
7756         The attached patch fixes a few warnings. 
7757
7758         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
7759         * src/frame-gtk.c: guard against GNOME calls in GTK only
7760         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
7761         * src/select-gtk.c: prototype lisp_to_time
7762
7763 2001-06-08  Ben Wing  <ben@xemacs.org>
7764
7765         ------ gc-in-window-procedure fixes ------
7766         
7767         * alloc.c:
7768         * alloc.c (struct post_gc_action):
7769         * alloc.c (register_post_gc_action):
7770         * alloc.c (run_post_gc_actions):
7771         * alloc.c (garbage_collect_1):
7772         Create "post-gc actions", to avoid those dreaded "GC during window
7773         procedure" problems.
7774
7775         * event-msw.c:
7776         Abort, clean and simple, when GC in window procedure.  We want
7777         to flush these puppies out.
7778
7779         * glyphs-msw.c:
7780         * glyphs-msw.c (finalize_destroy_window):
7781         * glyphs-msw.c (mswindows_finalize_image_instance):
7782         Use a post-gc action when destroying subwindows.
7783
7784         * lisp.h:
7785         Declare register_post_gc_action().
7786
7787         * scrollbar-msw.c:
7788         * scrollbar-msw.c (unshow_that_mofo):
7789         Use a post-gc action when unshowing scrollbar windows, if in gc.
7790
7791         * redisplay.c (mark_redisplay):
7792         Add comment about the utter evilness of what's going down here.
7793
7794         ------ cygwin setitimer fixes ------
7795         
7796         * Makefile.in.in (sheap_objs):
7797         * Makefile.in.in (profile_objs):
7798         * Makefile.in.in (objs):
7799         Compile profile.c only when HAVE_SETITIMER.
7800         
7801         * nt.c (mswindows_sigset):
7802         * nt.c (mswindows_sighold):
7803         * nt.c (mswindows_sigrelse):
7804         * nt.c (mswindows_sigpause):
7805         * nt.c (mswindows_raise):
7806         * nt.c (close_file_data):
7807         Style fixes.
7808         
7809         * nt.c:
7810         Move setitimer() emulation to win32.c, because Cygwin needs it too.
7811         
7812         * profile.c:
7813         * profile.c (Fstart_profiling):
7814         * profile.c (Fstop_profiling):
7815         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
7816         instead of just plain setitimer().
7817         
7818         * signal.c:
7819         * signal.c (set_one_shot_timer):
7820         * signal.c (alarm):
7821         Define qxe_setitimer() as an encapsulation around setitimer() --
7822         call setitimer() directly unless Cygwin or MS Win, in which case
7823         we use our simulated version in win32.c.
7824         
7825         * systime.h:
7826         * systime.h (struct itimerval):
7827         * systime.h (ITIMER_REAL):
7828         Prototype mswindows_setitimer() and qxe_setitimer().  Long
7829         comment about "qxe" and the policy regarding encapsulation.
7830
7831         * win32.c:
7832         * win32.c (setitimer_helper_proc):
7833         * win32.c (setitimer_helper_period):
7834         * win32.c (setitimer_helper):
7835         * win32.c (mswindows_setitimer):
7836         Move setitimer() emulation here, so Cygwin can use it.
7837         Rename a couple of functions and variables to be longer and more
7838         descriptive.  In setitimer_helper_proc(), send the signal
7839         using either mswindows_raise() or (on Cygwin) kill().  If for
7840         some reason we are still getting lockups, we'll change the kill()
7841         to directly invoke the signal handlers.
7842
7843         ------ windows shell fixes ------
7844         
7845         * callproc.c:
7846         * ntproc.c:
7847         Comments about how these two files must die.
7848
7849         * callproc.c (init_callproc):
7850         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
7851         not just COMSPEC. (more correct and closer to FSF.) Don't
7852         force a value for SHELL into the environment. (Comments added
7853         to explain why not.)
7854         
7855         * nt.c (init_user_info):
7856         Don't shove a fabricated SHELL into the environment.  See above.
7857
7858 2001-06-01  Ben Wing  <ben@xemacs.org>
7859
7860         * Makefile.in.in (ldflags):
7861         eliminate that pesky "defaulting to 00401000" warning.
7862         * nt.h:
7863         eliminate warnings.
7864
7865 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
7866
7867         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
7868         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
7869
7870 2001-04-24  Jerry James <james@xemacs.org>
7871
7872         * faces.h: pass parameters to Fadd_spec_to_specifier in the
7873         correct order.
7874
7875 2001-06-01  Ben Wing  <ben@xemacs.org>
7876
7877         * event-msw.c (debug_mswin_messages):
7878         conditionalize the messages that were causing compile errors.
7879         (if only macros could generate #ifdef statements ...)
7880
7881 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
7882
7883         * XEmacs 21.4.4 "Artificial Intelligence" is released.
7884
7885 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7886
7887         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
7888
7889 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7890
7891         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
7892         * process-unix.c (unix_canonicalize_host_name):
7893         sysdep.c (init_system_name):
7894         Use it to conditionally support IPv6 canonicalization.
7895
7896 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
7897
7898         * event-msw.c:
7899         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
7900
7901 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
7902
7903         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
7904         attempt is made to scroll when no scroll bar is available.
7905
7906 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7907
7908         * input-method-motif.c (XIM_delete_frame): New callback.
7909         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
7910         got deleted from 21.4.3.)
7911
7912 2001-06-01  Ben Wing  <ben@xemacs.org>
7913
7914         * nt.c (mswindows_utime):
7915         * nt.c (close_file_data):
7916         fix off-by-one-indirection error.
7917
7918 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
7919
7920         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
7921         because set_file_times() now takes Lisp_Object path, instead of
7922         char*.
7923         * nt.c: Include buffer.h.
7924         * nt.c (convert_from_time_t): New.
7925         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
7926         not set mtime correctly.
7927         * nt.h: Declare mswindows_utime().
7928         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
7929         path, instead of char*.
7930         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
7931
7932 2001-05-30  Ben Wing  <ben@xemacs.org>
7933
7934         For 21.4:
7935
7936         (Stephen, just take all event-msw.c patches.  This includes
7937         the "iconify" fix below.)
7938
7939         * event-msw.c:
7940         * event-msw.c (mswindows_dequeue_dispatch_event):
7941         * event-msw.c (assert):
7942         * event-msw.c (emacs_mswindows_quit_p):
7943         * event-msw.c (debug_mswin_messages):
7944         * event-msw.c (debug_output_mswin_message):
7945         * event-msw.c (vars_of_event_mswindows):
7946         Fix yet more problems with C-g handling.
7947         Implement debug-mswindows-events.
7948         
7949 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7950
7951         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
7952         
7953 2001-05-23  Ben Wing  <ben@xemacs.org>
7954
7955         * event-msw.c (winsock_writer):
7956         * event-msw.c (winsock_closer):
7957         prior kludgy code was clobbering the buffer, thinking it was
7958         "unused" space to store an unneeded return value; instead, use
7959         the variable we've already got staring us in the face.
7960
7961 2001-05-17  Andy Piper  <andy@xemacs.org>
7962
7963         * sysfile.h: don't assume that file attributes are boolean
7964
7965 2001-05-23  Ben Wing  <ben@xemacs.org>
7966
7967         * device-msw.c (msprinter_init_device):
7968         signal an error rather than crash with an unavailable network
7969         printer (from Mike Alexander).
7970         
7971         * event-msw.c:
7972         * event-msw.c (struct winsock_stream):
7973         * event-msw.c (winsock_writer):
7974         * event-msw.c (winsock_closer):
7975         * event-msw.c (make_winsock_stream_1):
7976         cleanup headers.  fix (hopefully) an error with data corruption
7977         when sending to a network connection.
7978
7979         * fileio.c (Fexpand_file_name): Fix evil code that attempts
7980         to handle the ~user prefix by (a) always assuming we're referencing
7981         ourselves and not even verifying the user -- hence any file with
7982         a tilde as its first char is invalid! (b) if there wasn't a slash
7983         following the filename, the pointer was set *past* the end of
7984         file and we started reading from uninitialized memory.  Now we
7985         simply treat these as files, always.
7986
7987         * buffer.c (common_init_complex_vars_of_buffer): comment change.
7988         
7989 2001-05-19  Ben Wing  <ben@xemacs.org>
7990
7991         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
7992
7993         * process-nt.c:
7994         * process-nt.c (vars_of_process_nt):
7995         remove unused mswindows-quote-process-args.  rec for 21.4.
7996         
7997 2001-05-12  Ben Wing  <ben@xemacs.org>
7998
7999         * event-msw.c (mswindows_dde_callback):
8000         * event-msw.c (mswindows_wnd_proc):
8001         eliminate cygwin warnings.
8002
8003 2001-05-06  Ben Wing  <ben@xemacs.org>
8004
8005         * console-msw.h:
8006         * device-msw.c:
8007         * device-msw.c (print_dialog_worker):
8008         * device-msw.c (mswindows_handle_print_dialog_box):
8009         * device-msw.c (syms_of_device_mswindows):
8010         * dialog-msw.c (mswindows_make_dialog_box_internal):
8011         * general-slots.h:
8012         implement printing the selection when it's selected.
8013
8014 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8015
8016         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8017
8018 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8019
8020         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8021         EMACS_INT is signed.
8022
8023 2001-04-15  Michael Lausch  <mla@1012surf.net>
8024
8025         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8026         gtk_widget_request_size() to give scrollbar >0 width for
8027         GTK >1.2.8.
8028
8029 2001-05-30  William M. Perry  <wmperry@gnu.org>
8030
8031         * event-gtk.c: Check for buttons as modifier keys.
8032
8033 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8034
8035         * s\mingw32.h:
8036         Properly find MinGW's <process.h> inside Cygwin's restructured
8037         include directories.  Don't try to include <cygwin/version.h>
8038         since we are dropping support for MinGW in versions of Cygwin
8039         earlier than b21.
8040         * nt.c:
8041         Drop support for MinGW in versions of Cygwin before b21.
8042         * sysdep.c:
8043         Properly find MinGW's <process.h> inside Cygwin's restructured
8044         include directories.
8045         * syswindows.h:
8046         Drop support for MinGW in versions of Cygwin before b21.
8047         * unexcw.c:
8048         Even though a.out.h is no longer detected by configure, allow
8049         MinGW to use it until we figure out how to do the job with Win32.
8050
8051 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8052
8053         * syntax.c (find_start_of_comment):
8054         Fix `unbalanced parentheses' bug when dealing with mixed comment
8055         styles in c++/java/etc. mode
8056
8057 2001-05-29  Mike Alexander  <mta@arbortext.com>
8058
8059         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8060         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8061
8062 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8063
8064         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8065
8066 2001-03-31  Mike Sperber <mike@xemacs.org>
8067
8068         * search.c (Freplace_match): Support FSF-style specification of
8069         match subexpression when applied to a buffer.
8070
8071 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8072
8073         * event-stream.c (is_scrollbar_event): add missing semicolon
8074
8075 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8076
8077         * Makefile.in.in: Use TAR macro instead of hardcoding
8078           tar.  Allows use of GNU tar instead of system tar
8079
8080 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8081
8082         * event-stream.c (is_scrollbar_event): add missing semicolon
8083
8084 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8085
8086         * XEmacs 21.4.3 "Academic Rigor" is released.
8087
8088 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8089
8090         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8091
8092 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8093
8094         * buffer.c (Vcase_fold_search): Remove obsolete
8095           comment about non ASCII case-fold-search.  This
8096           bug has been fixed by case-table changes.
8097
8098 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8099
8100         * event-msw.c: Restore include of events-mod.h.
8101
8102 2001-04-22   zhaoway  <zw@debian.org>
8103
8104         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8105         !HAVE_SCROLLBARS.
8106
8107 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8108
8109         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8110
8111 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8112
8113         * mule-charset.c (Fmake_charset): Add missing else.
8114
8115 2001-04-23  Ben Wing  <ben@xemacs.org>
8116
8117         * event-msw.c (FAKE_MOD_QUIT):
8118         * event-msw.c (mswindows_dequeue_dispatch_event):
8119         * event-msw.c (mswindows_wnd_proc):
8120         * event-msw.c (emacs_mswindows_quit_p):
8121         Get critical quit working.
8122
8123 2001-05-05  Ben Wing  <ben@xemacs.org>
8124
8125         * console-msw.h:
8126         * device-msw.c:
8127         * device-msw.c (mswindows_get_default_margin):
8128         * frame-msw.c (mswindows_size_frame_internal):
8129         * frame-msw.c (msprinter_init_frame_1):
8130         * frame-msw.c (vars_of_frame_mswindows):
8131         Change top/bottom margin defaults to 0.5 inches.
8132
8133 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8134
8135         Fix link error with gcc 3.0 on Linux.
8136         * terminfo.c (UP): Remove.
8137         * terminfo.c (BC): Remove.
8138         * terminfo.c (PC): Remove.
8139         They weren't used, and in any case, these symbols should be
8140         defined in the *library*.
8141
8142 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8143
8144         * s/aix4.h: Fix crash with xlc -O3.
8145         Improve comment explaining how -O3 works.
8146
8147 2001-04-15  Ben Wing  <ben@xemacs.org>
8148
8149         * event-stream.c:
8150         * event-stream.c (Fnext_event):
8151         * event-stream.c (is_scrollbar_event):
8152         * event-stream.c (execute_command_event):
8153         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8154         crash' problem.  His fix introduces other problems.  We filter
8155         out scrollbar events specifically, making them somewhat invisible
8156         to command-building, and not appearing in `this-command-keys'.
8157         More work is still needed (see comments in event-stream.c), but
8158         this fixes all the major problems.
8159
8160 2001-04-20  Ben Wing  <ben@xemacs.org>
8161
8162         * .cvsignore: Added stuff for Windows.
8163
8164 2001-04-28  Ben Wing  <ben@xemacs.org>
8165
8166         * buffer.c (Ferase_buffer):
8167         * editfns.c (buffer_insert1):
8168         * editfns.c (Finsert_before_markers):
8169         * editfns.c (Finsert_string):
8170         * editfns.c (Finsert_char):
8171         * editfns.c (Fdelete_region):
8172         * editfns.c (Fwiden):
8173         * editfns.c (Fnarrow_to_region):
8174         remove bogus lines setting zmacs_region_stays to 0.
8175         
8176 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8177
8178         * process-unix.c (unix_open_network_stream): If connect() fails
8179         invalidate file descriptor after closing it.
8180
8181 2001-03-08  Mike Alexander  <mta@arbortext.com>
8182
8183         * event-msw.c (mswindows_need_event_in_modal_loop):
8184         Don't dispatch a message if we didn't get one.
8185         (mswindows_need_event):
8186         Terminate the correct process when one exits instead of the first
8187         one on Vprocess_list and look for process termination when in
8188         mswindows_protect_modal_loop.
8189
8190 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8191
8192         * XEmacs 21.4.1 "Copyleft" is released.
8193
8194 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8195
8196         * input-method-motif.c (XIM_delete_frame): New callback.
8197         (XIM_init_frame): Register it.
8198
8199 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8200
8201         * XEmacs 21.4.0 "Solid Vapor" is released.
8202
8203 2001-04-15  Ben Wing  <ben@xemacs.org>
8204
8205         * cmdloop.c (call_command_loop):
8206         Fix braino in bit-rotting code.
8207         
8208 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8209
8210         * extents.c (Fset_extent_endpoints): Force creation of extent info
8211         in buffer_or_string.
8212
8213         * extents.c (process_extents_for_insertion_mapper): Correctly
8214         check for open-open zero-length extents.
8215
8216 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8217
8218         * lisp.h: New typedefs Memory_count, Element_count.
8219         * regex.c:
8220         * regex.h:
8221         Sign-compare warning elimination: several unsigned -> signed.
8222         Based on work by Ben Wing <ben@xemacs.org>.
8223
8224 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8225
8226         * XEmacs 21.2.47 "Zephir" is released.
8227
8228 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8229
8230         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8231
8232 2001-04-03  Mike Sperber <mike@xemacs.org>
8233
8234         * search.c: Revert previous patch due because of release.
8235
8236 2001-03-30  Ben Wing  <ben@xemacs.org>
8237
8238         * s\cygwin32.h:
8239         Add missing killpg prototype.
8240
8241         * elhash.c:
8242         Add a comment about fixing problems when a new entry is added
8243         while mapping.
8244
8245         * frame-msw.c (mswindows_init_frame_1):
8246         Fix compile warnings.
8247
8248         * menubar.c (vars_of_menubar):
8249         Provide `menu-accelerator-support' to indicate that we properly
8250         support %_ in menu specifications, so that package code can
8251         conditionalize on this (and remove %_ from menu specifications
8252         on older versions).
8253
8254         * event-msw.c:
8255         * scrollbar-msw.c:
8256         * scrollbar-msw.c (can_scroll):
8257         * scrollbar-msw.h:
8258         Fix handling of mouse wheel under Windows to follow standards --
8259         now scrolls window under pointer, not selected window.
8260
8261 2001-03-31  Mike Sperber <mike@xemacs.org>
8262
8263         * search.c (Freplace_match): Support FSF-style specification of
8264         match subexpression when applied to a buffer.
8265
8266 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8267
8268         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8269         function to modify KEYMAP, so map over a copy of the hash table.
8270
8271 2001-03-21  Martin Buchholz <martin@xemacs.org>
8272
8273         * XEmacs 21.2.46 "Urania" is released.
8274
8275 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8276
8277         * realpath.c (xrealpath): Make file-truename work with symlinks to
8278         /cygdrive paths on cygwin. Always lowercase drive-letters on
8279         native windows.
8280         (cygwin_readlink): Don't try to find canonical filename unless
8281         file exists.
8282
8283 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8284
8285         * ChangeLog: Log GTK merge.
8286
8287         * dumper.c:
8288         * select-x.c:
8289         * specifier.c:
8290         * symeval.h:
8291         Revert gratuitous whitespace changes from GTK merge.
8292
8293         * emacs.c: Document end of complex #ifdef @ l. 1495.
8294
8295
8296 2001-03-12  Andy Piper  <andy@xemacs.org>
8297
8298         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8299         have to do likewise.
8300
8301 2001-03-12  Andy Piper  <andy@xemacs.org>
8302
8303         * sysdep.c: we only support mingw now.
8304
8305 2001-03-09  Andy Piper  <andy@xemacs.org>
8306
8307         * unexcw.c (copy_executable_and_dump_data_section): making approx
8308         overrun a warning only.
8309
8310 2001-03-10  William M. Perry  <wmperry@aventail.com>
8311
8312         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8313         satisfy Stephen's identical-after-cpp plea.
8314
8315 2001-03-02  Ben Wing  <ben@xemacs.org>
8316
8317         * cmds.c:
8318         * cmds.c (Fforward_char):
8319         * syntax.c:
8320         * window.c:
8321
8322         Augment documentation of the most common motion commands to make
8323         note of the shifted-motion support.
8324         
8325 2001-03-02  Ben Wing  <ben@xemacs.org>
8326
8327         * nt.c (mswindows_fstat):
8328         * nt.c (mswindows_stat):
8329         * search.c (boyer_moore):
8330         Fix compile warnings under Windows.
8331         
8332         * sysdep.c (sys_readdir):
8333         Fix buggy filename-conversion code under Mule.
8334
8335 2001-03-09  William M. Perry  <wmperry@aventail.com>
8336
8337         * Makefile.in.in:
8338         * config.h.in:
8339         * console.c:
8340         * console.h:
8341         * device.c:
8342         * device.h:
8343         * dragdrop.c:
8344         * emacs.c:
8345         * event-stream.c:
8346         * events.c:
8347         * events.h:
8348         * faces.c:
8349         * frame.h:
8350         * general-slots.h:
8351         * glyphs.c:
8352         * gutter.c:
8353         * inline.c:
8354         * lisp.h:
8355         * lrecord.h:
8356         * make-src-depend:
8357         * redisplay-output.c:
8358         * redisplay.c:
8359         * symsinit.h:
8360         * sysfile.h:
8361         * toolbar.c:
8362         * window.c:
8363         The Great GTK Merge.
8364
8365         * ChangeLog.GTK:
8366         * console-gtk.c:
8367         * console-gtk.h:
8368         * device-gtk.c:
8369         * emacs-marshals.c:
8370         * emacs-widget-accessors.c:
8371         * event-gtk.c:
8372         * frame-gtk.c:
8373         * gccache-gtk.c:
8374         * gccache-gtk.h:
8375         * glade.c:
8376         * glyphs-gtk.c:
8377         * glyphs-gtk.h:
8378         * gtk-glue.c:
8379         * gtk-xemacs.c:
8380         * gtk-xemacs.h:
8381         * gui-gtk.c:
8382         * gui-gtk.h:
8383         * menubar-gtk.c:
8384         * native-gtk-toolbar.c:
8385         * objects-gtk.c:
8386         * objects-gtk.h:
8387         * redisplay-gtk.c:
8388         * scrollbar-gtk.c:
8389         * scrollbar-gtk.h:
8390         * select-gtk.c:
8391         * toolbar-gtk.c:
8392         * ui-byhand.c:
8393         * ui-gtk.c:
8394         * ui-gtk.h:
8395         The Great GTK Merge: new files.
8396
8397 2001-02-26  Ben Wing  <ben@xemacs.org>
8398
8399         Reapplied Lstream change.
8400
8401 2001-02-26  Ben Wing  <ben@xemacs.org>
8402
8403         Undid the last change, since it is more controversial than I
8404         thought.  It should be back in at some point soon.
8405         
8406 2001-02-25  Ben Wing  <ben@xemacs.org>
8407
8408         * buffer.c:
8409         * callproc.c (Fold_call_process_internal):
8410         * event-msw.c (ntpipe_slurp_reader):
8411         * event-msw.c (ntpipe_shove_writer):
8412         * event-msw.c (winsock_reader):
8413         * event-msw.c (winsock_writer):
8414         * file-coding.c:
8415         * file-coding.c (detect_eol_type):
8416         * file-coding.c (detect_coding_type):
8417         * file-coding.c (determine_real_coding_system):
8418         * file-coding.c (Fdetect_coding_region):
8419         * file-coding.c (decoding_reader):
8420         * file-coding.c (decoding_writer):
8421         * file-coding.c (mule_decode):
8422         * file-coding.c (Fdecode_coding_region):
8423         * file-coding.c (encoding_reader):
8424         * file-coding.c (encoding_writer):
8425         * file-coding.c (mule_encode):
8426         * file-coding.c (Fencode_coding_region):
8427         * file-coding.c (detect_coding_sjis):
8428         * file-coding.c (decode_coding_sjis):
8429         * file-coding.c (encode_coding_sjis):
8430         * file-coding.c (detect_coding_big5):
8431         * file-coding.c (decode_coding_big5):
8432         * file-coding.c (encode_coding_big5):
8433         * file-coding.c (detect_coding_ucs4):
8434         * file-coding.c (decode_coding_ucs4):
8435         * file-coding.c (encode_coding_ucs4):
8436         * file-coding.c (detect_coding_utf8):
8437         * file-coding.c (decode_coding_utf8):
8438         * file-coding.c (encode_coding_utf8):
8439         * file-coding.c (detect_coding_iso2022):
8440         * file-coding.c (decode_coding_iso2022):
8441         * file-coding.c (encode_coding_iso2022):
8442         * file-coding.c (decode_coding_no_conversion):
8443         * file-coding.c (encode_coding_no_conversion):
8444         * glyphs-x.c (write_lisp_string_to_temp_file):
8445         * gpmevent.c (tty_get_foreign_selection):
8446         * lisp.h:
8447         * lstream.c:
8448         * lstream.c (Lstream_flush_out):
8449         * lstream.c (Lstream_adding):
8450         * lstream.c (Lstream_write_1):
8451         * lstream.c (Lstream_write):
8452         * lstream.c (Lstream_raw_read):
8453         * lstream.c (Lstream_read_more):
8454         * lstream.c (Lstream_read):
8455         * lstream.c (Lstream_unread):
8456         * lstream.c (Lstream_fputc):
8457         * lstream.c (stdio_reader):
8458         * lstream.c (stdio_writer):
8459         * lstream.c (filedesc_reader):
8460         * lstream.c (filedesc_writer):
8461         * lstream.c (lisp_string_reader):
8462         * lstream.c (struct fixed_buffer_stream):
8463         * lstream.c (make_fixed_buffer_input_stream):
8464         * lstream.c (make_fixed_buffer_output_stream):
8465         * lstream.c (fixed_buffer_reader):
8466         * lstream.c (fixed_buffer_writer):
8467         * lstream.c (struct resizing_buffer_stream):
8468         * lstream.c (resizing_buffer_writer):
8469         * lstream.c (dynarr_writer):
8470         * lstream.c (lisp_buffer_reader):
8471         * lstream.c (lisp_buffer_writer):
8472         * lstream.h:
8473         * lstream.h (lstream_implementation):
8474         * lstream.h (struct lstream):
8475         * md5.c (Fmd5):
8476         * process-nt.c (nt_send_process):
8477         * process-unix.c (unix_send_process):
8478         
8479         Correct Lstream lossage due to mixing of signed and unsigned
8480         quantities.  All Lstream uses of size_t and ssize_t are now a
8481         single signed data type Lstream_data_count.  This fixes problems
8482         under Windows with sending large quantities of data to a process,
8483         and may well fix other subtle bugs.
8484
8485 2001-02-23  Martin Buchholz <martin@xemacs.org>
8486
8487         * XEmacs 21.2.45 "Thelxepeia" is released.
8488
8489 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8490
8491         * lisp-union.h (XSETINT): 
8492         (XSETCHAR):
8493         (XSETOBJ): 
8494         Reverse previous change of 2001-02-06.
8495
8496 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8497
8498         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8499         buffers.
8500         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8501         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8502         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8503         * regex.c (POS_AS_IN_BUFFER): removed
8504         * regex.c (re_search_2):
8505         * regex.c (re_match_2):
8506         Don't use an offset of 1 when calculating buffer positions, since
8507         `BI_BUF_BEGV' does it already.
8508
8509 2001-02-18  Wim Dumon  <wim@easics.be>
8510
8511         * insdel.c (prepare_to_modify_buffer): Also check for
8512         supersession when clash-detection is enabled. 
8513
8514 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8515
8516         * regex.c (re_match_2_internal):
8517         Convert temp characters from 'const unsigned char' to 're_char'.
8518         Fix crashing bug with extended characters under mule.
8519         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8520         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8521         font-lock, pdump, and new syntax-table code.
8522         * syntax.c (find_start_of_comment):
8523         (find_end_of_comment):
8524         (forward-comment):
8525         Fix crashing bugs involving moving beyond end of buffer.
8526         * syntax.c (find_start_of_comment):
8527         Fixed logic to allow proper detection of cases where the same
8528         character is used to end both a two-char comment start and a
8529         two-char comment end sequence. Fixes `(forward-comment -1)'.
8530         * syntax.c (find_start_of_comment):
8531         Return position just past last comment-end character for all cases
8532         (previously was only done for two-char comment-end sequences).
8533         * syntax.c (forward-comment):
8534         Take value returned from `find_end_of_comment', rather than
8535         incrementing it.
8536         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8537         Properly deal with BUFFERP (syntax_cache.object)
8538
8539 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8540
8541         * alloc.c (Fgarbage_collect): 
8542         * alloc.c (make_bit_vector_from_byte_vector):
8543         -Wsign-compare-correctness.
8544
8545 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8546
8547         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8548         (XSETCHAR): Likewise.
8549         (XSETOBJ): Likewise.
8550
8551 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8552
8553         * mule-canna.c (canna-func-delete_previous): 
8554         Rename to canna-func-delete-previous.
8555
8556 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8557
8558         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8559
8560 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8561
8562         * font-lock.c (find_context): Fix C++ compile errors introduced by
8563         recent patch
8564
8565 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8566
8567         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8568         pragma, but earlier ones barf on the same pragma.
8569
8570 2001-02-06  Mike Sperber <mike@xemacs.org>
8571
8572         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8573         `configure-mule-lisp-directory'.
8574
8575 2001-02-12  Martin Buchholz  <martin@xemacs.org>
8576
8577         Make sure dump-id.c is compiled in the same way as other .c's.
8578         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
8579         * dump-id.h: Remove.
8580         * emacs.c: Move dump-id.h into dumper.h.
8581         * dumper.h: Move dump-id.h into dumper.h.
8582         * Makefile.in.in:
8583         Use standard .c.o rule for building dump-id.o.
8584         Remove preprocessor flags from link command.
8585         Add dump-id.o to ${otherobjs} if PDUMP.
8586
8587 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
8588
8589         Port FSF 20.7 syntax table improvements.
8590         * syntax.c.
8591         * syntax.h.
8592
8593         Fixups for new syntax table stuff.
8594         * dired.c: Include syntax.c.
8595         (Fdirectory_files): Initialize regex_match_object and
8596         regex_emacs_buffer.
8597         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
8598         and Fget_char_property.
8599
8600         Use ported FSF 20.7 syntax table improvements.
8601         * font-lock.c.
8602         * regex.c.
8603         * search.c.
8604         
8605 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8606
8607         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
8608         Unixware's enum boolean from sys/types.h.
8609
8610 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8611
8612         Fix support for building with latest Purify.
8613         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
8614         (PURIFY_FLAGS): Likewise.
8615
8616 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8617
8618         * fileio.c (lisp_string_set_file_times): New.
8619         * fileio.c (Fcopy_file): Use it.
8620         Fixes bug:
8621         (copy-file filename non-ascii-filename t t)
8622         ==> No such file or directory, non-ascii-filename
8623
8624 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8625
8626         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
8627         USHRT_MAX seems clearer than ~0 anyways.
8628
8629 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8630
8631         dumper improvements.  Inspired by Olivier.
8632         * dumper.c (pdump_max_align): New.
8633         * dumper.c (pdump_add_entry): Use pdump_max_align.
8634         * dumper.c (pdump_get_entry_list): Likewise.
8635         * dumper.c (pdump_scan_by_alignment): Likewise.
8636         Don't iterate through unnecessary alignments.
8637         * dumper.c (pdump_file_get): No need to align result of malloc().
8638         * dumper.c (pdump_mallocadr): Remove.  
8639         The result of malloc() is guaranteed to be maximally aligned.
8640         * dumper.c: s/elmt/elt/g;
8641         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
8642         * dumper.c (pdump_alert_undump_object): Likewise.
8643         * dumper.c (pdump_align_table): 
8644         Don't support alignments > 64.
8645         Store ALIGNOF's, not shift counts, in table.
8646
8647 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8648
8649         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
8650         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
8651         * systime.h: Use HAVE_UTIME.
8652         * sysdep.c (struct utimbuf): Remove.
8653         * sysdep.c (set_file_times): Prefer utime() to utimes().
8654         * config.h.in (HAVE_UTIME): New.
8655         * config.h.in (HAVE_UTIME_H): Remove.
8656         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
8657
8658 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8659
8660         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
8661
8662 2001-02-08  Martin Buchholz  <martin@xemacs.org>
8663
8664         * s/irix6-0.h: Use the standard system memmove, not bcopy.
8665
8666 2001-02-08  Martin Buchholz <martin@xemacs.org>
8667
8668         * XEmacs 21.2.44 "Thalia" is released.
8669
8670 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8671
8672         Fixes crashes in kill-emacs on some systems.
8673         * process-unix.c (unix_kill_child_process):
8674         It's OK for kill() to fail with ESRCH.
8675
8676 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8677
8678         Contortions to make .gdbinit tricks work on most systems.
8679         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
8680         * alloc.c (dbg_valmask): Make non-const.
8681         * alloc.c (dbg_typemask): Make non-const.
8682         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
8683         * alloc.c (dbg_valbits): Make non-const.
8684         * alloc.c (dbg_gctypebits): Make non-const.
8685         * .gdbinit (decode_object): Make it work with AIX cc.
8686
8687 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8688
8689         * elhash.c (make_general_lisp_hash_table):
8690         Use simpler and more efficient calloc to clear entries.
8691
8692 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8693
8694         * window.c (window_scroll): Work around an AIX C compiler bug.
8695         Fixes 'scroll-up' does nothing problem with xlC.
8696
8697 2001-02-05  Martin Buchholz  <martin@xemacs.org>
8698
8699         * .gdbinit: Remove obsolete comment.
8700
8701 2001-01-31  Mike Alexander  <mta@arbortext.com>
8702
8703         * select.c (Fown_selection_internal): Set owned_p for device
8704         method correctly.
8705
8706 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8707
8708         Port to g++ 2.97.
8709         "not" cannot be used as a macro name as it is an operator in C++
8710         * config.h.in: Stop #defining `not'.
8711         * chartab.c (check_category_char): not ==> not_p
8712         * chartab.h: Likewise.
8713         * regex.c (re_match_2_internal): Likewise.
8714
8715 2001-02-02  Martin Buchholz  <martin@xemacs.org>
8716
8717         * lisp-disunion.h: Fix up comments.
8718
8719 2001-01-31  Martin Buchholz  <martin@xemacs.org>
8720
8721         * keymap.c (define_key_check_and_coerce_keysym):
8722         (syms_of_keymap):
8723         Support mouse-6 and mouse-7 bindings in the obvious way.
8724
8725 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8726
8727         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
8728
8729 2001-01-30  Martin Buchholz  <martin@xemacs.org>
8730
8731         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
8732         Previous patch missed DEFVAR_INT_MAGIC.
8733         Make sure future DEFVAR_foo use correct types.
8734         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
8735         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
8736         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
8737         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
8738         * (DEFVAR_INT): Likewise.
8739         * redisplay.c (vertical_clip): Should be of type Fixnum.
8740         * redisplay.c (horizontal_clip): Likewise.
8741         * lisp.h (dump_add_opaque_int): New.
8742         (dump_add_opaque_fixnum): New.
8743
8744 2001-01-29  Andy Piper  <andy@xemacs.org>
8745
8746         * glyphs-widget.c (check_valid_int_or_function): allow symbols
8747         since they can be eval'ed
8748
8749 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8750
8751         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
8752         Oops, XEmacs redefines `class'.  Use `typename' instead.
8753
8754 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8755
8756         * dumper.c: Fix C++ compile errors.
8757
8758 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8759
8760         * tparam.c: Use correct prototypes.
8761
8762 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8763
8764         * sysproc.h: #include util.h for NetBSD's openpty.
8765
8766 2001-01-27  Martin Buchholz  <martin@xemacs.org>
8767
8768         More 64-bit correctness.
8769         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
8770         Use a typedef `fixnum' for the type used for DEFVAR_INT.
8771         Fix up comments.
8772         This finally finishes the 64-bit SGI port.
8773         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
8774         * symbols.c: Fix up comments and type casts.
8775         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
8776         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
8777         * symeval.h (Fixnum): New type.
8778         * symeval.h (symbol_value_type): Fix up comment.
8779
8780         * commands.h:
8781         * nt.c:
8782         * emacs.c:
8783         * data.c:
8784         * redisplay.c:
8785         * abbrev.c:
8786         * dired-msw.c:
8787         * event-Xt.c:
8788         * eldap.c:
8789         * window.c:
8790         * sound.c:
8791         * event-stream.c:
8792         * eval.c:
8793         * buffer.c:
8794         * mule-canna.c: A million DEFVAR_INTs here...
8795         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
8796         * extents.c:
8797         * cmdloop.c:
8798         * lisp.h:
8799         * select-x.c:
8800         * console-x.h:
8801         * event-msw.c:
8802         * mule-wnnfns.c:
8803         * hpplay.c:
8804         * ralloc.c:
8805         * alloc.c:
8806         * keymap.c:
8807         * profile.c:
8808         s/int/Fixnum/g in DEFVAR_INT declarations.
8809
8810 2001-01-26  Martin Buchholz  <martin@xemacs.org>
8811
8812         Port pdump to SGI alignment-sensitive environment.
8813         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
8814         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
8815         properly aligned.
8816         Define and use aligned reading and writing macros.
8817         Use buffered stdio instead of posix i/o for faster dumping.
8818         Eliminate kludgy 256 byte space for header.
8819         Read and write from dump file using structs for alignment safety.
8820         * dumper.c (pdump_align_stream): New.
8821         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
8822         * dumper.c (PDUMP_READ_ALIGNED): New.
8823         * dumper.c (PDUMP_WRITE_ALIGNED): New.
8824         * dumper.c (pdump_static_Lisp_Object): New struct.
8825         * dumper.c (pdump_static_pointer): New struct.
8826         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
8827         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
8828         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
8829         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
8830
8831         * dumper.c (pdump_backtrace):
8832         * dumper.c (pdump_get_indirect_count):
8833         * dumper.c (pdump_register_object):
8834         * dumper.c (pdump_register_struct):
8835         * dumper.c (pdump_reloc_one):
8836         * dumper.c (pdump_scan_by_alignment):
8837         * dumper.c (pdump_dump_from_root_struct_ptrs):
8838         * dumper.c (pdump_dump_opaques):
8839         * dumper.c (pdump_dump_rtables):
8840         * dumper.c (pdump_dump_from_root_objects):
8841         * dumper.c (pdump):
8842         * dumper.c (pdump_load_finish):
8843         Use aligned reading and writing.
8844
8845         * dumper.c (pdump_free): Make static.
8846         * dumper.c (pdump_hFile): Likewise.
8847         * dumper.c (pdump_hMap): Likewise.
8848
8849 2001-01-26  Martin Buchholz <martin@xemacs.org>
8850
8851         * XEmacs 21.2.43 "Terspichore" is released.
8852
8853 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8854
8855         Type fiddling for window_config.saved_windows_count
8856         * window.c (struct window_config): 
8857         Make saved_windows_count member unsigned.
8858         * window.c (sizeof_window_config_for_n_windows): 
8859         Make parameter unsigned.
8860         * window.c (mark_window_config):
8861         * window.c (window_config_equal):
8862         * window.c (free_window_configuration):
8863         * window.c (Fset_window_configuration):
8864         * window.c (count_windows):
8865         * window.c (Fcurrent_window_configuration):
8866         * window.c (reinit_vars_of_window):
8867         Update all callers and users.
8868
8869 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8870
8871         Alignment correctness for flexible arrays.
8872         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
8873         Make alignment-correct. Add interesting comments.
8874         * alloc.c (size_vector):
8875         * alloc.c (make_vector_internal):
8876         * alloc.c (make_bit_vector_internal):
8877         * alloc.c (sweep_bit_vectors_1):
8878         * fns.c (size_bit_vector):
8879         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
8880         * window.c (sizeof_window_config_for_n_windows): 
8881         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
8882
8883 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8884
8885         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
8886
8887 2001-01-23  Andy Piper  <andy@xemacs.org>
8888
8889         * select.c (Fown_selection_internal): pass owned_p
8890
8891         * select-msw.c (mswindows_own_selection): New Signature.
8892
8893         * console.h (struct console_methods): add owned_p to
8894         _own_selection.
8895
8896         * select-x.c (x_own_selection): pass owned_p
8897         (hack_motif_clipboard_selection): use owned_p
8898         (vars_of_select_x): new variable -
8899         x_selection_strict_motif_ownership.
8900
8901 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8902
8903         * specifier.h (specifier_data_offset): Remove pointless parens.
8904         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
8905
8906 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8907
8908         Make Lisp_Object sizeof methods be alignment-correct.
8909         pdump must restore objects to the same alignment as the C compiler
8910         assumes.  It really matters on SGIs.
8911         * lstream.c (aligned_sizeof_lstream): New.
8912         (sizeof_lstream): Use aligned_sizeof_lstream.
8913         (Lstream_new): Likewise.
8914         * opaque.c (aligned_sizeof_opaque): New.
8915         (sizeof_opaque): Use aligned_sizeof_opaque.
8916         (make_opaque): Likewise.
8917         * specifier.c (aligned_sizeof_specifier): New.
8918         (sizeof_specifier): Use aligned_sizeof_specifier.
8919         (make_specifier_internal): Likewise.
8920
8921 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8922
8923         * lstream.h (struct lstream): Use max_align_t for trailing data.
8924         * specifier.h (struct Lisp_Specifier): Likewise.
8925
8926 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8927
8928         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
8929         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
8930         (CCL_SUSPEND): Likewise.
8931         (CCL_INVALID_CMD): Likewise.
8932         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
8933         (ccl_driver): Likewise.
8934         (CCL_WRITE_CHAR): Macro hygiene.
8935         (CCL_WRITE_STRING): Macro hygiene.
8936
8937 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8938
8939         Port "portable" dumper to SunOS 4 and HP-UX.
8940         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
8941         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
8942         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
8943
8944 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8945
8946         * lisp.h (ALIGNOF): A better definition for C++.
8947
8948 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8949
8950         Macro hygiene.
8951         Fix printf warnings: int format, long int arg.
8952         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
8953         (PUSH_FAILURE_POINT): Use correct printf formats.
8954         (POP_FAILURE_POINT): Use correct printf formats.  
8955         Use do {...} while (0)
8956
8957 2001-01-20  Martin Buchholz <martin@xemacs.org>
8958
8959         * XEmacs 21.2.42 "Poseidon" is released.
8960
8961 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8962
8963         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
8964
8965 2001-01-19  Martin Buchholz  <martin@xemacs.org>
8966
8967         De-kludgify FIXED_TYPE free list frobbing.
8968         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
8969         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
8970         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
8971         * alloc.c (Lisp_Free): New pseudo lisp object definition.
8972         * alloc.c (LRECORD_FREE_P): New.
8973         * alloc.c (MARK_LRECORD_AS_FREE): New.
8974         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
8975         * alloc.c (STRUCT_FREE_P): Deleted.
8976         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
8977         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
8978         * alloc.c (STRING_CHARS_FREE_P): New.
8979         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
8980         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
8981         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
8982         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
8983         * alloc.c (resize_string): Use new definitions.
8984         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
8985         * alloc.c (verify_string_chars_integrity): Use new definitions.
8986         * alloc.c (compact_string_chars): Use new definitions.
8987         * alloc.c: Update monster comments.
8988         * lrecord.h (lrecord_type): Add some new lrecord types for
8989         alloc.c's use.
8990
8991 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8992
8993         Improve alignment hackery.
8994         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
8995         (max_align_t): Moved from opaque.h - general purpose.
8996         (ALIGN_PTR): Use size_t, not long.
8997         * opaque.h (max_align_t): Move to lisp.h.
8998
8999 2001-01-18  Norbert Koch  <nk@LF.net>
9000
9001         * gui.h: Fix and add prototypes to fix build problems.
9002
9003 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9004
9005         temacs is going away, so `dump-temacs' is now a bad name.
9006         * .dbxrc (dump-temacs): Rename to `dmp'.
9007         * .gdbinit (dump-temacs): Rename to `dmp'.
9008
9009 2001-01-17  Andy Piper  <andy@xemacs.org>
9010
9011         * glyphs.c (print_image_instance): comment to make martin happy.
9012
9013         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9014         change.
9015
9016         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9017         activation.
9018         (mswindows_tab_control_redisplay): warning suppression.
9019
9020         * glyphs-widget.c (widget_update): re-write to cope with updated
9021         items.
9022         (widget_instantiate): use new gui_item functions.
9023         (tab_control_update): deleted.
9024         (progress_gauge_update): deleted.
9025         (image_instantiator_progress_guage): take out update reference.
9026         (image_instantiator_tree_view): ditto.
9027         (image_instantiator_tab_control): ditto.
9028
9029         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9030         Right the new way.
9031         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9032         return whether anything was changed.
9033         (update_gui_item_keywords): as it sounds.
9034
9035         * gui.h: declare widget_gui_parse_item_keywords.
9036
9037         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9038         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9039
9040 2001-01-17  Martin Buchholz <martin@xemacs.org>
9041
9042         * XEmacs 21.2.41 "Polyhymnia" is released.
9043
9044 2001-01-16  Didier Verna  <didier@xemacs.org>
9045
9046         * glyphs.c (image_instantiate): don't use fallbacks when
9047         instantiating a face's background pixmap by inheritance.
9048
9049 2001-01-14  Mike Sperber <mike@xemacs.org>
9050
9051         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9052         Conditionalize accordingly.
9053
9054 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9055
9056         * dumper.c (pdump_file_get): Fix a compiler warning.
9057
9058 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9059
9060         Make Purify happy when pdumping.
9061         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9062         iniitalizing all bits of new lisp object memory.
9063         * symbols.c (Fmake_local_variable): Likewise.
9064         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9065         * symbols.c (Fdefvaralias): Likewise.
9066         * mule-charset.c (vars_of_mule_charset): Likewise.
9067
9068 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9069         Add the `-nd' flag when running pre-dump operations under the debugger.
9070         * .dbxrc (run-temacs): Add `-nd'.
9071         * .dbxrc (update-elc): Likewise.
9072         * .dbxrc (dump-temacs): Likewise.
9073         * .gdbinit (run-temacs): Likewise.
9074         * .gdbinit (check-temacs): Likewise.
9075         * .gdbinit (update-elc): Likewise.
9076         * .gdbinit (dump-temacs): Likewise.
9077
9078 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9079
9080         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9081         export OBJECT_MODE=64
9082         configure --pdump --use-union-type=no
9083         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9084         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9085
9086         * miscplay.c (sndcnv8U_2mono):
9087         Avoid two uses of `++' in the same expression.
9088         Suppresses a GCC warning.
9089
9090 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9091
9092         Make sure future compilers don't miscompile alloc.c.
9093         * alloc.c:
9094         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9095         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9096
9097 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9098
9099         * dumper.c: A little post-pdump-rename comment fixup.
9100
9101 2001-01-09  Jerry James  <james@eecs.ku.edu>
9102
9103         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9104
9105 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9106
9107         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9108         script:
9109         #!/bin/sh
9110         replace_symbol () {
9111           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9112         }
9113
9114         replace_symbol pdump_wire_lists pdump_weak_object_chains
9115         replace_symbol pdump_wire_list dump_add_weak_object_chain
9116
9117         replace_symbol pdump_wires pdump_root_objects
9118         replace_symbol pdump_wire dump_add_root_object
9119
9120         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9121         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9122
9123         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9124         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9125         replace_symbol dumpstructinfo pdump_root_struct_ptr
9126         replace_symbol dumpstruct dump_add_root_struct_ptr
9127
9128         replace_symbol dumpopaque dump_add_opaque
9129         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9130         replace_symbol dumpopaqueinfos pdump_opaques
9131         replace_symbol dumpopaqueinfo pdump_opaque
9132
9133         replace_symbol nb_structdump nb_root_struct_ptrs
9134         replace_symbol nb_opaquedump nb_opaques
9135
9136         replace_symbol align_table pdump_align_table
9137         replace_symbol dump_header pdump_header
9138
9139         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9140         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9141
9142
9143 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9144
9145         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9146         optimizing bytecount_to_charcount().
9147
9148 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9149
9150         * config.h.in:
9151         (HAVE_DLFCN_H): Removed.
9152         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9153
9154 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9155
9156         Portable dumper maintainability improvements.
9157         * alloc.c (staticpro):
9158         * alloc.c (staticpro_nodump):
9159         * alloc.c (garbage_collect_1):
9160         * alloc.c (reinit_alloc_once_early):
9161         * alloc.c (init_alloc_once_early):
9162         * alloc.c: Move dumper functions to alloc.c.
9163         * dumper.c (pdump_backtrace):
9164         * dumper.c (pdump_dump_structs):
9165         * dumper.c (pdump_dump_opaques):
9166         * dumper.c (pdump_dump_rtables):
9167         * dumper.c (pdump_dump_wired):
9168         * dumper.c (pdump):
9169         * dumper.c (pdump_load_check):
9170         * dumper.c (pdump_load_finish):
9171         * dumper.c (pdump_file_unmap):
9172         * dumper.c (pdump_file_get):
9173         * dumper.c (pdump_resource_free):
9174         * dumper.c (pdump_resource_get):
9175         * dumper.c (pdump_file_free):
9176         * dumper.c (pdump_file_try):
9177         * dumper.c (pdump_load):
9178         Remove fixed size limits on staticpro(), staticpro_nodump(),
9179         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9180         Remove custom code for dumping lrecord_implementations_table - use
9181         dumpopaque instead.
9182         Remove (most of the) custom code for dumping staticpros - dump it
9183         like any other dynarr.
9184
9185         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9186         * dumper.c: Moved functions from alloc.c.
9187         * alloc.c (dumpstruct): Moved to dumper.c.
9188         * alloc.c (dumpopaque): Likewise.
9189         * alloc.c (pdump_wire): Likewise.
9190         * alloc.c (pdump_wire_list): Likewise.
9191
9192         * lisp.h (Dynarr_sizeof): New.
9193         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9194         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9195         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9196
9197         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9198         * lisp.h (dumpopaque): ditto.
9199         * lisp.h (pdump_wire): ditto.
9200         * lisp.h (pdump_wire_list): ditto.
9201
9202 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9203
9204         * make-src-depend (PrintPatternDeps):
9205         Use `sort' to make output independent of perl version.
9206
9207 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9208
9209         Port to Netbsd 1.5.
9210         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9211         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9212
9213 2001-01-03  Didier Verna  <didier@xemacs.org>
9214
9215         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9216         that `focus_frame' is alive before thinking of calling
9217         `redisplay_redraw_cursor' on it.
9218
9219 2001-01-08  Martin Buchholz <martin@xemacs.org>
9220
9221         * XEmacs 21.2.40 is released.
9222
9223 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9224
9225         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9226
9227 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9228
9229         * alloc.c (dbg_valmask): Make const.
9230         * alloc.c (dbg_typemask): Make const.
9231         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9232         * alloc.c (dbg_valbits): Make const.
9233         * alloc.c (dbg_gctypebits): Make const.
9234
9235 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9236
9237         * redisplay-x.c (x_bevel_area):
9238         redisplay.h (struct rune):
9239         Typo fixes in comments.
9240
9241 2001-01-05  Andy Piper  <andy@xemacs.org>
9242
9243         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9244         adjustment.
9245
9246         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9247
9248 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9249
9250         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9251
9252         * mule-ccl.c (stack_idx_of_map_multiple):
9253         Non const global data must not be initialized!
9254         Found by MIYASHITA Hisashi.
9255
9256 2001-01-02  Andy Piper  <andy@xemacs.org>
9257
9258         * frame.c (change_frame_size): make sure frame size is always
9259         marked as changed.
9260
9261         * glyphs.c (image_instance_layout): minor code reuse.
9262
9263         * window.c (Fcurrent_window_configuration): revert previous
9264         change.
9265
9266 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9267
9268         * glyphs.h:
9269         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9270
9271 2000-12-31  Andy Piper  <andy@xemacs.org>
9272
9273         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9274         when widget gets unmapped.
9275
9276         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9277         function. Make sure widgets losing focus don't just drop it.
9278         (handle_focus_event_1): record the widget with focus.
9279
9280 2000-12-31  Andy Piper  <andy@xemacs.org>
9281
9282         * window.c (allocate_window): use
9283         make_image_instance_cache_hash_table.
9284         (make_dummy_parent): ditto.
9285         (Fset_window_configuration): ditto.
9286
9287         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9288
9289         * glyphs.c (process_image_string_instantiator): use
9290         INSTANTIATOR_TYPE.
9291         (get_image_instantiator_governing_domain): ditto.
9292         (normalize_image_instantiator): ditto.
9293         (instantiate_image_instantiator): ditto.
9294         (make_image_instance_1): ditto.
9295         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9296         (instantiator_eq_equal): new function for use with instance hash
9297         tables.
9298         (instantiator_eq_hash): ditto.
9299         (make_image_instance_cache_hash_table): create a suitable hash
9300         table for storing image instances.
9301
9302         * elhash.h (hash_table_weakness): new internal weakness type
9303         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9304         declare new functions.
9305
9306         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9307         another weakness type for glyphs.
9308         (make_standard_lisp_hash_table): new function split out from
9309         make_general_lisp_hash_table.
9310         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9311         (hash_table_instantiate): ditto.
9312         (Fmake_hash_table): ditto.
9313
9314 2000-12-31  Martin Buchholz <martin@xemacs.org>
9315
9316         * XEmacs 21.2.39 is released.
9317
9318 2000-12-29  Andy Piper  <andy@xemacs.org>
9319
9320         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9321
9322         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9323         the frame has changed so that we pick up geometry changes such as
9324         menubar visibility.
9325
9326 2000-12-28  Andy Piper  <andy@xemacs.org>
9327
9328         * lastfile.c (my_ebss): make a char array so we can pad the
9329         bss. Fixes cygwin unexec.
9330
9331         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9332
9333 2000-12-26  Andy Piper  <andy@xemacs.org>
9334
9335         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9336         comments and try and be more precise about a non-/SIGIO world.
9337         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9338         SIGIO.
9339
9340         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9341         we don't normalize to zero width or height.
9342
9343 2000-12-24  Andy Piper  <andy@xemacs.org>
9344
9345         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9346
9347 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9348
9349         * s/sco5.h: SCO 5 has pty support.
9350
9351 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9352
9353         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9354         input-method-xlib.c contains whole contents of input-method-xfs.c,
9355         so we can use input-method-xlib.c's code for USE_XFONTSET
9356         using #ifdefs.
9357         * input-method-xfs.c: removed.
9358
9359 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9360
9361         * file-coding.h (enum coding_category_type): reorder enumerators to
9362         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9363         (now one greater than largest real coding_category_type enumerator).
9364         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9365         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9366         Fcoding_category_list, Fset_coding_priority_list,
9367         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9368         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9369
9370 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9371
9372         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9373         * redisplay-output.c (redisplay_output_window): Clear top of window
9374         when face is changed.
9375         * redisplay-x.c (x_redraw_exposed_window): Call
9376         redisplay_clear_top_of_window.
9377         * redisplay.h: Publish redisplay_clear_top_of_window.
9378
9379 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9380
9381         * buffer.c (Fkill_buffer): Map over all devices.
9382         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9383         (list_windows): New function.
9384         (list_all_windows): Ditto.
9385         (Freplace_buffer_in_windows): Use them.
9386
9387 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9388
9389         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9390         (Fopen_database): Use `db_create' instead of `db_open'.
9391         (syms_of_database): Initialize Qqueue.
9392
9393 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9394
9395         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9396         buffer_local_face_property.
9397         * buffer.h (struct buffer): New member buffer_local_face_property.
9398         * window.c (Fset_window_buffer):  Mark window's face as changed
9399         when buffer has buffer local face.
9400         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9401         * objects.c (color_after_change): Set buffer_local_face_property
9402         when locale of face specifier is buffer.
9403         * objects.c (font_after_change): Ditto.
9404         * objects.c (face_boolean_after_change): Ditto.
9405         * glyphs.c (image_after_change): Ditto.
9406
9407 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9408
9409         * nt.c (mswindows_fstat): Report file permissions, volume serial
9410         number, etc. Code adapted from FSF Emacs 20.7.
9411
9412 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9413
9414         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9415         of stat when we don't have symbolic links, to make sure
9416         mswindows_stat is called on mswindows.
9417
9418 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9419
9420         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9421
9422 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9423
9424         * doprnt.c (emacs_doprnt_1): More printing fixes.
9425         Make printing of numbers compatible with libc and FSF Emacs.
9426         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9427         Use the system printf to do most of the hard work of formatting,
9428         instead of doprnt_1().
9429         Calculate memory to allocate for format string.
9430         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9431         (doprnt_1): Cleaner code and documentation.
9432
9433 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9434
9435         * Makefile.in.in: Use the loop variable to install headers.
9436
9437 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9438
9439         * window.c (Fsplit_window): Don't invalidate face cache.
9440
9441 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9442
9443         * minibuf.c (Fall_completions): Undo the previous change
9444         which removed checking elements start with space.
9445
9446 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9447
9448         * mule-canna.c: Didier suppression.
9449
9450 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9451
9452         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9453         (warning suppression).  Add English comment translations.
9454
9455 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9456
9457         * unexelfsgi.c (unexec): Better test for mmap failure.
9458
9459 2000-12-05  Martin Buchholz <martin@xemacs.org>
9460
9461         * XEmacs 21.2.38 is released.
9462
9463 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9464
9465         * redisplay.c (bar-cursor): Make a user variable.
9466
9467         * symsinit.h: Add init_postgresql_from_environment.
9468
9469 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9470
9471         * regex.c: Convert to clean C.
9472
9473 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9474
9475         * realpath.c:
9476         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9477         initialization.
9478         (sys_readlink): renamed to system_readlink to avoid conflict with
9479         the other sys_readlink.
9480
9481 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9482
9483         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9484
9485 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9486
9487         * postgresql.c (init_postgresql_from_environment): new function.
9488         (vars_of_postgresql): Move code initializing Lisp variables out and
9489         into init_postgresql_from_environment.
9490         emacs.c (main_1): Call init_postgresql_from_environment if and only
9491         if running a dumped XEmacs.
9492
9493 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9494
9495         * buffer.c: Make find-file-compare-truenames default to true on
9496         windows.
9497
9498         * realpath.c (win32_abs_start):
9499         (cygwin_readlink):
9500         (win32_readlink): New functions.
9501         (xrealpath): Return really real filenames on windows.
9502
9503         * fileio.c (Ffile_truename): Make file-truename work on windows.
9504
9505 2000-11-29  Didier Verna  <didier@xemacs.org>
9506
9507         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9508         * faces.c (update_face_cachel_data): use it.
9509         * faces.c (add_face_cachel): use it. Complete background pixmap
9510         frobbing in face cache if `update_face_cachel_data' has not done so.
9511
9512 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9513
9514         * search.c (string_match_1): Don't set last_thing_searched
9515         when search failed.
9516
9517 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9518
9519         * buffer.c: Include casetab.h
9520         (common_init_complex_vars_of_buffer): Use new case-table object.
9521         * buffer.h: Include casetab.h
9522         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9523         (DOWNCASE_TABLE_OF): Ditto.
9524         * bufslots.h: Remove char-tables and add case-table.
9525         * casetab.c: Include casetab.h
9526         (CASE_TABLE_P): Removed.
9527         (mark_case_table): New function.
9528         (allocate_case_table): New function.
9529         (Fcase_table_p): Use new case-table.
9530         (case_table_char): New function.
9531         (Fget_case_table): Ditto.
9532         (Fput_case_table): Ditto.
9533         (Fput_case_table_pair): Ditto.
9534         (Fcopy_case_table): Ditto.
9535         (Fcurrent_case_table): Return case-table.
9536         (Fstandard_case_table): Return case-table.
9537         (Fset_case_table): Fix doc-string.
9538         (set_case_table): Use case-table
9539         (syms_of_casetab): DEFSUBR new functions.
9540         (complex_vars_of_casetab): Set up standard case-table.
9541         * casetab.h: New file.
9542         * editfns.c: Include casetab.h
9543         (Fcompare_buffer_substrings): Use case-table.
9544         * inline.c: Include casetab.h
9545         * lisp.h: Remove bogus extern.
9546         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9547         * search.c: Include casetab.h
9548         (TRANSLATE_ASCII): Removed.
9549         (TRANSLATE): Unconditionally translate character.
9550         (looking_at_1): Use case-table.
9551         (string_match_1): Ditto.
9552         (fast_string_match): Ditto.
9553         (search_command): Ditto.
9554         (search_buffer): Separate boyer_moore.  Check whether
9555         boyer_moore is possible.
9556         (simple_search): New function.
9557         (boyer_moore): Separated from search_buffer. Translate char.
9558
9559 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9560
9561         * regex.c (RE_TR_ASCII): Removed.
9562         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9563         (PATFETCH): Call PATFETCH_RAW.
9564         (PATFETCH_RAW): Fetch Emchar.
9565         (PATUNFETCH): Decrement charptr.
9566         (GET_BUFFER_SPACE): Rename b to buf_end.
9567         (BUF_PUSH): Ditto.
9568         (BUF_PUSH_2): Ditto.
9569         (BUF_PUSH_3): Ditto.
9570         (EXTEND_BUFFER): Ditto.
9571         (SET_LIST_BIT): Ditto.
9572         (regex_compile): Ditto.  Translate non ASCII char.
9573         (compile_range): Ditto.
9574         (re_search_2): Ditto.
9575         (re_match_2_internal): Compare Emchar.
9576         (bcmp_translate): Ditto.
9577
9578 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
9579
9580         * lisp.h (basic char/int typedefs):  comment improvement.
9581
9582 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
9583
9584         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
9585         unstomp inhibit_site_lisp.  Improve comments.
9586
9587 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
9588
9589         * mule-charset.c (Fcharset_property):  improve type checking, comments.
9590
9591 2000-11-28  Andy Piper  <andy@xemacs.org>
9592
9593         * redisplay-output.c (redisplay_output_subwindow): make sure we do
9594         clipped display for windows in the gutter also.
9595         (redisplay_display_boxes_in_window_p): change semantics of return
9596         codes to be more intuitive.
9597
9598         * gutter.h: declare display_boxes_in_gutter_p.
9599
9600         * gutter.c (display_boxes_in_gutter_p): new function for
9601         redisplay.
9602
9603 2000-11-22  Andy Piper  <andy@xemacs.org>
9604
9605         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
9606         autodetect domain.
9607
9608 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
9609
9610         * callproc.c (Fold_call_process_internal):
9611         * gpm.c (Freceive_gpm_event):
9612         (tty_get_foreign_selection): Might be just warning supression.
9613         * fileio.c (Fwrite_region_internal):
9614         (Fset_visited_file_modtime):
9615         * keymap.c (event_matches_key_specifier_p):
9616         Initialize GCPROed variable.
9617
9618         * menubar-x.c (command_builder_find_menu_accelerator):
9619         Initialize before use.
9620
9621 2000-11-23  Andy Piper  <andy@xemacs.org>
9622
9623         * unexcw.c (unexec): make the resulting executable executable.
9624
9625 2000-11-21  Martin Buchholz  <martin@xemacs.org>
9626
9627         * doc.c (get_doc_string):
9628         Use size_t, not int, for result of XSTRING_LENGTH.
9629
9630         * cmds.c (Fdelete_char):
9631         * cmds.c (Fpoint_at_eol):
9632         * cmds.c (Fself_insert_command):
9633         Use EMACS_INT, not int, for result of XINT.
9634         Someday, someone will want to insert more than 2**31 identical characters.
9635
9636         * cmds.c (Fdelete_char):
9637         * cmds.c (Fdelete_backward_char):
9638         * syntax.c (Fforward_word):
9639         * syntax.c (Fforward_comment):
9640         Make COUNT argument optional, for consistency with forward-char et al.
9641
9642 2000-11-22  Martin Buchholz  <martin@xemacs.org>
9643
9644         * lisp.h:
9645         * print.c (long_to_string):
9646         Return a useful value: the pointer at end of data written.
9647
9648         * doprnt.c:
9649         Use `static const char * const' for constant strings.
9650         (union printf_arg): Delete `i', `ui' members.
9651         (get_doprnt_args):
9652         (emacs_doprnt_1):
9653         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
9654         Do all printf-ing via the `l' specifier.
9655         Use EMACS_INT instead of int.
9656         Optimize.
9657
9658 2000-11-20  Didier Verna  <didier@xemacs.org>
9659
9660         * faces.c (update_face_cachel_data): don't frob the background
9661         pixmap when the window is being created. The face is needed but
9662         does not exist yet.
9663
9664 2000-11-20  Andy Piper  <andy@xemacs.org>
9665
9666         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
9667         messing with a debug environment.
9668
9669 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9670
9671         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
9672
9673 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9674
9675         * casetab.c (Fcase_table_p): Fix compile error and crash.
9676
9677 2000-11-18  Philip Aston  <philipa@mail.com>
9678
9679         * s/cygwin32.h: Cygwin has SVR4-like pty support.
9680
9681 2000-11-18  Martin Buchholz  <martin@xemacs.org>
9682
9683         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
9684         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
9685
9686 2000-11-17  Martin Buchholz  <martin@xemacs.org>
9687
9688         * config.h.in: Define HAVE_ELF_H if elf.h exists.
9689         * unexelf.c: Use HAVE_ELF_H.
9690         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
9691         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
9692         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
9693         Greg Harrington <greg_harrington@hotmail.com> provided a machine
9694         for testing.
9695         So this is an unexelfsgi.c from a different line of development.
9696
9697 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9698
9699         * regex.c (RE_TR_ASCII): New function.
9700         (RE_TRANSLATE): Call it.
9701
9702 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9703
9704         * buffer.h (TRT_TABLE_OF): Remove assert.
9705         (IN_TRT_TABLE_DOMAIN): Removed.
9706
9707 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9708
9709         * free-hook.c (log_gcpro):
9710         (show_gcprohist): Add support for GCPRO5.
9711
9712 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
9713
9714         * emacs.c (main_1): Improve -sd error message when --pdump=no.
9715
9716 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
9717
9718         * symeval.h: Declare flush_all_buffer_local_cache.
9719
9720         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
9721         (flush_buffer_local_cache): Added.
9722         (flush_all_buffer_local_cache): Added.
9723
9724         * lrecord.h: Remove unused XD_LO_RESET_NIL.
9725
9726         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
9727         (pdump_dump_data): Ditto.
9728         (pdump_reloc_one): Ditto.
9729         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
9730         before dumping.
9731
9732
9733 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9734
9735         * buffer.c: Remove if 0'ed entry.
9736         * buffer.h: Rewrite TRT to use char-table.
9737         * bufslots.h: Remove mirror tables.
9738         * casetab.c: Remove mirror tables.
9739         (CASE_TABLE_P): New macro.
9740         (Fcase_table_p): Element of a case table is string or char-table.
9741         (make_mirror_trt_table): Removed.
9742         (set_case_table): Setup char-table from strings for backward
9743         compatibility.
9744         * dired.c (Fdirectory_files):
9745         * dired-msw.c: (mswindows_get_files):
9746         * lisp.h: Change prototype of re_pattern_buffer.
9747         * regex.c: (RE_TRANSLATE): New macro.
9748         (TRANSLATE_P): Ditto.
9749         Change translate to type RE_TRANSLATE_TYPE.
9750         * regex.h: Define RE_TRANSLATE_TYPE
9751         * search.c (TRANSLATE): New macro.
9752         (TRANSLATE_ASCII): New macro.
9753         Translate table is changed to Lisp_Object.
9754         (signal_failure): Inhibit return.
9755
9756 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9757
9758         * device-msw.c:
9759         * eldap.c:
9760         * event-Xt.c:
9761         * event-stream.c:
9762         * print.c:
9763         Do UNGCPRO before return.
9764
9765 2000-11-14  Martin Buchholz <martin@xemacs.org>
9766
9767         * XEmacs 21.2.37 is released.
9768
9769 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9770
9771         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
9772         Add comments about discarded return value.
9773
9774 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9775
9776         * callint.c:
9777         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
9778
9779 2000-10-27  Andy Piper  <andy@xemacs.org>
9780
9781         * gutter.c (Fset_default_gutter_position): default left and right
9782         gutters to visible.
9783         (calculate_gutter_size): calculate resonable heuristic for left
9784         and right gutter sizes.
9785         (specifier_vars_of_gutter): change left and right gutter sizes to
9786         autodetect.
9787         (calculate_gutter_size_from_display_lines): new function.
9788         (output_gutter): check for resizing on left and right gutters.
9789         (clear_gutter): don't special case top and left gutters.
9790         (specifier_vars_of_gutter): use new signature for
9791         set_specifier_caching.
9792
9793         * glyphs-x.c (x_redisplay_widget): spelling fix.
9794         * glyphs.c (specifier_vars_of_glyphs):
9795         * menubar.c (specifier_vars_of_menubar):
9796         * redisplay.c (specifier_vars_of_redisplay):
9797         * toolbar.c (specifier_vars_of_toolbar):
9798         * window.c (specifier_vars_of_window):
9799         * scrollbar.c (specifier_vars_of_scrollbar):
9800         (complex_vars_of_scrollbar): use new signature for
9801         set_specifier_caching.
9802
9803         * specifier.c (set_specifier_caching): include recompute flag.
9804         (recompute_one_cached_specifier_in_window): always recompute if
9805         flag set.
9806         (recompute_one_cached_specifier_in_frame): ditto.
9807
9808         * specifier.h (struct specifier_caching): add recompute flag.
9809
9810 2000-10-24  Andy Piper  <andy@xemacs.org>
9811
9812         * unexcw.c (copy_executable_and_dump_data_section): add new
9813         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
9814         5.0 happy.
9815
9816 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9817
9818         * console-x.h (x_device): New member modifier_release_time.
9819         * event-Xt.c (x_handle_sticky_modifiers):
9820         Bound interval modifier keys are sticky.
9821         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
9822         * events.h: extern it.
9823
9824 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9825
9826         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
9827
9828 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9829
9830         * event-stream.c (execute_command_event): Preserve current_events
9831         and the like when event is misc-user-event.
9832         Inhibit quit during the call to maybe_echo_keys.
9833
9834 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9835
9836         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
9837         symlink when buffer is killed.
9838         (inhibit_clash_detection): New variable.
9839
9840 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9841
9842         * console.c (Fset_input_method): Trigger redisplay on tty.
9843
9844 2000-11-07  Martin Buchholz  <martin@xemacs.org>
9845
9846         * process.c (Fprocess_status): Revert to previous behavior:
9847         (process-status "nosuchprocess") ==> nil
9848
9849 2000-11-06  Martin Buchholz  <martin@xemacs.org>
9850
9851         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
9852         Work around another GCC 2.95.2 optimizer bug.
9853
9854 2000-11-02  Martin Buchholz  <martin@xemacs.org>
9855
9856         * process.c (Fget_process): Use LIST_LOOP_2.
9857         (kill_buffer_processes): Use LIST_LOOP_2.
9858
9859         * minibuf.c (Fall_completions):
9860         Delete old non-functional code for FSF fourth argument.
9861
9862         * frame.c (frame_matches_frame_spec):
9863         Renamed from `frame_matches_frametype'.  Update all callers.
9864         (device_matches_device_spec):
9865         Renamed from 'device_matches_console_spec'.  Update all callers.
9866
9867         * doc.c (Fsubstitute_command_keys):
9868         Remove buffer overflow crash.  Small code cleanups.
9869
9870         * casetab.c (check_case_table): Simpler code.
9871
9872         * window.c (Freplace_buffer_in_windows):
9873         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
9874         (and similar implementation) as Fdelete_windows_on.
9875         Update all callers.
9876
9877         * alloc.c (Fmake_list):
9878         * alloc.c (make_vector):
9879         * alloc.c (Fmake_vector):
9880         * alloc.c (make_bit_vector):
9881         * alloc.c (Fmake_bit_vector):
9882         * alloc.c (Fbit_vector):
9883         * alloc.c (Fmake_string):
9884         * alloc.c (Fpurecopy):
9885         * alloc.c (Fmemory_limit):
9886         * buffer.c:
9887         * buffer.c (Fget_buffer):
9888         * buffer.c (Fkill_buffer):
9889         * buffer.c (complex_vars_of_buffer):
9890         * bytecode.c (Fcompiled_function_stack_depth):
9891         * callint.c (Fprefix_numeric_value):
9892         * event-stream.c:
9893         * event-stream.c (Fread_key_sequence):
9894         * casetab.c:
9895         * casetab.c (Fcase_table_p):
9896         * casetab.c (check_case_table):
9897         * casetab.c (Fset_case_table):
9898         * casetab.c (Fset_standard_case_table):
9899         * chartab.c:
9900         * chartab.c (Fchar_table_type):
9901         * chartab.c (Freset_char_table):
9902         * chartab.c (Fget_char_table):
9903         * chartab.c (Fget_range_char_table):
9904         * chartab.c (Fput_char_table):
9905         * chartab.c (Fmap_char_table):
9906         * chartab.c (Fcategory_table_p):
9907         * chartab.c (Fcheck_category_at):
9908         * chartab.c (Fchar_in_category_p):
9909         * chartab.c (Fcategory_table):
9910         * chartab.c (Fcopy_category_table):
9911         * chartab.c (Fset_category_table):
9912         * chartab.c (Fcategory_designator_p):
9913         * chartab.c (Fcategory_table_value_p):
9914         * cmds.c (Fdelete_char):
9915         * cmds.c (Fdelete_backward_char):
9916         * cmds.c (Fself_insert_command):
9917         * cmds.c (Fself_insert_internal):
9918         * console.c (Fvalid_console_type_p):
9919         * console.c (Fcdfw_console):
9920         * console.c (Fconsole_type):
9921         * console.c (Fconsole_name):
9922         * console.c (Fconsole_device_list):
9923         * console.c (Fconsole_on_window_system_p):
9924         * data.c:
9925         * data.c (Feq):
9926         * data.c (Fold_eq):
9927         * data.c (Fsubr_interactive):
9928         * data.c (Fchar_to_int):
9929         * data.c (Fint_to_char):
9930         * data.c (Fsetcar):
9931         * data.c (Fsetcdr):
9932         * data.c (Fnumber_to_string):
9933         * data.c (Fstring_to_number):
9934         * data.c (Frem):
9935         * database.c (mark_database):
9936         * database.c (finalize_database):
9937         * database.c (Fdatabase_live_p):
9938         * database.c (Fdatabasep):
9939         * device-x.c (Fx_get_resource):
9940         * device.c (Fdfw_device):
9941         * dired.c:
9942         * dired.c (Ffile_name_completion):
9943         * dired.c (Ffile_name_all_completions):
9944         * dired.c (Fuser_name_completion):
9945         * dired.c (Fuser_name_completion_1):
9946         * dired.c (Fuser_name_all_completions):
9947         * doc.c (Fdocumentation):
9948         * doc.c (Fdocumentation_property):
9949         * doc.c (Fsubstitute_command_keys):
9950         * editfns.c:
9951         * editfns.c (Fchar_to_string):
9952         * editfns.c (Fstring_to_char):
9953         * editfns.c (Ftemp_directory):
9954         * editfns.c (Finsert_char):
9955         * editfns.c (Fbuffer_substring_no_properties):
9956         * editfns.c (Fnarrow_to_region):
9957         * editfns.c (Fchar_equal):
9958         * editfns.c (Fchar_Equal):
9959         * editfns.c (Ftranspose_regions):
9960         * emacs.c (Fdump_emacs):
9961         * eval.c (Fthrow):
9962         * eval.c (Fcommand_execute):
9963         * eval.c (Fautoload):
9964         * eval.c (Fbacktrace):
9965         * eval.c (Fbacktrace_frame):
9966         * events.c:
9967         * events.c (Fcopy_event):
9968         * events.c (Fcharacter_to_event):
9969         * events.c (Fevent_button):
9970         * events.c (Fevent_process):
9971         * extents.c:
9972         * extents.c (Fnext_extent_change):
9973         * extents.c (Fextent_property):
9974         * faces.c (Ffacep):
9975         * faces.c (Fmake_face):
9976         * file-coding.c:
9977         * file-coding.c (Fencode_shift_jis_char):
9978         * file-coding.c (Fencode_big5_char):
9979         * fileio.c (Ffile_name_directory):
9980         * fileio.c (Ffile_name_nondirectory):
9981         * fileio.c (Ffile_name_as_directory):
9982         * fileio.c (Fdirectory_file_name):
9983         * fileio.c (Ffile_truename):
9984         * fileio.c (Fsubstitute_in_file_name):
9985         * fileio.c (Ffile_modes):
9986         * fileio.c (Fset_file_modes):
9987         * fileio.c (Fset_default_file_modes):
9988         * fileio.c (Fverify_visited_file_modtime):
9989         * floatfns.c (Facos):
9990         * floatfns.c (Fasin):
9991         * floatfns.c (Fatan):
9992         * floatfns.c (Fcos):
9993         * floatfns.c (Fsin):
9994         * floatfns.c (Ftan):
9995         * floatfns.c (Fbessel_j0):
9996         * floatfns.c (Fbessel_j1):
9997         * floatfns.c (Fbessel_jn):
9998         * floatfns.c (Fbessel_y0):
9999         * floatfns.c (Fbessel_y1):
10000         * floatfns.c (Fbessel_yn):
10001         * floatfns.c (Ferf):
10002         * floatfns.c (Ferfc):
10003         * floatfns.c (Flog_gamma):
10004         * floatfns.c (Fexp):
10005         * floatfns.c (Fexpt):
10006         * floatfns.c (Flog):
10007         * floatfns.c (Flog10):
10008         * floatfns.c (Fsqrt):
10009         * floatfns.c (Fcube_root):
10010         * floatfns.c (Facosh):
10011         * floatfns.c (Fasinh):
10012         * floatfns.c (Fatanh):
10013         * floatfns.c (Fcosh):
10014         * floatfns.c (Fsinh):
10015         * floatfns.c (Ftanh):
10016         * floatfns.c (Fabs):
10017         * floatfns.c (Ffloat):
10018         * floatfns.c (Flogb):
10019         * floatfns.c (Fceiling):
10020         * floatfns.c (Ffloor):
10021         * floatfns.c (Fround):
10022         * floatfns.c (Ftruncate):
10023         * floatfns.c (Ffceiling):
10024         * floatfns.c (Fffloor):
10025         * floatfns.c (Ffround):
10026         * floatfns.c (Fftruncate):
10027         * fns.c (Fstring_equal):
10028         * fns.c (Fstring_lessp):
10029         * fns.c (concat2):
10030         * fns.c (concat3):
10031         * fns.c (vconcat2):
10032         * fns.c (vconcat3):
10033         * fns.c (Fsubstring):
10034         * fns.c (Fassoc):
10035         * fns.c (Fold_assoc):
10036         * fns.c (assoc_no_quit):
10037         * fns.c (Fassq):
10038         * fns.c (Fold_assq):
10039         * fns.c (assq_no_quit):
10040         * fns.c (Frassoc):
10041         * fns.c (Fold_rassoc):
10042         * fns.c (Frassq):
10043         * fns.c (Fold_rassq):
10044         * fns.c (rassq_no_quit):
10045         * fns.c (Fremassoc):
10046         * fns.c (remassoc_no_quit):
10047         * fns.c (Fremassq):
10048         * fns.c (remassq_no_quit):
10049         * fns.c (Fremrassoc):
10050         * fns.c (Fremrassq):
10051         * fns.c (remrassq_no_quit):
10052         * fns.c (Fsort):
10053         * fns.c (Fplist_get):
10054         * fns.c (Fplist_put):
10055         * fns.c (Fplist_remprop):
10056         * fns.c (Fplist_member):
10057         * fns.c (Flax_plist_get):
10058         * fns.c (Flax_plist_put):
10059         * fns.c (Flax_plist_remprop):
10060         * fns.c (Flax_plist_member):
10061         * fns.c (Fequal):
10062         * fns.c (Fold_equal):
10063         * fns.c (Frequire):
10064         * fns.c (Fbase64_encode_region):
10065         * fns.c (Fbase64_encode_string):
10066         * fns.c (Fbase64_decode_region):
10067         * frame.c:
10068         * frame.c (frame_matches_frame_spec):
10069         * frame.c (device_matches_device_spec):
10070         * frame.c (next_frame):
10071         * frame.c (previous_frame):
10072         * frame.c (Fnext_frame):
10073         * frame.c (Fprevious_frame):
10074         * frame.c (Fframe_property):
10075         * frame.c (Fset_frame_height):
10076         * frame.c (Fset_frame_size):
10077         * frame.h:
10078         * glyphs.c:
10079         * glyphs.c (if):
10080         * glyphs.c (decode_error_behavior_flag):
10081         * glyphs.c (Fmake_image_instance):
10082         * indent.c (Findent_to):
10083         * intl.c (Fignore_defer_gettext):
10084         * keymap.c (Fkeymapp):
10085         * keymap.c (Flookup_key):
10086         * lread.c:
10087         * lread.c (Fload_internal):
10088         * lread.c (Feval_buffer):
10089         * lread.c (Feval_region):
10090         * macros.c (Fexecute_kbd_macro):
10091         * marker.c (set_marker_internal):
10092         * marker.c (Fset_marker):
10093         * marker.c (set_marker_restricted):
10094         * marker.c (Fcopy_marker):
10095         * marker.c (noseeum_copy_marker):
10096         * menubar.c:
10097         * menubar.c (Fpopup_menu):
10098         * minibuf.c:
10099         * mule-charset.c (Fcharset_name):
10100         * mule-charset.c (Fchar_charset):
10101         * mule-charset.c (Fchar_octet):
10102         * mule-charset.c (Fsplit_char):
10103         * mule-wnnfns.c (Fwnn_open):
10104         * mule-wnnfns.c (Fwnn_dict_comment):
10105         * mule-wnnfns.c (Fwnn_quit_henkan):
10106         * mule-wnnfns.c (Fwnn_word_toroku):
10107         * mule-wnnfns.c (Fwnn_word_sakujo):
10108         * mule-wnnfns.c (Fwnn_word_use):
10109         * mule-wnnfns.c (Fwnn_hindo_set):
10110         * objects.c:
10111         * objects.c (Fmake_color_instance):
10112         * objects.c (Fmake_font_instance):
10113         * print.c (Fwrite_char):
10114         * process.c:
10115         * process.c (mark_process):
10116         * process.c (print_process):
10117         * process.c (get_process_from_usid):
10118         * process.c (Fprocessp):
10119         * process.c (Fprocess_live_p):
10120         * process.c (Fget_process):
10121         * process.c (Fget_buffer_process):
10122         * process.c (get_process):
10123         * process.c (Fprocess_id):
10124         * process.c (Fprocess_name):
10125         * process.c (Fprocess_command):
10126         * process.c (init_process_io_handles):
10127         * process.c (start_process_unwind):
10128         * process.c (Fstart_process_internal):
10129         * process.c (Fopen_multicast_group_internal):
10130         * process.c (Fset_process_window_size):
10131         * process.c (read_process_output):
10132         * process.c (send_process):
10133         * process.c (Fprocess_tty_name):
10134         * process.c (Fset_process_buffer):
10135         * process.c (Fprocess_buffer):
10136         * process.c (Fprocess_mark):
10137         * process.c (set_process_filter):
10138         * process.c (Fset_process_filter):
10139         * process.c (Fprocess_filter):
10140         * process.c (Fprocess_send_region):
10141         * process.c (Fprocess_send_string):
10142         * process.c (exec_sentinel):
10143         * process.c (Fset_process_sentinel):
10144         * process.c (Fprocess_sentinel):
10145         * process.c (status_notify):
10146         * process.c (Fprocess_status):
10147         * process.c (Fprocess_exit_status):
10148         * process.c (process_send_signal):
10149         * process.c (Fprocess_send_eof):
10150         * process.c (deactivate_process):
10151         * process.c (remove_process):
10152         * process.c (Fdelete_process):
10153         * process.c (kill_buffer_processes):
10154         * process.c (Fprocess_kill_without_query):
10155         * process.c (Fprocess_kill_without_query_p):
10156         * rangetab.c:
10157         * rangetab.c (Fget_range_table):
10158         * rangetab.c (Fput_range_table):
10159         * rangetab.c (Fremove_range_table):
10160         * rangetab.c (Fclear_range_table):
10161         * search.c:
10162         * search.c (Fskip_chars_forward):
10163         * search.c (Fskip_chars_backward):
10164         * search.c (Fskip_syntax_forward):
10165         * search.c (Fskip_syntax_backward):
10166         * search.c (search_command):
10167         * search.c (Freplace_match):
10168         * search.c (Fregexp_quote):
10169         * select.c (Fown_selection_internal):
10170         * select.c (Fselection_owner_p):
10171         * select.c (Fselection_exists_p):
10172         * select.c (Fget_selection_internal):
10173         * specifier.c:
10174         * symbols.c:
10175         * symbols.c (Fintern):
10176         * symbols.c (Fintern_soft):
10177         * symbols.c (Funintern):
10178         * symbols.c (Fapropos_internal):
10179         * symbols.c (Fset_default):
10180         * syntax.c:
10181         * syntax.c (Fsyntax_table_p):
10182         * syntax.c (Fcopy_syntax_table):
10183         * syntax.c (Fset_syntax_table):
10184         * syntax.c (Fchar_syntax):
10185         * syntax.c (syntax_match):
10186         * syntax.c (Fmatching_paren):
10187         * syntax.c (Fforward_word):
10188         * syntax.c (scan_lists):
10189         * syntax.c (Fscan_lists):
10190         * syntax.c (Fscan_sexps):
10191         * syntax.c (Fparse_partial_sexp):
10192         * toolbar.c (Fcheck_toolbar_button_syntax):
10193         * tooltalk.doc:
10194         * window.c:
10195         * window.c (Fwindowp):
10196         * window.c (Fwindow_live_p):
10197         * window.c (Fwindow_point):
10198         * window.c (Fdelete_window):
10199         * window.c (Fnext_window):
10200         * window.c (Fprevious_window):
10201         * window.c (Fother_window):
10202         * window.c (window_loop):
10203         * window.c (Fget_lru_window):
10204         * window.c (Fsplit_window):
10205         * window.c (Fenlarge_window):
10206         * window.c (Fenlarge_window_pixels):
10207         * window.c (Fshrink_window):
10208         * window.c (Fshrink_window_pixels):
10209         * window.c (change_window_height):
10210         * window.c (Fwindow_configuration_p):
10211         * window.c (Fcurrent_window_configuration):
10212         * window.h:
10213         * casefiddle.c (casify_object):
10214         * casefiddle.c (Fupcase):
10215         * casefiddle.c (Fdowncase):
10216         * casefiddle.c (Fcapitalize):
10217         * casefiddle.c (Fupcase_initials):
10218         * casefiddle.c (casify_region_internal):
10219         * casefiddle.c (casify_region):
10220         * casefiddle.c (Fupcase_region):
10221         * casefiddle.c (Fdowncase_region):
10222         * casefiddle.c (Fcapitalize_region):
10223         * casefiddle.c (Fupcase_initials_region):
10224         * casefiddle.c (Fupcase_word):
10225         * casefiddle.c (Fdowncase_word):
10226         * casefiddle.c (Fcapitalize_word):
10227         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10228         Replace 0 with '\0' when working with bytes.
10229         Replace initial "(" with "\(" in docstrings.
10230
10231 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10232
10233         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10234
10235         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10236
10237 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10238
10239         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10240
10241 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10242
10243         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10244         correctly.
10245
10246 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10247
10248         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10249         (inhibit_auto_save_session): New variable.
10250         (vars_of_fileio): Declare and initialize them.
10251         * fileio.c (Fdo_auto_save): Don't create session file if
10252         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10253
10254 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10255
10256         * sgiplay.c (play_internal): C++ compilability.
10257         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10258         * callproc.c (Fold_call_process_internal):
10259         Remove unused vars `env', `first'.
10260         * scrollbar.c (update_scrollbar_instance):
10261         #### unused var `current_window'.
10262         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10263         etc. within #ifdef NOT_YET.
10264         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10265         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10266         * specifier.c (specifier_instance):
10267         #### unused var `tag'.
10268         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10269
10270 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10271
10272         * fns.c (Fbutlast):
10273         * fns.c (list_sort):
10274         * fns.c (Ffillarray):
10275         * fns.c (bytecode_nconc2):
10276         * fns.c (Fnconc):
10277         * fns.c (mapcar1):
10278         * fns.c (Fmapconcat):
10279         Be pedantically 64-bit correct.  For the time when someone will
10280         want to have a list with length > 2**32.
10281
10282         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10283         Work around MIPSpro compiler bug.
10284
10285         * process-unix.c (unix_kill_child_process): Add snarky comment.
10286         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10287
10288         * config.h.in: Oops, _getpt ==> _getpty
10289
10290 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10291
10292         * config.h.in:
10293         * regex.c:
10294         Use void*, not char*, as return type of alloca().
10295
10296         * alloc.c (free_marker): Side effect inside assert expression!
10297
10298 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10299
10300         * mule-charset.c (Fset_charset_ccl_program): To check
10301         if the given ccl program is valid, use setup_ccl_program()
10302         instead of CHECK_VECTOR().
10303         (Fmake_charset): Likewise.
10304
10305 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10306
10307         * faces.c (get_extent_fragment_face_cache_index):
10308         Fix cachel.merged_faces memory leak.
10309
10310 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10311
10312         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10313         Reset MSB of octets obtained by DECODE_SJIS
10314         because of the incompatibility with Emacs.
10315         (ccl_driver)<CCL_ENCODE_SJIS>:
10316         Set MSB of octets before passing them to
10317         ENCODE_SJIS because of the incompatibility
10318         with Emacs.
10319
10320 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10321
10322         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10323         (DECLARE_LRECORD): Undo the last change.
10324         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10325
10326 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10327
10328         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10329         the implementation to lrecord_implementations_table.
10330
10331 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10332
10333         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10334         initial value of `lrecord_type_##c_name' and
10335         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10336         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10337         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10338         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10339         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10340
10341 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10342
10343         * miscplay.c (sndcnv8S_2mono):
10344         (sndcnv2monounsigned):
10345         (sndcnvULaw_2linear):
10346         (sndcnv16swap):
10347         Remove implementation-defined behavior.
10348
10349 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10350
10351         * input-method-xlib.c: Warning suppression.
10352
10353 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10354
10355         * mule-ccl.c: Sync up with Emacs 21.0.90.
10356         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10357         Do nothing.
10358         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10359         Likewise.
10360         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10361         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10362         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10363         leading char belongs to official 2-dimensional charset.
10364         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10365         write the given character as is.  Otherwise,
10366         if it is a multibyte char, convert it by
10367         non_ascii_set_charptr_emchar, then write it.
10368         (CCL_WRITE_STRING): Likewise.
10369         (ccl_get_compiled_code): New function.
10370         (setup_ccl_program): When ccl_prog is invalid,
10371         return -1.
10372         (Fregister_code_conversion_map): New function.
10373         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10374
10375         * mule-ccl.h: Sync up with Emacs 21.0.90.
10376         (Fregister_ccl_program): export it.
10377
10378         * redisplay-msw.c (separate_textual_runs):
10379         If ccl program is not valid, don't do ccl conversion.
10380
10381         * redisplay-x.c (separate_textual_runs): Ditto.
10382
10383         * file-coding.c (Fmake_coding_system):
10384         When type is ccl and value is vector, register it
10385         with a proper symbol.  And checks whether the
10386         given ccl program is valid.
10387         (mule_decode): When calling ccl_driver, if src indicates
10388         NULL pointer, set an empty string instead.
10389         (mule_encode): Likewise.
10390
10391 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10392
10393         The following large batch of changes gets us back to a state of
10394         C++ compilability.  Extbyte is now a char, which means that
10395         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10396
10397         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10398
10399         * sound.c (Fplay_sound): Type correctness.
10400
10401         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10402         (x_get_window_property): Type correctness.
10403         (receive_incremental_selection): unsigned char ==> Extbyte
10404         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10405         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10406         (Fx_store_cutbuffer_internal): Type correctness.
10407
10408         * process-unix.c (try_to_initialize_subtty): Type correctness.
10409
10410         * objects-x.c (x_print_color_instance): Type correctness.
10411         (x_print_font_instance): Type correctness.
10412         (x_list_fonts): SExtbyte ==> Extbyte.
10413         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10414         (x_find_charset_font): SExtbyte ==> Extbyte.
10415         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10416         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10417         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10418         Use bufbyte_strcmp.
10419
10420         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10421         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10422         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10423         (BYTE_C0_P): Use bit ops for char-signedness safety.
10424         (BYTE_C1_P): Use bit ops for char-signedness safety.
10425         (CHARSET_BY_LEADING_BYTE):
10426         (CHARSET_BY_ATTRIBUTES):
10427         Always use inline function.
10428         Use type_checking_assert.
10429         Hide chlook.
10430
10431         * mule-charset.c (non_ascii_charptr_copy_char):
10432         Modify to work with both ASCII and non-ASCII characters.
10433         Improve docs and variable names.
10434         Replace over-clever fall-through switch with a simple loop.
10435         (Lstream_get_emchar_1):
10436         Replace over-clever fall-through switch with a simple loop.
10437
10438         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10439         Warning suppression.
10440
10441         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10442         the return value of Lstream_getc, which could be EOF as well.
10443
10444         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10445
10446         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10447         APIs can be used on Extbytes without casts.  Risky!
10448         (SExtbyte): Remove.
10449         (UExtbyte): Remove.
10450
10451         * input-method-xlib.c (XIM_init_device):
10452         Use Xlib.h instead of IntrinsicP.h.
10453         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10454         which will break in X11R7.
10455         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10456         to call XRegisterIMInstantiateCallback with correct types.
10457
10458         * gui-x.c (button_item_to_widget_value): Type correctness.
10459
10460         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10461
10462         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10463         (xbm_instantiate_1): Type correctness.
10464         (BUILD_GLYPH_INST):  Type correctness.
10465
10466         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10467
10468         * file-coding.c:
10469         (decode_coding_sjis):
10470         (decode_coding_big5):
10471         (decode_coding_ucs4):
10472         (decode_coding_utf8):
10473         (decode_coding_iso2022):
10474         (decode_coding_no_conversion):
10475         Make all decoding functions take an Extbyte * arg.
10476         (encode_coding_sjis):
10477         (encode_coding_big5):
10478         (encode_coding_ucs4):
10479         (encode_coding_utf8):
10480         (encode_coding_iso2022):
10481         (encode_coding_no_conversion):
10482         Make all encoding functions take a Bufbyte * arg.
10483         Use size_t instead of unsigned int for memory sizes.
10484         Only cast to unsigned char whenever dereferencing Extbyte *.
10485
10486         * doc.c (unparesseuxify_doc_string): Type correctness.
10487
10488         * console-x.c (split_up_display_spec):
10489         Rewrite without using details of internal string representation.
10490         (x_semi_canonicalize_device_connection): Type correctness.
10491
10492         * config.h.in:
10493         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10494         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10495         (HAVE_XFREE386): Removed.
10496
10497         * buffer.h (DEC_CHARPTR): `const' correctness.
10498         (bufbyte_strcmp): New.
10499         (bufbyte_memcmp): New.
10500
10501         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10502
10503         * buffer.h (XCHAR_OR_CHAR_INT):
10504         Always use inline function.
10505         Remove redundant type checking assert() - XINT will abort quite nicely.
10506
10507 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10508
10509         * search.c (Freplace_match): Set newtext to an empty string.
10510
10511 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10512
10513         * s/decosf1-3.h: Remove #include of stropts.h
10514         * s/ptx.h: Remove #include of stropts.h
10515         * s/usg5-4.h: Remove #include of stropts.h
10516         * sysproc.h:
10517         * config.h.in:
10518         Use stropts.h, not sys/stropts.h.
10519         Use strtio.h, not sys/strtio.h.
10520
10521 2000-10-04  Martin Buchholz <martin@xemacs.org>
10522
10523         * XEmacs 21.2.36 is released.
10524
10525 2000-09-21  Andy Piper  <andy@xemacs.org>
10526
10527         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10528         changes still involve copying the widget tree.
10529         (update_widget_face): make sure a change is register in the widget
10530         tree. Call update_tab_widget_face appropriately.
10531         (update_tab_widget_face): ditto.
10532         (x_tab_control_redisplay): make sure non-structural changes still
10533         involve copying the widget tree.
10534
10535 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10536
10537         * lread.c (locate_file): Check the path element is non-nil.
10538
10539 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10540
10541         * lisp.h: Warning suppression for SCO compilers.
10542
10543         * redisplay-tty.c (reset_tty_modes): Fix crash.
10544         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10545
10546 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10547
10548         Big signal/process handling overhaul.  Bugs fixed:
10549         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10550         M-x comint-kill-subjob should work for both values nil and t of
10551         process-connection-type. It was broken on most platforms.
10552         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10553         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10554         * process-unix.c: Signal/Process handling overhaul.
10555         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10556         (allocate_pty): Use all available modern methods of allocating
10557         ptys, falling back to old style BSD allocation as a last resort.
10558         Use allegedly more secure Unix98 pty allocation by default.
10559         (allocate_pty_the_old_fashioned_way): New. the last resort.
10560         (unix_create_process): Push ptem, ldterm, ttcompat where
10561         available.  Autoconfiscate.
10562         (try_to_initialize_subtty): New.
10563         (unix_kill_child_process): Proper signal handling for ptys on most
10564         platforms, using special knowledge of AIX, BSD, etc...
10565         (unix_create_process): Always disconnect_controlling_terminal() for
10566         subprocesses, whether using ptys or not.
10567         * process.h: Remove old getpt-dependent PTY code.
10568         * process.c (Fprocess_send_signal): New, obvious generic function.
10569         (decode_signal): New.
10570         (Finterrupt_process):
10571         (Fkill_process):
10572         (Fquit_process):
10573         (Fstop_process):
10574         (Fcontinue_process):
10575         (Fsignal_process): Use decode_signal.
10576         (process_send_signal):
10577         Many docstring corrections.
10578         Allow any signal to be sent to a process object.
10579         * config.h.in: Add symbols for big signal/process overhaul.
10580         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
10581         * sysproc.h: Include process-related headers, where available:
10582         sys/stropts.h sys/strtio.h pty.h libutil.h
10583         * s/irix4-0.h:
10584         * s/irix5-0.h:
10585         * s/cygwin32.h:
10586         * s/gnu.h:
10587         * s/linux.h:
10588         * s/hpux.h:
10589         * s/aix3-1.h:
10590         Remove old S&M pty stuff.
10591         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
10592         * systty.h: Simplify cpp hackery, improve comments.
10593         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
10594
10595         * editfns.c (Fformat_time_string):
10596         Be a little more paranoid with the return value of ctime.
10597
10598         * fileio.c (check_executable):
10599         (check_writable):
10600         Use symbolic constants X_OK, W_OK.
10601
10602         * console-x.c (split_up_display_spec): Fix a warning.
10603
10604 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10605
10606         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
10607         * ntproc.c (sys_spawnve): make_string ==> build_string
10608         Small clarity improvements.
10609
10610 2000-09-30  Martin Buchholz  <martin@xemacs.org>
10611
10612         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
10613
10614         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
10615
10616         * config.h.in (HAVE_STRCASECMP): Remove.
10617
10618 2000-09-29  Martin Buchholz  <martin@xemacs.org>
10619
10620         * redisplay-output.c (redisplay_output_pixmap):
10621         Cleaner and possibly more 64-bit correct code.
10622
10623 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
10624
10625         * dumper.c (pdump_load_finish): move restoration of
10626         `noninteractive1' to emacs.c (main_1).
10627         * emacs.c (main_1): protect LISP-visible command-line flags
10628         from pdump_load().
10629
10630 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
10631
10632         * Makefile.in.in (versionclean):  Use EXE_TARGET and
10633         DUMP_TARGET instead of literal program names.
10634
10635 2000-09-20  Martin Buchholz  <martin@xemacs.org>
10636
10637         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
10638
10639 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10640
10641         * *: Spelling mega-patch
10642
10643 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10644
10645         * fns.c (bad_bad_turtle):
10646         Delete "Eek!" comment, since we fixed the bug to which it refers.
10647
10648 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10649
10650         * alloca.c: Replace REGISTER with register.
10651
10652 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
10653
10654         * file-coding.c (ucs_to_char): Use countof.
10655
10656 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10657
10658         * file-coding.c: (ucs_to_char):
10659         (complex_vars_of_file_coding):
10660         Use countof instead of sizeof.
10661         Use CHECK_NATNUM instead of CHECK_INT.
10662
10663         * sysdep.c (strcasecmp): Remove.
10664         * device-x.c (ascii_strcasecmp): New.
10665         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
10666         Avoid using non-standard non-portable strcasecmp.
10667
10668 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10669
10670         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
10671         * font-lock.c: remove reference to emacsfns.h.
10672         * search.c: small doc improvement.
10673         * event-Xt.c: correct file names in comments.
10674         * console-x.h Correct file names in comments.
10675         * frame.c: Correct file names in comments.
10676         * event-stream.c: remove Energize from comments.
10677
10678 2000-09-15  Martin Buchholz  <martin@xemacs.org>
10679
10680         * symeval.h (DEFERROR_STANDARD):
10681         (DEFERROR):
10682         (DEFSYMBOL):
10683         (DEFSYMBOL_NO_DUMP):
10684         (DEFSYMBOL_MULTIWORD_PREDICATE):
10685         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
10686         (DEFKEYWORD):
10687         The construct &##name is not sensible C.
10688         Fixes compilation errors with Unixware native compiler.
10689
10690 2000-09-14  Martin Buchholz  <martin@xemacs.org>
10691
10692         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
10693         (next_frame_internal): Removed.  We now just have next_frame.
10694         (next_frame):
10695         Write a simpler and cleaner one-pass algorithm.
10696         Remove called_from_delete_device arg and #ifdefed-out code.
10697         (previous_frame):
10698         Renamed from prev_frame.  Update callers.
10699         Cleaned up to have an analogous implementation to next_frame.
10700         (other_visible_frames_internal): Remove the
10701         called_from_delete_device bogus arg, and hence, remove this
10702         function.  Just use other_visible_frames().
10703
10704         * window.c (Fnext_window):
10705         Prettify docstring.
10706         Since next_frame() is guaranteed to return a frame, remove check
10707         for nil inserted in previous patch.
10708         (Fprevious_window):
10709         Prettify docstring.
10710         Make code look more like Fnext_window.
10711         (window_loop):
10712         Respect the `console' arg when iterating through windows.
10713         Fixes bug: (get-buffer-window buffer t device) not respecting
10714         the `device' arg.
10715         This function needs more work, as others have pointed out.
10716
10717         * frame.h: Rename prev_frame to previous_frame.
10718         device_matches_console_spec no longer takes a `frame' arg.
10719
10720         * s/gnu.h:
10721         * s/linux.h:
10722         * s/hpux.h:
10723         Use EMACS_BLOCK_SIGNAL instead of sigblock.
10724         From "Golubev I. N." <gin@mo.msk.ru>.
10725
10726         * make-src-depend: Fix typo.
10727
10728 2000-09-13  Martin Buchholz  <martin@xemacs.org>
10729
10730         * window.c (Fnext_window):
10731         next_frame() might return nil, not a frame.
10732         Fixes this crash:
10733         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10734
10735         * frame.c (next_frame_internal):
10736         We've passed a frame if we've passed its device.
10737         Fixes this crash:
10738         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10739 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
10740
10741 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10742
10743         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10744         Allow option to suppress accelerators in menu/dialog items.
10745         (populate_or_checksum_helper): Pass dialog title through above.
10746
10747 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10748
10749         * event-msw.c (mswindows_key_to_emacs_keysym):
10750         Add "pause" key, fix "menu" key.
10751
10752 2000-09-09  Martin Buchholz  <martin@xemacs.org>
10753
10754         * eval.c (reinit_vars_of_eval):
10755         Increase max_lisp_eval_depth to 1000,
10756         required for thai-xtis.el to byte-compile under some circumstances.
10757
10758 2000-09-04  Martin Buchholz  <martin@xemacs.org>
10759
10760         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
10761         From Kenichi Handa.
10762
10763 2000-09-01  Martin Buchholz  <martin@xemacs.org>
10764
10765         * make-src-depend: Make the generated Makefiles smaller.
10766
10767         * s/hpux.h (SETUP_SLAVE_PTY):
10768         Provide a %d in the format string for the errno argument.
10769
10770         * editfns.c (Ftemp_directory):
10771         Warning fix.
10772         Avoid buffer overrun on very long file name.
10773
10774         * input-method-xlib.c (XIM_init_device):
10775         6th parameter of XRegisterIMInstantiateCallback has different
10776         pointer types on different OSes, so simply cast to (void *).
10777
10778         * unexhp9k800.c: Warning fixes.  Fiddly changes.
10779
10780         * sysdll.c (dll_open):
10781         shl_load will hang hard if passed a NULL filename.
10782         Simply return NULL for compatibility with dlopen.
10783         * sysdll.c: Conform to XEmacs coding standards.
10784
10785         * sysdep.c (get_pty_max_bytes):
10786         Support pty input lines longer than 512 bytes on HP-UX 10.20.
10787
10788 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10789
10790         * tooltalk.c: Add #include <syssignal.h>
10791
10792 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
10793
10794         * s/hpux.h: Don't use undefined function sigunblock().
10795
10796 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10797
10798         * config.h.in: Add HAVE_BALLOON_HELP.
10799         * emacs.c: Use HAVE_BALLOON_HELP.
10800         * Makefile.in.in (x_objs):
10801         Make Balloon Help conditional on finding shape.h.
10802
10803 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
10804
10805         * syntax.c (regex_emacs_buffer_p): New variable.
10806         * syntax.h (regex_emacs_buffer_p): extern.
10807         * search.c (looking_at_1):
10808         (string_match_1):
10809         (fast_string_match):
10810         (search_buffer): Set regex_emacs_buffer_p.
10811         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
10812         when before_dot, at_dot, after_dot.
10813
10814 2000-08-23  Andy Piper  <andy@xemacs.org>
10815
10816         * gui-x.c (popup_selection_callback): Only set action_occurred
10817         when we really have an image instance.
10818         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
10819
10820 2000-08-23  Andy Piper  <andy@xemacs.org>
10821
10822         * gui-msw.c (mswindows_handle_gui_wm_command): set
10823         action_occurred.
10824         * gui-x.c (popup_selection_callback): ditto.
10825
10826         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
10827         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
10828         (struct Lisp_Image_Instance): add action_occurred flag.
10829
10830         * glyphs.c (redisplay_subwindow): use action_occurred flag.
10831         (image_instance_changed): ditto.
10832         (reset_frame_subwindow_instance_cache): only unmap windows - do
10833         not remove them from the cache also.
10834
10835         * glyphs-widget.c (tab_control_update): better debug.
10836         (progress_gauge_update): ditto.
10837         (layout_update): ditto.
10838         (layout_instantiate): ditto.
10839         (tab_control_order_only_changed): cope with null pending items.
10840
10841         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
10842         debug. Force selection of an item when an action occurred. Cope
10843         with null pending_items.
10844         (mswindows_progress_gauge_redisplay): better debug.
10845         * glyphs-x.c (x_tab_control_redisplay): ditto.
10846
10847         * redisplay.c (redisplay_frame): reset the frame cache if the
10848         frame is garbaged.
10849
10850         * window.c (Fset_window_configuration): potentially re-enable
10851         frame cache reset.
10852         (window_unmap_subwindows): need to finalize instances here since
10853         it is only used in mark_window_as_deleted.
10854
10855 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
10856
10857         * nas.c (SndOpenDataForReading):
10858         nas.c (WaveOpenDataForReading):
10859         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
10860         Somehow escaped from the 2000-08-14 patch.
10861
10862 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
10863
10864         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
10865         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
10866
10867 2000-08-21  Andy Piper  <andy@xemacs.org>
10868
10869         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
10870         window if it is not already displayed.
10871
10872         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
10873         it is not already displayed.
10874
10875         * window.c (Fset_window_configuration): don't reset the frame
10876         cache.
10877
10878         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
10879         instances from the frame cache if we are actually finalizing them.
10880         (reset_frame_subwindow_instance_cache): reset frame cache only
10881         after unmapping everything.
10882         (map_subwindow): set displayed flag after mapping.
10883
10884 2000-08-21  Martin Buchholz  <martin@xemacs.org>
10885
10886         * data.c (indirect_function):
10887         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
10888
10889         * eval.c (function_argcount):
10890         Use original function when signaling errors.
10891
10892 2000-08-18  Andy Piper  <andy@xemacs.org>
10893
10894         * frame.c (delete_frame_internal): use new
10895         free_frame_subwindow_instances name.
10896
10897         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
10898         (add_tab_item): make return type correct.
10899         (mswindows_tab_control_instantiate): assert index of tab.
10900         (mswindows_tab_control_redisplay): Re-code to use
10901         gui_item_equal_sans_selected and gui_item_list_find_selected.
10902
10903         * glyphs-widget.c (tab_control_update): Correct comment.
10904
10905         * window.c (window_unmap_subwindows): use new
10906         unmap_subwindow_instance_cache_mapper.
10907         (window_unmap_subwindows_cache_mapper): deleted.
10908         (Fset_window_configuration): comparisons should now be with
10909         EQ. Preserve the subwindow instance cache across configuration
10910         changes.
10911         (allocate_window): ditto.
10912         (make_dummy_parent): ditto.
10913
10914         * glyphs.c (free_frame_subwindow_instances): rename from
10915         free_frame_subwindow_instance_cache. finalize all instances rather
10916         than just those in the display cache.
10917         (finalize_all_subwindow_instances): walk windows unmapping and
10918         finalizing subwindows.
10919         (unmap_subwindow_instance_cache_mapper): moved from
10920         window.c. Allow finalization as well as unmapping.
10921
10922         * gui.c (gui_item_list_find_selected): new function.
10923
10924         * gui.h (gui_item_list_find_selected): declare.
10925
10926         * glyphs-x.c (x_tab_control_redisplay): pick tab
10927         explicitly. Re-code to use gui_item_equal_sans_selected and
10928         gui_item_list_find_selected.
10929
10930         * glyphs-x.h: add lwlib-utils.h
10931
10932         * buffer.c (Frecord_buffer): undo previous change.
10933
10934 2000-08-09  Vin Shelton  <acs@xemacs.org>
10935
10936         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
10937         possible.  Create temporary files more securely.  The patch was
10938         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
10939         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
10940         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
10941         for details.
10942
10943 2000-08-07  Ben Wing  <ben@xemacs.org>
10944
10945         * getloadavg.c: remove duplicate (and windows-breaking)
10946         includes of fcntl.h and sys/file.h.
10947
10948         * nt.c: remove duplicate getloadavg() definition.
10949
10950         * sysdll.h (Qdll_filename_encoding): add missing stand-in
10951         encodings.
10952
10953 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10954
10955         * eval.c (function_argcount): If function needs to be autoloaded
10956         actually use the loaded definition.
10957         GCPRO function.
10958
10959 2000-08-05  Ben Wing  <ben@xemacs.org>
10960
10961         * getloadavg.c: add prototype for getloadavg().  remove
10962         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
10963         of the code).  remove duplicate header includes.
10964
10965         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
10966
10967         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
10968         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
10969         useful load average.
10970
10971         * alloc.c (reinit_alloc_once_early): removed references to
10972         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
10973         the lisp vars are the only things referencing the malloc_sbrk_*
10974         vars, and they were already if 0'd out.  these vars only exist
10975         in the older malloc.c, which is basically unused, and they're
10976         only for informational purposes.
10977
10978         * m\*.h: removed useless VIRT_ADDR_VARIES.
10979
10980         * m\powerpc.h: removed stray NO_ARG_ARRAY.
10981
10982 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10983
10984         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
10985         color if the image is a mono pixmap.
10986
10987 2000-07-30  Ben Wing  <ben@xemacs.org>
10988
10989         * Makefile.in.in (release):
10990         Remove stray @.
10991
10992         * buffer.c (directory_is_current_directory):
10993         * dired-msw.c (mswindows_get_files):
10994         * dired.c:
10995         * dired.c (Fdirectory_files):
10996         * dired.c (file_name_completion_stat):
10997         * dired.c (Ffile_attributes):
10998         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
10999         preprocessor tricks, to avoid problems on some machines
11000         (e.g. SCO).
11001
11002         * callproc.c (egetenv): GC docs.
11003
11004         * console-msw.h:
11005         * console-msw.h (struct mswindows_dialog_id):
11006         * lrecord.h (lrecord_type):
11007         New object for use with MSW dialogs.
11008
11009         * console.h (struct console_methods):
11010         New enable/disable frame methods, for proper modal dialogs.
11011
11012         * device-msw.c (msprinter_default_printer): Fix to follow
11013         proper Mule conventions.
11014
11015         * device-msw.c:
11016         * device-msw.c (signal_open_printer_error):
11017         * device-msw.c (msprinter_init_device):
11018         * device-msw.c (ensure_not_printing):
11019         * device-msw.c (plist_get_margin):
11020         * device-msw.c (Fmsprinter_select_settings):
11021         * device-msw.c (finalize_devmode):
11022         * device-msw.c (Fmsprinter_settings_despecialize):
11023         * device-msw.c (signal_enum_priner_error):
11024         * extents.c (decode_extent):
11025         * extents.c (decode_map_extents_flags):
11026         * extents.c (decode_extent_at_flag):
11027         * extents.c (Fextent_at):
11028         * extents.c (Fextents_at):
11029         * extents.c (symbol_to_glyph_layout):
11030         [[[[2]]]] Use structured errors.
11031
11032         * dialog-msw.c:
11033         * dialog-msw.c (mswindows_is_dialog_msg):
11034         * dialog-msw.c (mark_mswindows_dialog_id):
11035         * dialog-msw.c (dialog_proc):
11036         * dialog-msw.c (handle_question_dialog_box):
11037         * dialog-msw.c (syms_of_dialog_mswindows):
11038         Define new object to clean up marking; use it as a dialog identifier.
11039         Call new delete-dialog-box-hook.
11040
11041         * dialog-x.c (dbox_selection_callback):
11042         * dialog-x.c (dbox_descriptor_to_widget_value):
11043         * dialog-x.c (x_make_dialog_box_internal):
11044         Call new delete-dialog-box-hook.
11045         Return an id.
11046
11047         * dialog.c:
11048         * dialog.c (syms_of_dialog):
11049         * dialog.c (vars_of_dialog):
11050         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11051
11052         * eval.c:
11053         * eval.c (signal_call_debugger):
11054         when noninteractive, output stack traces on the console instead
11055         of in a (never-seen) buffer.
11056
11057         * eval.c (signal_type_error):
11058         * eval.c (invalid_argument_2):
11059         * lisp.h:
11060         new funs for use w/structured errors.
11061
11062         * event-Xt.c:
11063         * event-Xt.c (x_to_emacs_keysym):
11064         * event-Xt.c (describe_event):
11065         * event-Xt.c (emacs_Xt_event_handler):
11066         * event-Xt.c (vars_of_event_Xt):
11067         * event-msw.c:
11068         * event-msw.c (mswindows_wnd_proc):
11069         * event-msw.c (vars_of_event_mswindows):
11070         rename {x,mswindows}-debug-events to debug-{}-events for
11071         consistency with other debug-foo variables.
11072
11073         * event-stream.c:
11074         document next-event more clearly.
11075
11076         * fileio.c (Ffile_name_directory):
11077         * fileio.c (Ffile_name_nondirectory):
11078         * fileio.c (Funhandled_file_name_directory):
11079         * fileio.c (file_name_as_directory):
11080         * fileio.c (Ffile_name_as_directory):
11081         * fileio.c (directory_file_name):
11082         * fileio.c (Fdirectory_file_name):
11083         * fileio.c (Fmake_temp_name):
11084         * fileio.c (Ffile_truename):
11085         * fileio.c (Fsubstitute_in_file_name):
11086         * fileio.c (expand_and_dir_to_file):
11087         * fileio.c (barf_or_query_if_file_exists):
11088         * fileio.c (check_executable):
11089         * fileio.c (Ffile_exists_p):
11090         * fileio.c (Ffile_writable_p):
11091         * fileio.c (Ffile_directory_p):
11092         * fileio.c (Ffile_regular_p):
11093         * fileio.c (Ffile_modes):
11094         * fileio.c (Ffile_newer_than_file_p):
11095         * fileio.c (Fverify_visited_file_modtime):
11096         * fileio.c (Fset_visited_file_modtime):
11097         * fileio.c (auto_save_1):
11098         (1). (2).
11099         fix up gcpro's.
11100
11101         * frame-msw.c:
11102         * frame-msw.c (mswindows_init_frame_1):
11103         * frame-msw.c (mswindows_enable_frame):
11104         * frame-msw.c (error_frame_unsizable):
11105         * frame-msw.c (msprinter_init_frame_1):
11106         * frame-msw.c (msprinter_init_frame_3):
11107         * frame-msw.c (console_type_create_frame_mswindows):
11108         (2).
11109         implement new enable/disable frame methods.
11110
11111         * frame-x.c:
11112         * frame-x.c (x_enable_frame):
11113         * frame-x.c (console_type_create_frame_x):
11114         implement new enable/disable frame methods.
11115
11116         * frame.c:
11117         * frame.c (Fdisable_frame):
11118         * frame.c (syms_of_frame):
11119         * frame.h (struct frame):
11120         implement new enable/disable frame methods/functions.
11121
11122         * general-slots.h:
11123         add initial-focus.
11124
11125         * glyphs-msw.c (mswindows_widget_instantiate):
11126         comment that initial-focus should be implemented.
11127
11128         * glyphs-widget.c:
11129         * glyphs-widget.c (check_valid_instantiator):
11130         * glyphs-widget.c (check_valid_orientation):
11131         * glyphs-widget.c (check_valid_tab_orientation):
11132         * glyphs-widget.c (check_valid_justification):
11133         * glyphs-widget.c (check_valid_border):
11134         * glyphs-widget.c (check_valid_callback):
11135         * glyphs-widget.c (check_valid_int_or_function):
11136         * glyphs-widget.c (check_valid_string_or_vector):
11137         * glyphs-widget.c (check_valid_item_list_1):
11138         * glyphs-widget.c (widget_validate):
11139         * glyphs-widget.c (combo_box_validate):
11140         * glyphs-widget.c (widget_instantiate):
11141         * glyphs-widget.c (syms_of_glyphs_widget):
11142         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11143         * glyphs-widget.c (image_instantiator_combo_box):
11144         * glyphs-widget.c (image_instantiator_scrollbar):
11145         * glyphs-widget.c (image_instantiator_tab_control):
11146         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11147         (2).
11148         support (unimplemented) keyword initial-focus.
11149         reindent long macros.
11150
11151         * glyphs-x.c (x_redisplay_widget):
11152         * glyphs-x.c (x_button_instantiate):
11153         * glyphs-x.c (x_button_redisplay):
11154         * glyphs-x.c (x_progress_gauge_instantiate):
11155         * glyphs-x.c (x_edit_field_instantiate):
11156         * glyphs-x.c (x_combo_box_instantiate):
11157         * glyphs-x.c (x_tab_control_instantiate):
11158         * glyphs-x.c (x_label_instantiate):
11159         * gui-x.c:
11160         * gui-x.c (button_item_to_widget_value):
11161         * gui-x.c (gui_items_to_widget_values_1):
11162         * gui-x.c (gui_item_children_to_widget_values):
11163         * gui-x.c (gui_items_to_widget_values):
11164         * gui-x.h:
11165         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11166         add new flag to gui-parsing routines to indicate whether
11167         accelerator specs should be supported.
11168
11169         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11170
11171         * glyphs.h (struct Lisp_Image_Instance):
11172         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11173         add initial-focus flag.
11174
11175         * gui.c:
11176         * gui.c (syms_of_gui):
11177         * gui.c (vars_of_gui):
11178         clean up menu-no-selection-hook.
11179
11180         * gui.h:
11181         support delete-dialog-box-hook.
11182
11183         * lread.c (Fload_internal):
11184         * lread.c (locate_file_in_directory_mapper):
11185         (1).
11186
11187         * lrecord.h:
11188         * lrecord.h (struct toolbar_button):
11189         * lrecord.h (syms_of_toolbar):
11190         document how to create a new object.
11191
11192         * menubar-msw.c (mswindows_char_is_accelerator):
11193         may be called on frames w/o menus.
11194
11195         * menubar.c (vars_of_menubar):
11196         clean up :filter docs.
11197
11198         * nt.c (readdir):
11199         * ntproc.c:
11200         (1).
11201
11202         * process-nt.c:
11203         * process-nt.c (validate_signal_number):
11204         * process-nt.c (signal_cannot_launch):
11205         * process-nt.c (nt_create_process):
11206         * process-nt.c (nt_send_process):
11207         * process-nt.c (nt_kill_child_process):
11208         * process-nt.c (nt_open_network_stream):
11209         * process-nt.c (syms_of_process_nt):
11210         (2).
11211         delete quote-handling.  call new lisp code that does it better.
11212
11213         * process-unix.c (connect_to_file_descriptor):
11214         * process-unix.c (allocate_pty):
11215         * process-unix.c (unix_send_process):
11216         * process-unix.c (unix_kill_child_process):
11217         * process-unix.c (unix_open_network_stream):
11218         * process-unix.c (unix_open_multicast_group):
11219         (1). (2).
11220
11221         * process.c:
11222         * process.c (Fstart_process_internal):
11223         (2).  need to canonicalize process path even if absolute.
11224
11225         * select-msw.c (symbol_to_ms_cf):
11226         * select-msw.c (ms_cf_to_symbol):
11227         * select-msw.c (cf_is_autofreed):
11228         * select-msw.c (mswindows_destroy_selection):
11229         * select.c:
11230         * select.c (syms_of_select):
11231         * select.h:
11232         support dibv5, fix bugs. (from Mike Alexander)
11233
11234         * select.c (Fget_selection_internal):
11235         * select.c (select_convert_out):
11236
11237         * sysdep.c:
11238         * sysdep.c (xemacs_stat):
11239         renamed.
11240
11241         * sysdep.c (mkdir):
11242         * sysdep.c (rmdir):
11243         but keep original stat() here because we provide encapsulation
11244         around these funs.
11245
11246         * sysfile.h:
11247         * sysfile.h (fstat):
11248         remove stat garbage.
11249
11250         * syswindows.h:
11251         fix X/MSW conflict.
11252         don't include tchar.h.  it's inappropriate because it makes
11253         compile-time distinctions when we want runtime distinctions.
11254         (we provide our own tchar replacements)
11255
11256         * toolbar.c:
11257         use default object printer for toolbar-button.
11258
11259         * unexcw.c:
11260         make sure we don't encapsulate.
11261
11262         * window.c (vars_of_window):
11263         emphasize that temp-buffer-show-hook is obsolete.
11264
11265 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11266
11267         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11268         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11269
11270         * events.c (Fevent_timestamp_lessp):
11271         Not 64-bit clean.  Use EMACS_INT, not int.
11272
11273 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11274
11275         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11276         unsigned int and changed the last enum to
11277         lrecord_type_last_built_in_type.
11278         (lrecord_implementations_table): changed prototype to know how
11279         long the array is supposed to be.
11280         (lrecord_type_count): new unsigned int to keep track of the
11281         current number of lisp lrecord types.
11282         (DEFINE_EXTERNAL_LRECORD):
11283         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11284         dynamic-modules to declare new lisp types. They are the same
11285         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11286         int for each new type, and increment lrecord_type_count by 1.
11287
11288         * alloc.c (lrecord_implementations_table): Changed to reference
11289         lrecord_type_last_built_in_type for the size of the array.
11290         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11291
11292 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11293
11294         * glyphs.h (check_valid_item_list): Renamed from
11295         check_valid_item_list_1.
11296
11297 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11298
11299         * select.c (Qselect_coerce): New.
11300         * select.c (Vselection_coercion_alist): New.
11301         * select.c (syms_of_select): Declare.
11302         * select.c (get-selection-internal): Use it.
11303         Use the new select-coerce functionality.
11304
11305         * select.c (select_coerce): New.
11306         * select.h (select_coerce): Declare.
11307         New function to coerce one type of data into another.
11308
11309 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11310
11311         * callproc.c (Fcall_process_internal):
11312         (Fcall_process_internal):
11313         * process-unix.c (unix_create_process):
11314         Save and restore the value of errno, so that error messages are accurate.
11315
11316 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11317
11318         * elhash.c (print_hash_table):
11319         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11320         Prettify docstrings and indentation.
11321
11322 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11323
11324         * window.c (Fwindow_pixel_edges): Subtract frame border and
11325         gutter size.
11326
11327 2000-07-31  Andy Piper  <andy@xemacs.org>
11328
11329         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11330         will acknowledge the change.
11331
11332         * glyphs.h: declare tab_control_order_only_changed.
11333
11334         * glyphs-x.c (x_tab_control_redisplay): use
11335         tab_control_order_only_changed.
11336
11337         * glyphs-widget.c (tab_control_order_only_changed): new function.
11338
11339         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11340         tab_control_order_only_changed.
11341
11342         * gui.c (gui_item_equal_sans_selected): new function.
11343         (gui_item_equal): use it.
11344
11345         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11346         :properties in favor of :items..
11347
11348         * glyphs-widget.c (check_valid_item_list): rename from
11349         check_valid_item_list_1.
11350         (check_valid_item_list_1): renamed.
11351         (combo_box_validate): deprecate :properties in favor of :items.
11352         (widget_instantiate): ditto.
11353         (tab_control_update): ditto.
11354         (image_instantiator_combo_box): ditto.
11355         (image_instantiator_tree_view): ditto.
11356         (image_instantiator_tab_control): ditto.
11357         (layout_post_instantiate): remove dead code.
11358
11359         * print.c (debug_print_no_newline): only write to debugger if in
11360         WIN32_NATIVE.
11361
11362         * elhash.c (Fmake_hash_table): update doc string.
11363
11364         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11365         messages whilst in GC. This at least stops XEmacs crashing but has
11366         the potential for wierd behaviour.
11367
11368 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11369
11370         * config.h.in:
11371         Make existence of s&m files optional.
11372
11373         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11374         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11375         * s/gnu.h: Remove HAVE_GETLOADAVG.
11376         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11377         * s/sol2.h: Remove HAVE_GETLOADAVG.
11378         * lisp.h: Remove getloadavg() declaration.
11379         * fns.c:
11380         Include <sys/loadavg.h> if available.
11381         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11382         * config.h.in:  Group together getloadavg()-related macros.
11383         Use only configure-time tests to detect getloadavg().
11384
11385 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11386
11387         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11388
11389 2000-07-25  Andy Piper  <andy@xemacs.org>
11390
11391         * syswindows.h: add tchar.h for native builds.
11392
11393         * frame.c (syms_of_frame): remove set-glyph-image.
11394
11395         * general-slots.h: add Qset_glyph_image.
11396
11397         * glyphs-widget.c (layout_update): add domain arg to
11398         set-glyph-image.
11399         (syms_of_glyphs_widget): remove set-glyph-image.
11400
11401 2000-07-23  Ben Wing  <ben@xemacs.org>
11402
11403         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11404         Vpopup_frame_list.
11405
11406 2000-07-22  Andy Piper  <andy@xemacs.org>
11407
11408         * symsinit.h: add syms_of_win32().
11409
11410         * gui-msw.c (syms_of_gui_mswindows): remove
11411         Fmswindows_shell_execute.
11412         (Fmswindows_shell_execute): moved to win32.c.
11413
11414         * emacs.c (main_1): add syms_of_win32 ().
11415
11416         * win32.c (init_potentially_nonexistent_functions): rewrite in
11417         compiler-friendly terms.
11418         (Fmswindows_shell_execute): move here from gui-msw.c.
11419         (syms_of_win32): new.
11420
11421         * device-msw.c (Fmswindows_printer_list): clean up args to
11422         EnumPrinters.
11423         Don't include tchar under cygwin or mingw.
11424         (msprinter_default_printer): make cygwin-friendly.
11425
11426 2000-07-21  Andy Piper  <andy@xemacs.org>
11427
11428         * glyphs-widget.c (image_instantiator_tree_view): use tab
11429         control's update function.
11430         (layout_property): new function. Retrieve items.
11431
11432         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11433         function. Re-populate the tree view from the pending items.
11434
11435         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11436         is designated the parent if the domain is an image instance. This
11437         is needed so that dirtiness can be cascade up the hierarchy and
11438         thus for layout children to be redisplayed correctly.
11439         (allocate_image_instance): rename glyph -> parent.
11440
11441         * redisplay.h: change redisplay_output_layout signature.
11442
11443         * redisplay-msw.c (mswindows_output_display_block): use domain
11444         arg.
11445
11446         * redisplay-x.c (x_output_display_block): use domain arg.
11447
11448 2000-07-10  Andy Piper  <andy@xemacs.org>
11449
11450         * window.c (Fset_window_configuration): add comment.
11451
11452         * redisplay-output.c (compare_runes):
11453         (redisplay_output_subwindow): redisplay rather than update subwindow.
11454         (redisplay_output_layout): ditto.
11455
11456         * redisplay-msw.c (mswindows_frame_output_end):
11457         (mswindows_frame_output_end): make defer window pos optional.
11458
11459         * lisp.h: add Flast.
11460
11461         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11462         normalize method. Change update method to be for changed
11463         instantiators. Add redisplay method. Change signature of layout
11464         method.
11465         (struct Lisp_Image_Instance): add instantiator.
11466         (IMAGE_INSTANCE_INSTANTIATOR): new.
11467         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11468         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11469         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11470
11471         * glyphs.c:
11472         (find_instantiator_differences): new function.
11473         (Fset_instantiator_property): new convenience function.
11474         (check_image_instance_structure): strictly check for vector
11475         instantiators.
11476         (normalize_image_instantiator): make non-static.
11477         (instantiate_image_instantiator): pass on dest_mask and use new
11478         signatures for image_instance_layout and friends.
11479         (mark_image_instance): mark the instantiator. Mark the subwindow
11480         face not the widget face.
11481         (image_instance_equal): add instantiator.
11482         (image_instance_hash): ditto.
11483         (allocate_image_instance): ditto.
11484         (Fset_image_instance_property): removed.
11485         (Fimage_instance_file_name): ditto.
11486         (Fcolorize_image_instance): ditto.
11487         (image_instance_layout): add offsets to be set.
11488         (update_image_instance): new function. update an image instance
11489         from its changed instantiator.
11490         (inherit_normalize): add dest_mask.
11491         (xbm_normalize): ditto.
11492         (xface_normalize): ditto.
11493         (xpm_normalize): ditto.
11494         (text_update): set_property -> update.
11495         (image_instantiate): use the glyph identity as a hash key, not the
11496         instantiator.
11497         (glyph_width): use new image_instance_layout signature.
11498         (glyph_ascent): ditto.
11499         (glyph_descent): ditto.
11500         (glyph_height): ditto.
11501         (glyph_query_geometry): ressurrect.
11502         (glyph_layout): ditto.
11503         (redisplay_subwindow): update -> redisplay.
11504         (syms_of_glyphs): add Fset_instantiator_property.
11505         (image_instantiator_format_create): set_property -> update.
11506
11507         * glyphs-x.c:
11508         (autodetect_normalize): add dest_maks to signature.
11509         (x_redisplay_subwindow): update -> redisplay.
11510         (x_redisplay_widget): ditto.
11511         (x_button_redisplay): ditto.
11512         (x_progress_gauge_redisplay): ditto.
11513         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11514         stacking order.
11515         (console_type_create_glyphs_x): update -> redisplay.
11516         (image_instantiator_format_create_glyphs_x): ditto.
11517
11518         * glyphs-widget.c:
11519         (check_valid_instantiator): disallow glyphs in the instantiator,
11520         they must now be vectors.
11521         (check_valid_instantiator_list): ditto.
11522         (glyph_instantiator_to_glyph): use internal symbol rather than
11523         intern.
11524         (widget_update): renamed from widget_set_property. Call cascaded
11525         update methods.
11526         (redisplay_widget): renamed from update_widget.
11527         (widget_layout): image_instance_layout now takes position as well
11528         as size.
11529         (widget_normalize): ditto.
11530         (widget_instantiate): ditto.
11531         (tab_control_query_geometry) ditto.:
11532         (tab_control_update): renamed from tab_control_set_property.
11533         (progress_gauge_update): set_property -> update.
11534         (layout_normalize): rewrite so that child instantiators are
11535         normalized also.
11536         (layout_update): new function. Create glyphs from the normalized
11537         children and cope with any other layout keywords. We do not
11538         instantiate children here that will be take care of by
11539         redisplay_output_layout.
11540         (layout_instantiate): call layout_update and not much else.
11541         (layout_post_instantiate): not sure whether this is needed
11542         anymore.
11543         (layout_query_geometry): query glyph geometry rather than
11544         image_instance geometry.
11545         (layout_layout): set offsets from pass in parameters. Use glyph
11546         geometry and layout functions rather than image instance ones.
11547         (native_layout_layout): ditto.
11548         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11549         (image_instantiator_widget): set_property -> update.
11550         (image_instantiator_buttons): ditto.
11551         (image_instantiator_progress_guage): ditto.
11552         (image_instantiator_tab_control): ditto.
11553         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11554         (image_instantiator_layout): add update method.
11555
11556         * glyphs-msw.c (bmp_normalize):
11557         (mswindows_resource_normalize): add dest_mask so that it can be
11558         proprogated by layout_normalize.
11559         (begin_defer_window_pos): make optional because it may not be the
11560         right thing to do and it introduces differences with X.
11561         (mswindows_unmap_subwindow): ditto.
11562         (mswindows_map_subwindow): ditto.
11563         (mswindows_redisplay_subwindow): renamed from
11564         mswindows_update_subwindow.
11565         (mswindows_redisplay_widget): ditto.
11566         (mswindows_button_redisplay): renamed from
11567         mswindows_button_update. Update is now what the instantiation
11568         function does for a changed instantiator.
11569         (mswindows_progress_gauge_instantiate): set the progress value
11570         here if appropriate.
11571         (mswindows_tab_control_redisplay): cope with re-ordering of the
11572         members of the tab widget by simply selecting the new top
11573         widget. This makes things appear ok if you click on a tab.
11574         (mswindows_combo_box_instantiate): image_instance_layout now takes
11575         position as well as size.
11576         (mswindows_progress_gauge_redisplay): renamed from
11577         mswindows_progress_gauge_update.
11578         (console_type_create_glyphs_mswindows): fix update -> redisplay.
11579         (image_instantiator_format_create_glyphs_mswindows): ditto.
11580
11581         * glyphs-eimage.c (jpeg_normalize):
11582         (gif_normalize):
11583         (png_normalize):
11584         (tiff_normalize): add dest_mask so that it can be proprogated by
11585         layout_normalize.
11586
11587         * elhash.c:
11588         (print_hash_table):
11589         (hash_table_weakness_validate):
11590         (decode_hash_table_weakness):
11591         (Fhash_table_weakness):
11592         (Fhash_table_type):
11593         (syms_of_elhash): use Ben's naming scheme for hashtable types..
11594
11595         * console.h (struct console_methods): move update_* to
11596         redisplay_*.
11597
11598 2000-07-20  Ben Wing  <ben@xemacs.org>
11599
11600         * *.[ch] (XSETOBJ): remove unused middle argument.
11601         lisp-disunion.h: correct wrap_object() to one argument.
11602
11603 2000-07-15  Ben Wing  <ben@xemacs.org>
11604
11605         * s/cygwin32.h:
11606         * s/cygwin32.h (CYGWIN_CONV_PATH):
11607         Add missing logb prototype for v1.1.
11608         Use post-b20 names and alias to pre-b20 names when pre-b20.
11609
11610         * s/windowsnt.h: [5].
11611
11612 2000-07-15  Ben Wing  <ben@xemacs.org>
11613
11614         * Makefile.in.in (x_objs):
11615         * Makefile.in.in (sheap_objs):
11616         * Makefile.in.in (objs):
11617         added win32.o, cosmetic cleanups.
11618
11619         * alloc.c (Fmake_byte_code):
11620         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
11621         etc. macros which declare their own args now.
11622
11623         * alloc.c (syms_of_alloc):
11624         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
11625
11626         * buffer.c:
11627         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
11628
11629         * buffer.c (Fget_file_buffer):
11630         Fixed GCPRO problem.
11631
11632         * buffer.c (get_truename_buffer):
11633         Fixed comment about GC checking.
11634
11635         * buffer.c (syms_of_buffer):
11636         Undeclared those dedicated frame funs.
11637         [2].
11638
11639         * buffer.h:
11640         Define convenience macros for internal/external conversions.
11641         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
11642         and Qenvironment_variable_encoding for cleaner code.
11643
11644         * bufslots.h:
11645         Remove dedicated-frame; in lisp.
11646
11647         * bytecode.c (funcall_compiled_function):
11648         [1].
11649
11650         * bytecode.c (syms_of_bytecode):
11651         [2].
11652
11653         * console-msw.c:
11654         * console-msw.c (mswindows_show_console): Rewrote.
11655
11656         * console-msw.c (Fmswindows_debugging_output): New.
11657         Sends to OutputDebugString (special MSWin debugger interface).
11658
11659         * console-msw.c (Fmswindows_message_box):
11660         Fixed stupid bugs so it works when called from kill-emacs.
11661
11662         * console-msw.c (syms_of_console_mswindows):
11663         Declare Fmswindows_debugging_output.
11664
11665         * console-msw.h:
11666         New MSWin prototypes.
11667
11668         * console-msw.h (struct mswindows_frame):
11669         New entry last-click-mods for improved button-modifier support.
11670
11671         * console-msw.h (FRAME_MSWINDOWS_POPUP):
11672         New struct entry `popup' with corresponding accessor.
11673
11674         * console-x.c:
11675         * console-x.c (split_up_display_spec):
11676         * console-x.c (get_display_arg_connection):
11677         * console-x.c (x_semi_canonicalize_console_connection):
11678         * console-x.c (x_canonicalize_device_connection):
11679         [[[6]]]: Change char to more specific type.
11680         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
11681
11682         * console-x.c (x_semi_canonicalize_console_connection):
11683         * console-x.c (x_canonicalize_device_connection):
11684         [[[9]]]: Fix up error signalling to use new structured error system.
11685
11686         * console-x.h:
11687         [[[4]]]: Define codesys aliases:
11688         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
11689         Qx_color_name_encoding, Qx_display_name_encoding.
11690
11691         * console.h (struct console_methods):
11692         New method make_dialog_box_internal supersedes older
11693         popup_dialog_box method.
11694
11695         * data.c:
11696         Define many new errors, part of new structured errors.
11697
11698         * data.c (init_errors_once_early):
11699         * data.c (syms_of_data):
11700         [2].
11701
11702         * device-msw.c (mswindows_init_device):
11703         [[[5]]]: Cleanup to support NT 3.51.
11704
11705         * device-msw.c (decode_devmode): Cleanup.
11706
11707         * device-msw.c (mswindows_handle_print_setup_dialog_box):
11708         * device-msw.c (mswindows_handle_print_dialog_box):
11709         * device-msw.c (mswindows_handle_page_setup_dialog_box):
11710         * device-msw.c (syms_of_device_mswindows):
11711         Delete the dialog box primitives recently introduced by Kirill and
11712         instead interface to general dialog box interface.
11713
11714         * device-x.c:
11715         * device-x.c (compute_x_app_name):
11716         * device-x.c (x_init_device):
11717         * device-x.c (Fx_valid_keysym_name_p):
11718         * device-x.c (Fx_set_font_path):
11719         [6].
11720         [7].
11721
11722         * device.h (wrap_device): New.
11723         First of its kind; meant to replace XSETDEVICE.
11724
11725         * dialog-msw.c: Many file-dialog symbols.
11726
11727         * dialog-msw.c (mswindows_register_popup_frame): New.
11728         * dialog-msw.c (mswindows_is_dialog_msg): New.
11729         For supporting kbd traversal in dialog boxes.
11730
11731         * dialog-msw.c (dialog_proc):
11732         Support hitting ESC in dialogs.
11733
11734         * dialog-msw.c (struct):
11735         Common dialog box errors.
11736
11737         * dialog-msw.c (handle_file_dialog_box): New.
11738         Add file dialog code.
11739
11740         * dialog-msw.c (handle_question_dialog_box):
11741         Redo existing code to support new question dialog syntax.
11742
11743         * dialog-msw.c (console_type_create_dialog_mswindows):
11744         We support new dialog console method.
11745
11746         * dialog-msw.c (syms_of_dialog_mswindows):
11747         * dialog-msw.c (vars_of_dialog_mswindows):
11748         New file dialog symbols, vars.
11749
11750         * dialog-x.c:
11751         * dialog-x.c (maybe_run_dbox_text_callback):
11752         * dialog-x.c (dbox_descriptor_to_widget_value):
11753         * dialog-x.c (x_make_dialog_box_internal):
11754         * dialog-x.c (console_type_create_dialog_x):
11755         Mule-ize entire file.
11756         Redo to support question dialog syntax.
11757         [6].
11758
11759         * dialog.c:
11760         * dialog.c (Fmake_dialog_box_internal):
11761         * dialog.c (syms_of_dialog):
11762         Kill old popup-dialog-box, replace with new primitive.
11763         Just call device method or signal error.
11764
11765         * eldap.c (Fldap_open):
11766         * eldap.c (Fldap_search_basic):
11767         * eldap.c (Fldap_add):
11768         * eldap.c (Fldap_modify):
11769         [1].
11770         [7].
11771
11772         * emacs.c:
11773         * emacs.c (make_arg_list_1):
11774         * emacs.c (make_arg_list):
11775         Mule-ize call to dll_init().
11776         [6].
11777         [8].
11778
11779         * emacs.c (make_argc_argv):
11780         * emacs.c (free_argc_argv):
11781         * emacs.c (init_cmdargs):
11782         * emacs.c (main_1):
11783         * emacs.c (Fkill_emacs):
11784         * emacs.c (Fdump_emacs):
11785         Update comments about what can be used in syms_* etc.
11786         Call init_win32() when necessary.
11787         Fix up MS Win dialog box in kill-buffer to actually work right.
11788         [7].
11789
11790         * eval.c:
11791         * eval.c (For):
11792         * eval.c (Fand):
11793         * eval.c (Fprogn):
11794         * eval.c (Fprog1):
11795         * eval.c (Fprog2):
11796         * eval.c (FletX):
11797         * eval.c (Flet):
11798         * eval.c (condition_case_3):
11799         * eval.c (Feval):
11800         * eval.c (function_argcount):
11801         * eval.c (funcall_lambda):
11802         [1].
11803
11804         * eval.c (type_error): New.
11805         * eval.c (maybe_type_error): New.
11806         * eval.c (continuable_type_error): New.
11807         * eval.c (maybe_continuable_type_error): New.
11808         * eval.c (type_error_with_frob): New.
11809         * eval.c (maybe_type_error_with_frob): New.
11810         * eval.c (continuable_type_error_with_frob): New.
11811         * eval.c (maybe_continuable_type_error_with_frob): New.
11812         New functions for use with structured errors.
11813
11814         * event-Xt.c:
11815         * event-Xt.c (x_event_to_emacs_event):
11816         Buttons are now modifiers too.
11817
11818         * event-Xt.c (emacs_Xt_current_event_timestamp):
11819         Implement new event method.
11820         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
11821
11822         * event-msw.c:
11823         * event-msw.c (ntpipe_shove_writer): [5].
11824         * event-msw.c (mswindows_enqueue_mouse_button_event):
11825         * event-msw.c (mswindows_drain_windows_queue):
11826         * event-msw.c (mswindows_wnd_proc): [7].
11827         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
11828         * event-msw.c (mswindows_modifier_state):
11829         Throughout: support new button modifiers.
11830
11831         * event-msw.c (emacs_mswindows_current_event_timestamp):
11832         Implement new event method.
11833         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
11834
11835         * event-stream.c:
11836         * event-stream.c (event_stream_current_event_timestamp): New.
11837         * event-stream.c (maybe_kbd_translate): New functionality.
11838         * event-stream.c (vars_of_event_stream):
11839         Document new kbd-translate-table functionality.
11840
11841         * event-stream.c (Fcurrent_event_timestamp): New.
11842         New primitive for use in fabricated events.
11843         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
11844
11845         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
11846
11847         * events.c:
11848         * events.c (Fmake_event):
11849         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
11850         [1].
11851         [9].
11852
11853         * events.c (format_event_object): fix gcc warnings.
11854
11855         * events.c (Fevent_timestamp): Document new primitives.
11856
11857         * events.c (TIMESTAMP_HALFSPACE): New.
11858
11859         * events.c (Fevent_timestamp_lessp): New.  New primitive for
11860         comparing timestamps correctly (half-space algorithm).
11861
11862         * events.c (Fevent_modifier_bits): Doc fix.
11863
11864         * events.c (Fevent_modifiers): Major doc addition.
11865         * events.c (event_x_y_pixel_internal): Typo fix.
11866         * events.c (syms_of_events): Declare new primitives.
11867
11868         * events.h:
11869         Update long comment for button modifiers, timestamps.
11870
11871         * events.h (struct event_stream):
11872         New current_event_timestamp method.
11873
11874         * extents.c:
11875         * extents.c (extent_in_region_p):
11876         * extents.c (decode_extent):
11877         * extents.c (Fset_extent_parent):
11878         * extents.c (decode_map_extents_flags):
11879         Fix gcc warnings.
11880         [9].
11881
11882         * extents.c (struct extent_at_arg):
11883         * extents.c (decode_extent_at_flag):
11884         * extents.c (extent_at_mapper):
11885         * extents.c (extent_at_bytind):
11886         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
11887         * extents.c (Fextents_at): New primitive. [9].
11888         * extents.c (symbol_to_glyph_layout): [9].
11889         Support new primitive `extents-at'.
11890
11891
11892         * extents.c (get_text_property_bytind):
11893         extent_at_bytind has another arg.
11894         [9].
11895
11896         * extents.c (syms_of_extents): New primitive.
11897
11898         * file-coding.c (Fmake_coding_system): [1].
11899         * file-coding.c (subsidiary_coding_system): fix gcc warning
11900         * file-coding.c (syms_of_file_coding): [2].
11901
11902         * fileio.c (Fexpand_file_name):
11903         * fileio.c (Fsysnetunam):
11904         * fileio.c (Ffile_exists_p):
11905         * fileio.c (Ffile_executable_p):
11906         * fileio.c (Fverify_visited_file_modtime):
11907         Clean up GCPROing.
11908
11909         * fileio.c (syms_of_fileio): [2].
11910
11911         * filelock.c (lock_file_1):
11912         * filelock.c (current_lock_owner):
11913         * filelock.c (lock_if_free):
11914         * filelock.c (lock_file):
11915         * filelock.c (unlock_file):
11916         Clean up GCPROing.
11917
11918         * fns.c (concat): Fix gcc warning.
11919
11920         * fns.c (Fmember):
11921         * fns.c (Fold_member):
11922         * fns.c (Fmemq):
11923         * fns.c (Fold_memq):
11924         * fns.c (memq_no_quit):
11925         * fns.c (Fassoc):
11926         * fns.c (Fold_assoc):
11927         * fns.c (Fassq):
11928         * fns.c (Fold_assq):
11929         * fns.c (assq_no_quit):
11930         * fns.c (Frassoc):
11931         * fns.c (Fold_rassoc):
11932         * fns.c (Frassq):
11933         * fns.c (Fold_rassq):
11934         * fns.c (rassq_no_quit):
11935         * fns.c (Fdelete):
11936         * fns.c (Fold_delete):
11937         * fns.c (Fdelq):
11938         * fns.c (Fold_delq):
11939         * fns.c (delq_no_quit):
11940         * fns.c (Fremassoc):
11941         * fns.c (Fremassq):
11942         * fns.c (remassq_no_quit):
11943         * fns.c (Fremrassoc):
11944         * fns.c (Fremrassq):
11945         * fns.c (remrassq_no_quit):
11946         * fns.c (Freverse):
11947         * fns.c (mapcar1):
11948         [1].
11949
11950         * frame-msw.c (mswindows_init_frame_1):
11951         * frame-msw.c (mswindows_delete_frame):
11952         Register popups with dialog code so keyboard traversing works.
11953
11954         * frame-tty.c (tty_raise_frame_no_select): [1].
11955
11956         * frame-x.c:
11957         * frame-x.c (x_set_frame_text_value):
11958         * frame-x.c (x_set_frame_properties):
11959         * frame-x.c (x_create_widgets):
11960         [7].
11961
11962         * frame.c:
11963         * frame.c (Fmouse_pixel_position): Minor doc fixes.
11964
11965         * frame.h (wrap_frame): New.
11966         Macro like wrap_device.
11967
11968         * general.c:
11969         * general.c (SYMBOL):
11970         * general.c (syms_of_general):
11971         Major reorg.  This is now just a wrapper and symbols themselves
11972         are listed in general-slots.h.
11973
11974         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
11975         * glyphs-msw.c (mswindows_resource_instantiate): [5].
11976
11977         * glyphs-msw.c (mswindows_native_layout_instantiate):
11978         Add DS_CONTROL so keyboard traversal will work.
11979
11980         * glyphs-widget.c:
11981         * glyphs-widget.c (syms_of_glyphs_widget):
11982         Move some symbols to general-slots.h.
11983
11984         * glyphs-x.c:
11985         * glyphs-x.c (xbm_instantiate_1):
11986         * glyphs-x.c (x_xbm_instantiate):
11987         * glyphs-x.c (x_xface_instantiate):
11988         * glyphs-x.c (autodetect_instantiate):
11989         * glyphs-x.c (cursor_font_instantiate):
11990         * glyphs-x.c (x_update_widget):
11991         * glyphs-x.c (x_widget_instantiate):
11992         * glyphs.c (bitmap_to_lisp_data):
11993         * glyphs.c (pixmap_to_lisp_data):
11994         [7].
11995
11996         * glyphs.c (syms_of_glyphs):
11997         [2].
11998
11999         * gui-x.c:
12000         * gui-x.c (print_widget_value):
12001         * gui-x.c (menu_separator_style_and_to_external):
12002         * gui-x.c (add_accel_and_to_external):
12003         * gui-x.c (button_item_to_widget_value):
12004         * gui-x.c (gui_items_to_widget_values_1):
12005         * gui-x.c (gui_items_to_widget_values):
12006         * gui-x.c (syms_of_gui_x):
12007         * gui-x.c (vars_of_gui_x):
12008         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12009         [9].
12010
12011         * gui-x.h:
12012         Muleize, prototype changes matching gui-x.c.
12013
12014         * gui.c:
12015         * gui.c (separator_string_p):
12016         * gui.c (gui_item_add_keyval_pair):
12017         * gui.c (make_gui_item_from_keywords_internal):
12018         * gui.c (signal_too_long_error):
12019         * gui.c (parse_gui_item_tree_item):
12020         * gui.c (syms_of_gui):
12021         * gui.c (vars_of_gui):
12022         * gui.h:
12023         menu-no-selection-hook moved here (used by MSWin).
12024         Move some symbols to general-slots.h.
12025         [6].
12026         [9].
12027
12028         * insdel.c (get_buffer_pos_char):
12029         * insdel.c (get_buffer_range_char):
12030         Add GC comments.
12031
12032         * keymap.c (keymap_lookup_directly):
12033         * keymap.c (keymap_store):
12034         * keymap.c (ensure_meta_prefix_char_keymapp):
12035         * keymap.c (describe_map):
12036         * keymap.h:
12037         Support new button modifiers.
12038
12039         * lisp-disunion.h (wrap_object):
12040         * lisp-disunion.h (XSETOBJ):
12041         Rename make_obj to wrap_object.
12042
12043         * lisp-union.h:
12044         * lisp-union.h (make_int):
12045         * lisp-union.h (make_char):
12046         Support wrap_object.
12047
12048         * lisp.h:
12049         * lisp.h (LIST_LOOP):
12050         * lisp.h (EXTERNAL_LIST_LOOP):
12051         * lisp.h (LIST_LOOP_2):
12052         * lisp.h (EXTERNAL_LIST_LOOP_1):
12053         * lisp.h (EXTERNAL_LIST_LOOP_2):
12054         * lisp.h (EXTERNAL_LIST_LOOP_3):
12055         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12056         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12057         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12058         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12059         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12060         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12061         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12062         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12063         * lisp.h (struct Lisp_Symbol):
12064         * lisp.h (maybe_continuable_error_with_frob):
12065         Fix up section comments.
12066         Add new types for char to indicate usage.
12067         Delete symbols auto-generated from general-slots.h.
12068         Add prototypes for structured error functions.
12069         Add long comments describing looping macros and change interface
12070         so that lvalues are automatically declared.
12071         Add NO_DECLARE macro in case callers want to declare lvalues
12072         themselves.
12073
12074         * lread.c (read_syntax_error):
12075         * lread.c (continuable_read_syntax_error):
12076         * lread.c (read_structure):
12077         * lread.c (sequence_reader):
12078         * lread.c (read_list_conser):
12079         * lread.c (read_compiled_function):
12080         Rename syntax_error and continuable_syntax_error to avoid clash
12081         with same-named structured error functions.
12082
12083         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12084         * menubar-msw.c (populate_menu_add_item):
12085         * menubar-msw.c (populate_or_checksum_helper):
12086         [5].
12087         [9].
12088
12089         * menubar-x.c:
12090         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12091         Mule-ize whole file.
12092
12093         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12094
12095         * mule-charset.c (Fmake_charset):
12096         * mule-wnnfns.c (Fwnn_set_param):
12097         [1].
12098
12099         * ntproc.c (create_child):
12100         * ntproc.c (Fwin32_set_current_locale):
12101         Add comments portending doom.
12102
12103         * objects-msw.c:
12104         * objects-msw.c (old_font_enum_callback_2):
12105         * objects-msw.c (font_enum_callback_1):
12106         * objects-msw.c (mswindows_enumerate_fonts):
12107         [5].
12108
12109         * objects-x.c:
12110         * objects-x.c (allocate_nearest_color):
12111         * objects-x.c (x_parse_nearest_color):
12112         * objects-x.c (x_initialize_color_instance):
12113         * objects-x.c (x_print_color_instance):
12114         * objects-x.c (x_finalize_color_instance):
12115         * objects-x.c (x_valid_color_name_p):
12116         * objects-x.c (x_initialize_font_instance):
12117         * objects-x.c (x_print_font_instance):
12118         * objects-x.c (valid_x_font_name_p):
12119         * objects-x.c (truename_via_FONT_prop):
12120         * objects-x.c (truename_via_random_props):
12121         * objects-x.c (truename_via_XListFonts):
12122         * objects-x.c (x_font_truename):
12123         * objects-x.c (x_font_instance_truename):
12124         * objects-x.c (x_font_instance_properties):
12125         * objects-x.c (x_list_fonts):
12126         * objects-x.c (x_find_charset_font):
12127         Mule-ize entire file.
12128         [7].
12129
12130         * objects-x.h:
12131         Mule-verify.
12132
12133         * print.c:
12134         * print.c (std_handle_out_external):
12135         * print.c (debug_print_no_newline):
12136         * print.c (syms_of_print):
12137         Output to all debugger kinds in debug-print.
12138         Fix console-output code under MSWin to actually work.
12139
12140         * process-nt.c (send_signal):
12141         * process-nt.c (nt_create_process):
12142         Use newer Unicode macros.
12143
12144         * process-unix.c (unix_create_process):
12145         * process-unix.c (unix_canonicalize_host_name):
12146         * process-unix.c (unix_open_network_stream):
12147         [7].
12148
12149         * scrollbar-x.c:
12150         Mule-verify.
12151
12152         * search.c (syms_of_search):
12153         [2].
12154
12155         * select-msw.c (mswindows_destroy_selection):
12156         Use LIST_LOOP_2.
12157
12158         * select-x.c (symbol_to_x_atom):
12159         [7].
12160
12161         * select.c (syms_of_select):
12162         [2].
12163
12164         * sound.c (Fplay_sound_file):
12165         [7].
12166
12167         * specifier.c:
12168         * specifier.c (decode_specifier_type):
12169         * specifier.c (Fvalid_specifier_locale_type_p):
12170         * specifier.c (check_valid_locale_or_locale_type):
12171         * specifier.c (decode_locale):
12172         * specifier.c (decode_locale_type):
12173         * specifier.c (decode_locale_list):
12174         * specifier.c (check_valid_domain):
12175         * specifier.c (decode_specifier_tag_set):
12176         * specifier.c (Fcanonicalize_tag_set):
12177         * specifier.c (Fdefine_specifier_tag):
12178         * specifier.c (Fspecifier_tag_predicate):
12179         * specifier.c (check_valid_inst_list):
12180         * specifier.c (check_valid_spec_list):
12181         * specifier.c (decode_how_to_add_specification):
12182         * specifier.c (check_modifiable_specifier):
12183         * specifier.c (specifier_add_spec):
12184         * specifier.c (boolean_validate):
12185         * specifier.c (display_table_validate):
12186         [9].
12187
12188         * specifier.c (syms_of_specifier):
12189         Move some symbols to general-slots.h.
12190         [2].
12191
12192         * symbols.c:
12193         * symbols.c (Fmapatoms):
12194         * symbols.c (Fapropos_internal):
12195         Add GCPROs.
12196
12197         * symbols.c (set_default_buffer_slot_variable):
12198         * symbols.c (set_default_console_slot_variable):
12199         [1].
12200
12201         * symbols.c (defsymbol_massage_name_1):
12202         * symbols.c (defkeyword_massage_name):
12203         * symbols.c (deferror_1):
12204         * symbols.c (deferror):
12205         * symbols.c (deferror_massage_name_and_message):
12206         * symeval.h:
12207         * symeval.h (DEFSYMBOL):
12208         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12209
12210         * symbols.c (syms_of_symbols):
12211         [2].
12212
12213         * symsinit.h:
12214         * symsinit.h (init_win32): New.
12215         Also new is syms_of_dialog_mswindows.
12216
12217         * syswindows.h:
12218         Add new Unicode macros, missing Cygwin wide-char functions,
12219         convenience conversion macros for Qmswindows_tstr, macros for
12220         encapsulating required MSWin <-> Cygwin filename conversions,
12221         prototype for dynamically-extracted (not in NT 3.51) functions.
12222
12223         * toolbar-x.c:
12224         Mule-verify.
12225
12226         * tooltalk.c (Fadd_tooltalk_message_arg):
12227         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12228         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12229         [7].
12230
12231         * tooltalk.c (syms_of_tooltalk):
12232         [2].
12233
12234         * unexnt.c:
12235         * unexnt.c (unexec):
12236         Fix up headers, declaration of unexec() to be more standard.
12237
12238 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12239
12240         * offix.h: Revert change to guard macros - they're used in offix.c!
12241
12242 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12243
12244         * lisp.h: Defsubred Fdelete.
12245
12246         * console-msw.h:  (msprinter_default_printer): Added.
12247
12248         * console-msw.c (msprinter_canonicalize_console_connection):
12249         (msprinter_canonicalize_device_connection): Added.
12250
12251         * device-msw.c (msprinter_default_printer):
12252         (Fmswingows_get_default_printer):
12253         (signal_enum_priner_error):
12254         (Fmswingows_printer_list): Added.
12255
12256 2000-07-19  Martin Buchholz <martin@xemacs.org>
12257
12258         * XEmacs 21.2.35 is released.
12259
12260 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12261
12262         * select-x.c (x_handle_selection_request):
12263         Text selected in xemacs and pasted into xterm failed to appear.
12264         Spelling fixes and cosmetic changes.
12265
12266 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12267
12268         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12269         XEmacs frame (fix for doubling chars in dialog boxes).
12270
12271 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12272
12273         * select.c (select_convert_in, select_convert_out):
12274         Don't call intern() every time.
12275
12276         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12277         * select.c (vars_of_select): Initialise them.
12278
12279 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12280
12281         * select.c (selection-coercible-types): New.
12282
12283         * select.c (own-selection-internal):
12284         * select.c (get-selection-internal):
12285         MULE bug fix - these should default to COMPOUND_TEXT and not
12286         STRING for MULE. I think.
12287
12288         * select.c (select_convert_out): Use selection-coercible-types
12289         to find types that we can attempt to perform coercions on.
12290
12291 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12292
12293         * mule-wnnfns.c:
12294         * mule-canna.c:
12295         Add coding: cookie to identify encoding.
12296
12297         * mule-canna.c (CANNA_mode_keys): make static.
12298         Use proper prototypes, even for functions of no arguments.
12299         Remove external prototype for Fding().
12300
12301         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12302
12303         * select.c (syms_of_select): Add missing DEFSUBR.
12304
12305 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12306
12307         * select.c (get_selection_internal, own_selection_internal):
12308         Make the type default to STRING, rather than placing a nil type
12309         into Vselection_alist.
12310
12311 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12312
12313         * gpmevent.c (tty_selection_exists_p):
12314         * gpmevent.c (tty_own_selection):
12315         Updated parameter lists.
12316
12317 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12318
12319         * select.h (selection-alist): Removed declaration.
12320
12321         * select.h (get_local_selection):
12322         * select.c (get_local_selection):
12323         Made static.
12324
12325         * select.h (convert_selection): Removed declaration.
12326         * select.c (convert_selection): Removed.
12327         This function belongs in Lisp.
12328
12329         * select.h (select_convert_in): Declare.
12330         * select.h (select_convert_out): Declare.
12331         * select.c (select_convert_in): New.
12332         * select.c (select_convert_out): New.
12333         New conversion functions for other files to call.
12334
12335         * select.h (select_notify_buffer_kill): Declare.
12336         * select.c (select_notify_buffer_kill): New.
12337         New functions that get called from kill-buffer.
12338
12339         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12340         X-specific lisp code.
12341
12342         * select.h: Declare some of the lisp-visible functions for
12343         external use.
12344
12345         * select.c (clean_local_selection_data): Removed. This was
12346         a disgusting function, and previously should have been in
12347         select-x.c in any case. The functionality is now provided
12348         in select-convert-from-integer (select.el).
12349
12350         * select.c (available-selection-types): Fixed stupidity where
12351         INTEGER and ATOM got added twice. Also add STRING when we see an
12352         extent.
12353
12354         * select.c (get-selection-internal): Removed symbol stripping. No
12355         longer causes conversion when data comes from the internal cache.
12356
12357         * select.c (syms_of_select): Added new functions.
12358
12359         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12360         error checking - previously this called abort!
12361
12362         * select-x.c (x_own_selection): Changed comment.
12363
12364         * select-x.c (x_handle_selection_request): Use select_convert_out.
12365         Don't mess with selection-alist; it's an internal variable of select.c.
12366
12367         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12368
12369         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12370         rather than messing with selection-alist.
12371
12372         * select-msw.c (mswindows_get_foreign_selection):
12373         Use TO_INTERNAL_FORMAT rather than hacking.
12374
12375 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12376
12377         * process-unix.c (unix_open_multicast_group):
12378         (unix_open_multicast_group): Remove useless casts.
12379
12380 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12381
12382         * sound.c (Fplay_sound): Fix `unused variable' warning.
12383
12384         * emacs.c (main): Use correct type for _environ on SCO5.
12385
12386 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12387
12388         * console.h (own_selection_method):
12389         * console.h (selection_exists_p_method):
12390         * console.h (available_selection_types_method): New.
12391         * console.h (register_selection_data_type_method): New.
12392         * console.h (selection_data_type_name): New.
12393
12394         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12395         function & alist to track GlobalAlloc()'d handles that need
12396         releasing when the clipboard data gets replaced or emptied.
12397
12398         * event-msw.c (mswindows_wnd_proc): Call it.
12399
12400         * lisp.h, general.c (Qappend): New symbol representing a
12401         `how-to-add' mode.
12402
12403         * select.c (own-selection-internal):
12404         * select.c (selection-exists-p):
12405         * select.c (available-selection-types): New.
12406         * select.c (register-selection-data-type): New.
12407         * select.c (selection-data-type-name): New.  New functions to deal
12408         with device-specific selection data formats.
12409         * select.c (selection-converter-out-alist): Renamed.
12410         * select.c (selection-converter-in-alist): New.
12411         * select.c (selection-appender-alist): New.  Added new alists.
12412         * select.c (syms_of_select, vars_of_select): Added new symbols &
12413         variables.
12414         * select.c (get_local_selection): Split.
12415         * select.c: Removed spurious type checking - selections may now be
12416         of any type, not just strings.
12417         * select.c (own-selection-internal):
12418
12419         * select.h, select.c (convert_selection): New. Created
12420         convert_selection() function based on get_local_selection().
12421         * select.h, select.c (QCF_*): New symbols representing mswindows
12422         clipboard formats.
12423         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12424         symbols representing `how-to-add' modes.
12425
12426         * select-msw.c (x_sym_p): New.
12427         * select-msw.c (symbol_to_ms_cf): New.
12428         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12429         symbols & clipboard formats. Can also handle string names.
12430         * select-msw.c (mswindows_own_selection):
12431         * select-msw.c (mswindows_selection_exists_p):
12432         Added `data-type' parameter. Use it.
12433         * select-msw.c (mswindows_available_selection_types): New.
12434         * select-msw.c (mswindows_register_selection_data_type): New.
12435         * select-msw.c (mswindows_selection_data_type_name): New.
12436         * select-msw.c (mswindows_own_selection):
12437         * select-msw.c (mswindows_get_foreign_selection):
12438         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12439         * select-msw.c (console_create_select_mswindows): Added new methods.
12440         * select-msw.c (mswindows_destroy_selection): New.
12441         * select-msw.c (Vhandle_alist): New list.
12442         * select-msw.c (mswindows_own_selection):
12443
12444         * select-x.c (x_own_selection):
12445         * select-x.c (x_selection_exists_p):
12446         * select-x.c: Added some comments about maybe using new
12447         functionality.
12448         * select-x.c (x_own_selection):
12449
12450         * specifier.c: Remove definition of Qappend (now in general.c)
12451         * specifier.c (syms_of_specifier): Remove Qappend.
12452
12453 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12454
12455         * config.h.in: Add socklen_t.
12456
12457         * s/decosf4-0.h: No special compiler flags needed or desired.
12458         In particular, undefine _BSD for DEC OSF 4.0.
12459
12460 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12461
12462         * redisplay-msw.c (msprinter_frame_output_end): Added.
12463         (console_type_create_redisplay_mswindows): Referred the above.
12464
12465         * frame.c (setup_frame_without_minibuffer): Do not create a
12466         default minibuffer frame on a printer device.
12467
12468         * frame-msw.c (apply_dc_geometry): Added.
12469         (msprinter_start_page):
12470         (msprinter_init_frame_3):
12471         (msprinter_eject_page): Use it.
12472
12473         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12474         and removed residual duplex and orientation properties.
12475
12476 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12477
12478         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12479
12480         * unexalpha.c: Remove system prototypes from C sources!
12481
12482 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12483
12484         * eval.c: Remove references to M-x edit-options in DEFUNs for
12485         `defvar' and `defconst'.
12486
12487 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12488
12489         * config.h.in: Remove SMART_INCLUDE hackery.
12490
12491         PostgreSQL hacking:
12492         * config.h.in: Don't use SMART_INCLUDE.
12493
12494         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12495         * inline.c: Simply #include "postgresql.h"
12496         * postgresql.c:
12497         - Don't use SMART_INCLUDE
12498         - Use simply "const".
12499         - Use standard doc string conventions.
12500         - Use correct type for result of PQstatus.
12501
12502 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12503
12504         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12505
12506         C++ compilation changes.
12507         * config.h.in (EXTERN_C): Define.
12508         * config.h.in (not): This is also a C++ keyword.
12509         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12510         * cm.c: Use EXTERN_C.
12511         * redisplay-tty.c: Use EXTERN_C.
12512         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12513
12514 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12515
12516         * general.c: Remove duplicate definition for Qfunction.
12517
12518 2000-07-08  Ben Wing  <ben@xemacs.org>
12519
12520         * device-msw.c (msprinter_init_device):
12521         * device-msw.c (sync_printer_with_devmode):
12522         * device-msw.c (handle_devmode_changes):
12523         * device-msw.c (print_dialog_worker):
12524         * device-msw.c (Fmsprinter_apply_settings):
12525         * device-msw.c (hash_devmode):
12526         * device-msw.c (Fmsprinter_settings_despecialize):
12527         use Qmswindows_tstr, not Qctext.
12528
12529         * vm-limit.c (check_memory_limits):
12530         avoid infinite loop printing warning messages.
12531
12532 2000-07-05  Craig Lanning  <lanning@scra.org>
12533
12534         * Makefile.in.in: Add support for including the Windows resources
12535         when building with the cygwin and mingw targets.
12536
12537         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12538         not set or not correct.
12539         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12540         (init_initial_directory): Don't try to use $PWD on the
12541         WIN32_NATIVE target.
12542
12543         * s\cygwin32.h:
12544         [[Add -mwindows to eliminate console window.]] not required --ben
12545         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12546         (MAIL_USE_POP): removed; now handled by configure.
12547
12548         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12549         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12550         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12551         (MAIL_USE_POP): removed; now handled by configure.
12552         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12553         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12554         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12555         constant string.
12556         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12557         up from <winsock.h> via systime.h.
12558         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12559         (getpagesize): from Dan Holmsand, added.
12560         Added #endif which was left dangling by Ben's mega patch; added
12561         comment to help prevent this in the future.
12562
12563         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12564
12565 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12566
12567         * console-msw.h (struct mswindows_device): Removed unnecessary
12568         cached device geometry values.
12569         Added update_tick and an accessor macro.
12570         (Lisp_Devmode): Added lrecord declaration.
12571         (struct msprinter_device): Contain devmode as a Lisp object.
12572         Added mswindows_get_selected_frame_hwnd();
12573
12574         * console.h (struct console_methods): Indentation nitpicking.
12575
12576         * device-msw.c (mswindows_init_device): Do not initialize geometry
12577         cache. Initialize update tick.
12578         (mswindows_device_system_metrics): Ask the device for its geometry.
12579         (global_free_2_maybe):
12580         (devmode_to_hglobal):
12581         (handle_printer_changes):
12582         (ensure_not_printing):
12583         (print_dialog_worker):
12584         (Fmsprinter_print_setup_dialog):
12585         (Fmsprinter_print_dialog):
12586         (plist_get_margin):
12587         (plist_set_margin):
12588         (Fmsprinter_page_setup_dialog): Added functions.
12589         (sync_printer_with_devmode):
12590         (handle_devmode_changes):
12591         (Fmsprinter_get_settings):
12592         (Fmsprinter_select_settings):
12593         (Fmsprinter_apply_settings):
12594         (allocate_devmode):
12595         (Fmsprinter_settings_copy):
12596         (Fmsprinter_settings_despecialize):
12597         (print_devmode):
12598         (finalize_devmode):
12599         (equal_devmode):
12600         (hash_devmode): Added functions
12601         (syms_of_device_mswindows): Init devmode lrecord class.
12602
12603         * device.h: Added an exfun for find-device.
12604
12605         * event-msw.c (mswindows_wnd_proc): Do not update the cached
12606         geometry; although, recreate the device compatible DC.
12607
12608         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
12609         (msprinter_init_frame_3):
12610         (msprinter_frame_property):
12611         (msprinter_internal_frame_property_p):
12612         (msprinter_frame_properties):
12613         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
12614         print job properties (will move to device settings).
12615
12616         * lisp.h: Added symbols.
12617
12618         * general.c (syms_of_general): Declared them.
12619
12620         * hash.c (string_hash): Added.
12621
12622         * lrecord.h (lrecord_type): Added devmode lrecord type.
12623
12624 2000-07-02  Mike Sperber <mike@xemacs.org>
12625
12626         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
12627         FreeBSD 4.0.
12628
12629 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
12630
12631         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
12632         integer.
12633
12634 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
12635
12636         * data.c (Fstring_to_number): Don't recognize floating point if
12637         base is not 10.
12638
12639 2000-06-22  Martin Buchholz  <martin@xemacs.org>
12640
12641         * glyphs-widget.c (tab_control_query_geometry):
12642         (widget_query_geometry):
12643         (button_query_geometry):
12644         * glyphs.c (text_query_geometry):
12645         Enforce type correctness.
12646
12647 2000-06-18  Martin Buchholz  <martin@xemacs.org>
12648
12649         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
12650         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
12651
12652 2000-06-17  Martin Buchholz  <martin@xemacs.org>
12653
12654         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
12655         conflicts with gcc's fixincluded version of FOO.h.
12656
12657         * glyphs.h (image_instance_geometry): Remove trailing `,'
12658
12659 2000-06-08  Mike Alexander  <mta@arbortext.com>
12660
12661         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
12662         (shove_thread): Don't write the same output twice
12663         (make_ntpipe_output_stream): Increase priority of shove thread
12664         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
12665         chance to run
12666         (ntpipe_shove_closer): Don't delete the pipe until we're done with
12667         it.
12668
12669 2000-06-12  Ben Wing  <ben@xemacs.org>
12670
12671         * s\mingw32.h (sigset):
12672         * s\windowsnt.h (sigset):
12673         rename msw_ to mswindows_ for consistency with general convention.
12674
12675 2000-06-12  Ben Wing  <ben@xemacs.org>
12676
12677         * console-msw.c:
12678         * console-msw.c (mswindows_get_console_hwnd):
12679         * console-msw.c (mswindows_ensure_console_allocated):
12680         * console-msw.c (mswindows_hide_console):
12681         * console-msw.c (mswindows_show_console):
12682         * console-msw.c (mswindows_ensure_console_buffered):
12683         * console-msw.c (mswindows_output_console_string):
12684         * console-msw.c (mswindows_windows9x_p):
12685         * console-msw.h:
12686         * device-msw.c (mswindows_get_workspace_coords):
12687         * device-msw.c (mswindows_device_system_metrics):
12688         * dialog-msw.c (mswindows_popup_dialog_box):
12689         * event-msw.c (mswindows_wnd_proc):
12690         * frame-msw.c (mswindows_size_frame_internal):
12691         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12692         * menubar-msw.c (displayable_menu_item):
12693         * menubar-msw.c (mswindows_char_is_accelerator):
12694         * nt.c:
12695         * nt.c (mswindows_sigset):
12696         * nt.c (mswindows_sigrelse):
12697         * nt.c (mswindows_sigpause):
12698         * nt.c (mswindows_raise):
12699         * nt.c (timer_proc):
12700         * ntproc.c:
12701         * ntproc.c (find_child_console):
12702         * ntproc.c (sys_kill):
12703         * print.c:
12704         * print.c (std_handle_out_external):
12705         * process-nt.c (find_child_console):
12706         * process-nt.c (send_signal_the_95_way):
12707         * process-nt.c (ensure_console_window_exists):
12708         * process-nt.c (nt_create_process):
12709         * syssignal.h:
12710         rename msw_ to mswindows_ for consistency with general convention.
12711
12712         * emacs.c:
12713         * dumper.c:
12714         include nt.h, not syswindows.h.
12715
12716         * nt.c (mswindows_fstat):
12717         * nt.c (mswindows_stat):
12718         prefix mswindows_ instead of attempting to directly override the
12719         library functions.  fix declarations.
12720
12721         * nt.h:
12722         include syswindows.h.  move some sysdep.h stuff here.
12723
12724         * ntheap.h:
12725         include syswindows.h, not <windows.h>.
12726
12727         * ntplay.c:
12728         clean up headers.
12729
12730         * sysdep.c:
12731         clean up headers.
12732
12733         * sysdep.c (sys_fstat):
12734         * sysdep.c (sys_stat):
12735         call mswindows versions when appropriate.
12736
12737         * sysdep.h:
12738         move mswin decls to nt.h.
12739
12740         * syswindows.h:
12741         add long comment describing appropriate use of the various windows
12742         headers.
12743
12744 2000-06-11  Ben Wing  <ben@xemacs.org>
12745
12746         * device-x.c: Correct doc string for sixth arg of x-get-resource.
12747
12748 2000-06-10  Ben Wing  <ben@xemacs.org>
12749
12750         * Makefile.in.in (release):
12751         Correction to make sure xemacs.exe always dumped when correct.
12752
12753         * alloca.c:
12754         * balloon_help.c:
12755         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
12756
12757         * buffer.c (set_buffer_internal):
12758         [[[[2]]]]: Remove HAVE_FEP code.
12759
12760         * buffer.c (init_initial_directory):
12761         [3].
12762
12763         * bytecode.c:
12764         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
12765         individual files.
12766
12767         * callproc.c:
12768         * callproc.c (call_process_cleanup):
12769         * callproc.c (Fold_call_process_internal):
12770         * callproc.c (child_setup):
12771         * callproc.c (getenv_internal):
12772         * callproc.c (init_callproc):
12773         * callproc.c (vars_of_callproc):
12774         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
12775         __CYGWIN32__ -> CYGWIN.
12776         DOS_NT -> WIN32_NATIVE.
12777         Remove MSDOS support/references, converting to WIN32_NATIVE
12778           where correct.
12779         __MINGW32__ -> MINGW.
12780         Fix windows.h includes.
12781         Remove bogus HAVE_NTGUI.
12782
12783         * config.h.in:
12784         [2].
12785
12786         * console-msw.c:
12787         mswindows_message_outputted added for use in allowing startup
12788         errors on the console to be seen.
12789
12790         * console-msw.c (msw_ensure_console_allocated):
12791         * console-msw.c (msw_output_console_string):
12792         * console-msw.c (DHEADER):
12793         * console-msw.c (DOPAQUE_DATA):
12794         * console-msw.c (DEVENT):
12795         * console-msw.c (DCONS):
12796         * console-msw.c (DCONSCDR):
12797         * console-msw.c (DSTRING):
12798         * console-msw.c (DVECTOR):
12799         * console-msw.c (DSYMBOL):
12800         * console-msw.c (DSYMNAME):
12801         Fix warnings.
12802
12803         * console-stream.c (stream_init_console):
12804         Fix text/binary problems.
12805
12806         * device-msw.c:
12807         * device-msw.c (mswindows_finish_init_device):
12808         * device-msw.c (mswindows_delete_device):
12809         [1].
12810
12811         * device.c (handle_asynch_device_change):
12812         [3].
12813
12814         * dgif_lib.c:
12815         * dgif_lib.c (DGifOpenFileName):
12816         * dgif_lib.c (DGifOpenFileHandle):
12817         * dgif_lib.c (DGifGetLine):
12818         * dgif_lib.c (DGifGetPixel):
12819         Added config.h/lisp.h, fix up includes.
12820         [1].
12821
12822         * dired-msw.c:
12823         [4].
12824
12825         * dired.c:
12826         * dired.c (file_name_completion):
12827         * dired.c (Ffile_attributes):
12828         * dired.c (syms_of_dired):
12829         [1].
12830
12831         * dumper.c:
12832         * dumper.c (pdump_file_unmap):
12833         * dumper.c (pdump_load):
12834         [1].
12835
12836         * editfns.c:
12837         * editfns.c (Ftemp_directory):
12838         * editfns.c (user_login_name):
12839         * editfns.c (Fuser_real_login_name):
12840         * editfns.c (get_home_directory):
12841         [1].
12842
12843         * elhash.c (finish_marking_weak_hash_tables):
12844         [[[[5]]]]: Fix GCC warnings.
12845
12846         * emacs.c:
12847         * emacs.c (mswindows_handle_hardware_exceptions):
12848         * emacs.c (make_arg_list_1):
12849         * emacs.c (main_1):
12850         * emacs.c (Fkill_emacs):
12851         * emacs.c (Fdump_emacs):
12852         [1].
12853         Fix problems with nested crashes, add long comment.
12854
12855         * event-Xt.c (init_event_Xt_late):
12856         [1].
12857
12858         * event-msw.c:
12859         * event-msw.c (mswindows_dde_callback):
12860         * event-msw.c (mswindows_handle_sticky_modifiers):
12861         * event-msw.c (mswindows_wnd_proc):
12862         [1].
12863         [5].
12864
12865         * events.c (character_to_event):
12866         [1].
12867
12868         * fileio.c:
12869         * fileio.c (Ffile_name_directory):
12870         * fileio.c (Ffile_name_nondirectory):
12871         * fileio.c (directory_file_name):
12872         * fileio.c (Fexpand_file_name):
12873         * fileio.c (Fsubstitute_in_file_name):
12874         * fileio.c (Ffile_name_absolute_p):
12875         * fileio.c (check_executable):
12876         * fileio.c (Ffile_readable_p):
12877         * fileio.c (Ffile_accessible_directory_p):
12878         * fileio.c (Ffile_modes):
12879         * fileio.c (Funix_sync):
12880         * fileio.c (vars_of_fileio):
12881         [1]. [4].
12882
12883         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
12884
12885         Expand getdefdir defn.
12886         Fix bogus rename() comment.
12887
12888         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
12889         to use standard XEmacs include files, e.g. sysfile.h, rather
12890         than system-specific includes.
12891
12892         * fns.c:
12893         * fns.c (Fsubseq):
12894         [5]. [6].
12895
12896         * frame.c (vars_of_frame):
12897         [1].
12898
12899         * getloadavg.c:
12900         * getloadavg.c (getloadavg):
12901         [1]. [6].
12902         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
12903         (We don't use it elsewhere in the code; just add a comment.)
12904
12905         * gif_io.c:
12906         [6].
12907         Add config.h.
12908
12909         * glyphs-msw.c:
12910         * glyphs-msw.c (mswindows_resource_instantiate):
12911         [1].
12912
12913         * glyphs-x.c (x_native_layout_instantiate):
12914         [5].
12915
12916         * gui-msw.c (Fmswindows_shell_execute):
12917         [1].
12918
12919         * insdel.c:
12920         [4].
12921
12922         * lisp.h:
12923         [4]. [5].
12924
12925         * lread.c (locate_file_in_directory_mapper):
12926         [1].
12927
12928         * lstream.c:
12929         [4].
12930
12931         * mem-limits.h:
12932         * mem-limits.h (get_lim_data):
12933         [1].
12934
12935         * menubar-msw.c:
12936         [4].
12937
12938         * ndir.h:
12939         [1].
12940
12941         * nt.c:
12942         * nt.c (getwd):
12943         * nt.c (closedir):
12944         * nt.c (rva_to_section):
12945         * nt.c (mswindows_executable_type):
12946         [1]. [6].
12947         Fix closedir() defn.
12948
12949         * nt.h:
12950         [[[[8]]]]: *_OK defs moved to sysfile.h.
12951
12952         * ntproc.c:
12953         [6]. [7].
12954
12955         * objects-x.c:
12956         [4].
12957
12958         * print.c:
12959         * print.c (std_handle_out_external):
12960         [1]. [4].
12961
12962         * process-nt.c:
12963         * process-nt.c (nt_create_process):
12964         [6].
12965         try to fix process quoting somewhat.
12966
12967         * process-unix.c (unix_create_process):
12968         [1].
12969
12970         * process.c:
12971         * process.c (vars_of_process):
12972         Add Vnull_device.
12973
12974         * process.h:
12975         [1].
12976
12977         * realpath.c:
12978         * realpath.c (xrealpath):
12979         [1].
12980
12981         * redisplay-tty.c (init_tty_for_redisplay):
12982         [3].
12983
12984         * redisplay.c:
12985         [4]. [6].
12986
12987         * scrollbar-msw.c:
12988         [4].
12989
12990         * sheap.c:
12991         * sheap.c (more_static_core):
12992         * sheap.c (report_sheap_usage):
12993         [5]. [6].
12994
12995         * signal.c:
12996         * signal.c (alarm_signal):
12997         [1]. [6].
12998
12999         * sound.c:
13000         [6].
13001
13002         * strftime.c:
13003         * strftime.c (zone_name):
13004         [1]. [5].
13005
13006         * symsinit.h (init_sunpro):
13007         [1].
13008
13009         * syscommctrl.h:
13010         commctrl.h not in Cygwin b20.1.
13011
13012         * sysdep.c:
13013         * sysdep.c (endif):
13014         * sysdep.c (sys_subshell):
13015         * sysdep.c (init_baud_rate):
13016         * sysdep.c (emacs_get_tty):
13017         * sysdep.c (emacs_set_tty):
13018         * sysdep.c (tty_init_sys_modes_on_device):
13019         * sysdep.c (init_system_name):
13020         * sysdep.c (sys_open):
13021         * sysdep.c (interruptible_open):
13022         * sysdep.c (sys_fopen):
13023         * sysdep.c (sys_mkdir):
13024         * sysdep.c (sys_rename):
13025         * sysdep.c (get_process_times_1):
13026         [1]. [6].
13027
13028         * sysdep.h:
13029         [1].
13030
13031         * sysdir.h:
13032         * sysdir.h (DIRENTRY_NONEMPTY):
13033         [1]. [6].
13034
13035         * sysdll.c (dll_init):
13036         * sysdll.h:
13037         [1].
13038
13039         * sysfile.h:
13040         [1]. [6]. [8].
13041         added text/binary defs.
13042
13043         * sysfloat.h:
13044         [1].
13045
13046         * sysproc.h:
13047         * sysproc.h (EDESTADDRREQ):
13048         * sysproc.h (poll_fds_for_input):
13049         [1]. [6].
13050
13051         * syspwd.h:
13052         [6].
13053
13054         * syssignal.h:
13055         [1].
13056
13057         * systime.h:
13058         [1]. [6].
13059
13060         * systty.h:
13061         [1].
13062
13063         * syswindows.h:
13064         [1].
13065         Always define WIN32_LEAN_AND_MEAN.
13066
13067         * unexcw.c (unexec):
13068         [5].
13069
13070         * unexec.c:
13071         * unexec.c (copy_text_and_data):
13072         * unexec.c (adjust_lnnoptrs):
13073         [1].
13074
13075         * unexnt.c:
13076         * unexnt.c (_start):
13077         [1].
13078
13079 2000-06-07  Ben Wing  <ben@xemacs.org>
13080
13081         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13082         was used only as a model.  We've long since extracted any useful
13083         logic or code out of this. (I just did an exhaustive search.)
13084
13085         * s\msdos.h: Removed.
13086
13087         * s\windows95.h: Removed.
13088
13089 2000-06-10  Ben Wing  <ben@xemacs.org>
13090
13091         * s\cygwin32.h:
13092         [1]. [5].
13093         Don't use extern with fun defs.
13094
13095         * s\mingw32.h:
13096         [1]. [7].
13097         Remove nt\inc include.
13098         Remove getdisk, getdefdir. (The former is unused, the latter
13099         expanded in fileio.h.)
13100
13101         * s\windowsnt.h:
13102         * s\windowsnt.h (WIN32_NATIVE):
13103         * s\windowsnt.h (HAVE_STRCASECMP):
13104         [1]. [7].
13105         Add long comment about preprocessor changes.
13106         Remove getdisk, getdefdir. (The former is unused, the latter
13107         expanded in fileio.h.)
13108
13109 2000-06-10  Ben Wing  <ben@xemacs.org>
13110
13111         * m\arm.h:
13112         * m\delta.h:
13113         * m\intel386.h:
13114         * m\sequent.h:
13115         * m\template.h:
13116         * m\windowsnt.h:
13117         [1].
13118         Remove bogus/unused NO_SOCK_SIGIO.
13119
13120 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13121
13122         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13123         not an Emchar.
13124
13125 2000-06-04  Mike Sperber <mike@xemacs.org>
13126
13127         * casetab.c (set_case_table): For `set-standard-case-table',
13128         actually deposit the new case tables where the rest of XEmacs can
13129         see them.
13130
13131 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13132
13133         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13134
13135 2000-06-05  Ben Wing  <ben@xemacs.org>
13136
13137         * callproc.c (child_setup): Don't do close_load_descs() under
13138         MS Windows.  Put in a comment explaining why.
13139
13140 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13141
13142         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13143         Toolkit shell" which breaks `kill-compilation' on Windows NT
13144         native, retaining STDERR handling improvements.
13145
13146 2000-06-01  Andreas Jaeger  <aj@suse.de>
13147
13148         * s/s390.h: Support for S390, based on a patch by Martin
13149         Schwidefsky <schwidefsky@de.ibm.com>.
13150
13151 2000-05-30  Andy Piper  <andy@xemacs.org>
13152
13153         * window.c (allocate_window):
13154         (make_dummy_parent):
13155         (Fset_window_configuration): use new hashtable type.
13156
13157         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13158         (struct image_instantiator_methods):
13159         (struct Lisp_Image_Instance): make instance geometry signed.
13160
13161         * glyphs.c (instantiate_image_instantiator):
13162         (image_instance_query_geometry):
13163         (image_instance_layout):
13164         (image_instance_layout):
13165         (query_string_geometry):
13166         (text_query_geometry):
13167         (image_instantiate):
13168         (image_instantiate):
13169         (cache_subwindow_instance_in_frame_maybe):
13170         (subwindow_query_geometry): make instance geometry signed.
13171
13172         * glyphs-widget.c (widget_query_geometry):
13173         (widget_layout):
13174         (button_query_geometry):
13175         (tree_view_query_geometry):
13176         (tab_control_query_geometry):
13177         (layout_query_geometry):
13178         (layout_layout):
13179         (native_layout_layout): make instance geometry signed.
13180
13181 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13182
13183         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13184         constant.
13185
13186         * general.c (syms_of_general): Add Qfull_assoc symbol.
13187
13188         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13189         correctly.
13190         (decode_weak_list_type): Decode full-assoc type.
13191         (encode_weak_list_type): Encode full-assoc type.
13192         (Fmake_weak_list): Update doc string.
13193
13194 2000-05-30  Andy Piper  <andy@xemacs.org>
13195
13196         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13197
13198         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13199         (decode_hash_table_weakness): ditto.
13200         (Fhash_table_weakness): ditto.
13201         (Fhash_table_type): ditto.
13202         (finish_marking_weak_hash_tables): ditto.
13203         (hash_table_weakness_validate): ditto.
13204         (syms_of_elhash): ditto.
13205
13206 2000-05-28  Martin Buchholz <martin@xemacs.org>
13207
13208         * XEmacs 21.2.34 is released.
13209
13210 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13211
13212         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13213         start cache.
13214         (updating_line_start_cache): Gone.
13215         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13216         generic code to force a minimum of 1 line laid out in the
13217         CMOTION_DISP case.
13218
13219 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13220
13221         * glyphs.c (instantiate_image_instantiator): Check for initialized
13222         height & width no longer special cases IMAGE_NOTHING.
13223         (nothing_instantiate): Set height and width of instance.
13224
13225 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13226
13227         * unexelf.c (unexec): Search for ".data" section.
13228         Initialize new_data2_offset from old_data_index.
13229         Remove redundant check for ElfW.
13230
13231 2000-05-23  Andy Piper  <andy@xemacs.org>
13232
13233         * glyphs.c (get_image_instantiator_governing_domain): allow more
13234         specific domains as the governing domain rather than expecting an
13235         exact match. This fixes problems with layouts.
13236
13237 2000-05-22  Andy Piper  <andy@xemacs.org>
13238
13239         * redisplay-output.c (compare_runes): check for non-images
13240
13241         * glyphs.c (set_glyph_dirty_p): ditto.
13242         (update_glyph_cachel_data): ditto.
13243
13244         * glyphs-widget.c (layout_post_instantiate): ditto.
13245         (layout_post_instantiate): ditto.
13246
13247         * event-msw.c (mswindows_wnd_proc): warning removal.
13248
13249 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13250
13251         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13252
13253         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13254
13255         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13256
13257         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13258         (mswindows_executable_type): mingw32 now has enough headers for
13259         this to work.
13260
13261 2000-05-20  Andy Piper  <andy@xemacs.org>
13262
13263         * console-msw.c (mswindows_output_last_error): ; -> ,
13264
13265 2000-05-12  Andy Piper  <andy@xemacs.org>
13266
13267         * console-msw.c (FROB): compare ints with ints.
13268
13269 2000-05-11  Andy Piper  <andy@xemacs.org>
13270
13271         * glyphs-x.c (x_finalize_image_instance): make minimal build
13272         happy.
13273
13274 2000-05-20  Ben Wing  <ben@xemacs.org>
13275
13276         * event-Xt.c:
13277         * event-Xt.c (vars_of_event_Xt):
13278         move modifier-keys-are-sticky to event-stream.c.
13279
13280         * event-msw.c:
13281         * event-msw.c (mswindows_enqueue_mouse_button_event):
13282         * event-msw.c (key_needs_default_processing_p):
13283         * event-msw.c (XEMSW_LCONTROL):
13284         * event-msw.c (mswindows_handle_sticky_modifiers):
13285         * event-msw.c (FROB):
13286         * event-msw.c (clear_sticky_modifiers):
13287         * event-msw.c (output_modifier_keyboard_state):
13288         * event-msw.c (output_alt_keyboard_state):
13289         * event-msw.c (mswindows_wnd_proc):
13290         * event-msw.c (mswindows_modifier_state):
13291         * event-msw.c (emacs_mswindows_handle_magic_event):
13292         implement sticky modifiers.
13293
13294         * event-stream.c:
13295         * event-stream.c (vars_of_event_stream):
13296         move modifier-keys-are-sticky here.
13297
13298         * lisp.h:
13299         add CHECK_FUNCTION.
13300
13301         * rangetab.c:
13302         implement map-range-table.
13303
13304
13305 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13306
13307         * redisplay-tty.c (reset_tty_modes):
13308         (tty_redisplay_shutdown): Adjust argument type to
13309         tty_frame_output_end.
13310
13311 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13312
13313         * eval.c (Fbacktrace): Don't output a line with only right
13314         parenthesis.
13315
13316 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13317
13318         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13319         (Fpq_reset_poll): Ditto.
13320
13321 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13322
13323         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13324
13325 2000-05-16  Ben Wing  <ben@xemacs.org>
13326
13327         * buffer.c:
13328         * buffer.c (dfc_convert_to/from_internal_format):
13329         * buffer.c (reinit_vars_of_buffer):
13330         Fix conversion functions to allow reentrancy.
13331
13332         * console-msw.c:
13333         * console-msw.c (mswindows_output_last_error):
13334         New fun, generally useful -- output a human-readable
13335         version of GetLastError() on the console.
13336
13337         * console-msw.h:
13338         * console-msw.h (struct mswindows_frame):
13339         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13340
13341         * console-stream.c (stream_output_begin):
13342         * console-stream.c (stream_output_end):
13343         * console-stream.c (stream_output_vertical_divider):
13344         * console-stream.c (stream_clear_region):
13345         * console-stream.c (stream_flash):
13346         * console-stream.c (console_type_create_stream):
13347         Delete blank stream methods, not needed.
13348
13349         * console.h (struct console_methods):
13350         Split begin/end methods into window and frame.
13351
13352         * event-msw.c:
13353         * event-msw.c (mswindows_handle_paint):
13354         * event-msw.c (output_alt_keyboard_state):
13355         * event-msw.c (mswindows_wnd_proc):
13356         * event-msw.c (vars_of_event_mswindows):
13357         Comment about problems with ignored-expose.
13358         Define mswindows-debug-events; not really implemented.
13359
13360         * frame-msw.c (mswindows_init_frame_1):
13361         random cleanups.
13362
13363         * glyphs-msw.c:
13364         * glyphs-msw.c (begin_defer_window_pos):
13365         * glyphs-msw.c (mswindows_unmap_subwindow):
13366         * glyphs-msw.c (mswindows_map_subwindow):
13367         * glyphs-msw.c (mswindows_resize_subwindow):
13368         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13369
13370         * glyphs.c (make_image_instance_1):
13371         Fix crash.
13372
13373         * gutter.c (Fredisplay_gutter_area):
13374         Use new begin/end methods.
13375
13376         * lisp.h (Dynarr_new2):
13377         New creation fun.
13378
13379         * redisplay-msw.c:
13380         * redisplay-msw.c (mswindows_frame_output_begin):
13381         * redisplay-msw.c (mswindows_frame_output_end):
13382         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13383         New begin/end methods -- handle DeferWindowPos.
13384
13385         * redisplay-output.c (redisplay_move_cursor):
13386         * redisplay-output.c (redraw_cursor_in_window):
13387         * redisplay-output.c (redisplay_update_line):
13388         * redisplay-output.c (redisplay_output_window):
13389         New begin/end methods.
13390
13391         * redisplay-tty.c:
13392         * redisplay-tty.c (tty_frame_output_begin):
13393         * redisplay-tty.c (tty_frame_output_end):
13394         * redisplay-tty.c (console_type_create_redisplay_tty):
13395         New begin/end methods.
13396
13397         * redisplay-x.c:
13398         * redisplay-x.c (x_window_output_begin):
13399         * redisplay-x.c (x_window_output_end):
13400         * redisplay-x.c (console_type_create_redisplay_x):
13401         New begin/end methods.
13402
13403         * redisplay.c (redisplay_frame):
13404         * redisplay.c (Fredisplay_echo_area):
13405         New begin/end methods.
13406         use MAYBE_DEVMETH for clear_frame; it may not exist.
13407
13408         * window.h (WINDOW_XFRAME):
13409         WINDOW_XFOO macros -- get locale and decode struct pointer.
13410
13411
13412 2000-05-12  Ben Wing  <ben@xemacs.org>
13413
13414         * emacs.c:
13415         * emacs.c (ensure_no_quitting_from_now_on):
13416         * emacs.c (fatal_error_signal):
13417         * emacs.c (mswindows_handle_hardware_exceptions):
13418         * emacs.c (main):
13419         * emacs.c (Fkill_emacs):
13420         * emacs.c (shut_down_emacs):
13421         * emacs.c (assert_failed):
13422         various improvements in fatal error handling.
13423
13424         * eval.c:
13425         move preparing_for_armageddon to emacs.c.
13426
13427         * lisp.h:
13428         declare fatal_error_in_progress.
13429
13430         * print.c:
13431         * print.c (std_handle_out_external):
13432         * print.c (std_handle_out_va):
13433         * print.c (stderr_out):
13434         * print.c (stdout_out):
13435         use console under mswin when no standard output.
13436         don't do code conversion during fatal error.
13437
13438         * scrollbar.c (Fscrollbar_page_up):
13439         * scrollbar.c (Fscrollbar_page_down):
13440         fix missing else.  reindent.
13441
13442 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13443
13444         Emergency fix.
13445
13446         * glyphs.h (GLYPH_CACHEL_DESCENT):
13447         (GLYPH_CACHEL_DESCENT):
13448         (GLYPH_CACHEL_DESCENT):
13449         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13450         used in case these are inline functions.
13451         Use more absurd values to error check.
13452
13453         include window.h for error check functions.
13454
13455 2000-05-11  Ben Wing  <ben@xemacs.org>
13456
13457         * cmdloop.c (Freally_early_error_handler):
13458         Display message box under windows; otherwise, message will disappear
13459         before it can be viewed.
13460
13461         * console-msw.c:
13462         * console-msw.c (Fmswindows_message_box):
13463         * console-msw.c (FROB):
13464         * console-msw.c (syms_of_console_mswindows):
13465         Define new fun `mswindows-message-box'.
13466         #### I will merge this into `popup-dialog-box'; just give me
13467         a bit of time.
13468
13469         * general.c:
13470         * general.c (syms_of_general):
13471         Some new symbols used in `mswindows-message-box'.
13472
13473         * glyphs.c:
13474         * glyphs.c (Fset_image_instance_property):
13475         put warning in this fun.
13476
13477         * glyphs.h:
13478         * glyphs.h (GLYPH_CACHEL_WIDTH):
13479         * glyphs.h (GLYPH_CACHEL_ASCENT):
13480         * glyphs.h (GLYPH_CACHEL):
13481         * glyphs.h (GLYPH_CACHEL_GLYPH):
13482         define error-checking versions to try to catch a bug i've seen --
13483         redisplay gets in an infinite loop because the glyph width of the
13484         continuation glyph is 65535.
13485
13486         * lisp.h:
13487         Extern message-box stuff.
13488
13489         * window.c (allocate_window):
13490         * window.c (make_dummy_parent):
13491         * window.c (Fset_window_configuration):
13492         Use EQUAL not EQ for subwindow caches to make them work a bit
13493         better. (Something is still very broken.)
13494
13495
13496 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13497
13498         * glyphs.c (image_instantiate): Suppress gcc warnings.
13499         (Fmake_image_instance): Fix doc string.
13500         * specifier.c (Fmake_specifier): Ditto.
13501
13502 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13503
13504         * paths.h.in (PATH_LOCK): Removed.
13505         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13506         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13507
13508 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13509
13510         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13511         Document (featurep '(and xemacs 21.02)).
13512
13513 2000-05-09  Ben Wing  <ben@xemacs.org>
13514
13515         * buffer.c (complex_vars_of_buffer):
13516         update modeline-format doc.
13517
13518         * device.h:
13519         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13520
13521         * emacs.c:
13522         timeline of all released versions of Emacs, for use in creating
13523         authorship comments and in synching up.
13524
13525         * glyphs-widget.c (image_instantiator_buttons):
13526         * glyphs-widget.c (image_instantiator_edit_fields):
13527         * glyphs-widget.c (image_instantiator_combo_box):
13528         * glyphs-widget.c (image_instantiator_scrollbar):
13529         * glyphs-widget.c (image_instantiator_progress_guage):
13530         * glyphs-widget.c (image_instantiator_tree_view):
13531         * glyphs-widget.c (image_instantiator_tab_control):
13532         * glyphs-widget.c (image_instantiator_labels):
13533         * glyphs-widget.c (image_instantiator_layout):
13534         * glyphs-widget.c (image_instantiator_native_layout):
13535         rename decode_domain method to governing_domain.
13536
13537         * glyphs.c:
13538         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13539         * glyphs.c (add_entry_to_device_ii_format_list):
13540         make sure we don't put an entry more than once into the list.
13541         * glyphs.c (check_instance_cache_mapper):
13542         *************************************************************
13543         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13544         HAVE BEEN GETTING.
13545         *************************************************************
13546         * glyphs.c (get_image_instantiator_governing_domain):
13547         clean up, expand on new concept of governing domain.
13548         * glyphs.c (instantiate_image_instantiator):
13549         * glyphs.c (allocate_image_instance):
13550         use governing_domain instead of cache_domain in naming.
13551         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13552         * glyphs.c (make_image_instance_1):
13553         * glyphs.c (Fmake_image_instance):
13554         allow for any domain (not just device), and process the
13555         governing domain correctly.  very big doc fix.
13556         * glyphs.c (Fimage_instance_domain):
13557         new primitive, to retrieve the governing domain of an image instance.
13558         * glyphs.c (image_instantiate):
13559         use new governing_domain stuff.  this fixes a crash you could get
13560         by instantiating certain widget glyphs in frame locales. (should
13561         signal an error instead of crashing.)
13562         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13563         * glyphs.c (Fglyphp): clean up doc.
13564         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13565         * glyphs.c (syms_of_glyphs):
13566         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13567         * glyphs.c (image_instantiator_format_create): add some comments about
13568         bogus code.
13569         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13570         for current-display-table. (Apparently Hrjove implemented in 1998 a
13571         design I wrote up in 1996, but didn't update the doc string.)
13572
13573         * glyphs.h: clean up a doc string.
13574         * glyphs.h (governing_domain):
13575         * glyphs.h (struct image_instantiator_methods):
13576         changes for governing_domain stuff.
13577
13578         * gutter.c:
13579         * gutter.c (Fgutter_specifier_p):
13580         * gutter.c (Fgutter_size_specifier_p):
13581         * gutter.c (Fgutter_visible_specifier_p):
13582         * objects.c:
13583         * objects.c (Fcolor_specifier_p):
13584         * objects.c (Ffont_specifier_p):
13585         * objects.c (Fface_boolean_specifier_p):
13586         doc strings moved to make-*-specifier.
13587
13588         * redisplay.c (add_disp_table_entry_runes_1):
13589         * redisplay.c (generate_fstring_runes):
13590         * redisplay.c (screen):
13591         add random comments and doc strings.
13592
13593         * specifier.c:
13594         * specifier.c (Fmake_specifier):
13595         major overhaul of this doc string.
13596
13597         * specifier.c (Fvalid_specifier_domain_p):
13598         comment about the bogosity of image instances being domains.
13599         * specifier.c (decode_domain):
13600         now non-static, used in glyphs.c.
13601         * specifier.c (specifier_instance):
13602         comment about the bogosity of image instances being domains.
13603         * specifier.c (Fgeneric_specifier_p):
13604         move doc string to make-generic-specifier.
13605         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
13606         rebackslashify.
13607
13608         * specifier.h:
13609         * specifier.h (DOMAIN_FRAME):
13610         * specifier.h (DOMAIN_LIVE_P):
13611         * specifier.h (DOMAIN_XDEVICE):
13612         rebackslashify.
13613         add comments about problems with these macros.
13614         prototype for decode_domain.
13615
13616         * toolbar.c:
13617         * toolbar.c (Ftoolbar_specifier_p):
13618         move doc string to `make-toolbar-specifier'.
13619
13620         * window.c (window_unmap_subwindows_cache_mapper):
13621         *************************************************************
13622         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13623         HAVE BEEN GETTING.
13624         *************************************************************
13625
13626 2000-05-09  Andy Piper  <andy@xemacs.org>
13627
13628         * glyphs.h: declare reset_frame_subwindow_instance_cache.
13629
13630         * window.c (Fset_window_configuration): reset the frame subwindow
13631         cache and re-initialize the window subwindow caches.
13632
13633         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
13634
13635 2000-05-09  Ben Wing  <ben@xemacs.org>
13636
13637         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
13638         DWORD.
13639
13640 2000-04-26  Mike Woolley  <mike@bulsara.com>
13641
13642         * ntheap.c: Changed recreate_heap to limit the amount reserved
13643         for the heap to that which is actually available. Also now
13644         displays a message box (with some dignostics) in the event that
13645         it still can't start.
13646
13647 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
13648
13649         * callproc.c (Fold_call_process_internal): GCPRO path
13650
13651 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
13652
13653         Patch by Bill Perry.
13654
13655         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
13656         back data instead of #ifdef.
13657         (Fscrollbar_page_down): ditto.
13658
13659 2000-05-07  Ben Wing  <ben@xemacs.org>
13660
13661         * buffer.h:
13662         Kludge for defining Qmswindows_tstr.
13663
13664         * nt.c:
13665         * nt.c (open_input_file):
13666         * nt.c (open_output_file):
13667         * nt.c (rva_to_section):
13668         * nt.c (mswindows_executable_type):
13669         Move all memory-mapped-file routines here (some were in unexnt.c,
13670         which is bad because they are used by process-nt.c, and unexnt
13671         won't be around when portable dumping).  Synched the above routines
13672         with FSF 20.6.
13673
13674         * nt.h:
13675         Removed ifdef'd out bogus code.
13676         Fixed some prototypes.
13677
13678         * nt.h (file_data):
13679         * nt.h (OFFSET_TO_RVA):
13680         * nt.h (RVA_TO_OFFSET):
13681         * nt.h (RVA_TO_PTR):
13682         Moved the memory-mapped-file structures, macros and prototypes
13683         here, to parallel nt.c.  ntheap.h should really be removed
13684         entirely, and it's a non-portable-dumper specific file.
13685
13686         * ntheap.h (round_to_next):
13687         Moved the memory-mapped-file structures, macros and prototypes
13688         to nt.h.
13689
13690         * ntproc.c (compare_env):
13691         Moved rva_to_section and mswindows_executable_type to nt.c.
13692         Moved compare_env to process-nt.c.
13693         ntproc.c will die, one day.
13694
13695         * ntproc.c (sys_spawnve):
13696         Account for win32_ -> mswindows_.
13697
13698         * process-nt.c:
13699         * process-nt.c (struct nt_process_data):
13700         * process-nt.c (ensure_console_window_exists):
13701         * process-nt.c (compare_env):
13702         * process-nt.c (nt_create_process):
13703         * process-nt.c (nt_kill_process_by_pid):
13704         * process-nt.c (syms_of_process_nt):
13705         * process-nt.c (vars_of_process_nt):
13706         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
13707         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
13708         changes).  Eliminate our old `nt-quote-process-args' mechanism.
13709         Synch up nt_create_process with FSF 20.6 sys_spawnve.
13710         Move compare_env here from ntproc.c.
13711
13712         * process.c (Fprocess_send_region):
13713         Takes an optional fourth argument, BUFFER, which should fix some
13714         problems with call-process.
13715
13716         * syscommctrl.h:
13717         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
13718
13719         * syswindows.h:
13720         Move ICC_BAR_CLASSES to syscommctrl.h.
13721         Add preliminary macros for MSWindows/Mule.  More to come.
13722
13723         * unexnt.c:
13724         * unexnt.c (unexec):
13725         open_output_file moved to nt.c.
13726
13727
13728 2000-05-05  Andy Piper  <andy@xemacs.org>
13729
13730         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
13731         instance from the frame cache also since GC may catch up too late
13732         to make frame deletion sane.
13733
13734 2000-05-04  Andy Piper  <andy@xemacs.org>
13735
13736         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
13737         (x_finalize_image_instance): ungcpro on deletion.
13738
13739         * glyphs.c (image_instantiator_format_create): give pointers a
13740         query geometry method so that the geometry is at least set.
13741
13742         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
13743         initialize layouts if using widgets.
13744
13745 2000-05-03  Andy Piper  <andy@xemacs.org>
13746
13747         * nt.c: remove bogus reference to sysmmsystem.h
13748
13749         * gui-x.c (popup_selection_callback): fix no selection abort.
13750
13751 2000-05-02  Andy Piper  <andy@xemacs.org>
13752
13753         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
13754         (mswindows_widget_instantiate): ditto.
13755
13756         * glyphs-widget.c (initialize_widget_image_instance): initialize
13757         children correctly.
13758         (widget_instantiate): cope with children and items in the same
13759         instance.
13760
13761         * glyphs.c (mark_image_instance): cope with children as a first
13762         class member.
13763         (image_instance_equal): ditto.
13764         (image_instance_hash): ditto.
13765         (image_instance_changed): ditto.
13766
13767 2000-04-30  Andy Piper  <andy@xemacs.org>
13768
13769         * glyphs.c (subwindow_query_geometry): new function. Return some
13770         defaults.
13771         (subwindow_instantiate): don't assign dimensions if none have been
13772         given.
13773         (image_instantiator_format_create): add subwindow_query_geometry.
13774         (print_image_instance): cope with layouts as widgets.
13775
13776 2000-04-29  Andy Piper  <andy@xemacs.org>
13777
13778         * frame.c (delete_frame_internal): call
13779         free_frame_subwindow_instance_cache so that all subwindows are
13780         finalized before their parent.
13781         (mark_frame): remove subwindow_cachels.
13782         (Fmake_frame): remove subwindow_cachel manipulation.
13783         (allocate_frame_core): subwindow_instance_cache is a weak list.
13784         (delete_frame_internal): set subwindow_instance_cache to nil.
13785
13786         * glyphs-msw.c (mswindows_finalize_image_instance): make double
13787         finalization safe.
13788         (mswindows_finalize_image_instance): use the device
13789         not the domain as the domain may have died already.
13790
13791         * glyphs-x.c (x_finalize_image_instance): ditto.
13792         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
13793         HEIGHT.
13794
13795         * redisplay-output.c (redisplay_unmap_subwindows): update for
13796         subwindow instance cache as a weak list.
13797         (redisplay_unmap_subwindows_maybe): ditto.
13798         (redisplay_unmap_subwindows_except_us): ditto.
13799
13800         * glyphs.c (unmap_subwindow): error checking will check the domain
13801         so don't deal with it here. Don't use cachels anymore.
13802         (map_subwindow): ditto.
13803         (update_subwindow_cachel_data): remove old accessor names.
13804         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
13805         (Fresize_subwindow): don't update cachel.
13806         (mark_subwindow_cachels):
13807         (update_subwindow_cachel_data):
13808         (add_subwindow_cachel):
13809         (get_subwindow_cachel_index):
13810         (update_subwindow_cachel):
13811         (reset_subwindow_cachels):
13812         (mark_subwindow_cachels_as_not_updated): deleted.
13813         (cache_subwindow_instance_in_frame_maybe): new function. Add a
13814         subwindow instance to the frame cache.
13815         (find_matching_subwindow): update for subwindow instance cache as
13816         a weak list.
13817         (update_widget_instances): ditto.
13818         (image_instance_type_to_mask):inlined.
13819         (free_frame_subwindow_instance_cache): new function. finalize all
13820         subwindows that are instantiated.
13821
13822         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
13823         of cachel information.
13824         (IMAGE_INSTANCE_DISPLAY_X):
13825         (IMAGE_INSTANCE_DISPLAY_Y):
13826         (IMAGE_INSTANCE_DISPLAY_WIDTH):
13827         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
13828         (XIMAGE_INSTANCE_DISPLAY_X):
13829         (XIMAGE_INSTANCE_DISPLAY_Y):
13830         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
13831         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
13832         remove subwindow_cachel structure and function references.
13833         (image_instance_type_to_mask): inline from glyphs.c
13834
13835         * redisplay.c (redisplay_frame): remove subwindow_cachel
13836         references.
13837
13838         * frame.h (struct frame): remove subwindow_cachels.
13839         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
13840
13841         * frameslots.h: add subwindow_instance_cache.
13842
13843         * window.c (replace_window): check subwindow cache of replacement.
13844         (window_unmap_subwindows_cache_mapper):
13845         (window_unmap_subwindows): new functions. Unmap all subwindows
13846         cached on this window.
13847         (mark_window_as_deleted): unmap all subwindows.
13848
13849 2000-04-27  Andy Piper  <andy@xemacs.org>
13850
13851         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
13852
13853         * glyphs-widget.c (widget_layout): return something.
13854         (layout_layout): return something. Fail if not initialized.
13855         (layout_query_geometry): ditto.
13856         (image_instantiator_native_layout): new function. Initialized the
13857         native layout type.
13858         (widget_instantiate): don't do layout stuff here.
13859
13860         * glyphs.c (instantiate_image_instantiator): reorded calling or
13861         instantiate and post_instantiate with layout in between.
13862         (image_instance_layout): be more selective about deciding whether
13863         the layout has been done or not.
13864
13865         * glyphs.h (struct image_instantiator_methods): return a value
13866         from layout_method.
13867
13868 2000-04-26  Andy Piper  <andy@xemacs.org>
13869
13870         * glyphs.c (allocate_image_instance): make initial width and
13871         height unspecified. Set initialized to 0.
13872
13873         * syscommctrl.h new file. Encapsulates commctrl.h.
13874
13875         * syswindows.h new file. Encapsulates windows.h.
13876
13877         * ntplay.c: use new syswindows.h and syscommctrl.h header.
13878         * nt.c: ditto.
13879         * console-msw.h: ditto.
13880
13881         * redisplay-tty.c (tty_output_display_block): remove layout references.
13882
13883         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
13884         window handle rather than just the frame.
13885
13886         * glyphs.c (mark_image_instance): remove layout references.
13887         (print_image_instance): ditto.
13888         (image_instance_equal): ditto.
13889         (image_instance_hash): ditto.
13890         (decode_image_instance_type): ditto.
13891         (encode_image_instance_type): ditto.
13892         (image_instantiate): ditto.
13893         (allocate_glyph): ditto.
13894         (Fimage_instance_height): ditto.
13895         (Fimage_instance_width): ditto.
13896         (update_subwindow): ditto.
13897
13898         * redisplay-x.c (x_output_display_block): recode for layouts as
13899         widgets.
13900
13901         * redisplay-output.c (redisplay_output_layout): recode for layouts
13902         as widgets.
13903         (compare_runes): remove layout references.
13904
13905         * redisplay-msw.c (mswindows_output_display_block): recode for
13906         layouts as widgets.
13907
13908         * glyphs-widget.c (image_instantiator_layout): remove
13909         layout_possible_dest_types.
13910         (layout_possible_dest_types): deleted.
13911
13912         * glyphs.h (image_instance_type): remove layout references.
13913         (struct Lisp_Image_Instance): ditto. Add initialized flag.
13914         (IMAGE_INSTANCE_INITIALIZED): new accessor.
13915         (XIMAGE_INSTANCE_INITIALIZED): ditto.
13916
13917 2000-04-25  Andy Piper  <andy@xemacs.org>
13918
13919         * glyphs-widget.c (image_instantiator_buttons):
13920         (image_instantiator_edit_fields):
13921         (image_instantiator_combo_box):
13922         (image_instantiator_scrollbar):
13923         (image_instantiator_progress_guage):
13924         (image_instantiator_tree_view):
13925         (image_instantiator_tab_control):
13926         (image_instantiator_labels):
13927         (image_instantiator_layout): call default post_instantiate method.
13928         (widget_post_instantiate): new function. Simply lays out the
13929         widgets.
13930
13931         * glyphs.h (struct image_instantiator_methods): add
13932         post_instantiate method.
13933
13934         * glyphs.c (instantiate_image_instantiator): add post_instantiate
13935         method calls.
13936
13937 2000-04-23  Andy Piper  <andy@xemacs.org>
13938
13939         * glyphs.h (struct image_instantiator_methods): add
13940         decode_domain_method.
13941         (struct Lisp_Image_Instance): remove subwindow frame - it can be
13942         derived from the domain.
13943         (IMAGE_INSTANCE_FRAME): new accessor.
13944         (XIMAGE_INSTANCE_FRAME): ditto.
13945
13946         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
13947         instead of _SUBWINDOW_FRAME.
13948         (finalize_image_instance): ditto.
13949         (Fimage_instance_foreground): ditto.
13950         (Fimage_instance_background): ditto.
13951         (image_instantiate): ditto.
13952         (update_subwindow_cachel): ditto.
13953         (update_subwindow): ditto.
13954         (unmap_subwindow): ditto.
13955         (map_subwindow): ditto
13956         (subwindow_instantiate): ditto.
13957         * glyphs-msw.c (mswindows_update_widget): ditto.
13958         (mswindows_progress_gauge_instantiate): ditto.
13959         (mswindows_tab_control_update): ditto.
13960         * glyphs-x.c (x_update_widget): ditto.
13961         (x_widget_instantiate): ditto.
13962         (x_tab_control_instantiate): ditto.
13963         (x_tab_control_update): ditto.
13964         * event-msw.c (mswindows_wnd_proc): ditto
13965
13966         * glyphs-widget.c (image_instantiator_layout): use
13967         subwindow_decode_domain.
13968         (image_instantiator_buttons): ditto.
13969         (image_instantiator_edit_fields): ditto.
13970         (image_instantiator_combo_box): ditto.
13971         (image_instantiator_scrollbar): ditto.
13972         (image_instantiator_progress_guage): ditto.
13973         (image_instantiator_tree_view): ditto.
13974         (image_instantiator_tab_control): ditto.
13975         (image_instantiator_labels): ditto.
13976         (image_instantiator_layout): ditto.
13977
13978         * glyphs.c: add instance error checking to many functions.
13979         (instantiate_image_instantiator): decode device from cache_domain.
13980         (image_instantiate): partially rewrite by using
13981         decode_image_instantiator_domain to determine what domain the
13982         instance needs to be cached in.
13983         (decode_image_instantiator_domain): new function. Determine what
13984         domain the image needs to be cached in.
13985         (check_window_subwindow_cache): new error checking function.
13986         (check_instance_cache_mapper): ditto.
13987         (check_image_instance_structure): ditto.
13988         (subwindow_decode_domain): new function. Encodes a window as a
13989         subwindow's cache domain.
13990         (image_instantiator_format_create): use it for text and
13991         subwindows.
13992
13993 2000-04-21  Andy Piper  <andy@xemacs.org>
13994
13995         * glyphs.c (image_instance_device): new function.
13996         (image_instance_frame): new function.
13997         (image_instance_window): new function.
13998         (image_instance_live_p): new function.
13999
14000         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14001         cache to nil.
14002
14003         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14004         (IMAGE_INSTANCE_DOMAIN): new accessor.
14005         (XIMAGE_INSTANCE_DOMAIN): ditto.
14006
14007         * glyphs-x.c (x_finalize_image_instance): device->domain.
14008
14009         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14010         (mswindows_finalize_image_instance): ditto.
14011
14012         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14013         (gif_instantiate): ditto.
14014         (png_instantiate): ditto.
14015         (tiff_instantiate): ditto.
14016
14017         * glyphs.c (instantiate_image_instantiator): use domain rather
14018         than device.
14019         (mark_image_instance): device -> domain.
14020         (print_image_instance): ditto.
14021         (finalize_image_instance): ditto.
14022         (image_instance_equal): ditto.
14023         (allocate_image_instance): ditto.
14024         (Fcolorize_image_instance): ditto.
14025         (query_string_geometry): ditto.
14026         (image_instantiate): ditto
14027         (query_string_font): ditto.
14028         (image_instantiate): ditto.
14029         (update_subwindow): ditto.
14030         (unmap_subwindow): ditto.
14031         (map_subwindow): ditto.
14032         (subwindow_instantiate): ditto.
14033
14034         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14035         (DOMAIN_FRAME): ditto.
14036         (DOMAIN_WINDOW): ditto.
14037         (DOMAIN_LIVE_P): ditto.
14038         (XDOMAIN_DEVICE): ditto.
14039         (XDOMAIN_FRAME): ditto.
14040         (XDOMAIN_WINDOW): ditto.
14041
14042         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14043         a valid specifier domain.
14044
14045 2000-04-19  Andy Piper  <andy@xemacs.org>
14046
14047         * glyphs-widget.c (syms_of_glyphs_widget): remove
14048         widget-callback-current-channel.
14049         (vars_of_glyphs_widget): ditto.
14050         * glyphs.h: ditto
14051
14052         * gui.c (get_gui_callback): revert to previous behaviour.
14053
14054 2000-04-18  Andy Piper  <andy@xemacs.org>
14055
14056         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14057         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14058         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14059
14060         * glyphs.c (image_instance_equal): add margin_width.
14061         (image_instance_hash): ditto.
14062
14063         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14064         (layout_query_geometry): ditto.
14065         (layout_layout): ditto.
14066         (syms_of_glyphs_widget): add margin-width.
14067         (image_instantiator_layout): allow margin-width.
14068
14069         * glyphs.c (update_widget_instances): make a normal function.
14070         (syms_of_glyphs): remove Qupdate_widget_instances.
14071         * glyphs.h: ditto.
14072
14073         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14074         so that we don't corrupt ideas about the last event or
14075         command. Remove widget-callback-current-channel fiddling.
14076         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14077
14078 2000-05-01  Martin Buchholz <martin@xemacs.org>
14079
14080         * XEmacs 21.2.33 is released.
14081
14082 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14083
14084         * make-src-depend: Allow dots in header file name.
14085
14086 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14087
14088         * mule-charset.h (struct charset_lookup): Add
14089         next_allocated_1_byte_leading_byte and
14090         next_allocated_2_byte_leading_byte.
14091         * mule-charset.c: Move above two variables so that those values
14092         will be dumped.
14093
14094 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14095
14096         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14097         when string length is zero.
14098         (find_charsets_in_emchar_string): Ditto.
14099
14100 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14101
14102         * lisp.h: extern Qdialog and Qmenubar.
14103
14104         * gui-x.c: added events.h.
14105                 also fixed typo which made the file uncompilable.
14106
14107         * general.c: Added Qmenubar and Qdialog
14108
14109 2000-04-28  Ben Wing  <ben@xemacs.org>
14110
14111         * frame-msw.c (mswindows_init_frame_1):
14112         * frame-msw.c (mswindows_mark_frame):
14113         * event-msw.c (mswindows_enqueue_dispatch_event):
14114         * console-msw.h:
14115         * console-msw.h (struct mswindows_frame):
14116         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14117         there are now three hash tables for callbacks.
14118         mswindows_enqueue_dispatch_event is no longer static.
14119
14120         * dialog-x.c (maybe_run_dbox_text_callback):
14121         * dialog-x.c (dbox_descriptor_to_widget_value):
14122         switch to new cons3 form for callbacks.
14123
14124         * glyphs-msw.c (mswindows_register_gui_item):
14125         * glyphs-msw.c (mswindows_widget_instantiate):
14126         * glyphs-msw.c (add_tree_item):
14127         * glyphs-msw.c (add_tab_item):
14128         new image instance parameter, so it can be passed to callback-ex.
14129         respect :callback-ex as well as :callback.
14130
14131         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14132         add :callback-ex.
14133
14134         * glyphs.c (print_image_instance):
14135         prettify, e.g. now prints widget type.
14136
14137         * gui-x.h:
14138         certain funs have new image instance parameter.
14139
14140         * gui.c:
14141         * gui.c (get_gui_callback):
14142         * gui.c (gui_item_add_keyval_pair):
14143         * gui.c (gui_item_init):
14144         * gui.c (gui_add_item_keywords_to_plist):
14145         * gui.c (mark_gui_item):
14146         * gui.c (gui_item_hash):
14147         * gui.c (gui_item_equal):
14148         * gui.c (copy_gui_item):
14149         * gui.c (syms_of_gui):
14150         recognize callback-ex in a number of places.
14151         also, fix the annoying "can't get out of yes-no dialog" bug.
14152
14153         * gui.h:
14154         * gui.h (struct Lisp_Gui_Item):
14155         recognize callback-ex in a number of places.
14156
14157         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14158         new parameter in button_item_to_widget_value.
14159
14160         * glyphs-x.c (x_update_widget):
14161         * glyphs-x.c (x_button_instantiate):
14162         * glyphs-x.c (x_button_update):
14163         * glyphs-x.c (x_progress_gauge_instantiate):
14164         * glyphs-x.c (x_edit_field_instantiate):
14165         * glyphs-x.c (x_combo_box_instantiate):
14166         * glyphs-x.c (x_tab_control_instantiate):
14167         * glyphs-x.c (x_label_instantiate):
14168         new image instance parameter in various places.
14169
14170         * event-Xt.c:
14171         * event-Xt.c (enqueue_Xt_dispatch_event):
14172         this fun gets exported.
14173
14174         * gui-msw.c:
14175         * gui-msw.c (mswindows_handle_gui_wm_command):
14176         handle both :callback and :callback-ex, and generate our own
14177         event because it's one of the callback-ex arguments.
14178
14179         * gui-x.c:
14180         * gui-x.c (popup_selection_callback):
14181         handle both :callback and :callback-ex, and generate our own
14182         event because it's one of the callback-ex arguments.
14183         * gui-x.c (button_item_to_widget_value):
14184         * gui-x.c (gui_items_to_widget_values_1):
14185         * gui-x.c (gui_item_children_to_widget_values):
14186         * gui-x.c (gui_items_to_widget_values):
14187         new image instance parameter in various places.
14188
14189         * fns.c (Freplace_list):
14190         fix small typo in doc string.
14191
14192         * lisp.h:
14193         declare enqueue_Xt_dispatch_event.
14194
14195 2000-04-28  Ben Wing  <ben@xemacs.org>
14196
14197         * buffer.c:
14198         * buffer.c (Frecord_buffer):
14199         * buffer.c (syms_of_buffer):
14200         delete record-buffer-hook.
14201
14202         * fns.c:
14203         * fns.c (Freplace_list):
14204         * fns.c (syms_of_fns):
14205         new primitive replace-list.
14206
14207         * frameslots.h:
14208         slot for old buffer-alist.
14209
14210         * lisp.h:
14211         exfun replace-list.
14212
14213         * redisplay.c:
14214         * redisplay.c (redisplay_frame):
14215         * redisplay.c (syms_of_redisplay):
14216         * redisplay.c (vars_of_redisplay):
14217         new hook buffer-list-changed-hook.
14218         call it.
14219
14220 2000-04-27  Ben Wing  <ben@xemacs.org>
14221
14222         * extents.h: extern in_modeline_generation.
14223
14224         * redisplay.c (generate_formatted_string_db): set
14225         in_modeline_generation.
14226
14227         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14228         flags if in modeline generation.  otherwise frame-modified-tick
14229         is ticked far too often.
14230         Declare in_modeline_generation.
14231
14232 2000-04-26  Ben Wing  <ben@xemacs.org>
14233
14234         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14235         option.
14236         (vars_of_emacs): add quick-build as an error-checking option.
14237         A bit kludgy, but there doesn't seem much point in creating
14238         a real var for this.
14239
14240         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14241
14242 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14243
14244         * redisplay.h (struct display_line): Add a new variable,
14245         line_continuation.
14246
14247         * redisplay.c (create_text_block): Set dl->line_continuation if
14248         the line continues.
14249         (create_string_text_block): Ditto.
14250         (regenerate_window_incrementally): Use line_continuation instead
14251         of searching continuation glyph.
14252         (add_margin_runes): Call add_glyph_rune.
14253         (add_glyph_rune): Handle margin glyph.
14254
14255 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14256
14257         * filelock.c (fill_in_lock_file_name):
14258         ANSIfy.
14259         Check for IS_ANY_SEP instead of '/'.
14260         (lock_file_1):
14261         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14262         Never check errno without first seeing that system call failed.
14263         (unlock_file): Add GCPRO.
14264         (Flock_buffer): Fix docstring.
14265         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14266
14267 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14268
14269         * sysdep.c (get_pty_max_bytes):
14270         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14271         strings longer than 252 bytes.
14272
14273         * md5.c: Unconditionally include ANSI header <limits.h>
14274
14275         * glyphs-x.c (convert_EImage_to_XImage):
14276         * lisp-union.h (union Lisp_Object):
14277         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14278
14279 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14280
14281         * filelock.c (current_lock_owner): Remove unused variable o, p.
14282
14283 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14284
14285         * callint.c: Remove multiply defined symbol Qlet
14286         (syms_of_callint): ditto.
14287
14288 2000-04-14  Andy Piper  <andy@xemacs.org>
14289
14290         * general.c (syms_of_general): add last-command, this-command, let
14291         and funcall.
14292
14293         * lisp.h: declare various symbols.
14294
14295         * glyphs.h: declare Qwidget_callback_current_channel;
14296
14297         * glyphs-widget.c (syms_of_glyphs_widget): add
14298         Qgui_callback_current_channel.
14299         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14300
14301         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14302         widget-callback-current-channel when invoking the interactive
14303         arg. Also bind last-command and next-command when invoking the
14304         widget updates.
14305         * gui-x.c (popup_selection_callback): ditto.
14306
14307         * gui.c (get_gui_callback): massage args so that we are always
14308         calling eval. This allows us to add our own variable bindings
14309         outside.
14310
14311         * glyphs-x.c (x_button_instantiate): use
14312         gui_items_to_widget_values since this is GC safe.
14313         (x_progress_gauge_instantiate): ditto.
14314         (x_edit_field_instantiate): ditto.
14315         (x_label_instantiate): ditto.
14316
14317         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14318         (emacs_Xt_event_widget_focus_out): new function
14319         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14320         focus.
14321         (emacs_Xt_event_add_widget_actions): new function. add focus
14322         functions as actions.
14323         (init_event_Xt_late): use it.
14324
14325 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14326
14327         * event-stream.c (Fdispatch_event): Doc fix.
14328
14329 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14330
14331         * postgresql.c: Remove all references to PQsetenv*.
14332
14333         * postgresql.h: Remove references to PGsetenvHandler object.
14334         * lrecord.h (lrecord_type): Ditto.
14335
14336 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14337
14338         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14339         real_heigh and real_width members, and accessor macros for these.
14340
14341         * glyphs-msw.c (init_image_instance_geometry): New function.
14342         (init_image_instance_from_dibitmap): Use it.
14343         (mswindows_resource_instantiate): Use it.
14344         (init_image_instance_from_xbm_inline): Use it.
14345         (mswindows_initialize_image_instance_mask): Use real bitmap
14346         geometry.
14347         (mswindows_create_resized_bitmap): Ditto.
14348         (mswindows_create_resized_mask): Ditto.
14349
14350         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14351         and bitmap to their surface size.
14352
14353 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14354
14355         * process-unix.c (unix_send_process): Guard against process MIA
14356         after Faccept_process_output.
14357
14358 2000-04-11  Ben Wing  <ben@xemacs.org>
14359
14360         * eval.c (unbind_to_hairy): fix brokenness introduced by
14361         nanosecond speed improvements.
14362
14363 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14364
14365         * sunplay.c (init_device): To play sounds correctly, the device
14366         apparently needs to be initialized at least once by XEmacs.  Make
14367         it so.
14368
14369 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14370
14371         * redisplay.c (add_margin_runes): Add text image glyph
14372           handling.
14373
14374 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14375
14376         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14377         gcc is newer than 2.5.
14378
14379 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14380
14381         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14382
14383         * fns.c (size_bit_vector):
14384         * alloc.c (size_vector):
14385         (make_vector_internal):
14386         (make_bit_vector_internal):
14387         (sweep_bit_vectors_1):
14388         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14389
14390 2000-04-06  Andy Piper  <andy@xemacs.org>
14391
14392         * gmalloc.c (malloc): undo previous change.
14393         (malloc): ditto.
14394         (free): ditto.
14395         (realloc): ditto.
14396
14397 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14398
14399         * line-number.c (buffer_line_number): Revert to former version.
14400
14401 2000-04-06  Andy Piper  <andy@xemacs.org>
14402
14403         * gmalloc.c (malloc): add error checking.
14404         (malloc): ditto.
14405         (free): ditto.
14406         (realloc): ditto.
14407
14408         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14409         button_item_to_widget_value arg.
14410
14411         * glyphs-x.c (x_button_instantiate): add extra
14412         button_item_to_widget_value arg.
14413         (x_progress_gauge_instantiate): ditto.
14414         (x_edit_field_instantiate): ditto.
14415         (x_label_instantiate): ditto.
14416
14417         * gui-x.c (gui_items_to_widget_values_1): add extra
14418         button_item_to_widget_value arg.
14419         (button_item_to_widget_value): add extra menu_item_p arg.
14420
14421         * gui-x.h: change signature of button_item_to_widget_value.
14422
14423         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14424         button_item_to_widget_value arg.
14425
14426 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14427
14428         * buffer.h (struct buffer): auto_save_modified should be long.
14429
14430 2000-04-05  Andy Piper  <andy@xemacs.org>
14431
14432         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14433         type.
14434         (button_query_geometry): give a little more room so that athena
14435         buttons fit.
14436
14437 2000-04-05  Andy Piper  <andy@xemacs.org>
14438
14439         * faces.c (complex_vars_of_faces): The widget face should inherit
14440         the font of the gui-element face.
14441
14442 2000-04-04  Andy Piper  <andy@xemacs.org>
14443
14444         * glyphs-x.c (x_button_update): new function. unconditionally
14445         update a button's state when the instance is dirty.
14446         (image_instantiator_format_create_glyphs_x): add x_button_update.
14447         (x_widget_instantiate): remove old resize cruft.
14448
14449 2000-04-02  Andy Piper  <andy@xemacs.org>
14450
14451         * frame.c (change_frame_size_1): The introduction of gutters means
14452         that we need to allow 0 as a potential frame dimension.
14453
14454 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14455
14456         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14457         image glyph if allow_cursor.
14458         (add_hscroll_rune): Don't allow cursor to border glyph.
14459         (create_text_block): Ditto.
14460
14461         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14462         text not in buffer.
14463         (redisplay_output_layout): Call ensure_face_cachel_complete for
14464         text image glyph.
14465
14466
14467 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14468
14469         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14470
14471         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14472         not in buffer
14473
14474         * redisplay-tty.c (tty_output_display_block): Delete the routine
14475         for text image glyph
14476         * redisplay-x.c (x_output_display_block): ditto
14477         * redisplay-msw.c (mswindows_output_display_block): ditto
14478
14479 2000-02-02  Mike Alexander  <mta@arbortext.com>
14480
14481         Note: Some of these were committed by accident as part of other
14482         patches.
14483
14484         * regex.c (regex_compile): Avoid compiler warnings.
14485
14486         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14487
14488         * nt.h: Declare term_ntproc correctly.
14489
14490         * nt.c: Remove incorrect declaration of get_home_directory which
14491         is declared correctly in lisp.h.
14492
14493         * keymap.c (get_keyelt): Avoid compiler warnings.
14494         (raw_lookup_key_mapper): Avoid compiler warnings.
14495
14496         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14497
14498         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14499
14500         * filemode.c (mode_string): Avoid compiler warnings.
14501
14502         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14503         avoid warning.
14504
14505         * events-mod.h: Undef some things that winuser.h defines differently.
14506
14507         * data.c (Faset): Avoid compiler warnings.
14508
14509         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14510
14511 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14512
14513         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14514         Fall through to simple beep on error.
14515         Replace "extern" by real header file.
14516
14517         * linuxplay.c: Use nativesound.h
14518         (play_sound_data): Return error code. Be less verbose on error.
14519
14520         * sunplay.c: Use nativesound.h
14521         (play_sound_data): Return error code. Be less verbose on error.
14522
14523         * ntplay.c: Use nativesound.h
14524         (play_sound_data): Return fake error code
14525
14526         * sgiplay.c: Use nativesound.h
14527         (play_sound_data): Return error code
14528
14529         * hpplay.c: Use nativesound.h, partially implement
14530         new error code. Break compilation until finished.
14531         (play_sound_data): error code.
14532
14533         * nativesound.h (play_sound_file):
14534           (play_sound_data): Prototype in new header.
14535
14536 2000-03-31  Andy Piper  <andy@xemacs.org>
14537
14538         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14539         for toggle and radio buttons.
14540         (image_instantiator_buttons): use it.
14541
14542 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14543
14544         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14545         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14546         found. Scrollbar event probably belonged to some old config.
14547
14548 2000-03-31  Andy Piper  <andy@xemacs.org>
14549
14550         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14551         than 1.
14552         (initialize_widget_image_instance): default layout to
14553         LAYOUT_HORIZONTAL rather than 0.
14554         (widget_instantiate): reverse the item list at the end rather than
14555         every iteration.
14556         (layout_layout): re-code for the border text at the front of the
14557         item list rather than at the end.
14558         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14559         provided by the user.
14560         (widget_query_geometry): comment.
14561
14562 2000-03-30  Andy Piper  <andy@xemacs.org>
14563
14564         * glyphs-widget.c (image_instantiator_layout): allow standard
14565         widget keywords in layouts.
14566
14567         * gutter.c (output_gutter): cope with nil gutter contents.
14568
14569         * frame.c (Fset_frame_properties): add gutter docs.
14570
14571 2000-03-29  Andy Piper  <andy@xemacs.org>
14572
14573         * toolbar-msw.c (TBSTYLE_FLAT): add.
14574         (mswindows_output_toolbar): minor fiddling.
14575
14576 2000-03-29  Andy Piper  <andy@xemacs.org>
14577
14578         * gutter.c (output_gutter): force gutter size recalculation if
14579         what we are trying to display won't fit.
14580         (update_gutter_geometry): new function. A per-gutter version of
14581         update_frame_gutter_geometry.
14582         (update_frame_gutter_geometry): use it.
14583         (redraw_exposed_gutter): add extra debugging output.
14584
14585 2000-03-28  Mike Alexander  <mta@arbortext.com>
14586
14587         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
14588         (pdump_file_unmap): Implement it on Windows
14589         (pdump_file_get): Save alocated handles for pdump_file_unmap
14590
14591 2000-03-28  Andy Piper  <andy@xemacs.org>
14592
14593         * gui.c (get_gui_callback): treat Quit specially.
14594
14595 2000-03-27  Andy Piper  <andy@xemacs.org>
14596
14597         * glyphs.c (image_instantiate): be careful to check in the same
14598         way we assigned.
14599
14600 2000-03-27  Didier Verna  <didier@xemacs.org>
14601
14602         * config.h.in: define the proper SMART_INCLUDE macro.
14603         handle renaming of `foo_h_path' to `foo_h_file'.
14604
14605         * database.c: ditto.
14606
14607         * emacs.c: ditto.
14608
14609         * linuxplay.c: ditto.
14610
14611         * terminfo.c: ditto.
14612
14613         * tooltalk.h: ditto.
14614
14615 2000-03-27  Andy Piper  <andy@xemacs.org>
14616
14617         * glyphs-msw.c (mswindows_update_widget): make sure the widget
14618         gets updated whenever the face might have changed.
14619
14620 2000-03-26  Mike Alexander  <mta@arbortext.com>
14621
14622         * dumper.c (pdump_resource_free): Fix the comment.
14623
14624 2000-03-21  Olivier Galibert  <galibert@pobox.com>
14625
14626         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
14627
14628 2000-03-22  Mike Alexander  <mta@arbortext.com>
14629
14630         * dumper.c: Include Windows headers on Windows
14631         (pdump_resource_free): Add a body to the function
14632         (pdump_load): exe_name -> exe_path and add some comments.
14633
14634 2000-03-25  Mike Alexander  <mta@arbortext.com>
14635
14636         * gui.c (copy_gui_item_tree): Return a value in all cases
14637
14638 2000-03-21  Didier Verna  <didier@xemacs.org>
14639
14640         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
14641         lwlib/config.h.in.
14642         (SMART_INCLUDE): new macro.
14643         (POSTGRES_INCLUDE): new macro to include postgresql headers from
14644         the proper location.
14645
14646         * postgresql.c: use it.
14647
14648         * inline.c: ditto.
14649
14650 2000-03-24  Andy Piper  <andy@xemacs.org>
14651
14652         * gutter.c (redraw_exposed_gutters): must be "in display" when we
14653         do this.
14654
14655 2000-03-24  Andy Piper  <andy@xemacs.org>
14656
14657         * redisplay-output.c (compare_runes): use image_instance_changed
14658         to detect changes. Do not depend on glyphs_changed, only depend on
14659         dirtiness.
14660          (redisplay_output_layout): add debug messages.
14661         (compare_runes): ditto.
14662
14663         * glyphs.h: declare new functions.
14664         (struct Lisp_Image_Instance): remove percent and associated
14665         accessors.
14666
14667         * gui.h: declare new copying functions.
14668
14669         * gui.c (copy_gui_item_tree): new function.
14670         (copy_gui_item): new function.
14671         (gui_item_id_hash): revert to standard hash.
14672         (gui_item_hash): ditto.
14673         (gui_item_hash_internal): deleted.
14674         (mark_gui_item): mark value.
14675         (gui_item_add_keyval_pair): add value.
14676         (gui_item_init): ditto.
14677         (gui_add_item_keywords_to_plist): ditto.
14678         (gui_item_equal): ditto.
14679         (syms_of_gui): add Q_value.
14680
14681         * glyphs-x.c (x_progress_gauge_update): use pending items and
14682         value for setting the state.
14683         (x_update_widget): don't set items from pending here.
14684
14685         * glyphs-widget.c (update_widget): update items here.
14686         (progress_gauge_set_property): use items for storing value. Put
14687         new value in pending items.
14688
14689         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
14690         items for new value. Convert percent -> value.
14691         (mswindows_tab_control_update): don't update items here.
14692
14693         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
14694         (update_subwindow): ditto.
14695         (image_instance_changed): new function. Compare hash values and
14696         past and present widget items.
14697         (image_instantiate): We more careful about where we instantiate
14698         things.
14699         (image_instantiate): add error checking.
14700
14701         * gutter.c (syms_of_gutter): use -hook.
14702
14703 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
14704
14705         * console-tty.c (Fset_console_tty_input_coding_system): Use
14706         Qkeyboard.
14707         (Fset_console_tty_output_coding_system): Use Qterminal.
14708         (tty_init_console): Use Qkeyboard and Qterminal.
14709
14710 2000-03-21  Ben Wing  <ben@xemacs.org>
14711
14712         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
14713         From Mike Alexander <mta@arbortext.com>.
14714
14715 2000-03-21  Ben Wing  <ben@xemacs.org>
14716
14717         * event-msw.c (mswindows_need_event): Horrible kludge to fix
14718         process brokenness.  Proper implementation to come.
14719         * callproc.c:
14720         Rename call-process-internal to old-call-process-internal.
14721         New impl. in process.el.
14722
14723 2000-03-21  Martin Buchholz  <martin@xemacs.org>
14724
14725         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
14726
14727 2000-03-20  Andy Piper  <andy@xemacs.org>
14728
14729         * glyphs.c (full_list_hash): make hashes of the same elements in
14730         different orders return different values.
14731
14732 2000-03-20  Martin Buchholz <martin@xemacs.org>
14733
14734         * XEmacs 21.2.32 is released.
14735
14736 2000-03-20  Martin Buchholz  <martin@xemacs.org>
14737
14738         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
14739         (DFC_MALLOC_USE_CONVERTED_DATA):
14740         Add aliasing-safe casts to allow use with char* or unsigned char*
14741         lvalues.
14742
14743         * eldap.c (Fldap_open):
14744         (Fldap_search_basic):
14745         (Fldap_add):
14746         (Fldap_modify):
14747         Make C++-compilable.
14748         Make sure GCPRO'ed variables are initialized.
14749         Use temp variables to avoid repeated calls to Flength.
14750
14751 2000-03-16  Martin Buchholz  <martin@xemacs.org>
14752
14753         * sysfile.h:
14754         Make sure PATH_MAX is always defined.
14755         Include limits.h for PATH_MAX.
14756         Deprecate use of MAXPATHLEN.
14757
14758 2000-03-10  Martin Buchholz  <martin@xemacs.org>
14759
14760         * emacs.c: Add reinit_vars_of_fileio.
14761         * symsinit.h: Add reinit_vars_of_fileio.
14762         * fileio.c (reinit_vars_of_fileio): New.
14763         * fileio.c (Fmake_temp_name):
14764         Initialize temp_name random number from microseconds to make
14765         collisions even less likely.  Initialize always at process startup
14766         time.  (make-temp-name) used to return the same file name twice in
14767         a row when PDUMP.
14768         Random stylistic fiddling.
14769         Comment fixes.
14770
14771 2000-03-20  Andy Piper  <andy@xemacs.org>
14772
14773         * glyphs.c (image_instantiate): allow text glyphs to be
14774         instantiated in the minibuffer window.
14775
14776 2000-03-19  Andy Piper  <andy@xemacs.org>
14777
14778         * glyphs.c (image_instance_hash): be careful about which items we
14779         hash on.
14780
14781         * glyphs-widget.c (tab_control_set_property): record into pending
14782         items rather than the actual items.
14783
14784         * glyphs-x.c (x_update_widget): use pending items to update with.
14785
14786         * glyphs-msw.c (mswindows_tab_control_update): use pending items
14787         to update with.
14788
14789         * glyphs.c (mark_image_instance): mark pending items.
14790
14791         * window.c (Fset_window_configuration): record the buffer.
14792         (Fselect_window): totally revert previous change which breaks many
14793         things.
14794
14795 2000-03-18  Andy Piper  <andy@xemacs.org>
14796
14797         * glyphs-msw.c (mswindows_tab_control_update): force selected
14798         item.
14799
14800         * glyphs.c (image_instantiate): don't allow the minibuffer as a
14801         window domain cache, otherwise we get inconsistencies at
14802         startup. There is something fishy at startup which can lead to the
14803         minibuffer being the selected window when the gutter content is
14804         instantiated.
14805
14806         * gui.c (parse_gui_item_tree_list): add probably unnecessary
14807         gcpros.
14808         (parse_gui_item_tree_children): ditto.
14809         (parse_gui_item_tree_item): ditto.
14810
14811         * glyphs.c (Fupdate_widget_instances): return something.
14812
14813 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
14814
14815         * window.c (Fselect_window): Undo 2000-03-17 change.
14816
14817 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
14818
14819         * postgresql.c (Fpq_setenv): Remove this turkey when linking
14820         against v7.0 libraries.  Insta-coredump city until the postgres
14821         folks fix it.
14822
14823 2000-03-17  Andy Piper  <andy@xemacs.org>
14824
14825         * faces.c (complex_vars_of_faces): don't give the widget face an
14826         inherited background pixmap.
14827
14828         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
14829         selected item.
14830
14831         * event-stream.c (Fdispatch_non_command_events): return something.
14832
14833         * gutter.c (output_gutter): use widget face.
14834         (clear_gutter): ditto.
14835
14836         * NEWS: adjust again.
14837
14838         * window.c (Fselect_window): make sure this runs to completion to
14839         avoid oddities with Fset_window_configuration.
14840         (Fcurrent_window_configuration): in general do not save the
14841         minibuffer as the selected window.
14842
14843         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
14844
14845 2000-03-16  Olivier Galibert  <galibert@pobox.com>
14846
14847         * emacs.c (Frunning_temacs_p): Revert previous patch.
14848         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
14849
14850 2000-03-16  Andy Piper  <andy@xemacs.org>
14851
14852         * glyphs-x.c (x_tab_control_update): if no widget values then
14853         return.
14854
14855         * NEWS: update for new features.
14856
14857         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
14858         synthetic event to the native system.
14859         (reinit_vars_of_event_Xt): set force_event_pending to
14860         emacs_Xt_force_event_pending.
14861
14862         * events.h (struct event_stream): add force_event_pending.
14863
14864         * specifier.c (recompute_one_cached_specifier_in_window): add
14865         comment.
14866
14867         * redisplay.c (redisplay_frame): don't call
14868         update_frame_subwindows. Reset subwindow cachels when
14869         subwindows_changed, removing this was an optimization too far.
14870
14871         * redisplay-output.c (compare_runes): reorganize so that we catch
14872         glyph changes when we want them. Set optimize_output when this
14873         would help layouts.
14874         (redisplay_output_layout): remove frame_really_changed, use
14875         optimize_output instead.
14876
14877         * redisplay-msw.c (mswindows_output_display_block): reset
14878         optimize_output after outputting a glyph.
14879         * redisplay-x.c (x_output_display_block): ditto.
14880         * redisplay-tty.c (tty_output_display_block): ditto.
14881
14882         * gutter.c: (specifier_vars_of_gutter): use new spec changed
14883         functions.
14884         (gutter_specs_changed): do specific gutter positions.
14885         (top_gutter_specs_changed): new function. Only update the
14886         specified gutter specs.
14887         (bottom_gutter_specs_changed): ditto.
14888         (left_gutter_specs_changed): ditto.
14889         (right_gutter_specs_changed): ditto.
14890
14891         * gui.c (gui_item_hash_internal): new function, does a real hash.
14892         (gui_item_id_hash): use it.
14893         (gui_item_hash): hash the eval'ed gui_item.
14894
14895         * gui-x.c (popup_selection_callback): send an eval event to call
14896         Fupdate_widget_instances.
14897
14898         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
14899         to call Fupdate_widget_instances.
14900
14901         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
14902         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
14903
14904         * glyphs.c: (update_frame_subwindows): deleted.
14905         (Fupdate_widget_instances): new function for updating the dirty
14906         state of widgets that might have changed.
14907         (syms_of_glyphs): add Qupdate_widget_instances.
14908         (full_list_hash): hash a list completely.
14909         (image_instance_hash): use it for items and properties.
14910
14911         * frame-msw.c (mswindows_size_frame_internal): remove unused
14912         variable.
14913
14914         * faces.h (struct face_cachel): fix comment.
14915
14916         * event-stream.c (Fdispatch_non_command_events): new
14917         function. Process non-command events, forcing an event cycle
14918         beforehand.
14919         (syms_of_event_stream): declare.
14920         (event_stream_force_event_pending): new function. Force an event
14921         on the native event queue so that an event cycle will occur next
14922         time we check.
14923
14924         * event-msw.c:
14925         (struct ntpipe_shove_stream):
14926         (mswindows_enqueue_dispatch_event):
14927         (mswindows_dequeue_dispatch_event):
14928         (mswindows_cancel_dispatch_event):
14929         (mswindows_pump_outstanding_events):
14930         (mswindows_drain_windows_queue):
14931         (mswindows_handle_paint):
14932         (mswindows_wnd_proc):
14933         (mswindows_key_to_emacs_keysym):
14934         (get_process_input_waitable):
14935         (emacs_mswindows_delete_stream_pair): re-indent file.
14936         (mswindows_need_event): do not process further fds if the windows
14937         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
14938         fixes the 100% cpu problem.
14939         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
14940
14941 2000-03-15  Olivier Galibert  <galibert@pobox.com>
14942
14943         * alloc.h: New.
14944         * dumper.h: New.
14945         * dumper.c: New.
14946
14947         * emacs.c: Moved dump file searching to dumper.c.
14948         (Frunning_temacs_p): Fixed.
14949
14950         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
14951         last_lrecord_type_index_assigned.
14952
14953 2000-02-20  Olivier Galibert  <galibert@pobox.com>
14954
14955         * symsinit.h: Added reinit parameter to init_console_stream
14956         declaration.
14957
14958         * lisp.h: Added file parameter to pdump_load declaration.
14959
14960         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
14961         support.  Added dump file searching.
14962
14963         * config.h.in: Added EMACS_PROGNAME.
14964
14965         * console-stream.c (init_console_stream): Fix reinitialisation
14966         when running from temacs.
14967
14968         * alloc.c (pdump): Add id support.
14969         (pdump_load): Add file parameter and signature/id support.
14970
14971         * Makefile.in.in: Add full pdump support.
14972
14973 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
14974
14975         * postgresql.c: Update documentation to reflect latest code
14976         status.
14977         (print_result): Show tuple counts in printed representation when
14978         appropriate.
14979         (Fpq_put_nbytes): MULE-ize.
14980         (Fpq_get_line_async): Ditto.
14981
14982 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14983
14984         * postgresql.c (Fpq_lo_import): Fix return value.
14985         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
14986
14987 2000-03-13  Ben Wing  <ben@xemacs.org>
14988
14989         * alloc.c (pdump_load):
14990         Fix compile warning under mswin.
14991
14992 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14993
14994         * postgresql.c: Mule-ization, bug fixes.
14995         Use PG_CODING to encapsulate coding system name changes.
14996         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
14997         (pg-coding-system): Create.
14998
14999         (Fpq_conn_defaults): Mule-ize.
15000         (Fpq_connectdb): Mule-ize & bug fix.
15001         (Fpq_connect_start): Mule-ize.
15002         (Fpq_set_client_encoding): Mule-ize.
15003         (Fpq_finish): Document `DEAD' connection status.
15004         (Fpq_clear): Ditto.
15005         (Fpq_pgconn): Mule-ize.
15006         (Fpq_exec): Mule-ize & bug fix.
15007         (Fpq_send_query): Ditto.
15008         (Fpq_get_result): Ditto.
15009         (Fpq_res_status): Mule-ize.
15010         (Fpq_result_error_message): Mule-ize.
15011         (Fpq_ntuples): fix comments.
15012         (Fpq_fname): Mule-ize.
15013         (Fpq_fnumber): Mule-ize.
15014         (Fpq_ftype): fix comments.
15015         (Fpq_get_value): Mule-ize.
15016         (Fpq_cmd_status): Ditto.
15017         (Fpq_cmd_tuples): Ditto.
15018         (Fpq_oid_value): Ditto.
15019         (Fpq_notifies): Ditto.
15020         (Fpq_lo_import): Ditto.
15021         (Fpq_lo_export): Ditto.
15022         (Fpq_get_line): Ditto.
15023         (Fpq_put_line): Mule-ize and bug fix.
15024         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15025
15026 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15027
15028         * postgresql.c (vars_of_postgresql): Mule-ize.
15029         (Fpq_conn_defaults): Ditto.
15030
15031 2000-03-12  Ben Wing  <ben@xemacs.org>
15032
15033         * alloc.c (Fmake_byte_code):
15034         * alloc.c (debug_string_purity_print):
15035         * alloc.c (pdump_backtrace):
15036         * alloc.c (pdump_get_indirect_count):
15037         * alloc.c (pdump_register_sub):
15038         * alloc.c (pdump_register_object):
15039         * alloc.c (pdump_register_struct):
15040         * alloc.c (pdump_dump_data):
15041         * alloc.c (pdump_reloc_one):
15042         Minor cleanups.
15043
15044         * console-msw.c:
15045         * console-msw.c (GetConsoleHwnd):
15046         * console-msw.c (msw_hide_console):
15047         * console-msw.c (msw_show_console):
15048         * console-msw.c (msw_ensure_console_buffered):
15049         * console-msw.c (msw_output_console_string):
15050         * console-msw.c (console_type_create_mswindows):
15051
15052         a) Added functions to manipulate the console window for use with
15053         shell support.
15054
15055         b) Added support for writing text to the console, which is now
15056         used under Windows when xemacs is not being run non-interactively,
15057         to write text that would otherwise be destined for stdout because
15058         under these circumstances, text written to stdout tends to
15059         disappear and not be seen.
15060
15061         * console-msw.h:
15062         * event-Xt.c:
15063         * event-Xt.c (x_event_to_emacs_event):
15064         * event-Xt.c (describe_event_window):
15065         * events-mod.h (XEMACS_MOD_CONTROL):
15066         * events.c:
15067         * events.c (Fmake_event):
15068         * events.c (character_to_event):
15069         * events.c (event_to_character):
15070         * events.c (format_event_object):
15071         * events.c (Fevent_modifiers):
15072         * events.h:
15073         * events.h (struct key_data):
15074         * events.h (struct button_data):
15075         * events.h (struct misc_user_data):
15076         * frame-x.c (Fcde_start_drag_internal):
15077         * frame-x.c (Foffix_start_drag_internal):
15078         * gpmevent.c (Freceive_gpm_event):
15079         * keymap.c:
15080         * keymap.c (bucky_sym_to_bucky_bit):
15081         * keymap.c (control_meta_superify):
15082         * keymap.c (make_key_description):
15083         * keymap.c (keymap_lookup_directly):
15084         * keymap.c (create_bucky_submap):
15085         * keymap.c (keymap_store):
15086         * keymap.c (define_key_check_and_coerce_keysym):
15087         * keymap.c (define_key_parser):
15088         * keymap.c (define_key_alternate_name):
15089         * keymap.c (Fdefine_key):
15090         * keymap.c (raw_lookup_key_mapper):
15091         * keymap.c (struct map_keymap_unsorted_closure):
15092         * keymap.c (map_keymap_unsorted_mapper):
15093         * keymap.c (map_keymap_sort_predicate):
15094         * keymap.c (map_keymap_sorted):
15095         * keymap.c (accessible_keymaps_mapper_1):
15096         * keymap.c (where_is_recursive_mapper):
15097         * keymap.c (describe_map_mapper):
15098         * keymap.c (describe_map_sort_predicate):
15099         * keymap.c (describe_map):
15100         * keymap.c (complex_vars_of_keymap):
15101         And a number of other files, the key modifier preprocessor
15102         constants that xemacs uses have names that conflict with constants
15103         defined under MS Windows for other purposes, so they were renamed
15104         to begin with the prefix XEMACS_. The variables that hold such
15105         modifiers were changed to consistently be of type int to fix
15106         various compile warnings.
15107
15108         * console.c (complex_vars_of_console):
15109         * device.c:
15110         * device-msw.c:
15111         * device-msw.c (mswindows_finish_init_device):
15112         * device-msw.c (msw_get_workspace_coords):
15113         * device-msw.c (mswindows_device_system_metrics):
15114         and various other files, added support for a new
15115         device property called offset-workspace which returns the position
15116         of the upper left corner of the workspace area and goes along with
15117         the existing size-workspace property.
15118
15119         * dialog-msw.c:
15120         * dialog-msw.c (push_bufbyte_string_as_unicode):
15121         * dialog-msw.c (mswindows_popup_dialog_box):
15122         Added support for XEmacs-style accelerator specifications in
15123         button text.  Note: I didn't add support for this under X Windows,
15124         and somebody needs to do this.
15125
15126         * dialog.c:
15127         * dialog.c (Fpopup_dialog_box):
15128         Documented the support for accelerators that was just mentioned.
15129
15130         editfns.c (get_home_directory): Changed behavior under Windows
15131         when HOME not defined; former behavior was irretrievably broken.
15132
15133         * emacs.c:
15134         * emacs.c (main_1):
15135         * emacs.c (main):
15136         * minibuf.c (clear_echo_area_internal):
15137         * minibuf.c (echo_area_append):
15138         * print.c:
15139         * print.c (std_handle_out_external):
15140         * print.c (std_handle_out_va):
15141         * print.c (fatal):
15142         * print.c (write_string_to_stdio_stream):
15143         * print.c (output_string):
15144         * print.c (debug_print):
15145         * print.c (debug_backtrace):
15146         * print.c (debug_short_backtrace):
15147         Cleaned up the code that prints text to stdout so that this can be
15148         changed to output into a console window instead under MS Windows,
15149         as described above.
15150
15151         * eval.c:
15152         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15153         * eval.c (internal_catch):
15154         * eval.c (unwind_to_catch):
15155         * eval.c (throw_or_bomb_out):
15156         * eval.c (condition_case_1):
15157         * eval.c (signal_1):
15158         * eval.c (check_error_state_sanity):
15159         * eval.c (call_with_suspended_errors_1):
15160         * eval.c (call_with_suspended_errors):
15161         * eval.c (reinit_vars_of_eval):
15162         Added code to catch throw loops and check for a pesky bug that may
15163         be gone now.
15164
15165         * event-msw.c:
15166         * event-msw.c (key_needs_default_processing_p):
15167         * event-msw.c (mswindows_wnd_proc):
15168         * event-msw.c (mswindows_modifier_state):
15169         * event-msw.c (emacs_mswindows_quit_p):
15170         * event-msw.c (vars_of_event_mswindows):
15171         a) Added support for using the alt key to select menu items as is
15172         standard under MS Windows.  This is controlled using the variable
15173         menu-accelerator-enabled, just like under X Windows.  There is an
15174         option on the options menu to turn this support on.  I really
15175         think that it should be on by default under Windows, but I'm not
15176         going to make this change yet.
15177
15178         b)  Added support for dynamic display size changes under Windows.
15179
15180         * event-stream.c:
15181         * event-stream.c (maybe_echo_keys):
15182         * event-stream.c (Fnext_event):
15183         * event-stream.c (command_builder_find_leaf):
15184         * event-stream.c (lookup_command_event):
15185         * event-stream.c (execute_command_event):
15186         * event-stream.c (pre_command_hook):
15187         * event-stream.c (post_command_hook):
15188         * event-stream.c (syms_of_event_stream):
15189         * event-stream.c (vars_of_event_stream):
15190         * event-stream.c (complex_vars_of_event_stream):
15191         * events.h (struct command_builder):
15192
15193         a) Tried to clean up a little bit the horribly written x-specific
15194         accelerator code that crept into this file.  I moved this code
15195         into menubar-x.c where it belongs. I also needed to move the
15196         command builder structure into the file events.h because it is
15197         accessed directly by this accelerator code.  What I didn't do, but
15198         which should be done at some point, is to properly abstract this
15199         code using device methods instead of the kludgy way that it
15200         currently hooks into the event code.
15201
15202         b) Added the lisp variables this-command-properties and
15203         last-command- properties, which should be used to synchronize two
15204         adjacent commands in preference to playing games with the variable
15205         this-command, which is typically what happens.
15206
15207         c) Added some slightly nasty code to hook into the lisp support
15208         for shifted- motion-key selection.  This is actually necessary for
15209         somewhat complicated reasons, which are described in
15210         simple.el. (NB: I think the proper thing would be to have the code
15211         that calls the pre and post command hooks also call out to generic
15212         lisp functions in simple.el, where all built-in stuff could be
15213         added.  I will think about this more.)
15214
15215         * event-unixoid.c (poll_fds_for_input):
15216         * lread.c (readchar):
15217         * redisplay-tty.c (tty_clear_frame):
15218         * redisplay-x.c (x_get_gc):
15219         * signal.c (interrupt_signal):
15220         And a whole bunch of other files: fixed up places that printed
15221         directly to stderr to instead call the function stderr_out so that
15222         the changes I made under Windows work correctly.
15223
15224         * filemode.c (mode_string):
15225         Warning fixes.
15226
15227         * frame-msw.c:
15228         * frame-msw.c (mswindows_size_frame_internal):
15229         Fixed the computation of frame size and position to keep the frame
15230         within the workspace area, rather than within the physical
15231         dimensions of the screen, so that the frame doesn't overlap window
15232         manager decorations, such as the start menu and toolbar, typically
15233         at the bottom of the screen.
15234
15235         * frame.c (vars_of_frame):
15236         Changed the default frame title format under MS Windows to consist
15237         of buffername-XEmacs, which is standard under MS Windows.  I think
15238         it might be a good idea to change this everywhere because I think
15239         it is superior to the current frame title format, but this is the
15240         kind of change that is likely to cause some people to get annoyed,
15241         so I'm not making it.
15242
15243         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15244
15245         * gui-msw.c (mswindows_handle_gui_wm_command):
15246         Fixed compile warnings.
15247
15248         * gui-x.c:
15249         * gui-x.c (strdup_and_add_accel):
15250         * gui-x.c (button_item_to_widget_value):
15251         * gui-x.h:
15252         Added code to automatically put an accelerator onto the beginning
15253         of menu items that don't have one as is now the standard, and is
15254         described more later.  Also fixed things so that the menu item
15255         name can be an evaluated expression, again a new standard.
15256
15257         * gui.c:
15258         * gui.c (gui_item_add_keyval_pair):
15259         * gui.c (make_gui_item_from_keywords_internal):
15260         * gui.c (gui_add_item_keywords_to_plist):
15261         * gui.c (gui_item_accelerator):
15262         * gui.c (gui_name_accelerator):
15263         * gui.c (gui_item_included_p):
15264         * gui.c (gui_item_display_flush_left):
15265         * gui.c (gui_item_display_flush_right):
15266         * gui.c (parse_gui_item_tree_item):
15267         * gui.c (parse_gui_item_tree_children):
15268         * gui.c (parse_gui_item_tree_list):
15269         Mule-ized.  Cleanup.  GCPRO addition.
15270
15271         * line-number.c (buffer_line_number):
15272         * lisp.h:
15273         * lisp.h (EMACS_INT_MAX):
15274         Added the manifest constant EMACS_INT_MIN corresponding to the
15275         existing constant EMACS_INT_MAX.  This is partially to fix compile
15276         warnings under Windows, and partly for cleanliness.
15277
15278         * menubar-msw.c:
15279         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15280         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15281         * menubar-msw.c (displayable_menu_item):
15282         * menubar-msw.c (populate_menu_add_item):
15283         * menubar-msw.c (populate_or_checksum_helper):
15284         * menubar-msw.c (populate_menu):
15285         * menubar-msw.c (update_frame_menubar_maybe):
15286         * menubar-msw.c (prune_menubar):
15287         * menubar-msw.c (msw_char_is_accelerator):
15288         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15289         * menubar-msw.c (mswindows_handle_wm_command):
15290         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15291         * menubar-msw.c (mswindows_handle_wm_initmenu):
15292         * menubar-msw.c (mswindows_update_frame_menubars):
15293         * menubar-msw.c (mswindows_free_frame_menubars):
15294         * menubar-msw.c (mswindows_popup_menu):
15295         Fixed a bug in handling accelerators where an extra character
15296         would be displayed in the menu item.  Also generalized the
15297         function displayable_menu_item because it is now used by the
15298         dialog box code as well.  And finally, added code in the functions
15299         that create the menubar to extract a list of accelerators for the
15300         top level menubar, which is used in the event code to determine
15301         whether a particular alt-key combination should be used to invoke
15302         a menu item, or should be passed through to access the standard
15303         XEmacs keymap binding for this key combination.
15304
15305         Much needed GCPROing.
15306
15307         * menubar-x.c:
15308         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15309         * menubar-x.c (menu_item_descriptor_to_widget_value):
15310         * menubar-x.c (restore_in_menu_callback):
15311         * menubar-x.c (x_popup_menu):
15312         * menubar-x.c (menu_move_up):
15313         * menubar-x.c (menu_move_down):
15314         * menubar-x.c (menu_move_left):
15315         * menubar-x.c (menu_move_right):
15316         * menubar-x.c (menu_select_item):
15317         * menubar-x.c (command_builder_operate_menu_accelerator):
15318         * menubar-x.c (menu_accelerator_junk_on_error):
15319         * menubar-x.c (command_builder_find_menu_accelerator):
15320         * menubar-x.c (Faccelerate_menu):
15321         * menubar.h:
15322         Moved a whole bunch of code here that was previously in
15323         event-stream.c as described above.  There is also code connected
15324         to the new standard of adding an accelerator to the beginning of
15325         menu items that don't have one as described above and below.
15326
15327         * menubar.c:
15328         * menubar.c (menu_parse_submenu_keywords):
15329         * menubar.c (Fmenu_find_real_submenu):
15330         * menubar.c (Fnormalize_menu_item_name):
15331         * menubar.c (syms_of_menubar):
15332         * menubar.c (vars_of_menubar):
15333         * menubar.c (complex_vars_of_menubar):
15334
15335         a) Cleaned up a bunch of documentation and improved it.
15336
15337         b) XEmacs now automatically adds an accelerator onto the beginning
15338         of any menu items that don't have one.  I did this because there
15339         will inevitably be some menu items on the main menubar that don't
15340         have accelerators on them because the package that adds that
15341         particular menu item hasn't yet been fixed up to have accelerators
15342         in them and it looked rather strange to have some items with and
15343         some items without accelerators, especially since even in items
15344         without accelerators, you can, at least under windows, still
15345         access the item through an accelerator corresponding to the first
15346         character in the item's name.  If people don't like this behavior,
15347         I can add a variable to turn it off optionally, but I'm not sure
15348         this is a good idea because we really do need to have accelerators
15349         on all of the menu items, and if a package doesn't like the
15350         accelerators being put on the first character, then it should put
15351         the accelerators where they belong.
15352
15353         c) I made a behavior change, which is that the descriptor that
15354         specifies the text of the menu item, which formerly was just a
15355         string, can now also be an evaluated expression.  This makes this
15356         descriptor parallel with all of the others, which could also be
15357         evaluated expressions.  This also obviates the need for the
15358         keyword :label, which was previously listed in the documentation
15359         as unimplemented, and which was for the same purpose.
15360
15361         d) GCPROing.
15362
15363         * ntproc.c:
15364         * ntproc.c (new_child):
15365         * ntproc.c (sys_spawnve):
15366         * ntproc.c (find_child_console):
15367         * ntproc.c (sys_kill):
15368         Fixed compile warnings.  By the way, this file should really go
15369         away entirely, and this will happen as soon as Kirill makes his
15370         final round of process cleanups, which affect the function
15371         call-process.
15372
15373         * process-nt.c:
15374         * process-nt.c (struct nt_process_data):
15375         * process-nt.c (find_process_from_pid):
15376         * process-nt.c (send_signal_the_nt_way):
15377         * process-nt.c (enable_child_signals):
15378         * process-nt.c (find_child_console):
15379         * process-nt.c (send_signal_the_95_way):
15380         * process-nt.c (nt_finalize_process_data):
15381         * process-nt.c (ensure_console_window_exists):
15382         * process-nt.c (nt_create_process):
15383         * process-nt.c (nt_kill_child_process):
15384         * process-nt.c (nt_kill_process_by_pid):
15385         * process-nt.c (nt_open_network_stream):
15386         * process-nt.c (vars_of_process_nt):
15387         Copied over code from Emacs 20.5 to correctly send signals to sub-
15388         processes under Windows 95.  Also added code to automatically
15389         create and hide console window when a sub-process is created under
15390         Windows 95, which obviates the need for the separate runemacs.exe
15391         executable, and finally implemented some variables that were
15392         implemented in Emacs 20.5, but previously not in XEmacs.  These
15393         include mswindows- start-process-share-console and
15394         mswindows-start-process-inherit-error-mode. (Both of these only
15395         apply to Windows 95.)
15396
15397         * regex.c (regex_compile): Fixed a compile warning.
15398
15399         * select-msw.c:
15400         * select-msw.c (mswindows_own_selection):
15401         * select-msw.c (mswindows_get_foreign_selection):
15402         * select-msw.c (mswindows_disown_selection):
15403         * select-msw.c (console_type_create_select_mswindows):
15404         * select-msw.c (syms_of_select_mswindows):
15405         Cleaned up the file and implemented the device method
15406         selection_exists_p, which had accidentally been left out.  Also
15407         removed four lisp functions that were remnants from before the
15408         time when the selection code was properly device abstracted.
15409         These functions are no longer needed because there are generic
15410         equivalents, and because they were added recently and don't exist
15411         in FSF Emacs, I don't think there's any problem with just deleting
15412         them.
15413
15414         * sysdep.c:
15415         * sysdep.c (sys_subshell):
15416         Fixed a compile warning, although in this case there's probably
15417         something wrong with this code, and it ought to be looked into
15418         more thoroughly by somebody who understands it.
15419
15420         * window.c:
15421         * window.c (Fwindow_text_area_height):
15422         * window.c (Fwindow_width):
15423         * window.c (Fwindow_full_width):
15424         * window.c (Fwindow_pixel_width):
15425         * window.c (debug_print_window):
15426         * window.c (syms_of_window):
15427         Added functions window-text-area-height and window-full-width,
15428         which are functions for returning various width and height
15429         characteristics of a window. (One of these functions is necessary
15430         for making the file dialog box work correctly, and the other one
15431         was added for completeness.)  Also added a table to the
15432         documentation for window-height which describes the entire scheme
15433         for accessing width and height characteristics of a window.
15434
15435 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15436
15437         * nt.c (fstat): Added a comment for another problem with
15438         non-encapsulated [f]stat(), reported by Adrian Aichner
15439         <aichner@ecf.teradyne.com>.
15440
15441 2000-03-11  Andy Piper  <andy@xemacs.org>
15442
15443         * window.c (make_dummy_parent): initialize subwindow instance
15444         cache.
15445         (Fset_window_configuration): zero extent_modiff.
15446
15447 2000-03-10  Andy Piper  <andy@xemacs.org>
15448
15449         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15450         more changes can be triggered.
15451         (Fredisplay_frame): ditto.
15452         (Fredraw_device): ditto.
15453         (Fredisplay_device): ditto.
15454         (redisplay_frame): make non-static.
15455         (redisplay_frame): call update_frame_gutter_geometry outside of
15456         display proper.
15457
15458         * gutter.h: declare update_frame_gutter_geometry.
15459
15460         * redisplay.h: declare redisplay_frame.
15461
15462         * gutter.c (update_frame_gutter_geometry): move geometry changes
15463         in update_frame_gutters here. Geometry changes can only occur
15464         outside of redisplay.
15465         (update_frame_gutters): remove geometry change code.
15466         (Fredisplay_gutter_area): make sure that we are in display when we
15467         update and that we have flushed any size changes.
15468
15469 2000-03-11  Andy Piper  <andy@xemacs.org>
15470
15471         * alloc.c (pdump_dump_data): remove i & count shadows.
15472
15473 2000-02-27  Mike Alexander  <mta@arbortext.com>
15474
15475         * sysdep.h: Declare pdump_read_file
15476
15477         * sysdep.c (pdump_read_file): New function
15478
15479         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15480         dump data
15481
15482 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15483
15484         * lrecord.h: add `lrecord_type_pgsetenv'.
15485
15486 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15487
15488         * symsinit.h: declare (vars|syms)_of* functions.
15489         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15490
15491 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15492
15493         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15494
15495         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15496         GCCs.
15497
15498         * emacs.c (main_1): Call postgres initialization code.
15499
15500         * postgresql.h: New file.  PostgreSQL RDBMS support.
15501         * postgresql.c: New file.
15502
15503 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15504
15505         * redisplay-output.c (redisplay_output_display_block): Disable
15506         redundant code.
15507
15508 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15509
15510         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15511         (Fcanna_henkan_next): Ditto.
15512         (Fcanna_bunsetu_henkou): Ditto.
15513         (Fcanna_henkan_kakutei): Ditto.
15514         (Fcanna_henkan_end): Ditto.
15515         (Fcanna_henkan_quit): Ditto.
15516         (Fcanna_henkan_next): Set retun value correctly.
15517         (c2mu): Use unsigned char instead of signed char.
15518
15519 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15520
15521         * emacs.c (main_1): Always call syms_of_gui.
15522         * inline.c: include gui.h
15523
15524 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15525
15526         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15527         converted to Lisp_Object.
15528         (Qtop_bottom): New variable.
15529         (syms_of_redisplay): Initialize it.
15530         * redisplay.h (Vvisible_bell): Ditto.
15531         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15532         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15533         only flash top and bottom.
15534
15535 2000-03-08  Andy Piper  <andy@xemacs.org>
15536
15537         * buffer.c (Frename_buffer): record new buffer name the right way.
15538
15539 2000-03-08  Andy Piper  <andy@xemacs.org>
15540
15541         * glyphs.c (update_subwindow): increase hash depth so that widget
15542         items get picked up properly.
15543
15544         * redisplay-output.c (compare_runes): increase hash depth so that
15545         widget items get picked up properly.
15546
15547 2000-03-08  Andy Piper  <andy@xemacs.org>
15548
15549         * gutter.c (output_gutter): add some debug.
15550
15551         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15552         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15553         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15554
15555         * redisplay-output.c (compare_runes): use display_hash to
15556         determine if glyphs really are not the same.
15557
15558         * glyphs.c (update_subwindow): check display_hash to see if
15559         anything really needs to be updated. If not then do
15560         nothing. Record the display_hash after updating.
15561         (image_instance_equal): compare the image_instance face also.
15562
15563 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15564
15565         * redisplay.h: Fix comment style.
15566
15567 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15568
15569         * consle-msw.h (struct mswindows_frame):
15570         Added new member paint_pending to indicate whether a WM_PAINT
15571         magic event has been queued for this frame.
15572
15573         * event-msw.c (mswindows_drain_windows_queue):
15574         Don't queue a WM_PAINT magic event if one is already queued.
15575         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15576
15577         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15578
15579 2000-03-07  Didier Verna  <didier@xemacs.org>
15580
15581         * dired.c: #include `regex.h' after `sysfile.h'.
15582
15583 2000-03-06  Martin Buchholz  <martin@xemacs.org>
15584
15585         * sound.c (init_nas_sound): Fix compiler warning.
15586
15587         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
15588         (FREE_STRUCT_P):
15589         (MARK_STRUCT_AS_FREE):
15590         (MARK_STRUCT_AS_NOT_FREE):
15591         Make `gcc -fstrict-aliasing' work properly.
15592
15593 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15594
15595         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
15596         (mswindows_delete_device): Call CoUnnitialize().
15597
15598         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
15599
15600 2000-02-25    <CraigL@DyCon.com>
15601
15602         * process-nt.c: MinGW now has <shellapi.h>, but still needs
15603         <errno.h>.
15604
15605         * sysdep.c: This extern declaration for environ prevents MinGW
15606         from finding the variable in CRTDLL.DLL.
15607
15608         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
15609         windows headers.
15610         (SHGFI_EXETYPE): ..
15611         (WM_MOUSEWHEEL): ..
15612         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
15613         definitions.
15614         (MMRESULT): Removed, now defined in cygwin's windows headers.
15615         (TIMECAPS): ..
15616         (uid_t,gid_t,pid_t,ssize_t): ..
15617         (_timeb): Removed, MinGW defines both _timeb and timeb.
15618         (HAVE_H_ERRNO): Added.
15619         (HAVE_TZNAME): Added, configure is not detecting this.
15620
15621 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
15622
15623         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
15624         * syntax.c (syntax_match): Use it.
15625
15626         * cmds.c: Import auto-fill-chars from FSF Emacs.
15627         (Vauto_fill_chars): New variables.
15628         (internal_self_insert): Check Vauto_fill_chars.
15629         (vars_of_cmds):
15630         Declare auto-fill-chars as a Lisp variable and initialize it.
15631
15632 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15633
15634         * fileio.c (Fmake_symbolic_link):
15635         (Ffile_symlink_p):
15636         Run handlers even if local machine doesn't have symlinks.
15637
15638 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15639
15640         * event-msw.c (mswindows_drain_windows_queue):
15641         Don't generate paint magic events for non-XEmacs frames.
15642
15643 2000-03-05  Andy Piper  <andy@xemacs.org>
15644
15645         * redisplay.c (redisplay_frame): generate_displayable_area and
15646         friends assumes that we are not in GC, we therefore have to make
15647         sure that this doesn't happen.
15648
15649         * gutter.c (calculate_gutter_size): generate_displayable_area
15650         assumes that we are not in GC, we therefore have to make sure that
15651         this doesn't happen.
15652
15653 2000-03-05  Martin Buchholz  <martin@xemacs.org>
15654
15655         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
15656
15657 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15658
15659         * redisplay.c (regenerate_window): Make sure we set a sane value
15660         for end_pos even if we jump out of the loop.
15661         (regenerate_window): Answer Ben's question :-).
15662         (start_end_of_last_line): Add may_error argument.
15663         (start_of_last_line):
15664         (end_of_last_line): Pass may_error = 0.
15665         (end_of_last_line_may_error): New function.
15666         (pixel_to_glyph_translation): Use it, so we don't crash in
15667         event_to_glyph.
15668
15669 2000-03-04  Andy Piper  <andy@xemacs.org>
15670
15671         * window.h (struct window): add gutter_extent_modiff.
15672
15673         * window.c (allocate_window): zero out gutter_extent_modiff.
15674
15675         * redisplay.h: declare sync_display_line_structs.
15676
15677         * redisplay.c (add_glyph_rune): add a better comment.
15678
15679         * redisplay-output.c (sync_display_line_structs): made non-static.
15680         (compare_runes): remove unneccesary glyph cachel access.
15681
15682         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
15683
15684         * gutter.c (output_gutter): don't output the gutter if extent
15685         changes only involve extents in buffers. use 4 sets of display
15686         lines.
15687         (gutter_extent_signal_changed_region_maybe): new function. Mark
15688         extents in gutters as changed.
15689         (update_frame_gutters): use 4 sets of display lines.
15690         (reset_gutter_display_lines): ditto.
15691         (free_frame_gutters): ditto.
15692         (redraw_exposed_gutter): force output of gutters.
15693
15694         * frame.h (struct frame): add 4 sets of gutter display lines.
15695
15696         * extents.c: (extent_changed_for_redisplay): signal changes to
15697         extents in strings in the gutter as well as extents in buffers.
15698
15699 2000-03-02  Andy Piper  <andy@xemacs.org>
15700
15701         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
15702
15703         * frame.c (Fmake_frame): make sure the gutters get initialized
15704         after the frame is visible.
15705         (set_frame_selected_window): re-arrange compilation macros a
15706         little.
15707         (change_frame_size_1): mark gutters changed.
15708
15709         * device.c (Fset_device_class): mark gutters changed.
15710
15711 2000-03-01  Andy Piper  <andy@xemacs.org>
15712
15713         * window.c (window_top_frame_gutter_height): deleted.
15714         (window_bottom_frame_gutter_height): ditto.
15715         (window_left_frame_gutter_height): ditto.
15716         (window_right_frame_gutter_height): ditto.
15717         (window_top_gutter_height): don't use them.
15718         (window_bottom_gutter_height): ditto.
15719         (window_left_gutter_width): ditto.
15720         (window_right_gutter_width): ditto.
15721         (Fsplit_window): ditto.
15722         (Fwindow_pixel_edges): don't use border dimensions here.
15723
15724         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
15725         (update_scrollbar_instance): ditto.
15726
15727         * redisplay.c (generate_modeline): don't take gutters into account.
15728         (generate_modeline): ditto.
15729         (redisplay_frame): small gutter display optimization.
15730
15731         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
15732
15733         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
15734         gutters into account.
15735
15736         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
15737         for window position and type.
15738
15739         * gutter.c (get_gutter_coords): fix for frame gutters.
15740         (update_frame_gutters): update frame geometry if the gutters have
15741         changed.
15742         (init_frame_gutters): record current gutter geometries.
15743
15744         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
15745         var.
15746         (mswindows_widget_instantiate): ditto.
15747
15748         * frame.h (struct frame): add current_gutter_bounds.
15749
15750         * frame.c (change_frame_size_1): position window and minibuffer
15751         appropriately taking into account the frame gutters.
15752
15753         * frame-x.c: (x_initialize_frame_size): take into account the
15754         frame gutters.
15755
15756 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15757
15758         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
15759
15760 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15761
15762         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
15763
15764 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15765
15766         * file-coding.c (reset_decoding_stream): Clear previous
15767         detection state when autodetect.
15768
15769 2000-02-29  Didier Verna  <didier@xemacs.org>
15770
15771         * extents.c (set_extent_glyph_1): don't require extents to be
15772         attached.
15773
15774 2000-02-27  Andy Piper  <andy@xemacs.org>
15775
15776         * gutter.c (Fset_default_gutter_position): don't default left and
15777         right gutter visibility to t.
15778         (Fset_default_gutter_position): run
15779         default-gutter-position-changed-hook.
15780         (syms_of_gutter): add default-gutter-position-changed-hook.
15781
15782 2000-02-26  Andy Piper  <andy@xemacs.org>
15783
15784         * specifier.c (Fmake_specifier): add gutter references.
15785
15786         * gutter.h (RAW_WINDOW_GUTTER): new macro.
15787
15788         * lisp.h: declare Fvalid_plist_p.
15789
15790         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
15791         as changed.
15792         (default_gutter_visible_p_changed_in_window): invalidate gutter as
15793         well as its visibility so that it gets reconstructed.
15794         (construct_window_gutter_spec): new function. Construct a string
15795         to be displayed in the gutter from a plist of strings. Take care
15796         to only use elements that are declared as visible.
15797         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
15798         WINDOW_GUTTER.
15799         (gutter_validate): allow plists of strings in the specifier.
15800         (gutter_specs_changed): construct the real_gutter from the gutter
15801         specs using construct_window_gutter_spec.
15802         (gutter_visible_validate): gutter-visible is a new specifier type.
15803         (Fgutter_visible_specifier_p): new function for the new specifier.
15804         (syms_of_gutter): declare gutter-visible and
15805         Fgutter_visible_specifier_p.
15806         (specifier_type_create_gutter): intitalize new gutter-visible
15807         specifier.
15808         (reinit_specifier_type_create_gutter): ditto.
15809         (specifier_vars_of_gutter): use new specifier type for gutter
15810         visibility.
15811         (init_frame_gutters): construct real_gutter correctly.
15812         (Fgutter_specifier_p): beef up documentation.
15813         (Fgutter_size_specifier_p): ditto.
15814
15815         * winslots.h: add real_gutter slots.
15816
15817 2000-02-25  Andy Piper  <andy@xemacs.org>
15818
15819         * device-msw.c: Be kind to older cygwin versions. From Raymond
15820         Toy <toy@rtp.ericsson.se>.
15821
15822         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
15823         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
15824
15825 2000-02-25  Martin Buchholz  <martin@xemacs.org>
15826
15827         * elhash.c (MARK_OBJ): Practice macro hygiene.
15828
15829 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15830
15831         * miscplay.c: s/__inline__/inline/g;
15832         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
15833         (get_device_compdc): INLINE ==> static inline
15834         * *.[ch]: Change INLINE to INLINE_HEADER globally.
15835         find -name '*.h' | \
15836         xargs global-replace \
15837         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
15838
15839 2000-02-25  Andy Piper  <andy@xemacs.org>
15840
15841         * window.c (window_top_frame_gutter_height): new function.
15842         (window_top_window_gutter_height): ditto.
15843         (window_top_gutter_height): use them.
15844         (window_bottom_frame_gutter_height): new function.
15845         (window_bottom_window_gutter_height): ditto.
15846         (window_bottom_gutter_height): use them.
15847         (window_left_window_gutter_width): new function.
15848         (window_left_frame_gutter_width): ditto.
15849         (window_left_gutter_width): use them.
15850         (window_right_window_gutter_width): new function.
15851         (window_right_frame_gutter_width): ditto.
15852         (window_right_gutter_width): use them.
15853         (window_pixel_height): new function. calulate window pixel height
15854         with frame gutter involvement.
15855         (Fsplit_window): calculate new sizes taking frame gutters into
15856         account.
15857         (window_char_height_to_pixel_height): don't include frame gutters.
15858         (window_char_height): use window_pixel_height.
15859         (window_pixheight): rename from window_pixel_height.
15860         (change_window_height): use it.
15861         (window_pixel_height_to_char_height): don't include frame gutters.
15862         (window_char_width_to_pixel_width): ditto.
15863
15864 2000-02-25  Andy Piper  <andy@xemacs.org>
15865
15866         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
15867         if it is.
15868
15869 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15870
15871         * alloc.c (staticpro):
15872         (staticpro_nodump):
15873         (dumpstruct):
15874         (dumpopaque):
15875         (pdump_wire):
15876         (pdump_wire_list):
15877         (compact_string_chars):
15878         (pdump_dump_wired):
15879         Convert:  if (foo) abort();  ==>  assert (! foo);
15880
15881         * eldap.c (Fldap_search_basic):
15882         (Fldap_add):
15883         (Fldap_modify):
15884         (Fldap_delete):
15885         Fix compiler warnings, and possible crashes if (random) return
15886         value were to be used.
15887
15888 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15889
15890         * device-msw.c: Workaround ResetDC failure.
15891
15892         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
15893         applying a devmode.
15894
15895         * redisplay-msw.c (get_frame_dc): Added start_page_p.
15896         (mswindows_text_width): Do not start printer page.
15897
15898         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
15899
15900         * glyphs-msw.c: Added image methods to msprinter console and
15901         msprinter-specific image instantiation.
15902
15903 2000-02-20  Mike Alexander  <mta@arbortext.com>
15904
15905         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
15906         to avoid crashes when selection-sets-clipboard is on
15907         (mswindows_own_selection): ditto
15908
15909 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15910
15911         * glyphs-msw.c:
15912         * redisplay-msw.c (get_frame_dc):
15913         (get_frame_compdc):
15914         * console-msw.h:
15915         * device-msw.c (mswindows_init_device):
15916         (mswindows_delete_device):
15917         (msprinter_init_device):
15918         (msprinter_delete_device):
15919         * frame-msw.c (mswindows_init_frame_1):
15920         (mswindows_delete_frame):
15921         (msprinter_init_frame_3):
15922         (msprinter_delete_frame): Move compatible DC to device object from
15923         frame object, for both mswindows and msprinter. Only one at a time
15924         is needed, it is a real waste to have one per frame!
15925
15926 2000-02-23  Andy Piper  <andy@xemacs.org>
15927
15928         * glyphs.c: add dynamic width and height elements.
15929         (image_instance_equal): ditto.
15930
15931         * glyphs-widget.c (widget_query_geometry): calculate width and
15932         height dynamically if required.
15933         (initialize_widget_image_instance): initialize dynamic dimensions.
15934         (widget_instantiate): pick-up dynamic dimensions.
15935
15936         * glyphs.h (struct Lisp_Image_Instance): add width and height for
15937         dynamic determination. Add appropriate macros.
15938
15939         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
15940         dimensions safe.
15941         (WINDOW_GUTTER_SIZE): ditto.
15942         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
15943
15944         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
15945         inline.
15946         (get_frame_dc): ditto.
15947
15948         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
15949         here.
15950
15951 2000-02-23  Martin Buchholz <martin@xemacs.org>
15952
15953         * XEmacs 21.2.31 is released.
15954
15955 2000-02-22  Ben Wing <ben@xemacs.org>
15956
15957         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
15958
15959 2000-02-22  Andy Piper  <andy@xemacs.org>
15960
15961         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
15962
15963 2000-02-21  Mike Sperber <mike@xemacs.org>
15964
15965         * .dbxrc:
15966         * .gdbinit:
15967         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
15968         variables.
15969
15970 2000-02-21  Mike Sperber <mike@xemacs.org>
15971
15972         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
15973
15974 2000-02-21  Martin Buchholz <martin@xemacs.org>
15975
15976         * XEmacs 21.2.30 is released.
15977
15978 2000-02-20  Martin Buchholz  <martin@xemacs.org>
15979
15980         Performance hacking.
15981         * *.c (syms_of_*):
15982         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
15983         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
15984         * emacs.c (main_1):
15985         * lisp.h (DEFUN):
15986         * console.c (DEFVAR_CONSOLE_LOCAL_1):
15987         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
15988         * symeval.h (DEFVAR_SYMVAL_FWD):
15989         * symbols.c (guts_of_unbound_marker):
15990         Make all c_readonly objects also lisp_readonly and marked for life.
15991         * lrecord.h (struct lrecord_implementation):
15992         Document flags better.
15993         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
15994         * lrecord.h (DECLARE_LRECORD):
15995         * lrecord.h (XSETRECORD):
15996         * lrecord.h (RECORDP):
15997         * lrecord.h (RECORD_TYPEP):
15998         * lrecord.h (RECORD_MARKER): New.
15999         * lrecord.h (error_check_*):
16000         * lrecord.h (CONCHECK_NONRECORD):
16001         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16002         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16003         * lrecord.h (set_lheader_implementation):
16004         * lrecord.h (enum lrecord_type): New.
16005         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16006         * alloc.c (disksave_object_finalization_1):
16007         * alloc.c (mark_object):
16008         * alloc.c (lrecord_type_index):
16009         * alloc.c (tick_lcrecord_stats):
16010         * alloc.c (Fgarbage_collect):
16011         * alloc.c (init_alloc_once_early):
16012         * alloc.c (pdump_load):
16013         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16014         * alloc.c (lrecord_type_index): Delete.
16015         Make lisp object type indexes be constant.
16016           Makes (byte-compile) 5% faster.
16017         Put all marker functions into their own array.
16018           Makes (garbage-collect) 5% faster.
16019         Optimize SYMBOL_VALUE_MAGIC_P.
16020           Makes (byte-compile) 2-3% faster.
16021         * config.h.in (gc_checking_assert): New.
16022         * alloc.c: Use gc_checking_assert().
16023         * .dbxrc: Make compatible with new object type implementation.
16024         * .gdbinit: Make compatible with new object type implementation.
16025         * alloc.c: Delete all symbols defined only for debugging, such as
16026         Lisp_Type_Vector and lrecord_charset.
16027
16028 2000-02-21  Andy Piper  <andy@xemacs.org>
16029
16030         * gui-msw.c (Fmswindows_shell_execute): fix file location
16031         problems.
16032
16033         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16034         unshowing so that set_window_buffer doesn't undo
16035         kill_buffer_hook's hard work.
16036
16037         * glyphs-widget.c (tab_control_query_geometry): don't count the
16038         first item when calculating geometry.
16039
16040         * glyphs.c (map_subwindow): remove redundant code.
16041         (update_frame_subwindows): be more circumspect about when to
16042         update subwindows.
16043
16044         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16045         when items haven't changed. Update faces if faces have changed as
16046         well as just the widget face.
16047         (x_tab_control_update): Update faces if faces have changed as well
16048         as just the widget face.
16049
16050 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16051
16052         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16053         registration.
16054         (build_syscolor_string): Use mswindows_color_to_string to try to
16055         get a named color.
16056         (mswindows_device_system_metrics): Reverse the foreground and
16057         background colors so that they match the documentation.
16058
16059         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16060         they match the default Windows palette.
16061         (mswindows_color_to_string): New function.
16062
16063 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16064
16065         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16066
16067 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16068
16069         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16070         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16071
16072         * symbols.c (init_symbols_once_early): Removed obsolete
16073         DATA_SEG_BITS related kludge.
16074         (defvar_magic): Ditto.
16075
16076         * malloc.c: Removed obsolete DATA_SEG_BITS
16077         * ralloc.c: Ditto.
16078         * mem-limits.h: Ditto.
16079
16080         * Makefile.in.in: Removed obsolete HAVE_SHM
16081         * emacs.c: Ditto.
16082
16083 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16084
16085         *  device-msw.c (mswindows_delete_device): Free DDE string
16086         handles.
16087
16088 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16089
16090         * keymap.c (get_keyelt):
16091         * unexnt.c (unexec):
16092         * vm-limit.c (memory_warnings):
16093         * ntheap.c (recreate_heap):
16094         * ntheap.h (UNINIT_PTR):
16095         * select-msw.c (Fmswindows_get_clipboard):
16096         (Fmswindows_set_clipboard):
16097         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16098         * objects-msw.c:
16099         * menubar-msw.c (displayable_menu_item):
16100         * glyphs-msw.c:
16101         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16102         * sysdep.c (sys_subshell):
16103         * process-nt.c (nt_create_process):
16104         * nt.c (normalize_filename):
16105         (dostounix_filename):
16106         (unixtodos_filename):
16107         * ntproc.c (win32_executable_type):
16108         * ntplay.c (play_sound_data_1):
16109         (play_sound_file):
16110         * editfns.c (get_home_directory):
16111         * event-msw.c (struct winsock_stream):
16112         (mswindows_dde_callback):
16113         * device-msw.c (msprinter_init_device):
16114         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16115
16116         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16117         mswindows_clear_toolbar were swapped!
16118
16119         * objects-msw.c:(colormap_t):
16120         (fontmap_t):
16121         * emacs.c (struct standard_args): Fixed const jumble.
16122
16123         * glyphs-widget.c (update_widget): Fixed comparison notation.
16124
16125         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16126
16127         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16128         __declspec(noreturn) syntax.
16129
16130 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16131
16132         * eldap.c (Fldap_open):
16133         (Fldap_search_basic):
16134         (Fldap_add):
16135         (Fldap_modify):
16136         Use new coding system conversion macros.
16137
16138 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16139
16140         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16141
16142 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16143
16144         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16145         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16146
16147         * eldap.c (Qadd, Qreplace): New constant symbols
16148         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16149         interruptions by XEmacs signals
16150         Remove unnecessary calls to slow_down_interrupts and
16151         speed_up_interrupts
16152         (Fldap_search_basic): Renamed from Fldap_search_internal
16153         Added new optional parameter VERBOSE that triggers the
16154         display of progress messages
16155         Remove unnecessary calls to slow_down_interrupts and
16156         speed_up_interrupts
16157         LDAP result code analysis rewritten
16158         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16159         (syms_of_eldap): Define the new symbols and functions
16160
16161
16162 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16163
16164         * realpath.c: Determine PATH_MAX maximally portably.
16165
16166         * insdel.c (bytecount_to_charcount): Optimize.
16167         The function used to be optimized for entirely ASCII sequences.
16168         Now it is optimized for successive characters from the same
16169         charset.  This also wins big for _mostly_ ASCII sequences.
16170
16171         * fileio.c (Ffile_truename): convert return from realpath() using
16172         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16173         - Rewrite GCPROing slightly.
16174
16175         * sysdep.c (sys_open): Do filename conversion, like all other
16176         sys_* functions.  Fixes bug:
16177         (let ((file-name-coding-system 'iso-8859-2))
16178            (write-region x y latin2-name))
16179         ==> writes filename using internal encoding.
16180
16181 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16182
16183         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16184         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16185         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16186         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16187         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16188         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16189         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16190         (CONST_IF_NOT_DEBUG): Delete.
16191         * alloc.c (this_one_is_unmarkable): Delete.
16192         (mark_object): Don't check for this_one_is_unmarkable. Use the
16193         c_readonly flag instead.
16194         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16195
16196 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16197
16198         * event-msw.c (mswindows_drain_windows_queue):
16199         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16200         away redundant repaint events.
16201
16202 2000-02-17  Andy Piper  <andy@xemacs.org>
16203
16204         * redisplay.h: declare mark_redisplay_structs.
16205
16206         * redisplay.c (redisplay_window):
16207         (redisplay_frame): don't check subwindows_state_changed.
16208         (mark_redisplay): mark gutters here.
16209
16210         * glyphs.c: (instantiate_image_instantiator): always layout if we
16211         haven't done so already.
16212         (allocate_image_instance): don't mark as dirty.
16213         (update_subwindow): bind inhibit_quit.
16214
16215         * gutter.c (mark_gutters): new function.
16216
16217         * glyphs-x.c (x_update_widget): Always resize to get round a
16218         widget bug.
16219
16220         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16221         breaking absolutely everything.
16222
16223         * gutter.h: declare mark_gutters.
16224
16225 2000-02-16  Martin Buchholz <martin@xemacs.org>
16226
16227         * XEmacs 21.2.29 is released.
16228
16229 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16230
16231         * fns.c (size_bit_vector): Fix computation of the size.
16232
16233 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16234
16235         * *.[ch]: Change CONST to const globally.
16236         find -name '*.[ch]' | \
16237         xargs global-replace \
16238         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16239         - Remove vestigial references to CONST_IS_LOSING
16240
16241 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16242
16243         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16244         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16245         events instead of dispatching them directly.
16246         (mswindows_handle_paint): New function to do repainting.
16247         (mswindows_wnd_proc):
16248         (emacs_mswindows_handle_magic_event): Call above function.
16249
16250 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16251
16252         * objects-msw.c (mswindows_create_font_variant): Return the new
16253         font handle.
16254         (initialize_font_instance): Get font metrics from the underlined
16255         variant of the font to cope with the case where the underlined
16256         font has a bigger descent.
16257
16258 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16259
16260         * gui.c (gui_item_accelerator): Return the first underlined
16261         character in item name.
16262
16263 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16264
16265         * lisp.h: Added Qprinter.
16266
16267         * general.c (syms_of_general): Initialized it.
16268
16269         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16270         (get_frame_dc):
16271         (get_frame_compdc): Made inline.
16272
16273         * console.h (struct console_methods): Added eject_page method.
16274
16275         * frame.h: Added FRAME_DISPLAY_P and friends.
16276         Aligned backslahes in many macros in more readable fashion.
16277         Added page_number to struct frame, and an accessor macro
16278         for it.
16279
16280         * defice.h: Added DEVICE_DISPLAY_P and friends.
16281
16282         * device.c (Fdevice_printer_p): Used these.
16283
16284         * frame.c (allocate_frame_core): Initialize page number.
16285         (Fprint_job_page_number):
16286         (Fprint_job_eject_page): Implemented.
16287
16288         * frame-msw.c (msprinter_eject_page): Added method.
16289         (msprinter_start_page): Added.
16290
16291         * window.c (Fwindow_truncated_p): Fixed docstring.
16292         (Fwindow_last_line_visible_height): Implemented.
16293
16294 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16295
16296         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16297
16298 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16299
16300         * syntax.c (scan_words): Always advance at least one character.
16301
16302 2000-02-13  Andy Piper  <andy@xemacs.org>
16303
16304         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16305         to make sure the glyph is in the cachels.
16306
16307         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16308         global image instance flag.
16309         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16310         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16311
16312         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16313         (Fset_image_instance_property): mark layout as changed.
16314         (invalidate_glyph_geometry_maybe): mark layout as changed.
16315         (glyph_width): use new NEEDS_LAYOUT macro.
16316         (glyph_ascent): ditto.
16317         (glyph_descent): ditto.
16318         (glyph_height): ditto.
16319         (image_instance_layout): mark layout as clean after laying out.
16320         (update_subwindow): don't mark layout as clean here.
16321
16322         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16323         should no longer be needed.
16324
16325         * glyphs-x.c (x_update_widget): sanitize asserts.
16326         (x_finalize_image_instance): sanitize assignment to widgets.
16327
16328         * glyphs-widget.c (widget_instantiate): don't need to clear the
16329         layout flag here.
16330
16331 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16332
16333         * sysdep.c (getcwd): Use standard prototype.
16334         * sysdep.h (getcwd): Use standard prototype.
16335
16336         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16337         (sequence, start, end).
16338         Remove redundant type checking.
16339         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16340         view of `caller-protects') to avoid a crash where the real fix was
16341         found elsewhere.
16342
16343 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16344
16345         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16346
16347         * s/sol2.h: Remove feature macro initialization.
16348
16349         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16350         (vector_hash): New.  Code from internal_hash.
16351         * lrecord.h:
16352         Fix up allocation subsystem comments.
16353
16354         * config.h.in: Add __EXTENSIONS__ for Solaris.
16355
16356         * systime.h (EMACS_GETTIMEOFDAY): New.
16357         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16358         Remove Solaris-specific code.
16359         Use void* for the (ignored) second arg for gettimeofday().
16360
16361         * elhash.c (hash_table_hash): Implement it, finally.
16362         * elhash.c:  Use hashcode_t.
16363
16364         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16365         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16366
16367         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16368         * fns.c (size_bit_vector):
16369         * alloc.c (size_vector):
16370         (make_vector_internal):
16371         (make_bit_vector_internal):
16372         (sweep_bit_vectors_1):
16373         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16374
16375 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16376
16377         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16378         Include strings.h to avoid warnings for bzero and strcasecmp.
16379
16380 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16381
16382         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16383         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16384
16385         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16386         sequence.
16387
16388 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16389
16390         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16391         use a value field instead.
16392         (symbol_value_forward_forward): Use value field.
16393         (DEFVAR_SYMVAL_FWD): Use value field.
16394         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16395         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16396         (DEFVAR_CONST_INT): Ditto.
16397         (DEFVAR_BOOL): Ditto.
16398         (DEFVAR_CONST_BOOL): Ditto.
16399         (DEFVAR_INT_MAGIC): Ditto.
16400         (DEFVAR_BOOL_MAGIC): Ditto.
16401
16402         * symbols.c (guts_of_unbound_marker): Use value field.
16403         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16404         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16405
16406         * lisp.h: Declare dumpopaque and noninteractive1.
16407
16408         * alloc.c (dumpopaque): Added.
16409         (pdump_dump_opaquevec): Added.
16410         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16411         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16412         noninteractive.
16413
16414 2000-02-10  Andy Piper  <andy@xemacs.org>
16415
16416         * glyphs.c (image_instance_layout): if the size changes, mark it
16417         as such.
16418
16419         * redisplay-output.c (redisplay_output_layout): Update the
16420         subwindow here.
16421         (redisplay_output_subwindow): ditto.
16422
16423         * glyphs.c (update_subwindow): make sure we reset flags for
16424         layouts as well as everything else.
16425
16426         * glyphs-widget.c (layout_layout): don't need to set the instances
16427         dimensions here.
16428
16429 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16430
16431         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16432         not HAVE_DLOPEN, which is a lower-level thing.
16433
16434         * .cvsignore: Ignore gmon.out
16435
16436 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16437
16438         * .cvsignore: Ignore portable dumper xemacs.dmp file
16439
16440 2000-02-09  Andy Piper  <andy@xemacs.org>
16441
16442         * redisplay-output.c (redisplay_output_layout): be more clever
16443         about when we output based on the changed flags.
16444
16445         * glyphs.h (struct image_instantiator_methods): add update_method.
16446         (struct Lisp_Image_Instance): add changed flags. Declare new
16447         macros for manipulating them.
16448
16449         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16450         (image_instance_parent_glyph): find an image_instance's parent
16451         glyph or image_instance.
16452         (image_instance_layout): mark the size as changed.
16453         (set_image_instance_dirty_p): new function. mark an image
16454         instance, plus all of its parents, as dirty.
16455         (Fset_image_instance_property): use it.
16456         (Fglyph_animated_timeout_handler): use it.
16457         (update_subwindow): call update_widget and device methods for
16458         update_subwindow. Mark all changed flags as clean.
16459         (Fresize_subwindow): mark size as changed.
16460
16461         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16462         failures.
16463         (x_update_subwindow): only resize subwindows here.
16464         (x_update_widget): new function. Update all changed properties of
16465         a widget.
16466         (x_resize_subwindow): deleted.
16467         (x_widget_set_property): deleted.
16468         (x_progress_gauge_set_property): deleted.
16469         (x_progress_gauge_update): new function. Implement recorded
16470         changes.
16471         (x_tab_control_update): ditto.
16472         (x_tab_control_set_property): deleted.
16473         (console_type_create_glyphs_x): declare new functions.
16474         (image_instantiator_format_create_glyphs_x): ditto.
16475
16476         * glyphs-widget.c (widget_set_property): mark text changed.
16477         (update_widget): new function. Update properties of a widget.
16478         (widget_instantiate): for layouts make sure we set their
16479         children's parent correctly.
16480         (tab_control_set_property): new function. Record changes that will
16481         take place under redisplay's control.
16482         (progress_gauge_set_property): ditto.
16483         (image_instantiator_progress_guage): declare new functions.
16484         (image_instantiator_tab_control): ditto.
16485
16486         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16487         now.
16488         (mswindows_update_widget): new function. Update all properties on
16489         a widget that have changed.
16490         (mswindows_button_update): new function. Update a button's set
16491         state.
16492         (mswindows_tab_control_update): new function. Update the items in
16493         a tab.
16494         (mswindows_tab_control_set_property): deleted.
16495         (mswindows_progress_gauge_update): new function. Update the
16496         progress gauge's progress.
16497         (mswindows_widget_set_property): deleted. This is all done
16498         asynchronously now.
16499         (mswindows_progress_gauge_set_property): ditto.
16500         (console_type_create_glyphs_mswindows): declare new methods.
16501         (image_instantiator_format_create_glyphs_mswindows): ditto.
16502
16503         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16504         (msprinter_set_frame_properties): ditto.
16505
16506         * console.h (struct console_methods): Add update_widget_method.
16507
16508 2000-02-09  Andy Piper  <andy@xemacs.org>
16509
16510         * gui-msw.c (Fmswindows_shell_execute): Make
16511         mswindows-shell-execute industrial strength.
16512
16513 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16514
16515         * lrecord.h: Make macro argument `props' match member function `plist'.
16516         * fns.c (Fget):
16517         * fns.c (Fput):
16518         * fns.c (Fremprop):
16519         * fns.c (Fobject_plist):
16520         * alloc.c:
16521         * symbols.c:
16522         Object property list frobbing cleanup.
16523         - Allow any lisp object (compared with `eq'), not just symbols, as
16524           keys in object plists.
16525         - Move symbol plist frobbing into symbols.c, where it belongs.
16526         - Move string plist frobbing into alloc.c, where it belongs.
16527         - Everything's an lrecord now, so no need to test for symbolp, etc.
16528         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16529
16530         * extents.c: Reorder code to remove declarations.
16531
16532         * frame.h (store_in_alist): Remove useless declaration.
16533
16534 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16535
16536         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16537         * config.h.in: Add HAVE_XCONVERTCASE.
16538
16539 2000-02-07  Andy Piper  <andy@xemacs.org>
16540
16541         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16542         it breaks many things.
16543
16544 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16545
16546         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16547         actually can start a common comment type.
16548         * src/syntax.h (SYNTAX_END_P): ditto for end.
16549
16550 2000-02-07  Martin Buchholz <martin@xemacs.org>
16551
16552         * XEmacs 21.2.28 is released.
16553
16554 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16555
16556         * event-Xt.c (x_keysym_to_character): New.
16557         (maybe_define_x_key_as_self_inserting_character): New.
16558         (x_has_keysym): New.
16559         Auto-define all keys on the keyboard as self-insert-key.
16560
16561 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16562
16563         * menubar.c (vars_of_menubar): A small code simplification.
16564
16565         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16566
16567         * ExternalShell.c:
16568         * ExternalClient.c:
16569         * EmacsShell-sub.c:
16570         * EmacsManager.c:
16571         * EmacsFrame.c:
16572         Use consistent style for specifying X resources.
16573
16574         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16575         This makes (dontusethis-set-symbol-value-handler) actually usable.
16576
16577         * lrecord.h (lrecord_decription_type):
16578         * alloc.c (pdump_register_sub):
16579         (pdump_dump_data):
16580         (pdump_reloc_one):
16581         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
16582         Comply with XEmacs coding style.
16583         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
16584         args, and XD_LISP_OBJECT_ARRAY with 3 args.
16585
16586         * keymap.c (Faccessible_keymaps):
16587         Make (accessible-keymaps map "\C-h") do the Right Thing.
16588         Make (accessible-keymaps map []) do the Right Thing.
16589         Make (accessible-keymaps map "") do the Right Thing.
16590         (check_keymap_definition_loop): New function.
16591         (keymap_store_internal): Keep luser from shooting self in foot,
16592           via (define-key ctl-x-4-map "p" global-map).
16593         Remove fullness slot from struct Lisp_Keymap, since hash tables
16594         are now reliable.
16595         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
16596
16597 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16598
16599         * redisplay.c (init_redisplay): Fix small memory leak.
16600         * elhash.h:
16601         * elhash.c (pdump_reorganize_hash_table):
16602         Rename from reorganize_hash_table. Change prototype.
16603         Reuse the original memory for hentries.  Save 100k.
16604         * alloc.c (PDUMP_READ): new macro.
16605         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
16606         * alloc.c: No need to #ifndef before #undef.
16607
16608         * print.c: Allow debug_print() to print readably by modifying
16609         debug_print_readably.  Use consistent variable names.
16610
16611         * .dbxrc: Try to get things to work even if stopped in a function
16612         without source available by explicitly specifying source files.
16613 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16614
16615         * unexnt.c (_start): Removed bogus code which caused loading heap
16616         from differrent executable file.
16617         Removed bogus assignment to _fmode, which caused inconsistencies.
16618
16619 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16620
16621         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
16622         Have spawnve encapsulation regard DONT_ENCAPSULATE.
16623         Do not preliminary `#define signal sigset'.
16624
16625         * systime.h: Do not prototype environ on windows nt and cygwin,
16626         this conflicts with system header.
16627
16628         * syssignal.h: Use correct define for WINDOWSNT
16629
16630         * sysdep.h: Do not prototype environ on windows nt, this conflicts
16631         with system header.
16632
16633         * sysdep.c (near start of file): Fixed commentary and rearranged
16634         ifdefs in readable order.
16635         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
16636         (start_of_text):
16637         (end_of_text):
16638         (end_of_data): Do not compile in if using PDUMP.
16639
16640         * symsinit.h: Prototyped vars_of_nt().
16641
16642         * ntproc.c (windows9x_p): Added, instead of os_subtype.
16643         (find_child_console): Use it.
16644         (sys_kill): Use it.
16645
16646         * ntheap.h: Do not extern os_subtype.
16647
16648         * ntheap.c (cache_system_info): Do not cache unneeded:
16649         nt_major_version, nt_minor_version and os_subtype.
16650         (recreate_heap): Do not compile in when PDUMPing.
16651
16652         * nt.c (geteuid and friends): Use the new varibale
16653         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
16654         (init_user_info): Removed the above mentioned hackery.
16655         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
16656         stat has been fixed in the C runtime.
16657         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
16658
16659         * file-coding.c (struct file_coding_dump): Do not define
16660         ucs_to_mule_table in the struct if not MULE.
16661         (struct struct lrecord_description fcd_description_1): Do not dump
16662         the above.
16663
16664         * emacs.c (main_1): Call vars_of_nt().
16665         (right before Fdump_emacs_data): Don't need lastfile if using both
16666         portabe dumper and system malloc.
16667
16668         * alloc.c (Fmemory_limit): Conditionalized out.
16669         (pdump): Use OPEN_BINARY for the portable dump file.
16670         (pdump_load): Ditto.
16671
16672 2000-02-02  Mike Alexander  <mta@arbortext.com>
16673
16674         * nt.c (convert_time): Set tm_isdst before calling mktime and
16675         avoid calling it at all if the compiler supports 64 bit integers.
16676         Also initialize utc_base_ft before using it.
16677
16678 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16679
16680         * frame.c (change_frame_size_1): Take f->internal_border_width
16681         into consideration when calculating the width of the frame.
16682
16683 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16684
16685         * window.c (frame_min_height):
16686         (frame_size_valid_p):
16687         (frame_pixsize_valid_p): Added.
16688         (check_frame_size): Generalized.
16689
16690         * window.h: Prototyped the above.
16691
16692         * lisp.h:
16693         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
16694         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
16695         Deleted Vwin32_* and Vbinary_process_* unused variables.
16696
16697         * device-msw.c (msprinter_init_device): Do not get printer font
16698         list; Added DEVMODE functions.
16699
16700         * frame-msw.c: Added lots of printer code.
16701
16702         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
16703         general.c.
16704
16705         * console-msw.h: Added more msprinter device private slots.
16706
16707 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16708
16709         * event-msw.c (key_needs_default_processing_p): Added.
16710         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
16711
16712 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16713
16714         * glyphs.c (image_instance_layout): Mark image instance as clean
16715         after layout.
16716         (glyph_dirty_p): Removed redundant function.
16717         (invalidate_glyph_geometry_maybe): Added.
16718         (update_glyph_cachel_data): Call it.
16719
16720         * glyphs.h: Prototyped it.
16721
16722         * redisplay.c (add_glyph_rune): Call it.
16723         (redisplay_window): Reset glyphs cachels when frame faces have
16724         changed, thus forcing recomputation of built-in border glyphs.
16725
16726 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16727
16728         * Makefile.in.in: Make portable dumper and purify play well together.
16729         Add imperfect, but better than nothing, support for pdump.
16730         Remove xemacs.dmp when temacs is re-generated.
16731         Don't ignore errors when dumping xemacs.
16732
16733         * symbols.c (maybe_call_magic_handler): Remove one magic number.
16734
16735 2000-01-28  Andy Piper  <andy@xemacs.org>
16736
16737         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
16738         (setup_normal_frame): ditto.
16739         (setup_frame_without_minibuffer): ditto.
16740         (setup_minibuffer_frame): ditto.
16741         (delete_frame_internal): ditto.
16742         (Fmake_frame_invisible): ditto.
16743         (Ficonify_frame): ditto.
16744
16745         * window.h: change Fset_window_buffer signature.
16746
16747         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
16748         (Fset_window_buffer): allow recording of buffer if the window is
16749         the selected window.
16750         (window_loop): Use new Fset_window signature.
16751
16752 2000-01-23  Daniel Pittman  <daniel@danann.net>
16753
16754         * config.h.in: Added template for `HAVE_ATHENA_3D'
16755
16756 2000-01-29  Andy Piper  <andy@xemacs.org>
16757
16758         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
16759
16760         * gutter.c (output_gutter): Don't output if the window isn't live.
16761
16762 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16763
16764         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
16765         of 01/12/00: Moved SetFocus back here where it belongs.
16766
16767 2000-01-23  Andy Piper  <andy@xemacs.org>
16768
16769         * s/cygwin32.h: declare printer things.
16770
16771 2000-01-26  Andy Piper  <andy@xemacs.org>
16772
16773         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
16774         Alexander.
16775
16776 2000-01-24  Andy Piper  <andy@xemacs.org>
16777
16778         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
16779         (mswindows_button_instantiate): Make sure glyph is a pixmap.
16780
16781         * glyphs-widget.c (widget_instantiate): Avoid shadows.
16782
16783         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
16784
16785         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
16786
16787         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
16788         (mswindows_output_display_block): Avoid local shadows.
16789
16790         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
16791         (mswindows_enqueue_mouse_button_event): ditto.
16792         (mswindows_handle_gui_wm_command): remove declaration.
16793
16794         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
16795         warnings.
16796
16797         * console-msw.h: Avoid shadows.
16798         (mswindows_get_toolbar_button_text):
16799         (emacs_mswindows_create_stream_pair):
16800         (emacs_mswindows_delete_stream_pair):
16801         (mswindows_handle_toolbar_wm_command): declare.
16802
16803         * device-msw.c (build_syscolor_string): Avoid shadows.
16804
16805 2000-01-23  Andy Piper  <andy@xemacs.org>
16806
16807         * glyphs-widget.c (widget_instantiate): reverse the items for
16808         layouts so that children are in the expected order.
16809
16810 2000-01-28  Martin Buchholz  <martin@xemacs.org>
16811
16812         * ralloc.c: safe_bcopy ==> memmove
16813         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
16814         * s/msdos.h: Remove BCOPY macros.
16815         * insdel.c (gap_right): Remove BCOPY conditional code.
16816         * insdel.c (gap_left): Remove BCOPY conditional code.
16817         XEmacs demands a working ANSI C compiler - hence memmove.
16818
16819         * regex.c (regex_compile): Remove accidental use of trigraphs.
16820
16821 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16822
16823         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
16824         event timestamp.
16825
16826 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16827
16828         * event-msw.c (mswindows_drain_windows_queue): Added the
16829         parameter.
16830         (mswindows_need_event): Commented the call to
16831         mswindows_drain_windows_queue().
16832         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
16833         only.
16834
16835         * console-msw.h: Moved a few function prototypes here from
16836         event-msw.c.
16837
16838         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
16839         parameter from unsigned short to unsigned long.
16840         (Fmswindows_shell_execute): Added return value.
16841
16842 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16843
16844         * sysdep.c (init_system_name):
16845           process-unix.c (unix_canonicalized_host_name):
16846         Don't call freeaddrinfo() if getaddrinfo() fails.
16847
16848         * process-unix.c (unix_open_unix_network_stream):
16849         Moved the code to get a port # into address loop.
16850
16851 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16852
16853         * buffer.c (reinit_vars_of_buffer):
16854         The right place to initialize conversion_in_dynarr and
16855         conversion_out_dynarr.
16856
16857         * alloc.c (pdump): Use the real open() till sys_open() is functional.
16858
16859         * process-unix.c (unix_canonicalize_host_name): Muleize.
16860         (unix_open_network_stream): Muleize.
16861
16862         * buffer.h: Fix up prototypes for ralloc.c functions.
16863
16864 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16865         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
16866         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
16867                 instead of gethostbyname()
16868         * process-unix.c: In unix_canonicalize_host_name() and
16869                 unix_open_network_stream(), add code to use getaddrinfo()
16870                 instead of gethostbyname().
16871
16872 2000-01-27  Daniel Pittman <daniel@danann.net>
16873
16874         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
16875         libs when built with flat Athena.
16876
16877 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16878
16879         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
16880         Use coding standards for function prototypes.
16881
16882 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16883
16884         * dialog-msw.c (push_lisp_string_as_unicode):
16885         * doc.c (unparesseuxify_doc_string):
16886         * dired.c (Fuser_name_completion_1):
16887         * dired.c (Fuser_name_all_completions):
16888         * dired.c (free_user_cache):
16889         * dired.c (user_name_completion):
16890         * console-x.c (get_display_arg_connection):
16891         * minibuf.c (clear_echo_area_internal):
16892         * minibuf.c (echo_area_append):
16893         * eldap.c (Fldap_open):
16894         * eldap.c (Fldap_search_internal):
16895         * frame-x.c (x_set_frame_text_value):
16896         * frame-x.c (x_set_frame_properties):
16897         * frame-x.c (x_create_widgets):
16898         * redisplay-tty.c (term_get_fkeys_1):
16899         * objects-x.c (x_parse_nearest_color):
16900         * objects-x.c (x_valid_color_name_p):
16901         * objects-x.c (x_initialize_font_instance):
16902         * objects-x.c (x_list_fonts):
16903         * objects-x.c (x_find_charset_font):
16904         * tooltalk.c (Fadd_tooltalk_message_arg):
16905         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
16906         * tooltalk.c (Fadd_tooltalk_pattern_arg):
16907         * process-unix.c (unix_create_process):
16908         * ntproc.c (sys_spawnve):
16909         * sound.c (Fplay_sound_file):
16910         * sound.c (Fplay_sound):
16911         * buffer.c (init_initial_directory):
16912         * buffer.c (init_buffer):
16913         * editfns.c (init_editfns):
16914         * editfns.c (Ftemp_directory):
16915         * editfns.c (Fuser_full_name):
16916         * editfns.c (uncache_home_directory):
16917         * editfns.c (get_home_directory):
16918         * editfns.c (Fuser_home_directory):
16919         * editfns.c (Fformat_time_string):
16920         * editfns.c (Fcurrent_time_string):
16921         * gui-x.c (button_item_to_widget_value):
16922         * database.c (Fopen_database):
16923         * event-Xt.c (x_to_emacs_keysym):
16924         * event-Xt.c (x_event_to_emacs_event):
16925         * event-Xt.c (describe_event_window):
16926         * event-msw.c (mswindows_wnd_proc):
16927         * glyphs-eimage.c (jpeg_instantiate):
16928         * glyphs-eimage.c (gif_instantiate):
16929         * glyphs-eimage.c (png_instantiate):
16930         * glyphs-eimage.c (tiff_instantiate):
16931         * glyphs-x.c (xbm_instantiate_1):
16932         * glyphs-x.c (x_xbm_instantiate):
16933         * glyphs-x.c (x_xface_instantiate):
16934         * glyphs-x.c (autodetect_instantiate):
16935         * glyphs-x.c (cursor_font_instantiate):
16936         * glyphs-x.c (x_widget_instantiate):
16937         * glyphs-x.c (x_widget_set_property):
16938         * glyphs-x.c (x_widget_property):
16939         * glyphs-x.c (BUILD_GLYPH_INST):
16940         * print.c (write_string_to_stdio_stream):
16941         * print.c (output_string):
16942         * print.c (Falternate_debugging_output):
16943         * print.c (Fexternal_debugging_output):
16944         * glyphs-msw.c (extract_xpm_color_names):
16945         * glyphs-msw.c (mswindows_xpm_instantiate):
16946         * glyphs-msw.c (bmp_instantiate):
16947         * glyphs-msw.c (resource_name_to_resource):
16948         * glyphs-msw.c (mswindows_resource_instantiate):
16949         * glyphs-msw.c (xbm_instantiate_1):
16950         * glyphs-msw.c (mswindows_xbm_instantiate):
16951         * glyphs-msw.c (mswindows_xface_instantiate):
16952         * glyphs-msw.c (mswindows_widget_instantiate):
16953         * glyphs-msw.c (add_tree_item):
16954         * glyphs-msw.c (add_tab_item):
16955         * glyphs-msw.c (mswindows_combo_box_instantiate):
16956         * glyphs-msw.c (mswindows_widget_property):
16957         * glyphs-msw.c (mswindows_combo_box_property):
16958         * glyphs-msw.c (mswindows_widget_set_property):
16959         * console.c (stuff_buffered_input):
16960         * objects-msw.c (mswindows_initialize_color_instance):
16961         * objects-msw.c (mswindows_valid_color_name_p):
16962         * objects-msw.c (mswindows_list_fonts):
16963         * objects-msw.c (mswindows_font_instance_truename):
16964         * bytecode.c (optimize_compiled_function):
16965         * select-x.c (symbol_to_x_atom):
16966         * select-x.c (x_atom_to_symbol):
16967         * select-x.c (hack_motif_clipboard_selection):
16968         * select-x.c (selection_data_to_lisp_data):
16969         * select-x.c (lisp_data_to_selection_data):
16970         * select-x.c (Fx_get_cutbuffer_internal):
16971         * select-x.c (Fx_store_cutbuffer_internal):
16972         * buffer.h (TO_EXTERNAL_FORMAT): New function.
16973         * buffer.h (TO_INTERNAL_FORMAT): New function.
16974         * emacs.c (make_arg_list_1):
16975         * emacs.c (make_argc_argv):
16976         * emacs.c (main_1):
16977         * emacs.c (Fdump_emacs):
16978         * emacs.c (split_string_by_emchar_1):
16979         * file-coding.h:
16980         * lisp.h:
16981         * lstream.h:
16982         * symsinit.h:
16983         * device-x.c (x_init_device):
16984         * device-x.c (Fx_valid_keysym_name_p):
16985         * device-x.c (Fx_get_font_path):
16986         * device-x.c (Fx_set_font_path):
16987         * glyphs.c (bitmap_to_lisp_data):
16988         * glyphs.c (pixmap_to_lisp_data):
16989         * alloc.c (make_ext_string): Use coding system arguments.  Update
16990         all callers.
16991         * alloc.c (build_string):
16992         * callproc.c (child_setup):
16993         * callproc.c (init_callproc):
16994         * fileio.c (lisp_strerror):
16995         * fileio.c (directory_file_name):
16996         * fileio.c (Fexpand_file_name):
16997         * fileio.c (Ffile_truename):
16998         * fileio.c (Fsysnetunam):
16999         * fileio.c (Fdo_auto_save):
17000         * sysdep.c (sys_readdir):
17001         * tests.c: New file.  Allow adding C tests.
17002         Replace GET_* macros with a more comprehensible and flexible
17003         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17004         Modify all calls.
17005         Any coding system can be used to do format conversion.
17006         Eliminate enum external_data_format.
17007         Eliminate convert_to_external_format.
17008         Eliminate convert_to_internal_format.
17009         Make sure file-name, keyboard, terminal, and ctext are always
17010         defined as coding systems or aliases.  Make
17011         file-name-coding-system, terminal-coding-system, and
17012         keyboard-coding-system magical variables that are equivalent to
17013         defining the corresponding coding system aliases.
17014
17015         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17016         * file-coding.c (Fcoding_system_alias_p): New function.
17017         * file-coding.c (Fcoding_system_aliasee): New function.
17018         * file-coding.c (append_suffix_to_symbol): New function.
17019         * file-coding.c (dangling_coding_system_alias_p): New function.
17020         * file-coding.c (Ffind_coding_system):
17021         * file-coding.c (Fcopy_coding_system):
17022         * file-coding.c (encode_coding_no_conversion):
17023         * file-coding.c (syms_of_file_coding):
17024         * file-coding.c (vars_of_file_coding):
17025         Rewrite coding system alias code.
17026         Allow nested aliases, like symbolic links.
17027         Allow redefinition of coding system aliases.
17028         Prevent existence of dangling coding system aliases.
17029
17030         * dired.c (Fuser_name_completion_1):
17031         * dired.c (Fuser_name_all_completions):
17032         A crash would happen if user did QUIT in the middle of building
17033         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17034
17035         * lisp.h:
17036         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17037
17038         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17039         an unsigned char *.  Update all callers.
17040
17041 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17042
17043         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17044
17045 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17046
17047         * elhash.c (hentry_description): Use more portable definition.
17048         (resize_hash_table): Initialize new hentries using
17049         xnew_array_and_zero, thereby simplifying the code.
17050
17051         * mule-charset.c (make_charset): Make sure entire object is
17052         initialized, to avoid Purify warnings.
17053
17054         * alloc.c (resize_string): Fix unlikely crash with big strings.
17055
17056 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17057
17058         * realpath.c (xrealpath):
17059         Don't call getwd().
17060
17061 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17062
17063         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17064
17065 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17066
17067         * unexelfsgi.c (unexec): Change the way we decide which segment
17068         should be extended.
17069
17070         Assumption that .bss section should be outside the PT_LOADable
17071         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17072         it's present) is inside the 'data' segment. This would fail the
17073         test which was used to find a segment to grow and cover new
17074         heap. Instead of this assumption, I created another one - on IRIX
17075         the segment to grow should start below .bss and it's address
17076         should extent above the end of .bss. Once this segment is
17077         identified, it's grown to accommodate the new heap and new
17078         zero-length .bss section is added at the end of .data2.
17079
17080 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17081
17082         * eval.c (Feval): Wrong number of arguments should use original
17083         function, not the indirect_function version of it.
17084
17085 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17086
17087         * glyphs-x.c (x_button_instantiate): Don't add image if
17088         it is not a pixmap.
17089         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17090         is relative.
17091
17092 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17093
17094         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17095         declaration.
17096         (DEFVAR_INT_MAGIC): Ditto.
17097         (DEFVAR_BOOL_MAGIC): Ditto.
17098         * glyphs.h: Reindent backslash.
17099
17100 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17101
17102         * glyphs-widget.c (layout_query_geometry):
17103         (layout_layout): Use correct types for gheight, gwidth.
17104
17105 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17106
17107         * EmacsManager.c (QueryGeometry): Purified.
17108
17109 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17110
17111         * alloc.c (make_float): Make sure entire object is initialized, to
17112         avoid Purify warnings.
17113         (pdump_register_sub): Remove useless assignment.
17114         (pdump): Use xmalloc, not malloc.
17115         (pdump_load): Use xmalloc, not malloc.
17116
17117 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17118
17119         * callproc.c:
17120         * dired-msw.c:
17121         * fileio.c:
17122         * process-nt.c:
17123         * redisplay-msw.c:
17124         * sysdep.c: Removed redundant #include <windows.h>
17125
17126 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17127
17128         * frame.c (delete_frame_internal): Do not delete device when its
17129         implementation so declares.
17130         (delete_frame_internal): Set device selected frame to nil when
17131         last frame goes away.
17132
17133         * device-msw.c (msprinter_device_system_metrics): Implemented.
17134         (mswindows_device_system_metrics): Added 'device-dpi property.
17135
17136         * device.c: (Fdevice_printer_p): Added.
17137         Added 'offset-workspace device metric.
17138
17139         * console.h (device_metrics): Declared DM_offset_workspace.
17140
17141 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17142
17143         * fileio.c (Ffile_truename): Remove pointless and confusing
17144         initialization of elen.
17145
17146         * glyphs-widget.c: Compiler warning fixes.
17147
17148 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17149
17150         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17151         instead of a Lisp_Object as argument to make it consistent with
17152         the other LIVE_P macros.
17153         (CHECK_LIVE_PROCESS): New macro.
17154
17155         * process.c: Declare Qprocess_live_p.
17156         (Fprocess_live_p): New function.
17157         (create_process): Use PROCESS_LIVE_P.
17158         (read_process_output): Ditto.
17159         (set_process_filter): Ditto.
17160         (Fdelete_process): Ditto.
17161         (kill_buffer_processes): Ditto
17162         (process_send_signal): Use CHECK_LIVE_PROCESS.
17163         (Fprocess_input_coding_system): Check whether process is still
17164         alive (fix PR#1061).
17165         (Fprocess_output_coding_system): Ditto.
17166         (Fprocess_coding_system): Ditto.
17167         (Fset_process_input_coding_system): Ditto.
17168         (Fset_process_output_coding_system): Ditto.
17169
17170 2000-01-23  Andy Piper  <andy@xemacs.org>
17171
17172         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17173         layout and widget.
17174
17175         * glyphs.c (mark_image_instance): take into account changed
17176         image_instance format.
17177         (image_instance_equal): ditto.
17178         (image_instance_hash): ditto.
17179
17180         * glyphs-widget.c (widget_instantiate): Incorporate layout
17181         instantiation here. Delay layout of the layout until later.
17182         (layout_instantiate): deleted.
17183         (layout_query_geometry): new function. get the geometry of a
17184         layout.
17185         (layout_layout): layout a layout dynamically.
17186         (image_instantiator_widget): New function - splitting up
17187         image_instantiator_format_create_glyphs_widget for netwinder
17188         compilation.
17189         (image_instantiator_buttons):
17190         (image_instantiator_edit_fields):
17191         (image_instantiator_combo_box):
17192         (image_instantiator_scrollbar):
17193         (image_instantiator_progress_guage):
17194         (image_instantiator_tree_view):
17195         (image_instantiator_tab_control):
17196         (image_instantiator_labels):
17197         (image_instantiator_layout): ditto.
17198         (image_instantiator_format_create_glyphs_widget): Call preceding
17199         functions.
17200
17201 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17202
17203         * process.c (Fset_process_coding_system):
17204         * device-x.c (Fx_keysym_hash_table):
17205         Docstring fixes.
17206
17207         * lstream.c (Lstream_write): Return documented value, not 0.
17208
17209         * fileio.c (directory_file_name):
17210         (Fsubstitute_in_file_name):
17211         (Fsubstitute_insert_file_contents_internal):
17212         (Fwrite_region_internal):
17213         * emacs.c:
17214         * sysdep.c:
17215         * getloadavg.c:
17216         * systty.h:
17217         Remove vestigial APOLLO-conditional code.
17218
17219 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17220
17221         * getpagesize.h: Add guard macros.
17222         * libsst.h: Add guard macros.
17223         * libst.h: Add guard macros.
17224         * line-number.h: Add guard macros.
17225         * ndir.h: Add guard macros.
17226         * sysfloat.h: Add guard macros.
17227         * sysfile.h: Add guard macros.
17228         * sysproc.h: Add guard macros.
17229         * syswait.h: Add guard macros.
17230         * xintrinsic.h: Add guard macros.
17231         * xintrinsicp.h: Add guard macros.
17232         * xmmanager.h: Add guard macros.
17233         * xmmanagerp.h: Add guard macros.
17234         * xmprimitive.h: Add guard macros.
17235         * xmu.h: Add guard macros.
17236         * gpmevent.h: Add copyright statement. Add guard macros.
17237         * miscplay.h: Add guard macros.
17238         * *.h: Use consistent C-standards-approved guard macro names.
17239
17240         * opaque.c (make_opaque): Switch parameter order.
17241         * opaque.h (make_opaque): Switch parameter order.
17242         Update all callers.
17243         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17244
17245         * config.h.in (type_checking_assert): Added.
17246         (bufpos_checking_assert): Added.
17247
17248 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17249
17250         * alloc.c: Harmless pdump changes.
17251         - Use countof().
17252         - spell alignment correctly.
17253         * sysdep.c: Use countof()
17254
17255 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17256
17257         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17258         initially_selected_for_input() console method, default to 0.
17259         (semi_canonicalize_console_connection): Try to delegate to
17260         canonicalize_console_connection if no such console method.
17261         (canonicalize_console_connection): Vice versa.
17262         (print_console): Do not print nil connection.
17263
17264         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17265         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17266         (XDEVIMPF_FRAMELESS_OK): Added.
17267         (CONSOLE_INHERITS_METHOD): Added.
17268
17269         * console-msw.c (mswindows_canonicalize_console_connection):
17270         Added.
17271         (mswindows_canonicalize_device_connection): Added.
17272
17273         * console-msw.h (struct msprinter_device): Added this struct and
17274         accessor macros.
17275         (mswindows_device): Made fontlist a lisp object.
17276
17277         * device.c (semi_canonicalize_device_connection):  Try to delegate
17278         to canonicalize_device_connection if no such console method.
17279         (canonicalize_device_connection): Vice versa.
17280         (print_device): Do not print nil connection.
17281
17282         * device-msw.c (mswindows_init_device): Call InitCommonControls
17283         when have widgets.
17284         (mswindows_delete_device): Removed fontlist deallocation.
17285         (mswindows_mark_device): Added.
17286
17287         * events.c (event_equal): Added abort() at unreached code.
17288         (event_hash): Ditto.
17289
17290         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17291         fallback tags of Windows devices.
17292
17293         * general.c (syms_of_general): Initialized Qmsprinter.
17294
17295         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17296         of fallback tags of Windows devices.
17297
17298         * lisp.h: Declared Qmsprinter.
17299
17300         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17301         of strings.
17302         (mswindows_list_fonts): Ditto.
17303         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17304         that it can be used by both mswindows and msprinter devices.
17305         (initialize_font_instance): Added.
17306         (mswindows_initialize_font_instance): Use it.
17307         (msprinter_initialize_font_instance): Added.
17308
17309         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17310         and implementation flags check.
17311         (redisplay_without_hooks): Changed the call to the above.
17312         (Fredraw_device): Ditto.
17313         (Fredisplay_device): Ditto.
17314
17315         * redisplay-msw.c (get_frame_dc): Implemented.
17316         (get_frame_compdc): Implemented.
17317         (many functions): Use the two functions above to get device
17318         contexts, ether for a window or a printer.
17319
17320 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17321
17322         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17323         initialization here.
17324         (init_symbols_once_early): Call it.
17325         * emacs.c (main_1): Call it.
17326         * symsinit.h: Declare it.
17327
17328 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17329
17330         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17331         Lisp_Object.
17332         (pdump_backtrace): Ditto.
17333         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17334         (pdump_get_entry): Abort if trying to register a null pointer.
17335         (pdump_dump_data): Cleanup types when relocating.
17336         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17337         (pdump_dump_rtables): Remove bad casts.
17338         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17339         Lisp_Object instead of a EMACS_INT for the hashtable
17340         reorganization.
17341
17342 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17343
17344         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17345
17346         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17347
17348         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17349
17350         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17351
17352 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17353
17354         * faces.h (FACE_STRIKETHRU_P): Added.
17355
17356         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17357         of font variants.
17358
17359         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17360         (mswindows_set_dc_font): New function, aware of font variants,
17361         separated from mswindows_update_dc.
17362
17363         * objects-msw.h (struct mswindows_font_instance_data): Added
17364         definition.
17365
17366         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17367         cached fonts and the data structure.
17368         (mswindows_initialize_font_instance): Added creation of font data
17369         structure.
17370         (mswindows_print_font_instance): Print at least something.
17371         (mswindows_create_font_variant): Implemented.
17372         (mswindows_get_hfont): Implemented.
17373
17374 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17375
17376         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17377         prototyping problem with msvc.
17378
17379         * emacs.c (main_1): added syms_of_gui_mswindows() call
17380
17381         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17382         syms_of_gui_mswindows() function
17383
17384         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17385
17386 2000-01-18  Martin Buchholz <martin@xemacs.org>
17387
17388         * XEmacs 21.2.27 is released.
17389
17390 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17391
17392         * glyphs-eimage.c (struct tiff_error_struct):
17393         (tiff_error_func):
17394         (tiff_warning_func):
17395         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17396
17397         * unexmips.c:
17398         * unexhp9k3.c:
17399         * unexfreebsd.c:
17400         * unexec.c: Remove vestigial Lucid C code.
17401         * unexalpha.c:
17402         * unexaix.c:
17403         * termcap.c:
17404         * libsst.c: Ansify.
17405         Remove declarations of errno and strerror().
17406
17407         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17408
17409         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17410
17411 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17412
17413         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17414         Optimize.
17415
17416 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17417
17418         * md5.c:
17419         * file-coding.c:
17420         * file-coding.h:
17421         Change enum eol_type to eol_type_t.
17422
17423 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17424
17425         * gui.c (get_gui_callback): Check cons before accessing car.
17426
17427 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17428
17429         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17430         (XSETSPECIFIER_TYPE): Ditto.
17431
17432 2000-01-17  Didier Verna  <didier@xemacs.org>
17433
17434         * redisplay.c (generate_fstring_runes): compute string size in
17435         characters, not bytes.
17436
17437 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17438
17439         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17440
17441 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17442
17443         * print.c (print_error_message): Call print_prepare().
17444
17445 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17446
17447         * .dbxrc: Renamed from dbxrc.
17448
17449         * events.c (event_to_character):
17450         Use `assert (foo)' instead of `if (!foo) abort()'
17451
17452         * .gdbinit (xtype): Add documentation.
17453         * .gdbinit (check-temacs): New function.
17454         * .gdbinit (check-xemacs): New function.
17455         * dbxrc (check-xemacs): New function.
17456         * dbxrc (check-xemacs): New function.
17457
17458 2000-01-14  Andy Piper  <andy@xemacs.org>
17459
17460         * glyphs-widget.c (widget_query_geometry): Make sure that we
17461         calculate default dimensions correctly.
17462
17463 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17464
17465         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17466
17467         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17468         pdump_wire'd variable.
17469
17470         * emacs.c: (main_1): Conditionalized calls to
17471         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17472
17473 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17474
17475         * window.c (Fset_window_configuration):
17476         * sysdep.c (_start):
17477         * input-method-motif.c (res):
17478         * event-Xt.c (Xt_process_to_emacs_event):
17479         Simple compiler warning fixes.
17480
17481         * bytecode.c (funcall_compiled_function): Use the original
17482         function symbol on the backtrace list in preference to the
17483         compiled_function object in error messages.
17484
17485 2000-01-13  Andy Piper  <andy@xemacs.org>
17486
17487         * glyphs-x.c (update_widget_face): Make sure we update the widget
17488         background as well as foreground.
17489
17490 2000-01-13  Andy Piper  <andy@xemacs.org>
17491
17492         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17493         fields to subwindow.
17494         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17495         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17496         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17497         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17498
17499         * glyphs-widget.c (check_valid_tab_orientation): new function.
17500         (initialize_widget_image_instance): zero orientation and
17501         justification.
17502         (widget_instantiate): pick up orientation.
17503         (tab_control_query_geometry): return appropriate values for
17504         vertical tabs.
17505
17506         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17507         appropriate creation flags for left, right and bottom tabs.
17508
17509         * s/cygwin32.h: add tab definitions.
17510
17511 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17512
17513         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17514         frame upon hiding a subwindow.
17515         (mswindows_button_instantiate): Changed the push button style to
17516         BS_PUSHBUTTON.
17517         (mswindows_button_instantiate): Removed button BS_NOTIFY
17518         style.
17519         (mswindows_button_instantiate): Removed redundant check for
17520         a disabled gui item.
17521         (mswindows_button_instantiate): Made use of WS_TABSTOP
17522         consistent: "operable" controls (edit, button, tree, scroll) have
17523         this style, "display-only" ones (static, progress gauge) do
17524         not. This style is currently ignored by XEmacs though. Also,
17525         removed the WS_EX_CONTROLPARENT style - it is not for children,
17526         it is for their parents!
17527         (mswindows_edit_field_instantiate): Ditto.
17528         (mswindows_progress_gauge_instantiate): Ditto.
17529         (mswindows_tree_view_instantiate): Ditto.
17530         (mswindows_tab_control_instantiate): Ditto.
17531         (mswindows_scrollbar_instantiate): Ditto.
17532         (mswindows_combo_box_instantiate): Ditto.
17533         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17534         style to the "clip" window.
17535         (mswindows_button_instantiate): Removed compilation warning by
17536         equally typing terms of the ?: operator.
17537
17538 2000-01-12  Didier Verna  <didier@xemacs.org>
17539
17540         * redisplay.c (generate_fstring_runes): new parameter holding the
17541         last modeline-format extent.
17542         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17543         extent, fill the glyph block with it.
17544         (generate_fstring_runes): handle these parameters.
17545         (generate_formatted_string_db): ditto.
17546
17547         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17548         glyphs'extents in the modeline.
17549
17550 1999-01-11  Mike Woolley  <mike@bulsara.com>
17551
17552         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17553         256Mb, as a workaround for the non-starting problem many people
17554         have experienced.
17555
17556 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17557
17558         * console-tty.c (Fset_console_tty_output_coding_system):
17559         Force redrawing tty frame.
17560
17561 2000-01-10  Didier Verna  <didier@xemacs.org>
17562
17563         * redisplay.c (generate_fstring_runes): fix size computation bug.
17564
17565 2000-01-09  William M. Perry <wmperry@aventail.com>
17566
17567         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17568
17569 2000-01-09  Andy Piper  <andy@xemacs.org>
17570
17571         * glyphs-msw.c: index -> i to avoid shadows.
17572         (xbm_create_bitmap_from_data): make static.
17573         (check_valid_string_or_int): deleted.
17574         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17575
17576         * glyphs-x.c (x_update_subwindow): remove unused args.
17577
17578         * glyphs.c (glyph_image_instance): return the thing. Don't set the
17579         back pointer - this is done in allocate_image_instance.
17580         (query_string_font): return Qnil to make the compiler happy.
17581         (unmap_subwindow): set to ~0 to make the compiler happy.
17582         (glyph_query_geometry): comment out until used.
17583         (glyph_layout): ditto.
17584
17585 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17586
17587         * insdel.c (signal_after_change): Remove extraneous unbind_to().