update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * concord.c (Fconcord_decode_object): Do GCPRO for
4         Fconcord_make_object.
5         (func_for_each_object): Likewise; do GCPRO for
6         for_each_object_closure->function.
7         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
8         for_each_object_closure->function, for_each_object_closure->genre,
9         for_each_object_closure->ds and for_each_object_closure->ret.
10         (concord_object_validate): Do GCPRO for Fconcord_make_object.
11
12 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
13
14         * concord.c: Add EXFUNs for Fconcord_decode_object and
15         Fconcord_object_put.
16         (Fconcord_make_object): Change order of arguments.
17         (Fconcord_decode_object): Modify for Fconcord_make_object.
18         (func_for_each_object): Likewise.
19         (concord_object_validate): Likewise.
20         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
21
22 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
23
24         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
25
26 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
27
28         * concord.c (Fconcord_decode_object): Try to use readable print
29         form as a key of Concord-index.
30         (Fconcord_object_get): Try to use readable print form as an ID of
31         Concord-object.
32         (Fconcord_object_put): Try to use readable print form as an ID of
33         Concord-object and a feature value.
34         (Fconcord_object_spec): Try to use readable print form as an ID of
35         Concord-object.
36
37 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
38
39         * concord.c (print_concord_object): Support readable form.
40
41 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
42
43         * emacs.c (main_1): Call `structure_type_create_concord' when
44         HAVE_CONCORD is defined.
45
46         * symsinit.h (structure_type_create_concord): New prototype.
47
48         * concord.c (Qconcord_object): New variable.
49         (Qgenre): Likewise.
50         (Q_id): Likewise.
51         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
52         for directory.
53         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
54         char*> for genre-name.
55         (Fconcord_feature_list): Likewise.
56         (Fconcord_make_object): Likewise.
57         (Fconcord_decode_object): Likewise; use <char*> instead of
58         <unsigned char*> for feature_name and strid.
59         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
60         c_obj and feature_name.
61         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
62         char*> for c_value.
63         (struct closure_for_object_spec): Use <char*> instead of <unsigned
64         char*> for member `object_id'.
65         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
66         char*> for feature-name.
67         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
68         for c_obj.
69         (func_for_each_object): Cast to avoid warnings.
70         (Fconcord_foreach_object_in_feature): Use <char*> instead of
71         <unsigned char*> for genre_name and feature_name.
72         (concord_name_validate): New function.
73         (concord_object_validate): Likewise.
74         (concord_object_instantiate): Likewise.
75         (syms_of_concord): Add new builtin symbols `concord-object',
76         `genre' and `=id'.
77         (structure_type_create_concord): New function.
78
79 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
80
81         * concord.c (Vconcord_ds_hash_table): New variable.
82         (Vconcord_genre_hash_table): New variable.
83         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
84         (Fconcord_ds_directory): New function.
85         (Fconcord_assign_genre): New function.
86         (Fconcord_genre_directory): New function.
87         (Fconcord_genre_ds): New function.
88         (Fconcord_feature_list): Allow to omit `ds'.
89         (Fconcord_make_object): Likewise.
90         (Fconcord_decode_object): Likewise.
91         (Fconcord_foreach_object_in_feature): Likewise.
92         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
93         Fconcord_assign_genre, Fconcord_genre_directory and
94         Fconcord_genre_ds.
95         (vars_of_concord): Setup Vconcord_ds_hash_table and
96         Vconcord_genre_hash_table.
97
98 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
99
100         * concord.c (struct closure_for_each_object): Add new member
101         `ret'.
102         (func_for_each_object): Setup the return value to
103         `for_each_object_closure->ret'.
104         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
105         returns the value instead of Qt.
106
107 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
108
109         * concord.c: New file.
110
111 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
112
113         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
114         `lrecord_type_concord_object'.
115
116 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
117
118         * symsinit.h (syms_of_concord): New prototype.
119         (vars_of_concord): New prototype.
120
121         * emacs.c (main_1): Setup symbols and variable about concord if
122         HAVE_CONCORD is defined.
123
124         * config.h.in (HAVE_CONCORD): New macro.
125
126 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
127
128         * chartab.c (Fput_char_attribute): For each character relation
129         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
130
131 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
132
133         * chartab.c (Fput_char_attribute): Use
134         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
135         calling `put_char_composition'.
136
137 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
138
139         * chartab.c (Q_halfwidth_of): New variable.
140         (put_char_composition): Return `<-halfwidth' instead of
141         `=decomposition' for compatibility mapping to single character
142         tagged `narrow'.
143         (Fput_char_attribute): Convert char-specs in value of
144         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
145         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
146         for `<-halfwidth'.
147         (syms_of_chartab): Add new symbol `<-halfwidth'.
148
149 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
150
151         * chartab.c (put_char_composition): Return
152         `<-formed@{isolated|initial|medial|final}' for compatibility
153         mapping to single character tagged
154         `{isolated|initial|medial|final}'.
155
156 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
157
158         * chartab.c (Q_compat_of): Deleted.
159         (put_char_composition): Return `<-FOO' for compatibility mapping
160         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
161         of `symbol_name (XSYMBOL(...))'.
162         (Fput_char_attribute): Convert char-specs in value of
163         `{<-|->}font[^*]*' to characters and put reverse links.
164         (Fsave_char_attribute_table): Don't refer Q_compat_of.
165         (syms_of_chartab): Delete builtin symbol `<-compat'.
166
167 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
168
169         * chartab.c (Q_circled_of): New variable.
170         (put_char_composition): Return `<-circled' instead of
171         `=decomposition' for compatibility mapping to single character
172         tagged `circle'.
173         (Fput_char_attribute): Convert char-specs in value of
174         `{<-|->}circled[^*]*' to characters and put reverse links.
175         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
176         for `<-circled'.
177         (syms_of_chartab): Add new symbol `<-circled'.
178
179 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
180
181         * chartab.c (Qto_decomposition_at_circled): New variable.
182         (put_char_composition): Return `=>decomposition@circled' instead
183         of `=decomposition' for compatibility decomposition mapping tagged
184         `circle'.
185         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
186
187 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
188
189         * chartab.c (Q_subscript_of): New variable.
190         (put_char_composition): Return `<-subscript' instead of
191         `=decomposition' for compatibility mapping to single character
192         tagged `sub'.
193         (Fput_char_attribute): Convert char-specs in value of
194         `{<-|->}subscript[^*]*' to characters and put reverse links.
195         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
196         for `<-subscript'.
197         (syms_of_chartab): Add new symbol `<-subscript'.
198
199 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
200
201         * chartab.c (Q_superscript_of): New variable.
202         (put_char_composition): Return `<-superscript' instead of
203         `=decomposition' for compatibility mapping to single character
204         tagged `super'.
205         (Fput_char_attribute): Convert char-specs in value of
206         `{<-|->}superscript[^*]*' to characters and put reverse links.
207         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
208         for `<-superscript'.
209         (syms_of_chartab): Add new symbol `<-superscript'.
210
211 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
212
213         * chartab.c (Qto_decomposition_at_compat): Deleted.
214         (Qto_decomposition_at_superscript): New variable.
215         (put_char_composition): Use `=>decomposition@superscript' instead
216         of `=decomposition' for compatibility decomposition mapping tagged
217         `super'.
218         (Fput_char_attribute): Fix condition about `put_char_composition'.
219         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
220         add news symbol `=>decomposition@superscript'.
221
222 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
223
224         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
225         for compatibility decomposition mapping tagged FOO.
226         (Fput_char_attribute): Modify for `put_char_composition'.
227
228 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
229
230         * chartab.c (Qto_decomposition_at_compat): New variable.
231         (Q_compat_of): Renamed from `Q_compatibility_of'.
232         (put_char_composition): Rename `Q_compatibility_of' to
233         `Q_compat_of'; return `=>decomposition@compat' for compatibility
234         decomposition mapping.
235         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
236         `Q_compat_of'.
237         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
238         `<-compatibility' to `<-compat'.
239
240 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
241
242         * chartab.c (Q_compatibility_of): New variable.
243         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
244         object is proved to be a cons cell; return `<-compatibility' if
245         the first element of argument `value' is `compat'.
246         (Fput_char_attribute): Eliminate the first value if
247         `put_char_composition' returns `<-compatibility'.
248         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
249         for `<-compatibility'.
250         (syms_of_chartab): Add new symbol `<-compatibility'.
251
252 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
253
254         * chartab.c (Q_canonical): New variable.
255         (put_char_composition): Return a feature name: return
256         `->canonical' if argument `value' specifies single character.
257         (Fput_char_attribute): Use `put_char_composition' to determine
258         feature name for `=decomposition' or `->denotational'.
259         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
260         for `->canonical'.
261         (syms_of_chartab): Add new symbol `->canonical'.
262
263 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
264
265         * chartab.c (Qmap_decomposition): New variable.
266         (Fput_char_attribute): Convert `->decomposition' to
267         `=decomposition'.
268         (syms_of_chartab): Add new symbol `=decomposition'.
269
270 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
271
272         * chartab.c (Fget_range_char_table): Fix serious problem when
273         `range' is nil.
274
275 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
276
277         * chartab.c (char_table_get_db): Use `read_from_c_string'.
278
279 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
280
281         * lread.c (read_from_c_string): New function.
282
283         * lisp.h (read_from_c_string): New prototype.
284
285 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
286
287         * chartab.c (Fput_char_attribute): Convert char-specs in value of
288         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
289         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
290         for `{<-|->}Oracle-Bones[^*]*'.
291
292 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
293
294         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
295         (Kizu).
296
297 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
298
299         * text-coding.c (Qccs_priority_list): New variable in XEmacs
300         CHISE.
301         (Fmake_coding_system): Support new property `ccs-priority-list' in
302         XEmacs CHISE.
303         (Fcoding_system_property): Likewise.
304         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
305         Vdefault_coded_charset_priority_list in XEmacs CHISE.
306         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
307         XEmacs CHISE.
308         (complex_vars_of_file_coding): Define new coding-system-property
309         `ccs-priority-list' in XEmacs CHISE.
310
311         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
312
313 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
314
315         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
316         changed to normal function.
317         (encode_char_2): Likewise.
318
319         * mule-charset.c (decoding_table_put_char): Copied from
320         char-ucs.h; changed to normal function.
321         (encode_char_2): Likewise.
322
323 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
324
325         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
326         New extern.
327         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
328         (encode_char_2_search_children): New inline function.
329         (encode_char_2): Refer
330         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
331         and use `encode_char_2_search_children'.
332
333 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
334
335         * mule-charset.c
336         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
337         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
338         (vars_of_mule_charset): Add new variable
339         `display-coded-charset-priority-use-inheritance' and
340         `display-coded-charset-priority-use-hierarchy-order'.
341
342 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
343
344         * char-ucs.h (Q_subsumptive): New extern.
345         (Q_denotational): Likewise.
346         (encode_char_2): Search children specified by `->subsumptive' and
347         `->denotational'.
348
349 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
350
351         * mule-charset.c (complex_vars_of_mule_charset): Modify the
352         X-registry of `ucs-bmp'.
353
354 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
355
356         * chartab.c (char-variants): Refer `->subsumptive',
357         `->denotational' and `->identical' as same as `->ucs-unified'.
358
359 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
360
361         * chartab.c (Fput_char_attribute): Convert char-specs in value of
362         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
363         links.
364
365 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
366
367         * text-coding.c: Add EXFUN for `Fregexp_quote'.
368         (decode_add_er_char): Fix problem about infinite loop when a CCS
369         specified in `coded-charset-entity-reference-alist' is not
370         existed.
371
372 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
373
374         * mule-charset.c (syms_of_mule_charset): Rename
375         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
376
377 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
378
379         * fns.c (simplify_char_spec): Don't allocate new character-object
380         if specified char_spec does not have any CCS-features.
381
382         * chartab.h: Add EXFUN for Fdefine_char.
383
384         * chartab.c: Delete EXFUN for Fdefine_char.
385
386 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
387
388         * fns.c (simplify_char_spec): Use Fdefine_char instead of
389         Ffind_char for char-spec.
390
391 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
392
393         * lisp-disunion.h (XCHARVAL): Fix condition about
394         SIZEOF_EMACS_INT.
395
396 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
397
398         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
399         <int> for `code'.
400         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
401         point; use <Emchar> instead of <int> for character-id.
402
403 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
404
405         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
406         (make_char): Likewise.
407         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
408         environment.
409         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
410         instead of <int> as the type of return value; use <Lisp_Object>
411         instead of <Emchar> as the type of argument.
412         (XCHARVAL[macro version]): Cast the result into <Emchar>.
413
414         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
415         syntaxcode> instead of <int>.
416
417 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
418
419         * chartab.c (put_char_composition): Use DECODE_CHAR to get
420         character corresponding with UCS code point.
421         (Fput_char_attribute): Likewise.
422
423         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
424         character in the UCS decoding-table if the char-id is not equal to
425         the UCS code point.
426
427 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
428
429         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
430         for aliases; write `description'; write
431         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
432         not 0.
433
434 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
435
436         * chartab.c (Fsave_char_attribute_table): Don't use
437         `save_charset_properties'.
438
439         * mule-charset.c (Fsave_charset_properties): Renamed from
440         `save_charset_properties' and changed to Lisp function again;
441         write property `type' as `CCS'; write properties `final-byte' and
442         `mother' if they exists.
443         (syms_of_mule_charset): Revive builtin function
444         `save-charset-properties' when HAVE_LIBCHISE is defined.
445
446 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
447
448         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
449         instead of Vexec_directory.
450         (char_attribute_system_db_file): Likewise.
451
452 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
453
454         * chartab.c (Fsave_char_attribute_table): Use
455         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
456         defined.
457
458         * mule-charset.c (save_charset_properties): Renamed from
459         `Fsave_charset_properties'; changed to non-Lisp function.
460         (syms_of_mule_charset): Abolish builtin function
461         `save-charset-properties'.
462
463 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
464
465         * mule-charset.c (Fsave_charset_properties): New function when
466         HAVE_LIBCHISE is defined.
467         (syms_of_mule_charset): Add new builtin function
468         `save-charset-properties' when HAVE_LIBCHISE is defined.
469
470 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
471
472         * chartab.c (Fput_char_attribute): Convert char-specs in value of
473         `{<-|->}ancient[^*]*' to characters and put reverse links.
474         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
475         for `{<-|->}ancient[^*]*'.
476
477 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
478
479         * chartab.c (Fput_char_attribute): Convert char-specs in value of
480         `{<-|->}original[^*]*' to characters and put reverse links.
481         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
482         for `{<-|->}original[^*]*'.
483
484 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
485
486         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
487
488 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
489
490         * mule-charset.c (Qsystem_char_id): New variable.
491
492         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
493         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
494
495 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
496
497         * chartab.c (Fput_char_attribute): When processing a reference of
498         a character, put into the end of the reversed reference of each
499         target character.
500
501 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
502
503         * chartab.c (Q_same): Deleted.
504         (Q_same_of): Deleted.
505         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
506         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
507         for `{<-|->}same'.
508         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
509
510 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
511
512         * chartab.c (Q_vulgar): Deleted.
513         (Q_vulgar_of): Deleted.
514         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
515         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
516         for `{<-|->}vulgar'.
517         (syms_of_chartab): Don't define `{<-|->}vulgar'.
518
519 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
520
521         * chartab.c (Fput_char_attribute): Convert char-specs in value of
522         `{<-|->}wrong[^*]*' to characters and put reverse links.
523         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
524         for `{<-|->}wrong[^*]*'.
525
526 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
527
528         * chartab.c (Q_vulgar): New variable.
529         (Q_vulgar_of): New variable.
530         (Fput_char_attribute): Convert char-specs in value of
531         `{->|<-}vulgar' to characters and put reverse links.
532         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
533         for `{->|<-}vulgar'.
534         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
535
536 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
537
538         * text-coding.c (decode_add_er_char): Must to quote prefix string
539         as regexp.
540
541 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
542
543         * mule-charset.c (put_char_ccs_code_point): Store characters of
544         =ucs whose code_points >= 0xF0000.
545
546 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
547
548         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
549         CHISE.
550         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
551         CHISE.
552         (complex_vars_of_mule_charset): Add new coded-charset
553         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
554         builtin characters over 0xEFFFF.
555
556         * chartab.c (syms_of_chartab): Don't define symbol
557         `system-char-id' in every case.
558
559         * char-ucs.h (Qsystem_char_id): New extern variable.
560         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
561
562 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
563
564         * text-coding.c (char_encode_utf8): Try to use entity-references
565         for U-000F0000 ...  U-0010FFFF.
566
567 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
568
569         * text-coding.c (ER_BUF_SIZE): New macro.
570         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
571         `er_buf'.
572         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
573         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
574
575 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
576
577         * chartab.c (find_char_feature_in_family): New function.
578         (Fchar_feature): Use `find_char_feature_in_family' with
579         `->identical', `<-subsumptive' and `<-denotational'.
580
581 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
582
583         * text-coding.c (char_encode_as_entity_reference): Allow prefix
584         within 8 characters; fix infinite loop.
585
586 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
587
588         * chartab.c (Q_same): New variable.
589         (Q_same_of): New variable.
590         (Fput_char_attribute): Convert char-specs in value of
591         `{->|<-}same' to characters and put reverse links.
592         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
593         for `{->|<-}same'.
594         (syms_of_chartab): Add new symbols `{->|<-}same'.
595
596 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
597
598         * chartab.c (Q_component): New variable.
599         (Q_component_of): Likewise.
600         (Fput_char_attribute): Convert char-specs in value of
601         `{->|<-}ideographic-component-forms' to characters and put reverse
602         links.
603         (syms_of_chartab): Add new symbols
604         `{->|<-}ideographic-component-forms'.
605
606 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
607
608         * chartab.c (Q_identical): New variable.
609         (Q_identical_from): New variable.
610         (Fchar_feature): Regard `->identical' as a feature to find
611         ancestors.
612         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
613         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
614         for `{->|<-}identical'.
615         (syms_of_chartab): Add new symbols `{->|<-}identical'.
616
617 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
618
619         * char-ucs.h (encode_char_2): New inline function.
620         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
621
622 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
623
624         * chartab.c (Fput_char_attribute): Convert char-specs to
625         characters in value of `ideographic-structure'.
626         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
627         for `{<-|->}simplified(@...)'.
628         (Fdefine_char): Try to use predefined character's id.
629
630 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
631
632         * fns.c (simplify_char_spec): Try to convert builtin chars to
633         defined chars.
634
635 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
636
637         * chartab.c (Fput_char_attribute): Convert char-specs in value of
638         `<-simplified[^*]*' to characters and put reverse links.
639
640 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
641
642         * chartab.c (Q_subsumptive): Renamed from Q_unified.
643         (Q_subsumptive_from): Renamed from Q_unified_from.
644         (Fchar_feature): Use `Q_subsumptive_from' instead of
645         `Q_unified_from'.
646         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
647         `Q_unified'.
648         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
649         `<-unified' to `<-subsumptive'.
650
651 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
652
653         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
654         inheritance itself; fix typo; stop recursive search if cyclic
655         inheritance is found.
656
657 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
658
659         * chartab.c (Q_denotational): New variable.
660         (Q_denotational_from): New variable.
661         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
662         (put_char_attribute): New function.
663         (Fput_char_attribute): Use `put_char_attribute'; regard
664         `->denotational' and `<-denotational' as same as `->unified' and
665         `<-unified'.
666         (syms_of_chartab): Add new symbols `->denotational' and
667         `<-denotational'.
668
669 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
670
671         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
672         `Fget_char_attribute'.
673         (Fchar_variants): Likewise.
674         (get_char_table): Likewise.
675         (Fchar_feature): New function.
676         (put_char_composition): Use `Fchar_feature' instead of
677         `Fget_char_attribute'.
678         (Fput_char_attribute): Likewise; don't put the target character
679         into its `->unified' value.
680         (syms_of_chartab): Add new builtin function `char-feature'.
681
682 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
683
684         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
685         `Fget_char_attribute'.
686         (char_encode_utf8): Likewise.
687
688         * chartab.h: Add an EXFUN for `Fchar_feature'.
689
690 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
691
692         * chartab.c (Vnext_defined_char_id): New variable.
693         (Fput_char_attribute): Accept characters in `->unified'.
694         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
695         new characters which are not related with builtin char-id ranges.
696         (vars_of_chartab): Add new variable `next-defined-char-id'.
697
698 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
699
700         * chartab.c (Q_unified): New variable.
701         (Q_unified_from): New variable.
702         (Fput_char_attribute): Add code for `->unified'.
703         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
704         XEmacs CHISE.
705
706 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
707
708         * mule-charset.c (decode_ccs_conversion): New function.
709         (decode_defined_char): Use `decode_ccs_conversion'.
710         (decode_builtin_char): Likewise.
711
712 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
713
714         * char-ucs.h: Change some charset-ids of private coded-charsets.
715
716 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
717
718         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
719         (char_encode_as_entity_reference): Likewise.
720         (decode_coding_big5): Modify for `decode_defined_char' and
721         `DECODE_CHAR'.
722         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
723         avoid compiler warning.
724         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
725
726         * mule-charset.c (decode_defined_char): Add new argument
727         `without_inheritance'.
728         (Fdecode_char): Add new optional argument `without_inheritance'.
729         (Fdecode_builtin_char): Modify for `Fdecode_char'.
730
731         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
732         (simplify_char_spec): Likewise.
733
734         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
735         setting.
736
737         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
738         (map_char_table): Likewise.
739         (Fdefine_char): Use `Fdecode_char' without inheritance.
740         (Ffind_char): Modify for `Fdecode_char'.
741
742         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
743
744         * char-ucs.h (decode_defined_char): Add new argument
745         `without_inheritance'.
746         (DECODE_CHAR): Likewise.
747         (MAKE_CHAR): Modify for `DECODE_CHAR'.
748
749 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
750
751         * chartab.c (Vchise_system_db_directory): New variable.
752         (vars_of_chartab): Add new variable `chise-system-db-directory'.
753
754 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
755
756         * chartab.c: EXFUN `Fmount_char_attribute_table'.
757         (print_chartab_range): Don't define when `UTF2000' is defined.
758         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
759         `CHISE_DS_open'.
760
761 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
762
763         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
764         and optional argument `rehash' is specified, call
765         `open_chise_data_source_maybe' before
766         `chise_ds_foreach_char_feature_name' is called.
767
768 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
769
770         * chartab.c (char_attribute_list_reset_map_func): New function
771         when HAVE_LIBCHISE is defined.
772         (Fchar_attribute_list): Add new optional argument `rehash' when
773         HAVE_LIBCHISE is defined.
774         (open_chise_data_source_maybe): Use "chise-db" instead of
775         "char-db".
776         (char_attribute_system_db_file): Likewise.
777         (Fload_char_attribute_table): Use
778         `chise_feature_foreach_char_with_value' instead of
779         `chise_char_feature_value_iterate'.
780
781 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
782
783         * chartab.c (Vchise_db_directory): New variable.
784         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
785
786 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
787
788         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
789         instead of HAVE_CHISE to specify using with libchise.
790
791         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
792
793         * chartab.h: Don't use HAVE_CHISE_CLIENT.
794
795         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
796         defined or HAVE_LIBCHISE_LIBCHISE is defined.
797         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
798         is defined.
799         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
800         HAVE_CHISE to specify using with libchise.
801         (syms_of_chartab): Don't define symbol `system-char-id' when
802         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
803
804 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
805
806         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
807         specify CHISE DB support.
808         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
809         of `char_attribute_system_db_file' to check feature DB file.
810
811         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
812         HAVE_CHISE_CLIENT to specify CHISE DB support.
813
814         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
815         specify CHISE DB support.
816         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
817         not defined.
818         (Freset_char_attribute_table): Use `chise_feature_setup_db'
819         instead of `char_attribute_system_db_file' to check feature DB
820         file.
821
822 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
823
824         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
825         `HAVE_CHISE_CLIENT'.
826
827 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
828
829         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
830         (Fsave_charset_mapping_table): Don't use
831         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
832
833         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
834         (HAVE_LIBCHISE): New macro.
835
836         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
837
838         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
839         (Fsave_char_attribute_table): Don't use
840         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
841
842 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
843
844         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
845         defined.
846         (save_uint16_byte_table): Likewise.
847         (save_byte_table): Likewise.
848         (char_table_get_db): Use `chise_ds_load_char_feature_value'
849         instead of `chise_char_load_feature_value'.
850         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
851
852 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
853
854         * chartab.h (struct Lisp_Char_Table): Delete member
855         `feature_table' if CHISE is defined.
856
857         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
858         (Fcopy_char_table): Likewise.
859         (char_table_open_db_maybe): Likewise.
860         (char_table_close_db_maybe): Likewise.
861         (char_table_get_db): Likewise.
862         (Fmount_char_attribute_table): Likewise.
863         (Fload_char_attribute_table): Likewise.
864
865 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
866
867         * mule-charset.c (load_char_decoding_entry_maybe): Use
868         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
869         `chise_ccs_decode'.
870
871 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
872
873         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
874         instead of `chise_open_data_source'.
875         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
876         `chise_ds_close'.
877
878 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
879
880         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
881         instead of `chise_ds_open_feature_table'.
882         (char_table_close_db_maybe): Don't use `chise_ft_close'.
883
884 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
885
886         * mule-charset.c (Fsave_charset_mapping_table): Use
887         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
888         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
889         `chise_ccs_sync' instead of `chise_ccst_close'.
890         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
891
892         * chartab.c (open_chise_data_source_maybe): Modify for
893         `chise_open_data_source'.
894         (char_table_open_db_maybe): Modify for
895         `chise_ds_open_feature_table'.
896
897 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
898
899         * mule-charset.c (load_char_decoding_entry_maybe): Use
900         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
901         `chise_ccst_close'.
902
903 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
904
905         * mule-charset.c (Fsave_charset_mapping_table): Use
906         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
907         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
908         `chise_dt_put_char' and `chise_dt_close'.
909         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
910         `chise_ccs_decode' and `chise_ccst_close' instead of
911         `chise_ds_open_decoding_table', `chise_dt_get_char' and
912         `chise_dt_close'.
913
914         * chartab.c (char_table_get_db): Use
915         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
916         (load_char_attribute_table_map_func): Modify for
917         `chise_char_feature_value_iterate'.
918         (Fload_char_attribute_table): Use
919         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
920
921 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
922
923         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
924
925 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
926
927         * chartab.c (put_char_table): Modify for inherited coded-charsets
928         in XEmacs CHISE.
929
930 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
931
932         * chartab.c (Fput_char_table_map_function): Fixed.
933         (word_boundary_p): Don't check charset in XEmacs CHISE.
934
935 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
936
937         * mule-charset.c (Fsave_charset_mapping_table): Use
938         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
939         instead of `chise_open_decoding_table'; refer
940         `default_chise_data_source'; use `chise_dt_close' instead of
941         `chise_close_decoding_table'.
942         (load_char_decoding_entry_maybe): Likewise.
943
944         * chartab.c (default_chise_data_source): New variable when `CHISE'
945         is defined.
946         (Fcopy_char_table): `ct->ds' is deleted.
947         (open_chise_data_source_maybe): New function.
948         (Fclose_char_data_source): New function.
949         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
950         use `chise_ds_open_feature_table' instead of
951         `chise_open_feature_table'.
952         (char_table_close_db_maybe): Use `chise_ft_close' instead of
953         `chise_close_feature_table'; `cit->ds' is deleted.
954         (syms_of_chartab): Add new builtin function
955         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
956
957         * chartab.h (default_chise_data_source): New extern variable.
958         (open_chise_data_source_maybe): New prototype.
959         (struct Lisp_Char_Table): Delete `ds'.
960
961 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
962
963         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
964         `CHISE' is defined.
965
966 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
967
968         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
969         not defined; add code for non-libchise setting.
970         (char_table_close_db_maybe): Likewise.
971         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
972         defined.
973         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
974         even if `CHISE' is not defined.
975         (Freset_char_attribute_table): Likewise.
976         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
977         `char_table_close_db_maybe' even if `CHISE' is not defined; use
978         `char_table_get_db'.
979         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
980         `char_table_close_db_maybe' even if `CHISE' is not defined.
981
982 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
983
984         * chartab.c (char_table_open_db_maybe): New function.
985         (char_table_close_db_maybe): New function.
986         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
987         (Freset_char_attribute_table): Likewise.
988         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
989         `char_table_close_db_maybe'.
990         (Fload_char_attribute_table): Likewise.
991
992 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
993
994         * chartab.c: Don't include <chise.h> because it is included in
995         chartab.h.
996         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
997         defined.
998         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
999         `CHISE' is defined.
1000         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1001         `CHISE' is defined.
1002         (Fclose_char_attribute_table): Close `ct->feature_table' and
1003         `ct->ds' when `CHISE' is defined.
1004         (Freset_char_attribute_table): Likewise.
1005         (load_char_attribute_maybe): Use `cit->ds' and
1006         `cit->feature_table' when `CHISE' is defined.
1007         (Fload_char_attribute_table): Likewise.
1008
1009         * chartab.h: Include <chise.h> when `CHISE' is defined.
1010         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1011         when `CHISE' is defined.
1012
1013 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1014
1015         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1016         is defined.
1017         (char_table_description): Likewise.
1018         (Fmake_char_table): Likewise.
1019         (Fcopy_char_table): Likewise.
1020         (Fmount_char_attribute_table): Likewise.
1021         (Fclose_char_attribute_table): Likewise.
1022         (Freset_char_attribute_table): Likewise.
1023         (load_char_attribute_maybe): Likewise.
1024         (Fload_char_attribute_table): Likewise.
1025
1026         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1027         defined.
1028
1029 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1030
1031         * chartab.c (load_char_attribute_table_map_func): New function
1032         when CHISE is defined.
1033         (Qload_char_attribute_table_map_function): Don't define when CHISE
1034         is defined.
1035         (Fload_char_attribute_table_map_function): Likewise.
1036         (Fload_char_attribute_table): Use libchise when `CHISE' is
1037         defined.
1038         (syms_of_chartab): Don't define
1039         `load-char-attribute-table-map-function' when CHISE is defined.
1040
1041 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1042
1043         * chartab.c: Include <chise.h> when `CHISE' is defined.
1044         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1045
1046 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1047
1048         * mule-charset.c (charset_code_point): Fix problem when searching
1049         in mother CCS fails with `defined_only' mode.
1050
1051 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1052
1053         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1054         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1055         (put_char_composition): Likewise.
1056         (Fput_char_attribute): Likewise.
1057         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1058
1059 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1060
1061         * chartab.c (Q_ucs): Deleted.
1062         (Fput_char_attribute): Don't refer `->ucs'.
1063         (Fdefine_char): Likewise.
1064         (Ffind_char): Likewise.
1065         (syms_of_chartab): Delete `->ucs'.
1066
1067 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1068
1069         * mule-charset.c (Qmap_cns11643_2): Renamed from
1070         `Qchinese_cns11643_2'.
1071         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1072         `chinese-cns11643-2'.
1073         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1074         `=cns11643-2'.
1075
1076 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1077
1078         * mule-charset.c (Qmap_cns11643_1): Renamed from
1079         `Qchinese_cns11643_1'.
1080         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1081         `chinese-cns11643-1'.
1082         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1083         `=cns11643-1'.
1084
1085 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1086
1087         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1088         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1089         `chinese-gb12345'.
1090         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1091         `=gb12345'.
1092
1093 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1094
1095         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1096         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1097         `chinese-gb2312'.
1098         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1099         `=gb2312'.
1100
1101 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1102
1103         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1104         (syms_of_mule_charset): Add new symbol `=big5' instead of
1105         `chinese-big5'.
1106         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1107
1108 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1109
1110         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1111         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1112         `korean-ksc5601'.
1113         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1114         `=ks-x1001'.
1115
1116 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1117
1118         * mule-charset.c (Qmap_jis_x0212): Renamed from
1119         `Qjapanese_jisx0212'.
1120         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1121         `japanese-jisx0212'.
1122         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1123         `=jis-x0212'.
1124
1125 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1126
1127         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1128         `Qjapanese_jisx0208'.
1129         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1130         of `japanese-jisx0208'.
1131         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1132         `=jis-x0208-1983'.
1133
1134 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1135
1136         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1137         `Qjapanese_jisx0208_1978'.
1138         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1139         of `japanese-jisx0208-1978'.
1140         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1141         `=jis-x0208-1978'.
1142
1143 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1144
1145         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1146         only for XEmacs CHISE.
1147
1148 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1149
1150         * char-ucs.h: Compact non-ISO-IR charset-ids.
1151         (LEADING_BYTE_UCS): Changed to -177.
1152         (LEADING_BYTE_CONTROL_1): Changed to -77.
1153         (LEADING_BYTE_UCS_BMP): Changed to -176.
1154         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1155
1156 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1157
1158         * mule-charset.c (Qiso_ir): New variable.
1159         (Fmake_charset): Recognise new property `iso-ir'.
1160         (syms_of_mule_charset): Add new symbol `iso-ir'.
1161
1162 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1163
1164         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1165         n to -n; charset-id of non ISO-IR sets are changed to positive
1166         numbers.
1167
1168 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1169
1170         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1171         for &MCS-XXXXXXXX; values.
1172
1173 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1174
1175         * mule.c (Vxemacs_chise_version): Renamed from
1176         `Vutf_2000_version'.
1177         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1178         `utf-2000-version' as an alias for `xemacs-chise-version'.
1179
1180 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1181
1182         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1183         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1184         defined.
1185
1186         * config.h.in (CHISE): New macro.
1187
1188 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1189
1190         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1191         of `ucs'.
1192         (Qmap_ucs): New variable.
1193         (syms_of_mule_charset): Add new symbol `=ucs'.
1194         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1195
1196         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1197         (simplify_char_spec): Likewise.
1198
1199         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1200
1201         * char-ucs.h (Qmap_ucs): New extern variable.
1202
1203 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1204
1205         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1206         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1207         don't define it when UTF2000 is not defined.
1208         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1209         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1210         when UTF2000 is not defined.
1211         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1212         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1213
1214 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1215
1216         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1217
1218         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1219         (Qucs_gb): Deleted.
1220         (syms_of_mule_charset): Delete `ucs-gb'.
1221         (complex_vars_of_mule_charset): Likewise.
1222
1223 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1224
1225         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1226
1227         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1228         (Qucs_cns): Deleted.
1229         (syms_of_mule_charset): Delete `ucs-cns'.
1230         (complex_vars_of_mule_charset): Likewise.
1231
1232 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1233
1234         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1235
1236         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1237         (Qucs_jis): Deleted.
1238         (syms_of_mule_charset): Delete `ucs-jis'.
1239         (complex_vars_of_mule_charset): Likewise.
1240
1241 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1242
1243         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1244
1245         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1246         (Qucs_ks): Deleted.
1247         (syms_of_mule_charset): Delete `ucs-ks'.
1248         (complex_vars_of_mule_charset): Likewise.
1249
1250 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1251
1252         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1253         (Qideograph_daikanwa_2): Deleted.
1254         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1255         (complex_vars_of_mule_charset): Likewise.
1256
1257         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1258         (LEADING_BYTE_DAIKANWA_1): Deleted.
1259         (LEADING_BYTE_DAIKANWA_2): Deleted.
1260         (MIN_CHAR_DAIKANWA): Deleted.
1261         (MAX_CHAR_DAIKANWA): Deleted.
1262
1263 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1264
1265         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1266         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1267         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1268
1269         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1270         (Vcharset_ideograph_daikanwa): Deleted.
1271         (Qideograph_hanziku_{1..12}): Deleted.
1272         (Qideograph_daikanwa): Deleted.
1273         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1274         Vcharset_ideograph_daikanwa.
1275         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1276         `ideograph-hanziku-{1..12}'.
1277         (complex_vars_of_mule_charset): Likewise.
1278
1279 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1280
1281         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1282
1283         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1284         (Qideograph_gt_pj_{1..11}): Deleted.
1285         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1286         (complex_vars_of_mule_charset): Likewise.
1287
1288 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1289
1290         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1291         (Vcharset_ideograph_gt): Deleted.
1292         (Qucs_big5): Deleted.
1293         (Qideograph_gt): Deleted.
1294         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1295         `ideograph-gt'.
1296         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1297         and `ideograph-gt'.
1298
1299         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1300         (LEADING_BYTE_GT): Deleted.
1301         (MIN_CHAR_GT): Deleted.
1302         (MAX_CHAR_GT): Deleted.
1303
1304 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1305
1306         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1307
1308 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1309
1310         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1311         (save_uint16_byte_table): Likewise.
1312         (save_byte_table): Likewise; convert values by it.
1313         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1314         for `ideographic-structure'.
1315         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1316         as the filter for `ideographic-structure'.
1317
1318 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1319
1320         * chartab.c (put_char_composition): New function.
1321         (Fput_char_attribute): Use `put_char_composition'; use
1322         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1323
1324         * fns.c (simplify_char_spec): New function.
1325         (char_ref_simplify_spec): New function.
1326         (Fchar_refs_simplify_char_specs): New function.
1327         (syms_of_fns): Add new builtin function
1328         `char-refs-simplify-char-specs'.
1329
1330 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1331
1332         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1333         (Qideograph_cbeta): Deleted.
1334         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1335         (complex_vars_of_mule_charset): Likewise.
1336
1337         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1338         (MIN_CHAR_CBETA): Comment out.
1339         (MAX_CHAR_CBETA): Likewise.
1340
1341 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1342
1343         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1344         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1345         CHISE client feature.
1346
1347 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1348
1349         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1350
1351 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1352
1353         * mule-charset.c (charset_lookup_description_1): Use
1354         `NUM_LEADING_BYTES' in UTF-2000.
1355
1356 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1357
1358         * char-ucs.h (GC_CHARSETP): Deleted.
1359
1360 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1361
1362         * char-ucs.h (MAX_CHAR_GT): Updated.
1363
1364 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1365
1366         * text-coding.c: Sync with XEmacs 21.4.10.
1367
1368 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1369
1370         * mule-charset.c (Vcharset_china3_jef): Deleted.
1371         (Qchina3_jef): Deleted.
1372         (syms_of_mule_charset): Don't define `china3-jef'.
1373         (complex_vars_of_mule_charset): Likewise.
1374
1375         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1376         (MIN_CHAR_CHINA3_JEF): Comment out.
1377         (MAX_CHAR_CHINA3_JEF): Comment out.
1378
1379 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1380
1381         * mule-charset.c (Vcharset_ucs_gb): New variable.
1382         (Qucs_gb): New variable.
1383         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1384         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1385
1386         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1387
1388 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1389
1390         * mule-charset.c (charset_code_point): if a coded-charset has a
1391         final-byte, don't inherit the builtin range of the mother CCS.
1392
1393 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1394
1395         * mule-charset.c (charset_code_point): Fix problem about
1396         inheritance.
1397
1398 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1399
1400         * mule-charset.c (decode_builtin_char): Reorganized.
1401
1402 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1403
1404         * text-coding.c (char_encode_as_entity_reference): Modify for
1405         `charset_code_point'.
1406         (char_encode_shift_jis): Likewise.
1407         (char_encode_big5): Likewise.
1408         (char_encode_utf8): Likewise.
1409         (char_encode_iso2022): Likewise.
1410
1411         * mule-charset.c (charset_code_point): Add new argument
1412         `defined_only'.
1413         (Fencode_char): Add new optional argument `defined_only'.
1414
1415         * chartab.c (put_char_table): Modify for `charset_code_point'.
1416
1417         * char-ucs.h (charset_code_point): Add new argument
1418         `defined_only'.
1419         (encode_char_1): Modify for `charset_code_point'.
1420
1421 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1422
1423         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1424         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1425
1426 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1427
1428         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1429         (Qjis_x0208): Likewise.
1430         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1431         XCHARSET_FINAL(charset).
1432         (charset_code_point): Modify condition for final-byte based
1433         builtin-chars.
1434         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1435         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1436         in UTF-2000; specify `=jis-x0208' as the mother of
1437         `japanese-jisx0208-1978', `japanese-jisx0208' and
1438         `japanese-jisx0208-1990' in UTF-2000.
1439
1440 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1441
1442         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1443
1444 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1445
1446         * text-coding.c (decode_coding_utf16): Support UTF-16.
1447         (char_encode_utf16): Fixed.
1448
1449 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1450
1451         * text-coding.c (Qutf16): New variable in MULE.
1452         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1453         (Fcoding_system_type): Add `utf-16' in MULE.
1454         (struct detection_state): Add a structure for utf16 in MULE.
1455         (detect_coding_type): Setup st->utf16.mask in MULE.
1456         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1457         MULE.
1458         (reset_encoding_stream): Use `char_encode_utf16' and
1459         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1460         (detect_coding_utf16): New function [incomplete].
1461         (decode_coding_utf16): New function [support only UCS-2].
1462         (char_encode_utf16): New function.
1463         (char_finish_utf16): New function.
1464         (syms_of_file_coding): Add new symbol `utf-16'; setup
1465         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1466
1467         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1468         UTF-2000.
1469         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1470         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1471
1472 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1473
1474         * chartab.c (put_char_table): When a charset is specified as a
1475         range in UTF-2000, don't support builtin characters.
1476
1477 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1478
1479         * mule-charset.c (decode_defined_char): Don't refer external
1480         database if Qunbound or Qnil are found.
1481         (Fsave_charset_mapping_table): Don't define it if
1482         HAVE_CHISE_CLIENT is not defined.
1483         (Freset_charset_mapping_table): New function.
1484         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1485         found in external database.
1486         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1487         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1488         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1489
1490 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1491
1492         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1493         not.
1494
1495 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1496
1497         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1498         Q_lowercase, Q_uppercase in UTF-2000.
1499
1500         * chartab.c (get_char_table): Add special code for the standard
1501         case table to use character attribute `->downcase' and
1502         `->uppercase' for case operations in UTF-2000.
1503
1504         * casetab.c (Qflippedcase): New variable in UTF-2000.
1505         (Q_lowercase): Likewise.
1506         (Q_uppercase): Likewise.
1507         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1508         and `->uppercase' in UTF-2000.
1509         (complex_vars_of_casetab): Assign attribute name `downcase' to
1510         downcase and CANON table of Vstandard_case_table in UTF-2000;
1511         assign attribute name `flippedcase' to upcase and EQV table of
1512         Vstandard_case_table in UTF-2000.
1513
1514 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1515
1516         * text-coding.c (decode_add_er_char): Support isolated-chars.
1517         (char_encode_as_entity_reference): Likewise.
1518
1519 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1520
1521         * emacs.c (Vutf_2000_lisp_directory): New variable.
1522         (Vconfigure_utf_2000_lisp_directory): Likewise.
1523         (complex_vars_of_emacs): Add new variable
1524         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1525
1526 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1527
1528         * char-ucs.h (DECODE_CHAR): Delete special code for
1529         `chinese-big5-1' and `chinese-big5-2'.
1530
1531         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1532         (Qbig5_2): Likewise.
1533         (decode_defined_char): Support CONVERSION_BIG5_1 and
1534         CONVERSION_BIG5_2.
1535         (decode_builtin_char): Likewise.
1536         (charset_code_point): Likewise.
1537         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1538         'conversion in UTF-2000.
1539         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1540         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1541         `chinese-big5-2' as children of `chinese-big5'.
1542
1543         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1544         (CONVERSION_BIG5_2): New macro.
1545
1546 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1547
1548         * text-coding.c (char_encode_big5): Support entity-reference.
1549
1550 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1551
1552         * text-coding.c (char_encode_as_entity_reference): New function.
1553         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1554
1555 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1556
1557         * text-coding.c (decode_coding_big5): Support entity-reference
1558         decoding feature.
1559
1560 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1561
1562         * text-coding.c (allocate_coding_system): Initialize initial
1563         charsets for CODESYS_UTF8.
1564         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1565         charset-g2 for CODESYS_UTF8.
1566         (decode_coding_utf8): Use charset-g0.
1567         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1568         to force variants to map to UCS.
1569
1570 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1571
1572         * text-coding.c (Qutf_8_mcs): New variable.
1573         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1574         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1575         instead of `utf-8' in UTF-2000.
1576
1577 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1578
1579         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1580         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1581         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1582         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1583         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1584         CONVERSION_96x96x96x96 are introduced.
1585         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1586         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1587         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1588
1589         * char-ucs.h (CONVERSION_94): New macro.
1590         (CONVERSION_96): New macro.
1591         (CONVERSION_94x94): New macro.
1592         (CONVERSION_96x96): New macro.
1593         (CONVERSION_94x94x94): New macro.
1594         (CONVERSION_96x96x96): New macro.
1595         (CONVERSION_94x94x94x60): New macro.
1596         (CONVERSION_94x94x94x94): New macro.
1597         (CONVERSION_96x96x96x96): New macro.
1598
1599 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1600
1601         * chartab.c (Vcharacter_variant_table): Deleted.
1602         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1603         of `Vcharacter_variant_table'.
1604         (Fput_char_attribute): Likewise.
1605         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1606         (complex_vars_of_chartab): Likewise.
1607
1608 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1609
1610         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1611
1612         * fns.c (Qideographic_structure): New variable.
1613         (Qkeyword_char): New variable.
1614         (ids_format_unit): New function.
1615         (Fideographic_structure_to_ids): New function.
1616         (syms_of_fns): Add new symbols `ideographic-structure' and
1617         `:char'; add new builtin function `ideographic-structure-to-ids'.
1618
1619         * data.c (Fchar_ref_p): New function.
1620         (syms_of_data): Add new builtin function `char-ref-p'.
1621
1622         * chartab.h: Add an EXFUN for `Ffind_char'.
1623
1624 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1625
1626         * text-coding.c (Vcharacter_composition_table): Deleted.
1627         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1628         in every UTF-2000.
1629
1630         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1631         UTF-2000.
1632         (Vcharacter_composition_table): Deleted.
1633         (Fget_composite_char): Use the implementation for external-DB
1634         support in every UTF-2000.
1635         (Fput_char_attribute): Likewise.
1636         (char_attribute_system_db_file): Don't define if external-DB
1637         feature is not available.
1638         (Fsave_char_attribute_table): Likewise.
1639         (Fmount_char_attribute_table): Likewise.
1640         (Fclose_char_attribute_table): Likewise.
1641         (Freset_char_attribute_table): Likewise.
1642         (Fload_char_attribute_table): Likewise.
1643         (syms_of_chartab): Don't define `save-char-attribute-table',
1644         `mount-char-attribute-table', `reset-char-attribute-table',
1645         `close-char-attribute-table' and `load-char-attribute-table' if
1646         external-DB feature is not available.
1647         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1648
1649 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1650
1651         * text-coding.c (Qcomposition): Add extern if external-DB feature
1652         is supported.
1653         (Vcharacter_composition_table): Don't add extern if external-DB
1654         feature is supported.
1655         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1656         character composition rule if external-DB feature is supported.
1657
1658         * chartab.c (Vcharacter_composition_table): Don't define if
1659         external-DB feature is supported.
1660         (Qcomposition): New variable.
1661         (Fget_composite_char): New implementation for external-DB support.
1662         (Fput_char_attribute): Use `composition' property of each
1663         character instead of `Vcharacter_composition_table' to store
1664         character-composition rules if external-DB feature is supported.
1665         (syms_of_chartab): Add new symbol `composition'.
1666         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1667         external-DB feature is supported.
1668
1669 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1670
1671         * chartab.c (Vchar_db_stingy_mode): New variable.
1672         (load_char_attribute_maybe): Close database if
1673         Vchar_db_stingy_mode is not NIL.
1674         (Fload_char_attribute_table_map_function): Use
1675         `get_char_id_table_0' instead of `get_char_id_table'.
1676         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1677
1678         * chartab.h (get_char_id_table_0): New inline function.
1679         (get_char_id_table): Use `get_char_id_table_0'.
1680
1681 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1682
1683         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1684         and `COMPOSE_ADD_CHAR'.
1685         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1686
1687 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1688
1689         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1690         instead of `DECODE_ADD_UCS_CHAR'.
1691         (COMPOSE_ADD_CHAR): Likewise.
1692
1693 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1694
1695         * text-coding.c (decode_flush_er_chars): New inline function.
1696         (decode_add_er_char): New function.
1697         (decode_coding_utf8): Use `decode_flush_er_chars' and
1698         `decode_add_er_char'.
1699
1700 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1701
1702         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1703         done before `decode_output_utf8_partial_char'.
1704
1705         * mule-charset.c (complex_vars_of_mule_charset): Specify
1706         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1707         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1708
1709 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1710
1711         * mule-charset.c (decode_defined_char): New function; search
1712         mother.
1713         (decode_builtin_char): Don't search mother if
1714         XCHARSET_MAX_CODE(charset) == 0.
1715         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1716         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1717         (Fdecode_char): Use `decode_defined_char' instead of
1718         `DECODE_DEFINED_CHAR'.
1719         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1720         mother of `Vcharset_ucs_jis'.
1721
1722         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1723         instead of `DECODE_DEFINED_CHAR'.
1724
1725         * char-ucs.h (decode_defined_char): Renamed from
1726         `DECODE_DEFINED_CHAR'; changed to normal function.
1727         (DECODE_CHAR): Use `decode_defined_char' instead of
1728         `DECODE_DEFINED_CHAR'.
1729
1730         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1731
1732 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1733
1734         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1735
1736         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1737         variable.
1738         (Quse_entity_reference): New variable.
1739         (Qd): New variable.
1740         (Qx): New variable.
1741         (QX): New variable.
1742         (coding_system_description): Add description for
1743         `ccs_priority_list'.
1744         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1745         (allocate_coding_system): Initialize `ccs_priority_list' in
1746         UTF-2000.
1747         (Fmake_coding_system): Add description about
1748         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1749         (codesys).
1750         (Fcoding_system_property): Accept `disable-composition' and
1751         `use-entity-reference' in UTF-2000.
1752         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1753         in UTF-2000.
1754         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1755         (decode_coding_utf8): Decode entity-reference if
1756         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1757         (char_encode_utf8): Encode non-Unicode characters as
1758         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1759         (str->codesys).
1760         (syms_of_file_coding): Add new symbols `use-entity-reference',
1761         `d', `x', `X'.
1762         (vars_of_file_coding): Add new variable
1763         `coded-charset-entity-reference-alist'.
1764         (complex_vars_of_file_coding): Declare `disable-composition' and
1765         `use-entity-reference' to be coding-system-properties in UTF-2000.
1766
1767         * file-coding.h (struct Lisp_Coding_System): Add new member
1768         `use_entity_reference' and `ccs_priority_list'.
1769         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1770         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1771         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1772
1773 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1774
1775         * chartab.c (save_uint8_byte_table): Don't clear the table.
1776         (save_uint16_byte_table): Likewise.
1777         (save_byte_table): Likewise.
1778         (Fmount_char_attribute_table): New function.
1779         (syms_of_chartab): Add new builtin function
1780         `mount-char-attribute-table'.
1781
1782 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1783
1784         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1785         "w+" mode.
1786         (load_char_decoding_entry_maybe): Open database as read-only mode.
1787
1788         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1789         open database as "w+" mode.
1790         (load_char_attribute_maybe): Open database as read-only mode.
1791         (Fload_char_attribute_table): Likewise.
1792
1793 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1794
1795         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1796         (char_table_description): Delete member `db_file'.
1797         (Fmake_char_table): Don't refer `ct->db_file'.
1798         (Fcopy_char_table): Likewise.
1799         (Fsave_char_attribute_table): Likewise.
1800         (Fclose_char_attribute_table): Likewise.
1801         (Freset_char_attribute_table): Likewise.
1802         (load_char_attribute_maybe): Likewise.
1803         (Fload_char_attribute_table): Likewise.
1804
1805         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1806
1807 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1808
1809         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1810         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1811         `ct->db' is living.
1812         (load_char_attribute_maybe): Likewise.
1813         (Fload_char_attribute_table): Likewise.
1814
1815 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1816
1817         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1818         `ct->db_file' unconditionally.
1819
1820 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1821
1822         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1823         UTF-2000.
1824         (char_table_description): Add description for `db_file' and `db'
1825         in UTF-2000.
1826         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1827         UTF-2000.
1828         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1829         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1830         (Fclose_char_attribute_table): New function.
1831         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1832         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1833         and `cit->db'.
1834         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1835         (syms_of_chartab): Add new builtin function
1836         `Fclose_char_attribute_table'.
1837
1838 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1839
1840         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1841         `db' in UTF-2000.
1842         (load_char_attribute_maybe): Change interface.
1843         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1844
1845 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1846
1847         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1848
1849 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1850
1851         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1852         instead of `DECODE_CHAR' for mother; don't use special code for
1853         chinese-big5 to use code space of chinese-big5-1 and
1854         chinese-big5-2.
1855         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1856         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1857
1858         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1859         (MAX_CHAR_BIG5_CDP): Revival.
1860
1861 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1862
1863         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1864         the XLFD registry-encoding name of `chinese-big5'.
1865
1866 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1867
1868         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1869         (Qchinese_big5_cdp): Deleted.
1870         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1871         (complex_vars_of_mule_charset): Delete coded-charset
1872         `chinese-big5-cdp'.
1873
1874         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1875         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1876         `CHARSET_ID_OFFSET - n' for private CCS.
1877         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1878         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1879         of `MIN_LEADING_BYTE'.
1880         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1881         `(CHARSET_ID_OFFSET - 97)'.
1882         (MIN_CHAR_BIG5_CDP): Deleted.
1883         (MAX_CHAR_BIG5_CDP): Deleted.
1884
1885 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1886
1887         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1888
1889 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1890
1891         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1892         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1893         chartab.c].
1894
1895         * chartab.c (Vutf_2000_version): Moved to mule.c.
1896         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1897
1898 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1899
1900         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1901         when HAVE_CHISE_CLIENT is not defined.
1902
1903         * mule.c (vars_of_mule): Provide feature `chise' when
1904         HAVE_CHISE_CLIENT is defined.
1905
1906 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1907
1908         * config.h.in (UTF2000): Add comment.
1909         (HAVE_CHISE_CLIENT): New macro.
1910
1911 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1912
1913         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1914         CONSP.
1915         (Fput_char_attribute): Likewise.
1916         (char_attribute_system_db_file): Encode file-name of attribute.
1917         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1918         the initial value.
1919
1920 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1921
1922         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1923         (Fsave_charset_mapping_table): Use
1924         `char_attribute_system_db_file'.
1925         (load_char_decoding_entry_maybe): Likewise.
1926
1927         * chartab.h (Qsystem_char_id): New external variable.
1928         (char_attribute_system_db_file): New prototype.
1929
1930         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1931         (char_attribute_system_db_file): New function.
1932         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1933         (Freset_char_attribute_table): Likewise.
1934         (load_char_attribute_maybe): Likewise.
1935         (Fload_char_attribute_table): Likewise.
1936         (syms_of_chartab): Add new symbol `system-char-id'.
1937
1938 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1939
1940         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1941         `XCHARSET_GRAPHIC(ccs)'.
1942
1943 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1944
1945         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1946
1947 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1948
1949         * chartab.c (Q_ucs_variants): New variable.
1950         (syms_of_chartab): Add new symbol `->ucs-variants'.
1951         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1952         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1953         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1954
1955         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1956
1957         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1958         `HAVE_DATABASE' is defined.
1959         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1960         `HAVE_DATABASE' is defined.
1961
1962 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1963
1964         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1965         attribute-table.
1966         (Freset_char_attribute_table): New function.
1967         (syms_of_chartab): Add new builtin function
1968         `reset-char-attribute-table'.
1969
1970 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1971
1972         * chartab.c (load_char_attribute_maybe): Don't make directories.
1973
1974 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1975
1976         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1977
1978         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1979         for decoding-table.
1980
1981 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1982
1983         * mule-charset.c (Fsave_charset_mapping_table): Use
1984         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1985
1986         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1987         instead of `XCHARSET_CHARS'.
1988
1989 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1990
1991         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1992         (XCHARSET_BYTE_SIZE): Likewise.
1993
1994         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1995         mule-charset.c].
1996         (XCHARSET_BYTE_SIZE): Likewise.
1997
1998 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1999
2000         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2001         data-directory to store database.
2002         (Fsave_char_attribute_table): Likewise.
2003         (load_char_attribute_maybe): Likewise.
2004         (Fload_char_attribute_table): Likewise.
2005
2006 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2007
2008         * mule-charset.c (Fsave_charset_mapping_table): New function.
2009         (syms_of_mule_charset): Add new builtin function
2010         `save-charset-mapping-table'.
2011
2012 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2013
2014         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2015         (get_ccs_octet_table): New inline function.
2016         (put_ccs_octet_table): Likewise.
2017         (decoding_table_put_char): Use `get_ccs_octet_table' and
2018         `put_ccs_octet_table'.
2019         (decoding_table_remove_char): Use `decoding_table_put_char'.
2020         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2021
2022         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2023         into encoding_table.
2024         (make_charset): Use Qunbound instead Qnil as initial value of
2025         decoding_table.
2026
2027 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2028
2029         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2030         element is Qunloaded.
2031         (map_over_uint16_byte_table): Likewise.
2032         (map_over_byte_table): Likewise.
2033         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2034         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2035         database support, load encoding-table of the specified
2036         coded-charset if it is not loaded yet.
2037         (save_uint8_byte_table): New function of UTF-2000 with external
2038         database support.
2039         (save_uint16_byte_table): Likewise.
2040         (save_byte_table): Likewise.
2041         (Fput_char_attribute): Don't store value into external database
2042         even if the external database feature is supported in UTF-2000;
2043         set `attribute' as name of char-table if the external database
2044         feature is supported.
2045         (Fsave_char_attribute_table): New function in UTF-2000.
2046         (syms_of_chartab): Add new builtin function
2047         `save-char-attribute-table' in UTF-2000.
2048
2049 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2050
2051         * chartab.c (char_attribute_table_to_put): New variable in
2052         UTF-2000.
2053         (Qput_char_table_map_function): Likewise.
2054         (value_to_put): Likewise.
2055         (Fput_char_table_map_function): New function in UTF-2000.
2056         (put_char_table): Use `Fmap_char_attribute' for
2057         CHARTAB_RANGE_CHARSET in UTF-2000.
2058         (Fput_char_attribute): Store symbol instead of string in
2059         `XCHAR_TABLE_NAME (table)'.
2060         (load_char_attribute_maybe): Likewise.
2061         (syms_of_chartab): Add new symbol/function
2062         `put-char-table-map-function'.
2063
2064 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2065
2066         * database.h: Add new EXFUN for `Fmap_database'.
2067
2068         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2069         (syms_of_database): Likewise.
2070
2071         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2072         UTF-2000.
2073         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2074         (XCHAR_TABLE_UNLOADED): Likewise.
2075
2076         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2077         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2078         HAVE_DATABASE is defined.
2079         (char_attribute_table_to_load): New variable of UTF-2000 with
2080         external database support.
2081         (Qload_char_attribute_table_map_function): Likewise.
2082         (Fload_char_attribute_table_map_function): New function of
2083         UTF-2000 with external database support.
2084         (Fload_char_attribute_table): New function of UTF-2000.
2085         (Fmap_char_attribute): Call Fload_char_attribute_table if
2086         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2087         (syms_of_chartab): Add new symbol and function
2088         `load-char-attribute-table-map-function' in UTF-2000 with external
2089         database support; add new function `load-char-attribute-table' in
2090         UTF-2000.
2091
2092 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2093
2094         * chartab.h (load_char_attribute_maybe): New prototype for
2095         UTF-2000 with DATABASE support.
2096         (get_char_id_table): Use `load_char_attribute_maybe' if
2097         HAVE_DATABASE is defined.
2098
2099         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2100         with DATABASE support.
2101
2102 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2103
2104         * chartab.c (Fput_char_attribute): Use S-expression as key of
2105         external database.
2106
2107         * chartab.h (get_char_id_table): Use S-expression as key of
2108         external database.
2109
2110 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2111
2112         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2113         if an element is not loaded, load the corresponding attributes
2114         from an external database.
2115         (map_over_uint16_byte_table): Likewise.
2116         (map_over_byte_table): Likewise.
2117         (map_char_table): Modify for `map_over_uint8_byte_table',
2118         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2119         element is not loaded, load the corresponding attributes from an
2120         external database.
2121         (Fput_char_attribute): Change initial values to Qunloaded.
2122
2123         * chartab.h (get_char_id_table): If a character attribute is not
2124         loaded and the attribute value is not found in an external
2125         database, store Qunbound as the attribute value.
2126
2127 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2128
2129         * chartab.c (BT_UINT8_unloaded): New macro.
2130         (UINT8_VALUE_P): Accept Qunloaded.
2131         (UINT8_ENCODE): Likewise.
2132         (UINT8_DECODE): Likewise.
2133         (BT_UINT16_unloaded): New macro.
2134         (UINT16_VALUE_P): Accept Qunloaded.
2135         (UINT16_ENCODE): Likewise.
2136         (UINT16_DECODE): Likewise.
2137         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2138         BT_UINT16_unloaded.
2139         (mark_char_table): Mark `ct->name' in UTF-2000.
2140         (char_table_description): Add `name' in UTF-2000.
2141         (Fmake_char_table): Initialize `ct->name'.
2142         (Fcopy_char_table): Copy `ct->name'.
2143         (Fput_char_attribute): Store value into an external database if
2144         HAVE_DATABASE is defined.
2145
2146         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2147         UTF-2000.
2148         (CHAR_TABLE_NAME): New macro in UTF-2000.
2149         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2150         (get_char_id_table): Try to read an external database if Qunloaded
2151         is stored in a table.
2152
2153         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2154         Qunloaded.
2155
2156 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2157
2158         * database.h: Add EXFUN definitions for Fopen_database,
2159         Fput_database, Fget_database and Fclose_database.
2160
2161         * data.c (Qunloaded): New variable in UTF-2000.
2162
2163         * lisp.h (Qunloaded): New variable in UTF-2000.
2164
2165 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2166
2167         * mule-charset.c (put_char_ccs_code_point): Modify for
2168         `decoding_table_remove_char' and `decoding_table_put_char'.
2169         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2170
2171         * char-ucs.h (decoding_table_remove_char): Change arguments to
2172         hide decoding_table vector.
2173         (decoding_table_put_char): Likewise.
2174
2175 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2176
2177         * mule-charset.c (decoding_table_remove_char): Moved to
2178         char-ucs.h.
2179         (decoding_table_put_char): Likewise.
2180
2181         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2182         from mule-charset.c].
2183         (decoding_table_remove_char): New inline function [moved from
2184         mule-charset.c].
2185         (decoding_table_put_char): Likewise.
2186
2187 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2188
2189         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2190         extension.
2191
2192 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2193
2194         * mule-charset.c (decode_builtin_char): Support mother charsets.
2195
2196 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2197
2198         * mule-charset.c (Q94x94x60): New variable.
2199         (charset_code_point): Support conversion `94x94x60'.
2200         (Fmake_charset): Likewise.
2201         (syms_of_mule_charset): Add new symbol `94x94x60'.
2202
2203         * char-ucs.h (CONVERSION_94x94x60): New macro.
2204
2205 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2206
2207         * mule-charset.c (charset_code_point): Unify code about
2208         `code-offset'.
2209
2210 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2211
2212         * mule-charset.c (charset_code_point): Merge code about builtin
2213         characters into code about mother charsets; don't use
2214         `range_charset_code_point'.
2215         (range_charset_code_point): Deleted.
2216
2217 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2218
2219         * mule-charset.c (Qcode_offset): New variable.
2220         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2221         `max-code'; accept new property `code-offset'.
2222         (syms_of_mule_charset): Add new symbol `code-offset'.
2223
2224 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2225
2226         * mule-charset.c (range_charset_code_point): Fixed.
2227
2228 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2229
2230         * mule-charset.c (decode_builtin_char): Change semantics of
2231         code-offset of coded-charset.
2232         (charset_code_point): Likewise.
2233         (range_charset_code_point): Likewise.
2234         (complex_vars_of_mule_charset): Modify for the change.
2235
2236 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2237
2238         * mule-charset.c (Fencode_char): Reverse arguments.
2239
2240         * mule-charset.c (charset_code_point): Fixed.
2241
2242 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2243
2244         * mule-charset.c (Vcharset_mojikyo): Deleted.
2245         (Vcharset_mojikyo_2022_1): Deleted.
2246         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2247         (Qmin_code): New variable in UTF-2000.
2248         (Qmax_code): Likewise.
2249         (Qmother): Likewise.
2250         (Qconversion): Likewise.
2251         (Q94x60): Likewise.
2252         (Qmojikyo): Deleted.
2253         (Qmojikyo_2022_1): Deleted.
2254         (Qmojikyo_pj_{1..22}): Deleted.
2255         (mark_charset): Mark `cs->mother'.
2256         (charset_description): Add description for `mother'.
2257         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2258         new arguments `mother' and `conversion'; use
2259         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2260         (charset_code_point): Moved from char-ucs.h; support `mother'
2261         charset feature.
2262         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2263         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2264         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2265         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2266         allow 2 as the value of `graphic' in UTF-2000; add new properties
2267         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2268         require `final' in UTF-2000; modify for `make_charset'.
2269         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2270         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2271         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2272         (Fencode_char): New function.
2273         (syms_of_mule_charset): Add new builtin function `encode-char' in
2274         UTF-2000; add new symbols `min-code', `max-code', `mother',
2275         `conversion' and `94x60'; delete symbols `mojikyo',
2276         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2277         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2278         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2279         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2280
2281         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2282         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2283
2284         * char-ucs.h (Vcharset_mojikyo): Deleted.
2285         (Vcharset_mojikyo_2022_1): Deleted.
2286         (LEADING_BYTE_MOJIKYO): Deleted.
2287         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2288         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2289         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2290         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2291         add new member `mother'; add new member `conversion'.
2292         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2293         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2294         (CHARSET_MOTHER): New macro.
2295         (CHARSET_CONVERSION): New macro.
2296         (CONVERSION_IDENTICAL): New macro.
2297         (CONVERSION_94x60): New macro.
2298         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2299         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2300         (XCHARSET_MOTHER): New macro.
2301         (XCHARSET_CONVERSION): New macro.
2302         (MIN_CHAR_MOJIKYO): Deleted.
2303         (MAX_CHAR_MOJIKYO): Deleted.
2304         (DECODE_MOJIKYO_2022): Deleted.
2305         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2306         (charset_code_point): Changed to non-inline function.
2307         (encode_char_1): Use `charset_code_point'.
2308         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2309
2310 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2311
2312         * lread.c (read_compiled_function): Fix prototype.
2313         (read_vector): Likewise.
2314
2315 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2316
2317         * lrecord.h (struct lrecord_header): Delete `older'.
2318         (set_lheader_implementation): Delete code for `older'.
2319         (set_lheader_older_implementation): Deleted.
2320         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2321         (OLDER_RECORD_P): Deleted.
2322         (OLDER_RECORD_HEADER_P): Deleted.
2323         (alloc_older_lcrecord): Deleted.
2324         (alloc_older_lcrecord_type): Deleted.
2325
2326         * alloc.c (all_older_lcrecords): Deleted.
2327         (alloc_older_lcrecord): Deleted.
2328         (disksave_object_finalization_1): Delete code for older objects.
2329         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2330         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2331
2332 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2333
2334         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2335         instead of `make_older_vector'.
2336         (put_char_ccs_code_point): Likewise.
2337         (mark_charset): Mark `cs->decoding_table'.
2338         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2339
2340         * lisp.h (make_older_vector): Deleted.
2341         (make_vector_newer): Deleted.
2342
2343         * config.h.in (HAVE_GGC): Deleted.
2344
2345         * alloc.c (make_older_vector): Deleted.
2346         (make_vector_newer_1): Deleted.
2347         (make_vector_newer): Deleted.
2348
2349 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2350
2351         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2352         (Qideograph_daikanwa_2): New variable.
2353         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2354         (complex_vars_of_mule_charset): Add new coded-charset
2355         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2356         `LEADING_BYTE_DAIKANWA'.
2357
2358         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2359         (LEADING_BYTE_DAIKANWA_1): New macro.
2360         (LEADING_BYTE_DAIKANWA_2): New macro.
2361         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2362
2363 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2364
2365         * mule-charset.c (complex_vars_of_mule_charset): Change
2366         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2367         the second revised version.
2368
2369 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2370
2371         * mule-charset.c (Vcharset_ucs_smp): New variable.
2372         (Vcharset_ucs_sip): New variable.
2373         (Qucs_smp): New variable.
2374         (Qucs_sip): New variable.
2375         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2376         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2377         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2378         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2379         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2380         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2381
2382         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2383         (LEADING_BYTE_UCS_SIP): New macro.
2384         (MIN_CHAR_SMP): New macro.
2385         (MAX_CHAR_SMP): New macro.
2386         (MIN_CHAR_SIP): New macro.
2387         (MAX_CHAR_SIP): New macro.
2388
2389 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2390
2391         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2392         utf-2000.
2393
2394 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2395
2396         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2397         value; don't store value into `encoding_table' of `Lisp_Charset'.
2398         (mark_charset): `encoding_table' was deleted.
2399         (charset_description): Likewise.
2400         (make_charset): Likewise.
2401         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2402         `put_char_ccs_code_point'.
2403
2404         * chartab.h (Fput_char_attribute): New EXFUN.
2405
2406         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2407         is unified with normal symbol space.
2408         (Fget_char_attribute): Likewise.
2409         (Fput_char_attribute): Likewise; behavior of
2410         `put_char_ccs_code_point' is changed.
2411
2412         * char-ucs.h: Include "elhash.h".
2413         (Vchar_attribute_hash_table): New external variable.
2414         (struct Lisp_Charset): Delete `encoding_table'.
2415         (CHARSET_ENCODING_TABLE): New implementation; refer
2416         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2417         `Lisp_Charset'.
2418
2419 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2420
2421         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2422         (cs) == 0.
2423
2424 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2425
2426         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2427         `chinese-big5'.
2428
2429 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2430
2431         * chartab.c (uint8_byte_table_description): New constant.
2432         (uint8-byte-table): Use `uint8_byte_table_description'.
2433         (uint16_byte_table_description): New constant.
2434         (uint16-byte-table): Use `uint16_byte_table_description'.
2435
2436 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2437
2438         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2439         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2440
2441 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2442
2443         * mule-charset.c (Vcharset_ucs_ks): New variable.
2444         (Qucs_ks): New variable.
2445         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2446         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2447
2448         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2449
2450 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2451
2452         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2453         (Fdecode_char): Likewise.
2454
2455         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2456         chartab.h.
2457         (Fdefine_char): Modify for Fdecode_char.
2458         (Ffind_char): Likewise.
2459
2460         * mule-charset.c (Fdecode_char): Add new optional argument
2461         `defined-only'.
2462         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2463
2464 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2465
2466         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2467         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2468         (allocate_coding_system): Initialize initial-charsets of
2469         CODESYS_BIG5 in XEmacs UTF-2000.
2470         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2471         CODESYS_BIG5 in XEmacs UTF-2000.
2472         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2473         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2474
2475         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2476         variables.
2477         (Qideograph_hanziku_{1 .. 12}): Likewise.
2478         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2479         .. 12}'.
2480         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2481         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2482         `ideograph-hanziku-{1 .. 12}'.
2483
2484         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2485         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2486         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2487         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2488         (DECODE_DEFINED_CHAR): New inline function.
2489         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2490
2491 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2492
2493         * mule-charset.c (Vcharset_china3_jef): Renamed from
2494         `Vcharset_japanese_jef_china3'.
2495         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2496         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2497         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2498         (syms_of_mule_charset): Rename `china3-jef' from
2499         `japanese-jef-china3'.
2500         (complex_vars_of_mule_charset): Likewise; rename
2501         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2502
2503         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2504         `LEADING_BYTE_JEF_CHINA3'.
2505         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2506         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2507
2508 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2509
2510         * mule-charset.c (encode_builtin_char_1): Comment out special code
2511         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2512
2513         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2514         (MAX_CHAR_MOJIKYO_0): Comment out.
2515         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2516         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2517         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2518         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2519
2520 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2521
2522         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2523         (Qideograph_cbeta): New variable.
2524         (encode_builtin_char_1): Comment out special code for
2525         coded-charset `mojikyo' and `japanese-jef-china3'.
2526         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2527         (complex_vars_of_mule_charset): Add new coded-charset
2528         `ideograph-cbeta'.
2529
2530         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2531         (MIN_CHAR_CBETA): New macro.
2532         (MAX_CHAR_CBETA): New macro.
2533
2534 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2535
2536         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2537         (LEADING_BYTE_JEF_CHINA3): New macro.
2538         (MIN_CHAR_JEF_CHINA3): New macro.
2539         (MAX_CHAR_JEF_CHINA3): Likewise.
2540         (DECODE_CHAR): Fixed.
2541
2542 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2543
2544         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2545         (Qjapanese_jef_china3): New variable.
2546         (encode_builtin_char_1): Support `japanese-jef-china3'.
2547         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2548         (complex_vars_of_mule_charset): Add new coded-charset
2549         `japanese-jef-china3'.
2550
2551 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2552
2553         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2554         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2555         94^4, 96^3, 96^4, 128^n and 256^n set.
2556         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2557         (map_char_table): Likewise.
2558
2559 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2560
2561         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2562         UTF-2000.
2563
2564 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2565
2566         * chartab.h (get_char_id_table): New inline function.
2567
2568         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2569         function.
2570
2571 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2572
2573         * chartab.h (decode_char_table_range): New prototype in XEmacs
2574         UTF-2000.
2575         (put_char_id_table): New inline function in XEmacs UTF-2000.
2576
2577         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2578         function.
2579         (decode_char_table_range): Delete static declaration in XEmacs
2580         UTF-2000.
2581
2582 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2583
2584         * chartab.c (put_char_id_table): Use `put_char_table'.
2585
2586 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2587
2588         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2589         (map_over_uint16_byte_table): Likewise.
2590         (map_over_byte_table): Likewise.
2591         (map_char_table): Modify for `map_over_uint8_byte_table',
2592         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2593         UTF-2000.
2594
2595 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2596
2597         * chartab.c (struct map_char_table_for_charset_arg): New
2598         structure.
2599         (map_char_table_for_charset_fun): New function.
2600         (map_char_table): Use `map_char_table' for encoding_table of
2601         `range->charset'.
2602
2603 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2604
2605         * chartab.c (map_char_table): Check a character is found in
2606         range->charset instead of non default value is defined in
2607         char-table when range is CHARTAB_RANGE_ROW.
2608
2609 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2610
2611         * chartab.c (map_char_id_table): Deleted.
2612         (Fmap_char_attribute): Use `map_char_table' instead of
2613         `map_char_id_table'.
2614
2615 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2616
2617         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2618         UTF-2000.
2619         (update_syntax_table): Deleted in XEmacs UTF-2000.
2620
2621         * syntax.c (find_defun_start): Use `syntax_table' instead of
2622         `mirror_syntax_table' in XEmacs UTF-2000.
2623         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2624         UTF-2000.
2625         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2626         XEmacs UTF-2000.
2627         (Fmatching_paren): Likewise.
2628         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2629         in XEmacs UTF-2000.
2630         (find_start_of_comment): Likewise.
2631         (find_end_of_comment): Likewise.
2632         (Fforward_comment): Likewise.
2633         (scan_lists): Likewise.
2634         (char_quoted): Likewise.
2635         (Fbackward_prefix_chars): Likewise.
2636         (scan_sexps_forward): Likewise.
2637         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2638         (update_syntax_table): Likewise.
2639
2640         * search.c (skip_chars): Use `syntax_table' instead of
2641         `mirror_syntax_table' in XEmacs UTF-2000.
2642         (wordify): Likewise.
2643         (Freplace_match): Likewise.
2644
2645         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2646         `mirror_syntax_table' in XEmacs UTF-2000.
2647         (WORDCHAR_P_UNSAFE): Likewise.
2648         (re_match_2_internal): Likewise.
2649
2650         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2651         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2652
2653         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2654         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2655
2656         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2657         XEmacs UTF-2000.
2658
2659         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2660         UTF-2000.
2661         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2662         (char_table_description): Delete `mirror_table' in XEmacs
2663         UTF-2000.
2664         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2665         UTF-2000.
2666         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2667         (Fcopy_char_table): Likewise.
2668         (put_char_table): Don't call `update_syntax_table' in XEmacs
2669         UTF-2000.
2670
2671         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2672         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2673         (casify_region_internal): Likewise.
2674
2675         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2676
2677         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2678         `mirror_syntax_table' in XEmacs UTF-2000.
2679
2680         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2681         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2682         (Fexpand_abbrev): Likewise.
2683
2684 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2685
2686         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2687
2688 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2689
2690         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2691         (map_over_uint16_byte_table): Likewise.
2692         (map_over_byte_table): Likewise.
2693         (get_char_id_table): Refer `cit->default_value'.
2694         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2695         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2696         of character-id ranges.
2697         (mark_char_table): Mark `ct->default_value'.
2698         (char_table_description): Add `default_value'.
2699         (fill_char_table): Use `default_value'.
2700         (decode_char_table_range): Decode `nil' as
2701         `CHARTAB_RANGE_DEFAULT'.
2702         (get_char_id_table): Refer `cit->default_value'.
2703         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2704         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2705         temporary hack; check value of char-table is bound or not.
2706         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2707
2708         * chartab.h (struct Lisp_Char_Table): Add new member
2709         `default_value' in XEmacs UTF-2000.
2710         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2711         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2712         UTF-2000.
2713
2714 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2715
2716         * chartab.h (Lisp_Char_ID_Table): Deleted.
2717
2718         * chartab.c (char_table_description): Fix typo.
2719         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2720         `Lisp_Char_ID_Table'.
2721
2722 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2723
2724         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2725         `CHAR_ID_TABLE_P'.
2726
2727         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2728         `CHAR_ID_TABLE_P'.
2729
2730         * chartab.h (XCHAR_ID_TABLE): Deleted.
2731         (XSETCHAR_ID_TABLE): Deleted.
2732         (CHAR_ID_TABLE_P): Deleted.
2733
2734         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2735         `CHAR_ID_TABLE_P'.
2736         (Fget_composite_char): Likewise.
2737         (put_char_table): Likewise.
2738         (add_char_attribute_alist_mapper): Fixed.
2739         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2740         `CHAR_ID_TABLE_P'.
2741         (Fget_char_attribute): Likewise.
2742         (Fget_char_attribute): Likewise.
2743         (Fmap_char_attribute): Likewise.
2744
2745         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2746         `CHAR_ID_TABLE_P'.
2747         (encode_char_1): Likewise.
2748
2749 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2750
2751         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2752         `XCHAR_ID_TABLE'.
2753
2754         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2755         instead of `XCHAR_ID_TABLE'.
2756         (remove_char_ccs): Likewise.
2757
2758         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2759         `XCHAR_ID_TABLE'.
2760         (Fget_composite_char): Likewise.
2761         (Fchar_variants): Likewise.
2762         (put_char_table): Likewise.
2763         (add_char_attribute_alist_mapper): Likewise.
2764         (Fchar_attribute_alist): Likewise.
2765         (Fget_char_attribute): Likewise.
2766         (Fput_char_attribute): Likewise.
2767         (Fmap_char_attribute): Likewise.
2768         (Fmap_char_attribute): Likewise.
2769
2770         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2771         `XCHAR_ID_TABLE'.
2772         (encode_char_1): Likewise.
2773
2774 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2775
2776         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2777         `Lisp_Char_ID_Table'.
2778         (mark_char_id_table): Deleted.
2779         (print_char_id_table): Likewise.
2780         (char_id_table_equal): Likewise.
2781         (char_id_table_hash): Likewise.
2782         (char_id_table_description): Likewise.
2783         (char_id_table): Likewise.
2784         (make_char_id_table): Use `Fmake_char_table' and
2785         `fill_char_table'.
2786         (get_char_id_table): Use `Lisp_Char_Table' instead of
2787         `Lisp_Char_ID_Table'.
2788         (put_char_id_table): Likewise.
2789         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2790         `XCHAR_ID_TABLE'.
2791         (Fremove_char_attribute): Likewise.
2792         (syms_of_chartab): Don't define type `char-id-table'.
2793
2794         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2795         (char_id_table): Likewise.
2796         (GC_CHAR_ID_TABLE_P): Likewise.
2797         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2798         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2799         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2800         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2801         (get_char_id_table): Use `Lisp_Char_Table' instead of
2802         `Lisp_Char_ID_Table'.
2803         (put_char_id_table_0): Likewise.
2804         (put_char_id_table): Likewise.
2805
2806 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2807
2808         * chartab.h: Lisp_Byte_Table related codes are moved from
2809         chartab.h.
2810
2811         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2812
2813 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2814
2815         * chartab.h: Don't include "chartab.h".
2816         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2817         (Lisp_Char_ID_Table): Likewise.
2818         (char_id_table): Likewise.
2819         (XCHAR_ID_TABLE): Likewise.
2820         (XSETCHAR_ID_TABLE): Likewise.
2821         (CHAR_ID_TABLE_P): Likewise.
2822         (GC_CHAR_ID_TABLE_P): Likewise.
2823         (get_char_id_table): Likewise.
2824
2825         * char-ucs.h: Include "chartab.h".
2826         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2827         (Lisp_Char_ID_Table): Likewise.
2828         (char_id_table): Likewise.
2829         (XCHAR_ID_TABLE): Likewise.
2830         (XSETCHAR_ID_TABLE): Likewise.
2831         (CHAR_ID_TABLE_P): Likewise.
2832         (GC_CHAR_ID_TABLE_P): Likewise.
2833         (get_char_id_table): Likewise.
2834
2835 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2836
2837         * chartab.c (copy_uint8_byte_table): New function.
2838         (copy_uint16_byte_table): New function.
2839         (copy_byte_table): New function.
2840         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2841         characters to call.
2842         (map_over_uint16_byte_table): Likewise.
2843         (map_over_byte_table): Likewise.
2844         (get_byte_table): Move prototype to chartab.h.
2845         (put_byte_table): Likewise.
2846         (put_char_id_table_0): Moved to chartab.h.
2847         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2848         (char_table_entry_equal): Likewise.
2849         (char_table_entry_hash): Likewise.
2850         (char_table_entry_description): Likewise.
2851         (char_table_entry): Likewise.
2852         (make_char_table_entry): Likewise.
2853         (copy_char_table_entry): Likewise.
2854         (get_non_ascii_char_table_value): Likewise.
2855         (map_over_charset_ascii): Likewise.
2856         (map_over_charset_control_1): Likewise.
2857         (map_over_charset_row): Likewise.
2858         (map_over_other_charset): Likewise.
2859         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2860         (print_char_table): Likewise.
2861         (char_table_equal): Likewise.
2862         (char_table_hash): Likewise.
2863         (char_table_description): Likewise.
2864         (fill_char_table): Likewise.
2865         (Fcopy_char_table): Likewise.
2866         (get_char_table): Likewise.
2867         (Fget_range_char_table): Likewise.
2868         (put_char_table): Likewise.
2869         (map_char_table): Likewise.
2870         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2871         UTF-2000.
2872
2873 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2874
2875         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2876         `Vauto_fill_chars' in XEmacs UTF-2000.
2877
2878         * chartab.h (get_byte_table): New prototype [moved from
2879         chartab.c].
2880         (put_byte_table): Likewise [moved from chartab.c].
2881         (put_char_id_table_0): New inline function [moved from chartab.c].
2882         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2883         (Lisp_Char_Table_Entry): Likewise.
2884         (char_table_entry): Likewise.
2885         (XCHAR_TABLE_ENTRY): Likewise.
2886         (XSETCHAR_TABLE_ENTRY): Likewise.
2887         (CHAR_TABLE_ENTRYP): Likewise.
2888         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2889         (NUM_ASCII_CHARS): Likewise.
2890         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2891         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2892
2893 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2894
2895         * chartab.c (get_char_id_table): Change interface.
2896         (put_char_id_table_0): New function.
2897         (put_char_id_table): Change interface; new implementation.
2898         (Fget_composite_char): Modify for interface change of
2899         `get_char_id_table'.
2900         (Fchar_variants): Likewise.
2901         (add_char_attribute_alist_mapper): Likewise.
2902         (Fchar_attribute_alist): Likewise.
2903         (Fget_char_attribute): Likewise.
2904         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2905         as same as character as the first argument like `put-char-table';
2906         modify for interface change of `put_char_id_table'.
2907         (Fremove_char_attribute): Modify for interface change of
2908         `put_char_id_table'.
2909
2910 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2911
2912         * text-coding.c: Sync up with XEmacs 21.2.41.
2913         (COMPOSE_ADD_CHAR): Modify for interface change of
2914         `get_char_id_table'.
2915
2916         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2917         change of `put_char_id_table'.
2918         (remove_char_ccs): Likewise.
2919
2920         * chartab.h (put_char_id_table): Change interface.
2921
2922         * char-ucs.h (get_char_id_table): Change interface.
2923         (charset_code_point): Modify for interface change of
2924         `get_char_id_table'.
2925         (encode_char_1): Likewise.
2926
2927 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2928
2929         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2930         argument `ccs'.
2931         (map_over_uint16_byte_table): Likewise.
2932         (map_over_byte_table): Likewise.
2933         (map_char_id_table): Add new argument `range' like
2934         `map_char_table'.
2935         (Fmap_char_attribute): Add new argument `range' like
2936         `Fmap_char_table'.
2937
2938 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2939
2940         * chartab.c (map_over_uint8_byte_table): Change interface of
2941         mapping function to use struct chartab_range instead of Emchar.
2942         (map_over_uint16_byte_table): Likewise.
2943         (map_over_byte_table): Likewise.
2944         (map_char_id_table): Likewise.
2945         (struct slow_map_char_id_table_arg): Deleted.
2946         (slow_map_char_id_table_fun): Deleted.
2947         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2948         function `slow_map_char_table_fun' instead of struct
2949         `slow_map_char_id_table_arg' and function
2950         `slow_map_char_id_table_fun'.
2951
2952 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2953
2954         * mule-charset.c: Move char-it-table related codes to chartab.c.
2955         (Vutf_2000_version): Moved to chartab.c.
2956         (Fdefine_char): Likewise.
2957         (Ffind_char): Likewise.
2958         (syms_of_mule_charset): Move types `uint8-byte-table',
2959         `uint16-byte-table', `byte-table' and `char-id-table' to
2960         chartab.c; move functions `char_attribute_list,
2961         `find_char_attribute_table, `char_attribute_alist,
2962         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2963         `map_char_attribute, `define_char, `find_char, `char_variants and
2964         `get_composite_char to chartab.c; move symbols `=>ucs',
2965         `->decomposition', `compat', `isolated', `initial', `medial',
2966         `final', `vertical', `noBreak', `fraction', `super', `sub',
2967         `circle', `square', `wide', `narrow', `small' and `font' to
2968         chartab.c.
2969         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2970         setting codes for `Vcharacter_composition_table' and
2971         `Vcharacter_variant_table' to chartab.c.
2972         (complex_vars_of_mule_charset): Move setting code for
2973         `Vchar_attribute_hash_table' to chartab.c.
2974
2975         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2976         (make_char_id_table): New prototype.
2977         (put_char_id_table): Likewise.
2978         (Fget_char_attribute): Likewise.
2979
2980         * chartab.c: Move char-id-table related code from mule-charset.c.
2981         (Vutf_2000_version): Moved from mule-charset.c.
2982
2983         * char-ucs.h (Qucs): New external variable.
2984         (put_char_ccs_code_point): New prototype.
2985         (remove_char_ccs): Likewise.
2986
2987 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2988
2989         * mule-charset.c (Vcharset_ucs_jis): New variable.
2990         (Qucs_jis): Likewise.
2991         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2992         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2993
2994         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2995
2996 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2997
2998         * mule-charset.c (map_over_uint8_byte_table): New function.
2999         (map_over_uint16_byte_table): Likewise.
3000         (map_over_byte_table): Likewise.
3001         (map_char_id_table): Likewise.
3002         (slow_map_char_id_table_fun): Likewise.
3003         (Fmap_char_attribute): Likewise.
3004         (syms_of_mule_charset): Add new function `map-char-attribute'.
3005
3006 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3007
3008         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3009         (syms_of_mule_charset): Add new function `find-char'.
3010
3011 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3012
3013         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3014         XEmacs UTF-2000.
3015         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3016         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3017         XEmacs UTF-2000.
3018         (complex_vars_of_mule_charset): Add new coded-charset
3019         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3020         `ideograph-gt-pj-*'.
3021
3022         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3023
3024 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3025
3026         * mule-charset.c (encode_builtin_char_1): Purge codes about
3027         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3028         {MIN|MAX}_CHAR_HEBREW.
3029         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3030         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3031
3032         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3033         (MAX_CHAR_GREEK): Purged.
3034         (MIN_CHAR_CYRILLIC): Purged.
3035         (MAX_CHAR_CYRILLIC): Purged.
3036         (MIN_CHAR_HEBREW): Commented out.
3037         (MAX_CHAR_HEBREW): Likewise.
3038
3039 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3040
3041         * mule-charset.c (Qto_ucs): New variable.
3042         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3043         (Fdefine_char): Likewise.
3044         (syms_of_mule_charset): Add new symbol `=>ucs'.
3045
3046 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3047
3048         * mule-charset.c (Fdecode_char): Fixed.
3049
3050 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3051
3052         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3053         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3054         "tcvn5712-1".
3055
3056 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3057
3058         * mule-charset.c (Vcharset_ucs_big5): New variable.
3059         (Qucs_big5): Likewise.
3060         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3061         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3062
3063         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3064
3065 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3066
3067         * mule-charset.c (decode_builtin_char): Check Big5 code range
3068         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3069
3070 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3071
3072         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3073         (Qchinese_gb12345): Likewise.
3074         (Fdecode_builtin_char): Fixed.
3075         (syms_of_mule_charset): Add `chinese-gb12345'.
3076         (complex_vars_of_mule_charset): Add coded-charset
3077         `chinese-gb12345'.
3078
3079         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3080         (LEADING_BYTE_CHINESE_GB12345): New macro.
3081
3082 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3083
3084         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3085         and `latin-viscii-upper' for `latin-viscii'.
3086
3087 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3088
3089         * mule-charset.c (Fdecode_builtin_char): Comment out
3090         regularization code for ISO-IR GR representation.
3091
3092 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3093
3094         * mule-charset.c (decode_builtin_char): New function; renamed from
3095         `make_builtin_char'; return -1 instead of signal.
3096         (Fdecode_builtin_char): Use `decode_builtin_char'.
3097
3098         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3099         `make_builtin_char'.
3100         (DECODE_CHAR): Use `decode_builtin_char' instead of
3101         `make_builtin_char'; use mapping table of `chinese-big5' for
3102         `chinese-big5-{1,2}'.
3103
3104 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3105
3106         * text-coding.c (char_encode_big5): New function.
3107         (char_finish_big5): Likewise.
3108         (reset_encoding_stream): Use `char_encode_big5' and
3109         `char_finish_big5' for CODESYS_BIG5.
3110         (mule_encode): Don't use `encode_coding_big5'.
3111         (encode_coding_big5): Deleted.
3112
3113 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3114
3115         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3116         0x81- in XEmacs UTF-2000.
3117         (detect_coding_big5): Likewise.
3118
3119 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3120
3121         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3122         generate character-id if the CCS property does not have
3123         corresponding predefined character.
3124         (make_builtin_char): Return -1 if corresponding predefined
3125         character is not found.
3126         (Fdecode_char): Return nil if corresponding character is not
3127         found.
3128         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3129         don't map to builtin ucs space.
3130
3131 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3132
3133         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3134         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3135
3136 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3137
3138         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3139         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3140         (Qideograph_gt): Likewise.
3141         (Qideograph_gt_pj_{1..11}): Likewise.
3142         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3143         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3144         `ideograph-gt-pj-11'.
3145         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3146         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3147         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3148
3149         * char-ucs.h (LEADING_BYTE_GT): New macro.
3150         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3151         (MIN_CHAR_GT): Likewise.
3152         (MAX_CHAR_GT): Likewise.
3153
3154 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3155
3156         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3157         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3158
3159         * doprnt.c (unsigned_int_converters): Add `c'.
3160         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3161
3162         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3163         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3164         `MIN_CHAR_MOJIKYO'.
3165         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3166         (MAX_CHAR_MOJIKYO_0): New macro.
3167         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3168
3169 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3170
3171         * mule-charset.c (Fdefine_char): Delete cemented out code.
3172         (encode_builtin_char_1): Modify for new allocation of builtin
3173         Mojikyo characters.
3174
3175         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3176
3177 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3178
3179         * mule-charset.c (Vcharset_ucs_cns): New variable.
3180         (Qucs_cns): New variable.
3181         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3182         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3183
3184 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3185
3186         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3187
3188 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3189
3190         * search.c (search_buffer): Make `charset_base_code' as
3191         character-id >> 6 to eliminate the corresponding last byte in
3192         UTF-8 representation [I'm not sure it is right thing].
3193         (boyer_moore): Likewise.
3194
3195 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3196
3197         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3198         representation in MULE.
3199
3200 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3201
3202         * text-coding.c (Fmake_coding_system): Use
3203         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3204         `EXTERNAL_PROPERTY_LIST_LOOP'.
3205
3206 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3207
3208         * text-coding.c (decode_output_utf8_partial_char): New function.
3209         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3210
3211 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3212
3213         * text-coding.c (decode_coding_utf8): Output original byte
3214         sequence if it is broken; change order of conditions.
3215
3216         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3217         of conditions.
3218
3219         * mb-multibyte.h (BYTE_ASCII_P):
3220         Use bit ops for char-signedness safety.
3221         (BYTE_C0_P): Use bit ops for char-signedness safety.
3222         (BYTE_C1_P): Use bit ops for char-signedness safety.
3223
3224         * character.h: (XCHAR_OR_CHAR_INT):
3225         Always use inline function.
3226         Remove redundant type checking assert() - XINT will abort quite
3227         nicely.
3228
3229 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3230
3231         * text-coding.c: (Fencode_shift_jis_char):
3232         (Fencode_big5_char):
3233         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3234         Replace 0 with '\0' when working with bytes.
3235         Replace initial "(" with "\(" in docstrings.
3236
3237         (Fmake_coding_system):
3238         When type is ccl and value is vector, register it with a proper
3239         symbol.  And checks whether the given ccl program is valid.
3240         (mule_decode): When calling ccl_driver, if src indicates
3241         NULL pointer, set an empty string instead.
3242         (mule_encode): Likewise.
3243
3244         (detect_eol_type):
3245         (detect_coding_sjis):
3246         (decode_coding_sjis):
3247         (detect_coding_big5):
3248         (decode_coding_big5):
3249         (detect_coding_ucs4):
3250         (decode_coding_ucs4):
3251         (detect_coding_utf8):
3252         (decode_coding_utf8):
3253         (detect_coding_iso2022):
3254         (decode_coding_iso2022):
3255         (decode_coding_no_conversion):
3256         (mule_decode):
3257         Make all detecting and decoding functions take an Extbyte * arg.
3258         (text_encode_generic):
3259         (encode_coding_big5):
3260         (encode_coding_no_conversion):
3261         (mule_encode):
3262         Make all encoding functions take a Bufbyte * arg.
3263         Use size_t instead of unsigned int for memory sizes.
3264         Only cast to unsigned char whenever dereferencing Extbyte *.
3265
3266         (struct lrecord_description fcd_description_1): Use countof.
3267         (complex_vars_of_file_coding):
3268         Use countof instead of sizeof.
3269         Use CHECK_NATNUM instead of CHECK_INT.
3270
3271 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3272
3273         * mule-charset.c (Fget_char_attribute): Add new optional argument
3274         `default-value'.
3275         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3276         (remove_char_ccs): Likewise.
3277
3278 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3279
3280         * text-coding.c (char_encode_shift_jis): New implementation in
3281         UTF-2000.
3282         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3283         ...)'.
3284
3285         * mule-charset.c (Vcharset_chinese_big5): New variable in
3286         UTF-2000.
3287         (Qchinese_big5): New variable in UTF-2000.
3288         (BIG5_SAME_ROW): New macro in UTF-2000.
3289         (make_builtin_char): Use builtin characters of
3290         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3291         characters of `Vcharset_chinese_big5'.
3292         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3293         (complex_vars_of_mule_charset): Add new coded-charset
3294         `chinese-big5' in UTF-2000.
3295
3296         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3297         (Vcharset_chinese_big5): New external variable declaration.
3298         (Vcharset_japanese_jisx0208_1990): Likewise.
3299
3300 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3301
3302         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3303         function.
3304         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3305
3306 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3307
3308         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3309         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3310         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3311         `mojikyo-pj-*'.
3312
3313 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3314
3315         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3316
3317 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3318
3319         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3320         to 0.17.
3321
3322 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3323
3324         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3325         for `CHARSET_BY_ATTRIBUTES'.
3326         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3327         `CHARSET_BY_ATTRIBUTES'.
3328
3329         * text-coding.c (struct decoding_stream): Rename member `CH' to
3330         `CPOS'.
3331         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3332         (decode_coding_sjis): Likewise.
3333         (decode_coding_big5): Likewise.
3334         (decode_coding_ucs4): Likewise.
3335         (decode_coding_utf8): Likewise.
3336         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3337         `CHARSET_BY_ATTRIBUTES'.
3338         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3339         `str->counter'; decode 3, 4 bytes sets.
3340         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3341         sets.
3342         (decode_coding_no_conversion): Use `str->cpos' instead of
3343         `str->ch'.
3344
3345         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3346         (Qmojikyo_2022_1): New variable.
3347         (make_charset): Don't use `CHARSET_TYPE_*'.
3348         (range_charset_code_point): Support coded-charset
3349         `mojikyo-2022-1'.
3350         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3351         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3352         `CHARSET_BY_ATTRIBUTES'.
3353         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3354         `CHARSET_BY_ATTRIBUTES'.
3355         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3356         (complex_vars_of_mule_charset): Add new coded-charset
3357         `mojikyo-2022-1'.
3358
3359         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3360         interface; changed to inline function.
3361
3362         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3363         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3364         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3365         (CHARSET_TYPE_94): Deleted.
3366         (CHARSET_TYPE_94X94): Deleted.
3367         (CHARSET_TYPE_96): Deleted.
3368         (CHARSET_TYPE_96X96): Deleted.
3369         (CHARSET_TYPE_128): Deleted.
3370         (CHARSET_TYPE_128X128): Deleted.
3371         (CHARSET_TYPE_256): Deleted.
3372         (CHARSET_TYPE_256X256): Deleted.
3373         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3374         to inline function.
3375         (DECODE_MOJIKYO_2022): New inline function.
3376         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3377         `Vcharset_mojikyo_2022_1'.
3378
3379 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3380
3381         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3382         instead of `EQ'.
3383         (put_byte_table): Likewise.
3384         (char_id_table_equal): Use `get_byte_table' [new implementation].
3385
3386 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3387
3388         * mule-charset.c: Include <limits.h> in UTF-2000.
3389         (BT_UINT8_MIN): New macro in UTF-2000.
3390         (BT_UINT8_MAX): New macro in UTF-2000.
3391         (BT_UINT8_t): New macro in UTF-2000.
3392         (BT_UINT8_nil): New macro in UTF-2000.
3393         (BT_UINT8_unbound): New macro in UTF-2000.
3394         (INT_UINT8_P): New inline function in UTF-2000.
3395         (UINT8_VALUE_P): New inline function in UTF-2000.
3396         (UINT8_ENCODE): New inline function in UTF-2000.
3397         (UINT8_DECODE): New inline function in UTF-2000.
3398         (mark_uint8_byte_table): New function in UTF-2000.
3399         (print_uint8_byte_table): New function in UTF-2000.
3400         (uint8_byte_table_equal): New function in UTF-2000.
3401         (uint8_byte_table_hash): New function in UTF-2000.
3402         (make_uint8_byte_table): New function in UTF-2000.
3403         (uint8_byte_table_same_value_p): New function in UTF-2000.
3404         (BT_UINT16_MIN): New macro in UTF-2000.
3405         (BT_UINT16_MAX): New macro in UTF-2000.
3406         (BT_UINT16_t): New macro in UTF-2000.
3407         (BT_UINT16_nil): New macro in UTF-2000.
3408         (BT_UINT16_unbound): New macro in UTF-2000.
3409         (INT_UINT16_P): New inline function in UTF-2000.
3410         (UINT16_VALUE_P): New inline function in UTF-2000.
3411         (UINT16_ENCODE): New inline function in UTF-2000.
3412         (UINT16_DECODE): New inline function in UTF-2000.
3413         (UINT8_TO_UINT16): New inline function in UTF-2000.
3414         (mark_uint16_byte_table): New function in UTF-2000.
3415         (print_uint16_byte_table): New function in UTF-2000.
3416         (uint16_byte_table_equal): New function in UTF-2000.
3417         (uint16_byte_table_hash): New function in UTF-2000.
3418         (make_uint16_byte_table): New function in UTF-2000.
3419         (uint16_byte_table_same_value_p): New function in UTF-2000.
3420         (print_byte_table): New function in UTF-2000.
3421         (byte-table): Use `print_byte_table' as printer.
3422         (make_byte_table): Delete second argument `older'.
3423         (byte_table_same_value_p): New function in UTF-2000.
3424         (copy_byte_table): Deleted.
3425         (get_byte_table): New function in UTF-2000.
3426         (put_byte_table): New function in UTF-2000.
3427         (print_char_id_table): New function in UTF-2000.
3428         (char-id-table): Use `print_char_id_table' as printer.
3429         (make_char_id_table): Delete second argument `older'.
3430         (get_char_id_table): Use `get_byte_table [new implementation].
3431         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3432         implementation].
3433         (Ffind_char_attribute_table): New function in UTF-2000.
3434         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3435         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3436         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3437         (syms_of_mule_charset): Add new function
3438         `find-char-attribute-table' in UTF-2000.
3439
3440         * lrecord.h (enum lrecord_type): Add
3441         `lrecord_type_uint16_byte_table' and
3442         `lrecord_type_uint8_byte_table'.
3443
3444         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3445         (Lisp_Uint8_Byte_Table): New type.
3446         (XUINT8_BYTE_TABLE): New macro.
3447         (XSETUINT8_BYTE_TABLE): New macro.
3448         (UINT8_BYTE_TABLE_P): New macro.
3449         (GC_UINT8_BYTE_TABLE_P): New macro.
3450         (struct Lisp_Uint16_Byte_Table): New structure.
3451         (Lisp_Uint16_Byte_Table): New type.
3452         (XUINT16_BYTE_TABLE): New macro.
3453         (XSETUINT16_BYTE_TABLE): New macro.
3454         (UINT16_BYTE_TABLE_P): New macro.
3455         (GC_UINT16_BYTE_TABLE_P): New macro.
3456
3457 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3458
3459         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3460         (Vcharacter_ideographic_strokes_table): Deleted.
3461         (Vcharacter_total_strokes_table): Deleted.
3462         (Vcharacter_morohashi_daikanwa_table): Deleted.
3463         (Vcharacter_decomposition_table): Deleted.
3464         (Qname): Deleted because it is duplicated.
3465         (Qideographic_radical): Deleted.
3466         (Qideographic_strokes): Deleted.
3467         (Qtotal_strokes): Deleted.
3468         (Qmorohashi_daikanwa): Deleted.
3469         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3470         `ideographic-radical', `ideographic-strokes', `total-strokes',
3471         `morohashi-daikanwa' and `->decomposition'.
3472         (Fget_char_attribute): Likewise.
3473         (Fput_char_attribute): Likewise; use `make-vector' instead of
3474         `make_older_vector' for `->decomposition' value.
3475         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3476         `ideograph-daikanwa'.
3477         (syms_of_mule_charset): Delete builtin symbols `name',
3478         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3479         `morohashi-daikanwa'.
3480         (vars_of_mule_charset): Don't setup
3481         `Vcharacter_ideographic_radical_table',
3482         `Vcharacter_ideographic_strokes_table',
3483         `Vcharacter_total_strokes_table',
3484         `Vcharacter_morohashi_daikanwa_table' and
3485         `Vcharacter_decomposition_table'.
3486
3487 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3488
3489         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3490         `make_older_vector', `make_vector_newer_1' and
3491         `make_vector_newer'.
3492
3493         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3494         `make_older_vector' and `make_vector_newer'.
3495
3496         * config.h.in (HAVE_GGC): New macro.
3497
3498 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3499
3500         * mule-charset.c (struct char_attribute_list_closure): New
3501         structure in UTF-2000.
3502         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3503         (Fchar_attribute_list): Likewise.
3504         (Fset_charset_mapping_table): Use `make_vector_newer'.
3505         (Fdecode_builtin_char): New function in UTF-2000.
3506         (syms_of_mule_charset): Add new function `char-attribute-list' and
3507         `decode-builtin-char' in UTF-2000.
3508
3509         * lisp.h (make_vector_newer): New prototype.
3510
3511         * alloc.c (make_vector_newer_1): New function.
3512         (make_vector_newer): New function.
3513
3514 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3515
3516         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3517         50100)'.
3518
3519 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3520
3521         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3522         (Vcharacter_attribute_table): Deleted.
3523         (Vcharacter_name_table): Deleted.
3524         (put_char_attribute): Deleted.
3525         (remove_char_attribute): Deleted.
3526         (struct char_attribute_alist_closure): New structure.
3527         (add_char_attribute_alist_mapper): New function.
3528         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3529         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3530         (Fget_char_attribute): Likewise.
3531         (Fput_char_attribute): Likewise.
3532         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3533         of `remove_char_attribute'.
3534         (Fdefine_char): Return character.
3535         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3536         and `Vcharacter_name_table'.
3537         (complex_vars_of_mule_charset): Likewise
3538         `Vchar_attribute_hash_table'.
3539
3540 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3541
3542         * character.h (CHARC_CHARSET): New macro.
3543         (CHARC_CHARSET_ID): New macro.
3544         (CHARC_CODE_POINT): New macro.
3545         (CHARC_COLUMNS): New macro.
3546         (CHARC_TO_CHAR): New inline function.
3547         (CHARC_EQ): New inline function.
3548         (CHARC_ASCII_EQ): New inline function.
3549         (CHARC_IS_SPACE): New inline function.
3550         (ASCII_TO_CHARC): New inline function.
3551
3552         * char-ucs.h (encode_char_2): Deleted.
3553         (ENCODE_CHAR): Use `encode_char_1' again.
3554         (breakup_char_1): Likewise.
3555         (CHAR_TO_CHARC): New inline function.
3556
3557         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3558
3559 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3560
3561         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3562         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3563         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3564         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3565         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3566         `CHARC_IS_SPACE'.
3567         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3568
3569         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3570         `CHARC_CODE_POINT'.
3571         (x_output_display_block): Use `CHARC_CHARSET' and
3572         `CHARC_ASCII_EQ'.
3573
3574         * redisplay-tty.c (tty_output_display_block): Use
3575         `CHARC_ASCII_EQ'.
3576         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3577
3578         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3579
3580         * insdel.c (find_charsets_in_charc_string): Use
3581         `CHARC_CHARSET_ID'.
3582         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3583         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3584         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3585         (convert_charc_string_into_malloced_string): Likewise.
3586
3587 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3588
3589         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3590         instead of <Emchar_dynarr *> for buf; use
3591         `convert_bufbyte_string_into_charc_dynarr' instead of
3592         `convert_bufbyte_string_into_emchar_dynarr'; use
3593         `find_charsets_in_charc_string' instead of
3594         `find_charsets_in_emchar_string'.
3595
3596         * redisplay.h:
3597         - Include "character.h".
3598         (struct rune): New member `cglyph'; delete member `chr'.
3599
3600         * redisplay.c (redisplay_text_width_charc_string): New function;
3601         delete `redisplay_text_width_emchar_string'.
3602         (rtw_charc_dynarr): New variable; renamed from
3603         `rtw_emchar_dynarr'.
3604         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3605         `rtw_emchar_dynarr'; use
3606         `convert_bufbyte_string_into_charc_dynarr' instead of
3607         `convert_bufbyte_string_into_emchar_dynarr'; use
3608         `redisplay_text_width_charc_string' instead of
3609         `redisplay_text_width_emchar_string'.
3610         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3611         instead of `rtw_emchar_dynarr'; use
3612         `convert_bufbyte_string_into_charc_dynarr' instead of
3613         `convert_bufbyte_string_into_emchar_dynarr'.
3614         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3615         `redisplay_text_width_charc_string' instead of
3616         `redisplay_text_width_emchar_string'.
3617         (create_text_block): Modify for <struct rune> change.
3618         (generate_formatted_string_db): Likewise.
3619         (create_string_text_block): Likewise.
3620         (pixel_to_glyph_translation): Likewise.
3621
3622         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3623         instead of <const Emchar *>.
3624         (x_text_width): Likewise.
3625         (x_output_display_block): Use <Charc_dynarr *> instead
3626         <Emchar_dynarr *>; modify for <structure rune> change.
3627         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3628         *>.
3629
3630         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3631         <const Emchar *>; use `charc_string_displayed_columns' instead of
3632         `emchar_string_displayed_columns'.
3633         (tty_output_display_block): Use <Charc_dynarr *> instead of
3634         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3635         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3636         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3637         `tty_output_emchar_dynarr_dynarr'.
3638         (tty_output_charc_dynarr): New function; delete
3639         `tty_output_charc_dynarr'.
3640
3641         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3642         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3643         <Emchar_dynarr *> for buf; use
3644         `convert_bufbyte_string_into_charc_dynarr' instead of
3645         `convert_bufbyte_string_into_emchar_dynarr'.
3646
3647         * frame.c (title_string_charc_dynarr): New variable; renamed from
3648         `title_string_emchar_dynarr'.
3649         (generate_title_string): Use `title_string_charc_dynarr' instead
3650         of `title_string_emchar_dynarr'; use
3651         `convert_charc_string_into_malloced_string' instead of
3652         `convert_emchar_string_into_malloced_string'.
3653         (init_frame): Use `title_string_charc_dynarr' instead of
3654         `title_string_emchar_dynarr'.
3655
3656         * console.h:
3657         - Include "character.h".
3658         (struct console_methods): Use <const Charc *> instead of <const
3659         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3660         <Emchar_dynarr *> in output_string_method.
3661
3662         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3663         <Emchar_dynarr *>.
3664
3665         * console-stream.c (stream_text_width): Use <const Charc *>
3666         instead of <const Emchar *>.
3667
3668         * character.h (Charc_dynarr): New type.
3669
3670         * char-ucs.h (structure Charc): New structure; define new type
3671         `Charc'.
3672
3673         * char-lb.h (DECODE_CHAR): New inline function.
3674         (encode_char_1): New inline function.
3675         (ENCODE_CHAR): New macro.
3676         (structure Charc): New structure; define new type `Charc'.
3677
3678         * char-1byte.h (Vcharset_control_1): New macro.
3679         (Vcharset_latin_iso8859_1): New macro.
3680         (DECODE_CHAR): New inline function.
3681         (encode_char_1): New inline function.
3682         (ENCODE_CHAR): New macro.
3683         (structure Charc): New structure; define new type `Charc'.
3684
3685         * insdel.c (find_charsets_in_charc_string): New function; delete
3686         `find_charsets_in_emchar_string'.
3687         (charc_string_displayed_columns): New function; delete
3688         `emchar_string_displayed_columns'.
3689         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3690         `convert_bufbyte_string_into_emchar_dynarr'.
3691         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3692         `convert_charc_string_into_bufbyte_dynarr'.
3693         (convert_charc_string_into_malloced_string): New function; delete
3694         `convert_charc_string_into_malloced_string'.
3695
3696         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3697         `find_charsets_in_emchar_string'.
3698         (charc_string_displayed_columns): New prototype; delete
3699         `emchar_string_displayed_columns'.
3700         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3701         `convert_charc_string_into_bufbyte_dynarr'.
3702         (convert_charc_string_into_malloced_string): New prototype; delete
3703         `convert_charc_string_into_malloced_string'.
3704
3705 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3706
3707         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3708
3709 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3710
3711         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3712
3713         * char-ucs.h: Use <short> for <Charset_ID>.
3714
3715         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3716         <Charset_ID>.
3717
3718 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3719
3720         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3721         to 0.16.
3722
3723 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3724
3725         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3726         variable.
3727         (Qmorohashi_daikanwa): New variable.
3728         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3729         for `morohashi-daikanwa' attribute.
3730         (Fget_char_attribute): Likewise.
3731         (Fput_char_attribute): Likewise.
3732         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3733         has the same value of `ideograph-daikanwa'.
3734         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3735         (vars_of_mule_charset): Setup
3736         `Vcharacter_morohashi_daikanwa_table'.
3737
3738 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3739
3740         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3741         attributes.
3742         (add_charset_to_list_mapper): Add `key' instead of
3743         `XCHARSET_NAME (value)' to return aliases.
3744
3745 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3746
3747         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3748         variable.
3749         (Vcharacter_ideographic_strokes_table): New variable.
3750         (Qideographic_radical): New variable.
3751         (Qideographic_strokes): New variable.
3752         (Fchar_attribute_alist): Use
3753         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3754         attribute; use `Vcharacter_ideographic_strokes_table' for
3755         `ideographic-strokes' attribute.
3756         (Fget_char_attribute): Likewise.
3757         (Fput_char_attribute): Likewise.
3758         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3759         `ideographic-strokes'.
3760         (vars_of_mule_charset): Setup
3761         `Vcharacter_ideographic_radical_table' and
3762         `Vcharacter_ideographic_strokes_table'.
3763
3764 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3765
3766         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3767         (Qtotal_strokes): New variable.
3768         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3769         `total-strokes' attribute.
3770         (Fget_char_attribute): Likewise.
3771         (Fput_char_attribute): Likewise.
3772         (syms_of_mule_charset): Add new symbol `total-strokes'.
3773         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3774
3775 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3776
3777         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3778         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3779         are found.
3780         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3781         `->decomposition' attribute.
3782         (Fput_char_attribute): Likewise.
3783         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3784
3785 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3786
3787         * mule-charset.c (decoding_table_check_elements): New function.
3788         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3789
3790 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3791
3792         * mule-charset.c (Fset_charset_mapping_table): Use
3793         `put_char_ccs_code_point'.
3794
3795 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3796
3797         * mule-charset.c (decoding_table_put_char): New inline function.
3798         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3799
3800 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3801
3802         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3803         (XCHARSET_BYTE_SIZE): New macro.
3804         (decoding_table_remove_char): New inline function.
3805         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3806         `decoding_table_remove_char'.
3807         (remove_char_ccs): Use `decoding_table_remove_char'.
3808         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3809
3810 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3811
3812         * mule-charset.c (Vcharacter_name_table): New variable.
3813         (Qname): New variable.
3814         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3815         attribute.
3816         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3817         `Vcharacter_name_table' for `name' attribute.
3818         (Fremove_char_attribute): Use function `remove_char_ccs'.
3819         (put_char_ccs_code_point): New function.
3820         (remove_char_ccs): New function.
3821         (syms_of_mule_charset): Add new symbol `name'.
3822         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3823
3824 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3825
3826         * mule-charset.c (make_byte_table): Add new argument `older'.
3827         (make_char_id_table): Likewise.
3828         (copy_char_id_table): Comment out because it is not used.
3829         (put_char_id_table): Modify for `make_byte_table'.
3830         (Fput_char_attribute): Make encoding_table as older object;
3831         inherit older bit of `Vcharacter_composition_table'.
3832         (mark_charset): Don't mark `cs->encoding_table'.
3833         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3834         normal object; make `Vcharacter_composition_table' as an older
3835         object; delete staticpro for `Vcharacter_composition_table'; make
3836         `Vcharacter_variant_table' as a normal object.
3837
3838         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3839         (mark_object): Don't check older object in UTF-2000.
3840
3841         * lrecord.h (struct lrecord_header): Add new member `older' in
3842         UTF-2000.
3843         (set_lheader_implementation): Setup `SLI_header->older' in
3844         UTF-2000.
3845         (set_lheader_older_implementation): New macro in UTF-2000.
3846         (OLDER_RECORD_P): New macro in UTF-2000.
3847         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3848         (alloc_older_lcrecord): New prototype in UTF-2000.
3849         (alloc_older_lcrecord_type): New macro in UTF-2000.
3850
3851 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3852
3853         * mule-charset.c (byte_table_description): Use
3854         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3855         (char_id_table_description): Delete bogus `, 1'.
3856         (Fget_char_attribute): Refer encoding_table of each coded-charset
3857         to get value of coded-charset attribute of a character.
3858         (Fput_char_attribute): Use `make_older_vector' instead of
3859         `make_vector'; use encoding_table of each coded-charset to store
3860         value of coded-charset attribute of a character.
3861         (Fremove_char_attribute): Use encoding_table of each coded-charset
3862         to store value of coded-charset attribute of a character.
3863         (mark_charset): Mark `cs->encoding_table'; don't mark
3864         `cs->decoding_table'.
3865         (charset_description): Add description of new member
3866         `encoding_table'.
3867         (make_charset): Initialize `encoding_table'.
3868
3869         * char-ucs.h (struct Lisp_Charset): Add new member
3870         `encoding_table'.
3871         (CHARSET_ENCODING_TABLE): New macro.
3872         (XCHARSET_ENCODING_TABLE): New macro.
3873         (charset_code_point): New implementation.
3874         (encode_char_1): Likewise.
3875
3876         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3877         (disksave_object_finalization_1): Call finalizers of
3878         `all_older_lcrecords' in UTF-2000.
3879         (make_older_vector): New function in UTF-2000.
3880         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3881         UTF-2000.
3882
3883         * lisp.h (make_older_vector): New prototype in UTF-2000.
3884
3885 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3886
3887         * lrecord.h (enum lrecord_type): Rename
3888         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3889
3890         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3891         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3892         `get_char_code_table'.
3893
3894         * mule-charset.c (mark_char_id_table): Renamed from
3895         `mark_char_code_table'.
3896         (char_id_table_equal): Renamed from `char_code_table_equal'.
3897         (char_id_table_hash): Renamed from `char_code_table_hash'.
3898         (make_char_id_table): Renamed from `make_char_code_table'.
3899         (copy_char_id_table): Renamed from `copy_char_code_table'.
3900         (get_char_id_table): Renamed from `get_char_code_table'.
3901         (put_char_id_table): Renamed from `put_char_code_table'.
3902         (to_char_id): Renamed from `to_char_code'.
3903
3904         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3905         `Lisp_Char_Code_Table'.
3906         (char_id_table): Renamed from `char_code_table'.
3907         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3908         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3909         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3910         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3911         (get_char_id_table): Renamed from `get_char_code_table'.
3912
3913 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3914
3915         * lrecord.h (enum lrecord_type): Rename
3916         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3917
3918         * mule-charset.c (mark_byte_table): Renamed from
3919         `mark_char_byte_table'.
3920         (byte_table_equal): Renamed from `char_byte_table_equal'.
3921         (byte_table_hash): Renamed from `byte_table_hash'.
3922         (make_byte_table): Renamed from `make_byte_table'.
3923         (copy_byte_table): Renamed from `copy_char_byte_table'.
3924
3925         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3926         `Lisp_Char_Byte_Table'.
3927         (byte_table): Renamed from `char_byte_table'.
3928         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3929         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3930         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3931         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3932
3933 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3934
3935         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3936         (dfc_convert_to_internal_format): Likewise.
3937         
3938         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3939         * text-coding.c (Fcoding_system_alias_p): New function.
3940         * text-coding.c (Fcoding_system_aliasee): New function.
3941         * text-coding.c (append_suffix_to_symbol): New function.
3942         * text-coding.c (dangling_coding_system_alias_p): New function.
3943         * text-coding.c (Ffind_coding_system):
3944         * text-coding.c (Fcopy_coding_system):
3945         * text-coding.c (encode_coding_no_conversion):
3946         * text-coding.c (syms_of_file_coding):
3947         * text-coding.c (vars_of_file_coding):
3948         Rewrite coding system alias code.
3949         Allow nested aliases, like symbolic links.
3950         Allow redefinition of coding system aliases.
3951         Prevent existence of dangling coding system aliases.
3952         Eliminate convert_to_external_format.
3953         Eliminate convert_to_internal_format.
3954         
3955         * text-coding.c: Change enum eol_type to eol_type_t.
3956
3957 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3958
3959         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3960         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3961
3962         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3963         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3964
3965 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3966
3967         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3968         `ideograph-daikanwa'.
3969
3970         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3971         (Vcharset_ucs_bmp): Likewise.
3972         (Vcharset_mojikyo): Add new extern variable definition.
3973         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3974         (Vcharset_latin_iso8859_3): Likewise.
3975         (Vcharset_latin_iso8859_4): Likewise.
3976         (Vcharset_latin_iso8859_9): Likewise.
3977         (Vcharset_latin_viscii_lower): Likewise.
3978         (Vcharset_latin_viscii_upper): Likewise.
3979         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3980         `mojikyo' code-point is used to decode.
3981         (encode_char_2): New function [to convert `mojikyo' code-point to
3982         Mojikyo font encoding].
3983         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3984         (breakup_char_1): Likewise.
3985         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3986
3987 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3988
3989         * text-coding.c (Fmake_coding_system): Add document about
3990         `disable-composition' property.
3991
3992 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3993
3994         * text-coding.c (Qdisable_composition): New variable; delete
3995         `Qcomposite'.
3996         (Fmake_coding_system): Add new property `disable-composite';
3997         delete property `composite'.
3998         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3999         instead of `!CODING_SYSTEM_COMPOSITE'.
4000         (syms_of_file_coding): Add new symbol `disable-composition';
4001         delete symbol `composite'.
4002
4003         * file-coding.h (struct Lisp_Coding_System): Add
4004         `disable_composition'; delete `enable_composition'.
4005         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4006         `CODING_SYSTEM_COMPOSITE'.
4007         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4008         `XCODING_SYSTEM_COMPOSITE'.
4009
4010 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4011
4012         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4013         to 0.15.
4014
4015 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4016
4017         * text-coding.c (Qcomposite): New variable.
4018         (Fmake_coding_system): Add new property `composite'.
4019         (struct decoding_stream): Add `combined_char_count',
4020         `combined_chars' and `combining_table' in UTF-2000.
4021         (COMPOSE_FLUSH_CHARS): New macro.
4022         (COMPOSE_ADD_CHAR): New macro.
4023         (reset_decoding_stream): Reset `str->combined_char_count' and
4024         `str->combining_table' in UTF-2000.
4025         (decode_coding_iso2022): Modify for character-decomposition.
4026         (syms_of_file_coding): Add new symbol `composite'.
4027
4028 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4029
4030         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4031         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4032         of `Vcharacter_composition_table' if `->decomposition' property
4033         has only 1 element.
4034         (Qlatin_tcvn5712): New variable.
4035         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4036         (complex_vars_of_mule_charset): Add new coded-charset
4037         `latin-tcvn5712'.
4038
4039         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4040
4041 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4042
4043         * file-coding.h (struct Lisp_Coding_System): Add
4044         `enable_composition'.
4045         (CODING_SYSTEM_COMPOSITE): New macro.
4046         (XCODING_SYSTEM_COMPOSITE): New macro.
4047
4048 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4049
4050         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4051
4052 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4053
4054         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4055         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4056
4057 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4058
4059         * mule-charset.c (Vcharset_mojikyo): New variable.
4060         (Fdefine_char): Don't use coded-charset which does not have
4061         non-builtin character range to allocate character-id.
4062         (Qmojikyo): New variable.
4063         (syms_of_mule_charset): Add new symbol `mojikyo'.
4064         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4065
4066         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4067         (LEADING_BYTE_MOJIKYO): New macro.
4068         (MIN_CHAR_MOJIKYO): New macro.
4069         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4070         (MAX_CHAR_MOJIKYO): New macro.
4071
4072 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4073
4074         * mule-charset.c (remove_char_attribute): Fixed.
4075
4076 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4077
4078         * mule-charset.c (remove_char_attribute): New function.
4079         (Fremove_char_attribute): New function.
4080         (encode_builtin_char_1): Comment out builtin-support for
4081         greek-iso8859-7 and cyrillic-iso8859-5.
4082         (Fdecode_char): Check `code' is an integer.
4083         (syms_of_mule_charset): Add `remove-char-attribute'.
4084         (MIN_CHAR_GREEK): Deleted.
4085         (MAX_CHAR_GREEK): Likewise.
4086         (MIN_CHAR_CYRILLIC): Likewise.
4087         (MAX_CHAR_CYRILLIC): Likewise.
4088         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4089         MAX_CHAR_GREEK for `greek-iso8859-7'.
4090
4091         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4092         (MAX_CHAR_GREEK): Likewise.
4093         (MIN_CHAR_CYRILLIC): Likewise.
4094         (MAX_CHAR_CYRILLIC): Likewise.
4095
4096 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4097
4098         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4099         format is used without `ucs' property.
4100         (Fdecode_char): Fix problem with GR representation.
4101         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4102         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4103
4104 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4105
4106         * mule-charset.c (make_builtin_char): New function.
4107         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4108         (Fset_charset_mapping_table): Modify for new representation of
4109         code-point.
4110         (Fdecode_char): New function.
4111         (syms_of_mule_charset): Add new builtin function `decode-char' in
4112         UTF-2000.
4113
4114         * char-ucs.h (make_builtin_char): New prototype.
4115         (DECODE_CHAR): New inline function.
4116         (MAKE_CHAR): Use `DECODE_CHAR'.
4117
4118 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4119
4120         * text-coding.c (parse_charset_conversion_specs): Use
4121         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4122         `XCHARSET_TYPE'.
4123         (iso2022_designate): Likewise.
4124
4125         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4126         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4127
4128         * mule-charset.c (Vcharset_ucs): New variable.
4129         (print_charset): Change design; use `CHARSET_CHARS' and
4130         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4131         (make_charset): Change signature to specify `chars' and
4132         `dimension' instead of `type'.
4133         (range_charset_code_point): Modify for 256^n-set.
4134         (encode_builtin_char_1): Encode as `ucs' in default.
4135         (Fmake_charset): Modify for `make_charset'.
4136         (Fmake_reverse_direction_charset): Likewise.
4137         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4138         UTF-2000.
4139         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4140         for `make_charset'.
4141
4142         * char-ucs.h (Vcharset_ucs): New variable.
4143         (LEADING_BYTE_UCS): New macro.
4144         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4145         and `chars' to `unsigned short' from `unsigned int'.
4146         (CHARSET_TYPE): Deleted.
4147         (XCHARSET_TYPE): Deleted.
4148
4149 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4150
4151         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4152
4153         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4154         (ENCODE_CHAR): New macro.
4155
4156 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4157
4158         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4159         to 0.14 (Kawachi-Katakami).
4160
4161 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4162
4163         * text-coding.c (char_encode_shift_jis): Modify for
4164         `charset_code_point'.
4165         (char_encode_iso2022): Likewise.
4166
4167         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4168         (integer) instead of list of <Lisp_Object>s (integers) as the
4169         format of code-point of a coded-charset.
4170         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4171         (encode_builtin_char_1): New function; delete
4172         `split_builtin_char'.
4173         (charset_code_point): Return <int> instead of <Lisp_Object>.
4174         (Fsplit_char): Don't use `SPLIT_CHAR'.
4175
4176         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4177         prototype for `split_builtin_char'.
4178         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4179         (charset_code_point): Likewise.
4180         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4181         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4182
4183 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4184
4185         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4186         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4187
4188 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4189
4190         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4191
4192         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4193         (MAX_CHAR_OBS_94x94): Deleted.
4194
4195 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4196
4197         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4198
4199         * char-ucs.h (MAX_CHAR_BMP): New macro.
4200
4201 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4202
4203         * text-coding.c: Sync with r21-2-24.
4204
4205 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4206
4207         * file-coding.c: Modify for UTF-2000.
4208
4209 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4210
4211         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4212         to 0.13 (Takaida).
4213
4214 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4215
4216         * mule-charset.c (split_builtin_char): Delete builtin support for
4217         `katakana-jisx0201'.
4218         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4219         BMP area in builtin representation.
4220
4221         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4222         `Vcharset_katakana_jisx0201'.
4223
4224 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4225
4226         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4227         (Qisolated): New variable.
4228         (Qinitial): New variable.
4229         (Qmedial): New variable.
4230         (Qfinal): New variable.
4231         (Qvertical): New variable.
4232         (Qsmall): New variable.
4233         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4234         `Qvertical' and `Qsmall'.
4235         (Qmojikyo_pj_[1 .. 21]): New variable.
4236         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4237         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4238         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4239         .. 21]'.
4240
4241 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4242
4243         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4244         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4245         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4246
4247 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4248
4249         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4250         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4251         BMP.
4252         (Qjapanese_jisx0208_1990): New variable.
4253         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4254         (complex_vars_of_mule_charset): Add new coded-charset
4255         `japanese-jisx0208-1990'.
4256
4257         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4258         (MIN_CHAR_JIS_X0208_1990): New macro.
4259         (MAX_CHAR_JIS_X0208_1990): New macro.
4260
4261 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4262
4263         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4264         coded-charset is not found.
4265
4266 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4267
4268         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4269         (Fdefine_char): Use `Fmake_char'.
4270
4271 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4272
4273         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4274         (Vcharset_hiragana_jisx0208): Deleted.
4275         (Vcharset_katakana_jisx0208): Deleted.
4276         (Qideograph_daikanwa): New variable.
4277         (Qhiragana_jisx0208): Deleted.
4278         (Qkatakana_jisx0208): Deleted.
4279         (split_builtin_char): Split `ideograph-daikanwa'.
4280         (Fsplit_char): New implementation for UTF-2000.
4281         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4282         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4283         (complex_vars_of_mule_charset): Add new coded-charset
4284         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4285         `katakana-jisx0208'.
4286
4287         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4288         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4289         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4290         (MIN_CHAR_DAIKANWA): New macro.
4291         (MAX_CHAR_DAIKANWA): New macro.
4292
4293 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4294
4295         * data.c (Fstring_to_number): Don't recognize floating point if
4296         base is not 10.
4297
4298 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4299
4300         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4301
4302 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4303
4304         * mule-charset.c (Qsquare): New variable.
4305         (to_char_code): Add `Qsquare'.
4306         (syms_of_mule_charset): Add new symbol `square'.
4307
4308 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4309
4310         * mule-charset.c (Qcircle): New variable.
4311         (to_char_code): Add `Qcircle'.
4312         (syms_of_mule_charset): Add new symbol `circle'.
4313
4314 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4315
4316         * mule-charset.c (Qfont): New variable.
4317         (to_char_code): Add `Qfont'.
4318         (syms_of_mule_charset): Add new symbol `font'.
4319
4320 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4321
4322         * mule-charset.c (Qsub): New variable.
4323         (to_char_code): Add `Qsub'.
4324         (syms_of_mule_charset): Add new symbol `sub'.
4325
4326 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4327
4328         * mule-charset.c (Fput_char_attribute): Convert each element of
4329         VALUE to GL position if ATTRIBUTE is a GR-set,
4330
4331 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4332
4333         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4334         coded-charset is a GR-set.
4335
4336 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4337
4338         * mule-charset.c (Fput_char_attribute): Check each element of
4339         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4340
4341 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4342
4343         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4344         UTF-2000.
4345         (Qethiopic_ucs): New variable in UTF-2000.
4346         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4347         (complex_vars_of_mule_charset): Add new coded-charset
4348         `ethiopic-ucs' in UTF-2000.
4349
4350         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4351         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4352         9)'.
4353         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4354         10)'.
4355         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4356
4357 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4358
4359         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4360         `ascii'.
4361
4362 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4363
4364         * mule-charset.c (Vcharacter_variant_table): New variable.
4365         (Q_ucs): New variable.
4366         (Fchar_variants): New function.
4367         (Fput_char_attribute): Register `->ucs' value to
4368         `Vcharacter_variant_table'.
4369         (syms_of_mule_charset): Add new function `char-variants' and new
4370         symbol `->ucs'.
4371         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4372
4373 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4374
4375         * mule-charset.c (get_char_code_table): Allow negative character
4376         code.
4377         (put_char_code_table): Likewise.
4378         (Vcharacter_composition_table): New variable.
4379         (Q_decomposition): New variable.
4380         (Qwide): New variable.
4381         (Qnarrow): New variable.
4382         (Qcompat): New variable.
4383         (QnoBreak): New variable.
4384         (Qsuper): New variable.
4385         (Qfraction): New variable.
4386         (to_char_code): New function.
4387         (Fget_composite_char): New function.
4388         (Fput_char_attribute): Register `->decomposition' value to
4389         `Vcharacter_composition_table'.
4390         (syms_of_mule_charset): Add new function `get-composite-char', new
4391         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4392         `super' and `fraction'.
4393         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4394
4395 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4396
4397         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4398         character; copy the return value.
4399
4400 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4401
4402         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4403
4404         * mule-charset.c (range_charset_code_point): Must use make_int.
4405         (split_builtin_char): New function.
4406
4407 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4408
4409         * mule-charset.c (char_byte_table): Change name from
4410         "char-code-table" to "char-byte-table".
4411         (mark_char_code_table): New function.
4412         (char_code_table_equal): New function.
4413         (char_code_table_hash): New function.
4414         (char_code_table_description): New constant.
4415         (char_code_table): New type.
4416         (make_char_code_table): New function.
4417         (copy_char_code_table): New function.
4418         (get_char_code_table): Modify for `char_code_table' type.
4419         (put_char_code_table): Likewise.
4420         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4421         (Kashiwara).
4422
4423         * char-ucs.h (char_code_table): New type.
4424         (XCHAR_CODE_TABLE): New macro.
4425         (XSETCHAR_CODE_TABLE): New macro.
4426         (CHAR_CODE_TABLE_P): New macro.
4427         (GC_CHAR_CODE_TABLE_P): New macro.
4428         (struct Lisp_Char_Code_Table): New structure.
4429
4430 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4431
4432         * mule-charset.c (Fmake_charset): Setup byte_offset for
4433         {94|96}^n-set.
4434
4435 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4436
4437         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4438         character.
4439
4440 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4441
4442         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4443         is found.
4444
4445 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4446
4447         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4448         charset, it is regarded as a charset.
4449         (put_char_attribute): New function in UTF-2000.
4450         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4451         charset, mapping-table of the charset is modified.
4452         (Fdefine_char): New function in UTF-2000.
4453         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4454         `Fput_char_attribute'.
4455         (syms_of_mule_charset): Add new function `define-char' and new
4456         symbol `ucs' in UTF-2000.
4457         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4458
4459 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4460
4461         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4462         non-UTF-2000 configuration.
4463
4464 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4465
4466         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4467         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4468
4469         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4470         deleted.
4471         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4472         (Fset_charset_mapping_table): Likewise.
4473
4474         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4475         (CHARSET_ENCODING_TABLE): Delete.
4476         (XCHARSET_ENCODING_TABLE): Delete.
4477         (charset_code_point): New interface.
4478
4479 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4480
4481         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4482         instead of `charset_get_byte1' and `charset_get_byte2'.
4483
4484         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4485         (charset_get_byte2): Deleted.
4486
4487 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4488
4489         * char-ucs.h (SPLIT_CHAR): New inline function.
4490         (breakup_char_1): Use `SPLIT_CHAR'.
4491
4492         * mule-charset.c (range_charset_code_point): New function.
4493         (charset_code_point): New function.
4494
4495         * char-ucs.h (range_charset_code_point): New interface.
4496         (breakup_char_1): Use `range_charset_code_point'.
4497
4498 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4499
4500         * mule-charset.c (Fmake_charset): Delete unused local variable
4501         `code_offset'.
4502
4503         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4504         (breakup_char_1): Find a charset and code-point in
4505         `Vcharacter_attribute_table'.
4506
4507 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4508
4509         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4510         to 0.10 (Yao).
4511
4512 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4513
4514         * mule-charset.c (Vcharacter_attribute_table): New variable.
4515         (Fchar_attribute_alist): New function.
4516         (Fget_char_attribute): New function.
4517         (Fput_char_attribute): New function.
4518         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4519         too.
4520         (syms_of_mule_charset): Add new function `char-attribute-alist',
4521         `get-char-attribute' and `put-char-attribute'.
4522         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4523
4524 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4525
4526         * mule-charset.c (Fmake_charset): Just use
4527         `get_unallocated_leading_byte'.
4528
4529         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4530         sets; don't use final-byte based number for private sets.
4531
4532 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4533
4534         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4535         integer.
4536
4537 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4538
4539         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4540         to 0.9.
4541
4542 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4543
4544         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4545         of `CHAR_LEADING_BYTE' in UTF-2000.
4546
4547         * insdel.c (find_charsets_in_bufbyte_string): Use
4548         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4549         (find_charsets_in_emchar_string): Likewise.
4550
4551         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4552         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4553
4554         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4555         (CHAR_CHARSET_ID): New macro.
4556
4557 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4558
4559         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4560         charset-id - MIN_LEADING_BYTE.
4561         (put_char_table): Likewise.
4562
4563 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4564
4565         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4566         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4567         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4568         (CHARSET_ID_OFFSET): New macro.
4569         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4570         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4571         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4572         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4573         4).
4574         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4575         5).
4576         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4577         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4578         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4579         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4580         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4581
4582 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4583
4584         * mule-charset.c (next_allocated_leading_byte): New variable in
4585         UTF-2000.
4586         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4587         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4588         (get_unallocated_leading_byte): Simply use
4589         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4590         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4591         UTF-2000.
4592
4593         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4594         (MAX_LEADING_BYTE_PRIVATE): New macro.
4595         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4596         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4597
4598 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4599
4600         * mule-charset.c (Fmake_charset): Allocate final-byte based
4601         charset-id for 94-set, 96-set and 94x94-set.
4602
4603 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4604
4605         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4606         ambiguous `else'.
4607         (Fmake_charset): Likewise.
4608         (complex_vars_of_mule_charset): Modify the font registry of
4609         `ucs-bmp' not to match `Ethiopic-Unicode'.
4610
4611 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4612
4613         * mule-charset.c (complex_vars_of_mule_charset): Add font
4614         registory of `ucs-bmp'.
4615
4616 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4617
4618         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4619         coded-charsets in `default-coded-charset-priority-list' when
4620         breaking up a character.
4621
4622         * mule-charset.c (Vcharset_latin_viscii): New variable.
4623         (Qlatin_viscii): New variable.
4624         (make_charset): Don't use `decoding_table'.
4625         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4626         byte_offset.
4627         (Fset_charset_mapping_table): New implementation.
4628         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4629         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4630         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4631         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4632         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4633         charset `latin_viscii'.
4634
4635         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4636         (CHARSET_TYPE_94X94): Change to 1 from 2.
4637         (CHARSET_TYPE_96): Change to 2 from 1.
4638         (CHARSET_TYPE_128): New macro.
4639         (CHARSET_TYPE_128X128): Change to 5 from 4.
4640         (CHARSET_TYPE_256): New macro.
4641         (CHARSET_TYPE_256X256): Change to 7 from 5.
4642         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4643
4644 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4645
4646         * text-coding.c (char_encode_shift_jis): Refer
4647         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4648         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4649
4650         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4651         (char_byte_table_equal): New function in UTF-2000.
4652         (char_byte_table_hash): New function in UTF-2000.
4653         (char_byte_table_description): New constant in UTF-2000.
4654         (char_byte_table): New type in UTF-2000.
4655         (make_char_byte_table): New function in UTF-2000.
4656         (copy_char_byte_table): New function in UTF-2000.
4657         (make_char_code_table): New macro in UTF-2000.
4658         (get_char_code_table): New function in UTF-2000.
4659         (put_char_code_table): New function in UTF-2000.
4660         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4661         (charset_description): Add setting in UTF-2000.
4662         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4663         `CHARSET_TO_BYTE1_TABLE(cs)'.
4664         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4665         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4666         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4667         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4668         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4669         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4670         `CHARSET_TO_BYTE2_TABLE(cs)'.
4671
4672         * char-ucs.h (char_byte_table): New type.
4673         (XCHAR_BYTE_TABLE): New macro.
4674         (XSETCHAR_BYTE_TABLE): New macro.
4675         (CHAR_BYTE_TABLE_P): New macro.
4676         (GC_CHAR_BYTE_TABLE_P): New macro.
4677         (struct Lisp_Char_Byte_Table): New structure.
4678         (get_char_code_table): New interface.
4679         (Emchar_to_byte_table): Deleted.
4680         (get_byte_from_character_table): Deleted.
4681         (struct Lisp_Charset): Add `encoding_table'; delete
4682         `to_byte1_table' and `to_byte2_table'.
4683         (CHARSET_ENCODING_TABLE): New macro.
4684         (CHARSET_TO_BYTE1_TABLE): Deleted.
4685         (CHARSET_TO_BYTE2_TABLE): Deleted.
4686         (XCHARSET_ENCODING_TABLE): New macro.
4687         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4688         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4689
4690 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4691
4692         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4693         `vietnamese-viscii-*'.
4694
4695 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4696
4697         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4698         (Qvietnamese_viscii_upper): New variable.
4699         (Fdefine_charset_alias): New function.
4700         (syms_of_mule_charset): Add new function `define-charset-alias'.
4701         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4702         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4703         `latin-viscii-*'.
4704
4705 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4706
4707         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4708         (MAX_CHAR_OBS_94x94): New macro.
4709         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4710         for 94x94 sets.
4711
4712         * mule-charset.c (put_byte_from_character_table): Change unit size
4713         from 128 to 256.
4714         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4715         not defined.
4716         (Fmake_reverse_direction_charset): Modify dummy argument of
4717         `make_charset' for non-UTF-2000 environment.
4718
4719 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4720
4721         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4722
4723         * mule-charset.c (destroy_byte_from_character_table): New macro.
4724         (latin_jisx0201_to_ucs): Deleted.
4725         (latin_iso8859_2_to_ucs): Deleted.
4726         (latin_iso8859_3_to_ucs): Deleted.
4727         (latin_iso8859_4_to_ucs): Deleted.
4728         (latin_iso8859_9_to_ucs): Deleted.
4729         (latin_viscii_lower_to_ucs): Deleted.
4730         (latin_viscii_upper_to_ucs): Deleted.
4731         (mark_charset): Mark `cs->decoding_table'.
4732         (Fcharset_mapping_table): Fix DOC-string.
4733         (Fset_charset_mapping_table): New function.
4734         (syms_of_mule_charset): Add nwe function
4735         `set-charset-mapping-table'.
4736         (complex_vars_of_mule_charset): Don't setup and use
4737         `latin_*_to_ucs'.
4738
4739 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4740
4741         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4742         charset.
4743
4744 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4745
4746         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4747         (Vcharset_katakana_jisx0208): New variable.
4748         (Qhiragana_jisx0208): New variable.
4749         (Qkatakana_jisx0208): New variable.
4750         (make_charset): Add new argument `byte_offset'.
4751         (charset_get_byte1): Modify for new coded-charset definition; use
4752         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4753         `XCHARSET_BYTE_OFFSET'.
4754         (Fmake_charset): Modify for `make_charset'.
4755         (Fmake_reverse_direction_charset): Likewise.
4756         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4757         `katakana-jisx0208'.
4758         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4759         `.'  in font registry of charset `katakana-jisx0201',
4760         `latin-jisx0201', `vietnamese-viscii-lower' and
4761         `vietnamese-viscii-upper'; modify DOC-string of charset
4762         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4763         registry of charset `japanese-jisx0208' not to use font for JIS
4764         X0208:1990; add new charset `hiragana-jisx0208' and
4765         `katakana-jisx0208'.
4766
4767         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4768         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4769         (struct Lisp_Charset): Add `byte_offset'.
4770         (CHARSET_BYTE_OFFSET): New macro.
4771         (XCHARSET_UCS_MIN): New macro.
4772         (XCHARSET_UCS_MAX): New macro.
4773         (XCHARSET_CODE_OFFSET): New macro.
4774         (XCHARSET_BYTE_OFFSET): New macro.
4775         (MIN_CHAR_HIRAGANA): New macro.
4776         (MAX_CHAR_HIRAGANA): New macro.
4777         (MIN_CHAR_KATAKANA): New macro.
4778         (MAX_CHAR_KATAKANA): New macro.
4779         (MAKE_CHAR): Modify for new coded-charset definition; use
4780         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4781         `XCHARSET_BYTE_OFFSET'.
4782
4783 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4784
4785         * mule-charset.c (CHAR96): Deleted.
4786         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4787         <Lisp_Object>.
4788         (latin_iso8859_2_to_ucs): Likewise.
4789         (latin_iso8859_3_to_ucs): Likewise.
4790         (latin_iso8859_4_to_ucs): Likewise.
4791         (latin_iso8859_9_to_ucs): Likewise.
4792         (latin_viscii_lower_to_ucs): Likewise.
4793         (latin_viscii_upper_to_ucs): Likewise.
4794         (latin_tcvn5712_to_ucs): Commented out.
4795         (make_charset): Change type of argument `decoding_table' from
4796         <Emchar*> to <Lisp_Object> [vector of characters].
4797         (Fmake_charset): Modify for `make_charset'.
4798         (Fmake_reverse_direction_charset): Likewise.
4799         (Fcharset_mapping_table): New function in UTF-2000.
4800         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4801         UTF-2000.
4802         (complex_vars_of_mule_charset): Modify for type change of
4803         `*_to_ucs'; modify for `make_charset'.
4804
4805         * char-ucs.h (struct Lisp_Charset): Change type of
4806         `decoding_table' from <Emchar*> to <Lisp_Object>.
4807         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4808
4809 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4810
4811         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4812         error with non-UTF-2000-Mule.
4813
4814 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4815
4816         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4817         in lisp again].
4818         (Vcharset_chinese_cns11643_4): Likewise.
4819         (Vcharset_chinese_cns11643_5): Likewise.
4820         (Vcharset_chinese_cns11643_6): Likewise.
4821         (Vcharset_chinese_cns11643_7): Likewise.
4822         (Qchinese_cns11643_3): Likewise.
4823         (Qchinese_cns11643_4): Likewise.
4824         (Qchinese_cns11643_5): Likewise.
4825         (Qchinese_cns11643_6): Likewise.
4826         (Qchinese_cns11643_7): Likewise.
4827         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4828         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4829         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4830         (complex_vars_of_mule_charset): Likewise.
4831
4832 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4833
4834         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4835         96-set.
4836         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4837         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4838
4839 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4840
4841         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4842         0xFF60.
4843         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4844         (breakup_char_1): Likewise.
4845
4846         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4847         one of them includes the specified character.
4848
4849 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4850
4851         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4852
4853 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4854
4855         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4856
4857 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4858
4859         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4860         definition for non-UTF-2000 Mule.
4861         (latin_iso8859_3_to_ucs): Likewise.
4862         (latin_iso8859_4_to_ucs): Likewise.
4863         (latin_iso8859_9_to_ucs): Likewise.
4864         (latin_jisx0201_to_ucs): Likewise.
4865         (MIN_CHAR_THAI): Likewise.
4866         (MAX_CHAR_THAI): Likewise.
4867         (MIN_CHAR_GREEK): Likewise.
4868         (MAX_CHAR_GREEK): Likewise.
4869         (MIN_CHAR_HEBREW): Likewise.
4870         (MAX_CHAR_HEBREW): Likewise.
4871         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4872         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4873         (MIN_CHAR_CYRILLIC): Likewise.
4874         (MAX_CHAR_CYRILLIC): Likewise.
4875
4876 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4877
4878         * char-ucs.h (breakup_char_1): Use
4879         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4880         thai-tis620 and katakana-jisx0201 area.
4881
4882 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4883
4884         * char-ucs.h (breakup_char_1): Use
4885         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4886         area.
4887
4888         * text-coding.c (reset_encoding_stream): Fixed.
4889         (char_encode_ucs4): Delete `& 255'.
4890
4891         * char-ucs.h (breakup_char_1): Use
4892         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4893
4894 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4895
4896         * file-coding.c (Fmake_coding_system): Don't set up
4897         `codesys->fixed.size'.
4898         (encode_coding_no_conversion): Don't refer
4899         `str->codesys->fixed.size'.
4900
4901 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4902
4903         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4904         (latin_a_char_to_byte1): Deleted.
4905         (latin_a_char_to_byte2): Deleted.
4906
4907 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4908
4909         * mule-charset.c (make_charset): Add new argument `ucs_min',
4910         `ucs_max' and `code_offset'.
4911         (charset_get_byte1): New implementation [delete specific charset
4912         depended implementations].
4913         (Fmake_charset): Modify for `make_charset'.
4914         (Fmake_reverse_direction_charset): Likewise.
4915         (complex_vars_of_mule_charset): Likewise.
4916
4917         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4918         `code_offset'.
4919         (CHARSET_UCS_MIN): New macro.
4920         (CHARSET_UCS_MAX): New macro.
4921         (CHARSET_CODE_OFFSET): New macro.
4922         (MAKE_CHAR): Delete charset depended definitions [except
4923         katakana-jisx0201].
4924
4925 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4926
4927         * char-ucs.h (breakup_char_1): Use
4928         `Vdefault_coded_charset_priority_list' for C0-Controls,
4929         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4930
4931 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4932
4933         * char-ucs.h (charset_get_byte1): New function.
4934         (XCHARSET_GET_BYTE1): Deleted.
4935         (charset_get_byte2): New function.
4936         (XCHARSET_GET_BYTE2): Deleted.
4937         (Vdefault_coded_charset_priority_list): New external variable.
4938         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4939         `Vdefault_preferred_coded_charset_list'.
4940
4941         * mule-charset.c (charset_get_byte1): New function.
4942         (charset_get_byte2): New function.
4943         (Vdefault_coded_charset_priority_list): New variable.
4944         (vars_of_mule_charset): Add new variable
4945         `default-coded-charset-priority-list'.
4946
4947 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4948
4949         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4950         (XCHARSET_GET_BYTE2): New inline function.
4951         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4952         `XCHARSET_GET_BYTE2'.
4953
4954 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4955
4956         * mule-charset.c (make_charset): Initialize
4957         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4958         NULL if table is not defined.
4959
4960 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4961
4962         * text-coding.c (char_encode_shift_jis): Use
4963         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4964         `ucs_to_latin_jisx0201'.
4965
4966         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4967         (ucs_to_latin_iso8859_2): Deleted.
4968         (ucs_to_latin_iso8859_3): Deleted.
4969         (ucs_to_latin_iso8859_4): Deleted.
4970         (ucs_to_latin_iso8859_9): Deleted.
4971         (ucs_to_latin_viscii_lower): Deleted.
4972         (ucs_to_latin_viscii_upper): Deleted.
4973         (ucs_to_latin_tcvn5712): Deleted.
4974         (make_charset): Add new argument `decoding_table'; set up
4975         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4976         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4977         `decoding_table' is defined in UTF-2000.
4978         (Fmake_charset): Modify for `make_charset'.
4979         (Fmake_reverse_direction_charset): Likewise.
4980         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4981         and `GENERATE_96_SET'.
4982
4983         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4984         (ucs_to_latin_jisx0201): Deleted.
4985         (latin_iso8859_2_to_ucs): Deleted.
4986         (ucs_to_latin_iso8859_2): Deleted.
4987         (latin_iso8859_3_to_ucs): Deleted.
4988         (ucs_to_latin_iso8859_3): Deleted.
4989         (latin_iso8859_4_to_ucs): Deleted.
4990         (ucs_to_latin_iso8859_4): Deleted.
4991         (latin_iso8859_9_to_ucs): Deleted.
4992         (ucs_to_latin_iso8859_9): Deleted.
4993         (latin_viscii_lower_to_ucs): Deleted.
4994         (ucs_to_latin_viscii_lower): Deleted.
4995         (latin_viscii_upper_to_ucs): Deleted.
4996         (ucs_to_latin_viscii_upper): Deleted.
4997         (struct Lisp_Charset): Renamed `encoding_table' to
4998         `to_byte1_table'; add `to_byte2_table'.
4999         (CHARSET_DECODING_TABLE): New macro.
5000         (CHARSET_TO_BYTE1_TABLE): New macro.
5001         (CHARSET_TO_BYTE2_TABLE): New macro.
5002         (XCHARSET_DECODING_TABLE): New macro.
5003         (XCHARSET_TO_BYTE1_TABLE): New macro.
5004         (XCHARSET_TO_BYTE2_TABLE): New macro.
5005         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5006         tables.
5007         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5008         don't use `ucs_to_*' tables.
5009
5010 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5011
5012         * text-coding.c (Fmake_coding_system): Don't set up
5013         `codesys->fixed.size'.
5014         (encode_coding_no_conversion): Use `if' instead of `switch'.
5015
5016         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5017
5018 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5019
5020         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5021         (Fmake_charset): Modify for `make_charset'.
5022         (Fmake_reverse_direction_charset): Likewise.
5023         (complex_vars_of_mule_charset): Likewise.
5024
5025 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5026
5027         * text-coding.c (char_encode_shift_jis): Use table
5028         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5029
5030 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5031
5032         * text-coding.c (text_encode_generic): Use `if' instead of
5033         `switch'.
5034         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5035         decode JIS-Latin.
5036
5037 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5038
5039         * text-coding.c (encode_coding_sjis): Deleted.
5040         (char_encode_shift_jis): New function.
5041         (char_finish_shift_jis): New function.
5042         (reset_encoding_stream): Set up `encode_char' and `finish' for
5043         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5044         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5045         (char_encode_utf8): Treat `eol_type'.
5046
5047 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5048
5049         * file-coding.c (decode_coding_iso2022): Use
5050         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5051
5052 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5053
5054         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5055         to 0.7 (Hirano).
5056
5057 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5058
5059         * char-lb.h (CHAR_COLUMNS): New macro.
5060
5061 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5062
5063         * text-coding.c (char_encode_ucs4): New function.
5064         (char_finish_ucs4): New function.
5065         (encode_coding_ucs4): Deleted.
5066         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5067         (text_encode_generic): Delete local variable `charset' and `half'.
5068         (ucs_to_mule_table): Deleted.
5069         (mule_to_ucs_table): Deleted.
5070         (Fset_ucs_char): Deleted.
5071         (ucs_to_char): Deleted.
5072         (Fucs_char): Deleted.
5073         (Fset_char_ucs): Deleted.
5074         (Fchar_ucs): Deleted.
5075         (decode_ucs4): Deleted.
5076         (mule_char_to_ucs4): Deleted.
5077         (encode_ucs4): Deleted.
5078         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5079         (decode_coding_utf8): Likewise.
5080         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5081         (char_encode_iso2022): Fixed.
5082         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5083         `Fset_char_ucs' and `Fchar_ucs'.
5084         (complex_vars_of_file_coding): Don't initialize
5085         `ucs_to_mule_table'.
5086
5087         * objects-tty.c (tty_initialize_font_instance): Don't use
5088         `XCHARSET_COLUMNS'.
5089
5090         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5091         UTF-2000.
5092
5093         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5094         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5095
5096         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5097         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5098         (emchar_string_displayed_columns): Likewise.
5099
5100         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5101         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5102         (string_column_at_point): Likewise.
5103         (Fmove_to_column): Likewise.
5104
5105         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5106         `encoding_table' and `decoding_table'.
5107         (CHARSET_REP_BYTES): Deleted.
5108         (XCHARSET_REP_BYTES): Deleted.
5109         (XCHARSET_COLUMNS): Deleted.
5110         (CHAR_COLUMNS): New macro.
5111         (lookup_composite_char): Deleted unconditionally.
5112         (composite_char_string): Likewise.
5113
5114 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5115
5116         * char-ucs.h (Emchar_to_byte_table): New type.
5117         (get_byte_from_character_table): New function interface.
5118         (Vcharset_latin_jisx0201): New variable.
5119         (latin_jisx0201_to_ucs): New variable.
5120         (ucs_to_latin_jisx0201): New variable.
5121         (Vcharset_latin_iso8859_2): New variable.
5122         (latin_iso8859_2_to_ucs): New variable.
5123         (ucs_to_latin_iso8859_2): New variable.
5124         (Vcharset_latin_iso8859_3): New variable.
5125         (latin_iso8859_3_to_ucs): New variable.
5126         (ucs_to_latin_iso8859_3): New variable.
5127         (Vcharset_latin_iso8859_4): New variable.
5128         (latin_iso8859_4_to_ucs): New variable.
5129         (ucs_to_latin_iso8859_4): New variable.
5130         (Vcharset_latin_iso8859_9): New variable.
5131         (latin_iso8859_9_to_ucs): New variable.
5132         (ucs_to_latin_iso8859_9): New variable.
5133         (Vcharset_latin_viscii_lower): New variable.
5134         (latin_viscii_lower_to_ucs): New variable.
5135         (ucs_to_latin_viscii_lower): New variable.
5136         (Vcharset_latin_viscii_upper): New variable.
5137         (latin_viscii_upper_to_ucs): New variable.
5138         (ucs_to_latin_viscii_upper): New variable.
5139         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5140         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5141         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5142         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5143         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5144         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5145         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5146         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5147         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5148         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5149
5150         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5151         (Vcharset_latin_viscii_upper): New variable.
5152         (make_byte_from_character_table): New function.
5153         (put_byte_from_character_table): New function.
5154         (get_byte_from_character_table): New function.
5155         (CHAR96): New macro.
5156         (ucs_to_latin_jisx0201): New variable.
5157         (latin_jisx0201_to_ucs): New variable.
5158         (ucs_to_latin_iso8859_2): New variable.
5159         (latin_iso8859_2_to_ucs): New variable.
5160         (ucs_to_latin_iso8859_3): New variable.
5161         (latin_iso8859_3_to_ucs): New variable.
5162         (ucs_to_latin_iso8859_4): New variable.
5163         (latin_iso8859_4_to_ucs): New variable.
5164         (ucs_to_latin_iso8859_9): New variable.
5165         (latin_iso8859_9_to_ucs): New variable.
5166         (ucs_to_latin_viscii_lower): New variable.
5167         (latin_viscii_lower_to_ucs): New variable.
5168         (ucs_to_latin_viscii_upper): New variable.
5169         (latin_viscii_upper_to_ucs): New variable.
5170         (ucs_to_latin_tcvn5712): New variable.
5171         (latin_tcvn5712_to_ucs): New variable.
5172         (Qlatin_viscii_lower): New variable.
5173         (Qlatin_viscii_upper): New variable.
5174         (syms_of_mule_charset): Set up new symbol
5175         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5176         (complex_vars_of_mule_charset): Set up new charset
5177         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5178         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5179         `ucs_to_<CHARSET>' tables.
5180
5181 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5182
5183         * text-coding.c: New file.
5184
5185 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5186
5187         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5188
5189         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5190         (MAKE_CHAR): Modify for `ucs-bmp'.
5191         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5192         non-MULE characters of BMP.
5193
5194 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5195
5196         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5197         to 0.6.
5198
5199 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5200
5201         * lstream.h:
5202         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5203         - Include character.h for `CHAR_ASCII_P'.
5204
5205         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5206
5207         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5208         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5209
5210         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5211         (BYTE_C0_P): Likewise.
5212         (BYTE_C1_P): Likewise.
5213         (Lstream_get_emchar_1): Likewise.
5214         (Lstream_fput_emchar): Likewise.
5215         (Lstream_funget_emchar): Likewise.
5216         (copy_internal_to_external): Likewise.
5217         (copy_external_to_internal): Likewise.
5218
5219         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5220         (BYTE_C0_P): Likewise.
5221         (BYTE_C1_P): Likewise.
5222         (Lstream_get_emchar_1): Likewise.
5223         (Lstream_fput_emchar): Likewise.
5224         (Lstream_funget_emchar): Likewise.
5225         (copy_internal_to_external): Likewise.
5226         (copy_external_to_internal): Likewise.
5227
5228         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5229         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5230
5231         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5232         (BYTE_ASCII_P): Moved to mb-1byte.h.
5233
5234 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5235
5236         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5237
5238         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5239         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5240         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5241         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5242         (VALIDATE_CHARPTR_FORWARD): Likewise.
5243         (simple_charptr_emchar): Moved to mb-multibyte.h.
5244         (simple_set_charptr_emchar): Likewise.
5245         (simple_charptr_copy_char): Likewise.
5246         (non_ascii_charptr_emchar): Likewise.
5247         (non_ascii_set_charptr_emchar): Likewise.
5248         (non_ascii_charptr_copy_char): Likewise.
5249         (charptr_emchar): Moved to mb-*byte.h.
5250         (set_charptr_emchar): Likewise.
5251         (charptr_copy_char): Likewise.
5252
5253         * mb-1byte.h, mb-multibyte.h: New files.
5254
5255 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5256
5257         * mb-utf-8.h (MULTIBYTE): New macro.
5258         (MAX_EMCHAR_LEN): Moved from buffer.h.
5259         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5260
5261         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5262
5263         * mb-lb.h, multibyte.h: New files.
5264
5265         * char-1byte.h (Charset_ID): Moved from buffer.h.
5266         (MIN_LEADING_BYTE): Likewise.
5267         (LEADING_BYTE_ASCII): Likewise.
5268         (NUM_LEADING_BYTES): Likewise.
5269         (CHARSETP): Likewise.
5270         (CHARSET_BY_LEADING_BYTE): Likewise.
5271         (XCHARSET_LEADING_BYTE): Likewise.
5272         (XCHARSET_GRAPHIC): Likewise.
5273         (XCHARSET_COLUMNS): Likewise.
5274         (XCHARSET_DIMENSION): Likewise.
5275         (CHAR_CHARSET): Likewise.
5276         (CHAR_LEADING_BYTE): Likewise.
5277         (BREAKUP_CHAR): Likewise.
5278         (Vcharset_ascii): Likewise.
5279
5280         * buffer.h: Include multibyte.h unconditionally.
5281         (VALID_CHARPTR_P): Moved to multibyte.h.
5282         (ASSERT_VALID_CHARPTR): Likewise.
5283         (REAL_INC_CHARPTR): Likewise.
5284         (REAL_INC_CHARBYTIND): Likewise.
5285         (REAL_DEC_CHARPTR): Likewise.
5286         (INC_CHARPTR): Likewise.
5287         (INC_CHARBYTIND): Likewise.
5288         (DEC_CHARPTR): Likewise.
5289         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5290         (VALIDATE_CHARPTR_FORWARD): Likewise.
5291         (charptr_n_addr): Likewise.
5292         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5293         (simple_charptr_emchar): Moved to multibyte.h.
5294         (simple_set_charptr_emchar): Likewise.
5295         (simple_charptr_copy_char): Likewise.
5296         (non_ascii_charptr_emchar): Likewise.
5297         (non_ascii_set_charptr_emchar): Likewise.
5298         (non_ascii_charptr_copy_char): Likewise.
5299         (charptr_emchar): Likewise.
5300         (set_charptr_emchar): Likewise.
5301         (charptr_copy_char): Likewise.
5302         (charptr_emchar_n): Likewise.
5303         (Charset_ID): Moved to char-1byte.h.
5304         (Vcharset_ascii): Likewise.
5305         (CHAR_CHARSET): Likewise.
5306         (CHAR_LEADING_BYTE): Likewise.
5307         (LEADING_BYTE_ASCII): Likewise.
5308         (NUM_LEADING_BYTES): Likewise.
5309         (MIN_LEADING_BYTE): Likewise.
5310         (CHARSETP): Likewise.
5311         (CHARSET_BY_LEADING_BYTE): Likewise.
5312         (XCHARSET_LEADING_BYTE): Likewise.
5313         (XCHARSET_GRAPHIC): Likewise.
5314         (XCHARSET_COLUMNS): Likewise.
5315         (XCHARSET_DIMENSION): Likewise.
5316         (BREAKUP_CHAR): Likewise.
5317
5318 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5319
5320         * character.h: Add document about interface for characters.
5321
5322         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5323         (MAKE_CHAR): Delete comment about
5324         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5325         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5326         (BREAKUP_CHAR): Modify name of arguments.
5327         (CHAR_CHARSET): Modify name of argument.
5328
5329         * buffer.h: Delete document about Emchar accessors.
5330
5331 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5332
5333         * character.h (CHAR_INTP): Moved from buffer.h
5334         (CHAR_OR_CHAR_INTP): Likewise.
5335         (XCHAR_OR_CHAR_INT): Likewise.
5336         (CHECK_CHAR_COERCE_INT): Likewise.
5337
5338         * buffer.h (CHAR_INTP): Moved to character.h
5339         (CHAR_OR_CHAR_INTP): Likewise.
5340         (XCHAR_OR_CHAR_INT): Likewise.
5341         (CHECK_CHAR_COERCE_INT): Likewise.
5342
5343 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5344
5345         * character.h:
5346         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5347         - Include char-1byte.h, char-lb.h or char-ucs.h.
5348
5349         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5350
5351         * buffer.h: Include character unconditionally.
5352         (valid_char_p): Moved to char-*.h.
5353         (non_ascii_valid_char_p): Moved to char-lb.h.
5354
5355         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5356
5357 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5358
5359         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5360         in UTF-2000 because it is not ported yet and not to use
5361         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5362         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5363         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5364
5365         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5366         (CHAR_ASCII_P): Moved from character.h.
5367
5368         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5369         (CHAR_ASCII_P): Likewise.
5370         (CHAR_FIELD1_MASK): Deleted.
5371         (CHAR_FIELD2_MASK): Deleted.
5372         (CHAR_FIELD3_MASK): Deleted.
5373         (MAX_CHAR_BASIC_LATIN): New macro.
5374         (CHAR_FIELD1): Deleted.
5375         (CHAR_FIELD2_INTERNAL): Deleted.
5376         (CHAR_FIELD3_INTERNAL): Deleted.
5377         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5378         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5379         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5380         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5381         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5382         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5383         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5384         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5385         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5386         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5387         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5388         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5389         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5390         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5391         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5392         (MIN_CHAR_COMPOSITION): Deleted.
5393         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5394         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5395
5396 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5397
5398         * buffer.h: Include mb-utf-8.h in UTF-2000.
5399
5400         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5401
5402         * mb-utf-8.h: New file.
5403
5404 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5405
5406         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5407         instead of `int'.
5408
5409         * mule-charset.h, buffer.h (Charset_ID): New type.
5410
5411 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5412
5413         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5414         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5415         instead of `MULE_CHAR_PRIVATE_OFFSET',
5416         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5417         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5418         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5419
5420         * character.h (Vcharset_japanese_jisx0212): New variable
5421         definition.
5422
5423 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5424
5425         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5426         (charset_by_attributes): Delete array about direction.
5427         (latin_a_char_to_charset): New variable in UTF-2000.
5428         (latin_a_char_to_byte1): New variable in UTF-2000.
5429         (latin_a_char_to_byte2): New variable in UTF-2000.
5430         (Qucs_bmp): New variable.
5431         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5432         `Bufbyte'.
5433         (next_allocated_2_byte_leading_byte): Likewise.
5434         (non_ascii_set_charptr_emchar): Likewise.
5435         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5436         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5437         `charset_by_attributes'.
5438         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5439         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5440         and `CHARSET_BY_LEADING_BYTE'.
5441         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5442         `utf-2000-version' to `vars_of_mule_charset'.
5443         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5444         define `leading-code-private-11' in UTF-2000; move setting of
5445         `utf-2000-version' from `syms_of_mule_charset'.
5446         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5447         UTF-2000.
5448
5449         * character.h (Charset_ID): New type.
5450         (LEADING_BYTE_UCS_BMP): New macro.
5451         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5452         (CHARSET_ID_OFFSET_94): New macro.
5453         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5454         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5455         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5456         final-byte.
5457         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5458         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5459         (CHARSET_ID_OFFSET_96): New macro.
5460         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5461         CHARSET_ID_OFFSET_96 and final-byte.
5462         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5463         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5464         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5465         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5466         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5467         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5468         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5469         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5470         (LEADING_BYTE_THAI_TIS620): Likewise.
5471         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5472         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5473         (CHARSET_ID_OFFSET_94x94): New macro.
5474         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5475         CHARSET_ID_OFFSET_94x94 and final-byte.
5476         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5477         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5478         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5479         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5480         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5481         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5482         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5483         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5484         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5485         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5486         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5487         (CHARSET_TYPE_128X128): New macro.
5488         (CHARSET_TYPE_256X256): New macro.
5489         (XCHARSET_PRIVATE_P): Delete unconditionally.
5490         (charset_by_attributes): Delete array about direction.
5491         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5492         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5493         (MIN_CHAR_94): New macro.
5494         (MAX_CHAR_94): New macro.
5495         (MIN_CHAR_96): New macro.
5496         (MAX_CHAR_96): New macro.
5497         (MIN_CHAR_94x94): New macro.
5498         (MAX_CHAR_94x94): New macro.
5499         (MIN_CHAR_96x96): New macro.
5500         (MAX_CHAR_96x96): New macro.
5501         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5502         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5503         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5504         - 32)'.
5505         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5506         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5507         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5508         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5509         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5510         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5511         `XCHARSET_LEADING_BYTE' to make code-point.
5512         (latin_a_char_to_charset): New variable.
5513         (latin_a_char_to_byte1): New variable.
5514         (latin_a_char_to_byte2): New variable.
5515         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5516         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5517         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5518
5519         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5520         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5521         (find_charsets_in_emchar_string): Likewise.
5522         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5523
5524         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5525         `int'.
5526         (decode_coding_iso2022): Likewise.
5527
5528         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5529         of `unsigned char'.
5530
5531         * redisplay.c (redisplay_text_width_emchar_string): Use
5532         `Charset_ID' instead of `unsigned char'.
5533         (redisplay_frame_text_width_string): Likewise.
5534
5535         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5536         `unsigned char'.
5537
5538         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5539         instead of `unsigned char'.
5540         (face_cachel_charset_font_metric_info): Likewise.
5541
5542         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5543         (get_non_ascii_char_table_value): Likewise.
5544         (get_char_table): Likewise.
5545         (put_char_table): Likewise.
5546         (map_over_other_charset): Likewise.
5547         (map_char_table): Likewise.
5548
5549         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5550         instead of `unsigned char'.
5551
5552 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5553
5554         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5555         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5556
5557         * mule-charset.c (leading_code_private_11): Don't define in
5558         UTF-2000.
5559
5560         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5561         in UTF-2000 because it is not ported yet and not to use
5562         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5563
5564 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5565
5566         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5567
5568 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5569
5570         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5571         in UTF-2000.
5572
5573         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5574         of unsigned char to store leading-byte.
5575
5576         * chartab.c (get_non_ascii_char_table_value): Don't use
5577         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5578
5579         * file-coding.c (encode_coding_big5): Delete bogus implementation
5580         in UTF2000.
5581
5582         * character.h (LEADING_BYTE_*): Delete definition for
5583         non-UTF-2000.
5584         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5585         (LEADING_BYTE_PREFIX_P): Deleted.
5586         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5587         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5588         (BUFBYTE_LEADING_BYTE_P): Deleted.
5589         (CHARSET_PRIVATE_P): Deleted unconditionally.
5590         (rep_bytes_by_first_byte): Deleted unconditionally.
5591         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5592         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5593         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5594         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5595         (CHAR_FIELD2): Deleted.
5596         (CHAR_FIELD3): Deleted.
5597         (MAKE_CHAR): Delete definition for non-UTF-2000.
5598         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5599         (breakup_char_1): New implementation.
5600         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5601         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5602
5603 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5604
5605         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5606         condition.
5607
5608 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5609
5610         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5611         (CHARSET_PRIVATE_P): Likewise.
5612         (XCHARSET_PRIVATE_P): Likewise.
5613         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5614
5615         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5616         UTF2000.
5617         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5618
5619 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5620
5621         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5622         (NUM_LEADING_BYTES): Changed from 128 to 256.
5623         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5624         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5625         UTF2000.
5626         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5627
5628         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5629         UTF2000.
5630         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5631         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5632         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5633         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5634         (Qchinese_cns11643_3): New variable in UTF2000.
5635         (Qchinese_cns11643_4): New variable in UTF2000.
5636         (Qchinese_cns11643_5): New variable in UTF2000.
5637         (Qchinese_cns11643_6): New variable in UTF2000.
5638         (Qchinese_cns11643_7): New variable in UTF2000.
5639         (syms_of_mule_charset): Define `chinese-cns11643-3',
5640         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5641         and `chinese-cns11643-7' in UTF2000.
5642         (vars_of_mule_charset): Initialize
5643         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5644         + 1 in UTF2000.
5645         (complex_vars_of_mule_charset): Setup charset
5646         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5647         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5648
5649 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5650
5651         * mule-charset.c: Move setting for `leading-code-private-11' from
5652         `syms_of_mule_charset' to `vars_of_mule_charset'.
5653
5654 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5655
5656         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5657         and `NUM_LEADING_BYTES' in assert.
5658
5659 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5660
5661         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5662         instead of 128.
5663         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5664         `NUM_LEADING_BYTES' instead of 128.
5665
5666 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5667
5668         * mule-charset.h (charset_by_leading_byte): Use
5669         `NUM_LEADING_BYTES' instead of 128.
5670         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5671
5672         * mule-charset.c (charset_by_leading_byte): Use
5673         `NUM_LEADING_BYTES' instead of 128.
5674         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5675
5676         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5677         128.
5678
5679 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5680
5681         * mule-charset.c (syms_of_mule_charset): Update to
5682         0.4 (Shin-Imamiya).
5683
5684 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5685
5686         * file-coding.c (encode_coding_sjis): New implementation for
5687         UTF2000.  (decode_coding_sjis): Ditto.
5688
5689 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5690
5691         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5692         Don't define in UTF2000.
5693
5694         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5695         defined.
5696
5697         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5698         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5699         MULE.
5700
5701 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5702
5703         * config.h.in (CHAR_IS_UCS4): New macro.
5704
5705         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5706         conventional MULE representation.
5707         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5708
5709         * mule-charset.h: Reverted to original.
5710
5711         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5712         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5713         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5714
5715         * character.h: New file.
5716
5717         * file-coding.c (Fmake_coding_system): Set 1 to
5718         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5719         defined.
5720         (encode_coding_no_conversion): New implementation for UTF2000.
5721
5722         * file-coding.h (struct Lisp_Coding_System): Add new member
5723         `fixed.size'.
5724
5725 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5726
5727         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5728         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5729         (encode_coding_iso2022): New implementation for UTF2000.
5730
5731 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5732
5733         * mule-canna.c (c2mu): New implementation for UTF2000.
5734         (m2c): Likewise.
5735
5736 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5737
5738         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5739
5740 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5741
5742         * file-coding.c (reset_encoding_stream): Set 0 to
5743         `str->iso2022.current_char_boundary' in UTF2000.
5744         (encode_utf8): Don't define in UTF2000.
5745         (encode_coding_utf8): New implementation for UTF-8 representation
5746         of UTF2000.
5747         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5748
5749 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5750
5751         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5752
5753         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5754         UTF2000.
5755         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5756
5757         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5758
5759         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5760         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5761         as UTF-8 in UTF2000.
5762         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5763         (non_ascii_valid_char_p): Don't define in UTF2000.
5764         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5765         (Lstream_get_emchar_1): Likewise.
5766         (utf-2000-version): New variable in UTF2000.
5767
5768         * lread.c (read_escape): Add new reader `u'.
5769
5770         * insdel.c (three_to_one_table): Don't define in UTF2000.
5771         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5772         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5773         UTF2000.
5774         (bytind_to_bufpos_func): Likewise.
5775         (buffer_mule_signal_inserted_region): Likewise.
5776         (vars_of_insdel): Don't initialize `three_to_one_table'.
5777         (init_buffer_text): Use `buf->text->mule_size' instead of
5778         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5779         UTF2000.
5780
5781         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5782         UTF-8 representation in UTF2000.
5783         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5784         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5785         (decode_coding_iso2022): Don't define local variable `lb' in
5786         UTF2000; don't use LEADING_BYTE in UTF2000; use
5787         `DECODE_ADD_UCS_CHAR' in UTF2000.
5788         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5789
5790         * config.h.in (UTF2000): New macro.
5791
5792         * buffer.h (struct buffer_text): Add new member `mule_size' and
5793         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5794         (valid_char_p): Return always 1 in UTF2000.
5795         (MAX_EMCHAR_LEN): 6 in UTF2000.
5796         (three_to_one_table): Don't define in UTF2000.
5797         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5798         UTF2000.
5799         (real_bytind_to_bufpos): Likewise.
5800
5801         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5802
5803 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5804
5805         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5806         representation change.
5807         (Vutf_2000_version): New variable.
5808         (leading_code_private_11): New variable.
5809         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5810         `leading-code-private-11'.
5811
5812         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5813         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5814         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5815         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5816         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5817         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5818         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5819         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5820         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5821         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5822         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5823         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5824         (MIN_CHAR_GREEK): New macro.
5825         (MAX_CHAR_GREEK): New macro.
5826         (MIN_CHAR_CYRILLIC): New macro.
5827         (MAX_CHAR_CYRILLIC): New macro.
5828         (MIN_CHAR_HEBREW): New macro.
5829         (MAX_CHAR_HEBREW): New macro.
5830         (MIN_CHAR_THAI): New macro.
5831         (MAX_CHAR_THAI): New macro.
5832         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5833         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5834         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5835         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5836         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5837         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5838         (CHAR_FIELD2): New inline function.
5839         (CHAR_FIELD3): New inline function.
5840         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5841         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5842         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5843         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5844         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5845         (MIN_CHAR_COMPOSITION): Likewise.
5846         (CHAR_LEADING_BYTE): Modified for character representation change.
5847         (MAKE_CHAR): Likewise.
5848
5849         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5850         (Vcharset_greek_iso8859_7): Likewise.
5851         (Vcharset_cyrillic_iso8859_5): Likewise.
5852         (Vcharset_hebrew_iso8859_8): Likewise.
5853         (Vcharset_thai_tis620): Likewise.
5854         (Vcharset_katakana_jisx0201): Likewise.
5855
5856 2005-02-06  Vin Shelton <acs@xemacs.org>
5857
5858         * XEmacs 21.4.17 is released
5859
5860 2005-01-31  Ben Wing  <ben@xemacs.org>
5861
5862         * emacs.c:
5863         Define assert_failed() always.
5864         * lisp.h:
5865         Always define ABORT().
5866
5867 2005-01-25  Ben Wing  <ben@xemacs.org>
5868
5869         * Makefile.in.in:
5870         * Makefile.in.in (%.o):
5871         Don't compile executable as Windows (-mwindows) under Cygwin.
5872         Semi-recent changes to Cygwin's executable-startup handling make
5873         it impossible to access the TTY this way.
5874
5875         Don't use special linker file under Cygwin (cygwin.sc) except
5876         when non-PDUMP (even in this case it is highly questionable); you
5877         get errors like
5878
5879       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
5880    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
5881
5882 2005-01-29  Ben Wing  <ben@xemacs.org>
5883
5884         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5885
5886         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
5887
5888 2005-01-29  Ben Wing  <ben@xemacs.org>
5889
5890         * bytecode.c (optimize_compiled_function):
5891         * print.c (FROB):
5892         * print.c (long_to_string):
5893         Add casts to avoid warning.
5894         
5895         * glyphs-eimage.c:
5896         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
5897         #### The better solution is to move the TIFF and JPEG code to
5898         different files.
5899         
5900         * glyphs-msw.c (mswindows_xbm_instantiate):
5901         Define __STDC__ to avoid problems with compface.h.
5902         
5903         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
5904         * EmacsShell-sub.c:
5905         * EmacsShell-sub.c (ABORT):
5906         * EmacsShell-sub.c (SuperClassRootGeometryManager):
5907         * EmacsShell-sub.c (RootGeometryManager):
5908         * EmacsShell.c:
5909         * EmacsShell.c (ABORT):
5910         * EmacsShell.c (EmacsShellUpdateSizeHints):
5911         * alloc.c (free_lcrecord):
5912         * alloca.c (i00afunc):
5913         * buffer.c (delete_from_buffer_alist):
5914         * buffer.c (MARKED_SLOT):
5915         * bytecode.c (execute_rare_opcode):
5916         * bytecode.c (optimize_byte_code):
5917         * bytecode.c (Ffetch_bytecode):
5918         * chartab.c (char_table_type_to_symbol):
5919         * chartab.c (Freset_char_table):
5920         * chartab.c (decode_char_table_range):
5921         * chartab.c (Fget_range_char_table):
5922         * chartab.c (check_valid_char_table_value):
5923         * chartab.c (map_char_table):
5924         * chartab.c (slow_map_char_table_fun):
5925         * chartab.c (chartab_instantiate):
5926         * cm.c (cmcheckmagic):
5927         * console-msw.c (DHEADER):
5928         * console.c (MARKED_SLOT):
5929         * data.c (finish_marking_weak_lists):
5930         * data.c (encode_weak_list_type):
5931         * debug.h (DASSERT):
5932         * device-gtk.c (gtk_init_device):
5933         * device-msw.c (mswindows_get_default_margin):
5934         * device-tty.c (tty_init_device):
5935         * device-x.c (get_device_from_display):
5936         * device-x.c (x_get_visual_depth):
5937         * doprnt.c (parse_doprnt_spec):
5938         * doprnt.c (get_doprnt_args):
5939         * dumper.c (pdump_get_indirect_count):
5940         * dumper.c (pdump_register_sub):
5941         * dumper.c (pdump_register_object):
5942         * dumper.c (pdump_register_struct):
5943         * dumper.c (pdump_dump_data):
5944         * dumper.c (pdump_reloc_one):
5945         * elhash.c (print_hash_table):
5946         * elhash.c (make_standard_lisp_hash_table):
5947         * elhash.c (hash_table_instantiate):
5948         * emacs.c:
5949         * emacs.c (Fforce_debugging_signal):
5950         * emacs.c (sort_args):
5951         * emacs.c (main):
5952         * emacs.c (assert_failed):
5953         * eval.c (throw_or_bomb_out):
5954         * eval.c (signal_1):
5955         * eval.c (Fsignal):
5956         * event-Xt.c:
5957         * event-Xt.c (emacs_Xt_mapping_action):
5958         * event-Xt.c (Xt_process_to_emacs_event):
5959         * event-msw.c:
5960         * event-stream.c (check_event_stream_ok):
5961         * event-stream.c (Fadd_timeout):
5962         * event-stream.c (Fadd_async_timeout):
5963         * event-stream.c (Fdiscard_input):
5964         * event-stream.c (execute_internal_event):
5965         * event-stream.c (Frecent_keys):
5966         * event-stream.c (extract_this_command_keys_nth_mouse_event):
5967         * event-stream.c (lookup_command_event):
5968         * event-unixoid.c (poll_fds_for_input):
5969         * events.c:
5970         * events.c (mark_event):
5971         * events.c (event_equal):
5972         * events.c (event_hash):
5973         * events.c (Fmake_event):
5974         * events.c (Fdeallocate_event):
5975         * events.c (event_chain_find_previous):
5976         * events.c (event_to_character):
5977         * events.c (format_event_object):
5978         * events.c (Fevent_type):
5979         * events.c (event_pixel_translation):
5980         * events.c (Fevent_properties):
5981         * extents.c (extent_in_region_p):
5982         * extents.c (print_extent):
5983         * extents.c (process_extents_for_insertion_mapper):
5984         * extents.c (report_extent_modification_mapper):
5985         * extents.c (glyph_layout_to_symbol):
5986         * faces.c (face_validate):
5987         * file-coding.c (eol_type_to_symbol):
5988         * file-coding.c (subsidiary_coding_system):
5989         * file-coding.c (Fcoding_system_type):
5990         * file-coding.c (Fcoding_system_property):
5991         * file-coding.c (mule_decode):
5992         * file-coding.c (mule_encode):
5993         * file-coding.c (encode_coding_ucs4):
5994         * file-coding.c (encode_coding_utf8):
5995         * file-coding.c (parse_iso2022_esc):
5996         * file-coding.c (encode_coding_iso2022):
5997         * fileio.c:
5998         * fns.c (concat):
5999         * fns.c (Fsubseq):
6000         * fns.c (mapcar1):
6001         * fns.c (Fbase64_encode_region):
6002         * fns.c (Fbase64_encode_string):
6003         * fns.c (Fbase64_decode_region):
6004         * fns.c (Fbase64_decode_string):
6005         * font-lock.c (find_context):
6006         * font-lock.c (context_to_symbol):
6007         * frame-gtk.c (gtk_set_frame_pointer):
6008         * frame-gtk.c (gtk_update_frame_external_traits):
6009         * frame-x.c (x_wm_mark_shell_size_user_specified):
6010         * frame-x.c (x_wm_mark_shell_position_user_specified):
6011         * frame-x.c (x_wm_set_shell_iconic_p):
6012         * frame-x.c (x_wm_set_cell_size):
6013         * frame-x.c (x_wm_set_variable_size):
6014         * frame-x.c (x_wm_store_class_hints):
6015         * frame-x.c (x_wm_maybe_store_wm_command):
6016         * frame-x.c (x_initialize_frame_size):
6017         * frame-x.c (x_update_frame_external_traits):
6018         * frame.c:
6019         * frame.c (delete_frame_internal):
6020         * frame.c (mouse_pixel_position_1):
6021         * frame.c (change_frame_size_1):
6022         * free-hook.c (check_free):
6023         * free-hook.c (check_realloc):
6024         * free-hook.c (note_block_input):
6025         * free-hook.c (log_gcpro):
6026         * gccache-gtk.c (gc_cache_lookup):
6027         * glyphs-eimage.c (tiff_memory_write):
6028         * glyphs-gtk.c (gtk_finalize_image_instance):
6029         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6030         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6031         * glyphs-gtk.c (gtk_xpm_instantiate):
6032         * glyphs-gtk.c (gtk_unmap_subwindow):
6033         * glyphs-gtk.c (gtk_map_subwindow):
6034         * glyphs-gtk.c (gtk_button_redisplay):
6035         * glyphs-msw.c:
6036         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6037         * glyphs-x.c (init_image_instance_from_xbm_inline):
6038         * glyphs-x.c (extract_xpm_color_names):
6039         * glyphs-x.c (x_xpm_instantiate):
6040         * glyphs.c (get_image_instantiator_governing_domain):
6041         * glyphs.c (print_image_instance):
6042         * glyphs.c (image_instance_equal):
6043         * glyphs.c (image_instance_hash):
6044         * glyphs.c (encode_image_instance_type):
6045         * glyphs.c (make_image_instance_1):
6046         * glyphs.c (inherit_instantiate):
6047         * glyphs.c (image_instantiate):
6048         * glyphs.c (allocate_glyph):
6049         * glyphs.c (Fglyph_type):
6050         * glyphs.c (redisplay_subwindow):
6051         * glyphs.c (display_table_entry):
6052         * gtk-glue.c (xemacs_list_to_gtklist):
6053         * gtk-glue.c (xemacs_gtklist_to_list):
6054         * gtk-glue.c (xemacs_list_to_array):
6055         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6056         * gutter.c (gutter_was_visible):
6057         * gutter.c (get_gutter_coords):
6058         * input-method-xlib.c (get_XIM_input):
6059         * insdel.c (bufpos_to_bytind_func):
6060         * insdel.c (bytind_to_bufpos_func):
6061         * insdel.c (move_gap):
6062         * intl.c (x_get_composed_input):
6063         * keymap.c (keymap_lookup_directly):
6064         * keymap.c (keymap_delete_inverse_internal):
6065         * keymap.c (ensure_meta_prefix_char_keymapp):
6066         * keymap.c (accessible_keymaps_mapper_1):
6067         * keymap.c (where_is_recursive_mapper):
6068         * lisp.h:
6069         * lisp.h (ABORT):
6070         * lread.c (read_atom):
6071         * lstream.c (Lstream_delete):
6072         * lstream.c (make_lisp_buffer_stream_1):
6073         * macros.c (pop_kbd_macro_event):
6074         * malloc.c (malloc):
6075         * malloc.c (free):
6076         * marker.c (bi_marker_position):
6077         * marker.c (set_bi_marker_position):
6078         * menubar-gtk.c (menu_descriptor_to_widget_1):
6079         * menubar-msw.c (prune_menubar):
6080         * menubar-x.c (set_frame_menubar):
6081         * mule-charset.c (get_unallocated_leading_byte):
6082         * mule-charset.h (CHAR_LEADING_BYTE):
6083         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6084         * nt.c (init_environment):
6085         * nt.c (generate_inode_val):
6086         * ntproc.c (delete_child):
6087         * ntproc.c (_sys_read_ahead):
6088         * ntproc.c (create_child):
6089         * objects.c (color_instantiate):
6090         * objects.c (font_instantiate):
6091         * objects.c (face_boolean_instantiate):
6092         * print.c (printing_major_badness):
6093         * process-nt.c (nt_send_process):
6094         * process-unix.c (unix_send_process):
6095         * process.c (get_process):
6096         * ralloc.c (obtain):
6097         * ralloc.c (relinquish):
6098         * ralloc.c (relocate_blocs):
6099         * ralloc.c (resize_bloc):
6100         * ralloc.c (r_alloc_free):
6101         * ralloc.c (r_re_alloc):
6102         * ralloc.c (r_alloc_thaw):
6103         * ralloc.c (init_ralloc):
6104         * ralloc.c (Free_Addr_Block):
6105         * ralloc.c (r_alloc):
6106         * redisplay-gtk.c (gtk_output_display_block):
6107         * redisplay-msw.c (mswindows_output_display_block):
6108         * redisplay-output.c (get_next_display_block):
6109         * redisplay-output.c (get_cursor_size_and_location):
6110         * redisplay-output.c (redisplay_output_layout):
6111         * redisplay-output.c (redisplay_clear_region):
6112         * redisplay-tty.c (tty_output_display_block):
6113         * redisplay-x.c (x_output_display_block):
6114         * redisplay.c (add_propagation_runes):
6115         * redisplay.c (add_glyph_rune):
6116         * redisplay.c (create_text_block):
6117         * redisplay.c (add_margin_runes):
6118         * redisplay.c (create_left_glyph_block):
6119         * redisplay.c (create_right_glyph_block):
6120         * redisplay.c (create_string_text_block):
6121         * redisplay.c (regenerate_window):
6122         * redisplay.c (REGEN_INC_FIND_START_END):
6123         * redisplay.c (redisplay_frame):
6124         * redisplay.c (point_in_line_start_cache):
6125         * regex.c:
6126         * regex.c (ABORT):
6127         * regex.c (re_compile_fastmap):
6128         * regex.c (re_match_2_internal):
6129         * regex.c (regerror):
6130         * scrollbar-gtk.c (gtk_scrollbar_loop):
6131         * scrollbar-gtk.c (scrollbar_cb):
6132         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6133         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6134         * scrollbar-x.c (x_update_scrollbar_instance_status):
6135         * scrollbar-x.c (x_scrollbar_loop):
6136         * scrollbar-x.c (x_update_frame_scrollbars):
6137         * search.c (search_command):
6138         * search.c (Fmatch_data):
6139         * select-x.c (motif_clipboard_cb):
6140         * signal.c (interrupt_signal):
6141         * specifier.c (specifier_add_spec):
6142         * specifier.c (specifier_instance_from_inst_list):
6143         * specifier.c (specifier_instance):
6144         * specifier.h:
6145         * specifier.h (struct specifier_methods):
6146         * strftime.c (add_num_time_t):
6147         * sunplay.c (init_device):
6148         * symbols.c (Fsetplist):
6149         * symbols.c (do_symval_forwarding):
6150         * symbols.c (store_symval_forwarding):
6151         * symbols.c (Fset):
6152         * symbols.c (Fbuilt_in_variable_type):
6153         * symbols.c (decode_magic_handler_type):
6154         * symbols.c (handler_type_from_function_symbol):
6155         * syntax.c (update_syntax_cache):
6156         * sysdep.c (init_baud_rate):
6157         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6158         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6159         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6160         * toolbar.c (get_toolbar_coords):
6161         * ui-gtk.c (build_gtk_boxed):
6162         * ui-gtk.c (describe_gtk_arg):
6163         * ui-gtk.c (gtk_type_to_lisp):
6164         * ui-gtk.c (lisp_to_gtk_type):
6165         * ui-gtk.c (lisp_to_gtk_ret_type):
6166         * ui-gtk.c (lisp_to_flag):
6167         * unexnt.c (read_in_bss):
6168         * unexnt.c (map_in_heap):
6169         * window.c (real_window):
6170         * window.c (window_display_lines):
6171         * window.c (window_display_buffer):
6172         * window.c (set_window_display_buffer):
6173         * window.c (window_modeline_height):
6174         * window.c (unshow_buffer):
6175         * window.c (window_loop):
6176         * window.c (Fget_lru_window):
6177         * window.c (Fsplit_window):
6178         * window.c (Fset_window_configuration):
6179         * window.c (saved_window_index):
6180         * xgccache.c (gc_cache_lookup):
6181         abort() -> ABORT().  Eliminate preprocessor games with abort()
6182         since it creates huge problems in VC7, solvable only by including
6183         massive amounts of files in every compile (and not worth it).
6184
6185         * sysdep.c:
6186         * sysproc.h:
6187         Inclusion of process.h does not need to be before lisp.h any more.
6188         Move later and remove comment about abort().
6189
6190 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6191
6192         * regex.c (re_match_2_internal):
6193         Correctly initialize loop which clears uninitialized registers.
6194
6195 2005-01-28  Vin Shelton  <acs@xemacs.org>
6196
6197         * sheap.c (more_static_core): Applied Ben's version of the long
6198         string patch.
6199
6200 2005-01-24  Vin Shelton  <acs@xemacs.org>
6201
6202         * sheap.c (more_static_core): Reformatted printf string so
6203         gcc-3.3.3 will compile this on Cygwin.
6204
6205 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6206
6207         * console.c (function_key_map): Reference `key-binding'.
6208
6209         * keymap.c (Vkey_translation_map): Improve docstring.
6210
6211 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6212
6213         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6214         * window.c (window_loop): [fix] Take into account
6215         `allow-deletion-of-last-visible-frame' variable.
6216         * window.c (replace-buffer-in-windows): Ditto.
6217
6218 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6219
6220         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6221
6222 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6223
6224         * event-gtk.c: Recognise AltGr as a valid modifier.
6225
6226 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6227
6228         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6229
6230 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6231
6232         Fix backreference bug caught by test suite.
6233
6234         * regex.c (regex_compile):
6235         Make backref duplicate internal register.
6236
6237 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6238
6239         Documentation, code clarification, and warning suppression.
6240         
6241         * regex.c (regex_compile):
6242         Improve comments.
6243         (re_match_2_internal):
6244         Improve comments and avoid redundant braces.  [Most of the big hunk
6245         at l. 4710 is indentation; use diff -w to see the real changes.]
6246         (alt_match_null_string_p):
6247         (common_op_match_null_string_p):
6248         Avoid shadowing global on Mac OS X 10.4, at least.
6249
6250 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6251
6252         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6253         introduced with shy groups fix).  [Already applied, probably
6254         with the second "fix shy groups" patch of 2004-10-07.] 
6255
6256 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6257
6258         From Andrey Slusar <anrays@gmail.com>:
6259
6260         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6261
6262 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6263
6264         * Makefile (RECURSIVE_MAKE): Removed.
6265         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6266         handling parallel builds.
6267
6268 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6269
6270         * Makefile.in.in: Enable support for parallel builds.
6271
6272 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6273
6274         From Andrey Slusar <anrays@gmail.com>:
6275
6276         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6277         FreeBSD version is >= 199701 _and_ < 600006.
6278
6279 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6280
6281         * scrollbar.c (compute_scrollbar_instance_usage):
6282         Only call device method compute_scrollbar_instance_usage() if it
6283         is defined.
6284
6285 2004-12-05  Vin Shelton <acs@xemacs.org>
6286
6287         * XEmacs 21.4.16 is released
6288
6289 2004-12-04  Vin Shelton  <acs@xemacs.org>
6290
6291         * depend: Regenerated.
6292
6293 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6294
6295         * regex.c (re_match_2_internal): Map internal to external
6296         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6297         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6298
6299 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6300
6301         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6302         to fix a crash.  Also, check the buffer is live and it
6303         really exists in buffer_list.  If the buffer is not in the list,
6304         prepend it.
6305
6306 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6307
6308         Fix shy groups by implementing recording of all groups for
6309         repetition and backtracking.  Backport from 21.5.
6310         
6311         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6312         external_to_internal_register, external_to_internal_register_size,
6313         and update comments for re_nsub.
6314
6315         * regex.c (re_opcode_t): Update comments.
6316         (print_compiled_pattern): Ouput external_to_internal_register,
6317         external_to_internal_register_size, and re_ngroups for debugging.
6318         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6319         (regex_compile): Update header comment.
6320         Ensure that all groups are recorded so that repeat matches and
6321         backtracking work correctly.  Comment related warning for groups >
6322         255.
6323         (re_search_2): Construct map of API indexes (which count only
6324         nonshy groups) to internal register numbers, and keep it updated.
6325
6326 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6327
6328         * frame-gtk.c (gtk_make_frame_visible):
6329         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6330         show/hide.  This is what X uses and is prevents previously hidden
6331         widgets from suddenly reappearing.
6332         * gtk-xemacs.c (gtk_xemacs_paint):
6333         * gtk-xemacs.c (gtk_xemacs_draw):
6334         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6335         drawable.
6336         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6337         size and location changes so that they can be seen before the next
6338         idle event.  Without this rapid changes to scrollbar properties
6339         are not seen.
6340
6341 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6342
6343         * console-gtk.h:
6344         * console-gtk.h (struct gtk_frame):
6345         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6346           Add hash tables track tab_control callback data.
6347           Added #defines for GTK object data names.
6348           Declaration of gtk_widget_to_frame().
6349         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6350         * frame-gtk.c (gtk_widget_to_frame): New.
6351         * frame-gtk.c (gtk_create_widgets):
6352         * frame-gtk.c (allocate_gtk_frame_struct):
6353         * frame-gtk.c (gtk_mark_frame):
6354         Manage frame callbakc hash tables.
6355         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6356         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6357         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6358         of widget size.
6359         * glyphs-gtk.c (gtk_widget_query_geometry): New
6360         * glyphs-gtk.c (gtk_register_gui_item): New
6361         * glyphs-gtk.c (gtk_add_tab_item): New
6362         * glyphs-gtk.c (gtk_tab_control_callback): New
6363         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6364         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6365         Use correct list when loading item.
6366         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6367         Register new methods.
6368         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6369         default size, for widgets.
6370         * gui-x.c:  Improved comment.
6371         * menubar-gtk.c (__generic_button_callback): Use
6372         gtk_widget_to_frame instead of __get_channel.
6373         * scrollbar-gtk.c:
6374         * ui-gtk.c: Use symbolic names for GTK object data.
6375
6376 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6377
6378         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6379
6380 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6381
6382         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6383
6384 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6385
6386         * malloc.c (morecore): siz is a long because in some architectures
6387         (eg ia-64) an int cannot hold the address range.  Additional patch
6388         from the SuSe distribution.
6389
6390 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6391
6392         * emacs.c:
6393         * malloc.c: lim_data is a long because in some architectures
6394         (eg ia-64) an int cannot hold the address range.
6395         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6396         instead of ulimit() because ulimit() always returns -1.
6397
6398 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6399
6400         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6401
6402 2004-06-11  David Kastrup  <dak@gnu.org>
6403
6404         * search.c (match_limit): Don't flag an error if match-data
6405         exceeding the allocated search_regs.num_regs gets requested, just
6406         return Qnil.
6407
6408 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6409
6410         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6411         replace symbolic color entries with the real colors specified in
6412         xpm-color-symbols, before passing the XPM to gtk.
6413         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6414         instead of a GTK specific field, so that it is used in by generic
6415         code.
6416
6417 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6418
6419        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6420         coredump from deref of NULL ptr (ExtData)
6421
6422 2004-04-19  Jerry James  <james@xemacs.org>
6423
6424         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6425         VALBITS to compute the location of the sign bit.
6426         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6427         of VALBITS with EMACS_INT_MAX.
6428         * events.c (Fevent_timestamp): Ditto.
6429         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6430         compute the halfway point to timestamp wraparound.
6431         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6432         EMACS_INT_MIN instead of using VALBITS.
6433         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6434         incorrect number with VALBITS.
6435         * fns.c (Frandom): Correct number of integer bits in docstring.
6436         Use INT_VALBITS instead of VALBITS to compute the denominator.
6437         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6438         build random numbers.
6439
6440 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6441         * event-gtk.c:
6442         * event-gtk.c (gtk_event_to_emacs_event):
6443         * menubar-gtk.c:
6444         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6445         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6446         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6447         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6448         * menubar-gtk.c (__activate_menu):
6449         * menubar-gtk.c (convert_underscores):
6450         * menubar-gtk.c (remove_underscores):
6451         * menubar-gtk.c (menu_convert):
6452         * menubar-gtk.c (menu_descriptor_to_widget_1):
6453         * menubar-gtk.c (menu_descriptor_to_widget):
6454         * menubar-gtk.c (menu_can_reuse_widget):
6455         * menubar-gtk.c (menu_create_menubar):
6456         * menubar-gtk.c (gtk_popup_menu):
6457         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6458         Added support for Gtk menu bar and menu item mnemonics.
6459
6460 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6461
6462         * sysdll.c: (dll_function): Added support for finding symbols in
6463         Darwin shared libraries as well in Darwin bundles.
6464         * sysdll.c (image_for_address): New
6465         * sysdll.c (my_find_image): New
6466         * sysdll.c (search_linked_libs): New
6467
6468 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6469
6470         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6471         return to GTK requires a different API to marshalling data to use
6472         as GTK parameters.
6473         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6474
6475 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6476
6477         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6478
6479 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6480
6481         * glyphs.c (process_image_string_instantiator):
6482         (Fset_console_type_image_conversion_list):
6483         Stop GCC from warning about shadowing of `exp'.
6484
6485         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6486
6487 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6488
6489         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6490
6491 2004-02-03  Vin Shelton  <acs@xemacs.org>
6492
6493         * glyphs.c (image_instance_layout): Remove pointless assertion.
6494         * regex.c (regex_grow_registers): Return type is void.
6495
6496 2004-02-02  Vin Shelton <acs@xemacs.org>
6497
6498         * XEmacs 21.4.15 is released
6499
6500 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6501
6502         * device-x.c (x_error_handler): Don't call stderr_out
6503
6504 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6505
6506         * buffer.c (other-buffer): Clarify documentation of order of
6507         arguments for FSF Emacs.
6508
6509 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6510
6511         * window.c (Fdelete_window): Dirty the mirror structure _before_
6512         marking the window deleted.
6513
6514 2003-09-15  Jerry James  <james@xemacs.org>
6515
6516         * event-msw.c (debug_mswin_messages): Conditionally compile
6517         messages missing from the Cygwin headers.
6518
6519 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6520
6521         * data.c (eq_with_ebola_notice): Fix typo in comment.
6522         (Ftrue_list_p): Improve docstring.
6523
6524 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6525
6526         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6527
6528 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6529
6530         * search.c (trivial_regexp_p): Regexps containing "\{" are
6531         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6532         Stefan Monnier for suggesting a diagnosis.
6533
6534 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6535
6536         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6537
6538 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6539
6540         * search.c (Fsearch_forward):
6541         (Fsearch_backward):
6542         Document negative count.
6543
6544 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6545
6546         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6547
6548 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6549
6550         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6551
6552 2003-09-15  Vin Shelton  <acs@xemacs.org>
6553
6554         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6555         21.5.
6556
6557 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6558
6559         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6560         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6561         (re_match_2_internal): Use TRANSLATE instead of
6562         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6563         non-ASCII char case conversion.
6564
6565 2003-09-08  Mike Sperber  <mike@xemacs.org>
6566
6567         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6568         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6569
6570 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6571
6572        * .gdbinit (pobj): fix printing of symbol name.
6573
6574 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6575
6576         * frame-x.c (x_layout_widgets): When resizing is about to cause
6577         frame size slip, mark it for redisplay.
6578
6579 2003-08-18  Jerry James  <james@xemacs.org>
6580
6581         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6582
6583 2003-09-03  Vin Shelton <acs@xemacs.org>
6584
6585         * XEmacs 21.4.14 is released
6586
6587 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6588
6589         * config.h.in (REGEX_MALLOC): Make it configure'able.
6590
6591 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6592
6593         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6594         linking.
6595         * sysdll.c (dll_init):
6596         * sysdll.c (dll_open):
6597         * sysdll.c (dll_close):
6598         * sysdll.c (dll_function):
6599         * sysdll.c (dll_variable):
6600         * sysdll.c (dll_error):
6601         Add support for loading bundles using Darwin/MacOSX
6602         native API.
6603
6604 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6605
6606         * process.c (start-process-internal): Document coding systems.
6607
6608 2003-07-30  Jerry James  <james@xemacs.org>
6609
6610         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6611
6612 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
6613
6614         * event-msw.c (mswindows_enqueue_mouse_button_event):
6615         * event-msw.c (mswindows_wnd_proc):
6616           enqueue button event when scrollwheel event isn't handled by 
6617           mswindows_handle_mousewheel_event, such as when the scrollbars
6618           are not showing.
6619
6620 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
6621
6622         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
6623
6624 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
6625
6626         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
6627
6628 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
6629
6630         * regex.c (re_match_2_internal): Fix matching degenerate word
6631         boundaries.
6632
6633 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
6634
6635         * XEmacs 21.4.13 is released
6636
6637 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
6638
6639         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
6640         * lisp.h (<inttypes.h>):
6641         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
6642         the definition.
6643
6644 2003-03-15  Martin Buchholz  <martin@xemacs.org>
6645
6646         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
6647         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
6648         Result: "temacs can only be run in -batch mode."
6649         Fix: Check xemacs executable candidate for directory-ness.
6650
6651 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
6652
6653         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
6654           they conflict with <sys/types.h>.
6655
6656 2003-02-14  Martin Buchholz  <martin@xemacs.org>
6657
6658         * database.c: Berkeley DB wants __STDC__ to be defined.
6659
6660 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6661
6662         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
6663
6664 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6665
6666         * process-unix.c (unix_send_process): Fix C++ compile error.
6667
6668 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
6669
6670         * Added .dylib as an acceptable shared library file extension
6671         * to support MacOSX.
6672
6673 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6674
6675         * EmacsFrameP.h (EmacsFramePart):
6676         Kludge to allow compiling with Motif1, but linking with Motif2.
6677
6678 2003-01-28  Martin Buchholz  <martin@xemacs.org>
6679
6680         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
6681
6682
6683 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
6684
6685         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
6686
6687 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
6688
6689         * sysdll.c: Included lisp.h to define needed alloca_array.
6690
6691 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6692
6693         Make XEmacs redisplay 10 times faster.
6694         If, that is, you're using a slow X connection and MoveOpaque.
6695         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
6696         Use compress_motion = TRUE.
6697         * EmacsFrame.c (emacsFrameClassRec): 
6698         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
6699         * EmacsManager.c (emacsManagerClassRec):
6700         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
6701
6702 2003-01-30  Vin Shelton  <acs@xemacs.org>
6703
6704         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
6705
6706 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
6707
6708         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
6709         Patch by Martin Buchholz.
6710
6711 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
6712
6713         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
6714         Thanks to icc for warning and Martin Buchholz for reporting.
6715
6716 2003-01-29  Vin Shelton <acs@xemacs.org>
6717
6718         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
6719
6720         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
6721         remember to multiply by the element size.
6722
6723 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
6724
6725         * XEmacs 21.4.12 "Portable Code" is released.
6726
6727 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
6728
6729         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
6730         * s/cygwin.sc: new linker file.
6731
6732 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
6733
6734         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
6735
6736         * redisplay-x.c (x_output_string): Use X11-specified types.
6737         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
6738         * emacs.c (__free_hook): Use typeof with Intel compiler.
6739         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
6740
6741 2003-01-08  Andy Piper  <andy@xemacs.org>
6742
6743         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
6744         reserve size during unexec().
6745
6746 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
6747
6748         * process-unix.c (unix_create_process): Don't let outchannel block.
6749
6750 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
6751
6752         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
6753         Needed for IsBadReadPtr().
6754
6755 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
6756
6757         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
6758
6759 2002-12-14  Ben Wing  <ben@xemacs.org>
6760
6761         * callint.c: Declaration error.
6762         * dumper.c (pdump):
6763         * dumper.c (pdump_load): Warning fix.
6764         * process.c: GCPRO error.
6765         * glyphs.c (unmap_subwindow):
6766         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
6767         * event-stream.c (maybe_kbd_translate): Wrong argument to
6768         character_to_event().
6769
6770         * alloc.c (garbage_collect_1):
6771         * emacs.c:
6772         * emacs.c (debug_can_access_memory):
6773         * emacs.c (fatal_error_signal):
6774         * emacs.c (mswindows_handle_hardware_exceptions):
6775         * emacs.c (main_1):
6776         * emacs.c (main):
6777         * emacs.c (assert_failed):
6778         * emacs.c (syms_of_emacs):
6779         * lisp.h:
6780         * print.c:
6781         * print.c (std_handle_out_va):
6782         * print.c (write_string_to_stdio_stream):
6783         * print.c (write_fmt_string):
6784         * print.c (printing_badness):
6785         * print.c (printing_major_badness):
6786         * print.c (print_internal):
6787         * print.c (debug_print_no_newline):
6788         * print.c (debug_backtrace):
6789         Be more defensive in handling bad values when printing.  Add code
6790         from trunk involving inhibit_non_essential_printing_operations.
6791         When going down or in debug_print(), don't do external conversion
6792         and such and try really, really hard when printing to avoid core
6793         dumping.  Add force-debugging-signal, debug_break().
6794
6795 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
6796
6797         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
6798         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
6799
6800 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
6801
6802         * database.c: Fix open_database. Berkeley DB API has changed in
6803         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
6804
6805 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
6806
6807         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
6808
6809 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
6810
6811         * event-Xt.c (Xt_timeout):
6812         (Xt_timeout_callback):
6813         (emacs_Xt_add_timeout):
6814         (emacs_Xt_remove_timeout):
6815         (Xt_timeout_to_emacs_event):
6816         Turn completed_timeouts from a stack into a queue.  Fixes
6817         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
6818
6819 2002-11-07  Wolfram Gloger  <wg@malloc.de>
6820
6821         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
6822         * emacs.c (main): Assert that mmap'd allocation is disabled.
6823
6824 2002-10-14  Andy Piper  <andy@xemacs.org>
6825
6826         * glyphs-widget.c (layout_query_geometry): add in fiddle
6827         factor. Include border text in width layout calculation.
6828         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
6829
6830 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
6831
6832         * XEmacs 21.4.10 "Military Intelligence" is released.
6833
6834 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
6835
6836         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
6837         using the NAS private array SoundFileInfo that no longer exists in
6838         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
6839         and earlier.  This is broken for some versions between 1.5a and
6840         1.5f.
6841
6842 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
6843
6844         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
6845
6846         * emacs.c (shut_down_emacs): Improve crash message.
6847
6848 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
6849
6850         * file-coding.c (determine_real_coding_system): Check for coding
6851         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
6852         shebangs and Python PEP 263.
6853
6854 2002-10-08  Andy Piper  <andy@xemacs.org>
6855
6856         * glyphs-widget.c (layout_query_geometry): only resize dynamically
6857         if static sizes haven't been set.
6858
6859 2002-08-30  Mike Alexander  <mta@arbortext.com>
6860
6861         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
6862         to close a socket.
6863
6864 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
6865
6866         * callproc.c (child_setup): 21.4 doesn't have retry_close.
6867
6868 2002-09-20  Mike Sperber <mike@xemacs.org>
6869
6870         (This partially gets back my patch from 2002-07-20 without the
6871         bug.)
6872         * callproc.c (child_setup): Remove Ben's comment noting confusion
6873         over the file descriptors >= 3: close_process_descs() doesn't
6874         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
6875         * process-unix.c (unix_create_process): Call
6876         begin_dont_check_for_quit to inhibit unwanted interaction (and
6877         thus breaking of X event synchronicity) in the child.
6878
6879 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
6880
6881         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
6882         widget.
6883
6884 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
6885
6886         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
6887         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
6888         the xemacs process did not exit, but looped infinitely here.  This
6889         fixes that problem.
6890
6891 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6892
6893         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
6894         (find_context): Improve comments.
6895
6896         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
6897         (re_match_2): An XCHAR_TABLE operation was missing.
6898
6899         Many of the following changes were inspired by Andy Piper's (now
6900         obsolete) patch to make syntax-table text property lookup optional.
6901
6902         [Documentation]
6903
6904         * syntax.h (top level): Document semantics of syntax flags.
6905         * syntax.c (comstr_start, Fforward_comment): Improve comments.
6906         * syntax.c, syntax.h (top level): Document syntax cache better in
6907         comments.
6908
6909         [Instrument syntax caching (temporary change)]
6910
6911         * syntax.h (enum syntax_cache_statistics_functions, struct
6912         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
6913         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
6914         * syntax.c (scan_words, Fforward_comment, scan_lists,
6915         Fbackward_prefix_characters):
6916         * font-lock.c (find_context):
6917         Use them to instrument syntax caching. 
6918         * syntax.c (struct syntax_cache_statistics, scs_statistics,
6919         syntax_cache_statistics_function_names): New type and variables.
6920         * syntax.c (update_syntax_cache): Update and report statistics.
6921
6922         [Major syntax cache optimizations]
6923
6924         syntax.c (lookup_syntax_properties): Default off.
6925
6926         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
6927         * syntax.c (update_syntax_cache):
6928         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
6929
6930         [Minor syntax cache optimizations and code clarifications]
6931
6932         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
6933         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
6934         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
6935         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
6936         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
6937         (Code clarification.)
6938
6939         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
6940         scan_lists): Compute code from syncode, use Boolean macros instead
6941         of redundant masking operations.  (Code clarification; any decent
6942         compiler can do this optimization.)
6943
6944         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
6945         for clarity.
6946
6947         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
6948         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
6949         use F*_single_property_change instead of F*_extent_change.
6950         Currently F*_single_property_change is _much_ less efficient.
6951
6952         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
6953         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
6954         syntax_cache.object properly, don't leave Qt or Qnil.
6955         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
6956         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
6957         tests for Qt or Qnil.
6958
6959 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
6960
6961         * redisplay.c (point_in_line_start_cache): 
6962         * extents.c (print_extent_1):
6963         Fix warnings.
6964
6965         * extents.c (Fset_extent_property): Document `syntax-table' property.
6966
6967         * extents.h (Fnext_single_property_change): EXFUN it.
6968
6969 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6970
6971         * search.c (clear_unused_search_regs): New static function.
6972         (search_buffer): 
6973         (simple_search): 
6974         (boyer_moore):
6975         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
6976         Minor clarifications in comments.
6977
6978         * regex.c (re_match_2_internal): Ensure no stale submatches.
6979
6980 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6981
6982         * event-Xt.c (enqueue_focus_event): Add missing prototype.
6983
6984 2002-08-29  Jerry James  <james@xemacs.org>
6985
6986         * lisp.h: structrures -> structures.
6987
6988 2002-06-03  Andy Piper  <andy@xemacs.org>
6989
6990         * frame.c (frame_conversion_internal): add conversion appropriate
6991         for setting frame dimensions in pixels.
6992
6993         * console.h (struct console_methods): add device-specific widget
6994         layout functions.
6995
6996         * emacs.c (main_1): initialize glyph vars.
6997
6998         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
6999         (handle_focus_event_2): new function. Allow focus to
7000         be set to a particular window and widget.
7001         (enqueue_focus_event): new function. Create a
7002         synthetic focus event.
7003         (emacs_Xt_handle_magic_event): call
7004         handle_focus_event_2.
7005
7006         * frame.c (Fset_frame_pixel_height): new function. Allow
7007         pixel-based sizing. Does the right thing on character-oriented
7008         displays.
7009         (Fset_frame_pixel_width): ditto.
7010         (Fset_frame_pixel_size): ditto.
7011         (syms_of_frame): declare.
7012
7013         * general-slots.h: add :vertically-justify and
7014         :horizontally-justify.
7015
7016         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7017         (mswindows_widget_border_width): new function.
7018         (mswindows_combo_box_instantiate): set border widths.
7019         (console_type_create_glyphs_mswindows): declare.
7020
7021         * glyphs-widget.c:
7022         (check_valid_justification): allow vertical and horizontal
7023         justification.
7024         (widget_border_width): new function. Call device methods.
7025         (widget_instance_border_width): ditto.
7026         (logical_unit_height): new function. Determine the height of a
7027         logical-unit. Logical units are intended to provide grid-like
7028         layout for subcontrols in a layout. If the layout is
7029         :vertically-justify top then subcontrols will be positioned on
7030         logical-unit boundaries, thus allowing adjacent subcontrols to
7031         line up.
7032         (widget_logical_unit_height): ditto for widgets.
7033         (redisplay_widget): misc cleanup.
7034         (widget_spacing): new function. Call device specific
7035         methods. Intended to be the default gap between adjacent widgets.
7036         (widget_query_geometry): use new spacing functions to determine
7037         appropriate geometry.
7038         (initialize_widget_image_instance): initialize horizontal and
7039         vertical justification.
7040         (widget_instantiate): use logica-units where appropriate for
7041         sizing large widgets.
7042         (button_query_geometry): use widget_instance_border_width.
7043         (tree_view_query_geometry): ditto.
7044         (tab_control_query_geometry): ditto.
7045         (edit_field_query_geometry): new function.
7046         (layout_update): pick up :justify, :horizontally-justify and
7047         :vertically-justify none of which worked previously. :justify is
7048         used as a fallback for both horizontal and vertical justification.
7049         (layout_query_geometry): use logical units to size appropriately.
7050         (layout_layout): ditto.
7051         (Fwidget_logical_to_character_width): new function. Allow users to
7052         convert from logical units to characters so that frame sizes can
7053         be set appropriately.
7054         (Fwidget_logical_to_character_height): ditto.
7055         (syms_of_glyphs_widget): declare.
7056         (image_instantiator_edit_fields): add edit_field_query_geometry.
7057         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7058         :horizontally-justify.
7059         (specifier_vars_of_glyphs_widget): new function. Declare
7060         Vwidget_border_width which is not yet used.
7061
7062         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7063         (x_widget_border_width): new function.
7064         (x_widget_instantiate): create a sensible name for widgets.
7065         (console_type_create_glyphs_x): declare x_widget_border_width.
7066
7067         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7068         (struct Lisp_Image_Instance): add :vertically-justify and
7069         :horizontally-justify.
7070         (LAYOUT_JUSTIFY_TOP): new.
7071         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7072         (ROUND_UP): new macro. Round argument up to next integral
7073         interval.
7074
7075         * redisplay-output.c (redisplay_output_layout): misc formatting.
7076
7077         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7078
7079 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7080
7081         * XEmacs 21.4.9 "Informed Management" is released.
7082
7083 2002-08-19  Andy Piper  <andy@xemacs.org>
7084
7085         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7086         win32 format.
7087
7088         * realpath.c (xrealpath): normalize drive spec also so that dir
7089         sep chars are not mixed on cygwin.
7090
7091 2002-08-06  Jerry James  <james@xemacs.org>
7092
7093         * window.c (Fsplit_window): Count only half of the divider width
7094         against the left window when splitting horizontally. 
7095
7096 2002-06-24  Andy Piper  <andy@xemacs.org>
7097
7098         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7099         toolbar was cleared.
7100
7101         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7102         function. Split out from mswindows_output_frame_toolbars.
7103         (mswindows_output_frame_toolbars): move clear pieces to
7104         mswindows_output_frame_toolbars.
7105
7106         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7107         out from gtk_output_frame_toolbars.
7108         (gtk_output_frame_toolbars): move clear pieces to
7109         gtk_clear_frame_toolbars.
7110
7111         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7112         the frame is cleared. How this ever worked before is a mystery.
7113         (x_output_frame_toolbars): Only output toolbars.
7114         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7115
7116         * gutter.c (update_gutter_geometry):
7117         Mark frame layout changed.
7118         (update_frame_gutter_geometry, update_frame_gutters):
7119         Respect frame_layout_changed.
7120
7121         * console.h (struct console_methods): add
7122         clear_frame_toolbars_method.
7123
7124         * redisplay.c (redisplay_frame): call
7125         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7126
7127         * toolbar.h: declare update_frame_toolbars_geometry.
7128
7129         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7130         out from update_frame_toolbars.  Call clear_frame_toolbars.
7131         (update_frame_toolbars): only output, do not change geometry.
7132
7133         * redisplay.c: add frame_layout_changed.
7134
7135         * redisplay.h: add frame_layout_changed.
7136         (CLASS_RESET_CHANGED_FLAGS): set it.
7137         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7138         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7139         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7140
7141         * device.h (struct device): add frame_layout_changed.
7142         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7143
7144         * frame.h (struct frame): add frame_layout_changed.
7145         (MARK_FRAME_LAYOUT_CHANGED): new.
7146
7147 2002-06-30  Mike Alexander  <mta@arbortext.com>
7148
7149         * event-msw.c (mswindows_need_event): Don't wait for a new message
7150         if the queue is not empty.  Suggested by Paul Moore.
7151
7152 2002-06-12  Andy Piper  <andy@xemacs.org>
7153
7154         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7155         for printing on accurately.
7156
7157 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7158
7159         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7160         WM_ACTIVATE message. Make sure that the frame is visible if the
7161         window is visible. This seemss to fix the problem where XEmacs
7162         appears to freeze after switching desktops with certain virtual
7163         window managers.
7164         (debug_output_mswin_message): Added code to output message
7165         parameters for WM_WINDOWPOSCHANGED, 
7166         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7167
7168 2002-05-25  Andy Piper  <andy@xemacs.org>
7169
7170         * select-x.c (vars_of_select_x): Fix docstring of
7171         x-selection-strict-motif-ownership
7172
7173 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7174
7175         * keymap.c (get_keymap):
7176         Add comment about do_autoload GCPROs own args.
7177
7178 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7179
7180         * bytecode.c (execute_optimized_program): check_opcode ifdef
7181         ERROR_CHECK_BYTE_CODE.
7182
7183 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7184
7185         Thanks to Ben Wing and Michael Sperber.
7186
7187         * eval.c (Fcommand_execute):
7188         (Feval):
7189         (Ffuncall):
7190         (Fmacroexpand_internal):
7191         (function_argcount):
7192         callint.c (Fcall_interactively):
7193         Add comment about do_autoload GCPROs own args.
7194
7195         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7196
7197         * eval.c (Ffuncall): Extra braces to placate GCC.
7198
7199 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7200
7201         * backtrace.h (grow_specpdl):
7202         (SPECPDL_RESERVE):
7203         * EmacsFrame.c (EmacsFrameSetValues):
7204         * eval.c (grow_specpdl):
7205         * ExternalShell.c (hack_event_masks_1):
7206         * glyphs-x.c (convert_EImage_to_XImage): 
7207         (x_finalize_image_instance):
7208         * ralloc.c (page_size):
7209         (r_alloc_sbrk):
7210         * xgccache.c (gc_cache_hash):
7211         Fix unsigned comparison warnings.
7212
7213 2002-07-29  Jerry James  <james@xemacs.org>
7214
7215         * lread.c (locate_file): Any nonnegative return value indicates
7216         success if MODE is nonnegative.
7217
7218 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7219
7220         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7221         argument. 
7222
7223 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7224
7225         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7226
7227         * dumper.c (pdump_get_indirect_count):
7228         (pdump_scan_by_alignment):
7229         (pdump_dump_root_struct_ptrs):
7230         (pdump_dump_rtables):
7231         (pdump_dump_root_objects):
7232         (pdump):
7233         * nas.c (WaveOpenDataForReading):
7234         * fns.c (print_bit_vector):
7235         * font-lock.c (SINGLE_SYNTAX_STYLE):
7236         * glyphs.c (check_for_ignored_expose):
7237         (find_matching_subwindow):
7238         * glyphs-eimage.c:
7239         * imgproc.c (get_histogram):
7240         * redisplay.c (point_in_line_start_cache):
7241         * redisplay-output.c (redisplay_unmap_subwindows):
7242         * symbols.c (defsymbol_massage_name_1):
7243         (defkeyword_massage_name):
7244         (deferror_massage_name_and_message):
7245         * redisplay-x.c (x_output_string): 
7246         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7247         * frame.h (struct frame):
7248         * filelock.c (current_lock_owner):
7249         * doprnt.c (emacs_doprnt_1):
7250         * lisp.h (struct Lisp_Bit_Vector):
7251         (DO_REALLOC):
7252         Fix warnings.
7253
7254 2002-02-13  Ben Wing  <ben@xemacs.org>
7255
7256         * event-stream.c (reset_key_echo):
7257         * event-stream.c (reset_this_command_keys):
7258         * event-stream.c (execute_command_event):
7259         If console is dead as a result of C-x 5 0, then post-command stuff
7260         needs to be careful and do only non-console-specific stuff.
7261
7262 2002-07-01  Mike Sperber <mike@xemacs.org>
7263
7264         * process-unix.c (unix_send_process): Mark coding_outstream as
7265         non-open upon SIGPIPE.
7266
7267         * event-stream.c (Fnext_event): Reorder switch cases to something
7268         that makes sense.
7269
7270 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7271
7272         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7273         Don't bogusly reinitialize ascii_character property.
7274
7275 2002-07-08  Mike Sperber <mike@xemacs.org>
7276
7277         * process.c (Fstart_process_internal): Do error checking before we
7278         fork off the child, so the child can't muck with the state of the
7279         parent.
7280
7281 2002-07-08  Mike Sperber <mike@xemacs.org>
7282
7283         * ralloc.c (init_ralloc): Allocate properly for pdump.
7284
7285 2002-06-12  Andy Piper  <andy@xemacs.org>
7286
7287         * glyphs.c (query_string_geometry): check the string.
7288
7289         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7290         widget names.
7291
7292 2002-06-17  Jerry James  <james@xemacs.org>
7293
7294         * sysdll.c: Remove RTLD_GLOBAL initialization.
7295         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7296
7297 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7298
7299         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7300
7301 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7302
7303         * sysdep.c (sys_rename): Make sys_rename work for the case where
7304         Windows rename sets errno to EACCES if target file exists.
7305
7306 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7307
7308         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7309         Fix detection of metric units to work on Win95
7310
7311 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7312
7313         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7314
7315 2002-04-25  Andy Piper  <andy@xemacs.org>
7316
7317         * redisplay.c (create_text_block): Remove extra comment trailer.
7318
7319 2002-04-24  Andy Piper  <andy@xemacs.org>
7320
7321         * redisplay.c (create_text_block): Don't actually add propagation
7322         data if the line ends after we have added a glyph.
7323
7324 2002-04-22  Andy Piper  <andy@xemacs.org>
7325
7326         * extents.c (extent_fragment_update): check for glyphs we have
7327         previously displayed.
7328         * extents.c (print_extent_1): warning removal.
7329         * extents.h: change prototype.
7330         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7331         widths correctly for wide glyphs.
7332         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7333         * redisplay.c (prop_type): add PROP_GLYPH.
7334         * redisplay.c (struct prop_block): add glyph type
7335         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7336         to the propagation data.
7337         * redisplay.c (create_text_block): if there is a glyph in the
7338         propagation data use it to salt extent_fragment_update.
7339         * redisplay.c (create_string_text_block): ditto.
7340
7341 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7342
7343         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7344         * redisplay-output.c (compare_runes): Compare them.
7345         * redisplay.c: Update copyright date.
7346         * redisplay.c (pos_data): Add need_baseline_computation field.
7347         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7348         need_baseline_computation; zero yoffset. Set max_pixmap_height
7349         for all pixmaps, not just automatically positioned ones.
7350         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7351         * redisplay.c (calculate_baseline): New, compute textual baseline.
7352         * redisplay.c (add_glyph_rune): Call them.
7353         * redisplay.c (create_text_block): Likewise.
7354         * redisplay.c (create_overlay_glyph_block): Likewise.
7355         * redisplay.c (add_margin_runes): Likewise.
7356         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7357
7358         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7359         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7360         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7361         * redisplay-msw.c (mswindows_output_string): Likewise.
7362         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7363         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7364         * redisplay-x.c (x_output_display_block): Likewise.
7365
7366 2002-03-28  Ben Wing  <ben@xemacs.org>
7367
7368         * redisplay.c: Fixed bug in redisplay
7369         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7370         and down of the lines, since they're bigger than the line
7371         size. (It was seen most obviously when there's a horizontal scroll
7372         bar, e.g. do C-h a glyph or something like that.) The problem was
7373         that the glyph-contrib-p setting on glyphs was ignored even if it
7374         was set properly, which it wasn't until now.
7375
7376 2002-04-24  Andy Piper  <andy@xemacs.org>
7377
7378         * lisp.h (Dynarr_end): Fix definition.
7379
7380 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7381
7382         * redisplay.c (mark_redisplay): Remove call to
7383         update_frame_window_mirror.
7384
7385 2001-11-15  Andy Piper  <andy@xemacs.org>
7386
7387         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7388         cygwin (again).
7389
7390 2002-02-13  Andy Piper  <andy@xemacs.org>
7391
7392         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7393         we did in fact enqueue the XM_MAPFRAME event.
7394
7395 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7396
7397         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7398         to fix problem switching between virtual desktops under virtuawin
7399         virtual window manager.
7400
7401 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7402
7403         * event-msw.c: Typo fix.
7404         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7405         magic XM_MAPFRAME event has been sent.
7406
7407 2001-11-23  Andy Piper  <andy@xemacs.org>
7408
7409         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7410
7411 2001-11-21  Andy Piper  <andy@xemacs.org>
7412
7413         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7414         mouse events outside the frame.
7415
7416 2002-03-20  Andy Piper  <andy@xemacs.org>
7417
7418         * menubar-msw.c (mswindows_popup_menu): warning removal.
7419         * dialog-msw.c (dialog_popped_down): ditto.
7420
7421 2001-12-11  Andy Piper  <andy@xemacs.org>
7422
7423         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7424         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7425         popup_up_p.
7426         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7427         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7428         * menubar-msw.c (mswindows_popup_menu): ditto.
7429
7430 2001-10-29  Andy Piper  <andy@xemacs.org>
7431
7432         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7433         cancels.
7434
7435 2002-01-03  Andy Piper  <andy@xemacs.org>
7436
7437         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7438         letters.
7439         (xrealpath): ditto.
7440
7441 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7442
7443         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7444         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7445         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7446         Detect and handle case where machine is set up for metric units
7447
7448 2002-04-02  Andy Piper  <andy@xemacs.org>
7449
7450         * dired-msw.c (mswindows_get_files): 
7451         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7452         completely handled by XEmacs. Suggested by Thomas Vogler
7453         <mail@thomas-vogler.de>.
7454
7455 2001-11-14  Andy Piper  <andy@xemacs.org>
7456
7457         * nt.c (REG_ROOT): change registry key to XEmacs.
7458
7459 2002-04-27  Andy Piper  <andy@xemacs.org>
7460
7461         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7462
7463 2002-04-26  Andy Piper  <andy@xemacs.org>
7464
7465         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7466         behavior.
7467
7468 2002-03-14  Mike Alexander  <mta@arbortext.com>
7469
7470         * event-msw.c (mswindows_unwait_process): New, remove process from
7471         wait list
7472         * process-nt.c (nt_finalize_process_data): Call
7473         mswindows_unwait_process
7474         * console-msw.h: Declare mswindows_unwait_process
7475
7476 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7477
7478         * editfns.c (Fdecode_time):
7479         (Fformat_time_string):
7480         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7481         (make_time): Warning elimination (change arg name).
7482
7483 2001-11-24  Andy Piper  <andy@xemacs.org>
7484
7485         * window.c (Fsplit_window): Doc return type.
7486
7487 2002-04-01  Andy Piper  <andy@xemacs.org>
7488
7489         * emacs.c (Fkill_emacs): Only output message box in interactive
7490         mode.
7491
7492 2002-04-26  Andy Piper  <andy@xemacs.org>
7493  
7494         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7495         cygwin.
7496
7497 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7498
7499         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7500         bit platform.
7501
7502 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7503
7504         * XEmacs 21.4.8 "Honest Recruiter" is released.
7505
7506 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7507
7508         Supersedes 2002-04-17 patch.
7509
7510         * process.h (PROCESS_LIVE_P): Use the process status as
7511         evidence of health, not the state of the input stream.
7512         (PROCESS_READABLE_P): Say if the process is readable
7513         from. (It may be dead nonetheless.)
7514         (CHECK_READABLE_PROCESS): Test for that condition.
7515
7516         * process.c (create_process): Use PROCESS_READABLE_P.
7517         (read_process_output, set_process_filter): Likewise.
7518
7519         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7520         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7521
7522         This code is #if 0'd, this is not the time to add new functions:
7523
7524         * process.c (Fprocess_readable_p): Report readability status.
7525         * process.c (Qprocess_readable_p): New, associated symbol...
7526         * process.c (syms_of_process): ... initialize it.
7527
7528 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7529
7530         * XEmacs 21.4.7 "Economic Science" is released.
7531
7532 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7533
7534         * process.h (PROCESS_LIVE_P): Use the process status as
7535         evidence of health, not the state of the input stream.
7536
7537 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7538
7539         * sysdep.c (sys_siglist): change "signum" to "signal"
7540
7541 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7542
7543         * s/darwin.h: New file.
7544         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7545         
7546 2002-04-23  Andreas Jaeger  <aj@suse.de>
7547
7548         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7549         which use lib64 for 64-bit libs.
7550         (START_FILES): Likewise.
7551
7552 2002-02-11  Mike Sperber  <mike@xemacs.org>
7553
7554         * device-x.c: 
7555         (x_IO_error_handler):
7556         (x_init_device): Temporarily keep device in static variable
7557         `device_being_initialized' so we can recover gracefully from
7558         internal XOpenDevice failure.  (XOpenDevice is documented to
7559         return NULL on failure, but sometimes calls the IO error handler
7560         instead.)
7561
7562 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7563
7564         * dired.c (Ffile_name_all_completions): Change documentation --
7565         remove reference to completion-ignored-extensions.
7566         * dired.c (vars_of_dired): Change documentation for
7567         completion-ignored-extensions -- remove reference to
7568         file-name-all-completions.
7569
7570 2002-03-06  Jerry James  <james@xemacs.org>
7571
7572         * emodules.c (emodules_load): Fix multiple loading of same module.
7573
7574 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7575         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7576         RTLD_LAZY to avoid incorrect symbol binding when using nested
7577         shared libraries on Solaris.
7578
7579 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7580
7581         * fileio.c (Ffind_file_name_handler): Improve docstring.
7582
7583 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7584
7585         * fns.c (Fmapconcat): Improve docstring.
7586
7587 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7588
7589         * device-gtk.c: Add prototype for
7590         emacs_gtk_selection_clear_event_handle.
7591         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7592         selection.  Setup signal handler for "selection_clear_event"
7593         (emacs_gtk_selection_clear_event_handle).
7594
7595         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7596         other applications owning the clipboard (based on
7597         x_handle_selection_clear).
7598
7599 2001-12-23  William M. Perry  <wmperry@gnu.org>
7600
7601         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7602         
7603 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7604
7605         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7606
7607 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7608
7609         * XEmacs 21.4.6 "Common Lisp" is released.
7610
7611 2001-12-16  Torsten Duwe  <duwe@caldera.de>
7612
7613         * search.c (Freplace_match): Add missing sub-expression functionality.
7614
7615         * buffer.c (decode_buffer): Add a check for pointer type to
7616         decode_buffer, before gcc's CSE optimization reorders a
7617         dereference in front of the allow_string test.
7618
7619 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
7620
7621         * window.c (window_loop): Fix bug that sometimes prevented
7622         window_loop() from iterating across multiple devices.  Also, at
7623         Ben's request, changed infloop-detecting code to abort() instead
7624         of silently terminating window_loop().
7625
7626 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
7627
7628         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
7629         * editfns.c (make_time): New function.
7630         (Fencode_time): Use it instead of wasteful_word_to_lisp.
7631         * lisp.h (make_time): Prototype and comment it.
7632         * dired.c (wasteful_word_to_lisp): Deprecate.
7633         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
7634
7635 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
7636
7637         * fileio.c (auto_save_1): Use current coding system, not
7638         escape-quoted.
7639
7640 2001-11-13  Ben Wing  <ben@xemacs.org>
7641
7642         * window.c:
7643         * window.c (window_truncation_on):
7644         * window.c (syms_of_window):
7645         truncate-partial-width-windows should respect the buffer being
7646         displayed, like other redisplay vars.
7647
7648 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
7649
7650         * event-stream.c (Fread_key_sequence): save current buffer.
7651
7652 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7653
7654         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
7655
7656 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7657
7658         * alloc.c (lcrecord_stats): Add space for types defined in modules.
7659
7660 2001-10-26  Mike Alexander  <mta@arbortext.com>
7661
7662         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
7663
7664 2001-10-25  Andy Piper  <andy@xemacs.org>
7665
7666         * ChangeLog:
7667         * dialog-msw.c (handle_directory_proc): new function.
7668          (handle_directory_dialog_box): new fucntion.
7669          (handle_file_dialog_box): use new directory dialog support.
7670          (mswindows_make_dialog_box_internal): ditto.
7671         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
7672         handling.
7673         (mswindows_find_frame): make global.
7674         * fileio.c (Fexpand_file_name): build fix.
7675         * general-slots.h: add Qdirectory.
7676         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
7677         handling.
7678         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
7679         cygwin not leaving win32 paths unchanged.
7680         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
7681         cygwin runtime to do path conversion.
7682         (Fmswindows_shell_execute): fix cygwin handling of URLs.
7683         (syms_of_win32): add new function.
7684         * window.c (window_loop): build fix.
7685
7686 2001-10-15  Andy Piper  <andy@xemacs.org>
7687
7688         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
7689
7690 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
7691
7692         * XEmacs 21.4.5 "Civil Service" is released.
7693
7694 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
7695
7696         * glyphs-x.c: Force buffer-tab highlight update when moving the
7697         buffer, avoiding an ugly black border, used for keyboard focus
7698         indication, on a widget that can never have keyboard focus, the
7699         buffer tab.
7700
7701 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
7702
7703         * process-unix.c (unix_open_multicast_group): Remove too much
7704         conversion between host and network byte order.
7705
7706 2001-09-10  Nix  <nix@esperi.demon.co.uk>
7707
7708         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
7709         before replacing them.
7710
7711         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
7712         operation.
7713
7714         * src/window.c (undedicate_windows): Use it.
7715         * src/window.h: Add prototype.
7716
7717 2001-09-17  Ben Wing  <ben@xemacs.org>
7718
7719         * fileio.c (normalize_filename):
7720         * fileio.c (Fexpand_file_name):
7721         Fix various C++ compile errors in Andy's recent code.
7722         
7723         * callint.c (Fcall_interactively):
7724         * editfns.c (Ftemp_directory):
7725         * editfns.c (Fuser_full_name):
7726         * emacs.c (argmatch):
7727         * lread.c (locate_file_map_suffixes):
7728         * redisplay-x.c (x_ring_bell):
7729         Fix sign-compare warnings.
7730         
7731 2001-09-08  Andy Piper  <andy@xemacs.org>
7732
7733         * fileio.c (normalize_filename): copied from nt.c
7734         * (Ffile_name_directory): enable win32 paths under cygwin.
7735         * (Ffile_name_nondirectory): ditto.
7736         * (directory_file_name): ditto.
7737         * (Fexpand_file_name): ditto.
7738         * (Ffile_truename): ditto.
7739         * (Fsubstitute_in_file_name): ditto.
7740         * (Ffile_name_absolute_p): ditto.
7741         * (Ffile_readable_p): ditto.
7742
7743 2001-09-08  Andy Piper  <andy@xemacs.org>
7744
7745         * device-msw.c (mswindows_finish_init_device): remove dde
7746         initialization.
7747         * device-msw.c (mswindows_init_dde): factor out from
7748         mswindows_finish_init_device()
7749         * device-msw.c (init_mswindows_very_early): new function
7750         initialize but don't enable dde.
7751         * emacs.c (main_1): call init_mswindows_very_early.
7752         * event-msw.c:
7753         * event-msw.c (mswindows_dde_callback): only execute when we are
7754         ready.
7755         * symsinit.h: declare init_mswindows_very_early.
7756
7757 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7758
7759         [sjt: This has been in 21.5 for months with no complaints.]
7760
7761         * console.h (struct console_methods): Added flags member.
7762         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
7763         (CONMETH_IMPL_FLAG):
7764         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
7765         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7766
7767         * device.c (window_system_pixelated_geometry): Use the above macros.
7768
7769         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
7770         implememntation flag.
7771         * device.h (DEVICE_DISPLAY_P): Use it.
7772
7773         * frame.c (delete_frame_internal): Use the above macro.
7774
7775         * redisplay.c (redisplay_device): Use it.
7776         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7777         (redisplay_frame): Ditto.
7778
7779         * device-msw.c (mswindows_device_implementation_flags): Removed.
7780         (msprinter_device_implementation_flags): Removed.
7781         (console_type_create_device_mswindows): Removed references to
7782         implementation_flags methods, set implementation flags here.
7783         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
7784
7785         * device-gtk.c (gtk_device_implementation_flags): Removed method.
7786         (console_type_create_device_gtk): Removed method declaration.
7787         Added commented out statement which semantically matches the
7788         commented out statement in the above removed method.
7789
7790 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
7791
7792         The attached patch fixes a few warnings. 
7793
7794         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
7795         * src/frame-gtk.c: guard against GNOME calls in GTK only
7796         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
7797         * src/select-gtk.c: prototype lisp_to_time
7798
7799 2001-06-08  Ben Wing  <ben@xemacs.org>
7800
7801         ------ gc-in-window-procedure fixes ------
7802         
7803         * alloc.c:
7804         * alloc.c (struct post_gc_action):
7805         * alloc.c (register_post_gc_action):
7806         * alloc.c (run_post_gc_actions):
7807         * alloc.c (garbage_collect_1):
7808         Create "post-gc actions", to avoid those dreaded "GC during window
7809         procedure" problems.
7810
7811         * event-msw.c:
7812         Abort, clean and simple, when GC in window procedure.  We want
7813         to flush these puppies out.
7814
7815         * glyphs-msw.c:
7816         * glyphs-msw.c (finalize_destroy_window):
7817         * glyphs-msw.c (mswindows_finalize_image_instance):
7818         Use a post-gc action when destroying subwindows.
7819
7820         * lisp.h:
7821         Declare register_post_gc_action().
7822
7823         * scrollbar-msw.c:
7824         * scrollbar-msw.c (unshow_that_mofo):
7825         Use a post-gc action when unshowing scrollbar windows, if in gc.
7826
7827         * redisplay.c (mark_redisplay):
7828         Add comment about the utter evilness of what's going down here.
7829
7830         ------ cygwin setitimer fixes ------
7831         
7832         * Makefile.in.in (sheap_objs):
7833         * Makefile.in.in (profile_objs):
7834         * Makefile.in.in (objs):
7835         Compile profile.c only when HAVE_SETITIMER.
7836         
7837         * nt.c (mswindows_sigset):
7838         * nt.c (mswindows_sighold):
7839         * nt.c (mswindows_sigrelse):
7840         * nt.c (mswindows_sigpause):
7841         * nt.c (mswindows_raise):
7842         * nt.c (close_file_data):
7843         Style fixes.
7844         
7845         * nt.c:
7846         Move setitimer() emulation to win32.c, because Cygwin needs it too.
7847         
7848         * profile.c:
7849         * profile.c (Fstart_profiling):
7850         * profile.c (Fstop_profiling):
7851         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
7852         instead of just plain setitimer().
7853         
7854         * signal.c:
7855         * signal.c (set_one_shot_timer):
7856         * signal.c (alarm):
7857         Define qxe_setitimer() as an encapsulation around setitimer() --
7858         call setitimer() directly unless Cygwin or MS Win, in which case
7859         we use our simulated version in win32.c.
7860         
7861         * systime.h:
7862         * systime.h (struct itimerval):
7863         * systime.h (ITIMER_REAL):
7864         Prototype mswindows_setitimer() and qxe_setitimer().  Long
7865         comment about "qxe" and the policy regarding encapsulation.
7866
7867         * win32.c:
7868         * win32.c (setitimer_helper_proc):
7869         * win32.c (setitimer_helper_period):
7870         * win32.c (setitimer_helper):
7871         * win32.c (mswindows_setitimer):
7872         Move setitimer() emulation here, so Cygwin can use it.
7873         Rename a couple of functions and variables to be longer and more
7874         descriptive.  In setitimer_helper_proc(), send the signal
7875         using either mswindows_raise() or (on Cygwin) kill().  If for
7876         some reason we are still getting lockups, we'll change the kill()
7877         to directly invoke the signal handlers.
7878
7879         ------ windows shell fixes ------
7880         
7881         * callproc.c:
7882         * ntproc.c:
7883         Comments about how these two files must die.
7884
7885         * callproc.c (init_callproc):
7886         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
7887         not just COMSPEC. (more correct and closer to FSF.) Don't
7888         force a value for SHELL into the environment. (Comments added
7889         to explain why not.)
7890         
7891         * nt.c (init_user_info):
7892         Don't shove a fabricated SHELL into the environment.  See above.
7893
7894 2001-06-01  Ben Wing  <ben@xemacs.org>
7895
7896         * Makefile.in.in (ldflags):
7897         eliminate that pesky "defaulting to 00401000" warning.
7898         * nt.h:
7899         eliminate warnings.
7900
7901 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
7902
7903         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
7904         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
7905
7906 2001-04-24  Jerry James <james@xemacs.org>
7907
7908         * faces.h: pass parameters to Fadd_spec_to_specifier in the
7909         correct order.
7910
7911 2001-06-01  Ben Wing  <ben@xemacs.org>
7912
7913         * event-msw.c (debug_mswin_messages):
7914         conditionalize the messages that were causing compile errors.
7915         (if only macros could generate #ifdef statements ...)
7916
7917 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
7918
7919         * XEmacs 21.4.4 "Artificial Intelligence" is released.
7920
7921 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7922
7923         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
7924
7925 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7926
7927         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
7928         * process-unix.c (unix_canonicalize_host_name):
7929         sysdep.c (init_system_name):
7930         Use it to conditionally support IPv6 canonicalization.
7931
7932 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
7933
7934         * event-msw.c:
7935         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
7936
7937 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
7938
7939         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
7940         attempt is made to scroll when no scroll bar is available.
7941
7942 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7943
7944         * input-method-motif.c (XIM_delete_frame): New callback.
7945         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
7946         got deleted from 21.4.3.)
7947
7948 2001-06-01  Ben Wing  <ben@xemacs.org>
7949
7950         * nt.c (mswindows_utime):
7951         * nt.c (close_file_data):
7952         fix off-by-one-indirection error.
7953
7954 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
7955
7956         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
7957         because set_file_times() now takes Lisp_Object path, instead of
7958         char*.
7959         * nt.c: Include buffer.h.
7960         * nt.c (convert_from_time_t): New.
7961         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
7962         not set mtime correctly.
7963         * nt.h: Declare mswindows_utime().
7964         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
7965         path, instead of char*.
7966         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
7967
7968 2001-05-30  Ben Wing  <ben@xemacs.org>
7969
7970         For 21.4:
7971
7972         (Stephen, just take all event-msw.c patches.  This includes
7973         the "iconify" fix below.)
7974
7975         * event-msw.c:
7976         * event-msw.c (mswindows_dequeue_dispatch_event):
7977         * event-msw.c (assert):
7978         * event-msw.c (emacs_mswindows_quit_p):
7979         * event-msw.c (debug_mswin_messages):
7980         * event-msw.c (debug_output_mswin_message):
7981         * event-msw.c (vars_of_event_mswindows):
7982         Fix yet more problems with C-g handling.
7983         Implement debug-mswindows-events.
7984         
7985 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7986
7987         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
7988         
7989 2001-05-23  Ben Wing  <ben@xemacs.org>
7990
7991         * event-msw.c (winsock_writer):
7992         * event-msw.c (winsock_closer):
7993         prior kludgy code was clobbering the buffer, thinking it was
7994         "unused" space to store an unneeded return value; instead, use
7995         the variable we've already got staring us in the face.
7996
7997 2001-05-17  Andy Piper  <andy@xemacs.org>
7998
7999         * sysfile.h: don't assume that file attributes are boolean
8000
8001 2001-05-23  Ben Wing  <ben@xemacs.org>
8002
8003         * device-msw.c (msprinter_init_device):
8004         signal an error rather than crash with an unavailable network
8005         printer (from Mike Alexander).
8006         
8007         * event-msw.c:
8008         * event-msw.c (struct winsock_stream):
8009         * event-msw.c (winsock_writer):
8010         * event-msw.c (winsock_closer):
8011         * event-msw.c (make_winsock_stream_1):
8012         cleanup headers.  fix (hopefully) an error with data corruption
8013         when sending to a network connection.
8014
8015         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8016         to handle the ~user prefix by (a) always assuming we're referencing
8017         ourselves and not even verifying the user -- hence any file with
8018         a tilde as its first char is invalid! (b) if there wasn't a slash
8019         following the filename, the pointer was set *past* the end of
8020         file and we started reading from uninitialized memory.  Now we
8021         simply treat these as files, always.
8022
8023         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8024         
8025 2001-05-19  Ben Wing  <ben@xemacs.org>
8026
8027         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8028
8029         * process-nt.c:
8030         * process-nt.c (vars_of_process_nt):
8031         remove unused mswindows-quote-process-args.  rec for 21.4.
8032         
8033 2001-05-12  Ben Wing  <ben@xemacs.org>
8034
8035         * event-msw.c (mswindows_dde_callback):
8036         * event-msw.c (mswindows_wnd_proc):
8037         eliminate cygwin warnings.
8038
8039 2001-05-06  Ben Wing  <ben@xemacs.org>
8040
8041         * console-msw.h:
8042         * device-msw.c:
8043         * device-msw.c (print_dialog_worker):
8044         * device-msw.c (mswindows_handle_print_dialog_box):
8045         * device-msw.c (syms_of_device_mswindows):
8046         * dialog-msw.c (mswindows_make_dialog_box_internal):
8047         * general-slots.h:
8048         implement printing the selection when it's selected.
8049
8050 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8051
8052         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8053
8054 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8055
8056         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8057         EMACS_INT is signed.
8058
8059 2001-04-15  Michael Lausch  <mla@1012surf.net>
8060
8061         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8062         gtk_widget_request_size() to give scrollbar >0 width for
8063         GTK >1.2.8.
8064
8065 2001-05-30  William M. Perry  <wmperry@gnu.org>
8066
8067         * event-gtk.c: Check for buttons as modifier keys.
8068
8069 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8070
8071         * s\mingw32.h:
8072         Properly find MinGW's <process.h> inside Cygwin's restructured
8073         include directories.  Don't try to include <cygwin/version.h>
8074         since we are dropping support for MinGW in versions of Cygwin
8075         earlier than b21.
8076         * nt.c:
8077         Drop support for MinGW in versions of Cygwin before b21.
8078         * sysdep.c:
8079         Properly find MinGW's <process.h> inside Cygwin's restructured
8080         include directories.
8081         * syswindows.h:
8082         Drop support for MinGW in versions of Cygwin before b21.
8083         * unexcw.c:
8084         Even though a.out.h is no longer detected by configure, allow
8085         MinGW to use it until we figure out how to do the job with Win32.
8086
8087 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8088
8089         * syntax.c (find_start_of_comment):
8090         Fix `unbalanced parentheses' bug when dealing with mixed comment
8091         styles in c++/java/etc. mode
8092
8093 2001-05-29  Mike Alexander  <mta@arbortext.com>
8094
8095         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8096         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8097
8098 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8099
8100         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8101
8102 2001-03-31  Mike Sperber <mike@xemacs.org>
8103
8104         * search.c (Freplace_match): Support FSF-style specification of
8105         match subexpression when applied to a buffer.
8106
8107 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8108
8109         * event-stream.c (is_scrollbar_event): add missing semicolon
8110
8111 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8112
8113         * Makefile.in.in: Use TAR macro instead of hardcoding
8114           tar.  Allows use of GNU tar instead of system tar
8115
8116 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8117
8118         * event-stream.c (is_scrollbar_event): add missing semicolon
8119
8120 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8121
8122         * XEmacs 21.4.3 "Academic Rigor" is released.
8123
8124 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8125
8126         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8127
8128 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8129
8130         * buffer.c (Vcase_fold_search): Remove obsolete
8131           comment about non ASCII case-fold-search.  This
8132           bug has been fixed by case-table changes.
8133
8134 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8135
8136         * event-msw.c: Restore include of events-mod.h.
8137
8138 2001-04-22   zhaoway  <zw@debian.org>
8139
8140         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8141         !HAVE_SCROLLBARS.
8142
8143 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8144
8145         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8146
8147 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8148
8149         * mule-charset.c (Fmake_charset): Add missing else.
8150
8151 2001-04-23  Ben Wing  <ben@xemacs.org>
8152
8153         * event-msw.c (FAKE_MOD_QUIT):
8154         * event-msw.c (mswindows_dequeue_dispatch_event):
8155         * event-msw.c (mswindows_wnd_proc):
8156         * event-msw.c (emacs_mswindows_quit_p):
8157         Get critical quit working.
8158
8159 2001-05-05  Ben Wing  <ben@xemacs.org>
8160
8161         * console-msw.h:
8162         * device-msw.c:
8163         * device-msw.c (mswindows_get_default_margin):
8164         * frame-msw.c (mswindows_size_frame_internal):
8165         * frame-msw.c (msprinter_init_frame_1):
8166         * frame-msw.c (vars_of_frame_mswindows):
8167         Change top/bottom margin defaults to 0.5 inches.
8168
8169 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8170
8171         Fix link error with gcc 3.0 on Linux.
8172         * terminfo.c (UP): Remove.
8173         * terminfo.c (BC): Remove.
8174         * terminfo.c (PC): Remove.
8175         They weren't used, and in any case, these symbols should be
8176         defined in the *library*.
8177
8178 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8179
8180         * s/aix4.h: Fix crash with xlc -O3.
8181         Improve comment explaining how -O3 works.
8182
8183 2001-04-15  Ben Wing  <ben@xemacs.org>
8184
8185         * event-stream.c:
8186         * event-stream.c (Fnext_event):
8187         * event-stream.c (is_scrollbar_event):
8188         * event-stream.c (execute_command_event):
8189         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8190         crash' problem.  His fix introduces other problems.  We filter
8191         out scrollbar events specifically, making them somewhat invisible
8192         to command-building, and not appearing in `this-command-keys'.
8193         More work is still needed (see comments in event-stream.c), but
8194         this fixes all the major problems.
8195
8196 2001-04-20  Ben Wing  <ben@xemacs.org>
8197
8198         * .cvsignore: Added stuff for Windows.
8199
8200 2001-04-28  Ben Wing  <ben@xemacs.org>
8201
8202         * buffer.c (Ferase_buffer):
8203         * editfns.c (buffer_insert1):
8204         * editfns.c (Finsert_before_markers):
8205         * editfns.c (Finsert_string):
8206         * editfns.c (Finsert_char):
8207         * editfns.c (Fdelete_region):
8208         * editfns.c (Fwiden):
8209         * editfns.c (Fnarrow_to_region):
8210         remove bogus lines setting zmacs_region_stays to 0.
8211         
8212 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8213
8214         * process-unix.c (unix_open_network_stream): If connect() fails
8215         invalidate file descriptor after closing it.
8216
8217 2001-03-08  Mike Alexander  <mta@arbortext.com>
8218
8219         * event-msw.c (mswindows_need_event_in_modal_loop):
8220         Don't dispatch a message if we didn't get one.
8221         (mswindows_need_event):
8222         Terminate the correct process when one exits instead of the first
8223         one on Vprocess_list and look for process termination when in
8224         mswindows_protect_modal_loop.
8225
8226 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8227
8228         * XEmacs 21.4.1 "Copyleft" is released.
8229
8230 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8231
8232         * input-method-motif.c (XIM_delete_frame): New callback.
8233         (XIM_init_frame): Register it.
8234
8235 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8236
8237         * XEmacs 21.4.0 "Solid Vapor" is released.
8238
8239 2001-04-15  Ben Wing  <ben@xemacs.org>
8240
8241         * cmdloop.c (call_command_loop):
8242         Fix braino in bit-rotting code.
8243         
8244 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8245
8246         * extents.c (Fset_extent_endpoints): Force creation of extent info
8247         in buffer_or_string.
8248
8249         * extents.c (process_extents_for_insertion_mapper): Correctly
8250         check for open-open zero-length extents.
8251
8252 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8253
8254         * lisp.h: New typedefs Memory_count, Element_count.
8255         * regex.c:
8256         * regex.h:
8257         Sign-compare warning elimination: several unsigned -> signed.
8258         Based on work by Ben Wing <ben@xemacs.org>.
8259
8260 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8261
8262         * XEmacs 21.2.47 "Zephir" is released.
8263
8264 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8265
8266         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8267
8268 2001-04-03  Mike Sperber <mike@xemacs.org>
8269
8270         * search.c: Revert previous patch due because of release.
8271
8272 2001-03-30  Ben Wing  <ben@xemacs.org>
8273
8274         * s\cygwin32.h:
8275         Add missing killpg prototype.
8276
8277         * elhash.c:
8278         Add a comment about fixing problems when a new entry is added
8279         while mapping.
8280
8281         * frame-msw.c (mswindows_init_frame_1):
8282         Fix compile warnings.
8283
8284         * menubar.c (vars_of_menubar):
8285         Provide `menu-accelerator-support' to indicate that we properly
8286         support %_ in menu specifications, so that package code can
8287         conditionalize on this (and remove %_ from menu specifications
8288         on older versions).
8289
8290         * event-msw.c:
8291         * scrollbar-msw.c:
8292         * scrollbar-msw.c (can_scroll):
8293         * scrollbar-msw.h:
8294         Fix handling of mouse wheel under Windows to follow standards --
8295         now scrolls window under pointer, not selected window.
8296
8297 2001-03-31  Mike Sperber <mike@xemacs.org>
8298
8299         * search.c (Freplace_match): Support FSF-style specification of
8300         match subexpression when applied to a buffer.
8301
8302 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8303
8304         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8305         function to modify KEYMAP, so map over a copy of the hash table.
8306
8307 2001-03-21  Martin Buchholz <martin@xemacs.org>
8308
8309         * XEmacs 21.2.46 "Urania" is released.
8310
8311 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8312
8313         * realpath.c (xrealpath): Make file-truename work with symlinks to
8314         /cygdrive paths on cygwin. Always lowercase drive-letters on
8315         native windows.
8316         (cygwin_readlink): Don't try to find canonical filename unless
8317         file exists.
8318
8319 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8320
8321         * ChangeLog: Log GTK merge.
8322
8323         * dumper.c:
8324         * select-x.c:
8325         * specifier.c:
8326         * symeval.h:
8327         Revert gratuitous whitespace changes from GTK merge.
8328
8329         * emacs.c: Document end of complex #ifdef @ l. 1495.
8330
8331
8332 2001-03-12  Andy Piper  <andy@xemacs.org>
8333
8334         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8335         have to do likewise.
8336
8337 2001-03-12  Andy Piper  <andy@xemacs.org>
8338
8339         * sysdep.c: we only support mingw now.
8340
8341 2001-03-09  Andy Piper  <andy@xemacs.org>
8342
8343         * unexcw.c (copy_executable_and_dump_data_section): making approx
8344         overrun a warning only.
8345
8346 2001-03-10  William M. Perry  <wmperry@aventail.com>
8347
8348         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8349         satisfy Stephen's identical-after-cpp plea.
8350
8351 2001-03-02  Ben Wing  <ben@xemacs.org>
8352
8353         * cmds.c:
8354         * cmds.c (Fforward_char):
8355         * syntax.c:
8356         * window.c:
8357
8358         Augment documentation of the most common motion commands to make
8359         note of the shifted-motion support.
8360         
8361 2001-03-02  Ben Wing  <ben@xemacs.org>
8362
8363         * nt.c (mswindows_fstat):
8364         * nt.c (mswindows_stat):
8365         * search.c (boyer_moore):
8366         Fix compile warnings under Windows.
8367         
8368         * sysdep.c (sys_readdir):
8369         Fix buggy filename-conversion code under Mule.
8370
8371 2001-03-09  William M. Perry  <wmperry@aventail.com>
8372
8373         * Makefile.in.in:
8374         * config.h.in:
8375         * console.c:
8376         * console.h:
8377         * device.c:
8378         * device.h:
8379         * dragdrop.c:
8380         * emacs.c:
8381         * event-stream.c:
8382         * events.c:
8383         * events.h:
8384         * faces.c:
8385         * frame.h:
8386         * general-slots.h:
8387         * glyphs.c:
8388         * gutter.c:
8389         * inline.c:
8390         * lisp.h:
8391         * lrecord.h:
8392         * make-src-depend:
8393         * redisplay-output.c:
8394         * redisplay.c:
8395         * symsinit.h:
8396         * sysfile.h:
8397         * toolbar.c:
8398         * window.c:
8399         The Great GTK Merge.
8400
8401         * ChangeLog.GTK:
8402         * console-gtk.c:
8403         * console-gtk.h:
8404         * device-gtk.c:
8405         * emacs-marshals.c:
8406         * emacs-widget-accessors.c:
8407         * event-gtk.c:
8408         * frame-gtk.c:
8409         * gccache-gtk.c:
8410         * gccache-gtk.h:
8411         * glade.c:
8412         * glyphs-gtk.c:
8413         * glyphs-gtk.h:
8414         * gtk-glue.c:
8415         * gtk-xemacs.c:
8416         * gtk-xemacs.h:
8417         * gui-gtk.c:
8418         * gui-gtk.h:
8419         * menubar-gtk.c:
8420         * native-gtk-toolbar.c:
8421         * objects-gtk.c:
8422         * objects-gtk.h:
8423         * redisplay-gtk.c:
8424         * scrollbar-gtk.c:
8425         * scrollbar-gtk.h:
8426         * select-gtk.c:
8427         * toolbar-gtk.c:
8428         * ui-byhand.c:
8429         * ui-gtk.c:
8430         * ui-gtk.h:
8431         The Great GTK Merge: new files.
8432
8433 2001-02-26  Ben Wing  <ben@xemacs.org>
8434
8435         Reapplied Lstream change.
8436
8437 2001-02-26  Ben Wing  <ben@xemacs.org>
8438
8439         Undid the last change, since it is more controversial than I
8440         thought.  It should be back in at some point soon.
8441         
8442 2001-02-25  Ben Wing  <ben@xemacs.org>
8443
8444         * buffer.c:
8445         * callproc.c (Fold_call_process_internal):
8446         * event-msw.c (ntpipe_slurp_reader):
8447         * event-msw.c (ntpipe_shove_writer):
8448         * event-msw.c (winsock_reader):
8449         * event-msw.c (winsock_writer):
8450         * file-coding.c:
8451         * file-coding.c (detect_eol_type):
8452         * file-coding.c (detect_coding_type):
8453         * file-coding.c (determine_real_coding_system):
8454         * file-coding.c (Fdetect_coding_region):
8455         * file-coding.c (decoding_reader):
8456         * file-coding.c (decoding_writer):
8457         * file-coding.c (mule_decode):
8458         * file-coding.c (Fdecode_coding_region):
8459         * file-coding.c (encoding_reader):
8460         * file-coding.c (encoding_writer):
8461         * file-coding.c (mule_encode):
8462         * file-coding.c (Fencode_coding_region):
8463         * file-coding.c (detect_coding_sjis):
8464         * file-coding.c (decode_coding_sjis):
8465         * file-coding.c (encode_coding_sjis):
8466         * file-coding.c (detect_coding_big5):
8467         * file-coding.c (decode_coding_big5):
8468         * file-coding.c (encode_coding_big5):
8469         * file-coding.c (detect_coding_ucs4):
8470         * file-coding.c (decode_coding_ucs4):
8471         * file-coding.c (encode_coding_ucs4):
8472         * file-coding.c (detect_coding_utf8):
8473         * file-coding.c (decode_coding_utf8):
8474         * file-coding.c (encode_coding_utf8):
8475         * file-coding.c (detect_coding_iso2022):
8476         * file-coding.c (decode_coding_iso2022):
8477         * file-coding.c (encode_coding_iso2022):
8478         * file-coding.c (decode_coding_no_conversion):
8479         * file-coding.c (encode_coding_no_conversion):
8480         * glyphs-x.c (write_lisp_string_to_temp_file):
8481         * gpmevent.c (tty_get_foreign_selection):
8482         * lisp.h:
8483         * lstream.c:
8484         * lstream.c (Lstream_flush_out):
8485         * lstream.c (Lstream_adding):
8486         * lstream.c (Lstream_write_1):
8487         * lstream.c (Lstream_write):
8488         * lstream.c (Lstream_raw_read):
8489         * lstream.c (Lstream_read_more):
8490         * lstream.c (Lstream_read):
8491         * lstream.c (Lstream_unread):
8492         * lstream.c (Lstream_fputc):
8493         * lstream.c (stdio_reader):
8494         * lstream.c (stdio_writer):
8495         * lstream.c (filedesc_reader):
8496         * lstream.c (filedesc_writer):
8497         * lstream.c (lisp_string_reader):
8498         * lstream.c (struct fixed_buffer_stream):
8499         * lstream.c (make_fixed_buffer_input_stream):
8500         * lstream.c (make_fixed_buffer_output_stream):
8501         * lstream.c (fixed_buffer_reader):
8502         * lstream.c (fixed_buffer_writer):
8503         * lstream.c (struct resizing_buffer_stream):
8504         * lstream.c (resizing_buffer_writer):
8505         * lstream.c (dynarr_writer):
8506         * lstream.c (lisp_buffer_reader):
8507         * lstream.c (lisp_buffer_writer):
8508         * lstream.h:
8509         * lstream.h (lstream_implementation):
8510         * lstream.h (struct lstream):
8511         * md5.c (Fmd5):
8512         * process-nt.c (nt_send_process):
8513         * process-unix.c (unix_send_process):
8514         
8515         Correct Lstream lossage due to mixing of signed and unsigned
8516         quantities.  All Lstream uses of size_t and ssize_t are now a
8517         single signed data type Lstream_data_count.  This fixes problems
8518         under Windows with sending large quantities of data to a process,
8519         and may well fix other subtle bugs.
8520
8521 2001-02-23  Martin Buchholz <martin@xemacs.org>
8522
8523         * XEmacs 21.2.45 "Thelxepeia" is released.
8524
8525 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8526
8527         * lisp-union.h (XSETINT): 
8528         (XSETCHAR):
8529         (XSETOBJ): 
8530         Reverse previous change of 2001-02-06.
8531
8532 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8533
8534         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8535         buffers.
8536         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8537         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8538         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8539         * regex.c (POS_AS_IN_BUFFER): removed
8540         * regex.c (re_search_2):
8541         * regex.c (re_match_2):
8542         Don't use an offset of 1 when calculating buffer positions, since
8543         `BI_BUF_BEGV' does it already.
8544
8545 2001-02-18  Wim Dumon  <wim@easics.be>
8546
8547         * insdel.c (prepare_to_modify_buffer): Also check for
8548         supersession when clash-detection is enabled. 
8549
8550 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8551
8552         * regex.c (re_match_2_internal):
8553         Convert temp characters from 'const unsigned char' to 're_char'.
8554         Fix crashing bug with extended characters under mule.
8555         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8556         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8557         font-lock, pdump, and new syntax-table code.
8558         * syntax.c (find_start_of_comment):
8559         (find_end_of_comment):
8560         (forward-comment):
8561         Fix crashing bugs involving moving beyond end of buffer.
8562         * syntax.c (find_start_of_comment):
8563         Fixed logic to allow proper detection of cases where the same
8564         character is used to end both a two-char comment start and a
8565         two-char comment end sequence. Fixes `(forward-comment -1)'.
8566         * syntax.c (find_start_of_comment):
8567         Return position just past last comment-end character for all cases
8568         (previously was only done for two-char comment-end sequences).
8569         * syntax.c (forward-comment):
8570         Take value returned from `find_end_of_comment', rather than
8571         incrementing it.
8572         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8573         Properly deal with BUFFERP (syntax_cache.object)
8574
8575 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8576
8577         * alloc.c (Fgarbage_collect): 
8578         * alloc.c (make_bit_vector_from_byte_vector):
8579         -Wsign-compare-correctness.
8580
8581 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8582
8583         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8584         (XSETCHAR): Likewise.
8585         (XSETOBJ): Likewise.
8586
8587 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8588
8589         * mule-canna.c (canna-func-delete_previous): 
8590         Rename to canna-func-delete-previous.
8591
8592 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8593
8594         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8595
8596 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8597
8598         * font-lock.c (find_context): Fix C++ compile errors introduced by
8599         recent patch
8600
8601 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8602
8603         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8604         pragma, but earlier ones barf on the same pragma.
8605
8606 2001-02-06  Mike Sperber <mike@xemacs.org>
8607
8608         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8609         `configure-mule-lisp-directory'.
8610
8611 2001-02-12  Martin Buchholz  <martin@xemacs.org>
8612
8613         Make sure dump-id.c is compiled in the same way as other .c's.
8614         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
8615         * dump-id.h: Remove.
8616         * emacs.c: Move dump-id.h into dumper.h.
8617         * dumper.h: Move dump-id.h into dumper.h.
8618         * Makefile.in.in:
8619         Use standard .c.o rule for building dump-id.o.
8620         Remove preprocessor flags from link command.
8621         Add dump-id.o to ${otherobjs} if PDUMP.
8622
8623 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
8624
8625         Port FSF 20.7 syntax table improvements.
8626         * syntax.c.
8627         * syntax.h.
8628
8629         Fixups for new syntax table stuff.
8630         * dired.c: Include syntax.c.
8631         (Fdirectory_files): Initialize regex_match_object and
8632         regex_emacs_buffer.
8633         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
8634         and Fget_char_property.
8635
8636         Use ported FSF 20.7 syntax table improvements.
8637         * font-lock.c.
8638         * regex.c.
8639         * search.c.
8640         
8641 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8642
8643         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
8644         Unixware's enum boolean from sys/types.h.
8645
8646 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8647
8648         Fix support for building with latest Purify.
8649         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
8650         (PURIFY_FLAGS): Likewise.
8651
8652 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8653
8654         * fileio.c (lisp_string_set_file_times): New.
8655         * fileio.c (Fcopy_file): Use it.
8656         Fixes bug:
8657         (copy-file filename non-ascii-filename t t)
8658         ==> No such file or directory, non-ascii-filename
8659
8660 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8661
8662         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
8663         USHRT_MAX seems clearer than ~0 anyways.
8664
8665 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8666
8667         dumper improvements.  Inspired by Olivier.
8668         * dumper.c (pdump_max_align): New.
8669         * dumper.c (pdump_add_entry): Use pdump_max_align.
8670         * dumper.c (pdump_get_entry_list): Likewise.
8671         * dumper.c (pdump_scan_by_alignment): Likewise.
8672         Don't iterate through unnecessary alignments.
8673         * dumper.c (pdump_file_get): No need to align result of malloc().
8674         * dumper.c (pdump_mallocadr): Remove.  
8675         The result of malloc() is guaranteed to be maximally aligned.
8676         * dumper.c: s/elmt/elt/g;
8677         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
8678         * dumper.c (pdump_alert_undump_object): Likewise.
8679         * dumper.c (pdump_align_table): 
8680         Don't support alignments > 64.
8681         Store ALIGNOF's, not shift counts, in table.
8682
8683 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8684
8685         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
8686         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
8687         * systime.h: Use HAVE_UTIME.
8688         * sysdep.c (struct utimbuf): Remove.
8689         * sysdep.c (set_file_times): Prefer utime() to utimes().
8690         * config.h.in (HAVE_UTIME): New.
8691         * config.h.in (HAVE_UTIME_H): Remove.
8692         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
8693
8694 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8695
8696         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
8697
8698 2001-02-08  Martin Buchholz  <martin@xemacs.org>
8699
8700         * s/irix6-0.h: Use the standard system memmove, not bcopy.
8701
8702 2001-02-08  Martin Buchholz <martin@xemacs.org>
8703
8704         * XEmacs 21.2.44 "Thalia" is released.
8705
8706 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8707
8708         Fixes crashes in kill-emacs on some systems.
8709         * process-unix.c (unix_kill_child_process):
8710         It's OK for kill() to fail with ESRCH.
8711
8712 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8713
8714         Contortions to make .gdbinit tricks work on most systems.
8715         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
8716         * alloc.c (dbg_valmask): Make non-const.
8717         * alloc.c (dbg_typemask): Make non-const.
8718         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
8719         * alloc.c (dbg_valbits): Make non-const.
8720         * alloc.c (dbg_gctypebits): Make non-const.
8721         * .gdbinit (decode_object): Make it work with AIX cc.
8722
8723 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8724
8725         * elhash.c (make_general_lisp_hash_table):
8726         Use simpler and more efficient calloc to clear entries.
8727
8728 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8729
8730         * window.c (window_scroll): Work around an AIX C compiler bug.
8731         Fixes 'scroll-up' does nothing problem with xlC.
8732
8733 2001-02-05  Martin Buchholz  <martin@xemacs.org>
8734
8735         * .gdbinit: Remove obsolete comment.
8736
8737 2001-01-31  Mike Alexander  <mta@arbortext.com>
8738
8739         * select.c (Fown_selection_internal): Set owned_p for device
8740         method correctly.
8741
8742 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8743
8744         Port to g++ 2.97.
8745         "not" cannot be used as a macro name as it is an operator in C++
8746         * config.h.in: Stop #defining `not'.
8747         * chartab.c (check_category_char): not ==> not_p
8748         * chartab.h: Likewise.
8749         * regex.c (re_match_2_internal): Likewise.
8750
8751 2001-02-02  Martin Buchholz  <martin@xemacs.org>
8752
8753         * lisp-disunion.h: Fix up comments.
8754
8755 2001-01-31  Martin Buchholz  <martin@xemacs.org>
8756
8757         * keymap.c (define_key_check_and_coerce_keysym):
8758         (syms_of_keymap):
8759         Support mouse-6 and mouse-7 bindings in the obvious way.
8760
8761 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8762
8763         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
8764
8765 2001-01-30  Martin Buchholz  <martin@xemacs.org>
8766
8767         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
8768         Previous patch missed DEFVAR_INT_MAGIC.
8769         Make sure future DEFVAR_foo use correct types.
8770         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
8771         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
8772         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
8773         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
8774         * (DEFVAR_INT): Likewise.
8775         * redisplay.c (vertical_clip): Should be of type Fixnum.
8776         * redisplay.c (horizontal_clip): Likewise.
8777         * lisp.h (dump_add_opaque_int): New.
8778         (dump_add_opaque_fixnum): New.
8779
8780 2001-01-29  Andy Piper  <andy@xemacs.org>
8781
8782         * glyphs-widget.c (check_valid_int_or_function): allow symbols
8783         since they can be eval'ed
8784
8785 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8786
8787         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
8788         Oops, XEmacs redefines `class'.  Use `typename' instead.
8789
8790 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8791
8792         * dumper.c: Fix C++ compile errors.
8793
8794 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8795
8796         * tparam.c: Use correct prototypes.
8797
8798 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8799
8800         * sysproc.h: #include util.h for NetBSD's openpty.
8801
8802 2001-01-27  Martin Buchholz  <martin@xemacs.org>
8803
8804         More 64-bit correctness.
8805         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
8806         Use a typedef `fixnum' for the type used for DEFVAR_INT.
8807         Fix up comments.
8808         This finally finishes the 64-bit SGI port.
8809         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
8810         * symbols.c: Fix up comments and type casts.
8811         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
8812         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
8813         * symeval.h (Fixnum): New type.
8814         * symeval.h (symbol_value_type): Fix up comment.
8815
8816         * commands.h:
8817         * nt.c:
8818         * emacs.c:
8819         * data.c:
8820         * redisplay.c:
8821         * abbrev.c:
8822         * dired-msw.c:
8823         * event-Xt.c:
8824         * eldap.c:
8825         * window.c:
8826         * sound.c:
8827         * event-stream.c:
8828         * eval.c:
8829         * buffer.c:
8830         * mule-canna.c: A million DEFVAR_INTs here...
8831         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
8832         * extents.c:
8833         * cmdloop.c:
8834         * lisp.h:
8835         * select-x.c:
8836         * console-x.h:
8837         * event-msw.c:
8838         * mule-wnnfns.c:
8839         * hpplay.c:
8840         * ralloc.c:
8841         * alloc.c:
8842         * keymap.c:
8843         * profile.c:
8844         s/int/Fixnum/g in DEFVAR_INT declarations.
8845
8846 2001-01-26  Martin Buchholz  <martin@xemacs.org>
8847
8848         Port pdump to SGI alignment-sensitive environment.
8849         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
8850         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
8851         properly aligned.
8852         Define and use aligned reading and writing macros.
8853         Use buffered stdio instead of posix i/o for faster dumping.
8854         Eliminate kludgy 256 byte space for header.
8855         Read and write from dump file using structs for alignment safety.
8856         * dumper.c (pdump_align_stream): New.
8857         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
8858         * dumper.c (PDUMP_READ_ALIGNED): New.
8859         * dumper.c (PDUMP_WRITE_ALIGNED): New.
8860         * dumper.c (pdump_static_Lisp_Object): New struct.
8861         * dumper.c (pdump_static_pointer): New struct.
8862         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
8863         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
8864         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
8865         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
8866
8867         * dumper.c (pdump_backtrace):
8868         * dumper.c (pdump_get_indirect_count):
8869         * dumper.c (pdump_register_object):
8870         * dumper.c (pdump_register_struct):
8871         * dumper.c (pdump_reloc_one):
8872         * dumper.c (pdump_scan_by_alignment):
8873         * dumper.c (pdump_dump_from_root_struct_ptrs):
8874         * dumper.c (pdump_dump_opaques):
8875         * dumper.c (pdump_dump_rtables):
8876         * dumper.c (pdump_dump_from_root_objects):
8877         * dumper.c (pdump):
8878         * dumper.c (pdump_load_finish):
8879         Use aligned reading and writing.
8880
8881         * dumper.c (pdump_free): Make static.
8882         * dumper.c (pdump_hFile): Likewise.
8883         * dumper.c (pdump_hMap): Likewise.
8884
8885 2001-01-26  Martin Buchholz <martin@xemacs.org>
8886
8887         * XEmacs 21.2.43 "Terspichore" is released.
8888
8889 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8890
8891         Type fiddling for window_config.saved_windows_count
8892         * window.c (struct window_config): 
8893         Make saved_windows_count member unsigned.
8894         * window.c (sizeof_window_config_for_n_windows): 
8895         Make parameter unsigned.
8896         * window.c (mark_window_config):
8897         * window.c (window_config_equal):
8898         * window.c (free_window_configuration):
8899         * window.c (Fset_window_configuration):
8900         * window.c (count_windows):
8901         * window.c (Fcurrent_window_configuration):
8902         * window.c (reinit_vars_of_window):
8903         Update all callers and users.
8904
8905 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8906
8907         Alignment correctness for flexible arrays.
8908         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
8909         Make alignment-correct. Add interesting comments.
8910         * alloc.c (size_vector):
8911         * alloc.c (make_vector_internal):
8912         * alloc.c (make_bit_vector_internal):
8913         * alloc.c (sweep_bit_vectors_1):
8914         * fns.c (size_bit_vector):
8915         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
8916         * window.c (sizeof_window_config_for_n_windows): 
8917         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
8918
8919 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8920
8921         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
8922
8923 2001-01-23  Andy Piper  <andy@xemacs.org>
8924
8925         * select.c (Fown_selection_internal): pass owned_p
8926
8927         * select-msw.c (mswindows_own_selection): New Signature.
8928
8929         * console.h (struct console_methods): add owned_p to
8930         _own_selection.
8931
8932         * select-x.c (x_own_selection): pass owned_p
8933         (hack_motif_clipboard_selection): use owned_p
8934         (vars_of_select_x): new variable -
8935         x_selection_strict_motif_ownership.
8936
8937 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8938
8939         * specifier.h (specifier_data_offset): Remove pointless parens.
8940         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
8941
8942 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8943
8944         Make Lisp_Object sizeof methods be alignment-correct.
8945         pdump must restore objects to the same alignment as the C compiler
8946         assumes.  It really matters on SGIs.
8947         * lstream.c (aligned_sizeof_lstream): New.
8948         (sizeof_lstream): Use aligned_sizeof_lstream.
8949         (Lstream_new): Likewise.
8950         * opaque.c (aligned_sizeof_opaque): New.
8951         (sizeof_opaque): Use aligned_sizeof_opaque.
8952         (make_opaque): Likewise.
8953         * specifier.c (aligned_sizeof_specifier): New.
8954         (sizeof_specifier): Use aligned_sizeof_specifier.
8955         (make_specifier_internal): Likewise.
8956
8957 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8958
8959         * lstream.h (struct lstream): Use max_align_t for trailing data.
8960         * specifier.h (struct Lisp_Specifier): Likewise.
8961
8962 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8963
8964         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
8965         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
8966         (CCL_SUSPEND): Likewise.
8967         (CCL_INVALID_CMD): Likewise.
8968         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
8969         (ccl_driver): Likewise.
8970         (CCL_WRITE_CHAR): Macro hygiene.
8971         (CCL_WRITE_STRING): Macro hygiene.
8972
8973 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8974
8975         Port "portable" dumper to SunOS 4 and HP-UX.
8976         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
8977         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
8978         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
8979
8980 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8981
8982         * lisp.h (ALIGNOF): A better definition for C++.
8983
8984 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8985
8986         Macro hygiene.
8987         Fix printf warnings: int format, long int arg.
8988         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
8989         (PUSH_FAILURE_POINT): Use correct printf formats.
8990         (POP_FAILURE_POINT): Use correct printf formats.  
8991         Use do {...} while (0)
8992
8993 2001-01-20  Martin Buchholz <martin@xemacs.org>
8994
8995         * XEmacs 21.2.42 "Poseidon" is released.
8996
8997 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8998
8999         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9000
9001 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9002
9003         De-kludgify FIXED_TYPE free list frobbing.
9004         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9005         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9006         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9007         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9008         * alloc.c (LRECORD_FREE_P): New.
9009         * alloc.c (MARK_LRECORD_AS_FREE): New.
9010         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9011         * alloc.c (STRUCT_FREE_P): Deleted.
9012         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9013         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9014         * alloc.c (STRING_CHARS_FREE_P): New.
9015         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9016         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9017         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9018         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9019         * alloc.c (resize_string): Use new definitions.
9020         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9021         * alloc.c (verify_string_chars_integrity): Use new definitions.
9022         * alloc.c (compact_string_chars): Use new definitions.
9023         * alloc.c: Update monster comments.
9024         * lrecord.h (lrecord_type): Add some new lrecord types for
9025         alloc.c's use.
9026
9027 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9028
9029         Improve alignment hackery.
9030         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9031         (max_align_t): Moved from opaque.h - general purpose.
9032         (ALIGN_PTR): Use size_t, not long.
9033         * opaque.h (max_align_t): Move to lisp.h.
9034
9035 2001-01-18  Norbert Koch  <nk@LF.net>
9036
9037         * gui.h: Fix and add prototypes to fix build problems.
9038
9039 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9040
9041         temacs is going away, so `dump-temacs' is now a bad name.
9042         * .dbxrc (dump-temacs): Rename to `dmp'.
9043         * .gdbinit (dump-temacs): Rename to `dmp'.
9044
9045 2001-01-17  Andy Piper  <andy@xemacs.org>
9046
9047         * glyphs.c (print_image_instance): comment to make martin happy.
9048
9049         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9050         change.
9051
9052         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9053         activation.
9054         (mswindows_tab_control_redisplay): warning suppression.
9055
9056         * glyphs-widget.c (widget_update): re-write to cope with updated
9057         items.
9058         (widget_instantiate): use new gui_item functions.
9059         (tab_control_update): deleted.
9060         (progress_gauge_update): deleted.
9061         (image_instantiator_progress_guage): take out update reference.
9062         (image_instantiator_tree_view): ditto.
9063         (image_instantiator_tab_control): ditto.
9064
9065         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9066         Right the new way.
9067         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9068         return whether anything was changed.
9069         (update_gui_item_keywords): as it sounds.
9070
9071         * gui.h: declare widget_gui_parse_item_keywords.
9072
9073         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9074         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9075
9076 2001-01-17  Martin Buchholz <martin@xemacs.org>
9077
9078         * XEmacs 21.2.41 "Polyhymnia" is released.
9079
9080 2001-01-16  Didier Verna  <didier@xemacs.org>
9081
9082         * glyphs.c (image_instantiate): don't use fallbacks when
9083         instantiating a face's background pixmap by inheritance.
9084
9085 2001-01-14  Mike Sperber <mike@xemacs.org>
9086
9087         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9088         Conditionalize accordingly.
9089
9090 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9091
9092         * dumper.c (pdump_file_get): Fix a compiler warning.
9093
9094 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9095
9096         Make Purify happy when pdumping.
9097         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9098         iniitalizing all bits of new lisp object memory.
9099         * symbols.c (Fmake_local_variable): Likewise.
9100         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9101         * symbols.c (Fdefvaralias): Likewise.
9102         * mule-charset.c (vars_of_mule_charset): Likewise.
9103
9104 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9105         Add the `-nd' flag when running pre-dump operations under the debugger.
9106         * .dbxrc (run-temacs): Add `-nd'.
9107         * .dbxrc (update-elc): Likewise.
9108         * .dbxrc (dump-temacs): Likewise.
9109         * .gdbinit (run-temacs): Likewise.
9110         * .gdbinit (check-temacs): Likewise.
9111         * .gdbinit (update-elc): Likewise.
9112         * .gdbinit (dump-temacs): Likewise.
9113
9114 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9115
9116         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9117         export OBJECT_MODE=64
9118         configure --pdump --use-union-type=no
9119         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9120         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9121
9122         * miscplay.c (sndcnv8U_2mono):
9123         Avoid two uses of `++' in the same expression.
9124         Suppresses a GCC warning.
9125
9126 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9127
9128         Make sure future compilers don't miscompile alloc.c.
9129         * alloc.c:
9130         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9131         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9132
9133 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9134
9135         * dumper.c: A little post-pdump-rename comment fixup.
9136
9137 2001-01-09  Jerry James  <james@eecs.ku.edu>
9138
9139         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9140
9141 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9142
9143         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9144         script:
9145         #!/bin/sh
9146         replace_symbol () {
9147           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9148         }
9149
9150         replace_symbol pdump_wire_lists pdump_weak_object_chains
9151         replace_symbol pdump_wire_list dump_add_weak_object_chain
9152
9153         replace_symbol pdump_wires pdump_root_objects
9154         replace_symbol pdump_wire dump_add_root_object
9155
9156         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9157         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9158
9159         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9160         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9161         replace_symbol dumpstructinfo pdump_root_struct_ptr
9162         replace_symbol dumpstruct dump_add_root_struct_ptr
9163
9164         replace_symbol dumpopaque dump_add_opaque
9165         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9166         replace_symbol dumpopaqueinfos pdump_opaques
9167         replace_symbol dumpopaqueinfo pdump_opaque
9168
9169         replace_symbol nb_structdump nb_root_struct_ptrs
9170         replace_symbol nb_opaquedump nb_opaques
9171
9172         replace_symbol align_table pdump_align_table
9173         replace_symbol dump_header pdump_header
9174
9175         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9176         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9177
9178
9179 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9180
9181         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9182         optimizing bytecount_to_charcount().
9183
9184 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9185
9186         * config.h.in:
9187         (HAVE_DLFCN_H): Removed.
9188         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9189
9190 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9191
9192         Portable dumper maintainability improvements.
9193         * alloc.c (staticpro):
9194         * alloc.c (staticpro_nodump):
9195         * alloc.c (garbage_collect_1):
9196         * alloc.c (reinit_alloc_once_early):
9197         * alloc.c (init_alloc_once_early):
9198         * alloc.c: Move dumper functions to alloc.c.
9199         * dumper.c (pdump_backtrace):
9200         * dumper.c (pdump_dump_structs):
9201         * dumper.c (pdump_dump_opaques):
9202         * dumper.c (pdump_dump_rtables):
9203         * dumper.c (pdump_dump_wired):
9204         * dumper.c (pdump):
9205         * dumper.c (pdump_load_check):
9206         * dumper.c (pdump_load_finish):
9207         * dumper.c (pdump_file_unmap):
9208         * dumper.c (pdump_file_get):
9209         * dumper.c (pdump_resource_free):
9210         * dumper.c (pdump_resource_get):
9211         * dumper.c (pdump_file_free):
9212         * dumper.c (pdump_file_try):
9213         * dumper.c (pdump_load):
9214         Remove fixed size limits on staticpro(), staticpro_nodump(),
9215         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9216         Remove custom code for dumping lrecord_implementations_table - use
9217         dumpopaque instead.
9218         Remove (most of the) custom code for dumping staticpros - dump it
9219         like any other dynarr.
9220
9221         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9222         * dumper.c: Moved functions from alloc.c.
9223         * alloc.c (dumpstruct): Moved to dumper.c.
9224         * alloc.c (dumpopaque): Likewise.
9225         * alloc.c (pdump_wire): Likewise.
9226         * alloc.c (pdump_wire_list): Likewise.
9227
9228         * lisp.h (Dynarr_sizeof): New.
9229         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9230         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9231         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9232
9233         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9234         * lisp.h (dumpopaque): ditto.
9235         * lisp.h (pdump_wire): ditto.
9236         * lisp.h (pdump_wire_list): ditto.
9237
9238 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9239
9240         * make-src-depend (PrintPatternDeps):
9241         Use `sort' to make output independent of perl version.
9242
9243 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9244
9245         Port to Netbsd 1.5.
9246         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9247         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9248
9249 2001-01-03  Didier Verna  <didier@xemacs.org>
9250
9251         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9252         that `focus_frame' is alive before thinking of calling
9253         `redisplay_redraw_cursor' on it.
9254
9255 2001-01-08  Martin Buchholz <martin@xemacs.org>
9256
9257         * XEmacs 21.2.40 is released.
9258
9259 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9260
9261         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9262
9263 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9264
9265         * alloc.c (dbg_valmask): Make const.
9266         * alloc.c (dbg_typemask): Make const.
9267         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9268         * alloc.c (dbg_valbits): Make const.
9269         * alloc.c (dbg_gctypebits): Make const.
9270
9271 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9272
9273         * redisplay-x.c (x_bevel_area):
9274         redisplay.h (struct rune):
9275         Typo fixes in comments.
9276
9277 2001-01-05  Andy Piper  <andy@xemacs.org>
9278
9279         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9280         adjustment.
9281
9282         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9283
9284 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9285
9286         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9287
9288         * mule-ccl.c (stack_idx_of_map_multiple):
9289         Non const global data must not be initialized!
9290         Found by MIYASHITA Hisashi.
9291
9292 2001-01-02  Andy Piper  <andy@xemacs.org>
9293
9294         * frame.c (change_frame_size): make sure frame size is always
9295         marked as changed.
9296
9297         * glyphs.c (image_instance_layout): minor code reuse.
9298
9299         * window.c (Fcurrent_window_configuration): revert previous
9300         change.
9301
9302 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9303
9304         * glyphs.h:
9305         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9306
9307 2000-12-31  Andy Piper  <andy@xemacs.org>
9308
9309         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9310         when widget gets unmapped.
9311
9312         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9313         function. Make sure widgets losing focus don't just drop it.
9314         (handle_focus_event_1): record the widget with focus.
9315
9316 2000-12-31  Andy Piper  <andy@xemacs.org>
9317
9318         * window.c (allocate_window): use
9319         make_image_instance_cache_hash_table.
9320         (make_dummy_parent): ditto.
9321         (Fset_window_configuration): ditto.
9322
9323         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9324
9325         * glyphs.c (process_image_string_instantiator): use
9326         INSTANTIATOR_TYPE.
9327         (get_image_instantiator_governing_domain): ditto.
9328         (normalize_image_instantiator): ditto.
9329         (instantiate_image_instantiator): ditto.
9330         (make_image_instance_1): ditto.
9331         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9332         (instantiator_eq_equal): new function for use with instance hash
9333         tables.
9334         (instantiator_eq_hash): ditto.
9335         (make_image_instance_cache_hash_table): create a suitable hash
9336         table for storing image instances.
9337
9338         * elhash.h (hash_table_weakness): new internal weakness type
9339         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9340         declare new functions.
9341
9342         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9343         another weakness type for glyphs.
9344         (make_standard_lisp_hash_table): new function split out from
9345         make_general_lisp_hash_table.
9346         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9347         (hash_table_instantiate): ditto.
9348         (Fmake_hash_table): ditto.
9349
9350 2000-12-31  Martin Buchholz <martin@xemacs.org>
9351
9352         * XEmacs 21.2.39 is released.
9353
9354 2000-12-29  Andy Piper  <andy@xemacs.org>
9355
9356         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9357
9358         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9359         the frame has changed so that we pick up geometry changes such as
9360         menubar visibility.
9361
9362 2000-12-28  Andy Piper  <andy@xemacs.org>
9363
9364         * lastfile.c (my_ebss): make a char array so we can pad the
9365         bss. Fixes cygwin unexec.
9366
9367         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9368
9369 2000-12-26  Andy Piper  <andy@xemacs.org>
9370
9371         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9372         comments and try and be more precise about a non-/SIGIO world.
9373         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9374         SIGIO.
9375
9376         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9377         we don't normalize to zero width or height.
9378
9379 2000-12-24  Andy Piper  <andy@xemacs.org>
9380
9381         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9382
9383 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9384
9385         * s/sco5.h: SCO 5 has pty support.
9386
9387 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9388
9389         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9390         input-method-xlib.c contains whole contents of input-method-xfs.c,
9391         so we can use input-method-xlib.c's code for USE_XFONTSET
9392         using #ifdefs.
9393         * input-method-xfs.c: removed.
9394
9395 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9396
9397         * file-coding.h (enum coding_category_type): reorder enumerators to
9398         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9399         (now one greater than largest real coding_category_type enumerator).
9400         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9401         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9402         Fcoding_category_list, Fset_coding_priority_list,
9403         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9404         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9405
9406 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9407
9408         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9409         * redisplay-output.c (redisplay_output_window): Clear top of window
9410         when face is changed.
9411         * redisplay-x.c (x_redraw_exposed_window): Call
9412         redisplay_clear_top_of_window.
9413         * redisplay.h: Publish redisplay_clear_top_of_window.
9414
9415 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9416
9417         * buffer.c (Fkill_buffer): Map over all devices.
9418         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9419         (list_windows): New function.
9420         (list_all_windows): Ditto.
9421         (Freplace_buffer_in_windows): Use them.
9422
9423 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9424
9425         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9426         (Fopen_database): Use `db_create' instead of `db_open'.
9427         (syms_of_database): Initialize Qqueue.
9428
9429 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9430
9431         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9432         buffer_local_face_property.
9433         * buffer.h (struct buffer): New member buffer_local_face_property.
9434         * window.c (Fset_window_buffer):  Mark window's face as changed
9435         when buffer has buffer local face.
9436         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9437         * objects.c (color_after_change): Set buffer_local_face_property
9438         when locale of face specifier is buffer.
9439         * objects.c (font_after_change): Ditto.
9440         * objects.c (face_boolean_after_change): Ditto.
9441         * glyphs.c (image_after_change): Ditto.
9442
9443 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9444
9445         * nt.c (mswindows_fstat): Report file permissions, volume serial
9446         number, etc. Code adapted from FSF Emacs 20.7.
9447
9448 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9449
9450         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9451         of stat when we don't have symbolic links, to make sure
9452         mswindows_stat is called on mswindows.
9453
9454 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9455
9456         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9457
9458 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9459
9460         * doprnt.c (emacs_doprnt_1): More printing fixes.
9461         Make printing of numbers compatible with libc and FSF Emacs.
9462         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9463         Use the system printf to do most of the hard work of formatting,
9464         instead of doprnt_1().
9465         Calculate memory to allocate for format string.
9466         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9467         (doprnt_1): Cleaner code and documentation.
9468
9469 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9470
9471         * Makefile.in.in: Use the loop variable to install headers.
9472
9473 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9474
9475         * window.c (Fsplit_window): Don't invalidate face cache.
9476
9477 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9478
9479         * minibuf.c (Fall_completions): Undo the previous change
9480         which removed checking elements start with space.
9481
9482 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9483
9484         * mule-canna.c: Didier suppression.
9485
9486 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9487
9488         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9489         (warning suppression).  Add English comment translations.
9490
9491 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9492
9493         * unexelfsgi.c (unexec): Better test for mmap failure.
9494
9495 2000-12-05  Martin Buchholz <martin@xemacs.org>
9496
9497         * XEmacs 21.2.38 is released.
9498
9499 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9500
9501         * redisplay.c (bar-cursor): Make a user variable.
9502
9503         * symsinit.h: Add init_postgresql_from_environment.
9504
9505 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9506
9507         * regex.c: Convert to clean C.
9508
9509 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9510
9511         * realpath.c:
9512         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9513         initialization.
9514         (sys_readlink): renamed to system_readlink to avoid conflict with
9515         the other sys_readlink.
9516
9517 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9518
9519         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9520
9521 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9522
9523         * postgresql.c (init_postgresql_from_environment): new function.
9524         (vars_of_postgresql): Move code initializing Lisp variables out and
9525         into init_postgresql_from_environment.
9526         emacs.c (main_1): Call init_postgresql_from_environment if and only
9527         if running a dumped XEmacs.
9528
9529 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9530
9531         * buffer.c: Make find-file-compare-truenames default to true on
9532         windows.
9533
9534         * realpath.c (win32_abs_start):
9535         (cygwin_readlink):
9536         (win32_readlink): New functions.
9537         (xrealpath): Return really real filenames on windows.
9538
9539         * fileio.c (Ffile_truename): Make file-truename work on windows.
9540
9541 2000-11-29  Didier Verna  <didier@xemacs.org>
9542
9543         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9544         * faces.c (update_face_cachel_data): use it.
9545         * faces.c (add_face_cachel): use it. Complete background pixmap
9546         frobbing in face cache if `update_face_cachel_data' has not done so.
9547
9548 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9549
9550         * search.c (string_match_1): Don't set last_thing_searched
9551         when search failed.
9552
9553 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9554
9555         * buffer.c: Include casetab.h
9556         (common_init_complex_vars_of_buffer): Use new case-table object.
9557         * buffer.h: Include casetab.h
9558         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9559         (DOWNCASE_TABLE_OF): Ditto.
9560         * bufslots.h: Remove char-tables and add case-table.
9561         * casetab.c: Include casetab.h
9562         (CASE_TABLE_P): Removed.
9563         (mark_case_table): New function.
9564         (allocate_case_table): New function.
9565         (Fcase_table_p): Use new case-table.
9566         (case_table_char): New function.
9567         (Fget_case_table): Ditto.
9568         (Fput_case_table): Ditto.
9569         (Fput_case_table_pair): Ditto.
9570         (Fcopy_case_table): Ditto.
9571         (Fcurrent_case_table): Return case-table.
9572         (Fstandard_case_table): Return case-table.
9573         (Fset_case_table): Fix doc-string.
9574         (set_case_table): Use case-table
9575         (syms_of_casetab): DEFSUBR new functions.
9576         (complex_vars_of_casetab): Set up standard case-table.
9577         * casetab.h: New file.
9578         * editfns.c: Include casetab.h
9579         (Fcompare_buffer_substrings): Use case-table.
9580         * inline.c: Include casetab.h
9581         * lisp.h: Remove bogus extern.
9582         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9583         * search.c: Include casetab.h
9584         (TRANSLATE_ASCII): Removed.
9585         (TRANSLATE): Unconditionally translate character.
9586         (looking_at_1): Use case-table.
9587         (string_match_1): Ditto.
9588         (fast_string_match): Ditto.
9589         (search_command): Ditto.
9590         (search_buffer): Separate boyer_moore.  Check whether
9591         boyer_moore is possible.
9592         (simple_search): New function.
9593         (boyer_moore): Separated from search_buffer. Translate char.
9594
9595 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9596
9597         * regex.c (RE_TR_ASCII): Removed.
9598         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9599         (PATFETCH): Call PATFETCH_RAW.
9600         (PATFETCH_RAW): Fetch Emchar.
9601         (PATUNFETCH): Decrement charptr.
9602         (GET_BUFFER_SPACE): Rename b to buf_end.
9603         (BUF_PUSH): Ditto.
9604         (BUF_PUSH_2): Ditto.
9605         (BUF_PUSH_3): Ditto.
9606         (EXTEND_BUFFER): Ditto.
9607         (SET_LIST_BIT): Ditto.
9608         (regex_compile): Ditto.  Translate non ASCII char.
9609         (compile_range): Ditto.
9610         (re_search_2): Ditto.
9611         (re_match_2_internal): Compare Emchar.
9612         (bcmp_translate): Ditto.
9613
9614 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
9615
9616         * lisp.h (basic char/int typedefs):  comment improvement.
9617
9618 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
9619
9620         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
9621         unstomp inhibit_site_lisp.  Improve comments.
9622
9623 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
9624
9625         * mule-charset.c (Fcharset_property):  improve type checking, comments.
9626
9627 2000-11-28  Andy Piper  <andy@xemacs.org>
9628
9629         * redisplay-output.c (redisplay_output_subwindow): make sure we do
9630         clipped display for windows in the gutter also.
9631         (redisplay_display_boxes_in_window_p): change semantics of return
9632         codes to be more intuitive.
9633
9634         * gutter.h: declare display_boxes_in_gutter_p.
9635
9636         * gutter.c (display_boxes_in_gutter_p): new function for
9637         redisplay.
9638
9639 2000-11-22  Andy Piper  <andy@xemacs.org>
9640
9641         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
9642         autodetect domain.
9643
9644 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
9645
9646         * callproc.c (Fold_call_process_internal):
9647         * gpm.c (Freceive_gpm_event):
9648         (tty_get_foreign_selection): Might be just warning supression.
9649         * fileio.c (Fwrite_region_internal):
9650         (Fset_visited_file_modtime):
9651         * keymap.c (event_matches_key_specifier_p):
9652         Initialize GCPROed variable.
9653
9654         * menubar-x.c (command_builder_find_menu_accelerator):
9655         Initialize before use.
9656
9657 2000-11-23  Andy Piper  <andy@xemacs.org>
9658
9659         * unexcw.c (unexec): make the resulting executable executable.
9660
9661 2000-11-21  Martin Buchholz  <martin@xemacs.org>
9662
9663         * doc.c (get_doc_string):
9664         Use size_t, not int, for result of XSTRING_LENGTH.
9665
9666         * cmds.c (Fdelete_char):
9667         * cmds.c (Fpoint_at_eol):
9668         * cmds.c (Fself_insert_command):
9669         Use EMACS_INT, not int, for result of XINT.
9670         Someday, someone will want to insert more than 2**31 identical characters.
9671
9672         * cmds.c (Fdelete_char):
9673         * cmds.c (Fdelete_backward_char):
9674         * syntax.c (Fforward_word):
9675         * syntax.c (Fforward_comment):
9676         Make COUNT argument optional, for consistency with forward-char et al.
9677
9678 2000-11-22  Martin Buchholz  <martin@xemacs.org>
9679
9680         * lisp.h:
9681         * print.c (long_to_string):
9682         Return a useful value: the pointer at end of data written.
9683
9684         * doprnt.c:
9685         Use `static const char * const' for constant strings.
9686         (union printf_arg): Delete `i', `ui' members.
9687         (get_doprnt_args):
9688         (emacs_doprnt_1):
9689         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
9690         Do all printf-ing via the `l' specifier.
9691         Use EMACS_INT instead of int.
9692         Optimize.
9693
9694 2000-11-20  Didier Verna  <didier@xemacs.org>
9695
9696         * faces.c (update_face_cachel_data): don't frob the background
9697         pixmap when the window is being created. The face is needed but
9698         does not exist yet.
9699
9700 2000-11-20  Andy Piper  <andy@xemacs.org>
9701
9702         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
9703         messing with a debug environment.
9704
9705 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9706
9707         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
9708
9709 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9710
9711         * casetab.c (Fcase_table_p): Fix compile error and crash.
9712
9713 2000-11-18  Philip Aston  <philipa@mail.com>
9714
9715         * s/cygwin32.h: Cygwin has SVR4-like pty support.
9716
9717 2000-11-18  Martin Buchholz  <martin@xemacs.org>
9718
9719         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
9720         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
9721
9722 2000-11-17  Martin Buchholz  <martin@xemacs.org>
9723
9724         * config.h.in: Define HAVE_ELF_H if elf.h exists.
9725         * unexelf.c: Use HAVE_ELF_H.
9726         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
9727         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
9728         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
9729         Greg Harrington <greg_harrington@hotmail.com> provided a machine
9730         for testing.
9731         So this is an unexelfsgi.c from a different line of development.
9732
9733 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9734
9735         * regex.c (RE_TR_ASCII): New function.
9736         (RE_TRANSLATE): Call it.
9737
9738 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9739
9740         * buffer.h (TRT_TABLE_OF): Remove assert.
9741         (IN_TRT_TABLE_DOMAIN): Removed.
9742
9743 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9744
9745         * free-hook.c (log_gcpro):
9746         (show_gcprohist): Add support for GCPRO5.
9747
9748 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
9749
9750         * emacs.c (main_1): Improve -sd error message when --pdump=no.
9751
9752 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
9753
9754         * symeval.h: Declare flush_all_buffer_local_cache.
9755
9756         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
9757         (flush_buffer_local_cache): Added.
9758         (flush_all_buffer_local_cache): Added.
9759
9760         * lrecord.h: Remove unused XD_LO_RESET_NIL.
9761
9762         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
9763         (pdump_dump_data): Ditto.
9764         (pdump_reloc_one): Ditto.
9765         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
9766         before dumping.
9767
9768
9769 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9770
9771         * buffer.c: Remove if 0'ed entry.
9772         * buffer.h: Rewrite TRT to use char-table.
9773         * bufslots.h: Remove mirror tables.
9774         * casetab.c: Remove mirror tables.
9775         (CASE_TABLE_P): New macro.
9776         (Fcase_table_p): Element of a case table is string or char-table.
9777         (make_mirror_trt_table): Removed.
9778         (set_case_table): Setup char-table from strings for backward
9779         compatibility.
9780         * dired.c (Fdirectory_files):
9781         * dired-msw.c: (mswindows_get_files):
9782         * lisp.h: Change prototype of re_pattern_buffer.
9783         * regex.c: (RE_TRANSLATE): New macro.
9784         (TRANSLATE_P): Ditto.
9785         Change translate to type RE_TRANSLATE_TYPE.
9786         * regex.h: Define RE_TRANSLATE_TYPE
9787         * search.c (TRANSLATE): New macro.
9788         (TRANSLATE_ASCII): New macro.
9789         Translate table is changed to Lisp_Object.
9790         (signal_failure): Inhibit return.
9791
9792 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9793
9794         * device-msw.c:
9795         * eldap.c:
9796         * event-Xt.c:
9797         * event-stream.c:
9798         * print.c:
9799         Do UNGCPRO before return.
9800
9801 2000-11-14  Martin Buchholz <martin@xemacs.org>
9802
9803         * XEmacs 21.2.37 is released.
9804
9805 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9806
9807         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
9808         Add comments about discarded return value.
9809
9810 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9811
9812         * callint.c:
9813         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
9814
9815 2000-10-27  Andy Piper  <andy@xemacs.org>
9816
9817         * gutter.c (Fset_default_gutter_position): default left and right
9818         gutters to visible.
9819         (calculate_gutter_size): calculate resonable heuristic for left
9820         and right gutter sizes.
9821         (specifier_vars_of_gutter): change left and right gutter sizes to
9822         autodetect.
9823         (calculate_gutter_size_from_display_lines): new function.
9824         (output_gutter): check for resizing on left and right gutters.
9825         (clear_gutter): don't special case top and left gutters.
9826         (specifier_vars_of_gutter): use new signature for
9827         set_specifier_caching.
9828
9829         * glyphs-x.c (x_redisplay_widget): spelling fix.
9830         * glyphs.c (specifier_vars_of_glyphs):
9831         * menubar.c (specifier_vars_of_menubar):
9832         * redisplay.c (specifier_vars_of_redisplay):
9833         * toolbar.c (specifier_vars_of_toolbar):
9834         * window.c (specifier_vars_of_window):
9835         * scrollbar.c (specifier_vars_of_scrollbar):
9836         (complex_vars_of_scrollbar): use new signature for
9837         set_specifier_caching.
9838
9839         * specifier.c (set_specifier_caching): include recompute flag.
9840         (recompute_one_cached_specifier_in_window): always recompute if
9841         flag set.
9842         (recompute_one_cached_specifier_in_frame): ditto.
9843
9844         * specifier.h (struct specifier_caching): add recompute flag.
9845
9846 2000-10-24  Andy Piper  <andy@xemacs.org>
9847
9848         * unexcw.c (copy_executable_and_dump_data_section): add new
9849         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
9850         5.0 happy.
9851
9852 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9853
9854         * console-x.h (x_device): New member modifier_release_time.
9855         * event-Xt.c (x_handle_sticky_modifiers):
9856         Bound interval modifier keys are sticky.
9857         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
9858         * events.h: extern it.
9859
9860 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9861
9862         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
9863
9864 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9865
9866         * event-stream.c (execute_command_event): Preserve current_events
9867         and the like when event is misc-user-event.
9868         Inhibit quit during the call to maybe_echo_keys.
9869
9870 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9871
9872         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
9873         symlink when buffer is killed.
9874         (inhibit_clash_detection): New variable.
9875
9876 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9877
9878         * console.c (Fset_input_method): Trigger redisplay on tty.
9879
9880 2000-11-07  Martin Buchholz  <martin@xemacs.org>
9881
9882         * process.c (Fprocess_status): Revert to previous behavior:
9883         (process-status "nosuchprocess") ==> nil
9884
9885 2000-11-06  Martin Buchholz  <martin@xemacs.org>
9886
9887         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
9888         Work around another GCC 2.95.2 optimizer bug.
9889
9890 2000-11-02  Martin Buchholz  <martin@xemacs.org>
9891
9892         * process.c (Fget_process): Use LIST_LOOP_2.
9893         (kill_buffer_processes): Use LIST_LOOP_2.
9894
9895         * minibuf.c (Fall_completions):
9896         Delete old non-functional code for FSF fourth argument.
9897
9898         * frame.c (frame_matches_frame_spec):
9899         Renamed from `frame_matches_frametype'.  Update all callers.
9900         (device_matches_device_spec):
9901         Renamed from 'device_matches_console_spec'.  Update all callers.
9902
9903         * doc.c (Fsubstitute_command_keys):
9904         Remove buffer overflow crash.  Small code cleanups.
9905
9906         * casetab.c (check_case_table): Simpler code.
9907
9908         * window.c (Freplace_buffer_in_windows):
9909         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
9910         (and similar implementation) as Fdelete_windows_on.
9911         Update all callers.
9912
9913         * alloc.c (Fmake_list):
9914         * alloc.c (make_vector):
9915         * alloc.c (Fmake_vector):
9916         * alloc.c (make_bit_vector):
9917         * alloc.c (Fmake_bit_vector):
9918         * alloc.c (Fbit_vector):
9919         * alloc.c (Fmake_string):
9920         * alloc.c (Fpurecopy):
9921         * alloc.c (Fmemory_limit):
9922         * buffer.c:
9923         * buffer.c (Fget_buffer):
9924         * buffer.c (Fkill_buffer):
9925         * buffer.c (complex_vars_of_buffer):
9926         * bytecode.c (Fcompiled_function_stack_depth):
9927         * callint.c (Fprefix_numeric_value):
9928         * event-stream.c:
9929         * event-stream.c (Fread_key_sequence):
9930         * casetab.c:
9931         * casetab.c (Fcase_table_p):
9932         * casetab.c (check_case_table):
9933         * casetab.c (Fset_case_table):
9934         * casetab.c (Fset_standard_case_table):
9935         * chartab.c:
9936         * chartab.c (Fchar_table_type):
9937         * chartab.c (Freset_char_table):
9938         * chartab.c (Fget_char_table):
9939         * chartab.c (Fget_range_char_table):
9940         * chartab.c (Fput_char_table):
9941         * chartab.c (Fmap_char_table):
9942         * chartab.c (Fcategory_table_p):
9943         * chartab.c (Fcheck_category_at):
9944         * chartab.c (Fchar_in_category_p):
9945         * chartab.c (Fcategory_table):
9946         * chartab.c (Fcopy_category_table):
9947         * chartab.c (Fset_category_table):
9948         * chartab.c (Fcategory_designator_p):
9949         * chartab.c (Fcategory_table_value_p):
9950         * cmds.c (Fdelete_char):
9951         * cmds.c (Fdelete_backward_char):
9952         * cmds.c (Fself_insert_command):
9953         * cmds.c (Fself_insert_internal):
9954         * console.c (Fvalid_console_type_p):
9955         * console.c (Fcdfw_console):
9956         * console.c (Fconsole_type):
9957         * console.c (Fconsole_name):
9958         * console.c (Fconsole_device_list):
9959         * console.c (Fconsole_on_window_system_p):
9960         * data.c:
9961         * data.c (Feq):
9962         * data.c (Fold_eq):
9963         * data.c (Fsubr_interactive):
9964         * data.c (Fchar_to_int):
9965         * data.c (Fint_to_char):
9966         * data.c (Fsetcar):
9967         * data.c (Fsetcdr):
9968         * data.c (Fnumber_to_string):
9969         * data.c (Fstring_to_number):
9970         * data.c (Frem):
9971         * database.c (mark_database):
9972         * database.c (finalize_database):
9973         * database.c (Fdatabase_live_p):
9974         * database.c (Fdatabasep):
9975         * device-x.c (Fx_get_resource):
9976         * device.c (Fdfw_device):
9977         * dired.c:
9978         * dired.c (Ffile_name_completion):
9979         * dired.c (Ffile_name_all_completions):
9980         * dired.c (Fuser_name_completion):
9981         * dired.c (Fuser_name_completion_1):
9982         * dired.c (Fuser_name_all_completions):
9983         * doc.c (Fdocumentation):
9984         * doc.c (Fdocumentation_property):
9985         * doc.c (Fsubstitute_command_keys):
9986         * editfns.c:
9987         * editfns.c (Fchar_to_string):
9988         * editfns.c (Fstring_to_char):
9989         * editfns.c (Ftemp_directory):
9990         * editfns.c (Finsert_char):
9991         * editfns.c (Fbuffer_substring_no_properties):
9992         * editfns.c (Fnarrow_to_region):
9993         * editfns.c (Fchar_equal):
9994         * editfns.c (Fchar_Equal):
9995         * editfns.c (Ftranspose_regions):
9996         * emacs.c (Fdump_emacs):
9997         * eval.c (Fthrow):
9998         * eval.c (Fcommand_execute):
9999         * eval.c (Fautoload):
10000         * eval.c (Fbacktrace):
10001         * eval.c (Fbacktrace_frame):
10002         * events.c:
10003         * events.c (Fcopy_event):
10004         * events.c (Fcharacter_to_event):
10005         * events.c (Fevent_button):
10006         * events.c (Fevent_process):
10007         * extents.c:
10008         * extents.c (Fnext_extent_change):
10009         * extents.c (Fextent_property):
10010         * faces.c (Ffacep):
10011         * faces.c (Fmake_face):
10012         * file-coding.c:
10013         * file-coding.c (Fencode_shift_jis_char):
10014         * file-coding.c (Fencode_big5_char):
10015         * fileio.c (Ffile_name_directory):
10016         * fileio.c (Ffile_name_nondirectory):
10017         * fileio.c (Ffile_name_as_directory):
10018         * fileio.c (Fdirectory_file_name):
10019         * fileio.c (Ffile_truename):
10020         * fileio.c (Fsubstitute_in_file_name):
10021         * fileio.c (Ffile_modes):
10022         * fileio.c (Fset_file_modes):
10023         * fileio.c (Fset_default_file_modes):
10024         * fileio.c (Fverify_visited_file_modtime):
10025         * floatfns.c (Facos):
10026         * floatfns.c (Fasin):
10027         * floatfns.c (Fatan):
10028         * floatfns.c (Fcos):
10029         * floatfns.c (Fsin):
10030         * floatfns.c (Ftan):
10031         * floatfns.c (Fbessel_j0):
10032         * floatfns.c (Fbessel_j1):
10033         * floatfns.c (Fbessel_jn):
10034         * floatfns.c (Fbessel_y0):
10035         * floatfns.c (Fbessel_y1):
10036         * floatfns.c (Fbessel_yn):
10037         * floatfns.c (Ferf):
10038         * floatfns.c (Ferfc):
10039         * floatfns.c (Flog_gamma):
10040         * floatfns.c (Fexp):
10041         * floatfns.c (Fexpt):
10042         * floatfns.c (Flog):
10043         * floatfns.c (Flog10):
10044         * floatfns.c (Fsqrt):
10045         * floatfns.c (Fcube_root):
10046         * floatfns.c (Facosh):
10047         * floatfns.c (Fasinh):
10048         * floatfns.c (Fatanh):
10049         * floatfns.c (Fcosh):
10050         * floatfns.c (Fsinh):
10051         * floatfns.c (Ftanh):
10052         * floatfns.c (Fabs):
10053         * floatfns.c (Ffloat):
10054         * floatfns.c (Flogb):
10055         * floatfns.c (Fceiling):
10056         * floatfns.c (Ffloor):
10057         * floatfns.c (Fround):
10058         * floatfns.c (Ftruncate):
10059         * floatfns.c (Ffceiling):
10060         * floatfns.c (Fffloor):
10061         * floatfns.c (Ffround):
10062         * floatfns.c (Fftruncate):
10063         * fns.c (Fstring_equal):
10064         * fns.c (Fstring_lessp):
10065         * fns.c (concat2):
10066         * fns.c (concat3):
10067         * fns.c (vconcat2):
10068         * fns.c (vconcat3):
10069         * fns.c (Fsubstring):
10070         * fns.c (Fassoc):
10071         * fns.c (Fold_assoc):
10072         * fns.c (assoc_no_quit):
10073         * fns.c (Fassq):
10074         * fns.c (Fold_assq):
10075         * fns.c (assq_no_quit):
10076         * fns.c (Frassoc):
10077         * fns.c (Fold_rassoc):
10078         * fns.c (Frassq):
10079         * fns.c (Fold_rassq):
10080         * fns.c (rassq_no_quit):
10081         * fns.c (Fremassoc):
10082         * fns.c (remassoc_no_quit):
10083         * fns.c (Fremassq):
10084         * fns.c (remassq_no_quit):
10085         * fns.c (Fremrassoc):
10086         * fns.c (Fremrassq):
10087         * fns.c (remrassq_no_quit):
10088         * fns.c (Fsort):
10089         * fns.c (Fplist_get):
10090         * fns.c (Fplist_put):
10091         * fns.c (Fplist_remprop):
10092         * fns.c (Fplist_member):
10093         * fns.c (Flax_plist_get):
10094         * fns.c (Flax_plist_put):
10095         * fns.c (Flax_plist_remprop):
10096         * fns.c (Flax_plist_member):
10097         * fns.c (Fequal):
10098         * fns.c (Fold_equal):
10099         * fns.c (Frequire):
10100         * fns.c (Fbase64_encode_region):
10101         * fns.c (Fbase64_encode_string):
10102         * fns.c (Fbase64_decode_region):
10103         * frame.c:
10104         * frame.c (frame_matches_frame_spec):
10105         * frame.c (device_matches_device_spec):
10106         * frame.c (next_frame):
10107         * frame.c (previous_frame):
10108         * frame.c (Fnext_frame):
10109         * frame.c (Fprevious_frame):
10110         * frame.c (Fframe_property):
10111         * frame.c (Fset_frame_height):
10112         * frame.c (Fset_frame_size):
10113         * frame.h:
10114         * glyphs.c:
10115         * glyphs.c (if):
10116         * glyphs.c (decode_error_behavior_flag):
10117         * glyphs.c (Fmake_image_instance):
10118         * indent.c (Findent_to):
10119         * intl.c (Fignore_defer_gettext):
10120         * keymap.c (Fkeymapp):
10121         * keymap.c (Flookup_key):
10122         * lread.c:
10123         * lread.c (Fload_internal):
10124         * lread.c (Feval_buffer):
10125         * lread.c (Feval_region):
10126         * macros.c (Fexecute_kbd_macro):
10127         * marker.c (set_marker_internal):
10128         * marker.c (Fset_marker):
10129         * marker.c (set_marker_restricted):
10130         * marker.c (Fcopy_marker):
10131         * marker.c (noseeum_copy_marker):
10132         * menubar.c:
10133         * menubar.c (Fpopup_menu):
10134         * minibuf.c:
10135         * mule-charset.c (Fcharset_name):
10136         * mule-charset.c (Fchar_charset):
10137         * mule-charset.c (Fchar_octet):
10138         * mule-charset.c (Fsplit_char):
10139         * mule-wnnfns.c (Fwnn_open):
10140         * mule-wnnfns.c (Fwnn_dict_comment):
10141         * mule-wnnfns.c (Fwnn_quit_henkan):
10142         * mule-wnnfns.c (Fwnn_word_toroku):
10143         * mule-wnnfns.c (Fwnn_word_sakujo):
10144         * mule-wnnfns.c (Fwnn_word_use):
10145         * mule-wnnfns.c (Fwnn_hindo_set):
10146         * objects.c:
10147         * objects.c (Fmake_color_instance):
10148         * objects.c (Fmake_font_instance):
10149         * print.c (Fwrite_char):
10150         * process.c:
10151         * process.c (mark_process):
10152         * process.c (print_process):
10153         * process.c (get_process_from_usid):
10154         * process.c (Fprocessp):
10155         * process.c (Fprocess_live_p):
10156         * process.c (Fget_process):
10157         * process.c (Fget_buffer_process):
10158         * process.c (get_process):
10159         * process.c (Fprocess_id):
10160         * process.c (Fprocess_name):
10161         * process.c (Fprocess_command):
10162         * process.c (init_process_io_handles):
10163         * process.c (start_process_unwind):
10164         * process.c (Fstart_process_internal):
10165         * process.c (Fopen_multicast_group_internal):
10166         * process.c (Fset_process_window_size):
10167         * process.c (read_process_output):
10168         * process.c (send_process):
10169         * process.c (Fprocess_tty_name):
10170         * process.c (Fset_process_buffer):
10171         * process.c (Fprocess_buffer):
10172         * process.c (Fprocess_mark):
10173         * process.c (set_process_filter):
10174         * process.c (Fset_process_filter):
10175         * process.c (Fprocess_filter):
10176         * process.c (Fprocess_send_region):
10177         * process.c (Fprocess_send_string):
10178         * process.c (exec_sentinel):
10179         * process.c (Fset_process_sentinel):
10180         * process.c (Fprocess_sentinel):
10181         * process.c (status_notify):
10182         * process.c (Fprocess_status):
10183         * process.c (Fprocess_exit_status):
10184         * process.c (process_send_signal):
10185         * process.c (Fprocess_send_eof):
10186         * process.c (deactivate_process):
10187         * process.c (remove_process):
10188         * process.c (Fdelete_process):
10189         * process.c (kill_buffer_processes):
10190         * process.c (Fprocess_kill_without_query):
10191         * process.c (Fprocess_kill_without_query_p):
10192         * rangetab.c:
10193         * rangetab.c (Fget_range_table):
10194         * rangetab.c (Fput_range_table):
10195         * rangetab.c (Fremove_range_table):
10196         * rangetab.c (Fclear_range_table):
10197         * search.c:
10198         * search.c (Fskip_chars_forward):
10199         * search.c (Fskip_chars_backward):
10200         * search.c (Fskip_syntax_forward):
10201         * search.c (Fskip_syntax_backward):
10202         * search.c (search_command):
10203         * search.c (Freplace_match):
10204         * search.c (Fregexp_quote):
10205         * select.c (Fown_selection_internal):
10206         * select.c (Fselection_owner_p):
10207         * select.c (Fselection_exists_p):
10208         * select.c (Fget_selection_internal):
10209         * specifier.c:
10210         * symbols.c:
10211         * symbols.c (Fintern):
10212         * symbols.c (Fintern_soft):
10213         * symbols.c (Funintern):
10214         * symbols.c (Fapropos_internal):
10215         * symbols.c (Fset_default):
10216         * syntax.c:
10217         * syntax.c (Fsyntax_table_p):
10218         * syntax.c (Fcopy_syntax_table):
10219         * syntax.c (Fset_syntax_table):
10220         * syntax.c (Fchar_syntax):
10221         * syntax.c (syntax_match):
10222         * syntax.c (Fmatching_paren):
10223         * syntax.c (Fforward_word):
10224         * syntax.c (scan_lists):
10225         * syntax.c (Fscan_lists):
10226         * syntax.c (Fscan_sexps):
10227         * syntax.c (Fparse_partial_sexp):
10228         * toolbar.c (Fcheck_toolbar_button_syntax):
10229         * tooltalk.doc:
10230         * window.c:
10231         * window.c (Fwindowp):
10232         * window.c (Fwindow_live_p):
10233         * window.c (Fwindow_point):
10234         * window.c (Fdelete_window):
10235         * window.c (Fnext_window):
10236         * window.c (Fprevious_window):
10237         * window.c (Fother_window):
10238         * window.c (window_loop):
10239         * window.c (Fget_lru_window):
10240         * window.c (Fsplit_window):
10241         * window.c (Fenlarge_window):
10242         * window.c (Fenlarge_window_pixels):
10243         * window.c (Fshrink_window):
10244         * window.c (Fshrink_window_pixels):
10245         * window.c (change_window_height):
10246         * window.c (Fwindow_configuration_p):
10247         * window.c (Fcurrent_window_configuration):
10248         * window.h:
10249         * casefiddle.c (casify_object):
10250         * casefiddle.c (Fupcase):
10251         * casefiddle.c (Fdowncase):
10252         * casefiddle.c (Fcapitalize):
10253         * casefiddle.c (Fupcase_initials):
10254         * casefiddle.c (casify_region_internal):
10255         * casefiddle.c (casify_region):
10256         * casefiddle.c (Fupcase_region):
10257         * casefiddle.c (Fdowncase_region):
10258         * casefiddle.c (Fcapitalize_region):
10259         * casefiddle.c (Fupcase_initials_region):
10260         * casefiddle.c (Fupcase_word):
10261         * casefiddle.c (Fdowncase_word):
10262         * casefiddle.c (Fcapitalize_word):
10263         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10264         Replace 0 with '\0' when working with bytes.
10265         Replace initial "(" with "\(" in docstrings.
10266
10267 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10268
10269         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10270
10271         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10272
10273 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10274
10275         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10276
10277 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10278
10279         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10280         correctly.
10281
10282 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10283
10284         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10285         (inhibit_auto_save_session): New variable.
10286         (vars_of_fileio): Declare and initialize them.
10287         * fileio.c (Fdo_auto_save): Don't create session file if
10288         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10289
10290 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10291
10292         * sgiplay.c (play_internal): C++ compilability.
10293         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10294         * callproc.c (Fold_call_process_internal):
10295         Remove unused vars `env', `first'.
10296         * scrollbar.c (update_scrollbar_instance):
10297         #### unused var `current_window'.
10298         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10299         etc. within #ifdef NOT_YET.
10300         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10301         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10302         * specifier.c (specifier_instance):
10303         #### unused var `tag'.
10304         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10305
10306 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10307
10308         * fns.c (Fbutlast):
10309         * fns.c (list_sort):
10310         * fns.c (Ffillarray):
10311         * fns.c (bytecode_nconc2):
10312         * fns.c (Fnconc):
10313         * fns.c (mapcar1):
10314         * fns.c (Fmapconcat):
10315         Be pedantically 64-bit correct.  For the time when someone will
10316         want to have a list with length > 2**32.
10317
10318         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10319         Work around MIPSpro compiler bug.
10320
10321         * process-unix.c (unix_kill_child_process): Add snarky comment.
10322         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10323
10324         * config.h.in: Oops, _getpt ==> _getpty
10325
10326 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10327
10328         * config.h.in:
10329         * regex.c:
10330         Use void*, not char*, as return type of alloca().
10331
10332         * alloc.c (free_marker): Side effect inside assert expression!
10333
10334 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10335
10336         * mule-charset.c (Fset_charset_ccl_program): To check
10337         if the given ccl program is valid, use setup_ccl_program()
10338         instead of CHECK_VECTOR().
10339         (Fmake_charset): Likewise.
10340
10341 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10342
10343         * faces.c (get_extent_fragment_face_cache_index):
10344         Fix cachel.merged_faces memory leak.
10345
10346 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10347
10348         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10349         Reset MSB of octets obtained by DECODE_SJIS
10350         because of the incompatibility with Emacs.
10351         (ccl_driver)<CCL_ENCODE_SJIS>:
10352         Set MSB of octets before passing them to
10353         ENCODE_SJIS because of the incompatibility
10354         with Emacs.
10355
10356 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10357
10358         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10359         (DECLARE_LRECORD): Undo the last change.
10360         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10361
10362 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10363
10364         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10365         the implementation to lrecord_implementations_table.
10366
10367 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10368
10369         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10370         initial value of `lrecord_type_##c_name' and
10371         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10372         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10373         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10374         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10375         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10376
10377 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10378
10379         * miscplay.c (sndcnv8S_2mono):
10380         (sndcnv2monounsigned):
10381         (sndcnvULaw_2linear):
10382         (sndcnv16swap):
10383         Remove implementation-defined behavior.
10384
10385 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10386
10387         * input-method-xlib.c: Warning suppression.
10388
10389 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10390
10391         * mule-ccl.c: Sync up with Emacs 21.0.90.
10392         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10393         Do nothing.
10394         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10395         Likewise.
10396         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10397         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10398         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10399         leading char belongs to official 2-dimensional charset.
10400         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10401         write the given character as is.  Otherwise,
10402         if it is a multibyte char, convert it by
10403         non_ascii_set_charptr_emchar, then write it.
10404         (CCL_WRITE_STRING): Likewise.
10405         (ccl_get_compiled_code): New function.
10406         (setup_ccl_program): When ccl_prog is invalid,
10407         return -1.
10408         (Fregister_code_conversion_map): New function.
10409         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10410
10411         * mule-ccl.h: Sync up with Emacs 21.0.90.
10412         (Fregister_ccl_program): export it.
10413
10414         * redisplay-msw.c (separate_textual_runs):
10415         If ccl program is not valid, don't do ccl conversion.
10416
10417         * redisplay-x.c (separate_textual_runs): Ditto.
10418
10419         * file-coding.c (Fmake_coding_system):
10420         When type is ccl and value is vector, register it
10421         with a proper symbol.  And checks whether the
10422         given ccl program is valid.
10423         (mule_decode): When calling ccl_driver, if src indicates
10424         NULL pointer, set an empty string instead.
10425         (mule_encode): Likewise.
10426
10427 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10428
10429         The following large batch of changes gets us back to a state of
10430         C++ compilability.  Extbyte is now a char, which means that
10431         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10432
10433         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10434
10435         * sound.c (Fplay_sound): Type correctness.
10436
10437         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10438         (x_get_window_property): Type correctness.
10439         (receive_incremental_selection): unsigned char ==> Extbyte
10440         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10441         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10442         (Fx_store_cutbuffer_internal): Type correctness.
10443
10444         * process-unix.c (try_to_initialize_subtty): Type correctness.
10445
10446         * objects-x.c (x_print_color_instance): Type correctness.
10447         (x_print_font_instance): Type correctness.
10448         (x_list_fonts): SExtbyte ==> Extbyte.
10449         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10450         (x_find_charset_font): SExtbyte ==> Extbyte.
10451         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10452         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10453         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10454         Use bufbyte_strcmp.
10455
10456         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10457         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10458         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10459         (BYTE_C0_P): Use bit ops for char-signedness safety.
10460         (BYTE_C1_P): Use bit ops for char-signedness safety.
10461         (CHARSET_BY_LEADING_BYTE):
10462         (CHARSET_BY_ATTRIBUTES):
10463         Always use inline function.
10464         Use type_checking_assert.
10465         Hide chlook.
10466
10467         * mule-charset.c (non_ascii_charptr_copy_char):
10468         Modify to work with both ASCII and non-ASCII characters.
10469         Improve docs and variable names.
10470         Replace over-clever fall-through switch with a simple loop.
10471         (Lstream_get_emchar_1):
10472         Replace over-clever fall-through switch with a simple loop.
10473
10474         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10475         Warning suppression.
10476
10477         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10478         the return value of Lstream_getc, which could be EOF as well.
10479
10480         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10481
10482         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10483         APIs can be used on Extbytes without casts.  Risky!
10484         (SExtbyte): Remove.
10485         (UExtbyte): Remove.
10486
10487         * input-method-xlib.c (XIM_init_device):
10488         Use Xlib.h instead of IntrinsicP.h.
10489         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10490         which will break in X11R7.
10491         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10492         to call XRegisterIMInstantiateCallback with correct types.
10493
10494         * gui-x.c (button_item_to_widget_value): Type correctness.
10495
10496         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10497
10498         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10499         (xbm_instantiate_1): Type correctness.
10500         (BUILD_GLYPH_INST):  Type correctness.
10501
10502         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10503
10504         * file-coding.c:
10505         (decode_coding_sjis):
10506         (decode_coding_big5):
10507         (decode_coding_ucs4):
10508         (decode_coding_utf8):
10509         (decode_coding_iso2022):
10510         (decode_coding_no_conversion):
10511         Make all decoding functions take an Extbyte * arg.
10512         (encode_coding_sjis):
10513         (encode_coding_big5):
10514         (encode_coding_ucs4):
10515         (encode_coding_utf8):
10516         (encode_coding_iso2022):
10517         (encode_coding_no_conversion):
10518         Make all encoding functions take a Bufbyte * arg.
10519         Use size_t instead of unsigned int for memory sizes.
10520         Only cast to unsigned char whenever dereferencing Extbyte *.
10521
10522         * doc.c (unparesseuxify_doc_string): Type correctness.
10523
10524         * console-x.c (split_up_display_spec):
10525         Rewrite without using details of internal string representation.
10526         (x_semi_canonicalize_device_connection): Type correctness.
10527
10528         * config.h.in:
10529         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10530         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10531         (HAVE_XFREE386): Removed.
10532
10533         * buffer.h (DEC_CHARPTR): `const' correctness.
10534         (bufbyte_strcmp): New.
10535         (bufbyte_memcmp): New.
10536
10537         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10538
10539         * buffer.h (XCHAR_OR_CHAR_INT):
10540         Always use inline function.
10541         Remove redundant type checking assert() - XINT will abort quite nicely.
10542
10543 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10544
10545         * search.c (Freplace_match): Set newtext to an empty string.
10546
10547 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10548
10549         * s/decosf1-3.h: Remove #include of stropts.h
10550         * s/ptx.h: Remove #include of stropts.h
10551         * s/usg5-4.h: Remove #include of stropts.h
10552         * sysproc.h:
10553         * config.h.in:
10554         Use stropts.h, not sys/stropts.h.
10555         Use strtio.h, not sys/strtio.h.
10556
10557 2000-10-04  Martin Buchholz <martin@xemacs.org>
10558
10559         * XEmacs 21.2.36 is released.
10560
10561 2000-09-21  Andy Piper  <andy@xemacs.org>
10562
10563         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10564         changes still involve copying the widget tree.
10565         (update_widget_face): make sure a change is register in the widget
10566         tree. Call update_tab_widget_face appropriately.
10567         (update_tab_widget_face): ditto.
10568         (x_tab_control_redisplay): make sure non-structural changes still
10569         involve copying the widget tree.
10570
10571 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10572
10573         * lread.c (locate_file): Check the path element is non-nil.
10574
10575 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10576
10577         * lisp.h: Warning suppression for SCO compilers.
10578
10579         * redisplay-tty.c (reset_tty_modes): Fix crash.
10580         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10581
10582 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10583
10584         Big signal/process handling overhaul.  Bugs fixed:
10585         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10586         M-x comint-kill-subjob should work for both values nil and t of
10587         process-connection-type. It was broken on most platforms.
10588         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10589         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10590         * process-unix.c: Signal/Process handling overhaul.
10591         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10592         (allocate_pty): Use all available modern methods of allocating
10593         ptys, falling back to old style BSD allocation as a last resort.
10594         Use allegedly more secure Unix98 pty allocation by default.
10595         (allocate_pty_the_old_fashioned_way): New. the last resort.
10596         (unix_create_process): Push ptem, ldterm, ttcompat where
10597         available.  Autoconfiscate.
10598         (try_to_initialize_subtty): New.
10599         (unix_kill_child_process): Proper signal handling for ptys on most
10600         platforms, using special knowledge of AIX, BSD, etc...
10601         (unix_create_process): Always disconnect_controlling_terminal() for
10602         subprocesses, whether using ptys or not.
10603         * process.h: Remove old getpt-dependent PTY code.
10604         * process.c (Fprocess_send_signal): New, obvious generic function.
10605         (decode_signal): New.
10606         (Finterrupt_process):
10607         (Fkill_process):
10608         (Fquit_process):
10609         (Fstop_process):
10610         (Fcontinue_process):
10611         (Fsignal_process): Use decode_signal.
10612         (process_send_signal):
10613         Many docstring corrections.
10614         Allow any signal to be sent to a process object.
10615         * config.h.in: Add symbols for big signal/process overhaul.
10616         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
10617         * sysproc.h: Include process-related headers, where available:
10618         sys/stropts.h sys/strtio.h pty.h libutil.h
10619         * s/irix4-0.h:
10620         * s/irix5-0.h:
10621         * s/cygwin32.h:
10622         * s/gnu.h:
10623         * s/linux.h:
10624         * s/hpux.h:
10625         * s/aix3-1.h:
10626         Remove old S&M pty stuff.
10627         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
10628         * systty.h: Simplify cpp hackery, improve comments.
10629         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
10630
10631         * editfns.c (Fformat_time_string):
10632         Be a little more paranoid with the return value of ctime.
10633
10634         * fileio.c (check_executable):
10635         (check_writable):
10636         Use symbolic constants X_OK, W_OK.
10637
10638         * console-x.c (split_up_display_spec): Fix a warning.
10639
10640 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10641
10642         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
10643         * ntproc.c (sys_spawnve): make_string ==> build_string
10644         Small clarity improvements.
10645
10646 2000-09-30  Martin Buchholz  <martin@xemacs.org>
10647
10648         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
10649
10650         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
10651
10652         * config.h.in (HAVE_STRCASECMP): Remove.
10653
10654 2000-09-29  Martin Buchholz  <martin@xemacs.org>
10655
10656         * redisplay-output.c (redisplay_output_pixmap):
10657         Cleaner and possibly more 64-bit correct code.
10658
10659 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
10660
10661         * dumper.c (pdump_load_finish): move restoration of
10662         `noninteractive1' to emacs.c (main_1).
10663         * emacs.c (main_1): protect LISP-visible command-line flags
10664         from pdump_load().
10665
10666 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
10667
10668         * Makefile.in.in (versionclean):  Use EXE_TARGET and
10669         DUMP_TARGET instead of literal program names.
10670
10671 2000-09-20  Martin Buchholz  <martin@xemacs.org>
10672
10673         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
10674
10675 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10676
10677         * *: Spelling mega-patch
10678
10679 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10680
10681         * fns.c (bad_bad_turtle):
10682         Delete "Eek!" comment, since we fixed the bug to which it refers.
10683
10684 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10685
10686         * alloca.c: Replace REGISTER with register.
10687
10688 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
10689
10690         * file-coding.c (ucs_to_char): Use countof.
10691
10692 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10693
10694         * file-coding.c: (ucs_to_char):
10695         (complex_vars_of_file_coding):
10696         Use countof instead of sizeof.
10697         Use CHECK_NATNUM instead of CHECK_INT.
10698
10699         * sysdep.c (strcasecmp): Remove.
10700         * device-x.c (ascii_strcasecmp): New.
10701         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
10702         Avoid using non-standard non-portable strcasecmp.
10703
10704 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10705
10706         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
10707         * font-lock.c: remove reference to emacsfns.h.
10708         * search.c: small doc improvement.
10709         * event-Xt.c: correct file names in comments.
10710         * console-x.h Correct file names in comments.
10711         * frame.c: Correct file names in comments.
10712         * event-stream.c: remove Energize from comments.
10713
10714 2000-09-15  Martin Buchholz  <martin@xemacs.org>
10715
10716         * symeval.h (DEFERROR_STANDARD):
10717         (DEFERROR):
10718         (DEFSYMBOL):
10719         (DEFSYMBOL_NO_DUMP):
10720         (DEFSYMBOL_MULTIWORD_PREDICATE):
10721         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
10722         (DEFKEYWORD):
10723         The construct &##name is not sensible C.
10724         Fixes compilation errors with Unixware native compiler.
10725
10726 2000-09-14  Martin Buchholz  <martin@xemacs.org>
10727
10728         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
10729         (next_frame_internal): Removed.  We now just have next_frame.
10730         (next_frame):
10731         Write a simpler and cleaner one-pass algorithm.
10732         Remove called_from_delete_device arg and #ifdefed-out code.
10733         (previous_frame):
10734         Renamed from prev_frame.  Update callers.
10735         Cleaned up to have an analogous implementation to next_frame.
10736         (other_visible_frames_internal): Remove the
10737         called_from_delete_device bogus arg, and hence, remove this
10738         function.  Just use other_visible_frames().
10739
10740         * window.c (Fnext_window):
10741         Prettify docstring.
10742         Since next_frame() is guaranteed to return a frame, remove check
10743         for nil inserted in previous patch.
10744         (Fprevious_window):
10745         Prettify docstring.
10746         Make code look more like Fnext_window.
10747         (window_loop):
10748         Respect the `console' arg when iterating through windows.
10749         Fixes bug: (get-buffer-window buffer t device) not respecting
10750         the `device' arg.
10751         This function needs more work, as others have pointed out.
10752
10753         * frame.h: Rename prev_frame to previous_frame.
10754         device_matches_console_spec no longer takes a `frame' arg.
10755
10756         * s/gnu.h:
10757         * s/linux.h:
10758         * s/hpux.h:
10759         Use EMACS_BLOCK_SIGNAL instead of sigblock.
10760         From "Golubev I. N." <gin@mo.msk.ru>.
10761
10762         * make-src-depend: Fix typo.
10763
10764 2000-09-13  Martin Buchholz  <martin@xemacs.org>
10765
10766         * window.c (Fnext_window):
10767         next_frame() might return nil, not a frame.
10768         Fixes this crash:
10769         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10770
10771         * frame.c (next_frame_internal):
10772         We've passed a frame if we've passed its device.
10773         Fixes this crash:
10774         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10775 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
10776
10777 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10778
10779         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10780         Allow option to suppress accelerators in menu/dialog items.
10781         (populate_or_checksum_helper): Pass dialog title through above.
10782
10783 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10784
10785         * event-msw.c (mswindows_key_to_emacs_keysym):
10786         Add "pause" key, fix "menu" key.
10787
10788 2000-09-09  Martin Buchholz  <martin@xemacs.org>
10789
10790         * eval.c (reinit_vars_of_eval):
10791         Increase max_lisp_eval_depth to 1000,
10792         required for thai-xtis.el to byte-compile under some circumstances.
10793
10794 2000-09-04  Martin Buchholz  <martin@xemacs.org>
10795
10796         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
10797         From Kenichi Handa.
10798
10799 2000-09-01  Martin Buchholz  <martin@xemacs.org>
10800
10801         * make-src-depend: Make the generated Makefiles smaller.
10802
10803         * s/hpux.h (SETUP_SLAVE_PTY):
10804         Provide a %d in the format string for the errno argument.
10805
10806         * editfns.c (Ftemp_directory):
10807         Warning fix.
10808         Avoid buffer overrun on very long file name.
10809
10810         * input-method-xlib.c (XIM_init_device):
10811         6th parameter of XRegisterIMInstantiateCallback has different
10812         pointer types on different OSes, so simply cast to (void *).
10813
10814         * unexhp9k800.c: Warning fixes.  Fiddly changes.
10815
10816         * sysdll.c (dll_open):
10817         shl_load will hang hard if passed a NULL filename.
10818         Simply return NULL for compatibility with dlopen.
10819         * sysdll.c: Conform to XEmacs coding standards.
10820
10821         * sysdep.c (get_pty_max_bytes):
10822         Support pty input lines longer than 512 bytes on HP-UX 10.20.
10823
10824 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10825
10826         * tooltalk.c: Add #include <syssignal.h>
10827
10828 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
10829
10830         * s/hpux.h: Don't use undefined function sigunblock().
10831
10832 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10833
10834         * config.h.in: Add HAVE_BALLOON_HELP.
10835         * emacs.c: Use HAVE_BALLOON_HELP.
10836         * Makefile.in.in (x_objs):
10837         Make Balloon Help conditional on finding shape.h.
10838
10839 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
10840
10841         * syntax.c (regex_emacs_buffer_p): New variable.
10842         * syntax.h (regex_emacs_buffer_p): extern.
10843         * search.c (looking_at_1):
10844         (string_match_1):
10845         (fast_string_match):
10846         (search_buffer): Set regex_emacs_buffer_p.
10847         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
10848         when before_dot, at_dot, after_dot.
10849
10850 2000-08-23  Andy Piper  <andy@xemacs.org>
10851
10852         * gui-x.c (popup_selection_callback): Only set action_occurred
10853         when we really have an image instance.
10854         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
10855
10856 2000-08-23  Andy Piper  <andy@xemacs.org>
10857
10858         * gui-msw.c (mswindows_handle_gui_wm_command): set
10859         action_occurred.
10860         * gui-x.c (popup_selection_callback): ditto.
10861
10862         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
10863         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
10864         (struct Lisp_Image_Instance): add action_occurred flag.
10865
10866         * glyphs.c (redisplay_subwindow): use action_occurred flag.
10867         (image_instance_changed): ditto.
10868         (reset_frame_subwindow_instance_cache): only unmap windows - do
10869         not remove them from the cache also.
10870
10871         * glyphs-widget.c (tab_control_update): better debug.
10872         (progress_gauge_update): ditto.
10873         (layout_update): ditto.
10874         (layout_instantiate): ditto.
10875         (tab_control_order_only_changed): cope with null pending items.
10876
10877         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
10878         debug. Force selection of an item when an action occurred. Cope
10879         with null pending_items.
10880         (mswindows_progress_gauge_redisplay): better debug.
10881         * glyphs-x.c (x_tab_control_redisplay): ditto.
10882
10883         * redisplay.c (redisplay_frame): reset the frame cache if the
10884         frame is garbaged.
10885
10886         * window.c (Fset_window_configuration): potentially re-enable
10887         frame cache reset.
10888         (window_unmap_subwindows): need to finalize instances here since
10889         it is only used in mark_window_as_deleted.
10890
10891 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
10892
10893         * nas.c (SndOpenDataForReading):
10894         nas.c (WaveOpenDataForReading):
10895         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
10896         Somehow escaped from the 2000-08-14 patch.
10897
10898 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
10899
10900         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
10901         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
10902
10903 2000-08-21  Andy Piper  <andy@xemacs.org>
10904
10905         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
10906         window if it is not already displayed.
10907
10908         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
10909         it is not already displayed.
10910
10911         * window.c (Fset_window_configuration): don't reset the frame
10912         cache.
10913
10914         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
10915         instances from the frame cache if we are actually finalizing them.
10916         (reset_frame_subwindow_instance_cache): reset frame cache only
10917         after unmapping everything.
10918         (map_subwindow): set displayed flag after mapping.
10919
10920 2000-08-21  Martin Buchholz  <martin@xemacs.org>
10921
10922         * data.c (indirect_function):
10923         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
10924
10925         * eval.c (function_argcount):
10926         Use original function when signaling errors.
10927
10928 2000-08-18  Andy Piper  <andy@xemacs.org>
10929
10930         * frame.c (delete_frame_internal): use new
10931         free_frame_subwindow_instances name.
10932
10933         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
10934         (add_tab_item): make return type correct.
10935         (mswindows_tab_control_instantiate): assert index of tab.
10936         (mswindows_tab_control_redisplay): Re-code to use
10937         gui_item_equal_sans_selected and gui_item_list_find_selected.
10938
10939         * glyphs-widget.c (tab_control_update): Correct comment.
10940
10941         * window.c (window_unmap_subwindows): use new
10942         unmap_subwindow_instance_cache_mapper.
10943         (window_unmap_subwindows_cache_mapper): deleted.
10944         (Fset_window_configuration): comparisons should now be with
10945         EQ. Preserve the subwindow instance cache across configuration
10946         changes.
10947         (allocate_window): ditto.
10948         (make_dummy_parent): ditto.
10949
10950         * glyphs.c (free_frame_subwindow_instances): rename from
10951         free_frame_subwindow_instance_cache. finalize all instances rather
10952         than just those in the display cache.
10953         (finalize_all_subwindow_instances): walk windows unmapping and
10954         finalizing subwindows.
10955         (unmap_subwindow_instance_cache_mapper): moved from
10956         window.c. Allow finalization as well as unmapping.
10957
10958         * gui.c (gui_item_list_find_selected): new function.
10959
10960         * gui.h (gui_item_list_find_selected): declare.
10961
10962         * glyphs-x.c (x_tab_control_redisplay): pick tab
10963         explicitly. Re-code to use gui_item_equal_sans_selected and
10964         gui_item_list_find_selected.
10965
10966         * glyphs-x.h: add lwlib-utils.h
10967
10968         * buffer.c (Frecord_buffer): undo previous change.
10969
10970 2000-08-09  Vin Shelton  <acs@xemacs.org>
10971
10972         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
10973         possible.  Create temporary files more securely.  The patch was
10974         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
10975         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
10976         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
10977         for details.
10978
10979 2000-08-07  Ben Wing  <ben@xemacs.org>
10980
10981         * getloadavg.c: remove duplicate (and windows-breaking)
10982         includes of fcntl.h and sys/file.h.
10983
10984         * nt.c: remove duplicate getloadavg() definition.
10985
10986         * sysdll.h (Qdll_filename_encoding): add missing stand-in
10987         encodings.
10988
10989 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10990
10991         * eval.c (function_argcount): If function needs to be autoloaded
10992         actually use the loaded definition.
10993         GCPRO function.
10994
10995 2000-08-05  Ben Wing  <ben@xemacs.org>
10996
10997         * getloadavg.c: add prototype for getloadavg().  remove
10998         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
10999         of the code).  remove duplicate header includes.
11000
11001         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11002
11003         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11004         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11005         useful load average.
11006
11007         * alloc.c (reinit_alloc_once_early): removed references to
11008         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11009         the lisp vars are the only things referencing the malloc_sbrk_*
11010         vars, and they were already if 0'd out.  these vars only exist
11011         in the older malloc.c, which is basically unused, and they're
11012         only for informational purposes.
11013
11014         * m\*.h: removed useless VIRT_ADDR_VARIES.
11015
11016         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11017
11018 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11019
11020         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11021         color if the image is a mono pixmap.
11022
11023 2000-07-30  Ben Wing  <ben@xemacs.org>
11024
11025         * Makefile.in.in (release):
11026         Remove stray @.
11027
11028         * buffer.c (directory_is_current_directory):
11029         * dired-msw.c (mswindows_get_files):
11030         * dired.c:
11031         * dired.c (Fdirectory_files):
11032         * dired.c (file_name_completion_stat):
11033         * dired.c (Ffile_attributes):
11034         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11035         preprocessor tricks, to avoid problems on some machines
11036         (e.g. SCO).
11037
11038         * callproc.c (egetenv): GC docs.
11039
11040         * console-msw.h:
11041         * console-msw.h (struct mswindows_dialog_id):
11042         * lrecord.h (lrecord_type):
11043         New object for use with MSW dialogs.
11044
11045         * console.h (struct console_methods):
11046         New enable/disable frame methods, for proper modal dialogs.
11047
11048         * device-msw.c (msprinter_default_printer): Fix to follow
11049         proper Mule conventions.
11050
11051         * device-msw.c:
11052         * device-msw.c (signal_open_printer_error):
11053         * device-msw.c (msprinter_init_device):
11054         * device-msw.c (ensure_not_printing):
11055         * device-msw.c (plist_get_margin):
11056         * device-msw.c (Fmsprinter_select_settings):
11057         * device-msw.c (finalize_devmode):
11058         * device-msw.c (Fmsprinter_settings_despecialize):
11059         * device-msw.c (signal_enum_priner_error):
11060         * extents.c (decode_extent):
11061         * extents.c (decode_map_extents_flags):
11062         * extents.c (decode_extent_at_flag):
11063         * extents.c (Fextent_at):
11064         * extents.c (Fextents_at):
11065         * extents.c (symbol_to_glyph_layout):
11066         [[[[2]]]] Use structured errors.
11067
11068         * dialog-msw.c:
11069         * dialog-msw.c (mswindows_is_dialog_msg):
11070         * dialog-msw.c (mark_mswindows_dialog_id):
11071         * dialog-msw.c (dialog_proc):
11072         * dialog-msw.c (handle_question_dialog_box):
11073         * dialog-msw.c (syms_of_dialog_mswindows):
11074         Define new object to clean up marking; use it as a dialog identifier.
11075         Call new delete-dialog-box-hook.
11076
11077         * dialog-x.c (dbox_selection_callback):
11078         * dialog-x.c (dbox_descriptor_to_widget_value):
11079         * dialog-x.c (x_make_dialog_box_internal):
11080         Call new delete-dialog-box-hook.
11081         Return an id.
11082
11083         * dialog.c:
11084         * dialog.c (syms_of_dialog):
11085         * dialog.c (vars_of_dialog):
11086         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11087
11088         * eval.c:
11089         * eval.c (signal_call_debugger):
11090         when noninteractive, output stack traces on the console instead
11091         of in a (never-seen) buffer.
11092
11093         * eval.c (signal_type_error):
11094         * eval.c (invalid_argument_2):
11095         * lisp.h:
11096         new funs for use w/structured errors.
11097
11098         * event-Xt.c:
11099         * event-Xt.c (x_to_emacs_keysym):
11100         * event-Xt.c (describe_event):
11101         * event-Xt.c (emacs_Xt_event_handler):
11102         * event-Xt.c (vars_of_event_Xt):
11103         * event-msw.c:
11104         * event-msw.c (mswindows_wnd_proc):
11105         * event-msw.c (vars_of_event_mswindows):
11106         rename {x,mswindows}-debug-events to debug-{}-events for
11107         consistency with other debug-foo variables.
11108
11109         * event-stream.c:
11110         document next-event more clearly.
11111
11112         * fileio.c (Ffile_name_directory):
11113         * fileio.c (Ffile_name_nondirectory):
11114         * fileio.c (Funhandled_file_name_directory):
11115         * fileio.c (file_name_as_directory):
11116         * fileio.c (Ffile_name_as_directory):
11117         * fileio.c (directory_file_name):
11118         * fileio.c (Fdirectory_file_name):
11119         * fileio.c (Fmake_temp_name):
11120         * fileio.c (Ffile_truename):
11121         * fileio.c (Fsubstitute_in_file_name):
11122         * fileio.c (expand_and_dir_to_file):
11123         * fileio.c (barf_or_query_if_file_exists):
11124         * fileio.c (check_executable):
11125         * fileio.c (Ffile_exists_p):
11126         * fileio.c (Ffile_writable_p):
11127         * fileio.c (Ffile_directory_p):
11128         * fileio.c (Ffile_regular_p):
11129         * fileio.c (Ffile_modes):
11130         * fileio.c (Ffile_newer_than_file_p):
11131         * fileio.c (Fverify_visited_file_modtime):
11132         * fileio.c (Fset_visited_file_modtime):
11133         * fileio.c (auto_save_1):
11134         (1). (2).
11135         fix up gcpro's.
11136
11137         * frame-msw.c:
11138         * frame-msw.c (mswindows_init_frame_1):
11139         * frame-msw.c (mswindows_enable_frame):
11140         * frame-msw.c (error_frame_unsizable):
11141         * frame-msw.c (msprinter_init_frame_1):
11142         * frame-msw.c (msprinter_init_frame_3):
11143         * frame-msw.c (console_type_create_frame_mswindows):
11144         (2).
11145         implement new enable/disable frame methods.
11146
11147         * frame-x.c:
11148         * frame-x.c (x_enable_frame):
11149         * frame-x.c (console_type_create_frame_x):
11150         implement new enable/disable frame methods.
11151
11152         * frame.c:
11153         * frame.c (Fdisable_frame):
11154         * frame.c (syms_of_frame):
11155         * frame.h (struct frame):
11156         implement new enable/disable frame methods/functions.
11157
11158         * general-slots.h:
11159         add initial-focus.
11160
11161         * glyphs-msw.c (mswindows_widget_instantiate):
11162         comment that initial-focus should be implemented.
11163
11164         * glyphs-widget.c:
11165         * glyphs-widget.c (check_valid_instantiator):
11166         * glyphs-widget.c (check_valid_orientation):
11167         * glyphs-widget.c (check_valid_tab_orientation):
11168         * glyphs-widget.c (check_valid_justification):
11169         * glyphs-widget.c (check_valid_border):
11170         * glyphs-widget.c (check_valid_callback):
11171         * glyphs-widget.c (check_valid_int_or_function):
11172         * glyphs-widget.c (check_valid_string_or_vector):
11173         * glyphs-widget.c (check_valid_item_list_1):
11174         * glyphs-widget.c (widget_validate):
11175         * glyphs-widget.c (combo_box_validate):
11176         * glyphs-widget.c (widget_instantiate):
11177         * glyphs-widget.c (syms_of_glyphs_widget):
11178         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11179         * glyphs-widget.c (image_instantiator_combo_box):
11180         * glyphs-widget.c (image_instantiator_scrollbar):
11181         * glyphs-widget.c (image_instantiator_tab_control):
11182         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11183         (2).
11184         support (unimplemented) keyword initial-focus.
11185         reindent long macros.
11186
11187         * glyphs-x.c (x_redisplay_widget):
11188         * glyphs-x.c (x_button_instantiate):
11189         * glyphs-x.c (x_button_redisplay):
11190         * glyphs-x.c (x_progress_gauge_instantiate):
11191         * glyphs-x.c (x_edit_field_instantiate):
11192         * glyphs-x.c (x_combo_box_instantiate):
11193         * glyphs-x.c (x_tab_control_instantiate):
11194         * glyphs-x.c (x_label_instantiate):
11195         * gui-x.c:
11196         * gui-x.c (button_item_to_widget_value):
11197         * gui-x.c (gui_items_to_widget_values_1):
11198         * gui-x.c (gui_item_children_to_widget_values):
11199         * gui-x.c (gui_items_to_widget_values):
11200         * gui-x.h:
11201         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11202         add new flag to gui-parsing routines to indicate whether
11203         accelerator specs should be supported.
11204
11205         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11206
11207         * glyphs.h (struct Lisp_Image_Instance):
11208         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11209         add initial-focus flag.
11210
11211         * gui.c:
11212         * gui.c (syms_of_gui):
11213         * gui.c (vars_of_gui):
11214         clean up menu-no-selection-hook.
11215
11216         * gui.h:
11217         support delete-dialog-box-hook.
11218
11219         * lread.c (Fload_internal):
11220         * lread.c (locate_file_in_directory_mapper):
11221         (1).
11222
11223         * lrecord.h:
11224         * lrecord.h (struct toolbar_button):
11225         * lrecord.h (syms_of_toolbar):
11226         document how to create a new object.
11227
11228         * menubar-msw.c (mswindows_char_is_accelerator):
11229         may be called on frames w/o menus.
11230
11231         * menubar.c (vars_of_menubar):
11232         clean up :filter docs.
11233
11234         * nt.c (readdir):
11235         * ntproc.c:
11236         (1).
11237
11238         * process-nt.c:
11239         * process-nt.c (validate_signal_number):
11240         * process-nt.c (signal_cannot_launch):
11241         * process-nt.c (nt_create_process):
11242         * process-nt.c (nt_send_process):
11243         * process-nt.c (nt_kill_child_process):
11244         * process-nt.c (nt_open_network_stream):
11245         * process-nt.c (syms_of_process_nt):
11246         (2).
11247         delete quote-handling.  call new lisp code that does it better.
11248
11249         * process-unix.c (connect_to_file_descriptor):
11250         * process-unix.c (allocate_pty):
11251         * process-unix.c (unix_send_process):
11252         * process-unix.c (unix_kill_child_process):
11253         * process-unix.c (unix_open_network_stream):
11254         * process-unix.c (unix_open_multicast_group):
11255         (1). (2).
11256
11257         * process.c:
11258         * process.c (Fstart_process_internal):
11259         (2).  need to canonicalize process path even if absolute.
11260
11261         * select-msw.c (symbol_to_ms_cf):
11262         * select-msw.c (ms_cf_to_symbol):
11263         * select-msw.c (cf_is_autofreed):
11264         * select-msw.c (mswindows_destroy_selection):
11265         * select.c:
11266         * select.c (syms_of_select):
11267         * select.h:
11268         support dibv5, fix bugs. (from Mike Alexander)
11269
11270         * select.c (Fget_selection_internal):
11271         * select.c (select_convert_out):
11272
11273         * sysdep.c:
11274         * sysdep.c (xemacs_stat):
11275         renamed.
11276
11277         * sysdep.c (mkdir):
11278         * sysdep.c (rmdir):
11279         but keep original stat() here because we provide encapsulation
11280         around these funs.
11281
11282         * sysfile.h:
11283         * sysfile.h (fstat):
11284         remove stat garbage.
11285
11286         * syswindows.h:
11287         fix X/MSW conflict.
11288         don't include tchar.h.  it's inappropriate because it makes
11289         compile-time distinctions when we want runtime distinctions.
11290         (we provide our own tchar replacements)
11291
11292         * toolbar.c:
11293         use default object printer for toolbar-button.
11294
11295         * unexcw.c:
11296         make sure we don't encapsulate.
11297
11298         * window.c (vars_of_window):
11299         emphasize that temp-buffer-show-hook is obsolete.
11300
11301 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11302
11303         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11304         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11305
11306         * events.c (Fevent_timestamp_lessp):
11307         Not 64-bit clean.  Use EMACS_INT, not int.
11308
11309 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11310
11311         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11312         unsigned int and changed the last enum to
11313         lrecord_type_last_built_in_type.
11314         (lrecord_implementations_table): changed prototype to know how
11315         long the array is supposed to be.
11316         (lrecord_type_count): new unsigned int to keep track of the
11317         current number of lisp lrecord types.
11318         (DEFINE_EXTERNAL_LRECORD):
11319         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11320         dynamic-modules to declare new lisp types. They are the same
11321         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11322         int for each new type, and increment lrecord_type_count by 1.
11323
11324         * alloc.c (lrecord_implementations_table): Changed to reference
11325         lrecord_type_last_built_in_type for the size of the array.
11326         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11327
11328 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11329
11330         * glyphs.h (check_valid_item_list): Renamed from
11331         check_valid_item_list_1.
11332
11333 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11334
11335         * select.c (Qselect_coerce): New.
11336         * select.c (Vselection_coercion_alist): New.
11337         * select.c (syms_of_select): Declare.
11338         * select.c (get-selection-internal): Use it.
11339         Use the new select-coerce functionality.
11340
11341         * select.c (select_coerce): New.
11342         * select.h (select_coerce): Declare.
11343         New function to coerce one type of data into another.
11344
11345 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11346
11347         * callproc.c (Fcall_process_internal):
11348         (Fcall_process_internal):
11349         * process-unix.c (unix_create_process):
11350         Save and restore the value of errno, so that error messages are accurate.
11351
11352 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11353
11354         * elhash.c (print_hash_table):
11355         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11356         Prettify docstrings and indentation.
11357
11358 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11359
11360         * window.c (Fwindow_pixel_edges): Subtract frame border and
11361         gutter size.
11362
11363 2000-07-31  Andy Piper  <andy@xemacs.org>
11364
11365         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11366         will acknowledge the change.
11367
11368         * glyphs.h: declare tab_control_order_only_changed.
11369
11370         * glyphs-x.c (x_tab_control_redisplay): use
11371         tab_control_order_only_changed.
11372
11373         * glyphs-widget.c (tab_control_order_only_changed): new function.
11374
11375         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11376         tab_control_order_only_changed.
11377
11378         * gui.c (gui_item_equal_sans_selected): new function.
11379         (gui_item_equal): use it.
11380
11381         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11382         :properties in favor of :items..
11383
11384         * glyphs-widget.c (check_valid_item_list): rename from
11385         check_valid_item_list_1.
11386         (check_valid_item_list_1): renamed.
11387         (combo_box_validate): deprecate :properties in favor of :items.
11388         (widget_instantiate): ditto.
11389         (tab_control_update): ditto.
11390         (image_instantiator_combo_box): ditto.
11391         (image_instantiator_tree_view): ditto.
11392         (image_instantiator_tab_control): ditto.
11393         (layout_post_instantiate): remove dead code.
11394
11395         * print.c (debug_print_no_newline): only write to debugger if in
11396         WIN32_NATIVE.
11397
11398         * elhash.c (Fmake_hash_table): update doc string.
11399
11400         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11401         messages whilst in GC. This at least stops XEmacs crashing but has
11402         the potential for wierd behaviour.
11403
11404 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11405
11406         * config.h.in:
11407         Make existence of s&m files optional.
11408
11409         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11410         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11411         * s/gnu.h: Remove HAVE_GETLOADAVG.
11412         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11413         * s/sol2.h: Remove HAVE_GETLOADAVG.
11414         * lisp.h: Remove getloadavg() declaration.
11415         * fns.c:
11416         Include <sys/loadavg.h> if available.
11417         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11418         * config.h.in:  Group together getloadavg()-related macros.
11419         Use only configure-time tests to detect getloadavg().
11420
11421 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11422
11423         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11424
11425 2000-07-25  Andy Piper  <andy@xemacs.org>
11426
11427         * syswindows.h: add tchar.h for native builds.
11428
11429         * frame.c (syms_of_frame): remove set-glyph-image.
11430
11431         * general-slots.h: add Qset_glyph_image.
11432
11433         * glyphs-widget.c (layout_update): add domain arg to
11434         set-glyph-image.
11435         (syms_of_glyphs_widget): remove set-glyph-image.
11436
11437 2000-07-23  Ben Wing  <ben@xemacs.org>
11438
11439         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11440         Vpopup_frame_list.
11441
11442 2000-07-22  Andy Piper  <andy@xemacs.org>
11443
11444         * symsinit.h: add syms_of_win32().
11445
11446         * gui-msw.c (syms_of_gui_mswindows): remove
11447         Fmswindows_shell_execute.
11448         (Fmswindows_shell_execute): moved to win32.c.
11449
11450         * emacs.c (main_1): add syms_of_win32 ().
11451
11452         * win32.c (init_potentially_nonexistent_functions): rewrite in
11453         compiler-friendly terms.
11454         (Fmswindows_shell_execute): move here from gui-msw.c.
11455         (syms_of_win32): new.
11456
11457         * device-msw.c (Fmswindows_printer_list): clean up args to
11458         EnumPrinters.
11459         Don't include tchar under cygwin or mingw.
11460         (msprinter_default_printer): make cygwin-friendly.
11461
11462 2000-07-21  Andy Piper  <andy@xemacs.org>
11463
11464         * glyphs-widget.c (image_instantiator_tree_view): use tab
11465         control's update function.
11466         (layout_property): new function. Retrieve items.
11467
11468         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11469         function. Re-populate the tree view from the pending items.
11470
11471         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11472         is designated the parent if the domain is an image instance. This
11473         is needed so that dirtiness can be cascade up the hierarchy and
11474         thus for layout children to be redisplayed correctly.
11475         (allocate_image_instance): rename glyph -> parent.
11476
11477         * redisplay.h: change redisplay_output_layout signature.
11478
11479         * redisplay-msw.c (mswindows_output_display_block): use domain
11480         arg.
11481
11482         * redisplay-x.c (x_output_display_block): use domain arg.
11483
11484 2000-07-10  Andy Piper  <andy@xemacs.org>
11485
11486         * window.c (Fset_window_configuration): add comment.
11487
11488         * redisplay-output.c (compare_runes):
11489         (redisplay_output_subwindow): redisplay rather than update subwindow.
11490         (redisplay_output_layout): ditto.
11491
11492         * redisplay-msw.c (mswindows_frame_output_end):
11493         (mswindows_frame_output_end): make defer window pos optional.
11494
11495         * lisp.h: add Flast.
11496
11497         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11498         normalize method. Change update method to be for changed
11499         instantiators. Add redisplay method. Change signature of layout
11500         method.
11501         (struct Lisp_Image_Instance): add instantiator.
11502         (IMAGE_INSTANCE_INSTANTIATOR): new.
11503         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11504         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11505         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11506
11507         * glyphs.c:
11508         (find_instantiator_differences): new function.
11509         (Fset_instantiator_property): new convenience function.
11510         (check_image_instance_structure): strictly check for vector
11511         instantiators.
11512         (normalize_image_instantiator): make non-static.
11513         (instantiate_image_instantiator): pass on dest_mask and use new
11514         signatures for image_instance_layout and friends.
11515         (mark_image_instance): mark the instantiator. Mark the subwindow
11516         face not the widget face.
11517         (image_instance_equal): add instantiator.
11518         (image_instance_hash): ditto.
11519         (allocate_image_instance): ditto.
11520         (Fset_image_instance_property): removed.
11521         (Fimage_instance_file_name): ditto.
11522         (Fcolorize_image_instance): ditto.
11523         (image_instance_layout): add offsets to be set.
11524         (update_image_instance): new function. update an image instance
11525         from its changed instantiator.
11526         (inherit_normalize): add dest_mask.
11527         (xbm_normalize): ditto.
11528         (xface_normalize): ditto.
11529         (xpm_normalize): ditto.
11530         (text_update): set_property -> update.
11531         (image_instantiate): use the glyph identity as a hash key, not the
11532         instantiator.
11533         (glyph_width): use new image_instance_layout signature.
11534         (glyph_ascent): ditto.
11535         (glyph_descent): ditto.
11536         (glyph_height): ditto.
11537         (glyph_query_geometry): ressurrect.
11538         (glyph_layout): ditto.
11539         (redisplay_subwindow): update -> redisplay.
11540         (syms_of_glyphs): add Fset_instantiator_property.
11541         (image_instantiator_format_create): set_property -> update.
11542
11543         * glyphs-x.c:
11544         (autodetect_normalize): add dest_maks to signature.
11545         (x_redisplay_subwindow): update -> redisplay.
11546         (x_redisplay_widget): ditto.
11547         (x_button_redisplay): ditto.
11548         (x_progress_gauge_redisplay): ditto.
11549         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11550         stacking order.
11551         (console_type_create_glyphs_x): update -> redisplay.
11552         (image_instantiator_format_create_glyphs_x): ditto.
11553
11554         * glyphs-widget.c:
11555         (check_valid_instantiator): disallow glyphs in the instantiator,
11556         they must now be vectors.
11557         (check_valid_instantiator_list): ditto.
11558         (glyph_instantiator_to_glyph): use internal symbol rather than
11559         intern.
11560         (widget_update): renamed from widget_set_property. Call cascaded
11561         update methods.
11562         (redisplay_widget): renamed from update_widget.
11563         (widget_layout): image_instance_layout now takes position as well
11564         as size.
11565         (widget_normalize): ditto.
11566         (widget_instantiate): ditto.
11567         (tab_control_query_geometry) ditto.:
11568         (tab_control_update): renamed from tab_control_set_property.
11569         (progress_gauge_update): set_property -> update.
11570         (layout_normalize): rewrite so that child instantiators are
11571         normalized also.
11572         (layout_update): new function. Create glyphs from the normalized
11573         children and cope with any other layout keywords. We do not
11574         instantiate children here that will be take care of by
11575         redisplay_output_layout.
11576         (layout_instantiate): call layout_update and not much else.
11577         (layout_post_instantiate): not sure whether this is needed
11578         anymore.
11579         (layout_query_geometry): query glyph geometry rather than
11580         image_instance geometry.
11581         (layout_layout): set offsets from pass in parameters. Use glyph
11582         geometry and layout functions rather than image instance ones.
11583         (native_layout_layout): ditto.
11584         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11585         (image_instantiator_widget): set_property -> update.
11586         (image_instantiator_buttons): ditto.
11587         (image_instantiator_progress_guage): ditto.
11588         (image_instantiator_tab_control): ditto.
11589         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11590         (image_instantiator_layout): add update method.
11591
11592         * glyphs-msw.c (bmp_normalize):
11593         (mswindows_resource_normalize): add dest_mask so that it can be
11594         proprogated by layout_normalize.
11595         (begin_defer_window_pos): make optional because it may not be the
11596         right thing to do and it introduces differences with X.
11597         (mswindows_unmap_subwindow): ditto.
11598         (mswindows_map_subwindow): ditto.
11599         (mswindows_redisplay_subwindow): renamed from
11600         mswindows_update_subwindow.
11601         (mswindows_redisplay_widget): ditto.
11602         (mswindows_button_redisplay): renamed from
11603         mswindows_button_update. Update is now what the instantiation
11604         function does for a changed instantiator.
11605         (mswindows_progress_gauge_instantiate): set the progress value
11606         here if appropriate.
11607         (mswindows_tab_control_redisplay): cope with re-ordering of the
11608         members of the tab widget by simply selecting the new top
11609         widget. This makes things appear ok if you click on a tab.
11610         (mswindows_combo_box_instantiate): image_instance_layout now takes
11611         position as well as size.
11612         (mswindows_progress_gauge_redisplay): renamed from
11613         mswindows_progress_gauge_update.
11614         (console_type_create_glyphs_mswindows): fix update -> redisplay.
11615         (image_instantiator_format_create_glyphs_mswindows): ditto.
11616
11617         * glyphs-eimage.c (jpeg_normalize):
11618         (gif_normalize):
11619         (png_normalize):
11620         (tiff_normalize): add dest_mask so that it can be proprogated by
11621         layout_normalize.
11622
11623         * elhash.c:
11624         (print_hash_table):
11625         (hash_table_weakness_validate):
11626         (decode_hash_table_weakness):
11627         (Fhash_table_weakness):
11628         (Fhash_table_type):
11629         (syms_of_elhash): use Ben's naming scheme for hashtable types..
11630
11631         * console.h (struct console_methods): move update_* to
11632         redisplay_*.
11633
11634 2000-07-20  Ben Wing  <ben@xemacs.org>
11635
11636         * *.[ch] (XSETOBJ): remove unused middle argument.
11637         lisp-disunion.h: correct wrap_object() to one argument.
11638
11639 2000-07-15  Ben Wing  <ben@xemacs.org>
11640
11641         * s/cygwin32.h:
11642         * s/cygwin32.h (CYGWIN_CONV_PATH):
11643         Add missing logb prototype for v1.1.
11644         Use post-b20 names and alias to pre-b20 names when pre-b20.
11645
11646         * s/windowsnt.h: [5].
11647
11648 2000-07-15  Ben Wing  <ben@xemacs.org>
11649
11650         * Makefile.in.in (x_objs):
11651         * Makefile.in.in (sheap_objs):
11652         * Makefile.in.in (objs):
11653         added win32.o, cosmetic cleanups.
11654
11655         * alloc.c (Fmake_byte_code):
11656         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
11657         etc. macros which declare their own args now.
11658
11659         * alloc.c (syms_of_alloc):
11660         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
11661
11662         * buffer.c:
11663         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
11664
11665         * buffer.c (Fget_file_buffer):
11666         Fixed GCPRO problem.
11667
11668         * buffer.c (get_truename_buffer):
11669         Fixed comment about GC checking.
11670
11671         * buffer.c (syms_of_buffer):
11672         Undeclared those dedicated frame funs.
11673         [2].
11674
11675         * buffer.h:
11676         Define convenience macros for internal/external conversions.
11677         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
11678         and Qenvironment_variable_encoding for cleaner code.
11679
11680         * bufslots.h:
11681         Remove dedicated-frame; in lisp.
11682
11683         * bytecode.c (funcall_compiled_function):
11684         [1].
11685
11686         * bytecode.c (syms_of_bytecode):
11687         [2].
11688
11689         * console-msw.c:
11690         * console-msw.c (mswindows_show_console): Rewrote.
11691
11692         * console-msw.c (Fmswindows_debugging_output): New.
11693         Sends to OutputDebugString (special MSWin debugger interface).
11694
11695         * console-msw.c (Fmswindows_message_box):
11696         Fixed stupid bugs so it works when called from kill-emacs.
11697
11698         * console-msw.c (syms_of_console_mswindows):
11699         Declare Fmswindows_debugging_output.
11700
11701         * console-msw.h:
11702         New MSWin prototypes.
11703
11704         * console-msw.h (struct mswindows_frame):
11705         New entry last-click-mods for improved button-modifier support.
11706
11707         * console-msw.h (FRAME_MSWINDOWS_POPUP):
11708         New struct entry `popup' with corresponding accessor.
11709
11710         * console-x.c:
11711         * console-x.c (split_up_display_spec):
11712         * console-x.c (get_display_arg_connection):
11713         * console-x.c (x_semi_canonicalize_console_connection):
11714         * console-x.c (x_canonicalize_device_connection):
11715         [[[6]]]: Change char to more specific type.
11716         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
11717
11718         * console-x.c (x_semi_canonicalize_console_connection):
11719         * console-x.c (x_canonicalize_device_connection):
11720         [[[9]]]: Fix up error signalling to use new structured error system.
11721
11722         * console-x.h:
11723         [[[4]]]: Define codesys aliases:
11724         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
11725         Qx_color_name_encoding, Qx_display_name_encoding.
11726
11727         * console.h (struct console_methods):
11728         New method make_dialog_box_internal supersedes older
11729         popup_dialog_box method.
11730
11731         * data.c:
11732         Define many new errors, part of new structured errors.
11733
11734         * data.c (init_errors_once_early):
11735         * data.c (syms_of_data):
11736         [2].
11737
11738         * device-msw.c (mswindows_init_device):
11739         [[[5]]]: Cleanup to support NT 3.51.
11740
11741         * device-msw.c (decode_devmode): Cleanup.
11742
11743         * device-msw.c (mswindows_handle_print_setup_dialog_box):
11744         * device-msw.c (mswindows_handle_print_dialog_box):
11745         * device-msw.c (mswindows_handle_page_setup_dialog_box):
11746         * device-msw.c (syms_of_device_mswindows):
11747         Delete the dialog box primitives recently introduced by Kirill and
11748         instead interface to general dialog box interface.
11749
11750         * device-x.c:
11751         * device-x.c (compute_x_app_name):
11752         * device-x.c (x_init_device):
11753         * device-x.c (Fx_valid_keysym_name_p):
11754         * device-x.c (Fx_set_font_path):
11755         [6].
11756         [7].
11757
11758         * device.h (wrap_device): New.
11759         First of its kind; meant to replace XSETDEVICE.
11760
11761         * dialog-msw.c: Many file-dialog symbols.
11762
11763         * dialog-msw.c (mswindows_register_popup_frame): New.
11764         * dialog-msw.c (mswindows_is_dialog_msg): New.
11765         For supporting kbd traversal in dialog boxes.
11766
11767         * dialog-msw.c (dialog_proc):
11768         Support hitting ESC in dialogs.
11769
11770         * dialog-msw.c (struct):
11771         Common dialog box errors.
11772
11773         * dialog-msw.c (handle_file_dialog_box): New.
11774         Add file dialog code.
11775
11776         * dialog-msw.c (handle_question_dialog_box):
11777         Redo existing code to support new question dialog syntax.
11778
11779         * dialog-msw.c (console_type_create_dialog_mswindows):
11780         We support new dialog console method.
11781
11782         * dialog-msw.c (syms_of_dialog_mswindows):
11783         * dialog-msw.c (vars_of_dialog_mswindows):
11784         New file dialog symbols, vars.
11785
11786         * dialog-x.c:
11787         * dialog-x.c (maybe_run_dbox_text_callback):
11788         * dialog-x.c (dbox_descriptor_to_widget_value):
11789         * dialog-x.c (x_make_dialog_box_internal):
11790         * dialog-x.c (console_type_create_dialog_x):
11791         Mule-ize entire file.
11792         Redo to support question dialog syntax.
11793         [6].
11794
11795         * dialog.c:
11796         * dialog.c (Fmake_dialog_box_internal):
11797         * dialog.c (syms_of_dialog):
11798         Kill old popup-dialog-box, replace with new primitive.
11799         Just call device method or signal error.
11800
11801         * eldap.c (Fldap_open):
11802         * eldap.c (Fldap_search_basic):
11803         * eldap.c (Fldap_add):
11804         * eldap.c (Fldap_modify):
11805         [1].
11806         [7].
11807
11808         * emacs.c:
11809         * emacs.c (make_arg_list_1):
11810         * emacs.c (make_arg_list):
11811         Mule-ize call to dll_init().
11812         [6].
11813         [8].
11814
11815         * emacs.c (make_argc_argv):
11816         * emacs.c (free_argc_argv):
11817         * emacs.c (init_cmdargs):
11818         * emacs.c (main_1):
11819         * emacs.c (Fkill_emacs):
11820         * emacs.c (Fdump_emacs):
11821         Update comments about what can be used in syms_* etc.
11822         Call init_win32() when necessary.
11823         Fix up MS Win dialog box in kill-buffer to actually work right.
11824         [7].
11825
11826         * eval.c:
11827         * eval.c (For):
11828         * eval.c (Fand):
11829         * eval.c (Fprogn):
11830         * eval.c (Fprog1):
11831         * eval.c (Fprog2):
11832         * eval.c (FletX):
11833         * eval.c (Flet):
11834         * eval.c (condition_case_3):
11835         * eval.c (Feval):
11836         * eval.c (function_argcount):
11837         * eval.c (funcall_lambda):
11838         [1].
11839
11840         * eval.c (type_error): New.
11841         * eval.c (maybe_type_error): New.
11842         * eval.c (continuable_type_error): New.
11843         * eval.c (maybe_continuable_type_error): New.
11844         * eval.c (type_error_with_frob): New.
11845         * eval.c (maybe_type_error_with_frob): New.
11846         * eval.c (continuable_type_error_with_frob): New.
11847         * eval.c (maybe_continuable_type_error_with_frob): New.
11848         New functions for use with structured errors.
11849
11850         * event-Xt.c:
11851         * event-Xt.c (x_event_to_emacs_event):
11852         Buttons are now modifiers too.
11853
11854         * event-Xt.c (emacs_Xt_current_event_timestamp):
11855         Implement new event method.
11856         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
11857
11858         * event-msw.c:
11859         * event-msw.c (ntpipe_shove_writer): [5].
11860         * event-msw.c (mswindows_enqueue_mouse_button_event):
11861         * event-msw.c (mswindows_drain_windows_queue):
11862         * event-msw.c (mswindows_wnd_proc): [7].
11863         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
11864         * event-msw.c (mswindows_modifier_state):
11865         Throughout: support new button modifiers.
11866
11867         * event-msw.c (emacs_mswindows_current_event_timestamp):
11868         Implement new event method.
11869         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
11870
11871         * event-stream.c:
11872         * event-stream.c (event_stream_current_event_timestamp): New.
11873         * event-stream.c (maybe_kbd_translate): New functionality.
11874         * event-stream.c (vars_of_event_stream):
11875         Document new kbd-translate-table functionality.
11876
11877         * event-stream.c (Fcurrent_event_timestamp): New.
11878         New primitive for use in fabricated events.
11879         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
11880
11881         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
11882
11883         * events.c:
11884         * events.c (Fmake_event):
11885         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
11886         [1].
11887         [9].
11888
11889         * events.c (format_event_object): fix gcc warnings.
11890
11891         * events.c (Fevent_timestamp): Document new primitives.
11892
11893         * events.c (TIMESTAMP_HALFSPACE): New.
11894
11895         * events.c (Fevent_timestamp_lessp): New.  New primitive for
11896         comparing timestamps correctly (half-space algorithm).
11897
11898         * events.c (Fevent_modifier_bits): Doc fix.
11899
11900         * events.c (Fevent_modifiers): Major doc addition.
11901         * events.c (event_x_y_pixel_internal): Typo fix.
11902         * events.c (syms_of_events): Declare new primitives.
11903
11904         * events.h:
11905         Update long comment for button modifiers, timestamps.
11906
11907         * events.h (struct event_stream):
11908         New current_event_timestamp method.
11909
11910         * extents.c:
11911         * extents.c (extent_in_region_p):
11912         * extents.c (decode_extent):
11913         * extents.c (Fset_extent_parent):
11914         * extents.c (decode_map_extents_flags):
11915         Fix gcc warnings.
11916         [9].
11917
11918         * extents.c (struct extent_at_arg):
11919         * extents.c (decode_extent_at_flag):
11920         * extents.c (extent_at_mapper):
11921         * extents.c (extent_at_bytind):
11922         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
11923         * extents.c (Fextents_at): New primitive. [9].
11924         * extents.c (symbol_to_glyph_layout): [9].
11925         Support new primitive `extents-at'.
11926
11927
11928         * extents.c (get_text_property_bytind):
11929         extent_at_bytind has another arg.
11930         [9].
11931
11932         * extents.c (syms_of_extents): New primitive.
11933
11934         * file-coding.c (Fmake_coding_system): [1].
11935         * file-coding.c (subsidiary_coding_system): fix gcc warning
11936         * file-coding.c (syms_of_file_coding): [2].
11937
11938         * fileio.c (Fexpand_file_name):
11939         * fileio.c (Fsysnetunam):
11940         * fileio.c (Ffile_exists_p):
11941         * fileio.c (Ffile_executable_p):
11942         * fileio.c (Fverify_visited_file_modtime):
11943         Clean up GCPROing.
11944
11945         * fileio.c (syms_of_fileio): [2].
11946
11947         * filelock.c (lock_file_1):
11948         * filelock.c (current_lock_owner):
11949         * filelock.c (lock_if_free):
11950         * filelock.c (lock_file):
11951         * filelock.c (unlock_file):
11952         Clean up GCPROing.
11953
11954         * fns.c (concat): Fix gcc warning.
11955
11956         * fns.c (Fmember):
11957         * fns.c (Fold_member):
11958         * fns.c (Fmemq):
11959         * fns.c (Fold_memq):
11960         * fns.c (memq_no_quit):
11961         * fns.c (Fassoc):
11962         * fns.c (Fold_assoc):
11963         * fns.c (Fassq):
11964         * fns.c (Fold_assq):
11965         * fns.c (assq_no_quit):
11966         * fns.c (Frassoc):
11967         * fns.c (Fold_rassoc):
11968         * fns.c (Frassq):
11969         * fns.c (Fold_rassq):
11970         * fns.c (rassq_no_quit):
11971         * fns.c (Fdelete):
11972         * fns.c (Fold_delete):
11973         * fns.c (Fdelq):
11974         * fns.c (Fold_delq):
11975         * fns.c (delq_no_quit):
11976         * fns.c (Fremassoc):
11977         * fns.c (Fremassq):
11978         * fns.c (remassq_no_quit):
11979         * fns.c (Fremrassoc):
11980         * fns.c (Fremrassq):
11981         * fns.c (remrassq_no_quit):
11982         * fns.c (Freverse):
11983         * fns.c (mapcar1):
11984         [1].
11985
11986         * frame-msw.c (mswindows_init_frame_1):
11987         * frame-msw.c (mswindows_delete_frame):
11988         Register popups with dialog code so keyboard traversing works.
11989
11990         * frame-tty.c (tty_raise_frame_no_select): [1].
11991
11992         * frame-x.c:
11993         * frame-x.c (x_set_frame_text_value):
11994         * frame-x.c (x_set_frame_properties):
11995         * frame-x.c (x_create_widgets):
11996         [7].
11997
11998         * frame.c:
11999         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12000
12001         * frame.h (wrap_frame): New.
12002         Macro like wrap_device.
12003
12004         * general.c:
12005         * general.c (SYMBOL):
12006         * general.c (syms_of_general):
12007         Major reorg.  This is now just a wrapper and symbols themselves
12008         are listed in general-slots.h.
12009
12010         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12011         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12012
12013         * glyphs-msw.c (mswindows_native_layout_instantiate):
12014         Add DS_CONTROL so keyboard traversal will work.
12015
12016         * glyphs-widget.c:
12017         * glyphs-widget.c (syms_of_glyphs_widget):
12018         Move some symbols to general-slots.h.
12019
12020         * glyphs-x.c:
12021         * glyphs-x.c (xbm_instantiate_1):
12022         * glyphs-x.c (x_xbm_instantiate):
12023         * glyphs-x.c (x_xface_instantiate):
12024         * glyphs-x.c (autodetect_instantiate):
12025         * glyphs-x.c (cursor_font_instantiate):
12026         * glyphs-x.c (x_update_widget):
12027         * glyphs-x.c (x_widget_instantiate):
12028         * glyphs.c (bitmap_to_lisp_data):
12029         * glyphs.c (pixmap_to_lisp_data):
12030         [7].
12031
12032         * glyphs.c (syms_of_glyphs):
12033         [2].
12034
12035         * gui-x.c:
12036         * gui-x.c (print_widget_value):
12037         * gui-x.c (menu_separator_style_and_to_external):
12038         * gui-x.c (add_accel_and_to_external):
12039         * gui-x.c (button_item_to_widget_value):
12040         * gui-x.c (gui_items_to_widget_values_1):
12041         * gui-x.c (gui_items_to_widget_values):
12042         * gui-x.c (syms_of_gui_x):
12043         * gui-x.c (vars_of_gui_x):
12044         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12045         [9].
12046
12047         * gui-x.h:
12048         Muleize, prototype changes matching gui-x.c.
12049
12050         * gui.c:
12051         * gui.c (separator_string_p):
12052         * gui.c (gui_item_add_keyval_pair):
12053         * gui.c (make_gui_item_from_keywords_internal):
12054         * gui.c (signal_too_long_error):
12055         * gui.c (parse_gui_item_tree_item):
12056         * gui.c (syms_of_gui):
12057         * gui.c (vars_of_gui):
12058         * gui.h:
12059         menu-no-selection-hook moved here (used by MSWin).
12060         Move some symbols to general-slots.h.
12061         [6].
12062         [9].
12063
12064         * insdel.c (get_buffer_pos_char):
12065         * insdel.c (get_buffer_range_char):
12066         Add GC comments.
12067
12068         * keymap.c (keymap_lookup_directly):
12069         * keymap.c (keymap_store):
12070         * keymap.c (ensure_meta_prefix_char_keymapp):
12071         * keymap.c (describe_map):
12072         * keymap.h:
12073         Support new button modifiers.
12074
12075         * lisp-disunion.h (wrap_object):
12076         * lisp-disunion.h (XSETOBJ):
12077         Rename make_obj to wrap_object.
12078
12079         * lisp-union.h:
12080         * lisp-union.h (make_int):
12081         * lisp-union.h (make_char):
12082         Support wrap_object.
12083
12084         * lisp.h:
12085         * lisp.h (LIST_LOOP):
12086         * lisp.h (EXTERNAL_LIST_LOOP):
12087         * lisp.h (LIST_LOOP_2):
12088         * lisp.h (EXTERNAL_LIST_LOOP_1):
12089         * lisp.h (EXTERNAL_LIST_LOOP_2):
12090         * lisp.h (EXTERNAL_LIST_LOOP_3):
12091         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12092         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12093         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12094         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12095         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12096         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12097         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12098         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12099         * lisp.h (struct Lisp_Symbol):
12100         * lisp.h (maybe_continuable_error_with_frob):
12101         Fix up section comments.
12102         Add new types for char to indicate usage.
12103         Delete symbols auto-generated from general-slots.h.
12104         Add prototypes for structured error functions.
12105         Add long comments describing looping macros and change interface
12106         so that lvalues are automatically declared.
12107         Add NO_DECLARE macro in case callers want to declare lvalues
12108         themselves.
12109
12110         * lread.c (read_syntax_error):
12111         * lread.c (continuable_read_syntax_error):
12112         * lread.c (read_structure):
12113         * lread.c (sequence_reader):
12114         * lread.c (read_list_conser):
12115         * lread.c (read_compiled_function):
12116         Rename syntax_error and continuable_syntax_error to avoid clash
12117         with same-named structured error functions.
12118
12119         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12120         * menubar-msw.c (populate_menu_add_item):
12121         * menubar-msw.c (populate_or_checksum_helper):
12122         [5].
12123         [9].
12124
12125         * menubar-x.c:
12126         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12127         Mule-ize whole file.
12128
12129         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12130
12131         * mule-charset.c (Fmake_charset):
12132         * mule-wnnfns.c (Fwnn_set_param):
12133         [1].
12134
12135         * ntproc.c (create_child):
12136         * ntproc.c (Fwin32_set_current_locale):
12137         Add comments portending doom.
12138
12139         * objects-msw.c:
12140         * objects-msw.c (old_font_enum_callback_2):
12141         * objects-msw.c (font_enum_callback_1):
12142         * objects-msw.c (mswindows_enumerate_fonts):
12143         [5].
12144
12145         * objects-x.c:
12146         * objects-x.c (allocate_nearest_color):
12147         * objects-x.c (x_parse_nearest_color):
12148         * objects-x.c (x_initialize_color_instance):
12149         * objects-x.c (x_print_color_instance):
12150         * objects-x.c (x_finalize_color_instance):
12151         * objects-x.c (x_valid_color_name_p):
12152         * objects-x.c (x_initialize_font_instance):
12153         * objects-x.c (x_print_font_instance):
12154         * objects-x.c (valid_x_font_name_p):
12155         * objects-x.c (truename_via_FONT_prop):
12156         * objects-x.c (truename_via_random_props):
12157         * objects-x.c (truename_via_XListFonts):
12158         * objects-x.c (x_font_truename):
12159         * objects-x.c (x_font_instance_truename):
12160         * objects-x.c (x_font_instance_properties):
12161         * objects-x.c (x_list_fonts):
12162         * objects-x.c (x_find_charset_font):
12163         Mule-ize entire file.
12164         [7].
12165
12166         * objects-x.h:
12167         Mule-verify.
12168
12169         * print.c:
12170         * print.c (std_handle_out_external):
12171         * print.c (debug_print_no_newline):
12172         * print.c (syms_of_print):
12173         Output to all debugger kinds in debug-print.
12174         Fix console-output code under MSWin to actually work.
12175
12176         * process-nt.c (send_signal):
12177         * process-nt.c (nt_create_process):
12178         Use newer Unicode macros.
12179
12180         * process-unix.c (unix_create_process):
12181         * process-unix.c (unix_canonicalize_host_name):
12182         * process-unix.c (unix_open_network_stream):
12183         [7].
12184
12185         * scrollbar-x.c:
12186         Mule-verify.
12187
12188         * search.c (syms_of_search):
12189         [2].
12190
12191         * select-msw.c (mswindows_destroy_selection):
12192         Use LIST_LOOP_2.
12193
12194         * select-x.c (symbol_to_x_atom):
12195         [7].
12196
12197         * select.c (syms_of_select):
12198         [2].
12199
12200         * sound.c (Fplay_sound_file):
12201         [7].
12202
12203         * specifier.c:
12204         * specifier.c (decode_specifier_type):
12205         * specifier.c (Fvalid_specifier_locale_type_p):
12206         * specifier.c (check_valid_locale_or_locale_type):
12207         * specifier.c (decode_locale):
12208         * specifier.c (decode_locale_type):
12209         * specifier.c (decode_locale_list):
12210         * specifier.c (check_valid_domain):
12211         * specifier.c (decode_specifier_tag_set):
12212         * specifier.c (Fcanonicalize_tag_set):
12213         * specifier.c (Fdefine_specifier_tag):
12214         * specifier.c (Fspecifier_tag_predicate):
12215         * specifier.c (check_valid_inst_list):
12216         * specifier.c (check_valid_spec_list):
12217         * specifier.c (decode_how_to_add_specification):
12218         * specifier.c (check_modifiable_specifier):
12219         * specifier.c (specifier_add_spec):
12220         * specifier.c (boolean_validate):
12221         * specifier.c (display_table_validate):
12222         [9].
12223
12224         * specifier.c (syms_of_specifier):
12225         Move some symbols to general-slots.h.
12226         [2].
12227
12228         * symbols.c:
12229         * symbols.c (Fmapatoms):
12230         * symbols.c (Fapropos_internal):
12231         Add GCPROs.
12232
12233         * symbols.c (set_default_buffer_slot_variable):
12234         * symbols.c (set_default_console_slot_variable):
12235         [1].
12236
12237         * symbols.c (defsymbol_massage_name_1):
12238         * symbols.c (defkeyword_massage_name):
12239         * symbols.c (deferror_1):
12240         * symbols.c (deferror):
12241         * symbols.c (deferror_massage_name_and_message):
12242         * symeval.h:
12243         * symeval.h (DEFSYMBOL):
12244         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12245
12246         * symbols.c (syms_of_symbols):
12247         [2].
12248
12249         * symsinit.h:
12250         * symsinit.h (init_win32): New.
12251         Also new is syms_of_dialog_mswindows.
12252
12253         * syswindows.h:
12254         Add new Unicode macros, missing Cygwin wide-char functions,
12255         convenience conversion macros for Qmswindows_tstr, macros for
12256         encapsulating required MSWin <-> Cygwin filename conversions,
12257         prototype for dynamically-extracted (not in NT 3.51) functions.
12258
12259         * toolbar-x.c:
12260         Mule-verify.
12261
12262         * tooltalk.c (Fadd_tooltalk_message_arg):
12263         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12264         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12265         [7].
12266
12267         * tooltalk.c (syms_of_tooltalk):
12268         [2].
12269
12270         * unexnt.c:
12271         * unexnt.c (unexec):
12272         Fix up headers, declaration of unexec() to be more standard.
12273
12274 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12275
12276         * offix.h: Revert change to guard macros - they're used in offix.c!
12277
12278 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12279
12280         * lisp.h: Defsubred Fdelete.
12281
12282         * console-msw.h:  (msprinter_default_printer): Added.
12283
12284         * console-msw.c (msprinter_canonicalize_console_connection):
12285         (msprinter_canonicalize_device_connection): Added.
12286
12287         * device-msw.c (msprinter_default_printer):
12288         (Fmswingows_get_default_printer):
12289         (signal_enum_priner_error):
12290         (Fmswingows_printer_list): Added.
12291
12292 2000-07-19  Martin Buchholz <martin@xemacs.org>
12293
12294         * XEmacs 21.2.35 is released.
12295
12296 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12297
12298         * select-x.c (x_handle_selection_request):
12299         Text selected in xemacs and pasted into xterm failed to appear.
12300         Spelling fixes and cosmetic changes.
12301
12302 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12303
12304         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12305         XEmacs frame (fix for doubling chars in dialog boxes).
12306
12307 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12308
12309         * select.c (select_convert_in, select_convert_out):
12310         Don't call intern() every time.
12311
12312         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12313         * select.c (vars_of_select): Initialise them.
12314
12315 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12316
12317         * select.c (selection-coercible-types): New.
12318
12319         * select.c (own-selection-internal):
12320         * select.c (get-selection-internal):
12321         MULE bug fix - these should default to COMPOUND_TEXT and not
12322         STRING for MULE. I think.
12323
12324         * select.c (select_convert_out): Use selection-coercible-types
12325         to find types that we can attempt to perform coercions on.
12326
12327 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12328
12329         * mule-wnnfns.c:
12330         * mule-canna.c:
12331         Add coding: cookie to identify encoding.
12332
12333         * mule-canna.c (CANNA_mode_keys): make static.
12334         Use proper prototypes, even for functions of no arguments.
12335         Remove external prototype for Fding().
12336
12337         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12338
12339         * select.c (syms_of_select): Add missing DEFSUBR.
12340
12341 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12342
12343         * select.c (get_selection_internal, own_selection_internal):
12344         Make the type default to STRING, rather than placing a nil type
12345         into Vselection_alist.
12346
12347 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12348
12349         * gpmevent.c (tty_selection_exists_p):
12350         * gpmevent.c (tty_own_selection):
12351         Updated parameter lists.
12352
12353 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12354
12355         * select.h (selection-alist): Removed declaration.
12356
12357         * select.h (get_local_selection):
12358         * select.c (get_local_selection):
12359         Made static.
12360
12361         * select.h (convert_selection): Removed declaration.
12362         * select.c (convert_selection): Removed.
12363         This function belongs in Lisp.
12364
12365         * select.h (select_convert_in): Declare.
12366         * select.h (select_convert_out): Declare.
12367         * select.c (select_convert_in): New.
12368         * select.c (select_convert_out): New.
12369         New conversion functions for other files to call.
12370
12371         * select.h (select_notify_buffer_kill): Declare.
12372         * select.c (select_notify_buffer_kill): New.
12373         New functions that get called from kill-buffer.
12374
12375         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12376         X-specific lisp code.
12377
12378         * select.h: Declare some of the lisp-visible functions for
12379         external use.
12380
12381         * select.c (clean_local_selection_data): Removed. This was
12382         a disgusting function, and previously should have been in
12383         select-x.c in any case. The functionality is now provided
12384         in select-convert-from-integer (select.el).
12385
12386         * select.c (available-selection-types): Fixed stupidity where
12387         INTEGER and ATOM got added twice. Also add STRING when we see an
12388         extent.
12389
12390         * select.c (get-selection-internal): Removed symbol stripping. No
12391         longer causes conversion when data comes from the internal cache.
12392
12393         * select.c (syms_of_select): Added new functions.
12394
12395         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12396         error checking - previously this called abort!
12397
12398         * select-x.c (x_own_selection): Changed comment.
12399
12400         * select-x.c (x_handle_selection_request): Use select_convert_out.
12401         Don't mess with selection-alist; it's an internal variable of select.c.
12402
12403         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12404
12405         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12406         rather than messing with selection-alist.
12407
12408         * select-msw.c (mswindows_get_foreign_selection):
12409         Use TO_INTERNAL_FORMAT rather than hacking.
12410
12411 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12412
12413         * process-unix.c (unix_open_multicast_group):
12414         (unix_open_multicast_group): Remove useless casts.
12415
12416 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12417
12418         * sound.c (Fplay_sound): Fix `unused variable' warning.
12419
12420         * emacs.c (main): Use correct type for _environ on SCO5.
12421
12422 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12423
12424         * console.h (own_selection_method):
12425         * console.h (selection_exists_p_method):
12426         * console.h (available_selection_types_method): New.
12427         * console.h (register_selection_data_type_method): New.
12428         * console.h (selection_data_type_name): New.
12429
12430         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12431         function & alist to track GlobalAlloc()'d handles that need
12432         releasing when the clipboard data gets replaced or emptied.
12433
12434         * event-msw.c (mswindows_wnd_proc): Call it.
12435
12436         * lisp.h, general.c (Qappend): New symbol representing a
12437         `how-to-add' mode.
12438
12439         * select.c (own-selection-internal):
12440         * select.c (selection-exists-p):
12441         * select.c (available-selection-types): New.
12442         * select.c (register-selection-data-type): New.
12443         * select.c (selection-data-type-name): New.  New functions to deal
12444         with device-specific selection data formats.
12445         * select.c (selection-converter-out-alist): Renamed.
12446         * select.c (selection-converter-in-alist): New.
12447         * select.c (selection-appender-alist): New.  Added new alists.
12448         * select.c (syms_of_select, vars_of_select): Added new symbols &
12449         variables.
12450         * select.c (get_local_selection): Split.
12451         * select.c: Removed spurious type checking - selections may now be
12452         of any type, not just strings.
12453         * select.c (own-selection-internal):
12454
12455         * select.h, select.c (convert_selection): New. Created
12456         convert_selection() function based on get_local_selection().
12457         * select.h, select.c (QCF_*): New symbols representing mswindows
12458         clipboard formats.
12459         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12460         symbols representing `how-to-add' modes.
12461
12462         * select-msw.c (x_sym_p): New.
12463         * select-msw.c (symbol_to_ms_cf): New.
12464         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12465         symbols & clipboard formats. Can also handle string names.
12466         * select-msw.c (mswindows_own_selection):
12467         * select-msw.c (mswindows_selection_exists_p):
12468         Added `data-type' parameter. Use it.
12469         * select-msw.c (mswindows_available_selection_types): New.
12470         * select-msw.c (mswindows_register_selection_data_type): New.
12471         * select-msw.c (mswindows_selection_data_type_name): New.
12472         * select-msw.c (mswindows_own_selection):
12473         * select-msw.c (mswindows_get_foreign_selection):
12474         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12475         * select-msw.c (console_create_select_mswindows): Added new methods.
12476         * select-msw.c (mswindows_destroy_selection): New.
12477         * select-msw.c (Vhandle_alist): New list.
12478         * select-msw.c (mswindows_own_selection):
12479
12480         * select-x.c (x_own_selection):
12481         * select-x.c (x_selection_exists_p):
12482         * select-x.c: Added some comments about maybe using new
12483         functionality.
12484         * select-x.c (x_own_selection):
12485
12486         * specifier.c: Remove definition of Qappend (now in general.c)
12487         * specifier.c (syms_of_specifier): Remove Qappend.
12488
12489 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12490
12491         * config.h.in: Add socklen_t.
12492
12493         * s/decosf4-0.h: No special compiler flags needed or desired.
12494         In particular, undefine _BSD for DEC OSF 4.0.
12495
12496 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12497
12498         * redisplay-msw.c (msprinter_frame_output_end): Added.
12499         (console_type_create_redisplay_mswindows): Referred the above.
12500
12501         * frame.c (setup_frame_without_minibuffer): Do not create a
12502         default minibuffer frame on a printer device.
12503
12504         * frame-msw.c (apply_dc_geometry): Added.
12505         (msprinter_start_page):
12506         (msprinter_init_frame_3):
12507         (msprinter_eject_page): Use it.
12508
12509         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12510         and removed residual duplex and orientation properties.
12511
12512 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12513
12514         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12515
12516         * unexalpha.c: Remove system prototypes from C sources!
12517
12518 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12519
12520         * eval.c: Remove references to M-x edit-options in DEFUNs for
12521         `defvar' and `defconst'.
12522
12523 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12524
12525         * config.h.in: Remove SMART_INCLUDE hackery.
12526
12527         PostgreSQL hacking:
12528         * config.h.in: Don't use SMART_INCLUDE.
12529
12530         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12531         * inline.c: Simply #include "postgresql.h"
12532         * postgresql.c:
12533         - Don't use SMART_INCLUDE
12534         - Use simply "const".
12535         - Use standard doc string conventions.
12536         - Use correct type for result of PQstatus.
12537
12538 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12539
12540         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12541
12542         C++ compilation changes.
12543         * config.h.in (EXTERN_C): Define.
12544         * config.h.in (not): This is also a C++ keyword.
12545         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12546         * cm.c: Use EXTERN_C.
12547         * redisplay-tty.c: Use EXTERN_C.
12548         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12549
12550 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12551
12552         * general.c: Remove duplicate definition for Qfunction.
12553
12554 2000-07-08  Ben Wing  <ben@xemacs.org>
12555
12556         * device-msw.c (msprinter_init_device):
12557         * device-msw.c (sync_printer_with_devmode):
12558         * device-msw.c (handle_devmode_changes):
12559         * device-msw.c (print_dialog_worker):
12560         * device-msw.c (Fmsprinter_apply_settings):
12561         * device-msw.c (hash_devmode):
12562         * device-msw.c (Fmsprinter_settings_despecialize):
12563         use Qmswindows_tstr, not Qctext.
12564
12565         * vm-limit.c (check_memory_limits):
12566         avoid infinite loop printing warning messages.
12567
12568 2000-07-05  Craig Lanning  <lanning@scra.org>
12569
12570         * Makefile.in.in: Add support for including the Windows resources
12571         when building with the cygwin and mingw targets.
12572
12573         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12574         not set or not correct.
12575         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12576         (init_initial_directory): Don't try to use $PWD on the
12577         WIN32_NATIVE target.
12578
12579         * s\cygwin32.h:
12580         [[Add -mwindows to eliminate console window.]] not required --ben
12581         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12582         (MAIL_USE_POP): removed; now handled by configure.
12583
12584         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12585         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12586         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12587         (MAIL_USE_POP): removed; now handled by configure.
12588         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12589         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12590         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12591         constant string.
12592         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12593         up from <winsock.h> via systime.h.
12594         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12595         (getpagesize): from Dan Holmsand, added.
12596         Added #endif which was left dangling by Ben's mega patch; added
12597         comment to help prevent this in the future.
12598
12599         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12600
12601 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12602
12603         * console-msw.h (struct mswindows_device): Removed unnecessary
12604         cached device geometry values.
12605         Added update_tick and an accessor macro.
12606         (Lisp_Devmode): Added lrecord declaration.
12607         (struct msprinter_device): Contain devmode as a Lisp object.
12608         Added mswindows_get_selected_frame_hwnd();
12609
12610         * console.h (struct console_methods): Indentation nitpicking.
12611
12612         * device-msw.c (mswindows_init_device): Do not initialize geometry
12613         cache. Initialize update tick.
12614         (mswindows_device_system_metrics): Ask the device for its geometry.
12615         (global_free_2_maybe):
12616         (devmode_to_hglobal):
12617         (handle_printer_changes):
12618         (ensure_not_printing):
12619         (print_dialog_worker):
12620         (Fmsprinter_print_setup_dialog):
12621         (Fmsprinter_print_dialog):
12622         (plist_get_margin):
12623         (plist_set_margin):
12624         (Fmsprinter_page_setup_dialog): Added functions.
12625         (sync_printer_with_devmode):
12626         (handle_devmode_changes):
12627         (Fmsprinter_get_settings):
12628         (Fmsprinter_select_settings):
12629         (Fmsprinter_apply_settings):
12630         (allocate_devmode):
12631         (Fmsprinter_settings_copy):
12632         (Fmsprinter_settings_despecialize):
12633         (print_devmode):
12634         (finalize_devmode):
12635         (equal_devmode):
12636         (hash_devmode): Added functions
12637         (syms_of_device_mswindows): Init devmode lrecord class.
12638
12639         * device.h: Added an exfun for find-device.
12640
12641         * event-msw.c (mswindows_wnd_proc): Do not update the cached
12642         geometry; although, recreate the device compatible DC.
12643
12644         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
12645         (msprinter_init_frame_3):
12646         (msprinter_frame_property):
12647         (msprinter_internal_frame_property_p):
12648         (msprinter_frame_properties):
12649         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
12650         print job properties (will move to device settings).
12651
12652         * lisp.h: Added symbols.
12653
12654         * general.c (syms_of_general): Declared them.
12655
12656         * hash.c (string_hash): Added.
12657
12658         * lrecord.h (lrecord_type): Added devmode lrecord type.
12659
12660 2000-07-02  Mike Sperber <mike@xemacs.org>
12661
12662         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
12663         FreeBSD 4.0.
12664
12665 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
12666
12667         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
12668         integer.
12669
12670 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
12671
12672         * data.c (Fstring_to_number): Don't recognize floating point if
12673         base is not 10.
12674
12675 2000-06-22  Martin Buchholz  <martin@xemacs.org>
12676
12677         * glyphs-widget.c (tab_control_query_geometry):
12678         (widget_query_geometry):
12679         (button_query_geometry):
12680         * glyphs.c (text_query_geometry):
12681         Enforce type correctness.
12682
12683 2000-06-18  Martin Buchholz  <martin@xemacs.org>
12684
12685         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
12686         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
12687
12688 2000-06-17  Martin Buchholz  <martin@xemacs.org>
12689
12690         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
12691         conflicts with gcc's fixincluded version of FOO.h.
12692
12693         * glyphs.h (image_instance_geometry): Remove trailing `,'
12694
12695 2000-06-08  Mike Alexander  <mta@arbortext.com>
12696
12697         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
12698         (shove_thread): Don't write the same output twice
12699         (make_ntpipe_output_stream): Increase priority of shove thread
12700         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
12701         chance to run
12702         (ntpipe_shove_closer): Don't delete the pipe until we're done with
12703         it.
12704
12705 2000-06-12  Ben Wing  <ben@xemacs.org>
12706
12707         * s\mingw32.h (sigset):
12708         * s\windowsnt.h (sigset):
12709         rename msw_ to mswindows_ for consistency with general convention.
12710
12711 2000-06-12  Ben Wing  <ben@xemacs.org>
12712
12713         * console-msw.c:
12714         * console-msw.c (mswindows_get_console_hwnd):
12715         * console-msw.c (mswindows_ensure_console_allocated):
12716         * console-msw.c (mswindows_hide_console):
12717         * console-msw.c (mswindows_show_console):
12718         * console-msw.c (mswindows_ensure_console_buffered):
12719         * console-msw.c (mswindows_output_console_string):
12720         * console-msw.c (mswindows_windows9x_p):
12721         * console-msw.h:
12722         * device-msw.c (mswindows_get_workspace_coords):
12723         * device-msw.c (mswindows_device_system_metrics):
12724         * dialog-msw.c (mswindows_popup_dialog_box):
12725         * event-msw.c (mswindows_wnd_proc):
12726         * frame-msw.c (mswindows_size_frame_internal):
12727         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12728         * menubar-msw.c (displayable_menu_item):
12729         * menubar-msw.c (mswindows_char_is_accelerator):
12730         * nt.c:
12731         * nt.c (mswindows_sigset):
12732         * nt.c (mswindows_sigrelse):
12733         * nt.c (mswindows_sigpause):
12734         * nt.c (mswindows_raise):
12735         * nt.c (timer_proc):
12736         * ntproc.c:
12737         * ntproc.c (find_child_console):
12738         * ntproc.c (sys_kill):
12739         * print.c:
12740         * print.c (std_handle_out_external):
12741         * process-nt.c (find_child_console):
12742         * process-nt.c (send_signal_the_95_way):
12743         * process-nt.c (ensure_console_window_exists):
12744         * process-nt.c (nt_create_process):
12745         * syssignal.h:
12746         rename msw_ to mswindows_ for consistency with general convention.
12747
12748         * emacs.c:
12749         * dumper.c:
12750         include nt.h, not syswindows.h.
12751
12752         * nt.c (mswindows_fstat):
12753         * nt.c (mswindows_stat):
12754         prefix mswindows_ instead of attempting to directly override the
12755         library functions.  fix declarations.
12756
12757         * nt.h:
12758         include syswindows.h.  move some sysdep.h stuff here.
12759
12760         * ntheap.h:
12761         include syswindows.h, not <windows.h>.
12762
12763         * ntplay.c:
12764         clean up headers.
12765
12766         * sysdep.c:
12767         clean up headers.
12768
12769         * sysdep.c (sys_fstat):
12770         * sysdep.c (sys_stat):
12771         call mswindows versions when appropriate.
12772
12773         * sysdep.h:
12774         move mswin decls to nt.h.
12775
12776         * syswindows.h:
12777         add long comment describing appropriate use of the various windows
12778         headers.
12779
12780 2000-06-11  Ben Wing  <ben@xemacs.org>
12781
12782         * device-x.c: Correct doc string for sixth arg of x-get-resource.
12783
12784 2000-06-10  Ben Wing  <ben@xemacs.org>
12785
12786         * Makefile.in.in (release):
12787         Correction to make sure xemacs.exe always dumped when correct.
12788
12789         * alloca.c:
12790         * balloon_help.c:
12791         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
12792
12793         * buffer.c (set_buffer_internal):
12794         [[[[2]]]]: Remove HAVE_FEP code.
12795
12796         * buffer.c (init_initial_directory):
12797         [3].
12798
12799         * bytecode.c:
12800         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
12801         individual files.
12802
12803         * callproc.c:
12804         * callproc.c (call_process_cleanup):
12805         * callproc.c (Fold_call_process_internal):
12806         * callproc.c (child_setup):
12807         * callproc.c (getenv_internal):
12808         * callproc.c (init_callproc):
12809         * callproc.c (vars_of_callproc):
12810         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
12811         __CYGWIN32__ -> CYGWIN.
12812         DOS_NT -> WIN32_NATIVE.
12813         Remove MSDOS support/references, converting to WIN32_NATIVE
12814           where correct.
12815         __MINGW32__ -> MINGW.
12816         Fix windows.h includes.
12817         Remove bogus HAVE_NTGUI.
12818
12819         * config.h.in:
12820         [2].
12821
12822         * console-msw.c:
12823         mswindows_message_outputted added for use in allowing startup
12824         errors on the console to be seen.
12825
12826         * console-msw.c (msw_ensure_console_allocated):
12827         * console-msw.c (msw_output_console_string):
12828         * console-msw.c (DHEADER):
12829         * console-msw.c (DOPAQUE_DATA):
12830         * console-msw.c (DEVENT):
12831         * console-msw.c (DCONS):
12832         * console-msw.c (DCONSCDR):
12833         * console-msw.c (DSTRING):
12834         * console-msw.c (DVECTOR):
12835         * console-msw.c (DSYMBOL):
12836         * console-msw.c (DSYMNAME):
12837         Fix warnings.
12838
12839         * console-stream.c (stream_init_console):
12840         Fix text/binary problems.
12841
12842         * device-msw.c:
12843         * device-msw.c (mswindows_finish_init_device):
12844         * device-msw.c (mswindows_delete_device):
12845         [1].
12846
12847         * device.c (handle_asynch_device_change):
12848         [3].
12849
12850         * dgif_lib.c:
12851         * dgif_lib.c (DGifOpenFileName):
12852         * dgif_lib.c (DGifOpenFileHandle):
12853         * dgif_lib.c (DGifGetLine):
12854         * dgif_lib.c (DGifGetPixel):
12855         Added config.h/lisp.h, fix up includes.
12856         [1].
12857
12858         * dired-msw.c:
12859         [4].
12860
12861         * dired.c:
12862         * dired.c (file_name_completion):
12863         * dired.c (Ffile_attributes):
12864         * dired.c (syms_of_dired):
12865         [1].
12866
12867         * dumper.c:
12868         * dumper.c (pdump_file_unmap):
12869         * dumper.c (pdump_load):
12870         [1].
12871
12872         * editfns.c:
12873         * editfns.c (Ftemp_directory):
12874         * editfns.c (user_login_name):
12875         * editfns.c (Fuser_real_login_name):
12876         * editfns.c (get_home_directory):
12877         [1].
12878
12879         * elhash.c (finish_marking_weak_hash_tables):
12880         [[[[5]]]]: Fix GCC warnings.
12881
12882         * emacs.c:
12883         * emacs.c (mswindows_handle_hardware_exceptions):
12884         * emacs.c (make_arg_list_1):
12885         * emacs.c (main_1):
12886         * emacs.c (Fkill_emacs):
12887         * emacs.c (Fdump_emacs):
12888         [1].
12889         Fix problems with nested crashes, add long comment.
12890
12891         * event-Xt.c (init_event_Xt_late):
12892         [1].
12893
12894         * event-msw.c:
12895         * event-msw.c (mswindows_dde_callback):
12896         * event-msw.c (mswindows_handle_sticky_modifiers):
12897         * event-msw.c (mswindows_wnd_proc):
12898         [1].
12899         [5].
12900
12901         * events.c (character_to_event):
12902         [1].
12903
12904         * fileio.c:
12905         * fileio.c (Ffile_name_directory):
12906         * fileio.c (Ffile_name_nondirectory):
12907         * fileio.c (directory_file_name):
12908         * fileio.c (Fexpand_file_name):
12909         * fileio.c (Fsubstitute_in_file_name):
12910         * fileio.c (Ffile_name_absolute_p):
12911         * fileio.c (check_executable):
12912         * fileio.c (Ffile_readable_p):
12913         * fileio.c (Ffile_accessible_directory_p):
12914         * fileio.c (Ffile_modes):
12915         * fileio.c (Funix_sync):
12916         * fileio.c (vars_of_fileio):
12917         [1]. [4].
12918
12919         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
12920
12921         Expand getdefdir defn.
12922         Fix bogus rename() comment.
12923
12924         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
12925         to use standard XEmacs include files, e.g. sysfile.h, rather
12926         than system-specific includes.
12927
12928         * fns.c:
12929         * fns.c (Fsubseq):
12930         [5]. [6].
12931
12932         * frame.c (vars_of_frame):
12933         [1].
12934
12935         * getloadavg.c:
12936         * getloadavg.c (getloadavg):
12937         [1]. [6].
12938         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
12939         (We don't use it elsewhere in the code; just add a comment.)
12940
12941         * gif_io.c:
12942         [6].
12943         Add config.h.
12944
12945         * glyphs-msw.c:
12946         * glyphs-msw.c (mswindows_resource_instantiate):
12947         [1].
12948
12949         * glyphs-x.c (x_native_layout_instantiate):
12950         [5].
12951
12952         * gui-msw.c (Fmswindows_shell_execute):
12953         [1].
12954
12955         * insdel.c:
12956         [4].
12957
12958         * lisp.h:
12959         [4]. [5].
12960
12961         * lread.c (locate_file_in_directory_mapper):
12962         [1].
12963
12964         * lstream.c:
12965         [4].
12966
12967         * mem-limits.h:
12968         * mem-limits.h (get_lim_data):
12969         [1].
12970
12971         * menubar-msw.c:
12972         [4].
12973
12974         * ndir.h:
12975         [1].
12976
12977         * nt.c:
12978         * nt.c (getwd):
12979         * nt.c (closedir):
12980         * nt.c (rva_to_section):
12981         * nt.c (mswindows_executable_type):
12982         [1]. [6].
12983         Fix closedir() defn.
12984
12985         * nt.h:
12986         [[[[8]]]]: *_OK defs moved to sysfile.h.
12987
12988         * ntproc.c:
12989         [6]. [7].
12990
12991         * objects-x.c:
12992         [4].
12993
12994         * print.c:
12995         * print.c (std_handle_out_external):
12996         [1]. [4].
12997
12998         * process-nt.c:
12999         * process-nt.c (nt_create_process):
13000         [6].
13001         try to fix process quoting somewhat.
13002
13003         * process-unix.c (unix_create_process):
13004         [1].
13005
13006         * process.c:
13007         * process.c (vars_of_process):
13008         Add Vnull_device.
13009
13010         * process.h:
13011         [1].
13012
13013         * realpath.c:
13014         * realpath.c (xrealpath):
13015         [1].
13016
13017         * redisplay-tty.c (init_tty_for_redisplay):
13018         [3].
13019
13020         * redisplay.c:
13021         [4]. [6].
13022
13023         * scrollbar-msw.c:
13024         [4].
13025
13026         * sheap.c:
13027         * sheap.c (more_static_core):
13028         * sheap.c (report_sheap_usage):
13029         [5]. [6].
13030
13031         * signal.c:
13032         * signal.c (alarm_signal):
13033         [1]. [6].
13034
13035         * sound.c:
13036         [6].
13037
13038         * strftime.c:
13039         * strftime.c (zone_name):
13040         [1]. [5].
13041
13042         * symsinit.h (init_sunpro):
13043         [1].
13044
13045         * syscommctrl.h:
13046         commctrl.h not in Cygwin b20.1.
13047
13048         * sysdep.c:
13049         * sysdep.c (endif):
13050         * sysdep.c (sys_subshell):
13051         * sysdep.c (init_baud_rate):
13052         * sysdep.c (emacs_get_tty):
13053         * sysdep.c (emacs_set_tty):
13054         * sysdep.c (tty_init_sys_modes_on_device):
13055         * sysdep.c (init_system_name):
13056         * sysdep.c (sys_open):
13057         * sysdep.c (interruptible_open):
13058         * sysdep.c (sys_fopen):
13059         * sysdep.c (sys_mkdir):
13060         * sysdep.c (sys_rename):
13061         * sysdep.c (get_process_times_1):
13062         [1]. [6].
13063
13064         * sysdep.h:
13065         [1].
13066
13067         * sysdir.h:
13068         * sysdir.h (DIRENTRY_NONEMPTY):
13069         [1]. [6].
13070
13071         * sysdll.c (dll_init):
13072         * sysdll.h:
13073         [1].
13074
13075         * sysfile.h:
13076         [1]. [6]. [8].
13077         added text/binary defs.
13078
13079         * sysfloat.h:
13080         [1].
13081
13082         * sysproc.h:
13083         * sysproc.h (EDESTADDRREQ):
13084         * sysproc.h (poll_fds_for_input):
13085         [1]. [6].
13086
13087         * syspwd.h:
13088         [6].
13089
13090         * syssignal.h:
13091         [1].
13092
13093         * systime.h:
13094         [1]. [6].
13095
13096         * systty.h:
13097         [1].
13098
13099         * syswindows.h:
13100         [1].
13101         Always define WIN32_LEAN_AND_MEAN.
13102
13103         * unexcw.c (unexec):
13104         [5].
13105
13106         * unexec.c:
13107         * unexec.c (copy_text_and_data):
13108         * unexec.c (adjust_lnnoptrs):
13109         [1].
13110
13111         * unexnt.c:
13112         * unexnt.c (_start):
13113         [1].
13114
13115 2000-06-07  Ben Wing  <ben@xemacs.org>
13116
13117         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13118         was used only as a model.  We've long since extracted any useful
13119         logic or code out of this. (I just did an exhaustive search.)
13120
13121         * s\msdos.h: Removed.
13122
13123         * s\windows95.h: Removed.
13124
13125 2000-06-10  Ben Wing  <ben@xemacs.org>
13126
13127         * s\cygwin32.h:
13128         [1]. [5].
13129         Don't use extern with fun defs.
13130
13131         * s\mingw32.h:
13132         [1]. [7].
13133         Remove nt\inc include.
13134         Remove getdisk, getdefdir. (The former is unused, the latter
13135         expanded in fileio.h.)
13136
13137         * s\windowsnt.h:
13138         * s\windowsnt.h (WIN32_NATIVE):
13139         * s\windowsnt.h (HAVE_STRCASECMP):
13140         [1]. [7].
13141         Add long comment about preprocessor changes.
13142         Remove getdisk, getdefdir. (The former is unused, the latter
13143         expanded in fileio.h.)
13144
13145 2000-06-10  Ben Wing  <ben@xemacs.org>
13146
13147         * m\arm.h:
13148         * m\delta.h:
13149         * m\intel386.h:
13150         * m\sequent.h:
13151         * m\template.h:
13152         * m\windowsnt.h:
13153         [1].
13154         Remove bogus/unused NO_SOCK_SIGIO.
13155
13156 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13157
13158         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13159         not an Emchar.
13160
13161 2000-06-04  Mike Sperber <mike@xemacs.org>
13162
13163         * casetab.c (set_case_table): For `set-standard-case-table',
13164         actually deposit the new case tables where the rest of XEmacs can
13165         see them.
13166
13167 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13168
13169         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13170
13171 2000-06-05  Ben Wing  <ben@xemacs.org>
13172
13173         * callproc.c (child_setup): Don't do close_load_descs() under
13174         MS Windows.  Put in a comment explaining why.
13175
13176 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13177
13178         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13179         Toolkit shell" which breaks `kill-compilation' on Windows NT
13180         native, retaining STDERR handling improvements.
13181
13182 2000-06-01  Andreas Jaeger  <aj@suse.de>
13183
13184         * s/s390.h: Support for S390, based on a patch by Martin
13185         Schwidefsky <schwidefsky@de.ibm.com>.
13186
13187 2000-05-30  Andy Piper  <andy@xemacs.org>
13188
13189         * window.c (allocate_window):
13190         (make_dummy_parent):
13191         (Fset_window_configuration): use new hashtable type.
13192
13193         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13194         (struct image_instantiator_methods):
13195         (struct Lisp_Image_Instance): make instance geometry signed.
13196
13197         * glyphs.c (instantiate_image_instantiator):
13198         (image_instance_query_geometry):
13199         (image_instance_layout):
13200         (image_instance_layout):
13201         (query_string_geometry):
13202         (text_query_geometry):
13203         (image_instantiate):
13204         (image_instantiate):
13205         (cache_subwindow_instance_in_frame_maybe):
13206         (subwindow_query_geometry): make instance geometry signed.
13207
13208         * glyphs-widget.c (widget_query_geometry):
13209         (widget_layout):
13210         (button_query_geometry):
13211         (tree_view_query_geometry):
13212         (tab_control_query_geometry):
13213         (layout_query_geometry):
13214         (layout_layout):
13215         (native_layout_layout): make instance geometry signed.
13216
13217 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13218
13219         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13220         constant.
13221
13222         * general.c (syms_of_general): Add Qfull_assoc symbol.
13223
13224         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13225         correctly.
13226         (decode_weak_list_type): Decode full-assoc type.
13227         (encode_weak_list_type): Encode full-assoc type.
13228         (Fmake_weak_list): Update doc string.
13229
13230 2000-05-30  Andy Piper  <andy@xemacs.org>
13231
13232         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13233
13234         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13235         (decode_hash_table_weakness): ditto.
13236         (Fhash_table_weakness): ditto.
13237         (Fhash_table_type): ditto.
13238         (finish_marking_weak_hash_tables): ditto.
13239         (hash_table_weakness_validate): ditto.
13240         (syms_of_elhash): ditto.
13241
13242 2000-05-28  Martin Buchholz <martin@xemacs.org>
13243
13244         * XEmacs 21.2.34 is released.
13245
13246 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13247
13248         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13249         start cache.
13250         (updating_line_start_cache): Gone.
13251         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13252         generic code to force a minimum of 1 line laid out in the
13253         CMOTION_DISP case.
13254
13255 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13256
13257         * glyphs.c (instantiate_image_instantiator): Check for initialized
13258         height & width no longer special cases IMAGE_NOTHING.
13259         (nothing_instantiate): Set height and width of instance.
13260
13261 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13262
13263         * unexelf.c (unexec): Search for ".data" section.
13264         Initialize new_data2_offset from old_data_index.
13265         Remove redundant check for ElfW.
13266
13267 2000-05-23  Andy Piper  <andy@xemacs.org>
13268
13269         * glyphs.c (get_image_instantiator_governing_domain): allow more
13270         specific domains as the governing domain rather than expecting an
13271         exact match. This fixes problems with layouts.
13272
13273 2000-05-22  Andy Piper  <andy@xemacs.org>
13274
13275         * redisplay-output.c (compare_runes): check for non-images
13276
13277         * glyphs.c (set_glyph_dirty_p): ditto.
13278         (update_glyph_cachel_data): ditto.
13279
13280         * glyphs-widget.c (layout_post_instantiate): ditto.
13281         (layout_post_instantiate): ditto.
13282
13283         * event-msw.c (mswindows_wnd_proc): warning removal.
13284
13285 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13286
13287         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13288
13289         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13290
13291         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13292
13293         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13294         (mswindows_executable_type): mingw32 now has enough headers for
13295         this to work.
13296
13297 2000-05-20  Andy Piper  <andy@xemacs.org>
13298
13299         * console-msw.c (mswindows_output_last_error): ; -> ,
13300
13301 2000-05-12  Andy Piper  <andy@xemacs.org>
13302
13303         * console-msw.c (FROB): compare ints with ints.
13304
13305 2000-05-11  Andy Piper  <andy@xemacs.org>
13306
13307         * glyphs-x.c (x_finalize_image_instance): make minimal build
13308         happy.
13309
13310 2000-05-20  Ben Wing  <ben@xemacs.org>
13311
13312         * event-Xt.c:
13313         * event-Xt.c (vars_of_event_Xt):
13314         move modifier-keys-are-sticky to event-stream.c.
13315
13316         * event-msw.c:
13317         * event-msw.c (mswindows_enqueue_mouse_button_event):
13318         * event-msw.c (key_needs_default_processing_p):
13319         * event-msw.c (XEMSW_LCONTROL):
13320         * event-msw.c (mswindows_handle_sticky_modifiers):
13321         * event-msw.c (FROB):
13322         * event-msw.c (clear_sticky_modifiers):
13323         * event-msw.c (output_modifier_keyboard_state):
13324         * event-msw.c (output_alt_keyboard_state):
13325         * event-msw.c (mswindows_wnd_proc):
13326         * event-msw.c (mswindows_modifier_state):
13327         * event-msw.c (emacs_mswindows_handle_magic_event):
13328         implement sticky modifiers.
13329
13330         * event-stream.c:
13331         * event-stream.c (vars_of_event_stream):
13332         move modifier-keys-are-sticky here.
13333
13334         * lisp.h:
13335         add CHECK_FUNCTION.
13336
13337         * rangetab.c:
13338         implement map-range-table.
13339
13340
13341 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13342
13343         * redisplay-tty.c (reset_tty_modes):
13344         (tty_redisplay_shutdown): Adjust argument type to
13345         tty_frame_output_end.
13346
13347 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13348
13349         * eval.c (Fbacktrace): Don't output a line with only right
13350         parenthesis.
13351
13352 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13353
13354         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13355         (Fpq_reset_poll): Ditto.
13356
13357 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13358
13359         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13360
13361 2000-05-16  Ben Wing  <ben@xemacs.org>
13362
13363         * buffer.c:
13364         * buffer.c (dfc_convert_to/from_internal_format):
13365         * buffer.c (reinit_vars_of_buffer):
13366         Fix conversion functions to allow reentrancy.
13367
13368         * console-msw.c:
13369         * console-msw.c (mswindows_output_last_error):
13370         New fun, generally useful -- output a human-readable
13371         version of GetLastError() on the console.
13372
13373         * console-msw.h:
13374         * console-msw.h (struct mswindows_frame):
13375         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13376
13377         * console-stream.c (stream_output_begin):
13378         * console-stream.c (stream_output_end):
13379         * console-stream.c (stream_output_vertical_divider):
13380         * console-stream.c (stream_clear_region):
13381         * console-stream.c (stream_flash):
13382         * console-stream.c (console_type_create_stream):
13383         Delete blank stream methods, not needed.
13384
13385         * console.h (struct console_methods):
13386         Split begin/end methods into window and frame.
13387
13388         * event-msw.c:
13389         * event-msw.c (mswindows_handle_paint):
13390         * event-msw.c (output_alt_keyboard_state):
13391         * event-msw.c (mswindows_wnd_proc):
13392         * event-msw.c (vars_of_event_mswindows):
13393         Comment about problems with ignored-expose.
13394         Define mswindows-debug-events; not really implemented.
13395
13396         * frame-msw.c (mswindows_init_frame_1):
13397         random cleanups.
13398
13399         * glyphs-msw.c:
13400         * glyphs-msw.c (begin_defer_window_pos):
13401         * glyphs-msw.c (mswindows_unmap_subwindow):
13402         * glyphs-msw.c (mswindows_map_subwindow):
13403         * glyphs-msw.c (mswindows_resize_subwindow):
13404         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13405
13406         * glyphs.c (make_image_instance_1):
13407         Fix crash.
13408
13409         * gutter.c (Fredisplay_gutter_area):
13410         Use new begin/end methods.
13411
13412         * lisp.h (Dynarr_new2):
13413         New creation fun.
13414
13415         * redisplay-msw.c:
13416         * redisplay-msw.c (mswindows_frame_output_begin):
13417         * redisplay-msw.c (mswindows_frame_output_end):
13418         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13419         New begin/end methods -- handle DeferWindowPos.
13420
13421         * redisplay-output.c (redisplay_move_cursor):
13422         * redisplay-output.c (redraw_cursor_in_window):
13423         * redisplay-output.c (redisplay_update_line):
13424         * redisplay-output.c (redisplay_output_window):
13425         New begin/end methods.
13426
13427         * redisplay-tty.c:
13428         * redisplay-tty.c (tty_frame_output_begin):
13429         * redisplay-tty.c (tty_frame_output_end):
13430         * redisplay-tty.c (console_type_create_redisplay_tty):
13431         New begin/end methods.
13432
13433         * redisplay-x.c:
13434         * redisplay-x.c (x_window_output_begin):
13435         * redisplay-x.c (x_window_output_end):
13436         * redisplay-x.c (console_type_create_redisplay_x):
13437         New begin/end methods.
13438
13439         * redisplay.c (redisplay_frame):
13440         * redisplay.c (Fredisplay_echo_area):
13441         New begin/end methods.
13442         use MAYBE_DEVMETH for clear_frame; it may not exist.
13443
13444         * window.h (WINDOW_XFRAME):
13445         WINDOW_XFOO macros -- get locale and decode struct pointer.
13446
13447
13448 2000-05-12  Ben Wing  <ben@xemacs.org>
13449
13450         * emacs.c:
13451         * emacs.c (ensure_no_quitting_from_now_on):
13452         * emacs.c (fatal_error_signal):
13453         * emacs.c (mswindows_handle_hardware_exceptions):
13454         * emacs.c (main):
13455         * emacs.c (Fkill_emacs):
13456         * emacs.c (shut_down_emacs):
13457         * emacs.c (assert_failed):
13458         various improvements in fatal error handling.
13459
13460         * eval.c:
13461         move preparing_for_armageddon to emacs.c.
13462
13463         * lisp.h:
13464         declare fatal_error_in_progress.
13465
13466         * print.c:
13467         * print.c (std_handle_out_external):
13468         * print.c (std_handle_out_va):
13469         * print.c (stderr_out):
13470         * print.c (stdout_out):
13471         use console under mswin when no standard output.
13472         don't do code conversion during fatal error.
13473
13474         * scrollbar.c (Fscrollbar_page_up):
13475         * scrollbar.c (Fscrollbar_page_down):
13476         fix missing else.  reindent.
13477
13478 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13479
13480         Emergency fix.
13481
13482         * glyphs.h (GLYPH_CACHEL_DESCENT):
13483         (GLYPH_CACHEL_DESCENT):
13484         (GLYPH_CACHEL_DESCENT):
13485         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13486         used in case these are inline functions.
13487         Use more absurd values to error check.
13488
13489         include window.h for error check functions.
13490
13491 2000-05-11  Ben Wing  <ben@xemacs.org>
13492
13493         * cmdloop.c (Freally_early_error_handler):
13494         Display message box under windows; otherwise, message will disappear
13495         before it can be viewed.
13496
13497         * console-msw.c:
13498         * console-msw.c (Fmswindows_message_box):
13499         * console-msw.c (FROB):
13500         * console-msw.c (syms_of_console_mswindows):
13501         Define new fun `mswindows-message-box'.
13502         #### I will merge this into `popup-dialog-box'; just give me
13503         a bit of time.
13504
13505         * general.c:
13506         * general.c (syms_of_general):
13507         Some new symbols used in `mswindows-message-box'.
13508
13509         * glyphs.c:
13510         * glyphs.c (Fset_image_instance_property):
13511         put warning in this fun.
13512
13513         * glyphs.h:
13514         * glyphs.h (GLYPH_CACHEL_WIDTH):
13515         * glyphs.h (GLYPH_CACHEL_ASCENT):
13516         * glyphs.h (GLYPH_CACHEL):
13517         * glyphs.h (GLYPH_CACHEL_GLYPH):
13518         define error-checking versions to try to catch a bug i've seen --
13519         redisplay gets in an infinite loop because the glyph width of the
13520         continuation glyph is 65535.
13521
13522         * lisp.h:
13523         Extern message-box stuff.
13524
13525         * window.c (allocate_window):
13526         * window.c (make_dummy_parent):
13527         * window.c (Fset_window_configuration):
13528         Use EQUAL not EQ for subwindow caches to make them work a bit
13529         better. (Something is still very broken.)
13530
13531
13532 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13533
13534         * glyphs.c (image_instantiate): Suppress gcc warnings.
13535         (Fmake_image_instance): Fix doc string.
13536         * specifier.c (Fmake_specifier): Ditto.
13537
13538 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13539
13540         * paths.h.in (PATH_LOCK): Removed.
13541         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13542         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13543
13544 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13545
13546         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13547         Document (featurep '(and xemacs 21.02)).
13548
13549 2000-05-09  Ben Wing  <ben@xemacs.org>
13550
13551         * buffer.c (complex_vars_of_buffer):
13552         update modeline-format doc.
13553
13554         * device.h:
13555         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13556
13557         * emacs.c:
13558         timeline of all released versions of Emacs, for use in creating
13559         authorship comments and in synching up.
13560
13561         * glyphs-widget.c (image_instantiator_buttons):
13562         * glyphs-widget.c (image_instantiator_edit_fields):
13563         * glyphs-widget.c (image_instantiator_combo_box):
13564         * glyphs-widget.c (image_instantiator_scrollbar):
13565         * glyphs-widget.c (image_instantiator_progress_guage):
13566         * glyphs-widget.c (image_instantiator_tree_view):
13567         * glyphs-widget.c (image_instantiator_tab_control):
13568         * glyphs-widget.c (image_instantiator_labels):
13569         * glyphs-widget.c (image_instantiator_layout):
13570         * glyphs-widget.c (image_instantiator_native_layout):
13571         rename decode_domain method to governing_domain.
13572
13573         * glyphs.c:
13574         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13575         * glyphs.c (add_entry_to_device_ii_format_list):
13576         make sure we don't put an entry more than once into the list.
13577         * glyphs.c (check_instance_cache_mapper):
13578         *************************************************************
13579         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13580         HAVE BEEN GETTING.
13581         *************************************************************
13582         * glyphs.c (get_image_instantiator_governing_domain):
13583         clean up, expand on new concept of governing domain.
13584         * glyphs.c (instantiate_image_instantiator):
13585         * glyphs.c (allocate_image_instance):
13586         use governing_domain instead of cache_domain in naming.
13587         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13588         * glyphs.c (make_image_instance_1):
13589         * glyphs.c (Fmake_image_instance):
13590         allow for any domain (not just device), and process the
13591         governing domain correctly.  very big doc fix.
13592         * glyphs.c (Fimage_instance_domain):
13593         new primitive, to retrieve the governing domain of an image instance.
13594         * glyphs.c (image_instantiate):
13595         use new governing_domain stuff.  this fixes a crash you could get
13596         by instantiating certain widget glyphs in frame locales. (should
13597         signal an error instead of crashing.)
13598         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13599         * glyphs.c (Fglyphp): clean up doc.
13600         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13601         * glyphs.c (syms_of_glyphs):
13602         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13603         * glyphs.c (image_instantiator_format_create): add some comments about
13604         bogus code.
13605         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13606         for current-display-table. (Apparently Hrjove implemented in 1998 a
13607         design I wrote up in 1996, but didn't update the doc string.)
13608
13609         * glyphs.h: clean up a doc string.
13610         * glyphs.h (governing_domain):
13611         * glyphs.h (struct image_instantiator_methods):
13612         changes for governing_domain stuff.
13613
13614         * gutter.c:
13615         * gutter.c (Fgutter_specifier_p):
13616         * gutter.c (Fgutter_size_specifier_p):
13617         * gutter.c (Fgutter_visible_specifier_p):
13618         * objects.c:
13619         * objects.c (Fcolor_specifier_p):
13620         * objects.c (Ffont_specifier_p):
13621         * objects.c (Fface_boolean_specifier_p):
13622         doc strings moved to make-*-specifier.
13623
13624         * redisplay.c (add_disp_table_entry_runes_1):
13625         * redisplay.c (generate_fstring_runes):
13626         * redisplay.c (screen):
13627         add random comments and doc strings.
13628
13629         * specifier.c:
13630         * specifier.c (Fmake_specifier):
13631         major overhaul of this doc string.
13632
13633         * specifier.c (Fvalid_specifier_domain_p):
13634         comment about the bogosity of image instances being domains.
13635         * specifier.c (decode_domain):
13636         now non-static, used in glyphs.c.
13637         * specifier.c (specifier_instance):
13638         comment about the bogosity of image instances being domains.
13639         * specifier.c (Fgeneric_specifier_p):
13640         move doc string to make-generic-specifier.
13641         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
13642         rebackslashify.
13643
13644         * specifier.h:
13645         * specifier.h (DOMAIN_FRAME):
13646         * specifier.h (DOMAIN_LIVE_P):
13647         * specifier.h (DOMAIN_XDEVICE):
13648         rebackslashify.
13649         add comments about problems with these macros.
13650         prototype for decode_domain.
13651
13652         * toolbar.c:
13653         * toolbar.c (Ftoolbar_specifier_p):
13654         move doc string to `make-toolbar-specifier'.
13655
13656         * window.c (window_unmap_subwindows_cache_mapper):
13657         *************************************************************
13658         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13659         HAVE BEEN GETTING.
13660         *************************************************************
13661
13662 2000-05-09  Andy Piper  <andy@xemacs.org>
13663
13664         * glyphs.h: declare reset_frame_subwindow_instance_cache.
13665
13666         * window.c (Fset_window_configuration): reset the frame subwindow
13667         cache and re-initialize the window subwindow caches.
13668
13669         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
13670
13671 2000-05-09  Ben Wing  <ben@xemacs.org>
13672
13673         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
13674         DWORD.
13675
13676 2000-04-26  Mike Woolley  <mike@bulsara.com>
13677
13678         * ntheap.c: Changed recreate_heap to limit the amount reserved
13679         for the heap to that which is actually available. Also now
13680         displays a message box (with some dignostics) in the event that
13681         it still can't start.
13682
13683 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
13684
13685         * callproc.c (Fold_call_process_internal): GCPRO path
13686
13687 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
13688
13689         Patch by Bill Perry.
13690
13691         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
13692         back data instead of #ifdef.
13693         (Fscrollbar_page_down): ditto.
13694
13695 2000-05-07  Ben Wing  <ben@xemacs.org>
13696
13697         * buffer.h:
13698         Kludge for defining Qmswindows_tstr.
13699
13700         * nt.c:
13701         * nt.c (open_input_file):
13702         * nt.c (open_output_file):
13703         * nt.c (rva_to_section):
13704         * nt.c (mswindows_executable_type):
13705         Move all memory-mapped-file routines here (some were in unexnt.c,
13706         which is bad because they are used by process-nt.c, and unexnt
13707         won't be around when portable dumping).  Synched the above routines
13708         with FSF 20.6.
13709
13710         * nt.h:
13711         Removed ifdef'd out bogus code.
13712         Fixed some prototypes.
13713
13714         * nt.h (file_data):
13715         * nt.h (OFFSET_TO_RVA):
13716         * nt.h (RVA_TO_OFFSET):
13717         * nt.h (RVA_TO_PTR):
13718         Moved the memory-mapped-file structures, macros and prototypes
13719         here, to parallel nt.c.  ntheap.h should really be removed
13720         entirely, and it's a non-portable-dumper specific file.
13721
13722         * ntheap.h (round_to_next):
13723         Moved the memory-mapped-file structures, macros and prototypes
13724         to nt.h.
13725
13726         * ntproc.c (compare_env):
13727         Moved rva_to_section and mswindows_executable_type to nt.c.
13728         Moved compare_env to process-nt.c.
13729         ntproc.c will die, one day.
13730
13731         * ntproc.c (sys_spawnve):
13732         Account for win32_ -> mswindows_.
13733
13734         * process-nt.c:
13735         * process-nt.c (struct nt_process_data):
13736         * process-nt.c (ensure_console_window_exists):
13737         * process-nt.c (compare_env):
13738         * process-nt.c (nt_create_process):
13739         * process-nt.c (nt_kill_process_by_pid):
13740         * process-nt.c (syms_of_process_nt):
13741         * process-nt.c (vars_of_process_nt):
13742         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
13743         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
13744         changes).  Eliminate our old `nt-quote-process-args' mechanism.
13745         Synch up nt_create_process with FSF 20.6 sys_spawnve.
13746         Move compare_env here from ntproc.c.
13747
13748         * process.c (Fprocess_send_region):
13749         Takes an optional fourth argument, BUFFER, which should fix some
13750         problems with call-process.
13751
13752         * syscommctrl.h:
13753         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
13754
13755         * syswindows.h:
13756         Move ICC_BAR_CLASSES to syscommctrl.h.
13757         Add preliminary macros for MSWindows/Mule.  More to come.
13758
13759         * unexnt.c:
13760         * unexnt.c (unexec):
13761         open_output_file moved to nt.c.
13762
13763
13764 2000-05-05  Andy Piper  <andy@xemacs.org>
13765
13766         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
13767         instance from the frame cache also since GC may catch up too late
13768         to make frame deletion sane.
13769
13770 2000-05-04  Andy Piper  <andy@xemacs.org>
13771
13772         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
13773         (x_finalize_image_instance): ungcpro on deletion.
13774
13775         * glyphs.c (image_instantiator_format_create): give pointers a
13776         query geometry method so that the geometry is at least set.
13777
13778         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
13779         initialize layouts if using widgets.
13780
13781 2000-05-03  Andy Piper  <andy@xemacs.org>
13782
13783         * nt.c: remove bogus reference to sysmmsystem.h
13784
13785         * gui-x.c (popup_selection_callback): fix no selection abort.
13786
13787 2000-05-02  Andy Piper  <andy@xemacs.org>
13788
13789         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
13790         (mswindows_widget_instantiate): ditto.
13791
13792         * glyphs-widget.c (initialize_widget_image_instance): initialize
13793         children correctly.
13794         (widget_instantiate): cope with children and items in the same
13795         instance.
13796
13797         * glyphs.c (mark_image_instance): cope with children as a first
13798         class member.
13799         (image_instance_equal): ditto.
13800         (image_instance_hash): ditto.
13801         (image_instance_changed): ditto.
13802
13803 2000-04-30  Andy Piper  <andy@xemacs.org>
13804
13805         * glyphs.c (subwindow_query_geometry): new function. Return some
13806         defaults.
13807         (subwindow_instantiate): don't assign dimensions if none have been
13808         given.
13809         (image_instantiator_format_create): add subwindow_query_geometry.
13810         (print_image_instance): cope with layouts as widgets.
13811
13812 2000-04-29  Andy Piper  <andy@xemacs.org>
13813
13814         * frame.c (delete_frame_internal): call
13815         free_frame_subwindow_instance_cache so that all subwindows are
13816         finalized before their parent.
13817         (mark_frame): remove subwindow_cachels.
13818         (Fmake_frame): remove subwindow_cachel manipulation.
13819         (allocate_frame_core): subwindow_instance_cache is a weak list.
13820         (delete_frame_internal): set subwindow_instance_cache to nil.
13821
13822         * glyphs-msw.c (mswindows_finalize_image_instance): make double
13823         finalization safe.
13824         (mswindows_finalize_image_instance): use the device
13825         not the domain as the domain may have died already.
13826
13827         * glyphs-x.c (x_finalize_image_instance): ditto.
13828         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
13829         HEIGHT.
13830
13831         * redisplay-output.c (redisplay_unmap_subwindows): update for
13832         subwindow instance cache as a weak list.
13833         (redisplay_unmap_subwindows_maybe): ditto.
13834         (redisplay_unmap_subwindows_except_us): ditto.
13835
13836         * glyphs.c (unmap_subwindow): error checking will check the domain
13837         so don't deal with it here. Don't use cachels anymore.
13838         (map_subwindow): ditto.
13839         (update_subwindow_cachel_data): remove old accessor names.
13840         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
13841         (Fresize_subwindow): don't update cachel.
13842         (mark_subwindow_cachels):
13843         (update_subwindow_cachel_data):
13844         (add_subwindow_cachel):
13845         (get_subwindow_cachel_index):
13846         (update_subwindow_cachel):
13847         (reset_subwindow_cachels):
13848         (mark_subwindow_cachels_as_not_updated): deleted.
13849         (cache_subwindow_instance_in_frame_maybe): new function. Add a
13850         subwindow instance to the frame cache.
13851         (find_matching_subwindow): update for subwindow instance cache as
13852         a weak list.
13853         (update_widget_instances): ditto.
13854         (image_instance_type_to_mask):inlined.
13855         (free_frame_subwindow_instance_cache): new function. finalize all
13856         subwindows that are instantiated.
13857
13858         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
13859         of cachel information.
13860         (IMAGE_INSTANCE_DISPLAY_X):
13861         (IMAGE_INSTANCE_DISPLAY_Y):
13862         (IMAGE_INSTANCE_DISPLAY_WIDTH):
13863         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
13864         (XIMAGE_INSTANCE_DISPLAY_X):
13865         (XIMAGE_INSTANCE_DISPLAY_Y):
13866         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
13867         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
13868         remove subwindow_cachel structure and function references.
13869         (image_instance_type_to_mask): inline from glyphs.c
13870
13871         * redisplay.c (redisplay_frame): remove subwindow_cachel
13872         references.
13873
13874         * frame.h (struct frame): remove subwindow_cachels.
13875         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
13876
13877         * frameslots.h: add subwindow_instance_cache.
13878
13879         * window.c (replace_window): check subwindow cache of replacement.
13880         (window_unmap_subwindows_cache_mapper):
13881         (window_unmap_subwindows): new functions. Unmap all subwindows
13882         cached on this window.
13883         (mark_window_as_deleted): unmap all subwindows.
13884
13885 2000-04-27  Andy Piper  <andy@xemacs.org>
13886
13887         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
13888
13889         * glyphs-widget.c (widget_layout): return something.
13890         (layout_layout): return something. Fail if not initialized.
13891         (layout_query_geometry): ditto.
13892         (image_instantiator_native_layout): new function. Initialized the
13893         native layout type.
13894         (widget_instantiate): don't do layout stuff here.
13895
13896         * glyphs.c (instantiate_image_instantiator): reorded calling or
13897         instantiate and post_instantiate with layout in between.
13898         (image_instance_layout): be more selective about deciding whether
13899         the layout has been done or not.
13900
13901         * glyphs.h (struct image_instantiator_methods): return a value
13902         from layout_method.
13903
13904 2000-04-26  Andy Piper  <andy@xemacs.org>
13905
13906         * glyphs.c (allocate_image_instance): make initial width and
13907         height unspecified. Set initialized to 0.
13908
13909         * syscommctrl.h new file. Encapsulates commctrl.h.
13910
13911         * syswindows.h new file. Encapsulates windows.h.
13912
13913         * ntplay.c: use new syswindows.h and syscommctrl.h header.
13914         * nt.c: ditto.
13915         * console-msw.h: ditto.
13916
13917         * redisplay-tty.c (tty_output_display_block): remove layout references.
13918
13919         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
13920         window handle rather than just the frame.
13921
13922         * glyphs.c (mark_image_instance): remove layout references.
13923         (print_image_instance): ditto.
13924         (image_instance_equal): ditto.
13925         (image_instance_hash): ditto.
13926         (decode_image_instance_type): ditto.
13927         (encode_image_instance_type): ditto.
13928         (image_instantiate): ditto.
13929         (allocate_glyph): ditto.
13930         (Fimage_instance_height): ditto.
13931         (Fimage_instance_width): ditto.
13932         (update_subwindow): ditto.
13933
13934         * redisplay-x.c (x_output_display_block): recode for layouts as
13935         widgets.
13936
13937         * redisplay-output.c (redisplay_output_layout): recode for layouts
13938         as widgets.
13939         (compare_runes): remove layout references.
13940
13941         * redisplay-msw.c (mswindows_output_display_block): recode for
13942         layouts as widgets.
13943
13944         * glyphs-widget.c (image_instantiator_layout): remove
13945         layout_possible_dest_types.
13946         (layout_possible_dest_types): deleted.
13947
13948         * glyphs.h (image_instance_type): remove layout references.
13949         (struct Lisp_Image_Instance): ditto. Add initialized flag.
13950         (IMAGE_INSTANCE_INITIALIZED): new accessor.
13951         (XIMAGE_INSTANCE_INITIALIZED): ditto.
13952
13953 2000-04-25  Andy Piper  <andy@xemacs.org>
13954
13955         * glyphs-widget.c (image_instantiator_buttons):
13956         (image_instantiator_edit_fields):
13957         (image_instantiator_combo_box):
13958         (image_instantiator_scrollbar):
13959         (image_instantiator_progress_guage):
13960         (image_instantiator_tree_view):
13961         (image_instantiator_tab_control):
13962         (image_instantiator_labels):
13963         (image_instantiator_layout): call default post_instantiate method.
13964         (widget_post_instantiate): new function. Simply lays out the
13965         widgets.
13966
13967         * glyphs.h (struct image_instantiator_methods): add
13968         post_instantiate method.
13969
13970         * glyphs.c (instantiate_image_instantiator): add post_instantiate
13971         method calls.
13972
13973 2000-04-23  Andy Piper  <andy@xemacs.org>
13974
13975         * glyphs.h (struct image_instantiator_methods): add
13976         decode_domain_method.
13977         (struct Lisp_Image_Instance): remove subwindow frame - it can be
13978         derived from the domain.
13979         (IMAGE_INSTANCE_FRAME): new accessor.
13980         (XIMAGE_INSTANCE_FRAME): ditto.
13981
13982         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
13983         instead of _SUBWINDOW_FRAME.
13984         (finalize_image_instance): ditto.
13985         (Fimage_instance_foreground): ditto.
13986         (Fimage_instance_background): ditto.
13987         (image_instantiate): ditto.
13988         (update_subwindow_cachel): ditto.
13989         (update_subwindow): ditto.
13990         (unmap_subwindow): ditto.
13991         (map_subwindow): ditto
13992         (subwindow_instantiate): ditto.
13993         * glyphs-msw.c (mswindows_update_widget): ditto.
13994         (mswindows_progress_gauge_instantiate): ditto.
13995         (mswindows_tab_control_update): ditto.
13996         * glyphs-x.c (x_update_widget): ditto.
13997         (x_widget_instantiate): ditto.
13998         (x_tab_control_instantiate): ditto.
13999         (x_tab_control_update): ditto.
14000         * event-msw.c (mswindows_wnd_proc): ditto
14001
14002         * glyphs-widget.c (image_instantiator_layout): use
14003         subwindow_decode_domain.
14004         (image_instantiator_buttons): ditto.
14005         (image_instantiator_edit_fields): ditto.
14006         (image_instantiator_combo_box): ditto.
14007         (image_instantiator_scrollbar): ditto.
14008         (image_instantiator_progress_guage): ditto.
14009         (image_instantiator_tree_view): ditto.
14010         (image_instantiator_tab_control): ditto.
14011         (image_instantiator_labels): ditto.
14012         (image_instantiator_layout): ditto.
14013
14014         * glyphs.c: add instance error checking to many functions.
14015         (instantiate_image_instantiator): decode device from cache_domain.
14016         (image_instantiate): partially rewrite by using
14017         decode_image_instantiator_domain to determine what domain the
14018         instance needs to be cached in.
14019         (decode_image_instantiator_domain): new function. Determine what
14020         domain the image needs to be cached in.
14021         (check_window_subwindow_cache): new error checking function.
14022         (check_instance_cache_mapper): ditto.
14023         (check_image_instance_structure): ditto.
14024         (subwindow_decode_domain): new function. Encodes a window as a
14025         subwindow's cache domain.
14026         (image_instantiator_format_create): use it for text and
14027         subwindows.
14028
14029 2000-04-21  Andy Piper  <andy@xemacs.org>
14030
14031         * glyphs.c (image_instance_device): new function.
14032         (image_instance_frame): new function.
14033         (image_instance_window): new function.
14034         (image_instance_live_p): new function.
14035
14036         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14037         cache to nil.
14038
14039         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14040         (IMAGE_INSTANCE_DOMAIN): new accessor.
14041         (XIMAGE_INSTANCE_DOMAIN): ditto.
14042
14043         * glyphs-x.c (x_finalize_image_instance): device->domain.
14044
14045         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14046         (mswindows_finalize_image_instance): ditto.
14047
14048         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14049         (gif_instantiate): ditto.
14050         (png_instantiate): ditto.
14051         (tiff_instantiate): ditto.
14052
14053         * glyphs.c (instantiate_image_instantiator): use domain rather
14054         than device.
14055         (mark_image_instance): device -> domain.
14056         (print_image_instance): ditto.
14057         (finalize_image_instance): ditto.
14058         (image_instance_equal): ditto.
14059         (allocate_image_instance): ditto.
14060         (Fcolorize_image_instance): ditto.
14061         (query_string_geometry): ditto.
14062         (image_instantiate): ditto
14063         (query_string_font): ditto.
14064         (image_instantiate): ditto.
14065         (update_subwindow): ditto.
14066         (unmap_subwindow): ditto.
14067         (map_subwindow): ditto.
14068         (subwindow_instantiate): ditto.
14069
14070         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14071         (DOMAIN_FRAME): ditto.
14072         (DOMAIN_WINDOW): ditto.
14073         (DOMAIN_LIVE_P): ditto.
14074         (XDOMAIN_DEVICE): ditto.
14075         (XDOMAIN_FRAME): ditto.
14076         (XDOMAIN_WINDOW): ditto.
14077
14078         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14079         a valid specifier domain.
14080
14081 2000-04-19  Andy Piper  <andy@xemacs.org>
14082
14083         * glyphs-widget.c (syms_of_glyphs_widget): remove
14084         widget-callback-current-channel.
14085         (vars_of_glyphs_widget): ditto.
14086         * glyphs.h: ditto
14087
14088         * gui.c (get_gui_callback): revert to previous behaviour.
14089
14090 2000-04-18  Andy Piper  <andy@xemacs.org>
14091
14092         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14093         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14094         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14095
14096         * glyphs.c (image_instance_equal): add margin_width.
14097         (image_instance_hash): ditto.
14098
14099         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14100         (layout_query_geometry): ditto.
14101         (layout_layout): ditto.
14102         (syms_of_glyphs_widget): add margin-width.
14103         (image_instantiator_layout): allow margin-width.
14104
14105         * glyphs.c (update_widget_instances): make a normal function.
14106         (syms_of_glyphs): remove Qupdate_widget_instances.
14107         * glyphs.h: ditto.
14108
14109         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14110         so that we don't corrupt ideas about the last event or
14111         command. Remove widget-callback-current-channel fiddling.
14112         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14113
14114 2000-05-01  Martin Buchholz <martin@xemacs.org>
14115
14116         * XEmacs 21.2.33 is released.
14117
14118 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14119
14120         * make-src-depend: Allow dots in header file name.
14121
14122 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14123
14124         * mule-charset.h (struct charset_lookup): Add
14125         next_allocated_1_byte_leading_byte and
14126         next_allocated_2_byte_leading_byte.
14127         * mule-charset.c: Move above two variables so that those values
14128         will be dumped.
14129
14130 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14131
14132         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14133         when string length is zero.
14134         (find_charsets_in_emchar_string): Ditto.
14135
14136 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14137
14138         * lisp.h: extern Qdialog and Qmenubar.
14139
14140         * gui-x.c: added events.h.
14141                 also fixed typo which made the file uncompilable.
14142
14143         * general.c: Added Qmenubar and Qdialog
14144
14145 2000-04-28  Ben Wing  <ben@xemacs.org>
14146
14147         * frame-msw.c (mswindows_init_frame_1):
14148         * frame-msw.c (mswindows_mark_frame):
14149         * event-msw.c (mswindows_enqueue_dispatch_event):
14150         * console-msw.h:
14151         * console-msw.h (struct mswindows_frame):
14152         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14153         there are now three hash tables for callbacks.
14154         mswindows_enqueue_dispatch_event is no longer static.
14155
14156         * dialog-x.c (maybe_run_dbox_text_callback):
14157         * dialog-x.c (dbox_descriptor_to_widget_value):
14158         switch to new cons3 form for callbacks.
14159
14160         * glyphs-msw.c (mswindows_register_gui_item):
14161         * glyphs-msw.c (mswindows_widget_instantiate):
14162         * glyphs-msw.c (add_tree_item):
14163         * glyphs-msw.c (add_tab_item):
14164         new image instance parameter, so it can be passed to callback-ex.
14165         respect :callback-ex as well as :callback.
14166
14167         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14168         add :callback-ex.
14169
14170         * glyphs.c (print_image_instance):
14171         prettify, e.g. now prints widget type.
14172
14173         * gui-x.h:
14174         certain funs have new image instance parameter.
14175
14176         * gui.c:
14177         * gui.c (get_gui_callback):
14178         * gui.c (gui_item_add_keyval_pair):
14179         * gui.c (gui_item_init):
14180         * gui.c (gui_add_item_keywords_to_plist):
14181         * gui.c (mark_gui_item):
14182         * gui.c (gui_item_hash):
14183         * gui.c (gui_item_equal):
14184         * gui.c (copy_gui_item):
14185         * gui.c (syms_of_gui):
14186         recognize callback-ex in a number of places.
14187         also, fix the annoying "can't get out of yes-no dialog" bug.
14188
14189         * gui.h:
14190         * gui.h (struct Lisp_Gui_Item):
14191         recognize callback-ex in a number of places.
14192
14193         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14194         new parameter in button_item_to_widget_value.
14195
14196         * glyphs-x.c (x_update_widget):
14197         * glyphs-x.c (x_button_instantiate):
14198         * glyphs-x.c (x_button_update):
14199         * glyphs-x.c (x_progress_gauge_instantiate):
14200         * glyphs-x.c (x_edit_field_instantiate):
14201         * glyphs-x.c (x_combo_box_instantiate):
14202         * glyphs-x.c (x_tab_control_instantiate):
14203         * glyphs-x.c (x_label_instantiate):
14204         new image instance parameter in various places.
14205
14206         * event-Xt.c:
14207         * event-Xt.c (enqueue_Xt_dispatch_event):
14208         this fun gets exported.
14209
14210         * gui-msw.c:
14211         * gui-msw.c (mswindows_handle_gui_wm_command):
14212         handle both :callback and :callback-ex, and generate our own
14213         event because it's one of the callback-ex arguments.
14214
14215         * gui-x.c:
14216         * gui-x.c (popup_selection_callback):
14217         handle both :callback and :callback-ex, and generate our own
14218         event because it's one of the callback-ex arguments.
14219         * gui-x.c (button_item_to_widget_value):
14220         * gui-x.c (gui_items_to_widget_values_1):
14221         * gui-x.c (gui_item_children_to_widget_values):
14222         * gui-x.c (gui_items_to_widget_values):
14223         new image instance parameter in various places.
14224
14225         * fns.c (Freplace_list):
14226         fix small typo in doc string.
14227
14228         * lisp.h:
14229         declare enqueue_Xt_dispatch_event.
14230
14231 2000-04-28  Ben Wing  <ben@xemacs.org>
14232
14233         * buffer.c:
14234         * buffer.c (Frecord_buffer):
14235         * buffer.c (syms_of_buffer):
14236         delete record-buffer-hook.
14237
14238         * fns.c:
14239         * fns.c (Freplace_list):
14240         * fns.c (syms_of_fns):
14241         new primitive replace-list.
14242
14243         * frameslots.h:
14244         slot for old buffer-alist.
14245
14246         * lisp.h:
14247         exfun replace-list.
14248
14249         * redisplay.c:
14250         * redisplay.c (redisplay_frame):
14251         * redisplay.c (syms_of_redisplay):
14252         * redisplay.c (vars_of_redisplay):
14253         new hook buffer-list-changed-hook.
14254         call it.
14255
14256 2000-04-27  Ben Wing  <ben@xemacs.org>
14257
14258         * extents.h: extern in_modeline_generation.
14259
14260         * redisplay.c (generate_formatted_string_db): set
14261         in_modeline_generation.
14262
14263         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14264         flags if in modeline generation.  otherwise frame-modified-tick
14265         is ticked far too often.
14266         Declare in_modeline_generation.
14267
14268 2000-04-26  Ben Wing  <ben@xemacs.org>
14269
14270         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14271         option.
14272         (vars_of_emacs): add quick-build as an error-checking option.
14273         A bit kludgy, but there doesn't seem much point in creating
14274         a real var for this.
14275
14276         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14277
14278 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14279
14280         * redisplay.h (struct display_line): Add a new variable,
14281         line_continuation.
14282
14283         * redisplay.c (create_text_block): Set dl->line_continuation if
14284         the line continues.
14285         (create_string_text_block): Ditto.
14286         (regenerate_window_incrementally): Use line_continuation instead
14287         of searching continuation glyph.
14288         (add_margin_runes): Call add_glyph_rune.
14289         (add_glyph_rune): Handle margin glyph.
14290
14291 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14292
14293         * filelock.c (fill_in_lock_file_name):
14294         ANSIfy.
14295         Check for IS_ANY_SEP instead of '/'.
14296         (lock_file_1):
14297         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14298         Never check errno without first seeing that system call failed.
14299         (unlock_file): Add GCPRO.
14300         (Flock_buffer): Fix docstring.
14301         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14302
14303 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14304
14305         * sysdep.c (get_pty_max_bytes):
14306         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14307         strings longer than 252 bytes.
14308
14309         * md5.c: Unconditionally include ANSI header <limits.h>
14310
14311         * glyphs-x.c (convert_EImage_to_XImage):
14312         * lisp-union.h (union Lisp_Object):
14313         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14314
14315 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14316
14317         * filelock.c (current_lock_owner): Remove unused variable o, p.
14318
14319 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14320
14321         * callint.c: Remove multiply defined symbol Qlet
14322         (syms_of_callint): ditto.
14323
14324 2000-04-14  Andy Piper  <andy@xemacs.org>
14325
14326         * general.c (syms_of_general): add last-command, this-command, let
14327         and funcall.
14328
14329         * lisp.h: declare various symbols.
14330
14331         * glyphs.h: declare Qwidget_callback_current_channel;
14332
14333         * glyphs-widget.c (syms_of_glyphs_widget): add
14334         Qgui_callback_current_channel.
14335         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14336
14337         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14338         widget-callback-current-channel when invoking the interactive
14339         arg. Also bind last-command and next-command when invoking the
14340         widget updates.
14341         * gui-x.c (popup_selection_callback): ditto.
14342
14343         * gui.c (get_gui_callback): massage args so that we are always
14344         calling eval. This allows us to add our own variable bindings
14345         outside.
14346
14347         * glyphs-x.c (x_button_instantiate): use
14348         gui_items_to_widget_values since this is GC safe.
14349         (x_progress_gauge_instantiate): ditto.
14350         (x_edit_field_instantiate): ditto.
14351         (x_label_instantiate): ditto.
14352
14353         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14354         (emacs_Xt_event_widget_focus_out): new function
14355         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14356         focus.
14357         (emacs_Xt_event_add_widget_actions): new function. add focus
14358         functions as actions.
14359         (init_event_Xt_late): use it.
14360
14361 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14362
14363         * event-stream.c (Fdispatch_event): Doc fix.
14364
14365 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14366
14367         * postgresql.c: Remove all references to PQsetenv*.
14368
14369         * postgresql.h: Remove references to PGsetenvHandler object.
14370         * lrecord.h (lrecord_type): Ditto.
14371
14372 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14373
14374         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14375         real_heigh and real_width members, and accessor macros for these.
14376
14377         * glyphs-msw.c (init_image_instance_geometry): New function.
14378         (init_image_instance_from_dibitmap): Use it.
14379         (mswindows_resource_instantiate): Use it.
14380         (init_image_instance_from_xbm_inline): Use it.
14381         (mswindows_initialize_image_instance_mask): Use real bitmap
14382         geometry.
14383         (mswindows_create_resized_bitmap): Ditto.
14384         (mswindows_create_resized_mask): Ditto.
14385
14386         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14387         and bitmap to their surface size.
14388
14389 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14390
14391         * process-unix.c (unix_send_process): Guard against process MIA
14392         after Faccept_process_output.
14393
14394 2000-04-11  Ben Wing  <ben@xemacs.org>
14395
14396         * eval.c (unbind_to_hairy): fix brokenness introduced by
14397         nanosecond speed improvements.
14398
14399 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14400
14401         * sunplay.c (init_device): To play sounds correctly, the device
14402         apparently needs to be initialized at least once by XEmacs.  Make
14403         it so.
14404
14405 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14406
14407         * redisplay.c (add_margin_runes): Add text image glyph
14408           handling.
14409
14410 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14411
14412         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14413         gcc is newer than 2.5.
14414
14415 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14416
14417         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14418
14419         * fns.c (size_bit_vector):
14420         * alloc.c (size_vector):
14421         (make_vector_internal):
14422         (make_bit_vector_internal):
14423         (sweep_bit_vectors_1):
14424         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14425
14426 2000-04-06  Andy Piper  <andy@xemacs.org>
14427
14428         * gmalloc.c (malloc): undo previous change.
14429         (malloc): ditto.
14430         (free): ditto.
14431         (realloc): ditto.
14432
14433 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14434
14435         * line-number.c (buffer_line_number): Revert to former version.
14436
14437 2000-04-06  Andy Piper  <andy@xemacs.org>
14438
14439         * gmalloc.c (malloc): add error checking.
14440         (malloc): ditto.
14441         (free): ditto.
14442         (realloc): ditto.
14443
14444         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14445         button_item_to_widget_value arg.
14446
14447         * glyphs-x.c (x_button_instantiate): add extra
14448         button_item_to_widget_value arg.
14449         (x_progress_gauge_instantiate): ditto.
14450         (x_edit_field_instantiate): ditto.
14451         (x_label_instantiate): ditto.
14452
14453         * gui-x.c (gui_items_to_widget_values_1): add extra
14454         button_item_to_widget_value arg.
14455         (button_item_to_widget_value): add extra menu_item_p arg.
14456
14457         * gui-x.h: change signature of button_item_to_widget_value.
14458
14459         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14460         button_item_to_widget_value arg.
14461
14462 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14463
14464         * buffer.h (struct buffer): auto_save_modified should be long.
14465
14466 2000-04-05  Andy Piper  <andy@xemacs.org>
14467
14468         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14469         type.
14470         (button_query_geometry): give a little more room so that athena
14471         buttons fit.
14472
14473 2000-04-05  Andy Piper  <andy@xemacs.org>
14474
14475         * faces.c (complex_vars_of_faces): The widget face should inherit
14476         the font of the gui-element face.
14477
14478 2000-04-04  Andy Piper  <andy@xemacs.org>
14479
14480         * glyphs-x.c (x_button_update): new function. unconditionally
14481         update a button's state when the instance is dirty.
14482         (image_instantiator_format_create_glyphs_x): add x_button_update.
14483         (x_widget_instantiate): remove old resize cruft.
14484
14485 2000-04-02  Andy Piper  <andy@xemacs.org>
14486
14487         * frame.c (change_frame_size_1): The introduction of gutters means
14488         that we need to allow 0 as a potential frame dimension.
14489
14490 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14491
14492         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14493         image glyph if allow_cursor.
14494         (add_hscroll_rune): Don't allow cursor to border glyph.
14495         (create_text_block): Ditto.
14496
14497         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14498         text not in buffer.
14499         (redisplay_output_layout): Call ensure_face_cachel_complete for
14500         text image glyph.
14501
14502
14503 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14504
14505         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14506
14507         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14508         not in buffer
14509
14510         * redisplay-tty.c (tty_output_display_block): Delete the routine
14511         for text image glyph
14512         * redisplay-x.c (x_output_display_block): ditto
14513         * redisplay-msw.c (mswindows_output_display_block): ditto
14514
14515 2000-02-02  Mike Alexander  <mta@arbortext.com>
14516
14517         Note: Some of these were committed by accident as part of other
14518         patches.
14519
14520         * regex.c (regex_compile): Avoid compiler warnings.
14521
14522         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14523
14524         * nt.h: Declare term_ntproc correctly.
14525
14526         * nt.c: Remove incorrect declaration of get_home_directory which
14527         is declared correctly in lisp.h.
14528
14529         * keymap.c (get_keyelt): Avoid compiler warnings.
14530         (raw_lookup_key_mapper): Avoid compiler warnings.
14531
14532         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14533
14534         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14535
14536         * filemode.c (mode_string): Avoid compiler warnings.
14537
14538         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14539         avoid warning.
14540
14541         * events-mod.h: Undef some things that winuser.h defines differently.
14542
14543         * data.c (Faset): Avoid compiler warnings.
14544
14545         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14546
14547 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14548
14549         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14550         Fall through to simple beep on error.
14551         Replace "extern" by real header file.
14552
14553         * linuxplay.c: Use nativesound.h
14554         (play_sound_data): Return error code. Be less verbose on error.
14555
14556         * sunplay.c: Use nativesound.h
14557         (play_sound_data): Return error code. Be less verbose on error.
14558
14559         * ntplay.c: Use nativesound.h
14560         (play_sound_data): Return fake error code
14561
14562         * sgiplay.c: Use nativesound.h
14563         (play_sound_data): Return error code
14564
14565         * hpplay.c: Use nativesound.h, partially implement
14566         new error code. Break compilation until finished.
14567         (play_sound_data): error code.
14568
14569         * nativesound.h (play_sound_file):
14570           (play_sound_data): Prototype in new header.
14571
14572 2000-03-31  Andy Piper  <andy@xemacs.org>
14573
14574         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14575         for toggle and radio buttons.
14576         (image_instantiator_buttons): use it.
14577
14578 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14579
14580         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14581         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14582         found. Scrollbar event probably belonged to some old config.
14583
14584 2000-03-31  Andy Piper  <andy@xemacs.org>
14585
14586         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14587         than 1.
14588         (initialize_widget_image_instance): default layout to
14589         LAYOUT_HORIZONTAL rather than 0.
14590         (widget_instantiate): reverse the item list at the end rather than
14591         every iteration.
14592         (layout_layout): re-code for the border text at the front of the
14593         item list rather than at the end.
14594         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14595         provided by the user.
14596         (widget_query_geometry): comment.
14597
14598 2000-03-30  Andy Piper  <andy@xemacs.org>
14599
14600         * glyphs-widget.c (image_instantiator_layout): allow standard
14601         widget keywords in layouts.
14602
14603         * gutter.c (output_gutter): cope with nil gutter contents.
14604
14605         * frame.c (Fset_frame_properties): add gutter docs.
14606
14607 2000-03-29  Andy Piper  <andy@xemacs.org>
14608
14609         * toolbar-msw.c (TBSTYLE_FLAT): add.
14610         (mswindows_output_toolbar): minor fiddling.
14611
14612 2000-03-29  Andy Piper  <andy@xemacs.org>
14613
14614         * gutter.c (output_gutter): force gutter size recalculation if
14615         what we are trying to display won't fit.
14616         (update_gutter_geometry): new function. A per-gutter version of
14617         update_frame_gutter_geometry.
14618         (update_frame_gutter_geometry): use it.
14619         (redraw_exposed_gutter): add extra debugging output.
14620
14621 2000-03-28  Mike Alexander  <mta@arbortext.com>
14622
14623         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
14624         (pdump_file_unmap): Implement it on Windows
14625         (pdump_file_get): Save alocated handles for pdump_file_unmap
14626
14627 2000-03-28  Andy Piper  <andy@xemacs.org>
14628
14629         * gui.c (get_gui_callback): treat Quit specially.
14630
14631 2000-03-27  Andy Piper  <andy@xemacs.org>
14632
14633         * glyphs.c (image_instantiate): be careful to check in the same
14634         way we assigned.
14635
14636 2000-03-27  Didier Verna  <didier@xemacs.org>
14637
14638         * config.h.in: define the proper SMART_INCLUDE macro.
14639         handle renaming of `foo_h_path' to `foo_h_file'.
14640
14641         * database.c: ditto.
14642
14643         * emacs.c: ditto.
14644
14645         * linuxplay.c: ditto.
14646
14647         * terminfo.c: ditto.
14648
14649         * tooltalk.h: ditto.
14650
14651 2000-03-27  Andy Piper  <andy@xemacs.org>
14652
14653         * glyphs-msw.c (mswindows_update_widget): make sure the widget
14654         gets updated whenever the face might have changed.
14655
14656 2000-03-26  Mike Alexander  <mta@arbortext.com>
14657
14658         * dumper.c (pdump_resource_free): Fix the comment.
14659
14660 2000-03-21  Olivier Galibert  <galibert@pobox.com>
14661
14662         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
14663
14664 2000-03-22  Mike Alexander  <mta@arbortext.com>
14665
14666         * dumper.c: Include Windows headers on Windows
14667         (pdump_resource_free): Add a body to the function
14668         (pdump_load): exe_name -> exe_path and add some comments.
14669
14670 2000-03-25  Mike Alexander  <mta@arbortext.com>
14671
14672         * gui.c (copy_gui_item_tree): Return a value in all cases
14673
14674 2000-03-21  Didier Verna  <didier@xemacs.org>
14675
14676         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
14677         lwlib/config.h.in.
14678         (SMART_INCLUDE): new macro.
14679         (POSTGRES_INCLUDE): new macro to include postgresql headers from
14680         the proper location.
14681
14682         * postgresql.c: use it.
14683
14684         * inline.c: ditto.
14685
14686 2000-03-24  Andy Piper  <andy@xemacs.org>
14687
14688         * gutter.c (redraw_exposed_gutters): must be "in display" when we
14689         do this.
14690
14691 2000-03-24  Andy Piper  <andy@xemacs.org>
14692
14693         * redisplay-output.c (compare_runes): use image_instance_changed
14694         to detect changes. Do not depend on glyphs_changed, only depend on
14695         dirtiness.
14696          (redisplay_output_layout): add debug messages.
14697         (compare_runes): ditto.
14698
14699         * glyphs.h: declare new functions.
14700         (struct Lisp_Image_Instance): remove percent and associated
14701         accessors.
14702
14703         * gui.h: declare new copying functions.
14704
14705         * gui.c (copy_gui_item_tree): new function.
14706         (copy_gui_item): new function.
14707         (gui_item_id_hash): revert to standard hash.
14708         (gui_item_hash): ditto.
14709         (gui_item_hash_internal): deleted.
14710         (mark_gui_item): mark value.
14711         (gui_item_add_keyval_pair): add value.
14712         (gui_item_init): ditto.
14713         (gui_add_item_keywords_to_plist): ditto.
14714         (gui_item_equal): ditto.
14715         (syms_of_gui): add Q_value.
14716
14717         * glyphs-x.c (x_progress_gauge_update): use pending items and
14718         value for setting the state.
14719         (x_update_widget): don't set items from pending here.
14720
14721         * glyphs-widget.c (update_widget): update items here.
14722         (progress_gauge_set_property): use items for storing value. Put
14723         new value in pending items.
14724
14725         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
14726         items for new value. Convert percent -> value.
14727         (mswindows_tab_control_update): don't update items here.
14728
14729         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
14730         (update_subwindow): ditto.
14731         (image_instance_changed): new function. Compare hash values and
14732         past and present widget items.
14733         (image_instantiate): We more careful about where we instantiate
14734         things.
14735         (image_instantiate): add error checking.
14736
14737         * gutter.c (syms_of_gutter): use -hook.
14738
14739 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
14740
14741         * console-tty.c (Fset_console_tty_input_coding_system): Use
14742         Qkeyboard.
14743         (Fset_console_tty_output_coding_system): Use Qterminal.
14744         (tty_init_console): Use Qkeyboard and Qterminal.
14745
14746 2000-03-21  Ben Wing  <ben@xemacs.org>
14747
14748         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
14749         From Mike Alexander <mta@arbortext.com>.
14750
14751 2000-03-21  Ben Wing  <ben@xemacs.org>
14752
14753         * event-msw.c (mswindows_need_event): Horrible kludge to fix
14754         process brokenness.  Proper implementation to come.
14755         * callproc.c:
14756         Rename call-process-internal to old-call-process-internal.
14757         New impl. in process.el.
14758
14759 2000-03-21  Martin Buchholz  <martin@xemacs.org>
14760
14761         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
14762
14763 2000-03-20  Andy Piper  <andy@xemacs.org>
14764
14765         * glyphs.c (full_list_hash): make hashes of the same elements in
14766         different orders return different values.
14767
14768 2000-03-20  Martin Buchholz <martin@xemacs.org>
14769
14770         * XEmacs 21.2.32 is released.
14771
14772 2000-03-20  Martin Buchholz  <martin@xemacs.org>
14773
14774         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
14775         (DFC_MALLOC_USE_CONVERTED_DATA):
14776         Add aliasing-safe casts to allow use with char* or unsigned char*
14777         lvalues.
14778
14779         * eldap.c (Fldap_open):
14780         (Fldap_search_basic):
14781         (Fldap_add):
14782         (Fldap_modify):
14783         Make C++-compilable.
14784         Make sure GCPRO'ed variables are initialized.
14785         Use temp variables to avoid repeated calls to Flength.
14786
14787 2000-03-16  Martin Buchholz  <martin@xemacs.org>
14788
14789         * sysfile.h:
14790         Make sure PATH_MAX is always defined.
14791         Include limits.h for PATH_MAX.
14792         Deprecate use of MAXPATHLEN.
14793
14794 2000-03-10  Martin Buchholz  <martin@xemacs.org>
14795
14796         * emacs.c: Add reinit_vars_of_fileio.
14797         * symsinit.h: Add reinit_vars_of_fileio.
14798         * fileio.c (reinit_vars_of_fileio): New.
14799         * fileio.c (Fmake_temp_name):
14800         Initialize temp_name random number from microseconds to make
14801         collisions even less likely.  Initialize always at process startup
14802         time.  (make-temp-name) used to return the same file name twice in
14803         a row when PDUMP.
14804         Random stylistic fiddling.
14805         Comment fixes.
14806
14807 2000-03-20  Andy Piper  <andy@xemacs.org>
14808
14809         * glyphs.c (image_instantiate): allow text glyphs to be
14810         instantiated in the minibuffer window.
14811
14812 2000-03-19  Andy Piper  <andy@xemacs.org>
14813
14814         * glyphs.c (image_instance_hash): be careful about which items we
14815         hash on.
14816
14817         * glyphs-widget.c (tab_control_set_property): record into pending
14818         items rather than the actual items.
14819
14820         * glyphs-x.c (x_update_widget): use pending items to update with.
14821
14822         * glyphs-msw.c (mswindows_tab_control_update): use pending items
14823         to update with.
14824
14825         * glyphs.c (mark_image_instance): mark pending items.
14826
14827         * window.c (Fset_window_configuration): record the buffer.
14828         (Fselect_window): totally revert previous change which breaks many
14829         things.
14830
14831 2000-03-18  Andy Piper  <andy@xemacs.org>
14832
14833         * glyphs-msw.c (mswindows_tab_control_update): force selected
14834         item.
14835
14836         * glyphs.c (image_instantiate): don't allow the minibuffer as a
14837         window domain cache, otherwise we get inconsistencies at
14838         startup. There is something fishy at startup which can lead to the
14839         minibuffer being the selected window when the gutter content is
14840         instantiated.
14841
14842         * gui.c (parse_gui_item_tree_list): add probably unnecessary
14843         gcpros.
14844         (parse_gui_item_tree_children): ditto.
14845         (parse_gui_item_tree_item): ditto.
14846
14847         * glyphs.c (Fupdate_widget_instances): return something.
14848
14849 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
14850
14851         * window.c (Fselect_window): Undo 2000-03-17 change.
14852
14853 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
14854
14855         * postgresql.c (Fpq_setenv): Remove this turkey when linking
14856         against v7.0 libraries.  Insta-coredump city until the postgres
14857         folks fix it.
14858
14859 2000-03-17  Andy Piper  <andy@xemacs.org>
14860
14861         * faces.c (complex_vars_of_faces): don't give the widget face an
14862         inherited background pixmap.
14863
14864         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
14865         selected item.
14866
14867         * event-stream.c (Fdispatch_non_command_events): return something.
14868
14869         * gutter.c (output_gutter): use widget face.
14870         (clear_gutter): ditto.
14871
14872         * NEWS: adjust again.
14873
14874         * window.c (Fselect_window): make sure this runs to completion to
14875         avoid oddities with Fset_window_configuration.
14876         (Fcurrent_window_configuration): in general do not save the
14877         minibuffer as the selected window.
14878
14879         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
14880
14881 2000-03-16  Olivier Galibert  <galibert@pobox.com>
14882
14883         * emacs.c (Frunning_temacs_p): Revert previous patch.
14884         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
14885
14886 2000-03-16  Andy Piper  <andy@xemacs.org>
14887
14888         * glyphs-x.c (x_tab_control_update): if no widget values then
14889         return.
14890
14891         * NEWS: update for new features.
14892
14893         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
14894         synthetic event to the native system.
14895         (reinit_vars_of_event_Xt): set force_event_pending to
14896         emacs_Xt_force_event_pending.
14897
14898         * events.h (struct event_stream): add force_event_pending.
14899
14900         * specifier.c (recompute_one_cached_specifier_in_window): add
14901         comment.
14902
14903         * redisplay.c (redisplay_frame): don't call
14904         update_frame_subwindows. Reset subwindow cachels when
14905         subwindows_changed, removing this was an optimization too far.
14906
14907         * redisplay-output.c (compare_runes): reorganize so that we catch
14908         glyph changes when we want them. Set optimize_output when this
14909         would help layouts.
14910         (redisplay_output_layout): remove frame_really_changed, use
14911         optimize_output instead.
14912
14913         * redisplay-msw.c (mswindows_output_display_block): reset
14914         optimize_output after outputting a glyph.
14915         * redisplay-x.c (x_output_display_block): ditto.
14916         * redisplay-tty.c (tty_output_display_block): ditto.
14917
14918         * gutter.c: (specifier_vars_of_gutter): use new spec changed
14919         functions.
14920         (gutter_specs_changed): do specific gutter positions.
14921         (top_gutter_specs_changed): new function. Only update the
14922         specified gutter specs.
14923         (bottom_gutter_specs_changed): ditto.
14924         (left_gutter_specs_changed): ditto.
14925         (right_gutter_specs_changed): ditto.
14926
14927         * gui.c (gui_item_hash_internal): new function, does a real hash.
14928         (gui_item_id_hash): use it.
14929         (gui_item_hash): hash the eval'ed gui_item.
14930
14931         * gui-x.c (popup_selection_callback): send an eval event to call
14932         Fupdate_widget_instances.
14933
14934         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
14935         to call Fupdate_widget_instances.
14936
14937         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
14938         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
14939
14940         * glyphs.c: (update_frame_subwindows): deleted.
14941         (Fupdate_widget_instances): new function for updating the dirty
14942         state of widgets that might have changed.
14943         (syms_of_glyphs): add Qupdate_widget_instances.
14944         (full_list_hash): hash a list completely.
14945         (image_instance_hash): use it for items and properties.
14946
14947         * frame-msw.c (mswindows_size_frame_internal): remove unused
14948         variable.
14949
14950         * faces.h (struct face_cachel): fix comment.
14951
14952         * event-stream.c (Fdispatch_non_command_events): new
14953         function. Process non-command events, forcing an event cycle
14954         beforehand.
14955         (syms_of_event_stream): declare.
14956         (event_stream_force_event_pending): new function. Force an event
14957         on the native event queue so that an event cycle will occur next
14958         time we check.
14959
14960         * event-msw.c:
14961         (struct ntpipe_shove_stream):
14962         (mswindows_enqueue_dispatch_event):
14963         (mswindows_dequeue_dispatch_event):
14964         (mswindows_cancel_dispatch_event):
14965         (mswindows_pump_outstanding_events):
14966         (mswindows_drain_windows_queue):
14967         (mswindows_handle_paint):
14968         (mswindows_wnd_proc):
14969         (mswindows_key_to_emacs_keysym):
14970         (get_process_input_waitable):
14971         (emacs_mswindows_delete_stream_pair): re-indent file.
14972         (mswindows_need_event): do not process further fds if the windows
14973         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
14974         fixes the 100% cpu problem.
14975         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
14976
14977 2000-03-15  Olivier Galibert  <galibert@pobox.com>
14978
14979         * alloc.h: New.
14980         * dumper.h: New.
14981         * dumper.c: New.
14982
14983         * emacs.c: Moved dump file searching to dumper.c.
14984         (Frunning_temacs_p): Fixed.
14985
14986         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
14987         last_lrecord_type_index_assigned.
14988
14989 2000-02-20  Olivier Galibert  <galibert@pobox.com>
14990
14991         * symsinit.h: Added reinit parameter to init_console_stream
14992         declaration.
14993
14994         * lisp.h: Added file parameter to pdump_load declaration.
14995
14996         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
14997         support.  Added dump file searching.
14998
14999         * config.h.in: Added EMACS_PROGNAME.
15000
15001         * console-stream.c (init_console_stream): Fix reinitialisation
15002         when running from temacs.
15003
15004         * alloc.c (pdump): Add id support.
15005         (pdump_load): Add file parameter and signature/id support.
15006
15007         * Makefile.in.in: Add full pdump support.
15008
15009 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15010
15011         * postgresql.c: Update documentation to reflect latest code
15012         status.
15013         (print_result): Show tuple counts in printed representation when
15014         appropriate.
15015         (Fpq_put_nbytes): MULE-ize.
15016         (Fpq_get_line_async): Ditto.
15017
15018 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15019
15020         * postgresql.c (Fpq_lo_import): Fix return value.
15021         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15022
15023 2000-03-13  Ben Wing  <ben@xemacs.org>
15024
15025         * alloc.c (pdump_load):
15026         Fix compile warning under mswin.
15027
15028 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15029
15030         * postgresql.c: Mule-ization, bug fixes.
15031         Use PG_CODING to encapsulate coding system name changes.
15032         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15033         (pg-coding-system): Create.
15034
15035         (Fpq_conn_defaults): Mule-ize.
15036         (Fpq_connectdb): Mule-ize & bug fix.
15037         (Fpq_connect_start): Mule-ize.
15038         (Fpq_set_client_encoding): Mule-ize.
15039         (Fpq_finish): Document `DEAD' connection status.
15040         (Fpq_clear): Ditto.
15041         (Fpq_pgconn): Mule-ize.
15042         (Fpq_exec): Mule-ize & bug fix.
15043         (Fpq_send_query): Ditto.
15044         (Fpq_get_result): Ditto.
15045         (Fpq_res_status): Mule-ize.
15046         (Fpq_result_error_message): Mule-ize.
15047         (Fpq_ntuples): fix comments.
15048         (Fpq_fname): Mule-ize.
15049         (Fpq_fnumber): Mule-ize.
15050         (Fpq_ftype): fix comments.
15051         (Fpq_get_value): Mule-ize.
15052         (Fpq_cmd_status): Ditto.
15053         (Fpq_cmd_tuples): Ditto.
15054         (Fpq_oid_value): Ditto.
15055         (Fpq_notifies): Ditto.
15056         (Fpq_lo_import): Ditto.
15057         (Fpq_lo_export): Ditto.
15058         (Fpq_get_line): Ditto.
15059         (Fpq_put_line): Mule-ize and bug fix.
15060         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15061
15062 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15063
15064         * postgresql.c (vars_of_postgresql): Mule-ize.
15065         (Fpq_conn_defaults): Ditto.
15066
15067 2000-03-12  Ben Wing  <ben@xemacs.org>
15068
15069         * alloc.c (Fmake_byte_code):
15070         * alloc.c (debug_string_purity_print):
15071         * alloc.c (pdump_backtrace):
15072         * alloc.c (pdump_get_indirect_count):
15073         * alloc.c (pdump_register_sub):
15074         * alloc.c (pdump_register_object):
15075         * alloc.c (pdump_register_struct):
15076         * alloc.c (pdump_dump_data):
15077         * alloc.c (pdump_reloc_one):
15078         Minor cleanups.
15079
15080         * console-msw.c:
15081         * console-msw.c (GetConsoleHwnd):
15082         * console-msw.c (msw_hide_console):
15083         * console-msw.c (msw_show_console):
15084         * console-msw.c (msw_ensure_console_buffered):
15085         * console-msw.c (msw_output_console_string):
15086         * console-msw.c (console_type_create_mswindows):
15087
15088         a) Added functions to manipulate the console window for use with
15089         shell support.
15090
15091         b) Added support for writing text to the console, which is now
15092         used under Windows when xemacs is not being run non-interactively,
15093         to write text that would otherwise be destined for stdout because
15094         under these circumstances, text written to stdout tends to
15095         disappear and not be seen.
15096
15097         * console-msw.h:
15098         * event-Xt.c:
15099         * event-Xt.c (x_event_to_emacs_event):
15100         * event-Xt.c (describe_event_window):
15101         * events-mod.h (XEMACS_MOD_CONTROL):
15102         * events.c:
15103         * events.c (Fmake_event):
15104         * events.c (character_to_event):
15105         * events.c (event_to_character):
15106         * events.c (format_event_object):
15107         * events.c (Fevent_modifiers):
15108         * events.h:
15109         * events.h (struct key_data):
15110         * events.h (struct button_data):
15111         * events.h (struct misc_user_data):
15112         * frame-x.c (Fcde_start_drag_internal):
15113         * frame-x.c (Foffix_start_drag_internal):
15114         * gpmevent.c (Freceive_gpm_event):
15115         * keymap.c:
15116         * keymap.c (bucky_sym_to_bucky_bit):
15117         * keymap.c (control_meta_superify):
15118         * keymap.c (make_key_description):
15119         * keymap.c (keymap_lookup_directly):
15120         * keymap.c (create_bucky_submap):
15121         * keymap.c (keymap_store):
15122         * keymap.c (define_key_check_and_coerce_keysym):
15123         * keymap.c (define_key_parser):
15124         * keymap.c (define_key_alternate_name):
15125         * keymap.c (Fdefine_key):
15126         * keymap.c (raw_lookup_key_mapper):
15127         * keymap.c (struct map_keymap_unsorted_closure):
15128         * keymap.c (map_keymap_unsorted_mapper):
15129         * keymap.c (map_keymap_sort_predicate):
15130         * keymap.c (map_keymap_sorted):
15131         * keymap.c (accessible_keymaps_mapper_1):
15132         * keymap.c (where_is_recursive_mapper):
15133         * keymap.c (describe_map_mapper):
15134         * keymap.c (describe_map_sort_predicate):
15135         * keymap.c (describe_map):
15136         * keymap.c (complex_vars_of_keymap):
15137         And a number of other files, the key modifier preprocessor
15138         constants that xemacs uses have names that conflict with constants
15139         defined under MS Windows for other purposes, so they were renamed
15140         to begin with the prefix XEMACS_. The variables that hold such
15141         modifiers were changed to consistently be of type int to fix
15142         various compile warnings.
15143
15144         * console.c (complex_vars_of_console):
15145         * device.c:
15146         * device-msw.c:
15147         * device-msw.c (mswindows_finish_init_device):
15148         * device-msw.c (msw_get_workspace_coords):
15149         * device-msw.c (mswindows_device_system_metrics):
15150         and various other files, added support for a new
15151         device property called offset-workspace which returns the position
15152         of the upper left corner of the workspace area and goes along with
15153         the existing size-workspace property.
15154
15155         * dialog-msw.c:
15156         * dialog-msw.c (push_bufbyte_string_as_unicode):
15157         * dialog-msw.c (mswindows_popup_dialog_box):
15158         Added support for XEmacs-style accelerator specifications in
15159         button text.  Note: I didn't add support for this under X Windows,
15160         and somebody needs to do this.
15161
15162         * dialog.c:
15163         * dialog.c (Fpopup_dialog_box):
15164         Documented the support for accelerators that was just mentioned.
15165
15166         editfns.c (get_home_directory): Changed behavior under Windows
15167         when HOME not defined; former behavior was irretrievably broken.
15168
15169         * emacs.c:
15170         * emacs.c (main_1):
15171         * emacs.c (main):
15172         * minibuf.c (clear_echo_area_internal):
15173         * minibuf.c (echo_area_append):
15174         * print.c:
15175         * print.c (std_handle_out_external):
15176         * print.c (std_handle_out_va):
15177         * print.c (fatal):
15178         * print.c (write_string_to_stdio_stream):
15179         * print.c (output_string):
15180         * print.c (debug_print):
15181         * print.c (debug_backtrace):
15182         * print.c (debug_short_backtrace):
15183         Cleaned up the code that prints text to stdout so that this can be
15184         changed to output into a console window instead under MS Windows,
15185         as described above.
15186
15187         * eval.c:
15188         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15189         * eval.c (internal_catch):
15190         * eval.c (unwind_to_catch):
15191         * eval.c (throw_or_bomb_out):
15192         * eval.c (condition_case_1):
15193         * eval.c (signal_1):
15194         * eval.c (check_error_state_sanity):
15195         * eval.c (call_with_suspended_errors_1):
15196         * eval.c (call_with_suspended_errors):
15197         * eval.c (reinit_vars_of_eval):
15198         Added code to catch throw loops and check for a pesky bug that may
15199         be gone now.
15200
15201         * event-msw.c:
15202         * event-msw.c (key_needs_default_processing_p):
15203         * event-msw.c (mswindows_wnd_proc):
15204         * event-msw.c (mswindows_modifier_state):
15205         * event-msw.c (emacs_mswindows_quit_p):
15206         * event-msw.c (vars_of_event_mswindows):
15207         a) Added support for using the alt key to select menu items as is
15208         standard under MS Windows.  This is controlled using the variable
15209         menu-accelerator-enabled, just like under X Windows.  There is an
15210         option on the options menu to turn this support on.  I really
15211         think that it should be on by default under Windows, but I'm not
15212         going to make this change yet.
15213
15214         b)  Added support for dynamic display size changes under Windows.
15215
15216         * event-stream.c:
15217         * event-stream.c (maybe_echo_keys):
15218         * event-stream.c (Fnext_event):
15219         * event-stream.c (command_builder_find_leaf):
15220         * event-stream.c (lookup_command_event):
15221         * event-stream.c (execute_command_event):
15222         * event-stream.c (pre_command_hook):
15223         * event-stream.c (post_command_hook):
15224         * event-stream.c (syms_of_event_stream):
15225         * event-stream.c (vars_of_event_stream):
15226         * event-stream.c (complex_vars_of_event_stream):
15227         * events.h (struct command_builder):
15228
15229         a) Tried to clean up a little bit the horribly written x-specific
15230         accelerator code that crept into this file.  I moved this code
15231         into menubar-x.c where it belongs. I also needed to move the
15232         command builder structure into the file events.h because it is
15233         accessed directly by this accelerator code.  What I didn't do, but
15234         which should be done at some point, is to properly abstract this
15235         code using device methods instead of the kludgy way that it
15236         currently hooks into the event code.
15237
15238         b) Added the lisp variables this-command-properties and
15239         last-command- properties, which should be used to synchronize two
15240         adjacent commands in preference to playing games with the variable
15241         this-command, which is typically what happens.
15242
15243         c) Added some slightly nasty code to hook into the lisp support
15244         for shifted- motion-key selection.  This is actually necessary for
15245         somewhat complicated reasons, which are described in
15246         simple.el. (NB: I think the proper thing would be to have the code
15247         that calls the pre and post command hooks also call out to generic
15248         lisp functions in simple.el, where all built-in stuff could be
15249         added.  I will think about this more.)
15250
15251         * event-unixoid.c (poll_fds_for_input):
15252         * lread.c (readchar):
15253         * redisplay-tty.c (tty_clear_frame):
15254         * redisplay-x.c (x_get_gc):
15255         * signal.c (interrupt_signal):
15256         And a whole bunch of other files: fixed up places that printed
15257         directly to stderr to instead call the function stderr_out so that
15258         the changes I made under Windows work correctly.
15259
15260         * filemode.c (mode_string):
15261         Warning fixes.
15262
15263         * frame-msw.c:
15264         * frame-msw.c (mswindows_size_frame_internal):
15265         Fixed the computation of frame size and position to keep the frame
15266         within the workspace area, rather than within the physical
15267         dimensions of the screen, so that the frame doesn't overlap window
15268         manager decorations, such as the start menu and toolbar, typically
15269         at the bottom of the screen.
15270
15271         * frame.c (vars_of_frame):
15272         Changed the default frame title format under MS Windows to consist
15273         of buffername-XEmacs, which is standard under MS Windows.  I think
15274         it might be a good idea to change this everywhere because I think
15275         it is superior to the current frame title format, but this is the
15276         kind of change that is likely to cause some people to get annoyed,
15277         so I'm not making it.
15278
15279         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15280
15281         * gui-msw.c (mswindows_handle_gui_wm_command):
15282         Fixed compile warnings.
15283
15284         * gui-x.c:
15285         * gui-x.c (strdup_and_add_accel):
15286         * gui-x.c (button_item_to_widget_value):
15287         * gui-x.h:
15288         Added code to automatically put an accelerator onto the beginning
15289         of menu items that don't have one as is now the standard, and is
15290         described more later.  Also fixed things so that the menu item
15291         name can be an evaluated expression, again a new standard.
15292
15293         * gui.c:
15294         * gui.c (gui_item_add_keyval_pair):
15295         * gui.c (make_gui_item_from_keywords_internal):
15296         * gui.c (gui_add_item_keywords_to_plist):
15297         * gui.c (gui_item_accelerator):
15298         * gui.c (gui_name_accelerator):
15299         * gui.c (gui_item_included_p):
15300         * gui.c (gui_item_display_flush_left):
15301         * gui.c (gui_item_display_flush_right):
15302         * gui.c (parse_gui_item_tree_item):
15303         * gui.c (parse_gui_item_tree_children):
15304         * gui.c (parse_gui_item_tree_list):
15305         Mule-ized.  Cleanup.  GCPRO addition.
15306
15307         * line-number.c (buffer_line_number):
15308         * lisp.h:
15309         * lisp.h (EMACS_INT_MAX):
15310         Added the manifest constant EMACS_INT_MIN corresponding to the
15311         existing constant EMACS_INT_MAX.  This is partially to fix compile
15312         warnings under Windows, and partly for cleanliness.
15313
15314         * menubar-msw.c:
15315         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15316         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15317         * menubar-msw.c (displayable_menu_item):
15318         * menubar-msw.c (populate_menu_add_item):
15319         * menubar-msw.c (populate_or_checksum_helper):
15320         * menubar-msw.c (populate_menu):
15321         * menubar-msw.c (update_frame_menubar_maybe):
15322         * menubar-msw.c (prune_menubar):
15323         * menubar-msw.c (msw_char_is_accelerator):
15324         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15325         * menubar-msw.c (mswindows_handle_wm_command):
15326         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15327         * menubar-msw.c (mswindows_handle_wm_initmenu):
15328         * menubar-msw.c (mswindows_update_frame_menubars):
15329         * menubar-msw.c (mswindows_free_frame_menubars):
15330         * menubar-msw.c (mswindows_popup_menu):
15331         Fixed a bug in handling accelerators where an extra character
15332         would be displayed in the menu item.  Also generalized the
15333         function displayable_menu_item because it is now used by the
15334         dialog box code as well.  And finally, added code in the functions
15335         that create the menubar to extract a list of accelerators for the
15336         top level menubar, which is used in the event code to determine
15337         whether a particular alt-key combination should be used to invoke
15338         a menu item, or should be passed through to access the standard
15339         XEmacs keymap binding for this key combination.
15340
15341         Much needed GCPROing.
15342
15343         * menubar-x.c:
15344         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15345         * menubar-x.c (menu_item_descriptor_to_widget_value):
15346         * menubar-x.c (restore_in_menu_callback):
15347         * menubar-x.c (x_popup_menu):
15348         * menubar-x.c (menu_move_up):
15349         * menubar-x.c (menu_move_down):
15350         * menubar-x.c (menu_move_left):
15351         * menubar-x.c (menu_move_right):
15352         * menubar-x.c (menu_select_item):
15353         * menubar-x.c (command_builder_operate_menu_accelerator):
15354         * menubar-x.c (menu_accelerator_junk_on_error):
15355         * menubar-x.c (command_builder_find_menu_accelerator):
15356         * menubar-x.c (Faccelerate_menu):
15357         * menubar.h:
15358         Moved a whole bunch of code here that was previously in
15359         event-stream.c as described above.  There is also code connected
15360         to the new standard of adding an accelerator to the beginning of
15361         menu items that don't have one as described above and below.
15362
15363         * menubar.c:
15364         * menubar.c (menu_parse_submenu_keywords):
15365         * menubar.c (Fmenu_find_real_submenu):
15366         * menubar.c (Fnormalize_menu_item_name):
15367         * menubar.c (syms_of_menubar):
15368         * menubar.c (vars_of_menubar):
15369         * menubar.c (complex_vars_of_menubar):
15370
15371         a) Cleaned up a bunch of documentation and improved it.
15372
15373         b) XEmacs now automatically adds an accelerator onto the beginning
15374         of any menu items that don't have one.  I did this because there
15375         will inevitably be some menu items on the main menubar that don't
15376         have accelerators on them because the package that adds that
15377         particular menu item hasn't yet been fixed up to have accelerators
15378         in them and it looked rather strange to have some items with and
15379         some items without accelerators, especially since even in items
15380         without accelerators, you can, at least under windows, still
15381         access the item through an accelerator corresponding to the first
15382         character in the item's name.  If people don't like this behavior,
15383         I can add a variable to turn it off optionally, but I'm not sure
15384         this is a good idea because we really do need to have accelerators
15385         on all of the menu items, and if a package doesn't like the
15386         accelerators being put on the first character, then it should put
15387         the accelerators where they belong.
15388
15389         c) I made a behavior change, which is that the descriptor that
15390         specifies the text of the menu item, which formerly was just a
15391         string, can now also be an evaluated expression.  This makes this
15392         descriptor parallel with all of the others, which could also be
15393         evaluated expressions.  This also obviates the need for the
15394         keyword :label, which was previously listed in the documentation
15395         as unimplemented, and which was for the same purpose.
15396
15397         d) GCPROing.
15398
15399         * ntproc.c:
15400         * ntproc.c (new_child):
15401         * ntproc.c (sys_spawnve):
15402         * ntproc.c (find_child_console):
15403         * ntproc.c (sys_kill):
15404         Fixed compile warnings.  By the way, this file should really go
15405         away entirely, and this will happen as soon as Kirill makes his
15406         final round of process cleanups, which affect the function
15407         call-process.
15408
15409         * process-nt.c:
15410         * process-nt.c (struct nt_process_data):
15411         * process-nt.c (find_process_from_pid):
15412         * process-nt.c (send_signal_the_nt_way):
15413         * process-nt.c (enable_child_signals):
15414         * process-nt.c (find_child_console):
15415         * process-nt.c (send_signal_the_95_way):
15416         * process-nt.c (nt_finalize_process_data):
15417         * process-nt.c (ensure_console_window_exists):
15418         * process-nt.c (nt_create_process):
15419         * process-nt.c (nt_kill_child_process):
15420         * process-nt.c (nt_kill_process_by_pid):
15421         * process-nt.c (nt_open_network_stream):
15422         * process-nt.c (vars_of_process_nt):
15423         Copied over code from Emacs 20.5 to correctly send signals to sub-
15424         processes under Windows 95.  Also added code to automatically
15425         create and hide console window when a sub-process is created under
15426         Windows 95, which obviates the need for the separate runemacs.exe
15427         executable, and finally implemented some variables that were
15428         implemented in Emacs 20.5, but previously not in XEmacs.  These
15429         include mswindows- start-process-share-console and
15430         mswindows-start-process-inherit-error-mode. (Both of these only
15431         apply to Windows 95.)
15432
15433         * regex.c (regex_compile): Fixed a compile warning.
15434
15435         * select-msw.c:
15436         * select-msw.c (mswindows_own_selection):
15437         * select-msw.c (mswindows_get_foreign_selection):
15438         * select-msw.c (mswindows_disown_selection):
15439         * select-msw.c (console_type_create_select_mswindows):
15440         * select-msw.c (syms_of_select_mswindows):
15441         Cleaned up the file and implemented the device method
15442         selection_exists_p, which had accidentally been left out.  Also
15443         removed four lisp functions that were remnants from before the
15444         time when the selection code was properly device abstracted.
15445         These functions are no longer needed because there are generic
15446         equivalents, and because they were added recently and don't exist
15447         in FSF Emacs, I don't think there's any problem with just deleting
15448         them.
15449
15450         * sysdep.c:
15451         * sysdep.c (sys_subshell):
15452         Fixed a compile warning, although in this case there's probably
15453         something wrong with this code, and it ought to be looked into
15454         more thoroughly by somebody who understands it.
15455
15456         * window.c:
15457         * window.c (Fwindow_text_area_height):
15458         * window.c (Fwindow_width):
15459         * window.c (Fwindow_full_width):
15460         * window.c (Fwindow_pixel_width):
15461         * window.c (debug_print_window):
15462         * window.c (syms_of_window):
15463         Added functions window-text-area-height and window-full-width,
15464         which are functions for returning various width and height
15465         characteristics of a window. (One of these functions is necessary
15466         for making the file dialog box work correctly, and the other one
15467         was added for completeness.)  Also added a table to the
15468         documentation for window-height which describes the entire scheme
15469         for accessing width and height characteristics of a window.
15470
15471 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15472
15473         * nt.c (fstat): Added a comment for another problem with
15474         non-encapsulated [f]stat(), reported by Adrian Aichner
15475         <aichner@ecf.teradyne.com>.
15476
15477 2000-03-11  Andy Piper  <andy@xemacs.org>
15478
15479         * window.c (make_dummy_parent): initialize subwindow instance
15480         cache.
15481         (Fset_window_configuration): zero extent_modiff.
15482
15483 2000-03-10  Andy Piper  <andy@xemacs.org>
15484
15485         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15486         more changes can be triggered.
15487         (Fredisplay_frame): ditto.
15488         (Fredraw_device): ditto.
15489         (Fredisplay_device): ditto.
15490         (redisplay_frame): make non-static.
15491         (redisplay_frame): call update_frame_gutter_geometry outside of
15492         display proper.
15493
15494         * gutter.h: declare update_frame_gutter_geometry.
15495
15496         * redisplay.h: declare redisplay_frame.
15497
15498         * gutter.c (update_frame_gutter_geometry): move geometry changes
15499         in update_frame_gutters here. Geometry changes can only occur
15500         outside of redisplay.
15501         (update_frame_gutters): remove geometry change code.
15502         (Fredisplay_gutter_area): make sure that we are in display when we
15503         update and that we have flushed any size changes.
15504
15505 2000-03-11  Andy Piper  <andy@xemacs.org>
15506
15507         * alloc.c (pdump_dump_data): remove i & count shadows.
15508
15509 2000-02-27  Mike Alexander  <mta@arbortext.com>
15510
15511         * sysdep.h: Declare pdump_read_file
15512
15513         * sysdep.c (pdump_read_file): New function
15514
15515         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15516         dump data
15517
15518 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15519
15520         * lrecord.h: add `lrecord_type_pgsetenv'.
15521
15522 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15523
15524         * symsinit.h: declare (vars|syms)_of* functions.
15525         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15526
15527 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15528
15529         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15530
15531         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15532         GCCs.
15533
15534         * emacs.c (main_1): Call postgres initialization code.
15535
15536         * postgresql.h: New file.  PostgreSQL RDBMS support.
15537         * postgresql.c: New file.
15538
15539 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15540
15541         * redisplay-output.c (redisplay_output_display_block): Disable
15542         redundant code.
15543
15544 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15545
15546         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15547         (Fcanna_henkan_next): Ditto.
15548         (Fcanna_bunsetu_henkou): Ditto.
15549         (Fcanna_henkan_kakutei): Ditto.
15550         (Fcanna_henkan_end): Ditto.
15551         (Fcanna_henkan_quit): Ditto.
15552         (Fcanna_henkan_next): Set retun value correctly.
15553         (c2mu): Use unsigned char instead of signed char.
15554
15555 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15556
15557         * emacs.c (main_1): Always call syms_of_gui.
15558         * inline.c: include gui.h
15559
15560 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15561
15562         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15563         converted to Lisp_Object.
15564         (Qtop_bottom): New variable.
15565         (syms_of_redisplay): Initialize it.
15566         * redisplay.h (Vvisible_bell): Ditto.
15567         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15568         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15569         only flash top and bottom.
15570
15571 2000-03-08  Andy Piper  <andy@xemacs.org>
15572
15573         * buffer.c (Frename_buffer): record new buffer name the right way.
15574
15575 2000-03-08  Andy Piper  <andy@xemacs.org>
15576
15577         * glyphs.c (update_subwindow): increase hash depth so that widget
15578         items get picked up properly.
15579
15580         * redisplay-output.c (compare_runes): increase hash depth so that
15581         widget items get picked up properly.
15582
15583 2000-03-08  Andy Piper  <andy@xemacs.org>
15584
15585         * gutter.c (output_gutter): add some debug.
15586
15587         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15588         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15589         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15590
15591         * redisplay-output.c (compare_runes): use display_hash to
15592         determine if glyphs really are not the same.
15593
15594         * glyphs.c (update_subwindow): check display_hash to see if
15595         anything really needs to be updated. If not then do
15596         nothing. Record the display_hash after updating.
15597         (image_instance_equal): compare the image_instance face also.
15598
15599 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15600
15601         * redisplay.h: Fix comment style.
15602
15603 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15604
15605         * consle-msw.h (struct mswindows_frame):
15606         Added new member paint_pending to indicate whether a WM_PAINT
15607         magic event has been queued for this frame.
15608
15609         * event-msw.c (mswindows_drain_windows_queue):
15610         Don't queue a WM_PAINT magic event if one is already queued.
15611         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15612
15613         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15614
15615 2000-03-07  Didier Verna  <didier@xemacs.org>
15616
15617         * dired.c: #include `regex.h' after `sysfile.h'.
15618
15619 2000-03-06  Martin Buchholz  <martin@xemacs.org>
15620
15621         * sound.c (init_nas_sound): Fix compiler warning.
15622
15623         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
15624         (FREE_STRUCT_P):
15625         (MARK_STRUCT_AS_FREE):
15626         (MARK_STRUCT_AS_NOT_FREE):
15627         Make `gcc -fstrict-aliasing' work properly.
15628
15629 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15630
15631         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
15632         (mswindows_delete_device): Call CoUnnitialize().
15633
15634         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
15635
15636 2000-02-25    <CraigL@DyCon.com>
15637
15638         * process-nt.c: MinGW now has <shellapi.h>, but still needs
15639         <errno.h>.
15640
15641         * sysdep.c: This extern declaration for environ prevents MinGW
15642         from finding the variable in CRTDLL.DLL.
15643
15644         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
15645         windows headers.
15646         (SHGFI_EXETYPE): ..
15647         (WM_MOUSEWHEEL): ..
15648         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
15649         definitions.
15650         (MMRESULT): Removed, now defined in cygwin's windows headers.
15651         (TIMECAPS): ..
15652         (uid_t,gid_t,pid_t,ssize_t): ..
15653         (_timeb): Removed, MinGW defines both _timeb and timeb.
15654         (HAVE_H_ERRNO): Added.
15655         (HAVE_TZNAME): Added, configure is not detecting this.
15656
15657 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
15658
15659         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
15660         * syntax.c (syntax_match): Use it.
15661
15662         * cmds.c: Import auto-fill-chars from FSF Emacs.
15663         (Vauto_fill_chars): New variables.
15664         (internal_self_insert): Check Vauto_fill_chars.
15665         (vars_of_cmds):
15666         Declare auto-fill-chars as a Lisp variable and initialize it.
15667
15668 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15669
15670         * fileio.c (Fmake_symbolic_link):
15671         (Ffile_symlink_p):
15672         Run handlers even if local machine doesn't have symlinks.
15673
15674 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15675
15676         * event-msw.c (mswindows_drain_windows_queue):
15677         Don't generate paint magic events for non-XEmacs frames.
15678
15679 2000-03-05  Andy Piper  <andy@xemacs.org>
15680
15681         * redisplay.c (redisplay_frame): generate_displayable_area and
15682         friends assumes that we are not in GC, we therefore have to make
15683         sure that this doesn't happen.
15684
15685         * gutter.c (calculate_gutter_size): generate_displayable_area
15686         assumes that we are not in GC, we therefore have to make sure that
15687         this doesn't happen.
15688
15689 2000-03-05  Martin Buchholz  <martin@xemacs.org>
15690
15691         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
15692
15693 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15694
15695         * redisplay.c (regenerate_window): Make sure we set a sane value
15696         for end_pos even if we jump out of the loop.
15697         (regenerate_window): Answer Ben's question :-).
15698         (start_end_of_last_line): Add may_error argument.
15699         (start_of_last_line):
15700         (end_of_last_line): Pass may_error = 0.
15701         (end_of_last_line_may_error): New function.
15702         (pixel_to_glyph_translation): Use it, so we don't crash in
15703         event_to_glyph.
15704
15705 2000-03-04  Andy Piper  <andy@xemacs.org>
15706
15707         * window.h (struct window): add gutter_extent_modiff.
15708
15709         * window.c (allocate_window): zero out gutter_extent_modiff.
15710
15711         * redisplay.h: declare sync_display_line_structs.
15712
15713         * redisplay.c (add_glyph_rune): add a better comment.
15714
15715         * redisplay-output.c (sync_display_line_structs): made non-static.
15716         (compare_runes): remove unneccesary glyph cachel access.
15717
15718         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
15719
15720         * gutter.c (output_gutter): don't output the gutter if extent
15721         changes only involve extents in buffers. use 4 sets of display
15722         lines.
15723         (gutter_extent_signal_changed_region_maybe): new function. Mark
15724         extents in gutters as changed.
15725         (update_frame_gutters): use 4 sets of display lines.
15726         (reset_gutter_display_lines): ditto.
15727         (free_frame_gutters): ditto.
15728         (redraw_exposed_gutter): force output of gutters.
15729
15730         * frame.h (struct frame): add 4 sets of gutter display lines.
15731
15732         * extents.c: (extent_changed_for_redisplay): signal changes to
15733         extents in strings in the gutter as well as extents in buffers.
15734
15735 2000-03-02  Andy Piper  <andy@xemacs.org>
15736
15737         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
15738
15739         * frame.c (Fmake_frame): make sure the gutters get initialized
15740         after the frame is visible.
15741         (set_frame_selected_window): re-arrange compilation macros a
15742         little.
15743         (change_frame_size_1): mark gutters changed.
15744
15745         * device.c (Fset_device_class): mark gutters changed.
15746
15747 2000-03-01  Andy Piper  <andy@xemacs.org>
15748
15749         * window.c (window_top_frame_gutter_height): deleted.
15750         (window_bottom_frame_gutter_height): ditto.
15751         (window_left_frame_gutter_height): ditto.
15752         (window_right_frame_gutter_height): ditto.
15753         (window_top_gutter_height): don't use them.
15754         (window_bottom_gutter_height): ditto.
15755         (window_left_gutter_width): ditto.
15756         (window_right_gutter_width): ditto.
15757         (Fsplit_window): ditto.
15758         (Fwindow_pixel_edges): don't use border dimensions here.
15759
15760         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
15761         (update_scrollbar_instance): ditto.
15762
15763         * redisplay.c (generate_modeline): don't take gutters into account.
15764         (generate_modeline): ditto.
15765         (redisplay_frame): small gutter display optimization.
15766
15767         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
15768
15769         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
15770         gutters into account.
15771
15772         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
15773         for window position and type.
15774
15775         * gutter.c (get_gutter_coords): fix for frame gutters.
15776         (update_frame_gutters): update frame geometry if the gutters have
15777         changed.
15778         (init_frame_gutters): record current gutter geometries.
15779
15780         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
15781         var.
15782         (mswindows_widget_instantiate): ditto.
15783
15784         * frame.h (struct frame): add current_gutter_bounds.
15785
15786         * frame.c (change_frame_size_1): position window and minibuffer
15787         appropriately taking into account the frame gutters.
15788
15789         * frame-x.c: (x_initialize_frame_size): take into account the
15790         frame gutters.
15791
15792 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15793
15794         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
15795
15796 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15797
15798         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
15799
15800 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15801
15802         * file-coding.c (reset_decoding_stream): Clear previous
15803         detection state when autodetect.
15804
15805 2000-02-29  Didier Verna  <didier@xemacs.org>
15806
15807         * extents.c (set_extent_glyph_1): don't require extents to be
15808         attached.
15809
15810 2000-02-27  Andy Piper  <andy@xemacs.org>
15811
15812         * gutter.c (Fset_default_gutter_position): don't default left and
15813         right gutter visibility to t.
15814         (Fset_default_gutter_position): run
15815         default-gutter-position-changed-hook.
15816         (syms_of_gutter): add default-gutter-position-changed-hook.
15817
15818 2000-02-26  Andy Piper  <andy@xemacs.org>
15819
15820         * specifier.c (Fmake_specifier): add gutter references.
15821
15822         * gutter.h (RAW_WINDOW_GUTTER): new macro.
15823
15824         * lisp.h: declare Fvalid_plist_p.
15825
15826         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
15827         as changed.
15828         (default_gutter_visible_p_changed_in_window): invalidate gutter as
15829         well as its visibility so that it gets reconstructed.
15830         (construct_window_gutter_spec): new function. Construct a string
15831         to be displayed in the gutter from a plist of strings. Take care
15832         to only use elements that are declared as visible.
15833         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
15834         WINDOW_GUTTER.
15835         (gutter_validate): allow plists of strings in the specifier.
15836         (gutter_specs_changed): construct the real_gutter from the gutter
15837         specs using construct_window_gutter_spec.
15838         (gutter_visible_validate): gutter-visible is a new specifier type.
15839         (Fgutter_visible_specifier_p): new function for the new specifier.
15840         (syms_of_gutter): declare gutter-visible and
15841         Fgutter_visible_specifier_p.
15842         (specifier_type_create_gutter): intitalize new gutter-visible
15843         specifier.
15844         (reinit_specifier_type_create_gutter): ditto.
15845         (specifier_vars_of_gutter): use new specifier type for gutter
15846         visibility.
15847         (init_frame_gutters): construct real_gutter correctly.
15848         (Fgutter_specifier_p): beef up documentation.
15849         (Fgutter_size_specifier_p): ditto.
15850
15851         * winslots.h: add real_gutter slots.
15852
15853 2000-02-25  Andy Piper  <andy@xemacs.org>
15854
15855         * device-msw.c: Be kind to older cygwin versions. From Raymond
15856         Toy <toy@rtp.ericsson.se>.
15857
15858         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
15859         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
15860
15861 2000-02-25  Martin Buchholz  <martin@xemacs.org>
15862
15863         * elhash.c (MARK_OBJ): Practice macro hygiene.
15864
15865 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15866
15867         * miscplay.c: s/__inline__/inline/g;
15868         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
15869         (get_device_compdc): INLINE ==> static inline
15870         * *.[ch]: Change INLINE to INLINE_HEADER globally.
15871         find -name '*.h' | \
15872         xargs global-replace \
15873         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
15874
15875 2000-02-25  Andy Piper  <andy@xemacs.org>
15876
15877         * window.c (window_top_frame_gutter_height): new function.
15878         (window_top_window_gutter_height): ditto.
15879         (window_top_gutter_height): use them.
15880         (window_bottom_frame_gutter_height): new function.
15881         (window_bottom_window_gutter_height): ditto.
15882         (window_bottom_gutter_height): use them.
15883         (window_left_window_gutter_width): new function.
15884         (window_left_frame_gutter_width): ditto.
15885         (window_left_gutter_width): use them.
15886         (window_right_window_gutter_width): new function.
15887         (window_right_frame_gutter_width): ditto.
15888         (window_right_gutter_width): use them.
15889         (window_pixel_height): new function. calulate window pixel height
15890         with frame gutter involvement.
15891         (Fsplit_window): calculate new sizes taking frame gutters into
15892         account.
15893         (window_char_height_to_pixel_height): don't include frame gutters.
15894         (window_char_height): use window_pixel_height.
15895         (window_pixheight): rename from window_pixel_height.
15896         (change_window_height): use it.
15897         (window_pixel_height_to_char_height): don't include frame gutters.
15898         (window_char_width_to_pixel_width): ditto.
15899
15900 2000-02-25  Andy Piper  <andy@xemacs.org>
15901
15902         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
15903         if it is.
15904
15905 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15906
15907         * alloc.c (staticpro):
15908         (staticpro_nodump):
15909         (dumpstruct):
15910         (dumpopaque):
15911         (pdump_wire):
15912         (pdump_wire_list):
15913         (compact_string_chars):
15914         (pdump_dump_wired):
15915         Convert:  if (foo) abort();  ==>  assert (! foo);
15916
15917         * eldap.c (Fldap_search_basic):
15918         (Fldap_add):
15919         (Fldap_modify):
15920         (Fldap_delete):
15921         Fix compiler warnings, and possible crashes if (random) return
15922         value were to be used.
15923
15924 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15925
15926         * device-msw.c: Workaround ResetDC failure.
15927
15928         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
15929         applying a devmode.
15930
15931         * redisplay-msw.c (get_frame_dc): Added start_page_p.
15932         (mswindows_text_width): Do not start printer page.
15933
15934         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
15935
15936         * glyphs-msw.c: Added image methods to msprinter console and
15937         msprinter-specific image instantiation.
15938
15939 2000-02-20  Mike Alexander  <mta@arbortext.com>
15940
15941         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
15942         to avoid crashes when selection-sets-clipboard is on
15943         (mswindows_own_selection): ditto
15944
15945 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15946
15947         * glyphs-msw.c:
15948         * redisplay-msw.c (get_frame_dc):
15949         (get_frame_compdc):
15950         * console-msw.h:
15951         * device-msw.c (mswindows_init_device):
15952         (mswindows_delete_device):
15953         (msprinter_init_device):
15954         (msprinter_delete_device):
15955         * frame-msw.c (mswindows_init_frame_1):
15956         (mswindows_delete_frame):
15957         (msprinter_init_frame_3):
15958         (msprinter_delete_frame): Move compatible DC to device object from
15959         frame object, for both mswindows and msprinter. Only one at a time
15960         is needed, it is a real waste to have one per frame!
15961
15962 2000-02-23  Andy Piper  <andy@xemacs.org>
15963
15964         * glyphs.c: add dynamic width and height elements.
15965         (image_instance_equal): ditto.
15966
15967         * glyphs-widget.c (widget_query_geometry): calculate width and
15968         height dynamically if required.
15969         (initialize_widget_image_instance): initialize dynamic dimensions.
15970         (widget_instantiate): pick-up dynamic dimensions.
15971
15972         * glyphs.h (struct Lisp_Image_Instance): add width and height for
15973         dynamic determination. Add appropriate macros.
15974
15975         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
15976         dimensions safe.
15977         (WINDOW_GUTTER_SIZE): ditto.
15978         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
15979
15980         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
15981         inline.
15982         (get_frame_dc): ditto.
15983
15984         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
15985         here.
15986
15987 2000-02-23  Martin Buchholz <martin@xemacs.org>
15988
15989         * XEmacs 21.2.31 is released.
15990
15991 2000-02-22  Ben Wing <ben@xemacs.org>
15992
15993         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
15994
15995 2000-02-22  Andy Piper  <andy@xemacs.org>
15996
15997         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
15998
15999 2000-02-21  Mike Sperber <mike@xemacs.org>
16000
16001         * .dbxrc:
16002         * .gdbinit:
16003         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16004         variables.
16005
16006 2000-02-21  Mike Sperber <mike@xemacs.org>
16007
16008         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16009
16010 2000-02-21  Martin Buchholz <martin@xemacs.org>
16011
16012         * XEmacs 21.2.30 is released.
16013
16014 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16015
16016         Performance hacking.
16017         * *.c (syms_of_*):
16018         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16019         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16020         * emacs.c (main_1):
16021         * lisp.h (DEFUN):
16022         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16023         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16024         * symeval.h (DEFVAR_SYMVAL_FWD):
16025         * symbols.c (guts_of_unbound_marker):
16026         Make all c_readonly objects also lisp_readonly and marked for life.
16027         * lrecord.h (struct lrecord_implementation):
16028         Document flags better.
16029         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16030         * lrecord.h (DECLARE_LRECORD):
16031         * lrecord.h (XSETRECORD):
16032         * lrecord.h (RECORDP):
16033         * lrecord.h (RECORD_TYPEP):
16034         * lrecord.h (RECORD_MARKER): New.
16035         * lrecord.h (error_check_*):
16036         * lrecord.h (CONCHECK_NONRECORD):
16037         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16038         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16039         * lrecord.h (set_lheader_implementation):
16040         * lrecord.h (enum lrecord_type): New.
16041         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16042         * alloc.c (disksave_object_finalization_1):
16043         * alloc.c (mark_object):
16044         * alloc.c (lrecord_type_index):
16045         * alloc.c (tick_lcrecord_stats):
16046         * alloc.c (Fgarbage_collect):
16047         * alloc.c (init_alloc_once_early):
16048         * alloc.c (pdump_load):
16049         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16050         * alloc.c (lrecord_type_index): Delete.
16051         Make lisp object type indexes be constant.
16052           Makes (byte-compile) 5% faster.
16053         Put all marker functions into their own array.
16054           Makes (garbage-collect) 5% faster.
16055         Optimize SYMBOL_VALUE_MAGIC_P.
16056           Makes (byte-compile) 2-3% faster.
16057         * config.h.in (gc_checking_assert): New.
16058         * alloc.c: Use gc_checking_assert().
16059         * .dbxrc: Make compatible with new object type implementation.
16060         * .gdbinit: Make compatible with new object type implementation.
16061         * alloc.c: Delete all symbols defined only for debugging, such as
16062         Lisp_Type_Vector and lrecord_charset.
16063
16064 2000-02-21  Andy Piper  <andy@xemacs.org>
16065
16066         * gui-msw.c (Fmswindows_shell_execute): fix file location
16067         problems.
16068
16069         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16070         unshowing so that set_window_buffer doesn't undo
16071         kill_buffer_hook's hard work.
16072
16073         * glyphs-widget.c (tab_control_query_geometry): don't count the
16074         first item when calculating geometry.
16075
16076         * glyphs.c (map_subwindow): remove redundant code.
16077         (update_frame_subwindows): be more circumspect about when to
16078         update subwindows.
16079
16080         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16081         when items haven't changed. Update faces if faces have changed as
16082         well as just the widget face.
16083         (x_tab_control_update): Update faces if faces have changed as well
16084         as just the widget face.
16085
16086 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16087
16088         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16089         registration.
16090         (build_syscolor_string): Use mswindows_color_to_string to try to
16091         get a named color.
16092         (mswindows_device_system_metrics): Reverse the foreground and
16093         background colors so that they match the documentation.
16094
16095         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16096         they match the default Windows palette.
16097         (mswindows_color_to_string): New function.
16098
16099 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16100
16101         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16102
16103 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16104
16105         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16106         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16107
16108         * symbols.c (init_symbols_once_early): Removed obsolete
16109         DATA_SEG_BITS related kludge.
16110         (defvar_magic): Ditto.
16111
16112         * malloc.c: Removed obsolete DATA_SEG_BITS
16113         * ralloc.c: Ditto.
16114         * mem-limits.h: Ditto.
16115
16116         * Makefile.in.in: Removed obsolete HAVE_SHM
16117         * emacs.c: Ditto.
16118
16119 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16120
16121         *  device-msw.c (mswindows_delete_device): Free DDE string
16122         handles.
16123
16124 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16125
16126         * keymap.c (get_keyelt):
16127         * unexnt.c (unexec):
16128         * vm-limit.c (memory_warnings):
16129         * ntheap.c (recreate_heap):
16130         * ntheap.h (UNINIT_PTR):
16131         * select-msw.c (Fmswindows_get_clipboard):
16132         (Fmswindows_set_clipboard):
16133         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16134         * objects-msw.c:
16135         * menubar-msw.c (displayable_menu_item):
16136         * glyphs-msw.c:
16137         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16138         * sysdep.c (sys_subshell):
16139         * process-nt.c (nt_create_process):
16140         * nt.c (normalize_filename):
16141         (dostounix_filename):
16142         (unixtodos_filename):
16143         * ntproc.c (win32_executable_type):
16144         * ntplay.c (play_sound_data_1):
16145         (play_sound_file):
16146         * editfns.c (get_home_directory):
16147         * event-msw.c (struct winsock_stream):
16148         (mswindows_dde_callback):
16149         * device-msw.c (msprinter_init_device):
16150         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16151
16152         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16153         mswindows_clear_toolbar were swapped!
16154
16155         * objects-msw.c:(colormap_t):
16156         (fontmap_t):
16157         * emacs.c (struct standard_args): Fixed const jumble.
16158
16159         * glyphs-widget.c (update_widget): Fixed comparison notation.
16160
16161         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16162
16163         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16164         __declspec(noreturn) syntax.
16165
16166 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16167
16168         * eldap.c (Fldap_open):
16169         (Fldap_search_basic):
16170         (Fldap_add):
16171         (Fldap_modify):
16172         Use new coding system conversion macros.
16173
16174 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16175
16176         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16177
16178 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16179
16180         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16181         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16182
16183         * eldap.c (Qadd, Qreplace): New constant symbols
16184         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16185         interruptions by XEmacs signals
16186         Remove unnecessary calls to slow_down_interrupts and
16187         speed_up_interrupts
16188         (Fldap_search_basic): Renamed from Fldap_search_internal
16189         Added new optional parameter VERBOSE that triggers the
16190         display of progress messages
16191         Remove unnecessary calls to slow_down_interrupts and
16192         speed_up_interrupts
16193         LDAP result code analysis rewritten
16194         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16195         (syms_of_eldap): Define the new symbols and functions
16196
16197
16198 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16199
16200         * realpath.c: Determine PATH_MAX maximally portably.
16201
16202         * insdel.c (bytecount_to_charcount): Optimize.
16203         The function used to be optimized for entirely ASCII sequences.
16204         Now it is optimized for successive characters from the same
16205         charset.  This also wins big for _mostly_ ASCII sequences.
16206
16207         * fileio.c (Ffile_truename): convert return from realpath() using
16208         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16209         - Rewrite GCPROing slightly.
16210
16211         * sysdep.c (sys_open): Do filename conversion, like all other
16212         sys_* functions.  Fixes bug:
16213         (let ((file-name-coding-system 'iso-8859-2))
16214            (write-region x y latin2-name))
16215         ==> writes filename using internal encoding.
16216
16217 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16218
16219         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16220         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16221         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16222         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16223         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16224         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16225         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16226         (CONST_IF_NOT_DEBUG): Delete.
16227         * alloc.c (this_one_is_unmarkable): Delete.
16228         (mark_object): Don't check for this_one_is_unmarkable. Use the
16229         c_readonly flag instead.
16230         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16231
16232 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16233
16234         * event-msw.c (mswindows_drain_windows_queue):
16235         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16236         away redundant repaint events.
16237
16238 2000-02-17  Andy Piper  <andy@xemacs.org>
16239
16240         * redisplay.h: declare mark_redisplay_structs.
16241
16242         * redisplay.c (redisplay_window):
16243         (redisplay_frame): don't check subwindows_state_changed.
16244         (mark_redisplay): mark gutters here.
16245
16246         * glyphs.c: (instantiate_image_instantiator): always layout if we
16247         haven't done so already.
16248         (allocate_image_instance): don't mark as dirty.
16249         (update_subwindow): bind inhibit_quit.
16250
16251         * gutter.c (mark_gutters): new function.
16252
16253         * glyphs-x.c (x_update_widget): Always resize to get round a
16254         widget bug.
16255
16256         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16257         breaking absolutely everything.
16258
16259         * gutter.h: declare mark_gutters.
16260
16261 2000-02-16  Martin Buchholz <martin@xemacs.org>
16262
16263         * XEmacs 21.2.29 is released.
16264
16265 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16266
16267         * fns.c (size_bit_vector): Fix computation of the size.
16268
16269 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16270
16271         * *.[ch]: Change CONST to const globally.
16272         find -name '*.[ch]' | \
16273         xargs global-replace \
16274         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16275         - Remove vestigial references to CONST_IS_LOSING
16276
16277 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16278
16279         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16280         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16281         events instead of dispatching them directly.
16282         (mswindows_handle_paint): New function to do repainting.
16283         (mswindows_wnd_proc):
16284         (emacs_mswindows_handle_magic_event): Call above function.
16285
16286 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16287
16288         * objects-msw.c (mswindows_create_font_variant): Return the new
16289         font handle.
16290         (initialize_font_instance): Get font metrics from the underlined
16291         variant of the font to cope with the case where the underlined
16292         font has a bigger descent.
16293
16294 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16295
16296         * gui.c (gui_item_accelerator): Return the first underlined
16297         character in item name.
16298
16299 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16300
16301         * lisp.h: Added Qprinter.
16302
16303         * general.c (syms_of_general): Initialized it.
16304
16305         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16306         (get_frame_dc):
16307         (get_frame_compdc): Made inline.
16308
16309         * console.h (struct console_methods): Added eject_page method.
16310
16311         * frame.h: Added FRAME_DISPLAY_P and friends.
16312         Aligned backslahes in many macros in more readable fashion.
16313         Added page_number to struct frame, and an accessor macro
16314         for it.
16315
16316         * defice.h: Added DEVICE_DISPLAY_P and friends.
16317
16318         * device.c (Fdevice_printer_p): Used these.
16319
16320         * frame.c (allocate_frame_core): Initialize page number.
16321         (Fprint_job_page_number):
16322         (Fprint_job_eject_page): Implemented.
16323
16324         * frame-msw.c (msprinter_eject_page): Added method.
16325         (msprinter_start_page): Added.
16326
16327         * window.c (Fwindow_truncated_p): Fixed docstring.
16328         (Fwindow_last_line_visible_height): Implemented.
16329
16330 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16331
16332         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16333
16334 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16335
16336         * syntax.c (scan_words): Always advance at least one character.
16337
16338 2000-02-13  Andy Piper  <andy@xemacs.org>
16339
16340         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16341         to make sure the glyph is in the cachels.
16342
16343         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16344         global image instance flag.
16345         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16346         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16347
16348         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16349         (Fset_image_instance_property): mark layout as changed.
16350         (invalidate_glyph_geometry_maybe): mark layout as changed.
16351         (glyph_width): use new NEEDS_LAYOUT macro.
16352         (glyph_ascent): ditto.
16353         (glyph_descent): ditto.
16354         (glyph_height): ditto.
16355         (image_instance_layout): mark layout as clean after laying out.
16356         (update_subwindow): don't mark layout as clean here.
16357
16358         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16359         should no longer be needed.
16360
16361         * glyphs-x.c (x_update_widget): sanitize asserts.
16362         (x_finalize_image_instance): sanitize assignment to widgets.
16363
16364         * glyphs-widget.c (widget_instantiate): don't need to clear the
16365         layout flag here.
16366
16367 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16368
16369         * sysdep.c (getcwd): Use standard prototype.
16370         * sysdep.h (getcwd): Use standard prototype.
16371
16372         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16373         (sequence, start, end).
16374         Remove redundant type checking.
16375         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16376         view of `caller-protects') to avoid a crash where the real fix was
16377         found elsewhere.
16378
16379 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16380
16381         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16382
16383         * s/sol2.h: Remove feature macro initialization.
16384
16385         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16386         (vector_hash): New.  Code from internal_hash.
16387         * lrecord.h:
16388         Fix up allocation subsystem comments.
16389
16390         * config.h.in: Add __EXTENSIONS__ for Solaris.
16391
16392         * systime.h (EMACS_GETTIMEOFDAY): New.
16393         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16394         Remove Solaris-specific code.
16395         Use void* for the (ignored) second arg for gettimeofday().
16396
16397         * elhash.c (hash_table_hash): Implement it, finally.
16398         * elhash.c:  Use hashcode_t.
16399
16400         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16401         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16402
16403         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16404         * fns.c (size_bit_vector):
16405         * alloc.c (size_vector):
16406         (make_vector_internal):
16407         (make_bit_vector_internal):
16408         (sweep_bit_vectors_1):
16409         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16410
16411 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16412
16413         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16414         Include strings.h to avoid warnings for bzero and strcasecmp.
16415
16416 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16417
16418         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16419         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16420
16421         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16422         sequence.
16423
16424 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16425
16426         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16427         use a value field instead.
16428         (symbol_value_forward_forward): Use value field.
16429         (DEFVAR_SYMVAL_FWD): Use value field.
16430         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16431         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16432         (DEFVAR_CONST_INT): Ditto.
16433         (DEFVAR_BOOL): Ditto.
16434         (DEFVAR_CONST_BOOL): Ditto.
16435         (DEFVAR_INT_MAGIC): Ditto.
16436         (DEFVAR_BOOL_MAGIC): Ditto.
16437
16438         * symbols.c (guts_of_unbound_marker): Use value field.
16439         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16440         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16441
16442         * lisp.h: Declare dumpopaque and noninteractive1.
16443
16444         * alloc.c (dumpopaque): Added.
16445         (pdump_dump_opaquevec): Added.
16446         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16447         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16448         noninteractive.
16449
16450 2000-02-10  Andy Piper  <andy@xemacs.org>
16451
16452         * glyphs.c (image_instance_layout): if the size changes, mark it
16453         as such.
16454
16455         * redisplay-output.c (redisplay_output_layout): Update the
16456         subwindow here.
16457         (redisplay_output_subwindow): ditto.
16458
16459         * glyphs.c (update_subwindow): make sure we reset flags for
16460         layouts as well as everything else.
16461
16462         * glyphs-widget.c (layout_layout): don't need to set the instances
16463         dimensions here.
16464
16465 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16466
16467         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16468         not HAVE_DLOPEN, which is a lower-level thing.
16469
16470         * .cvsignore: Ignore gmon.out
16471
16472 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16473
16474         * .cvsignore: Ignore portable dumper xemacs.dmp file
16475
16476 2000-02-09  Andy Piper  <andy@xemacs.org>
16477
16478         * redisplay-output.c (redisplay_output_layout): be more clever
16479         about when we output based on the changed flags.
16480
16481         * glyphs.h (struct image_instantiator_methods): add update_method.
16482         (struct Lisp_Image_Instance): add changed flags. Declare new
16483         macros for manipulating them.
16484
16485         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16486         (image_instance_parent_glyph): find an image_instance's parent
16487         glyph or image_instance.
16488         (image_instance_layout): mark the size as changed.
16489         (set_image_instance_dirty_p): new function. mark an image
16490         instance, plus all of its parents, as dirty.
16491         (Fset_image_instance_property): use it.
16492         (Fglyph_animated_timeout_handler): use it.
16493         (update_subwindow): call update_widget and device methods for
16494         update_subwindow. Mark all changed flags as clean.
16495         (Fresize_subwindow): mark size as changed.
16496
16497         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16498         failures.
16499         (x_update_subwindow): only resize subwindows here.
16500         (x_update_widget): new function. Update all changed properties of
16501         a widget.
16502         (x_resize_subwindow): deleted.
16503         (x_widget_set_property): deleted.
16504         (x_progress_gauge_set_property): deleted.
16505         (x_progress_gauge_update): new function. Implement recorded
16506         changes.
16507         (x_tab_control_update): ditto.
16508         (x_tab_control_set_property): deleted.
16509         (console_type_create_glyphs_x): declare new functions.
16510         (image_instantiator_format_create_glyphs_x): ditto.
16511
16512         * glyphs-widget.c (widget_set_property): mark text changed.
16513         (update_widget): new function. Update properties of a widget.
16514         (widget_instantiate): for layouts make sure we set their
16515         children's parent correctly.
16516         (tab_control_set_property): new function. Record changes that will
16517         take place under redisplay's control.
16518         (progress_gauge_set_property): ditto.
16519         (image_instantiator_progress_guage): declare new functions.
16520         (image_instantiator_tab_control): ditto.
16521
16522         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16523         now.
16524         (mswindows_update_widget): new function. Update all properties on
16525         a widget that have changed.
16526         (mswindows_button_update): new function. Update a button's set
16527         state.
16528         (mswindows_tab_control_update): new function. Update the items in
16529         a tab.
16530         (mswindows_tab_control_set_property): deleted.
16531         (mswindows_progress_gauge_update): new function. Update the
16532         progress gauge's progress.
16533         (mswindows_widget_set_property): deleted. This is all done
16534         asynchronously now.
16535         (mswindows_progress_gauge_set_property): ditto.
16536         (console_type_create_glyphs_mswindows): declare new methods.
16537         (image_instantiator_format_create_glyphs_mswindows): ditto.
16538
16539         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16540         (msprinter_set_frame_properties): ditto.
16541
16542         * console.h (struct console_methods): Add update_widget_method.
16543
16544 2000-02-09  Andy Piper  <andy@xemacs.org>
16545
16546         * gui-msw.c (Fmswindows_shell_execute): Make
16547         mswindows-shell-execute industrial strength.
16548
16549 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16550
16551         * lrecord.h: Make macro argument `props' match member function `plist'.
16552         * fns.c (Fget):
16553         * fns.c (Fput):
16554         * fns.c (Fremprop):
16555         * fns.c (Fobject_plist):
16556         * alloc.c:
16557         * symbols.c:
16558         Object property list frobbing cleanup.
16559         - Allow any lisp object (compared with `eq'), not just symbols, as
16560           keys in object plists.
16561         - Move symbol plist frobbing into symbols.c, where it belongs.
16562         - Move string plist frobbing into alloc.c, where it belongs.
16563         - Everything's an lrecord now, so no need to test for symbolp, etc.
16564         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16565
16566         * extents.c: Reorder code to remove declarations.
16567
16568         * frame.h (store_in_alist): Remove useless declaration.
16569
16570 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16571
16572         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16573         * config.h.in: Add HAVE_XCONVERTCASE.
16574
16575 2000-02-07  Andy Piper  <andy@xemacs.org>
16576
16577         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16578         it breaks many things.
16579
16580 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16581
16582         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16583         actually can start a common comment type.
16584         * src/syntax.h (SYNTAX_END_P): ditto for end.
16585
16586 2000-02-07  Martin Buchholz <martin@xemacs.org>
16587
16588         * XEmacs 21.2.28 is released.
16589
16590 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16591
16592         * event-Xt.c (x_keysym_to_character): New.
16593         (maybe_define_x_key_as_self_inserting_character): New.
16594         (x_has_keysym): New.
16595         Auto-define all keys on the keyboard as self-insert-key.
16596
16597 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16598
16599         * menubar.c (vars_of_menubar): A small code simplification.
16600
16601         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16602
16603         * ExternalShell.c:
16604         * ExternalClient.c:
16605         * EmacsShell-sub.c:
16606         * EmacsManager.c:
16607         * EmacsFrame.c:
16608         Use consistent style for specifying X resources.
16609
16610         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16611         This makes (dontusethis-set-symbol-value-handler) actually usable.
16612
16613         * lrecord.h (lrecord_decription_type):
16614         * alloc.c (pdump_register_sub):
16615         (pdump_dump_data):
16616         (pdump_reloc_one):
16617         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
16618         Comply with XEmacs coding style.
16619         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
16620         args, and XD_LISP_OBJECT_ARRAY with 3 args.
16621
16622         * keymap.c (Faccessible_keymaps):
16623         Make (accessible-keymaps map "\C-h") do the Right Thing.
16624         Make (accessible-keymaps map []) do the Right Thing.
16625         Make (accessible-keymaps map "") do the Right Thing.
16626         (check_keymap_definition_loop): New function.
16627         (keymap_store_internal): Keep luser from shooting self in foot,
16628           via (define-key ctl-x-4-map "p" global-map).
16629         Remove fullness slot from struct Lisp_Keymap, since hash tables
16630         are now reliable.
16631         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
16632
16633 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16634
16635         * redisplay.c (init_redisplay): Fix small memory leak.
16636         * elhash.h:
16637         * elhash.c (pdump_reorganize_hash_table):
16638         Rename from reorganize_hash_table. Change prototype.
16639         Reuse the original memory for hentries.  Save 100k.
16640         * alloc.c (PDUMP_READ): new macro.
16641         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
16642         * alloc.c: No need to #ifndef before #undef.
16643
16644         * print.c: Allow debug_print() to print readably by modifying
16645         debug_print_readably.  Use consistent variable names.
16646
16647         * .dbxrc: Try to get things to work even if stopped in a function
16648         without source available by explicitly specifying source files.
16649 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16650
16651         * unexnt.c (_start): Removed bogus code which caused loading heap
16652         from differrent executable file.
16653         Removed bogus assignment to _fmode, which caused inconsistencies.
16654
16655 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16656
16657         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
16658         Have spawnve encapsulation regard DONT_ENCAPSULATE.
16659         Do not preliminary `#define signal sigset'.
16660
16661         * systime.h: Do not prototype environ on windows nt and cygwin,
16662         this conflicts with system header.
16663
16664         * syssignal.h: Use correct define for WINDOWSNT
16665
16666         * sysdep.h: Do not prototype environ on windows nt, this conflicts
16667         with system header.
16668
16669         * sysdep.c (near start of file): Fixed commentary and rearranged
16670         ifdefs in readable order.
16671         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
16672         (start_of_text):
16673         (end_of_text):
16674         (end_of_data): Do not compile in if using PDUMP.
16675
16676         * symsinit.h: Prototyped vars_of_nt().
16677
16678         * ntproc.c (windows9x_p): Added, instead of os_subtype.
16679         (find_child_console): Use it.
16680         (sys_kill): Use it.
16681
16682         * ntheap.h: Do not extern os_subtype.
16683
16684         * ntheap.c (cache_system_info): Do not cache unneeded:
16685         nt_major_version, nt_minor_version and os_subtype.
16686         (recreate_heap): Do not compile in when PDUMPing.
16687
16688         * nt.c (geteuid and friends): Use the new varibale
16689         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
16690         (init_user_info): Removed the above mentioned hackery.
16691         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
16692         stat has been fixed in the C runtime.
16693         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
16694
16695         * file-coding.c (struct file_coding_dump): Do not define
16696         ucs_to_mule_table in the struct if not MULE.
16697         (struct struct lrecord_description fcd_description_1): Do not dump
16698         the above.
16699
16700         * emacs.c (main_1): Call vars_of_nt().
16701         (right before Fdump_emacs_data): Don't need lastfile if using both
16702         portabe dumper and system malloc.
16703
16704         * alloc.c (Fmemory_limit): Conditionalized out.
16705         (pdump): Use OPEN_BINARY for the portable dump file.
16706         (pdump_load): Ditto.
16707
16708 2000-02-02  Mike Alexander  <mta@arbortext.com>
16709
16710         * nt.c (convert_time): Set tm_isdst before calling mktime and
16711         avoid calling it at all if the compiler supports 64 bit integers.
16712         Also initialize utc_base_ft before using it.
16713
16714 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16715
16716         * frame.c (change_frame_size_1): Take f->internal_border_width
16717         into consideration when calculating the width of the frame.
16718
16719 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16720
16721         * window.c (frame_min_height):
16722         (frame_size_valid_p):
16723         (frame_pixsize_valid_p): Added.
16724         (check_frame_size): Generalized.
16725
16726         * window.h: Prototyped the above.
16727
16728         * lisp.h:
16729         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
16730         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
16731         Deleted Vwin32_* and Vbinary_process_* unused variables.
16732
16733         * device-msw.c (msprinter_init_device): Do not get printer font
16734         list; Added DEVMODE functions.
16735
16736         * frame-msw.c: Added lots of printer code.
16737
16738         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
16739         general.c.
16740
16741         * console-msw.h: Added more msprinter device private slots.
16742
16743 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16744
16745         * event-msw.c (key_needs_default_processing_p): Added.
16746         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
16747
16748 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16749
16750         * glyphs.c (image_instance_layout): Mark image instance as clean
16751         after layout.
16752         (glyph_dirty_p): Removed redundant function.
16753         (invalidate_glyph_geometry_maybe): Added.
16754         (update_glyph_cachel_data): Call it.
16755
16756         * glyphs.h: Prototyped it.
16757
16758         * redisplay.c (add_glyph_rune): Call it.
16759         (redisplay_window): Reset glyphs cachels when frame faces have
16760         changed, thus forcing recomputation of built-in border glyphs.
16761
16762 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16763
16764         * Makefile.in.in: Make portable dumper and purify play well together.
16765         Add imperfect, but better than nothing, support for pdump.
16766         Remove xemacs.dmp when temacs is re-generated.
16767         Don't ignore errors when dumping xemacs.
16768
16769         * symbols.c (maybe_call_magic_handler): Remove one magic number.
16770
16771 2000-01-28  Andy Piper  <andy@xemacs.org>
16772
16773         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
16774         (setup_normal_frame): ditto.
16775         (setup_frame_without_minibuffer): ditto.
16776         (setup_minibuffer_frame): ditto.
16777         (delete_frame_internal): ditto.
16778         (Fmake_frame_invisible): ditto.
16779         (Ficonify_frame): ditto.
16780
16781         * window.h: change Fset_window_buffer signature.
16782
16783         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
16784         (Fset_window_buffer): allow recording of buffer if the window is
16785         the selected window.
16786         (window_loop): Use new Fset_window signature.
16787
16788 2000-01-23  Daniel Pittman  <daniel@danann.net>
16789
16790         * config.h.in: Added template for `HAVE_ATHENA_3D'
16791
16792 2000-01-29  Andy Piper  <andy@xemacs.org>
16793
16794         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
16795
16796         * gutter.c (output_gutter): Don't output if the window isn't live.
16797
16798 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16799
16800         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
16801         of 01/12/00: Moved SetFocus back here where it belongs.
16802
16803 2000-01-23  Andy Piper  <andy@xemacs.org>
16804
16805         * s/cygwin32.h: declare printer things.
16806
16807 2000-01-26  Andy Piper  <andy@xemacs.org>
16808
16809         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
16810         Alexander.
16811
16812 2000-01-24  Andy Piper  <andy@xemacs.org>
16813
16814         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
16815         (mswindows_button_instantiate): Make sure glyph is a pixmap.
16816
16817         * glyphs-widget.c (widget_instantiate): Avoid shadows.
16818
16819         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
16820
16821         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
16822
16823         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
16824         (mswindows_output_display_block): Avoid local shadows.
16825
16826         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
16827         (mswindows_enqueue_mouse_button_event): ditto.
16828         (mswindows_handle_gui_wm_command): remove declaration.
16829
16830         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
16831         warnings.
16832
16833         * console-msw.h: Avoid shadows.
16834         (mswindows_get_toolbar_button_text):
16835         (emacs_mswindows_create_stream_pair):
16836         (emacs_mswindows_delete_stream_pair):
16837         (mswindows_handle_toolbar_wm_command): declare.
16838
16839         * device-msw.c (build_syscolor_string): Avoid shadows.
16840
16841 2000-01-23  Andy Piper  <andy@xemacs.org>
16842
16843         * glyphs-widget.c (widget_instantiate): reverse the items for
16844         layouts so that children are in the expected order.
16845
16846 2000-01-28  Martin Buchholz  <martin@xemacs.org>
16847
16848         * ralloc.c: safe_bcopy ==> memmove
16849         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
16850         * s/msdos.h: Remove BCOPY macros.
16851         * insdel.c (gap_right): Remove BCOPY conditional code.
16852         * insdel.c (gap_left): Remove BCOPY conditional code.
16853         XEmacs demands a working ANSI C compiler - hence memmove.
16854
16855         * regex.c (regex_compile): Remove accidental use of trigraphs.
16856
16857 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16858
16859         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
16860         event timestamp.
16861
16862 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16863
16864         * event-msw.c (mswindows_drain_windows_queue): Added the
16865         parameter.
16866         (mswindows_need_event): Commented the call to
16867         mswindows_drain_windows_queue().
16868         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
16869         only.
16870
16871         * console-msw.h: Moved a few function prototypes here from
16872         event-msw.c.
16873
16874         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
16875         parameter from unsigned short to unsigned long.
16876         (Fmswindows_shell_execute): Added return value.
16877
16878 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16879
16880         * sysdep.c (init_system_name):
16881           process-unix.c (unix_canonicalized_host_name):
16882         Don't call freeaddrinfo() if getaddrinfo() fails.
16883
16884         * process-unix.c (unix_open_unix_network_stream):
16885         Moved the code to get a port # into address loop.
16886
16887 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16888
16889         * buffer.c (reinit_vars_of_buffer):
16890         The right place to initialize conversion_in_dynarr and
16891         conversion_out_dynarr.
16892
16893         * alloc.c (pdump): Use the real open() till sys_open() is functional.
16894
16895         * process-unix.c (unix_canonicalize_host_name): Muleize.
16896         (unix_open_network_stream): Muleize.
16897
16898         * buffer.h: Fix up prototypes for ralloc.c functions.
16899
16900 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16901         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
16902         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
16903                 instead of gethostbyname()
16904         * process-unix.c: In unix_canonicalize_host_name() and
16905                 unix_open_network_stream(), add code to use getaddrinfo()
16906                 instead of gethostbyname().
16907
16908 2000-01-27  Daniel Pittman <daniel@danann.net>
16909
16910         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
16911         libs when built with flat Athena.
16912
16913 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16914
16915         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
16916         Use coding standards for function prototypes.
16917
16918 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16919
16920         * dialog-msw.c (push_lisp_string_as_unicode):
16921         * doc.c (unparesseuxify_doc_string):
16922         * dired.c (Fuser_name_completion_1):
16923         * dired.c (Fuser_name_all_completions):
16924         * dired.c (free_user_cache):
16925         * dired.c (user_name_completion):
16926         * console-x.c (get_display_arg_connection):
16927         * minibuf.c (clear_echo_area_internal):
16928         * minibuf.c (echo_area_append):
16929         * eldap.c (Fldap_open):
16930         * eldap.c (Fldap_search_internal):
16931         * frame-x.c (x_set_frame_text_value):
16932         * frame-x.c (x_set_frame_properties):
16933         * frame-x.c (x_create_widgets):
16934         * redisplay-tty.c (term_get_fkeys_1):
16935         * objects-x.c (x_parse_nearest_color):
16936         * objects-x.c (x_valid_color_name_p):
16937         * objects-x.c (x_initialize_font_instance):
16938         * objects-x.c (x_list_fonts):
16939         * objects-x.c (x_find_charset_font):
16940         * tooltalk.c (Fadd_tooltalk_message_arg):
16941         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
16942         * tooltalk.c (Fadd_tooltalk_pattern_arg):
16943         * process-unix.c (unix_create_process):
16944         * ntproc.c (sys_spawnve):
16945         * sound.c (Fplay_sound_file):
16946         * sound.c (Fplay_sound):
16947         * buffer.c (init_initial_directory):
16948         * buffer.c (init_buffer):
16949         * editfns.c (init_editfns):
16950         * editfns.c (Ftemp_directory):
16951         * editfns.c (Fuser_full_name):
16952         * editfns.c (uncache_home_directory):
16953         * editfns.c (get_home_directory):
16954         * editfns.c (Fuser_home_directory):
16955         * editfns.c (Fformat_time_string):
16956         * editfns.c (Fcurrent_time_string):
16957         * gui-x.c (button_item_to_widget_value):
16958         * database.c (Fopen_database):
16959         * event-Xt.c (x_to_emacs_keysym):
16960         * event-Xt.c (x_event_to_emacs_event):
16961         * event-Xt.c (describe_event_window):
16962         * event-msw.c (mswindows_wnd_proc):
16963         * glyphs-eimage.c (jpeg_instantiate):
16964         * glyphs-eimage.c (gif_instantiate):
16965         * glyphs-eimage.c (png_instantiate):
16966         * glyphs-eimage.c (tiff_instantiate):
16967         * glyphs-x.c (xbm_instantiate_1):
16968         * glyphs-x.c (x_xbm_instantiate):
16969         * glyphs-x.c (x_xface_instantiate):
16970         * glyphs-x.c (autodetect_instantiate):
16971         * glyphs-x.c (cursor_font_instantiate):
16972         * glyphs-x.c (x_widget_instantiate):
16973         * glyphs-x.c (x_widget_set_property):
16974         * glyphs-x.c (x_widget_property):
16975         * glyphs-x.c (BUILD_GLYPH_INST):
16976         * print.c (write_string_to_stdio_stream):
16977         * print.c (output_string):
16978         * print.c (Falternate_debugging_output):
16979         * print.c (Fexternal_debugging_output):
16980         * glyphs-msw.c (extract_xpm_color_names):
16981         * glyphs-msw.c (mswindows_xpm_instantiate):
16982         * glyphs-msw.c (bmp_instantiate):
16983         * glyphs-msw.c (resource_name_to_resource):
16984         * glyphs-msw.c (mswindows_resource_instantiate):
16985         * glyphs-msw.c (xbm_instantiate_1):
16986         * glyphs-msw.c (mswindows_xbm_instantiate):
16987         * glyphs-msw.c (mswindows_xface_instantiate):
16988         * glyphs-msw.c (mswindows_widget_instantiate):
16989         * glyphs-msw.c (add_tree_item):
16990         * glyphs-msw.c (add_tab_item):
16991         * glyphs-msw.c (mswindows_combo_box_instantiate):
16992         * glyphs-msw.c (mswindows_widget_property):
16993         * glyphs-msw.c (mswindows_combo_box_property):
16994         * glyphs-msw.c (mswindows_widget_set_property):
16995         * console.c (stuff_buffered_input):
16996         * objects-msw.c (mswindows_initialize_color_instance):
16997         * objects-msw.c (mswindows_valid_color_name_p):
16998         * objects-msw.c (mswindows_list_fonts):
16999         * objects-msw.c (mswindows_font_instance_truename):
17000         * bytecode.c (optimize_compiled_function):
17001         * select-x.c (symbol_to_x_atom):
17002         * select-x.c (x_atom_to_symbol):
17003         * select-x.c (hack_motif_clipboard_selection):
17004         * select-x.c (selection_data_to_lisp_data):
17005         * select-x.c (lisp_data_to_selection_data):
17006         * select-x.c (Fx_get_cutbuffer_internal):
17007         * select-x.c (Fx_store_cutbuffer_internal):
17008         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17009         * buffer.h (TO_INTERNAL_FORMAT): New function.
17010         * emacs.c (make_arg_list_1):
17011         * emacs.c (make_argc_argv):
17012         * emacs.c (main_1):
17013         * emacs.c (Fdump_emacs):
17014         * emacs.c (split_string_by_emchar_1):
17015         * file-coding.h:
17016         * lisp.h:
17017         * lstream.h:
17018         * symsinit.h:
17019         * device-x.c (x_init_device):
17020         * device-x.c (Fx_valid_keysym_name_p):
17021         * device-x.c (Fx_get_font_path):
17022         * device-x.c (Fx_set_font_path):
17023         * glyphs.c (bitmap_to_lisp_data):
17024         * glyphs.c (pixmap_to_lisp_data):
17025         * alloc.c (make_ext_string): Use coding system arguments.  Update
17026         all callers.
17027         * alloc.c (build_string):
17028         * callproc.c (child_setup):
17029         * callproc.c (init_callproc):
17030         * fileio.c (lisp_strerror):
17031         * fileio.c (directory_file_name):
17032         * fileio.c (Fexpand_file_name):
17033         * fileio.c (Ffile_truename):
17034         * fileio.c (Fsysnetunam):
17035         * fileio.c (Fdo_auto_save):
17036         * sysdep.c (sys_readdir):
17037         * tests.c: New file.  Allow adding C tests.
17038         Replace GET_* macros with a more comprehensible and flexible
17039         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17040         Modify all calls.
17041         Any coding system can be used to do format conversion.
17042         Eliminate enum external_data_format.
17043         Eliminate convert_to_external_format.
17044         Eliminate convert_to_internal_format.
17045         Make sure file-name, keyboard, terminal, and ctext are always
17046         defined as coding systems or aliases.  Make
17047         file-name-coding-system, terminal-coding-system, and
17048         keyboard-coding-system magical variables that are equivalent to
17049         defining the corresponding coding system aliases.
17050
17051         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17052         * file-coding.c (Fcoding_system_alias_p): New function.
17053         * file-coding.c (Fcoding_system_aliasee): New function.
17054         * file-coding.c (append_suffix_to_symbol): New function.
17055         * file-coding.c (dangling_coding_system_alias_p): New function.
17056         * file-coding.c (Ffind_coding_system):
17057         * file-coding.c (Fcopy_coding_system):
17058         * file-coding.c (encode_coding_no_conversion):
17059         * file-coding.c (syms_of_file_coding):
17060         * file-coding.c (vars_of_file_coding):
17061         Rewrite coding system alias code.
17062         Allow nested aliases, like symbolic links.
17063         Allow redefinition of coding system aliases.
17064         Prevent existence of dangling coding system aliases.
17065
17066         * dired.c (Fuser_name_completion_1):
17067         * dired.c (Fuser_name_all_completions):
17068         A crash would happen if user did QUIT in the middle of building
17069         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17070
17071         * lisp.h:
17072         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17073
17074         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17075         an unsigned char *.  Update all callers.
17076
17077 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17078
17079         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17080
17081 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17082
17083         * elhash.c (hentry_description): Use more portable definition.
17084         (resize_hash_table): Initialize new hentries using
17085         xnew_array_and_zero, thereby simplifying the code.
17086
17087         * mule-charset.c (make_charset): Make sure entire object is
17088         initialized, to avoid Purify warnings.
17089
17090         * alloc.c (resize_string): Fix unlikely crash with big strings.
17091
17092 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17093
17094         * realpath.c (xrealpath):
17095         Don't call getwd().
17096
17097 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17098
17099         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17100
17101 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17102
17103         * unexelfsgi.c (unexec): Change the way we decide which segment
17104         should be extended.
17105
17106         Assumption that .bss section should be outside the PT_LOADable
17107         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17108         it's present) is inside the 'data' segment. This would fail the
17109         test which was used to find a segment to grow and cover new
17110         heap. Instead of this assumption, I created another one - on IRIX
17111         the segment to grow should start below .bss and it's address
17112         should extent above the end of .bss. Once this segment is
17113         identified, it's grown to accommodate the new heap and new
17114         zero-length .bss section is added at the end of .data2.
17115
17116 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17117
17118         * eval.c (Feval): Wrong number of arguments should use original
17119         function, not the indirect_function version of it.
17120
17121 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17122
17123         * glyphs-x.c (x_button_instantiate): Don't add image if
17124         it is not a pixmap.
17125         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17126         is relative.
17127
17128 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17129
17130         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17131         declaration.
17132         (DEFVAR_INT_MAGIC): Ditto.
17133         (DEFVAR_BOOL_MAGIC): Ditto.
17134         * glyphs.h: Reindent backslash.
17135
17136 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17137
17138         * glyphs-widget.c (layout_query_geometry):
17139         (layout_layout): Use correct types for gheight, gwidth.
17140
17141 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17142
17143         * EmacsManager.c (QueryGeometry): Purified.
17144
17145 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17146
17147         * alloc.c (make_float): Make sure entire object is initialized, to
17148         avoid Purify warnings.
17149         (pdump_register_sub): Remove useless assignment.
17150         (pdump): Use xmalloc, not malloc.
17151         (pdump_load): Use xmalloc, not malloc.
17152
17153 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17154
17155         * callproc.c:
17156         * dired-msw.c:
17157         * fileio.c:
17158         * process-nt.c:
17159         * redisplay-msw.c:
17160         * sysdep.c: Removed redundant #include <windows.h>
17161
17162 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17163
17164         * frame.c (delete_frame_internal): Do not delete device when its
17165         implementation so declares.
17166         (delete_frame_internal): Set device selected frame to nil when
17167         last frame goes away.
17168
17169         * device-msw.c (msprinter_device_system_metrics): Implemented.
17170         (mswindows_device_system_metrics): Added 'device-dpi property.
17171
17172         * device.c: (Fdevice_printer_p): Added.
17173         Added 'offset-workspace device metric.
17174
17175         * console.h (device_metrics): Declared DM_offset_workspace.
17176
17177 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17178
17179         * fileio.c (Ffile_truename): Remove pointless and confusing
17180         initialization of elen.
17181
17182         * glyphs-widget.c: Compiler warning fixes.
17183
17184 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17185
17186         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17187         instead of a Lisp_Object as argument to make it consistent with
17188         the other LIVE_P macros.
17189         (CHECK_LIVE_PROCESS): New macro.
17190
17191         * process.c: Declare Qprocess_live_p.
17192         (Fprocess_live_p): New function.
17193         (create_process): Use PROCESS_LIVE_P.
17194         (read_process_output): Ditto.
17195         (set_process_filter): Ditto.
17196         (Fdelete_process): Ditto.
17197         (kill_buffer_processes): Ditto
17198         (process_send_signal): Use CHECK_LIVE_PROCESS.
17199         (Fprocess_input_coding_system): Check whether process is still
17200         alive (fix PR#1061).
17201         (Fprocess_output_coding_system): Ditto.
17202         (Fprocess_coding_system): Ditto.
17203         (Fset_process_input_coding_system): Ditto.
17204         (Fset_process_output_coding_system): Ditto.
17205
17206 2000-01-23  Andy Piper  <andy@xemacs.org>
17207
17208         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17209         layout and widget.
17210
17211         * glyphs.c (mark_image_instance): take into account changed
17212         image_instance format.
17213         (image_instance_equal): ditto.
17214         (image_instance_hash): ditto.
17215
17216         * glyphs-widget.c (widget_instantiate): Incorporate layout
17217         instantiation here. Delay layout of the layout until later.
17218         (layout_instantiate): deleted.
17219         (layout_query_geometry): new function. get the geometry of a
17220         layout.
17221         (layout_layout): layout a layout dynamically.
17222         (image_instantiator_widget): New function - splitting up
17223         image_instantiator_format_create_glyphs_widget for netwinder
17224         compilation.
17225         (image_instantiator_buttons):
17226         (image_instantiator_edit_fields):
17227         (image_instantiator_combo_box):
17228         (image_instantiator_scrollbar):
17229         (image_instantiator_progress_guage):
17230         (image_instantiator_tree_view):
17231         (image_instantiator_tab_control):
17232         (image_instantiator_labels):
17233         (image_instantiator_layout): ditto.
17234         (image_instantiator_format_create_glyphs_widget): Call preceding
17235         functions.
17236
17237 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17238
17239         * process.c (Fset_process_coding_system):
17240         * device-x.c (Fx_keysym_hash_table):
17241         Docstring fixes.
17242
17243         * lstream.c (Lstream_write): Return documented value, not 0.
17244
17245         * fileio.c (directory_file_name):
17246         (Fsubstitute_in_file_name):
17247         (Fsubstitute_insert_file_contents_internal):
17248         (Fwrite_region_internal):
17249         * emacs.c:
17250         * sysdep.c:
17251         * getloadavg.c:
17252         * systty.h:
17253         Remove vestigial APOLLO-conditional code.
17254
17255 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17256
17257         * getpagesize.h: Add guard macros.
17258         * libsst.h: Add guard macros.
17259         * libst.h: Add guard macros.
17260         * line-number.h: Add guard macros.
17261         * ndir.h: Add guard macros.
17262         * sysfloat.h: Add guard macros.
17263         * sysfile.h: Add guard macros.
17264         * sysproc.h: Add guard macros.
17265         * syswait.h: Add guard macros.
17266         * xintrinsic.h: Add guard macros.
17267         * xintrinsicp.h: Add guard macros.
17268         * xmmanager.h: Add guard macros.
17269         * xmmanagerp.h: Add guard macros.
17270         * xmprimitive.h: Add guard macros.
17271         * xmu.h: Add guard macros.
17272         * gpmevent.h: Add copyright statement. Add guard macros.
17273         * miscplay.h: Add guard macros.
17274         * *.h: Use consistent C-standards-approved guard macro names.
17275
17276         * opaque.c (make_opaque): Switch parameter order.
17277         * opaque.h (make_opaque): Switch parameter order.
17278         Update all callers.
17279         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17280
17281         * config.h.in (type_checking_assert): Added.
17282         (bufpos_checking_assert): Added.
17283
17284 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17285
17286         * alloc.c: Harmless pdump changes.
17287         - Use countof().
17288         - spell alignment correctly.
17289         * sysdep.c: Use countof()
17290
17291 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17292
17293         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17294         initially_selected_for_input() console method, default to 0.
17295         (semi_canonicalize_console_connection): Try to delegate to
17296         canonicalize_console_connection if no such console method.
17297         (canonicalize_console_connection): Vice versa.
17298         (print_console): Do not print nil connection.
17299
17300         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17301         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17302         (XDEVIMPF_FRAMELESS_OK): Added.
17303         (CONSOLE_INHERITS_METHOD): Added.
17304
17305         * console-msw.c (mswindows_canonicalize_console_connection):
17306         Added.
17307         (mswindows_canonicalize_device_connection): Added.
17308
17309         * console-msw.h (struct msprinter_device): Added this struct and
17310         accessor macros.
17311         (mswindows_device): Made fontlist a lisp object.
17312
17313         * device.c (semi_canonicalize_device_connection):  Try to delegate
17314         to canonicalize_device_connection if no such console method.
17315         (canonicalize_device_connection): Vice versa.
17316         (print_device): Do not print nil connection.
17317
17318         * device-msw.c (mswindows_init_device): Call InitCommonControls
17319         when have widgets.
17320         (mswindows_delete_device): Removed fontlist deallocation.
17321         (mswindows_mark_device): Added.
17322
17323         * events.c (event_equal): Added abort() at unreached code.
17324         (event_hash): Ditto.
17325
17326         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17327         fallback tags of Windows devices.
17328
17329         * general.c (syms_of_general): Initialized Qmsprinter.
17330
17331         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17332         of fallback tags of Windows devices.
17333
17334         * lisp.h: Declared Qmsprinter.
17335
17336         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17337         of strings.
17338         (mswindows_list_fonts): Ditto.
17339         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17340         that it can be used by both mswindows and msprinter devices.
17341         (initialize_font_instance): Added.
17342         (mswindows_initialize_font_instance): Use it.
17343         (msprinter_initialize_font_instance): Added.
17344
17345         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17346         and implementation flags check.
17347         (redisplay_without_hooks): Changed the call to the above.
17348         (Fredraw_device): Ditto.
17349         (Fredisplay_device): Ditto.
17350
17351         * redisplay-msw.c (get_frame_dc): Implemented.
17352         (get_frame_compdc): Implemented.
17353         (many functions): Use the two functions above to get device
17354         contexts, ether for a window or a printer.
17355
17356 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17357
17358         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17359         initialization here.
17360         (init_symbols_once_early): Call it.
17361         * emacs.c (main_1): Call it.
17362         * symsinit.h: Declare it.
17363
17364 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17365
17366         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17367         Lisp_Object.
17368         (pdump_backtrace): Ditto.
17369         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17370         (pdump_get_entry): Abort if trying to register a null pointer.
17371         (pdump_dump_data): Cleanup types when relocating.
17372         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17373         (pdump_dump_rtables): Remove bad casts.
17374         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17375         Lisp_Object instead of a EMACS_INT for the hashtable
17376         reorganization.
17377
17378 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17379
17380         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17381
17382         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17383
17384         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17385
17386         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17387
17388 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17389
17390         * faces.h (FACE_STRIKETHRU_P): Added.
17391
17392         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17393         of font variants.
17394
17395         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17396         (mswindows_set_dc_font): New function, aware of font variants,
17397         separated from mswindows_update_dc.
17398
17399         * objects-msw.h (struct mswindows_font_instance_data): Added
17400         definition.
17401
17402         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17403         cached fonts and the data structure.
17404         (mswindows_initialize_font_instance): Added creation of font data
17405         structure.
17406         (mswindows_print_font_instance): Print at least something.
17407         (mswindows_create_font_variant): Implemented.
17408         (mswindows_get_hfont): Implemented.
17409
17410 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17411
17412         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17413         prototyping problem with msvc.
17414
17415         * emacs.c (main_1): added syms_of_gui_mswindows() call
17416
17417         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17418         syms_of_gui_mswindows() function
17419
17420         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17421
17422 2000-01-18  Martin Buchholz <martin@xemacs.org>
17423
17424         * XEmacs 21.2.27 is released.
17425
17426 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17427
17428         * glyphs-eimage.c (struct tiff_error_struct):
17429         (tiff_error_func):
17430         (tiff_warning_func):
17431         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17432
17433         * unexmips.c:
17434         * unexhp9k3.c:
17435         * unexfreebsd.c:
17436         * unexec.c: Remove vestigial Lucid C code.
17437         * unexalpha.c:
17438         * unexaix.c:
17439         * termcap.c:
17440         * libsst.c: Ansify.
17441         Remove declarations of errno and strerror().
17442
17443         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17444
17445         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17446
17447 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17448
17449         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17450         Optimize.
17451
17452 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17453
17454         * md5.c:
17455         * file-coding.c:
17456         * file-coding.h:
17457         Change enum eol_type to eol_type_t.
17458
17459 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17460
17461         * gui.c (get_gui_callback): Check cons before accessing car.
17462
17463 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17464
17465         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17466         (XSETSPECIFIER_TYPE): Ditto.
17467
17468 2000-01-17  Didier Verna  <didier@xemacs.org>
17469
17470         * redisplay.c (generate_fstring_runes): compute string size in
17471         characters, not bytes.
17472
17473 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17474
17475         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17476
17477 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17478
17479         * print.c (print_error_message): Call print_prepare().
17480
17481 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17482
17483         * .dbxrc: Renamed from dbxrc.
17484
17485         * events.c (event_to_character):
17486         Use `assert (foo)' instead of `if (!foo) abort()'
17487
17488         * .gdbinit (xtype): Add documentation.
17489         * .gdbinit (check-temacs): New function.
17490         * .gdbinit (check-xemacs): New function.
17491         * dbxrc (check-xemacs): New function.
17492         * dbxrc (check-xemacs): New function.
17493
17494 2000-01-14  Andy Piper  <andy@xemacs.org>
17495
17496         * glyphs-widget.c (widget_query_geometry): Make sure that we
17497         calculate default dimensions correctly.
17498
17499 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17500
17501         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17502
17503         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17504         pdump_wire'd variable.
17505
17506         * emacs.c: (main_1): Conditionalized calls to
17507         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17508
17509 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17510
17511         * window.c (Fset_window_configuration):
17512         * sysdep.c (_start):
17513         * input-method-motif.c (res):
17514         * event-Xt.c (Xt_process_to_emacs_event):
17515         Simple compiler warning fixes.
17516
17517         * bytecode.c (funcall_compiled_function): Use the original
17518         function symbol on the backtrace list in preference to the
17519         compiled_function object in error messages.
17520
17521 2000-01-13  Andy Piper  <andy@xemacs.org>
17522
17523         * glyphs-x.c (update_widget_face): Make sure we update the widget
17524         background as well as foreground.
17525
17526 2000-01-13  Andy Piper  <andy@xemacs.org>
17527
17528         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17529         fields to subwindow.
17530         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17531         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17532         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17533         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17534
17535         * glyphs-widget.c (check_valid_tab_orientation): new function.
17536         (initialize_widget_image_instance): zero orientation and
17537         justification.
17538         (widget_instantiate): pick up orientation.
17539         (tab_control_query_geometry): return appropriate values for
17540         vertical tabs.
17541
17542         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17543         appropriate creation flags for left, right and bottom tabs.
17544
17545         * s/cygwin32.h: add tab definitions.
17546
17547 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17548
17549         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17550         frame upon hiding a subwindow.
17551         (mswindows_button_instantiate): Changed the push button style to
17552         BS_PUSHBUTTON.
17553         (mswindows_button_instantiate): Removed button BS_NOTIFY
17554         style.
17555         (mswindows_button_instantiate): Removed redundant check for
17556         a disabled gui item.
17557         (mswindows_button_instantiate): Made use of WS_TABSTOP
17558         consistent: "operable" controls (edit, button, tree, scroll) have
17559         this style, "display-only" ones (static, progress gauge) do
17560         not. This style is currently ignored by XEmacs though. Also,
17561         removed the WS_EX_CONTROLPARENT style - it is not for children,
17562         it is for their parents!
17563         (mswindows_edit_field_instantiate): Ditto.
17564         (mswindows_progress_gauge_instantiate): Ditto.
17565         (mswindows_tree_view_instantiate): Ditto.
17566         (mswindows_tab_control_instantiate): Ditto.
17567         (mswindows_scrollbar_instantiate): Ditto.
17568         (mswindows_combo_box_instantiate): Ditto.
17569         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17570         style to the "clip" window.
17571         (mswindows_button_instantiate): Removed compilation warning by
17572         equally typing terms of the ?: operator.
17573
17574 2000-01-12  Didier Verna  <didier@xemacs.org>
17575
17576         * redisplay.c (generate_fstring_runes): new parameter holding the
17577         last modeline-format extent.
17578         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17579         extent, fill the glyph block with it.
17580         (generate_fstring_runes): handle these parameters.
17581         (generate_formatted_string_db): ditto.
17582
17583         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17584         glyphs'extents in the modeline.
17585
17586 1999-01-11  Mike Woolley  <mike@bulsara.com>
17587
17588         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17589         256Mb, as a workaround for the non-starting problem many people
17590         have experienced.
17591
17592 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17593
17594         * console-tty.c (Fset_console_tty_output_coding_system):
17595         Force redrawing tty frame.
17596
17597 2000-01-10  Didier Verna  <didier@xemacs.org>
17598
17599         * redisplay.c (generate_fstring_runes): fix size computation bug.
17600
17601 2000-01-09  William M. Perry <wmperry@aventail.com>
17602
17603         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17604
17605 2000-01-09  Andy Piper  <andy@xemacs.org>
17606
17607         * glyphs-msw.c: index -> i to avoid shadows.
17608         (xbm_create_bitmap_from_data): make static.
17609         (check_valid_string_or_int): deleted.
17610         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17611
17612         * glyphs-x.c (x_update_subwindow): remove unused args.
17613
17614         * glyphs.c (glyph_image_instance): return the thing. Don't set the
17615         back pointer - this is done in allocate_image_instance.
17616         (query_string_font): return Qnil to make the compiler happy.
17617         (unmap_subwindow): set to ~0 to make the compiler happy.
17618         (glyph_query_geometry): comment out until used.
17619         (glyph_layout): ditto.
17620
17621 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17622
17623         * insdel.c (signal_after_change): Remove extraneous unbind_to().