update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2006-05-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.23
4         (Kamo).
5
6 2006-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
7
8         * concord.c: Add EXFUN for Fconcord_object_get.
9         (Vconcord_genre_object_hash_table): New variable.
10         (concord_genre_cache_get_object): New function.
11         (concord_genre_cache_put_object): New function.
12         (Fconcord_make_object): Use object cache; put object-ID into `=id'
13         feature.
14         (Fconcord_object_put): Call `concord_index_sync' after
15         `concord_index_strid_put_obj'.
16         (vars_of_concord): Setup Vconcord_genre_object_hash_table.
17
18 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
19
20         * concord.c (Fconcord_decode_object): Do GCPRO for
21         Fconcord_make_object.
22         (func_for_each_object): Likewise; do GCPRO for
23         for_each_object_closure->function.
24         (Fconcord_foreach_object_in_feature): Use GCPRO4 for
25         for_each_object_closure->function, for_each_object_closure->genre,
26         for_each_object_closure->ds and for_each_object_closure->ret.
27         (concord_object_validate): Do GCPRO for Fconcord_make_object.
28
29 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
30
31         * concord.c: Add EXFUNs for Fconcord_decode_object and
32         Fconcord_object_put.
33         (Fconcord_make_object): Change order of arguments.
34         (Fconcord_decode_object): Modify for Fconcord_make_object.
35         (func_for_each_object): Likewise.
36         (concord_object_validate): Likewise.
37         (concord_object_instantiate): Use GCPRO2 for `data' and `retval'.
38
39 2006-04-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
40
41         * concord.c (Fconcord_object_put): Setup index for `=FOO' feature.
42
43 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
44
45         * concord.c (Fconcord_decode_object): Try to use readable print
46         form as a key of Concord-index.
47         (Fconcord_object_get): Try to use readable print form as an ID of
48         Concord-object.
49         (Fconcord_object_put): Try to use readable print form as an ID of
50         Concord-object and a feature value.
51         (Fconcord_object_spec): Try to use readable print form as an ID of
52         Concord-object.
53
54 2006-04-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
55
56         * concord.c (print_concord_object): Support readable form.
57
58 2006-04-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
59
60         * emacs.c (main_1): Call `structure_type_create_concord' when
61         HAVE_CONCORD is defined.
62
63         * symsinit.h (structure_type_create_concord): New prototype.
64
65         * concord.c (Qconcord_object): New variable.
66         (Qgenre): Likewise.
67         (Q_id): Likewise.
68         (Fconcord_ds_directory): Use <char*> instead of <unsigned char*>
69         for directory.
70         (add_feature_to_list_mapper): Use <char*> instead of <unsigned
71         char*> for genre-name.
72         (Fconcord_feature_list): Likewise.
73         (Fconcord_make_object): Likewise.
74         (Fconcord_decode_object): Likewise; use <char*> instead of
75         <unsigned char*> for feature_name and strid.
76         (Fconcord_object_get): Use <char*> instead of <unsigned char*> for
77         c_obj and feature_name.
78         (Fconcord_object_put): Likewise; use <char*> instead of <unsigned
79         char*> for c_value.
80         (struct closure_for_object_spec): Use <char*> instead of <unsigned
81         char*> for member `object_id'.
82         (add_feature_to_spec_mapper): Use <char*> instead of <unsigned
83         char*> for feature-name.
84         (Fconcord_object_spec): Use <char*> instead of <unsigned char*>
85         for c_obj.
86         (func_for_each_object): Cast to avoid warnings.
87         (Fconcord_foreach_object_in_feature): Use <char*> instead of
88         <unsigned char*> for genre_name and feature_name.
89         (concord_name_validate): New function.
90         (concord_object_validate): Likewise.
91         (concord_object_instantiate): Likewise.
92         (syms_of_concord): Add new builtin symbols `concord-object',
93         `genre' and `=id'.
94         (structure_type_create_concord): New function.
95
96 2006-04-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
97
98         * concord.c (Vconcord_ds_hash_table): New variable.
99         (Vconcord_genre_hash_table): New variable.
100         (Fconcord_open_ds): Use Vconcord_ds_hash_table.
101         (Fconcord_ds_directory): New function.
102         (Fconcord_assign_genre): New function.
103         (Fconcord_genre_directory): New function.
104         (Fconcord_genre_ds): New function.
105         (Fconcord_feature_list): Allow to omit `ds'.
106         (Fconcord_make_object): Likewise.
107         (Fconcord_decode_object): Likewise.
108         (Fconcord_foreach_object_in_feature): Likewise.
109         (syms_of_concord): Add new builtin function Fconcord_ds_directory,
110         Fconcord_assign_genre, Fconcord_genre_directory and
111         Fconcord_genre_ds.
112         (vars_of_concord): Setup Vconcord_ds_hash_table and
113         Vconcord_genre_hash_table.
114
115 2006-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
116
117         * concord.c (struct closure_for_each_object): Add new member
118         `ret'.
119         (func_for_each_object): Setup the return value to
120         `for_each_object_closure->ret'.
121         (Fconcord_foreach_object_in_feature): If FUNCTION returns non-nil,
122         returns the value instead of Qt.
123
124 2005-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
125
126         * concord.c: New file.
127
128 2005-12-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
129
130         * lrecord.h (enum lrecord_type): Add `lrecord_type_concord_ds' and
131         `lrecord_type_concord_object'.
132
133 2005-09-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
134
135         * symsinit.h (syms_of_concord): New prototype.
136         (vars_of_concord): New prototype.
137
138         * emacs.c (main_1): Setup symbols and variable about concord if
139         HAVE_CONCORD is defined.
140
141         * config.h.in (HAVE_CONCORD): New macro.
142
143 2005-09-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
144
145         * chartab.c (Fput_char_attribute): For each character relation
146         feature `{<-|->}FOO', set up the reversed link `{->|<-}FOO'.
147
148 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
149
150         * chartab.c (Fput_char_attribute): Use
151         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
152         calling `put_char_composition'.
153
154 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
155
156         * chartab.c (Q_halfwidth_of): New variable.
157         (put_char_composition): Return `<-halfwidth' instead of
158         `=decomposition' for compatibility mapping to single character
159         tagged `narrow'.
160         (Fput_char_attribute): Convert char-specs in value of
161         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
162         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
163         for `<-halfwidth'.
164         (syms_of_chartab): Add new symbol `<-halfwidth'.
165
166 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
167
168         * chartab.c (put_char_composition): Return
169         `<-formed@{isolated|initial|medial|final}' for compatibility
170         mapping to single character tagged
171         `{isolated|initial|medial|final}'.
172
173 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
174
175         * chartab.c (Q_compat_of): Deleted.
176         (put_char_composition): Return `<-FOO' for compatibility mapping
177         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
178         of `symbol_name (XSYMBOL(...))'.
179         (Fput_char_attribute): Convert char-specs in value of
180         `{<-|->}font[^*]*' to characters and put reverse links.
181         (Fsave_char_attribute_table): Don't refer Q_compat_of.
182         (syms_of_chartab): Delete builtin symbol `<-compat'.
183
184 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
185
186         * chartab.c (Q_circled_of): New variable.
187         (put_char_composition): Return `<-circled' instead of
188         `=decomposition' for compatibility mapping to single character
189         tagged `circle'.
190         (Fput_char_attribute): Convert char-specs in value of
191         `{<-|->}circled[^*]*' to characters and put reverse links.
192         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
193         for `<-circled'.
194         (syms_of_chartab): Add new symbol `<-circled'.
195
196 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
197
198         * chartab.c (Qto_decomposition_at_circled): New variable.
199         (put_char_composition): Return `=>decomposition@circled' instead
200         of `=decomposition' for compatibility decomposition mapping tagged
201         `circle'.
202         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
203
204 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
205
206         * chartab.c (Q_subscript_of): New variable.
207         (put_char_composition): Return `<-subscript' instead of
208         `=decomposition' for compatibility mapping to single character
209         tagged `sub'.
210         (Fput_char_attribute): Convert char-specs in value of
211         `{<-|->}subscript[^*]*' to characters and put reverse links.
212         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
213         for `<-subscript'.
214         (syms_of_chartab): Add new symbol `<-subscript'.
215
216 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
217
218         * chartab.c (Q_superscript_of): New variable.
219         (put_char_composition): Return `<-superscript' instead of
220         `=decomposition' for compatibility mapping to single character
221         tagged `super'.
222         (Fput_char_attribute): Convert char-specs in value of
223         `{<-|->}superscript[^*]*' to characters and put reverse links.
224         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
225         for `<-superscript'.
226         (syms_of_chartab): Add new symbol `<-superscript'.
227
228 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
229
230         * chartab.c (Qto_decomposition_at_compat): Deleted.
231         (Qto_decomposition_at_superscript): New variable.
232         (put_char_composition): Use `=>decomposition@superscript' instead
233         of `=decomposition' for compatibility decomposition mapping tagged
234         `super'.
235         (Fput_char_attribute): Fix condition about `put_char_composition'.
236         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
237         add news symbol `=>decomposition@superscript'.
238
239 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
240
241         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
242         for compatibility decomposition mapping tagged FOO.
243         (Fput_char_attribute): Modify for `put_char_composition'.
244
245 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
246
247         * chartab.c (Qto_decomposition_at_compat): New variable.
248         (Q_compat_of): Renamed from `Q_compatibility_of'.
249         (put_char_composition): Rename `Q_compatibility_of' to
250         `Q_compat_of'; return `=>decomposition@compat' for compatibility
251         decomposition mapping.
252         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
253         `Q_compat_of'.
254         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
255         `<-compatibility' to `<-compat'.
256
257 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
258
259         * chartab.c (Q_compatibility_of): New variable.
260         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
261         object is proved to be a cons cell; return `<-compatibility' if
262         the first element of argument `value' is `compat'.
263         (Fput_char_attribute): Eliminate the first value if
264         `put_char_composition' returns `<-compatibility'.
265         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
266         for `<-compatibility'.
267         (syms_of_chartab): Add new symbol `<-compatibility'.
268
269 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
270
271         * chartab.c (Q_canonical): New variable.
272         (put_char_composition): Return a feature name: return
273         `->canonical' if argument `value' specifies single character.
274         (Fput_char_attribute): Use `put_char_composition' to determine
275         feature name for `=decomposition' or `->denotational'.
276         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
277         for `->canonical'.
278         (syms_of_chartab): Add new symbol `->canonical'.
279
280 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
281
282         * chartab.c (Qmap_decomposition): New variable.
283         (Fput_char_attribute): Convert `->decomposition' to
284         `=decomposition'.
285         (syms_of_chartab): Add new symbol `=decomposition'.
286
287 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
288
289         * chartab.c (Fget_range_char_table): Fix serious problem when
290         `range' is nil.
291
292 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
293
294         * chartab.c (char_table_get_db): Use `read_from_c_string'.
295
296 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
297
298         * lread.c (read_from_c_string): New function.
299
300         * lisp.h (read_from_c_string): New prototype.
301
302 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
303
304         * chartab.c (Fput_char_attribute): Convert char-specs in value of
305         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
306         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
307         for `{<-|->}Oracle-Bones[^*]*'.
308
309 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
310
311         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
312         (Kizu).
313
314 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
315
316         * text-coding.c (Qccs_priority_list): New variable in XEmacs
317         CHISE.
318         (Fmake_coding_system): Support new property `ccs-priority-list' in
319         XEmacs CHISE.
320         (Fcoding_system_property): Likewise.
321         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
322         Vdefault_coded_charset_priority_list in XEmacs CHISE.
323         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
324         XEmacs CHISE.
325         (complex_vars_of_file_coding): Define new coding-system-property
326         `ccs-priority-list' in XEmacs CHISE.
327
328         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
329
330 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
331
332         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
333         changed to normal function.
334         (encode_char_2): Likewise.
335
336         * mule-charset.c (decoding_table_put_char): Copied from
337         char-ucs.h; changed to normal function.
338         (encode_char_2): Likewise.
339
340 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
341
342         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
343         New extern.
344         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
345         (encode_char_2_search_children): New inline function.
346         (encode_char_2): Refer
347         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
348         and use `encode_char_2_search_children'.
349
350 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
351
352         * mule-charset.c
353         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
354         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
355         (vars_of_mule_charset): Add new variable
356         `display-coded-charset-priority-use-inheritance' and
357         `display-coded-charset-priority-use-hierarchy-order'.
358
359 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
360
361         * char-ucs.h (Q_subsumptive): New extern.
362         (Q_denotational): Likewise.
363         (encode_char_2): Search children specified by `->subsumptive' and
364         `->denotational'.
365
366 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
367
368         * mule-charset.c (complex_vars_of_mule_charset): Modify the
369         X-registry of `ucs-bmp'.
370
371 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
372
373         * chartab.c (char-variants): Refer `->subsumptive',
374         `->denotational' and `->identical' as same as `->ucs-unified'.
375
376 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
377
378         * chartab.c (Fput_char_attribute): Convert char-specs in value of
379         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
380         links.
381
382 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
383
384         * text-coding.c: Add EXFUN for `Fregexp_quote'.
385         (decode_add_er_char): Fix problem about infinite loop when a CCS
386         specified in `coded-charset-entity-reference-alist' is not
387         existed.
388
389 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
390
391         * mule-charset.c (syms_of_mule_charset): Rename
392         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
393
394 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
395
396         * fns.c (simplify_char_spec): Don't allocate new character-object
397         if specified char_spec does not have any CCS-features.
398
399         * chartab.h: Add EXFUN for Fdefine_char.
400
401         * chartab.c: Delete EXFUN for Fdefine_char.
402
403 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
404
405         * fns.c (simplify_char_spec): Use Fdefine_char instead of
406         Ffind_char for char-spec.
407
408 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
409
410         * lisp-disunion.h (XCHARVAL): Fix condition about
411         SIZEOF_EMACS_INT.
412
413 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
414
415         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
416         <int> for `code'.
417         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
418         point; use <Emchar> instead of <int> for character-id.
419
420 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
421
422         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
423         (make_char): Likewise.
424         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
425         environment.
426         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
427         instead of <int> as the type of return value; use <Lisp_Object>
428         instead of <Emchar> as the type of argument.
429         (XCHARVAL[macro version]): Cast the result into <Emchar>.
430
431         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
432         syntaxcode> instead of <int>.
433
434 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
435
436         * chartab.c (put_char_composition): Use DECODE_CHAR to get
437         character corresponding with UCS code point.
438         (Fput_char_attribute): Likewise.
439
440         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
441         character in the UCS decoding-table if the char-id is not equal to
442         the UCS code point.
443
444 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
445
446         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
447         for aliases; write `description'; write
448         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
449         not 0.
450
451 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
452
453         * chartab.c (Fsave_char_attribute_table): Don't use
454         `save_charset_properties'.
455
456         * mule-charset.c (Fsave_charset_properties): Renamed from
457         `save_charset_properties' and changed to Lisp function again;
458         write property `type' as `CCS'; write properties `final-byte' and
459         `mother' if they exists.
460         (syms_of_mule_charset): Revive builtin function
461         `save-charset-properties' when HAVE_LIBCHISE is defined.
462
463 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
464
465         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
466         instead of Vexec_directory.
467         (char_attribute_system_db_file): Likewise.
468
469 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
470
471         * chartab.c (Fsave_char_attribute_table): Use
472         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
473         defined.
474
475         * mule-charset.c (save_charset_properties): Renamed from
476         `Fsave_charset_properties'; changed to non-Lisp function.
477         (syms_of_mule_charset): Abolish builtin function
478         `save-charset-properties'.
479
480 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
481
482         * mule-charset.c (Fsave_charset_properties): New function when
483         HAVE_LIBCHISE is defined.
484         (syms_of_mule_charset): Add new builtin function
485         `save-charset-properties' when HAVE_LIBCHISE is defined.
486
487 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
488
489         * chartab.c (Fput_char_attribute): Convert char-specs in value of
490         `{<-|->}ancient[^*]*' to characters and put reverse links.
491         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
492         for `{<-|->}ancient[^*]*'.
493
494 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
495
496         * chartab.c (Fput_char_attribute): Convert char-specs in value of
497         `{<-|->}original[^*]*' to characters and put reverse links.
498         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
499         for `{<-|->}original[^*]*'.
500
501 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
502
503         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
504
505 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
506
507         * mule-charset.c (Qsystem_char_id): New variable.
508
509         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
510         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
511
512 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
513
514         * chartab.c (Fput_char_attribute): When processing a reference of
515         a character, put into the end of the reversed reference of each
516         target character.
517
518 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
519
520         * chartab.c (Q_same): Deleted.
521         (Q_same_of): Deleted.
522         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
523         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
524         for `{<-|->}same'.
525         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
526
527 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
528
529         * chartab.c (Q_vulgar): Deleted.
530         (Q_vulgar_of): Deleted.
531         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
532         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
533         for `{<-|->}vulgar'.
534         (syms_of_chartab): Don't define `{<-|->}vulgar'.
535
536 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
537
538         * chartab.c (Fput_char_attribute): Convert char-specs in value of
539         `{<-|->}wrong[^*]*' to characters and put reverse links.
540         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
541         for `{<-|->}wrong[^*]*'.
542
543 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
544
545         * chartab.c (Q_vulgar): New variable.
546         (Q_vulgar_of): New variable.
547         (Fput_char_attribute): Convert char-specs in value of
548         `{->|<-}vulgar' to characters and put reverse links.
549         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
550         for `{->|<-}vulgar'.
551         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
552
553 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
554
555         * text-coding.c (decode_add_er_char): Must to quote prefix string
556         as regexp.
557
558 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
559
560         * mule-charset.c (put_char_ccs_code_point): Store characters of
561         =ucs whose code_points >= 0xF0000.
562
563 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
564
565         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
566         CHISE.
567         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
568         CHISE.
569         (complex_vars_of_mule_charset): Add new coded-charset
570         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
571         builtin characters over 0xEFFFF.
572
573         * chartab.c (syms_of_chartab): Don't define symbol
574         `system-char-id' in every case.
575
576         * char-ucs.h (Qsystem_char_id): New extern variable.
577         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
578
579 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
580
581         * text-coding.c (char_encode_utf8): Try to use entity-references
582         for U-000F0000 ...  U-0010FFFF.
583
584 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
585
586         * text-coding.c (ER_BUF_SIZE): New macro.
587         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
588         `er_buf'.
589         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
590         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
591
592 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
593
594         * chartab.c (find_char_feature_in_family): New function.
595         (Fchar_feature): Use `find_char_feature_in_family' with
596         `->identical', `<-subsumptive' and `<-denotational'.
597
598 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
599
600         * text-coding.c (char_encode_as_entity_reference): Allow prefix
601         within 8 characters; fix infinite loop.
602
603 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
604
605         * chartab.c (Q_same): New variable.
606         (Q_same_of): New variable.
607         (Fput_char_attribute): Convert char-specs in value of
608         `{->|<-}same' to characters and put reverse links.
609         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
610         for `{->|<-}same'.
611         (syms_of_chartab): Add new symbols `{->|<-}same'.
612
613 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
614
615         * chartab.c (Q_component): New variable.
616         (Q_component_of): Likewise.
617         (Fput_char_attribute): Convert char-specs in value of
618         `{->|<-}ideographic-component-forms' to characters and put reverse
619         links.
620         (syms_of_chartab): Add new symbols
621         `{->|<-}ideographic-component-forms'.
622
623 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
624
625         * chartab.c (Q_identical): New variable.
626         (Q_identical_from): New variable.
627         (Fchar_feature): Regard `->identical' as a feature to find
628         ancestors.
629         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
630         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
631         for `{->|<-}identical'.
632         (syms_of_chartab): Add new symbols `{->|<-}identical'.
633
634 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
635
636         * char-ucs.h (encode_char_2): New inline function.
637         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
638
639 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
640
641         * chartab.c (Fput_char_attribute): Convert char-specs to
642         characters in value of `ideographic-structure'.
643         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
644         for `{<-|->}simplified(@...)'.
645         (Fdefine_char): Try to use predefined character's id.
646
647 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
648
649         * fns.c (simplify_char_spec): Try to convert builtin chars to
650         defined chars.
651
652 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
653
654         * chartab.c (Fput_char_attribute): Convert char-specs in value of
655         `<-simplified[^*]*' to characters and put reverse links.
656
657 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
658
659         * chartab.c (Q_subsumptive): Renamed from Q_unified.
660         (Q_subsumptive_from): Renamed from Q_unified_from.
661         (Fchar_feature): Use `Q_subsumptive_from' instead of
662         `Q_unified_from'.
663         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
664         `Q_unified'.
665         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
666         `<-unified' to `<-subsumptive'.
667
668 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
669
670         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
671         inheritance itself; fix typo; stop recursive search if cyclic
672         inheritance is found.
673
674 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
675
676         * chartab.c (Q_denotational): New variable.
677         (Q_denotational_from): New variable.
678         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
679         (put_char_attribute): New function.
680         (Fput_char_attribute): Use `put_char_attribute'; regard
681         `->denotational' and `<-denotational' as same as `->unified' and
682         `<-unified'.
683         (syms_of_chartab): Add new symbols `->denotational' and
684         `<-denotational'.
685
686 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
687
688         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
689         `Fget_char_attribute'.
690         (Fchar_variants): Likewise.
691         (get_char_table): Likewise.
692         (Fchar_feature): New function.
693         (put_char_composition): Use `Fchar_feature' instead of
694         `Fget_char_attribute'.
695         (Fput_char_attribute): Likewise; don't put the target character
696         into its `->unified' value.
697         (syms_of_chartab): Add new builtin function `char-feature'.
698
699 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
700
701         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
702         `Fget_char_attribute'.
703         (char_encode_utf8): Likewise.
704
705         * chartab.h: Add an EXFUN for `Fchar_feature'.
706
707 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
708
709         * chartab.c (Vnext_defined_char_id): New variable.
710         (Fput_char_attribute): Accept characters in `->unified'.
711         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
712         new characters which are not related with builtin char-id ranges.
713         (vars_of_chartab): Add new variable `next-defined-char-id'.
714
715 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
716
717         * chartab.c (Q_unified): New variable.
718         (Q_unified_from): New variable.
719         (Fput_char_attribute): Add code for `->unified'.
720         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
721         XEmacs CHISE.
722
723 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
724
725         * mule-charset.c (decode_ccs_conversion): New function.
726         (decode_defined_char): Use `decode_ccs_conversion'.
727         (decode_builtin_char): Likewise.
728
729 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
730
731         * char-ucs.h: Change some charset-ids of private coded-charsets.
732
733 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
734
735         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
736         (char_encode_as_entity_reference): Likewise.
737         (decode_coding_big5): Modify for `decode_defined_char' and
738         `DECODE_CHAR'.
739         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
740         avoid compiler warning.
741         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
742
743         * mule-charset.c (decode_defined_char): Add new argument
744         `without_inheritance'.
745         (Fdecode_char): Add new optional argument `without_inheritance'.
746         (Fdecode_builtin_char): Modify for `Fdecode_char'.
747
748         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
749         (simplify_char_spec): Likewise.
750
751         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
752         setting.
753
754         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
755         (map_char_table): Likewise.
756         (Fdefine_char): Use `Fdecode_char' without inheritance.
757         (Ffind_char): Modify for `Fdecode_char'.
758
759         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
760
761         * char-ucs.h (decode_defined_char): Add new argument
762         `without_inheritance'.
763         (DECODE_CHAR): Likewise.
764         (MAKE_CHAR): Modify for `DECODE_CHAR'.
765
766 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
767
768         * chartab.c (Vchise_system_db_directory): New variable.
769         (vars_of_chartab): Add new variable `chise-system-db-directory'.
770
771 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
772
773         * chartab.c: EXFUN `Fmount_char_attribute_table'.
774         (print_chartab_range): Don't define when `UTF2000' is defined.
775         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
776         `CHISE_DS_open'.
777
778 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
779
780         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
781         and optional argument `rehash' is specified, call
782         `open_chise_data_source_maybe' before
783         `chise_ds_foreach_char_feature_name' is called.
784
785 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
786
787         * chartab.c (char_attribute_list_reset_map_func): New function
788         when HAVE_LIBCHISE is defined.
789         (Fchar_attribute_list): Add new optional argument `rehash' when
790         HAVE_LIBCHISE is defined.
791         (open_chise_data_source_maybe): Use "chise-db" instead of
792         "char-db".
793         (char_attribute_system_db_file): Likewise.
794         (Fload_char_attribute_table): Use
795         `chise_feature_foreach_char_with_value' instead of
796         `chise_char_feature_value_iterate'.
797
798 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
799
800         * chartab.c (Vchise_db_directory): New variable.
801         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
802
803 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
804
805         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
806         instead of HAVE_CHISE to specify using with libchise.
807
808         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
809
810         * chartab.h: Don't use HAVE_CHISE_CLIENT.
811
812         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
813         defined or HAVE_LIBCHISE_LIBCHISE is defined.
814         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
815         is defined.
816         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
817         HAVE_CHISE to specify using with libchise.
818         (syms_of_chartab): Don't define symbol `system-char-id' when
819         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
820
821 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
822
823         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
824         specify CHISE DB support.
825         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
826         of `char_attribute_system_db_file' to check feature DB file.
827
828         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
829         HAVE_CHISE_CLIENT to specify CHISE DB support.
830
831         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
832         specify CHISE DB support.
833         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
834         not defined.
835         (Freset_char_attribute_table): Use `chise_feature_setup_db'
836         instead of `char_attribute_system_db_file' to check feature DB
837         file.
838
839 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
840
841         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
842         `HAVE_CHISE_CLIENT'.
843
844 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
845
846         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
847         (Fsave_charset_mapping_table): Don't use
848         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
849
850         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
851         (HAVE_LIBCHISE): New macro.
852
853         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
854
855         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
856         (Fsave_char_attribute_table): Don't use
857         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
858
859 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
860
861         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
862         defined.
863         (save_uint16_byte_table): Likewise.
864         (save_byte_table): Likewise.
865         (char_table_get_db): Use `chise_ds_load_char_feature_value'
866         instead of `chise_char_load_feature_value'.
867         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
868
869 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
870
871         * chartab.h (struct Lisp_Char_Table): Delete member
872         `feature_table' if CHISE is defined.
873
874         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
875         (Fcopy_char_table): Likewise.
876         (char_table_open_db_maybe): Likewise.
877         (char_table_close_db_maybe): Likewise.
878         (char_table_get_db): Likewise.
879         (Fmount_char_attribute_table): Likewise.
880         (Fload_char_attribute_table): Likewise.
881
882 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
883
884         * mule-charset.c (load_char_decoding_entry_maybe): Use
885         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
886         `chise_ccs_decode'.
887
888 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
889
890         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
891         instead of `chise_open_data_source'.
892         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
893         `chise_ds_close'.
894
895 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
896
897         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
898         instead of `chise_ds_open_feature_table'.
899         (char_table_close_db_maybe): Don't use `chise_ft_close'.
900
901 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
902
903         * mule-charset.c (Fsave_charset_mapping_table): Use
904         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
905         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
906         `chise_ccs_sync' instead of `chise_ccst_close'.
907         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
908
909         * chartab.c (open_chise_data_source_maybe): Modify for
910         `chise_open_data_source'.
911         (char_table_open_db_maybe): Modify for
912         `chise_ds_open_feature_table'.
913
914 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
915
916         * mule-charset.c (load_char_decoding_entry_maybe): Use
917         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
918         `chise_ccst_close'.
919
920 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
921
922         * mule-charset.c (Fsave_charset_mapping_table): Use
923         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
924         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
925         `chise_dt_put_char' and `chise_dt_close'.
926         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
927         `chise_ccs_decode' and `chise_ccst_close' instead of
928         `chise_ds_open_decoding_table', `chise_dt_get_char' and
929         `chise_dt_close'.
930
931         * chartab.c (char_table_get_db): Use
932         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
933         (load_char_attribute_table_map_func): Modify for
934         `chise_char_feature_value_iterate'.
935         (Fload_char_attribute_table): Use
936         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
937
938 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
939
940         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
941
942 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
943
944         * chartab.c (put_char_table): Modify for inherited coded-charsets
945         in XEmacs CHISE.
946
947 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
948
949         * chartab.c (Fput_char_table_map_function): Fixed.
950         (word_boundary_p): Don't check charset in XEmacs CHISE.
951
952 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
953
954         * mule-charset.c (Fsave_charset_mapping_table): Use
955         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
956         instead of `chise_open_decoding_table'; refer
957         `default_chise_data_source'; use `chise_dt_close' instead of
958         `chise_close_decoding_table'.
959         (load_char_decoding_entry_maybe): Likewise.
960
961         * chartab.c (default_chise_data_source): New variable when `CHISE'
962         is defined.
963         (Fcopy_char_table): `ct->ds' is deleted.
964         (open_chise_data_source_maybe): New function.
965         (Fclose_char_data_source): New function.
966         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
967         use `chise_ds_open_feature_table' instead of
968         `chise_open_feature_table'.
969         (char_table_close_db_maybe): Use `chise_ft_close' instead of
970         `chise_close_feature_table'; `cit->ds' is deleted.
971         (syms_of_chartab): Add new builtin function
972         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
973
974         * chartab.h (default_chise_data_source): New extern variable.
975         (open_chise_data_source_maybe): New prototype.
976         (struct Lisp_Char_Table): Delete `ds'.
977
978 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
979
980         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
981         `CHISE' is defined.
982
983 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
984
985         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
986         not defined; add code for non-libchise setting.
987         (char_table_close_db_maybe): Likewise.
988         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
989         defined.
990         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
991         even if `CHISE' is not defined.
992         (Freset_char_attribute_table): Likewise.
993         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
994         `char_table_close_db_maybe' even if `CHISE' is not defined; use
995         `char_table_get_db'.
996         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
997         `char_table_close_db_maybe' even if `CHISE' is not defined.
998
999 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1000
1001         * chartab.c (char_table_open_db_maybe): New function.
1002         (char_table_close_db_maybe): New function.
1003         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
1004         (Freset_char_attribute_table): Likewise.
1005         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
1006         `char_table_close_db_maybe'.
1007         (Fload_char_attribute_table): Likewise.
1008
1009 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1010
1011         * chartab.c: Don't include <chise.h> because it is included in
1012         chartab.h.
1013         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
1014         defined.
1015         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
1016         `CHISE' is defined.
1017         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
1018         `CHISE' is defined.
1019         (Fclose_char_attribute_table): Close `ct->feature_table' and
1020         `ct->ds' when `CHISE' is defined.
1021         (Freset_char_attribute_table): Likewise.
1022         (load_char_attribute_maybe): Use `cit->ds' and
1023         `cit->feature_table' when `CHISE' is defined.
1024         (Fload_char_attribute_table): Likewise.
1025
1026         * chartab.h: Include <chise.h> when `CHISE' is defined.
1027         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
1028         when `CHISE' is defined.
1029
1030 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1031
1032         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
1033         is defined.
1034         (char_table_description): Likewise.
1035         (Fmake_char_table): Likewise.
1036         (Fcopy_char_table): Likewise.
1037         (Fmount_char_attribute_table): Likewise.
1038         (Fclose_char_attribute_table): Likewise.
1039         (Freset_char_attribute_table): Likewise.
1040         (load_char_attribute_maybe): Likewise.
1041         (Fload_char_attribute_table): Likewise.
1042
1043         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
1044         defined.
1045
1046 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1047
1048         * chartab.c (load_char_attribute_table_map_func): New function
1049         when CHISE is defined.
1050         (Qload_char_attribute_table_map_function): Don't define when CHISE
1051         is defined.
1052         (Fload_char_attribute_table_map_function): Likewise.
1053         (Fload_char_attribute_table): Use libchise when `CHISE' is
1054         defined.
1055         (syms_of_chartab): Don't define
1056         `load-char-attribute-table-map-function' when CHISE is defined.
1057
1058 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1059
1060         * chartab.c: Include <chise.h> when `CHISE' is defined.
1061         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
1062
1063 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1064
1065         * mule-charset.c (charset_code_point): Fix problem when searching
1066         in mother CCS fails with `defined_only' mode.
1067
1068 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1069
1070         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
1071         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
1072         (put_char_composition): Likewise.
1073         (Fput_char_attribute): Likewise.
1074         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
1075
1076 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1077
1078         * chartab.c (Q_ucs): Deleted.
1079         (Fput_char_attribute): Don't refer `->ucs'.
1080         (Fdefine_char): Likewise.
1081         (Ffind_char): Likewise.
1082         (syms_of_chartab): Delete `->ucs'.
1083
1084 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1085
1086         * mule-charset.c (Qmap_cns11643_2): Renamed from
1087         `Qchinese_cns11643_2'.
1088         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
1089         `chinese-cns11643-2'.
1090         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
1091         `=cns11643-2'.
1092
1093 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1094
1095         * mule-charset.c (Qmap_cns11643_1): Renamed from
1096         `Qchinese_cns11643_1'.
1097         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
1098         `chinese-cns11643-1'.
1099         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
1100         `=cns11643-1'.
1101
1102 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1103
1104         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
1105         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
1106         `chinese-gb12345'.
1107         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
1108         `=gb12345'.
1109
1110 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1111
1112         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
1113         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
1114         `chinese-gb2312'.
1115         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
1116         `=gb2312'.
1117
1118 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1119
1120         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
1121         (syms_of_mule_charset): Add new symbol `=big5' instead of
1122         `chinese-big5'.
1123         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
1124
1125 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1126
1127         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
1128         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
1129         `korean-ksc5601'.
1130         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
1131         `=ks-x1001'.
1132
1133 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1134
1135         * mule-charset.c (Qmap_jis_x0212): Renamed from
1136         `Qjapanese_jisx0212'.
1137         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
1138         `japanese-jisx0212'.
1139         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
1140         `=jis-x0212'.
1141
1142 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1143
1144         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
1145         `Qjapanese_jisx0208'.
1146         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1147         of `japanese-jisx0208'.
1148         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1149         `=jis-x0208-1983'.
1150
1151 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1152
1153         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1154         `Qjapanese_jisx0208_1978'.
1155         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1156         of `japanese-jisx0208-1978'.
1157         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1158         `=jis-x0208-1978'.
1159
1160 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1161
1162         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1163         only for XEmacs CHISE.
1164
1165 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1166
1167         * char-ucs.h: Compact non-ISO-IR charset-ids.
1168         (LEADING_BYTE_UCS): Changed to -177.
1169         (LEADING_BYTE_CONTROL_1): Changed to -77.
1170         (LEADING_BYTE_UCS_BMP): Changed to -176.
1171         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1172
1173 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1174
1175         * mule-charset.c (Qiso_ir): New variable.
1176         (Fmake_charset): Recognise new property `iso-ir'.
1177         (syms_of_mule_charset): Add new symbol `iso-ir'.
1178
1179 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1180
1181         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1182         n to -n; charset-id of non ISO-IR sets are changed to positive
1183         numbers.
1184
1185 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1186
1187         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1188         for &MCS-XXXXXXXX; values.
1189
1190 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1191
1192         * mule.c (Vxemacs_chise_version): Renamed from
1193         `Vutf_2000_version'.
1194         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1195         `utf-2000-version' as an alias for `xemacs-chise-version'.
1196
1197 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1198
1199         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1200         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1201         defined.
1202
1203         * config.h.in (CHISE): New macro.
1204
1205 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1206
1207         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1208         of `ucs'.
1209         (Qmap_ucs): New variable.
1210         (syms_of_mule_charset): Add new symbol `=ucs'.
1211         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1212
1213         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1214         (simplify_char_spec): Likewise.
1215
1216         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1217
1218         * char-ucs.h (Qmap_ucs): New extern variable.
1219
1220 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1221
1222         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1223         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1224         don't define it when UTF2000 is not defined.
1225         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1226         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1227         when UTF2000 is not defined.
1228         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1229         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1230
1231 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1232
1233         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1234
1235         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1236         (Qucs_gb): Deleted.
1237         (syms_of_mule_charset): Delete `ucs-gb'.
1238         (complex_vars_of_mule_charset): Likewise.
1239
1240 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1241
1242         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1243
1244         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1245         (Qucs_cns): Deleted.
1246         (syms_of_mule_charset): Delete `ucs-cns'.
1247         (complex_vars_of_mule_charset): Likewise.
1248
1249 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1250
1251         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1252
1253         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1254         (Qucs_jis): Deleted.
1255         (syms_of_mule_charset): Delete `ucs-jis'.
1256         (complex_vars_of_mule_charset): Likewise.
1257
1258 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1259
1260         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1261
1262         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1263         (Qucs_ks): Deleted.
1264         (syms_of_mule_charset): Delete `ucs-ks'.
1265         (complex_vars_of_mule_charset): Likewise.
1266
1267 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1268
1269         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1270         (Qideograph_daikanwa_2): Deleted.
1271         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1272         (complex_vars_of_mule_charset): Likewise.
1273
1274         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1275         (LEADING_BYTE_DAIKANWA_1): Deleted.
1276         (LEADING_BYTE_DAIKANWA_2): Deleted.
1277         (MIN_CHAR_DAIKANWA): Deleted.
1278         (MAX_CHAR_DAIKANWA): Deleted.
1279
1280 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1281
1282         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1283         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1284         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1285
1286         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1287         (Vcharset_ideograph_daikanwa): Deleted.
1288         (Qideograph_hanziku_{1..12}): Deleted.
1289         (Qideograph_daikanwa): Deleted.
1290         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1291         Vcharset_ideograph_daikanwa.
1292         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1293         `ideograph-hanziku-{1..12}'.
1294         (complex_vars_of_mule_charset): Likewise.
1295
1296 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1297
1298         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1299
1300         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1301         (Qideograph_gt_pj_{1..11}): Deleted.
1302         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1303         (complex_vars_of_mule_charset): Likewise.
1304
1305 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1306
1307         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1308         (Vcharset_ideograph_gt): Deleted.
1309         (Qucs_big5): Deleted.
1310         (Qideograph_gt): Deleted.
1311         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1312         `ideograph-gt'.
1313         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1314         and `ideograph-gt'.
1315
1316         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1317         (LEADING_BYTE_GT): Deleted.
1318         (MIN_CHAR_GT): Deleted.
1319         (MAX_CHAR_GT): Deleted.
1320
1321 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1322
1323         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1324
1325 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1326
1327         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1328         (save_uint16_byte_table): Likewise.
1329         (save_byte_table): Likewise; convert values by it.
1330         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1331         for `ideographic-structure'.
1332         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1333         as the filter for `ideographic-structure'.
1334
1335 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1336
1337         * chartab.c (put_char_composition): New function.
1338         (Fput_char_attribute): Use `put_char_composition'; use
1339         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1340
1341         * fns.c (simplify_char_spec): New function.
1342         (char_ref_simplify_spec): New function.
1343         (Fchar_refs_simplify_char_specs): New function.
1344         (syms_of_fns): Add new builtin function
1345         `char-refs-simplify-char-specs'.
1346
1347 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1348
1349         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1350         (Qideograph_cbeta): Deleted.
1351         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1352         (complex_vars_of_mule_charset): Likewise.
1353
1354         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1355         (MIN_CHAR_CBETA): Comment out.
1356         (MAX_CHAR_CBETA): Likewise.
1357
1358 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1359
1360         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1361         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1362         CHISE client feature.
1363
1364 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1365
1366         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1367
1368 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1369
1370         * mule-charset.c (charset_lookup_description_1): Use
1371         `NUM_LEADING_BYTES' in UTF-2000.
1372
1373 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1374
1375         * char-ucs.h (GC_CHARSETP): Deleted.
1376
1377 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1378
1379         * char-ucs.h (MAX_CHAR_GT): Updated.
1380
1381 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1382
1383         * text-coding.c: Sync with XEmacs 21.4.10.
1384
1385 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1386
1387         * mule-charset.c (Vcharset_china3_jef): Deleted.
1388         (Qchina3_jef): Deleted.
1389         (syms_of_mule_charset): Don't define `china3-jef'.
1390         (complex_vars_of_mule_charset): Likewise.
1391
1392         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1393         (MIN_CHAR_CHINA3_JEF): Comment out.
1394         (MAX_CHAR_CHINA3_JEF): Comment out.
1395
1396 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1397
1398         * mule-charset.c (Vcharset_ucs_gb): New variable.
1399         (Qucs_gb): New variable.
1400         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1401         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1402
1403         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1404
1405 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1406
1407         * mule-charset.c (charset_code_point): if a coded-charset has a
1408         final-byte, don't inherit the builtin range of the mother CCS.
1409
1410 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1411
1412         * mule-charset.c (charset_code_point): Fix problem about
1413         inheritance.
1414
1415 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1416
1417         * mule-charset.c (decode_builtin_char): Reorganized.
1418
1419 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1420
1421         * text-coding.c (char_encode_as_entity_reference): Modify for
1422         `charset_code_point'.
1423         (char_encode_shift_jis): Likewise.
1424         (char_encode_big5): Likewise.
1425         (char_encode_utf8): Likewise.
1426         (char_encode_iso2022): Likewise.
1427
1428         * mule-charset.c (charset_code_point): Add new argument
1429         `defined_only'.
1430         (Fencode_char): Add new optional argument `defined_only'.
1431
1432         * chartab.c (put_char_table): Modify for `charset_code_point'.
1433
1434         * char-ucs.h (charset_code_point): Add new argument
1435         `defined_only'.
1436         (encode_char_1): Modify for `charset_code_point'.
1437
1438 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1439
1440         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1441         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1442
1443 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1444
1445         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1446         (Qjis_x0208): Likewise.
1447         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1448         XCHARSET_FINAL(charset).
1449         (charset_code_point): Modify condition for final-byte based
1450         builtin-chars.
1451         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1452         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1453         in UTF-2000; specify `=jis-x0208' as the mother of
1454         `japanese-jisx0208-1978', `japanese-jisx0208' and
1455         `japanese-jisx0208-1990' in UTF-2000.
1456
1457 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1458
1459         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1460
1461 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1462
1463         * text-coding.c (decode_coding_utf16): Support UTF-16.
1464         (char_encode_utf16): Fixed.
1465
1466 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1467
1468         * text-coding.c (Qutf16): New variable in MULE.
1469         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1470         (Fcoding_system_type): Add `utf-16' in MULE.
1471         (struct detection_state): Add a structure for utf16 in MULE.
1472         (detect_coding_type): Setup st->utf16.mask in MULE.
1473         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1474         MULE.
1475         (reset_encoding_stream): Use `char_encode_utf16' and
1476         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1477         (detect_coding_utf16): New function [incomplete].
1478         (decode_coding_utf16): New function [support only UCS-2].
1479         (char_encode_utf16): New function.
1480         (char_finish_utf16): New function.
1481         (syms_of_file_coding): Add new symbol `utf-16'; setup
1482         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1483
1484         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1485         UTF-2000.
1486         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1487         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1488
1489 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1490
1491         * chartab.c (put_char_table): When a charset is specified as a
1492         range in UTF-2000, don't support builtin characters.
1493
1494 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1495
1496         * mule-charset.c (decode_defined_char): Don't refer external
1497         database if Qunbound or Qnil are found.
1498         (Fsave_charset_mapping_table): Don't define it if
1499         HAVE_CHISE_CLIENT is not defined.
1500         (Freset_charset_mapping_table): New function.
1501         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1502         found in external database.
1503         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1504         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1505         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1506
1507 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1508
1509         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1510         not.
1511
1512 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1513
1514         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1515         Q_lowercase, Q_uppercase in UTF-2000.
1516
1517         * chartab.c (get_char_table): Add special code for the standard
1518         case table to use character attribute `->downcase' and
1519         `->uppercase' for case operations in UTF-2000.
1520
1521         * casetab.c (Qflippedcase): New variable in UTF-2000.
1522         (Q_lowercase): Likewise.
1523         (Q_uppercase): Likewise.
1524         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1525         and `->uppercase' in UTF-2000.
1526         (complex_vars_of_casetab): Assign attribute name `downcase' to
1527         downcase and CANON table of Vstandard_case_table in UTF-2000;
1528         assign attribute name `flippedcase' to upcase and EQV table of
1529         Vstandard_case_table in UTF-2000.
1530
1531 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1532
1533         * text-coding.c (decode_add_er_char): Support isolated-chars.
1534         (char_encode_as_entity_reference): Likewise.
1535
1536 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1537
1538         * emacs.c (Vutf_2000_lisp_directory): New variable.
1539         (Vconfigure_utf_2000_lisp_directory): Likewise.
1540         (complex_vars_of_emacs): Add new variable
1541         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1542
1543 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1544
1545         * char-ucs.h (DECODE_CHAR): Delete special code for
1546         `chinese-big5-1' and `chinese-big5-2'.
1547
1548         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1549         (Qbig5_2): Likewise.
1550         (decode_defined_char): Support CONVERSION_BIG5_1 and
1551         CONVERSION_BIG5_2.
1552         (decode_builtin_char): Likewise.
1553         (charset_code_point): Likewise.
1554         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1555         'conversion in UTF-2000.
1556         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1557         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1558         `chinese-big5-2' as children of `chinese-big5'.
1559
1560         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1561         (CONVERSION_BIG5_2): New macro.
1562
1563 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1564
1565         * text-coding.c (char_encode_big5): Support entity-reference.
1566
1567 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1568
1569         * text-coding.c (char_encode_as_entity_reference): New function.
1570         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1571
1572 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1573
1574         * text-coding.c (decode_coding_big5): Support entity-reference
1575         decoding feature.
1576
1577 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1578
1579         * text-coding.c (allocate_coding_system): Initialize initial
1580         charsets for CODESYS_UTF8.
1581         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1582         charset-g2 for CODESYS_UTF8.
1583         (decode_coding_utf8): Use charset-g0.
1584         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1585         to force variants to map to UCS.
1586
1587 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1588
1589         * text-coding.c (Qutf_8_mcs): New variable.
1590         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1591         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1592         instead of `utf-8' in UTF-2000.
1593
1594 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1595
1596         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1597         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1598         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1599         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1600         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1601         CONVERSION_96x96x96x96 are introduced.
1602         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1603         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1604         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1605
1606         * char-ucs.h (CONVERSION_94): New macro.
1607         (CONVERSION_96): New macro.
1608         (CONVERSION_94x94): New macro.
1609         (CONVERSION_96x96): New macro.
1610         (CONVERSION_94x94x94): New macro.
1611         (CONVERSION_96x96x96): New macro.
1612         (CONVERSION_94x94x94x60): New macro.
1613         (CONVERSION_94x94x94x94): New macro.
1614         (CONVERSION_96x96x96x96): New macro.
1615
1616 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1617
1618         * chartab.c (Vcharacter_variant_table): Deleted.
1619         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1620         of `Vcharacter_variant_table'.
1621         (Fput_char_attribute): Likewise.
1622         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1623         (complex_vars_of_chartab): Likewise.
1624
1625 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1626
1627         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1628
1629         * fns.c (Qideographic_structure): New variable.
1630         (Qkeyword_char): New variable.
1631         (ids_format_unit): New function.
1632         (Fideographic_structure_to_ids): New function.
1633         (syms_of_fns): Add new symbols `ideographic-structure' and
1634         `:char'; add new builtin function `ideographic-structure-to-ids'.
1635
1636         * data.c (Fchar_ref_p): New function.
1637         (syms_of_data): Add new builtin function `char-ref-p'.
1638
1639         * chartab.h: Add an EXFUN for `Ffind_char'.
1640
1641 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1642
1643         * text-coding.c (Vcharacter_composition_table): Deleted.
1644         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1645         in every UTF-2000.
1646
1647         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1648         UTF-2000.
1649         (Vcharacter_composition_table): Deleted.
1650         (Fget_composite_char): Use the implementation for external-DB
1651         support in every UTF-2000.
1652         (Fput_char_attribute): Likewise.
1653         (char_attribute_system_db_file): Don't define if external-DB
1654         feature is not available.
1655         (Fsave_char_attribute_table): Likewise.
1656         (Fmount_char_attribute_table): Likewise.
1657         (Fclose_char_attribute_table): Likewise.
1658         (Freset_char_attribute_table): Likewise.
1659         (Fload_char_attribute_table): Likewise.
1660         (syms_of_chartab): Don't define `save-char-attribute-table',
1661         `mount-char-attribute-table', `reset-char-attribute-table',
1662         `close-char-attribute-table' and `load-char-attribute-table' if
1663         external-DB feature is not available.
1664         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1665
1666 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1667
1668         * text-coding.c (Qcomposition): Add extern if external-DB feature
1669         is supported.
1670         (Vcharacter_composition_table): Don't add extern if external-DB
1671         feature is supported.
1672         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1673         character composition rule if external-DB feature is supported.
1674
1675         * chartab.c (Vcharacter_composition_table): Don't define if
1676         external-DB feature is supported.
1677         (Qcomposition): New variable.
1678         (Fget_composite_char): New implementation for external-DB support.
1679         (Fput_char_attribute): Use `composition' property of each
1680         character instead of `Vcharacter_composition_table' to store
1681         character-composition rules if external-DB feature is supported.
1682         (syms_of_chartab): Add new symbol `composition'.
1683         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1684         external-DB feature is supported.
1685
1686 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1687
1688         * chartab.c (Vchar_db_stingy_mode): New variable.
1689         (load_char_attribute_maybe): Close database if
1690         Vchar_db_stingy_mode is not NIL.
1691         (Fload_char_attribute_table_map_function): Use
1692         `get_char_id_table_0' instead of `get_char_id_table'.
1693         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1694
1695         * chartab.h (get_char_id_table_0): New inline function.
1696         (get_char_id_table): Use `get_char_id_table_0'.
1697
1698 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1699
1700         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1701         and `COMPOSE_ADD_CHAR'.
1702         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1703
1704 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1705
1706         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1707         instead of `DECODE_ADD_UCS_CHAR'.
1708         (COMPOSE_ADD_CHAR): Likewise.
1709
1710 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1711
1712         * text-coding.c (decode_flush_er_chars): New inline function.
1713         (decode_add_er_char): New function.
1714         (decode_coding_utf8): Use `decode_flush_er_chars' and
1715         `decode_add_er_char'.
1716
1717 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1718
1719         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1720         done before `decode_output_utf8_partial_char'.
1721
1722         * mule-charset.c (complex_vars_of_mule_charset): Specify
1723         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1724         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1725
1726 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1727
1728         * mule-charset.c (decode_defined_char): New function; search
1729         mother.
1730         (decode_builtin_char): Don't search mother if
1731         XCHARSET_MAX_CODE(charset) == 0.
1732         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1733         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1734         (Fdecode_char): Use `decode_defined_char' instead of
1735         `DECODE_DEFINED_CHAR'.
1736         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1737         mother of `Vcharset_ucs_jis'.
1738
1739         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1740         instead of `DECODE_DEFINED_CHAR'.
1741
1742         * char-ucs.h (decode_defined_char): Renamed from
1743         `DECODE_DEFINED_CHAR'; changed to normal function.
1744         (DECODE_CHAR): Use `decode_defined_char' instead of
1745         `DECODE_DEFINED_CHAR'.
1746
1747         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1748
1749 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1750
1751         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1752
1753         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1754         variable.
1755         (Quse_entity_reference): New variable.
1756         (Qd): New variable.
1757         (Qx): New variable.
1758         (QX): New variable.
1759         (coding_system_description): Add description for
1760         `ccs_priority_list'.
1761         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1762         (allocate_coding_system): Initialize `ccs_priority_list' in
1763         UTF-2000.
1764         (Fmake_coding_system): Add description about
1765         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1766         (codesys).
1767         (Fcoding_system_property): Accept `disable-composition' and
1768         `use-entity-reference' in UTF-2000.
1769         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1770         in UTF-2000.
1771         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1772         (decode_coding_utf8): Decode entity-reference if
1773         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1774         (char_encode_utf8): Encode non-Unicode characters as
1775         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1776         (str->codesys).
1777         (syms_of_file_coding): Add new symbols `use-entity-reference',
1778         `d', `x', `X'.
1779         (vars_of_file_coding): Add new variable
1780         `coded-charset-entity-reference-alist'.
1781         (complex_vars_of_file_coding): Declare `disable-composition' and
1782         `use-entity-reference' to be coding-system-properties in UTF-2000.
1783
1784         * file-coding.h (struct Lisp_Coding_System): Add new member
1785         `use_entity_reference' and `ccs_priority_list'.
1786         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1787         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1788         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1789
1790 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1791
1792         * chartab.c (save_uint8_byte_table): Don't clear the table.
1793         (save_uint16_byte_table): Likewise.
1794         (save_byte_table): Likewise.
1795         (Fmount_char_attribute_table): New function.
1796         (syms_of_chartab): Add new builtin function
1797         `mount-char-attribute-table'.
1798
1799 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1800
1801         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1802         "w+" mode.
1803         (load_char_decoding_entry_maybe): Open database as read-only mode.
1804
1805         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1806         open database as "w+" mode.
1807         (load_char_attribute_maybe): Open database as read-only mode.
1808         (Fload_char_attribute_table): Likewise.
1809
1810 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1811
1812         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1813         (char_table_description): Delete member `db_file'.
1814         (Fmake_char_table): Don't refer `ct->db_file'.
1815         (Fcopy_char_table): Likewise.
1816         (Fsave_char_attribute_table): Likewise.
1817         (Fclose_char_attribute_table): Likewise.
1818         (Freset_char_attribute_table): Likewise.
1819         (load_char_attribute_maybe): Likewise.
1820         (Fload_char_attribute_table): Likewise.
1821
1822         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1823
1824 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1825
1826         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1827         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1828         `ct->db' is living.
1829         (load_char_attribute_maybe): Likewise.
1830         (Fload_char_attribute_table): Likewise.
1831
1832 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1833
1834         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1835         `ct->db_file' unconditionally.
1836
1837 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1838
1839         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1840         UTF-2000.
1841         (char_table_description): Add description for `db_file' and `db'
1842         in UTF-2000.
1843         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1844         UTF-2000.
1845         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1846         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1847         (Fclose_char_attribute_table): New function.
1848         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1849         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1850         and `cit->db'.
1851         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1852         (syms_of_chartab): Add new builtin function
1853         `Fclose_char_attribute_table'.
1854
1855 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1856
1857         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1858         `db' in UTF-2000.
1859         (load_char_attribute_maybe): Change interface.
1860         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1861
1862 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1863
1864         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1865
1866 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1867
1868         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1869         instead of `DECODE_CHAR' for mother; don't use special code for
1870         chinese-big5 to use code space of chinese-big5-1 and
1871         chinese-big5-2.
1872         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1873         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1874
1875         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1876         (MAX_CHAR_BIG5_CDP): Revival.
1877
1878 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1879
1880         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1881         the XLFD registry-encoding name of `chinese-big5'.
1882
1883 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1884
1885         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1886         (Qchinese_big5_cdp): Deleted.
1887         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1888         (complex_vars_of_mule_charset): Delete coded-charset
1889         `chinese-big5-cdp'.
1890
1891         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1892         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1893         `CHARSET_ID_OFFSET - n' for private CCS.
1894         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1895         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1896         of `MIN_LEADING_BYTE'.
1897         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1898         `(CHARSET_ID_OFFSET - 97)'.
1899         (MIN_CHAR_BIG5_CDP): Deleted.
1900         (MAX_CHAR_BIG5_CDP): Deleted.
1901
1902 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1903
1904         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1905
1906 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1907
1908         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1909         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1910         chartab.c].
1911
1912         * chartab.c (Vutf_2000_version): Moved to mule.c.
1913         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1914
1915 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1916
1917         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1918         when HAVE_CHISE_CLIENT is not defined.
1919
1920         * mule.c (vars_of_mule): Provide feature `chise' when
1921         HAVE_CHISE_CLIENT is defined.
1922
1923 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1924
1925         * config.h.in (UTF2000): Add comment.
1926         (HAVE_CHISE_CLIENT): New macro.
1927
1928 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1929
1930         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1931         CONSP.
1932         (Fput_char_attribute): Likewise.
1933         (char_attribute_system_db_file): Encode file-name of attribute.
1934         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1935         the initial value.
1936
1937 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1938
1939         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1940         (Fsave_charset_mapping_table): Use
1941         `char_attribute_system_db_file'.
1942         (load_char_decoding_entry_maybe): Likewise.
1943
1944         * chartab.h (Qsystem_char_id): New external variable.
1945         (char_attribute_system_db_file): New prototype.
1946
1947         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1948         (char_attribute_system_db_file): New function.
1949         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1950         (Freset_char_attribute_table): Likewise.
1951         (load_char_attribute_maybe): Likewise.
1952         (Fload_char_attribute_table): Likewise.
1953         (syms_of_chartab): Add new symbol `system-char-id'.
1954
1955 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1956
1957         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1958         `XCHARSET_GRAPHIC(ccs)'.
1959
1960 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1961
1962         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1963
1964 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1965
1966         * chartab.c (Q_ucs_variants): New variable.
1967         (syms_of_chartab): Add new symbol `->ucs-variants'.
1968         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1969         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1970         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1971
1972         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1973
1974         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1975         `HAVE_DATABASE' is defined.
1976         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1977         `HAVE_DATABASE' is defined.
1978
1979 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1980
1981         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1982         attribute-table.
1983         (Freset_char_attribute_table): New function.
1984         (syms_of_chartab): Add new builtin function
1985         `reset-char-attribute-table'.
1986
1987 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1988
1989         * chartab.c (load_char_attribute_maybe): Don't make directories.
1990
1991 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1992
1993         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1994
1995         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1996         for decoding-table.
1997
1998 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1999
2000         * mule-charset.c (Fsave_charset_mapping_table): Use
2001         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
2002
2003         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
2004         instead of `XCHARSET_CHARS'.
2005
2006 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2007
2008         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
2009         (XCHARSET_BYTE_SIZE): Likewise.
2010
2011         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
2012         mule-charset.c].
2013         (XCHARSET_BYTE_SIZE): Likewise.
2014
2015 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2016
2017         * chartab.c (Fput_char_attribute): Use exec-directory instead of
2018         data-directory to store database.
2019         (Fsave_char_attribute_table): Likewise.
2020         (load_char_attribute_maybe): Likewise.
2021         (Fload_char_attribute_table): Likewise.
2022
2023 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2024
2025         * mule-charset.c (Fsave_charset_mapping_table): New function.
2026         (syms_of_mule_charset): Add new builtin function
2027         `save-charset-mapping-table'.
2028
2029 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2030
2031         * char-ucs.h (decoding_table_check_elements): Delete prototype.
2032         (get_ccs_octet_table): New inline function.
2033         (put_ccs_octet_table): Likewise.
2034         (decoding_table_put_char): Use `get_ccs_octet_table' and
2035         `put_ccs_octet_table'.
2036         (decoding_table_remove_char): Use `decoding_table_put_char'.
2037         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
2038
2039         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
2040         into encoding_table.
2041         (make_charset): Use Qunbound instead Qnil as initial value of
2042         decoding_table.
2043
2044 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2045
2046         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
2047         element is Qunloaded.
2048         (map_over_uint16_byte_table): Likewise.
2049         (map_over_byte_table): Likewise.
2050         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
2051         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
2052         database support, load encoding-table of the specified
2053         coded-charset if it is not loaded yet.
2054         (save_uint8_byte_table): New function of UTF-2000 with external
2055         database support.
2056         (save_uint16_byte_table): Likewise.
2057         (save_byte_table): Likewise.
2058         (Fput_char_attribute): Don't store value into external database
2059         even if the external database feature is supported in UTF-2000;
2060         set `attribute' as name of char-table if the external database
2061         feature is supported.
2062         (Fsave_char_attribute_table): New function in UTF-2000.
2063         (syms_of_chartab): Add new builtin function
2064         `save-char-attribute-table' in UTF-2000.
2065
2066 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2067
2068         * chartab.c (char_attribute_table_to_put): New variable in
2069         UTF-2000.
2070         (Qput_char_table_map_function): Likewise.
2071         (value_to_put): Likewise.
2072         (Fput_char_table_map_function): New function in UTF-2000.
2073         (put_char_table): Use `Fmap_char_attribute' for
2074         CHARTAB_RANGE_CHARSET in UTF-2000.
2075         (Fput_char_attribute): Store symbol instead of string in
2076         `XCHAR_TABLE_NAME (table)'.
2077         (load_char_attribute_maybe): Likewise.
2078         (syms_of_chartab): Add new symbol/function
2079         `put-char-table-map-function'.
2080
2081 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2082
2083         * database.h: Add new EXFUN for `Fmap_database'.
2084
2085         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
2086         (syms_of_database): Likewise.
2087
2088         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
2089         UTF-2000.
2090         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
2091         (XCHAR_TABLE_UNLOADED): Likewise.
2092
2093         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
2094         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
2095         HAVE_DATABASE is defined.
2096         (char_attribute_table_to_load): New variable of UTF-2000 with
2097         external database support.
2098         (Qload_char_attribute_table_map_function): Likewise.
2099         (Fload_char_attribute_table_map_function): New function of
2100         UTF-2000 with external database support.
2101         (Fload_char_attribute_table): New function of UTF-2000.
2102         (Fmap_char_attribute): Call Fload_char_attribute_table if
2103         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
2104         (syms_of_chartab): Add new symbol and function
2105         `load-char-attribute-table-map-function' in UTF-2000 with external
2106         database support; add new function `load-char-attribute-table' in
2107         UTF-2000.
2108
2109 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2110
2111         * chartab.h (load_char_attribute_maybe): New prototype for
2112         UTF-2000 with DATABASE support.
2113         (get_char_id_table): Use `load_char_attribute_maybe' if
2114         HAVE_DATABASE is defined.
2115
2116         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
2117         with DATABASE support.
2118
2119 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2120
2121         * chartab.c (Fput_char_attribute): Use S-expression as key of
2122         external database.
2123
2124         * chartab.h (get_char_id_table): Use S-expression as key of
2125         external database.
2126
2127 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2128
2129         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
2130         if an element is not loaded, load the corresponding attributes
2131         from an external database.
2132         (map_over_uint16_byte_table): Likewise.
2133         (map_over_byte_table): Likewise.
2134         (map_char_table): Modify for `map_over_uint8_byte_table',
2135         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
2136         element is not loaded, load the corresponding attributes from an
2137         external database.
2138         (Fput_char_attribute): Change initial values to Qunloaded.
2139
2140         * chartab.h (get_char_id_table): If a character attribute is not
2141         loaded and the attribute value is not found in an external
2142         database, store Qunbound as the attribute value.
2143
2144 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2145
2146         * chartab.c (BT_UINT8_unloaded): New macro.
2147         (UINT8_VALUE_P): Accept Qunloaded.
2148         (UINT8_ENCODE): Likewise.
2149         (UINT8_DECODE): Likewise.
2150         (BT_UINT16_unloaded): New macro.
2151         (UINT16_VALUE_P): Accept Qunloaded.
2152         (UINT16_ENCODE): Likewise.
2153         (UINT16_DECODE): Likewise.
2154         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2155         BT_UINT16_unloaded.
2156         (mark_char_table): Mark `ct->name' in UTF-2000.
2157         (char_table_description): Add `name' in UTF-2000.
2158         (Fmake_char_table): Initialize `ct->name'.
2159         (Fcopy_char_table): Copy `ct->name'.
2160         (Fput_char_attribute): Store value into an external database if
2161         HAVE_DATABASE is defined.
2162
2163         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2164         UTF-2000.
2165         (CHAR_TABLE_NAME): New macro in UTF-2000.
2166         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2167         (get_char_id_table): Try to read an external database if Qunloaded
2168         is stored in a table.
2169
2170         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2171         Qunloaded.
2172
2173 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2174
2175         * database.h: Add EXFUN definitions for Fopen_database,
2176         Fput_database, Fget_database and Fclose_database.
2177
2178         * data.c (Qunloaded): New variable in UTF-2000.
2179
2180         * lisp.h (Qunloaded): New variable in UTF-2000.
2181
2182 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2183
2184         * mule-charset.c (put_char_ccs_code_point): Modify for
2185         `decoding_table_remove_char' and `decoding_table_put_char'.
2186         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2187
2188         * char-ucs.h (decoding_table_remove_char): Change arguments to
2189         hide decoding_table vector.
2190         (decoding_table_put_char): Likewise.
2191
2192 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2193
2194         * mule-charset.c (decoding_table_remove_char): Moved to
2195         char-ucs.h.
2196         (decoding_table_put_char): Likewise.
2197
2198         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2199         from mule-charset.c].
2200         (decoding_table_remove_char): New inline function [moved from
2201         mule-charset.c].
2202         (decoding_table_put_char): Likewise.
2203
2204 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2205
2206         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2207         extension.
2208
2209 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2210
2211         * mule-charset.c (decode_builtin_char): Support mother charsets.
2212
2213 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2214
2215         * mule-charset.c (Q94x94x60): New variable.
2216         (charset_code_point): Support conversion `94x94x60'.
2217         (Fmake_charset): Likewise.
2218         (syms_of_mule_charset): Add new symbol `94x94x60'.
2219
2220         * char-ucs.h (CONVERSION_94x94x60): New macro.
2221
2222 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2223
2224         * mule-charset.c (charset_code_point): Unify code about
2225         `code-offset'.
2226
2227 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2228
2229         * mule-charset.c (charset_code_point): Merge code about builtin
2230         characters into code about mother charsets; don't use
2231         `range_charset_code_point'.
2232         (range_charset_code_point): Deleted.
2233
2234 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2235
2236         * mule-charset.c (Qcode_offset): New variable.
2237         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2238         `max-code'; accept new property `code-offset'.
2239         (syms_of_mule_charset): Add new symbol `code-offset'.
2240
2241 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2242
2243         * mule-charset.c (range_charset_code_point): Fixed.
2244
2245 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2246
2247         * mule-charset.c (decode_builtin_char): Change semantics of
2248         code-offset of coded-charset.
2249         (charset_code_point): Likewise.
2250         (range_charset_code_point): Likewise.
2251         (complex_vars_of_mule_charset): Modify for the change.
2252
2253 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2254
2255         * mule-charset.c (Fencode_char): Reverse arguments.
2256
2257         * mule-charset.c (charset_code_point): Fixed.
2258
2259 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2260
2261         * mule-charset.c (Vcharset_mojikyo): Deleted.
2262         (Vcharset_mojikyo_2022_1): Deleted.
2263         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2264         (Qmin_code): New variable in UTF-2000.
2265         (Qmax_code): Likewise.
2266         (Qmother): Likewise.
2267         (Qconversion): Likewise.
2268         (Q94x60): Likewise.
2269         (Qmojikyo): Deleted.
2270         (Qmojikyo_2022_1): Deleted.
2271         (Qmojikyo_pj_{1..22}): Deleted.
2272         (mark_charset): Mark `cs->mother'.
2273         (charset_description): Add description for `mother'.
2274         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2275         new arguments `mother' and `conversion'; use
2276         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2277         (charset_code_point): Moved from char-ucs.h; support `mother'
2278         charset feature.
2279         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2280         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2281         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2282         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2283         allow 2 as the value of `graphic' in UTF-2000; add new properties
2284         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2285         require `final' in UTF-2000; modify for `make_charset'.
2286         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2287         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2288         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2289         (Fencode_char): New function.
2290         (syms_of_mule_charset): Add new builtin function `encode-char' in
2291         UTF-2000; add new symbols `min-code', `max-code', `mother',
2292         `conversion' and `94x60'; delete symbols `mojikyo',
2293         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2294         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2295         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2296         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2297
2298         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2299         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2300
2301         * char-ucs.h (Vcharset_mojikyo): Deleted.
2302         (Vcharset_mojikyo_2022_1): Deleted.
2303         (LEADING_BYTE_MOJIKYO): Deleted.
2304         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2305         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2306         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2307         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2308         add new member `mother'; add new member `conversion'.
2309         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2310         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2311         (CHARSET_MOTHER): New macro.
2312         (CHARSET_CONVERSION): New macro.
2313         (CONVERSION_IDENTICAL): New macro.
2314         (CONVERSION_94x60): New macro.
2315         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2316         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2317         (XCHARSET_MOTHER): New macro.
2318         (XCHARSET_CONVERSION): New macro.
2319         (MIN_CHAR_MOJIKYO): Deleted.
2320         (MAX_CHAR_MOJIKYO): Deleted.
2321         (DECODE_MOJIKYO_2022): Deleted.
2322         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2323         (charset_code_point): Changed to non-inline function.
2324         (encode_char_1): Use `charset_code_point'.
2325         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2326
2327 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2328
2329         * lread.c (read_compiled_function): Fix prototype.
2330         (read_vector): Likewise.
2331
2332 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2333
2334         * lrecord.h (struct lrecord_header): Delete `older'.
2335         (set_lheader_implementation): Delete code for `older'.
2336         (set_lheader_older_implementation): Deleted.
2337         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2338         (OLDER_RECORD_P): Deleted.
2339         (OLDER_RECORD_HEADER_P): Deleted.
2340         (alloc_older_lcrecord): Deleted.
2341         (alloc_older_lcrecord_type): Deleted.
2342
2343         * alloc.c (all_older_lcrecords): Deleted.
2344         (alloc_older_lcrecord): Deleted.
2345         (disksave_object_finalization_1): Delete code for older objects.
2346         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2347         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2348
2349 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2350
2351         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2352         instead of `make_older_vector'.
2353         (put_char_ccs_code_point): Likewise.
2354         (mark_charset): Mark `cs->decoding_table'.
2355         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2356
2357         * lisp.h (make_older_vector): Deleted.
2358         (make_vector_newer): Deleted.
2359
2360         * config.h.in (HAVE_GGC): Deleted.
2361
2362         * alloc.c (make_older_vector): Deleted.
2363         (make_vector_newer_1): Deleted.
2364         (make_vector_newer): Deleted.
2365
2366 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2367
2368         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2369         (Qideograph_daikanwa_2): New variable.
2370         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2371         (complex_vars_of_mule_charset): Add new coded-charset
2372         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2373         `LEADING_BYTE_DAIKANWA'.
2374
2375         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2376         (LEADING_BYTE_DAIKANWA_1): New macro.
2377         (LEADING_BYTE_DAIKANWA_2): New macro.
2378         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2379
2380 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2381
2382         * mule-charset.c (complex_vars_of_mule_charset): Change
2383         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2384         the second revised version.
2385
2386 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2387
2388         * mule-charset.c (Vcharset_ucs_smp): New variable.
2389         (Vcharset_ucs_sip): New variable.
2390         (Qucs_smp): New variable.
2391         (Qucs_sip): New variable.
2392         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2393         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2394         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2395         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2396         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2397         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2398
2399         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2400         (LEADING_BYTE_UCS_SIP): New macro.
2401         (MIN_CHAR_SMP): New macro.
2402         (MAX_CHAR_SMP): New macro.
2403         (MIN_CHAR_SIP): New macro.
2404         (MAX_CHAR_SIP): New macro.
2405
2406 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2407
2408         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2409         utf-2000.
2410
2411 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2412
2413         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2414         value; don't store value into `encoding_table' of `Lisp_Charset'.
2415         (mark_charset): `encoding_table' was deleted.
2416         (charset_description): Likewise.
2417         (make_charset): Likewise.
2418         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2419         `put_char_ccs_code_point'.
2420
2421         * chartab.h (Fput_char_attribute): New EXFUN.
2422
2423         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2424         is unified with normal symbol space.
2425         (Fget_char_attribute): Likewise.
2426         (Fput_char_attribute): Likewise; behavior of
2427         `put_char_ccs_code_point' is changed.
2428
2429         * char-ucs.h: Include "elhash.h".
2430         (Vchar_attribute_hash_table): New external variable.
2431         (struct Lisp_Charset): Delete `encoding_table'.
2432         (CHARSET_ENCODING_TABLE): New implementation; refer
2433         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2434         `Lisp_Charset'.
2435
2436 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2437
2438         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2439         (cs) == 0.
2440
2441 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2442
2443         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2444         `chinese-big5'.
2445
2446 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2447
2448         * chartab.c (uint8_byte_table_description): New constant.
2449         (uint8-byte-table): Use `uint8_byte_table_description'.
2450         (uint16_byte_table_description): New constant.
2451         (uint16-byte-table): Use `uint16_byte_table_description'.
2452
2453 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2454
2455         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2456         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2457
2458 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2459
2460         * mule-charset.c (Vcharset_ucs_ks): New variable.
2461         (Qucs_ks): New variable.
2462         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2463         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2464
2465         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2466
2467 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2468
2469         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2470         (Fdecode_char): Likewise.
2471
2472         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2473         chartab.h.
2474         (Fdefine_char): Modify for Fdecode_char.
2475         (Ffind_char): Likewise.
2476
2477         * mule-charset.c (Fdecode_char): Add new optional argument
2478         `defined-only'.
2479         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2480
2481 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2482
2483         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2484         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2485         (allocate_coding_system): Initialize initial-charsets of
2486         CODESYS_BIG5 in XEmacs UTF-2000.
2487         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2488         CODESYS_BIG5 in XEmacs UTF-2000.
2489         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2490         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2491
2492         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2493         variables.
2494         (Qideograph_hanziku_{1 .. 12}): Likewise.
2495         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2496         .. 12}'.
2497         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2498         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2499         `ideograph-hanziku-{1 .. 12}'.
2500
2501         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2502         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2503         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2504         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2505         (DECODE_DEFINED_CHAR): New inline function.
2506         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2507
2508 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2509
2510         * mule-charset.c (Vcharset_china3_jef): Renamed from
2511         `Vcharset_japanese_jef_china3'.
2512         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2513         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2514         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2515         (syms_of_mule_charset): Rename `china3-jef' from
2516         `japanese-jef-china3'.
2517         (complex_vars_of_mule_charset): Likewise; rename
2518         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2519
2520         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2521         `LEADING_BYTE_JEF_CHINA3'.
2522         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2523         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2524
2525 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2526
2527         * mule-charset.c (encode_builtin_char_1): Comment out special code
2528         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2529
2530         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2531         (MAX_CHAR_MOJIKYO_0): Comment out.
2532         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2533         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2534         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2535         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2536
2537 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2538
2539         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2540         (Qideograph_cbeta): New variable.
2541         (encode_builtin_char_1): Comment out special code for
2542         coded-charset `mojikyo' and `japanese-jef-china3'.
2543         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2544         (complex_vars_of_mule_charset): Add new coded-charset
2545         `ideograph-cbeta'.
2546
2547         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2548         (MIN_CHAR_CBETA): New macro.
2549         (MAX_CHAR_CBETA): New macro.
2550
2551 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2552
2553         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2554         (LEADING_BYTE_JEF_CHINA3): New macro.
2555         (MIN_CHAR_JEF_CHINA3): New macro.
2556         (MAX_CHAR_JEF_CHINA3): Likewise.
2557         (DECODE_CHAR): Fixed.
2558
2559 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2560
2561         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2562         (Qjapanese_jef_china3): New variable.
2563         (encode_builtin_char_1): Support `japanese-jef-china3'.
2564         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2565         (complex_vars_of_mule_charset): Add new coded-charset
2566         `japanese-jef-china3'.
2567
2568 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2569
2570         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2571         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2572         94^4, 96^3, 96^4, 128^n and 256^n set.
2573         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2574         (map_char_table): Likewise.
2575
2576 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2577
2578         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2579         UTF-2000.
2580
2581 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2582
2583         * chartab.h (get_char_id_table): New inline function.
2584
2585         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2586         function.
2587
2588 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2589
2590         * chartab.h (decode_char_table_range): New prototype in XEmacs
2591         UTF-2000.
2592         (put_char_id_table): New inline function in XEmacs UTF-2000.
2593
2594         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2595         function.
2596         (decode_char_table_range): Delete static declaration in XEmacs
2597         UTF-2000.
2598
2599 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2600
2601         * chartab.c (put_char_id_table): Use `put_char_table'.
2602
2603 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2604
2605         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2606         (map_over_uint16_byte_table): Likewise.
2607         (map_over_byte_table): Likewise.
2608         (map_char_table): Modify for `map_over_uint8_byte_table',
2609         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2610         UTF-2000.
2611
2612 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2613
2614         * chartab.c (struct map_char_table_for_charset_arg): New
2615         structure.
2616         (map_char_table_for_charset_fun): New function.
2617         (map_char_table): Use `map_char_table' for encoding_table of
2618         `range->charset'.
2619
2620 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2621
2622         * chartab.c (map_char_table): Check a character is found in
2623         range->charset instead of non default value is defined in
2624         char-table when range is CHARTAB_RANGE_ROW.
2625
2626 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2627
2628         * chartab.c (map_char_id_table): Deleted.
2629         (Fmap_char_attribute): Use `map_char_table' instead of
2630         `map_char_id_table'.
2631
2632 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2633
2634         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2635         UTF-2000.
2636         (update_syntax_table): Deleted in XEmacs UTF-2000.
2637
2638         * syntax.c (find_defun_start): Use `syntax_table' instead of
2639         `mirror_syntax_table' in XEmacs UTF-2000.
2640         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2641         UTF-2000.
2642         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2643         XEmacs UTF-2000.
2644         (Fmatching_paren): Likewise.
2645         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2646         in XEmacs UTF-2000.
2647         (find_start_of_comment): Likewise.
2648         (find_end_of_comment): Likewise.
2649         (Fforward_comment): Likewise.
2650         (scan_lists): Likewise.
2651         (char_quoted): Likewise.
2652         (Fbackward_prefix_chars): Likewise.
2653         (scan_sexps_forward): Likewise.
2654         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2655         (update_syntax_table): Likewise.
2656
2657         * search.c (skip_chars): Use `syntax_table' instead of
2658         `mirror_syntax_table' in XEmacs UTF-2000.
2659         (wordify): Likewise.
2660         (Freplace_match): Likewise.
2661
2662         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2663         `mirror_syntax_table' in XEmacs UTF-2000.
2664         (WORDCHAR_P_UNSAFE): Likewise.
2665         (re_match_2_internal): Likewise.
2666
2667         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2668         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2669
2670         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2671         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2672
2673         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2674         XEmacs UTF-2000.
2675
2676         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2677         UTF-2000.
2678         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2679         (char_table_description): Delete `mirror_table' in XEmacs
2680         UTF-2000.
2681         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2682         UTF-2000.
2683         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2684         (Fcopy_char_table): Likewise.
2685         (put_char_table): Don't call `update_syntax_table' in XEmacs
2686         UTF-2000.
2687
2688         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2689         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2690         (casify_region_internal): Likewise.
2691
2692         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2693
2694         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2695         `mirror_syntax_table' in XEmacs UTF-2000.
2696
2697         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2698         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2699         (Fexpand_abbrev): Likewise.
2700
2701 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2702
2703         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2704
2705 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2706
2707         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2708         (map_over_uint16_byte_table): Likewise.
2709         (map_over_byte_table): Likewise.
2710         (get_char_id_table): Refer `cit->default_value'.
2711         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2712         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2713         of character-id ranges.
2714         (mark_char_table): Mark `ct->default_value'.
2715         (char_table_description): Add `default_value'.
2716         (fill_char_table): Use `default_value'.
2717         (decode_char_table_range): Decode `nil' as
2718         `CHARTAB_RANGE_DEFAULT'.
2719         (get_char_id_table): Refer `cit->default_value'.
2720         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2721         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2722         temporary hack; check value of char-table is bound or not.
2723         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2724
2725         * chartab.h (struct Lisp_Char_Table): Add new member
2726         `default_value' in XEmacs UTF-2000.
2727         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2728         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2729         UTF-2000.
2730
2731 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2732
2733         * chartab.h (Lisp_Char_ID_Table): Deleted.
2734
2735         * chartab.c (char_table_description): Fix typo.
2736         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2737         `Lisp_Char_ID_Table'.
2738
2739 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2740
2741         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2742         `CHAR_ID_TABLE_P'.
2743
2744         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2745         `CHAR_ID_TABLE_P'.
2746
2747         * chartab.h (XCHAR_ID_TABLE): Deleted.
2748         (XSETCHAR_ID_TABLE): Deleted.
2749         (CHAR_ID_TABLE_P): Deleted.
2750
2751         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2752         `CHAR_ID_TABLE_P'.
2753         (Fget_composite_char): Likewise.
2754         (put_char_table): Likewise.
2755         (add_char_attribute_alist_mapper): Fixed.
2756         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2757         `CHAR_ID_TABLE_P'.
2758         (Fget_char_attribute): Likewise.
2759         (Fget_char_attribute): Likewise.
2760         (Fmap_char_attribute): Likewise.
2761
2762         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2763         `CHAR_ID_TABLE_P'.
2764         (encode_char_1): Likewise.
2765
2766 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2767
2768         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2769         `XCHAR_ID_TABLE'.
2770
2771         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2772         instead of `XCHAR_ID_TABLE'.
2773         (remove_char_ccs): Likewise.
2774
2775         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2776         `XCHAR_ID_TABLE'.
2777         (Fget_composite_char): Likewise.
2778         (Fchar_variants): Likewise.
2779         (put_char_table): Likewise.
2780         (add_char_attribute_alist_mapper): Likewise.
2781         (Fchar_attribute_alist): Likewise.
2782         (Fget_char_attribute): Likewise.
2783         (Fput_char_attribute): Likewise.
2784         (Fmap_char_attribute): Likewise.
2785         (Fmap_char_attribute): Likewise.
2786
2787         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2788         `XCHAR_ID_TABLE'.
2789         (encode_char_1): Likewise.
2790
2791 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2792
2793         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2794         `Lisp_Char_ID_Table'.
2795         (mark_char_id_table): Deleted.
2796         (print_char_id_table): Likewise.
2797         (char_id_table_equal): Likewise.
2798         (char_id_table_hash): Likewise.
2799         (char_id_table_description): Likewise.
2800         (char_id_table): Likewise.
2801         (make_char_id_table): Use `Fmake_char_table' and
2802         `fill_char_table'.
2803         (get_char_id_table): Use `Lisp_Char_Table' instead of
2804         `Lisp_Char_ID_Table'.
2805         (put_char_id_table): Likewise.
2806         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2807         `XCHAR_ID_TABLE'.
2808         (Fremove_char_attribute): Likewise.
2809         (syms_of_chartab): Don't define type `char-id-table'.
2810
2811         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2812         (char_id_table): Likewise.
2813         (GC_CHAR_ID_TABLE_P): Likewise.
2814         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2815         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2816         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2817         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2818         (get_char_id_table): Use `Lisp_Char_Table' instead of
2819         `Lisp_Char_ID_Table'.
2820         (put_char_id_table_0): Likewise.
2821         (put_char_id_table): Likewise.
2822
2823 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2824
2825         * chartab.h: Lisp_Byte_Table related codes are moved from
2826         chartab.h.
2827
2828         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2829
2830 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2831
2832         * chartab.h: Don't include "chartab.h".
2833         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2834         (Lisp_Char_ID_Table): Likewise.
2835         (char_id_table): Likewise.
2836         (XCHAR_ID_TABLE): Likewise.
2837         (XSETCHAR_ID_TABLE): Likewise.
2838         (CHAR_ID_TABLE_P): Likewise.
2839         (GC_CHAR_ID_TABLE_P): Likewise.
2840         (get_char_id_table): Likewise.
2841
2842         * char-ucs.h: Include "chartab.h".
2843         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2844         (Lisp_Char_ID_Table): Likewise.
2845         (char_id_table): Likewise.
2846         (XCHAR_ID_TABLE): Likewise.
2847         (XSETCHAR_ID_TABLE): Likewise.
2848         (CHAR_ID_TABLE_P): Likewise.
2849         (GC_CHAR_ID_TABLE_P): Likewise.
2850         (get_char_id_table): Likewise.
2851
2852 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2853
2854         * chartab.c (copy_uint8_byte_table): New function.
2855         (copy_uint16_byte_table): New function.
2856         (copy_byte_table): New function.
2857         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2858         characters to call.
2859         (map_over_uint16_byte_table): Likewise.
2860         (map_over_byte_table): Likewise.
2861         (get_byte_table): Move prototype to chartab.h.
2862         (put_byte_table): Likewise.
2863         (put_char_id_table_0): Moved to chartab.h.
2864         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2865         (char_table_entry_equal): Likewise.
2866         (char_table_entry_hash): Likewise.
2867         (char_table_entry_description): Likewise.
2868         (char_table_entry): Likewise.
2869         (make_char_table_entry): Likewise.
2870         (copy_char_table_entry): Likewise.
2871         (get_non_ascii_char_table_value): Likewise.
2872         (map_over_charset_ascii): Likewise.
2873         (map_over_charset_control_1): Likewise.
2874         (map_over_charset_row): Likewise.
2875         (map_over_other_charset): Likewise.
2876         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2877         (print_char_table): Likewise.
2878         (char_table_equal): Likewise.
2879         (char_table_hash): Likewise.
2880         (char_table_description): Likewise.
2881         (fill_char_table): Likewise.
2882         (Fcopy_char_table): Likewise.
2883         (get_char_table): Likewise.
2884         (Fget_range_char_table): Likewise.
2885         (put_char_table): Likewise.
2886         (map_char_table): Likewise.
2887         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2888         UTF-2000.
2889
2890 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2891
2892         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2893         `Vauto_fill_chars' in XEmacs UTF-2000.
2894
2895         * chartab.h (get_byte_table): New prototype [moved from
2896         chartab.c].
2897         (put_byte_table): Likewise [moved from chartab.c].
2898         (put_char_id_table_0): New inline function [moved from chartab.c].
2899         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2900         (Lisp_Char_Table_Entry): Likewise.
2901         (char_table_entry): Likewise.
2902         (XCHAR_TABLE_ENTRY): Likewise.
2903         (XSETCHAR_TABLE_ENTRY): Likewise.
2904         (CHAR_TABLE_ENTRYP): Likewise.
2905         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2906         (NUM_ASCII_CHARS): Likewise.
2907         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2908         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2909
2910 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2911
2912         * chartab.c (get_char_id_table): Change interface.
2913         (put_char_id_table_0): New function.
2914         (put_char_id_table): Change interface; new implementation.
2915         (Fget_composite_char): Modify for interface change of
2916         `get_char_id_table'.
2917         (Fchar_variants): Likewise.
2918         (add_char_attribute_alist_mapper): Likewise.
2919         (Fchar_attribute_alist): Likewise.
2920         (Fget_char_attribute): Likewise.
2921         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2922         as same as character as the first argument like `put-char-table';
2923         modify for interface change of `put_char_id_table'.
2924         (Fremove_char_attribute): Modify for interface change of
2925         `put_char_id_table'.
2926
2927 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2928
2929         * text-coding.c: Sync up with XEmacs 21.2.41.
2930         (COMPOSE_ADD_CHAR): Modify for interface change of
2931         `get_char_id_table'.
2932
2933         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2934         change of `put_char_id_table'.
2935         (remove_char_ccs): Likewise.
2936
2937         * chartab.h (put_char_id_table): Change interface.
2938
2939         * char-ucs.h (get_char_id_table): Change interface.
2940         (charset_code_point): Modify for interface change of
2941         `get_char_id_table'.
2942         (encode_char_1): Likewise.
2943
2944 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2945
2946         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2947         argument `ccs'.
2948         (map_over_uint16_byte_table): Likewise.
2949         (map_over_byte_table): Likewise.
2950         (map_char_id_table): Add new argument `range' like
2951         `map_char_table'.
2952         (Fmap_char_attribute): Add new argument `range' like
2953         `Fmap_char_table'.
2954
2955 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2956
2957         * chartab.c (map_over_uint8_byte_table): Change interface of
2958         mapping function to use struct chartab_range instead of Emchar.
2959         (map_over_uint16_byte_table): Likewise.
2960         (map_over_byte_table): Likewise.
2961         (map_char_id_table): Likewise.
2962         (struct slow_map_char_id_table_arg): Deleted.
2963         (slow_map_char_id_table_fun): Deleted.
2964         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2965         function `slow_map_char_table_fun' instead of struct
2966         `slow_map_char_id_table_arg' and function
2967         `slow_map_char_id_table_fun'.
2968
2969 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2970
2971         * mule-charset.c: Move char-it-table related codes to chartab.c.
2972         (Vutf_2000_version): Moved to chartab.c.
2973         (Fdefine_char): Likewise.
2974         (Ffind_char): Likewise.
2975         (syms_of_mule_charset): Move types `uint8-byte-table',
2976         `uint16-byte-table', `byte-table' and `char-id-table' to
2977         chartab.c; move functions `char_attribute_list,
2978         `find_char_attribute_table, `char_attribute_alist,
2979         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2980         `map_char_attribute, `define_char, `find_char, `char_variants and
2981         `get_composite_char to chartab.c; move symbols `=>ucs',
2982         `->decomposition', `compat', `isolated', `initial', `medial',
2983         `final', `vertical', `noBreak', `fraction', `super', `sub',
2984         `circle', `square', `wide', `narrow', `small' and `font' to
2985         chartab.c.
2986         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2987         setting codes for `Vcharacter_composition_table' and
2988         `Vcharacter_variant_table' to chartab.c.
2989         (complex_vars_of_mule_charset): Move setting code for
2990         `Vchar_attribute_hash_table' to chartab.c.
2991
2992         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2993         (make_char_id_table): New prototype.
2994         (put_char_id_table): Likewise.
2995         (Fget_char_attribute): Likewise.
2996
2997         * chartab.c: Move char-id-table related code from mule-charset.c.
2998         (Vutf_2000_version): Moved from mule-charset.c.
2999
3000         * char-ucs.h (Qucs): New external variable.
3001         (put_char_ccs_code_point): New prototype.
3002         (remove_char_ccs): Likewise.
3003
3004 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
3005
3006         * mule-charset.c (Vcharset_ucs_jis): New variable.
3007         (Qucs_jis): Likewise.
3008         (syms_of_mule_charset): Add new symbol `ucs-jis'.
3009         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
3010
3011         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
3012
3013 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3014
3015         * mule-charset.c (map_over_uint8_byte_table): New function.
3016         (map_over_uint16_byte_table): Likewise.
3017         (map_over_byte_table): Likewise.
3018         (map_char_id_table): Likewise.
3019         (slow_map_char_id_table_fun): Likewise.
3020         (Fmap_char_attribute): Likewise.
3021         (syms_of_mule_charset): Add new function `map-char-attribute'.
3022
3023 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3024
3025         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
3026         (syms_of_mule_charset): Add new function `find-char'.
3027
3028 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3029
3030         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
3031         XEmacs UTF-2000.
3032         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
3033         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
3034         XEmacs UTF-2000.
3035         (complex_vars_of_mule_charset): Add new coded-charset
3036         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
3037         `ideograph-gt-pj-*'.
3038
3039         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
3040
3041 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3042
3043         * mule-charset.c (encode_builtin_char_1): Purge codes about
3044         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
3045         {MIN|MAX}_CHAR_HEBREW.
3046         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
3047         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
3048
3049         * char-ucs.h (MIN_CHAR_GREEK): Purged.
3050         (MAX_CHAR_GREEK): Purged.
3051         (MIN_CHAR_CYRILLIC): Purged.
3052         (MAX_CHAR_CYRILLIC): Purged.
3053         (MIN_CHAR_HEBREW): Commented out.
3054         (MAX_CHAR_HEBREW): Likewise.
3055
3056 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3057
3058         * mule-charset.c (Qto_ucs): New variable.
3059         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
3060         (Fdefine_char): Likewise.
3061         (syms_of_mule_charset): Add new symbol `=>ucs'.
3062
3063 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3064
3065         * mule-charset.c (Fdecode_char): Fixed.
3066
3067 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3068
3069         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
3070         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
3071         "tcvn5712-1".
3072
3073 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3074
3075         * mule-charset.c (Vcharset_ucs_big5): New variable.
3076         (Qucs_big5): Likewise.
3077         (syms_of_mule_charset): Add new symbol `ucs-big5'.
3078         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
3079
3080         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
3081
3082 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3083
3084         * mule-charset.c (decode_builtin_char): Check Big5 code range
3085         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
3086
3087 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3088
3089         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
3090         (Qchinese_gb12345): Likewise.
3091         (Fdecode_builtin_char): Fixed.
3092         (syms_of_mule_charset): Add `chinese-gb12345'.
3093         (complex_vars_of_mule_charset): Add coded-charset
3094         `chinese-gb12345'.
3095
3096         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
3097         (LEADING_BYTE_CHINESE_GB12345): New macro.
3098
3099 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3100
3101         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
3102         and `latin-viscii-upper' for `latin-viscii'.
3103
3104 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3105
3106         * mule-charset.c (Fdecode_builtin_char): Comment out
3107         regularization code for ISO-IR GR representation.
3108
3109 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3110
3111         * mule-charset.c (decode_builtin_char): New function; renamed from
3112         `make_builtin_char'; return -1 instead of signal.
3113         (Fdecode_builtin_char): Use `decode_builtin_char'.
3114
3115         * char-ucs.h (decode_builtin_char): New prototype; renamed from
3116         `make_builtin_char'.
3117         (DECODE_CHAR): Use `decode_builtin_char' instead of
3118         `make_builtin_char'; use mapping table of `chinese-big5' for
3119         `chinese-big5-{1,2}'.
3120
3121 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3122
3123         * text-coding.c (char_encode_big5): New function.
3124         (char_finish_big5): Likewise.
3125         (reset_encoding_stream): Use `char_encode_big5' and
3126         `char_finish_big5' for CODESYS_BIG5.
3127         (mule_encode): Don't use `encode_coding_big5'.
3128         (encode_coding_big5): Deleted.
3129
3130 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3131
3132         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
3133         0x81- in XEmacs UTF-2000.
3134         (detect_coding_big5): Likewise.
3135
3136 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3137
3138         * mule-charset.c (Fdefine_char): Don't use a CCS property to
3139         generate character-id if the CCS property does not have
3140         corresponding predefined character.
3141         (make_builtin_char): Return -1 if corresponding predefined
3142         character is not found.
3143         (Fdecode_char): Return nil if corresponding character is not
3144         found.
3145         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
3146         don't map to builtin ucs space.
3147
3148 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3149
3150         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3151         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3152
3153 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3154
3155         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3156         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3157         (Qideograph_gt): Likewise.
3158         (Qideograph_gt_pj_{1..11}): Likewise.
3159         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3160         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3161         `ideograph-gt-pj-11'.
3162         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3163         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3164         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3165
3166         * char-ucs.h (LEADING_BYTE_GT): New macro.
3167         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3168         (MIN_CHAR_GT): Likewise.
3169         (MAX_CHAR_GT): Likewise.
3170
3171 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3172
3173         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3174         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3175
3176         * doprnt.c (unsigned_int_converters): Add `c'.
3177         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3178
3179         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3180         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3181         `MIN_CHAR_MOJIKYO'.
3182         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3183         (MAX_CHAR_MOJIKYO_0): New macro.
3184         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3185
3186 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3187
3188         * mule-charset.c (Fdefine_char): Delete cemented out code.
3189         (encode_builtin_char_1): Modify for new allocation of builtin
3190         Mojikyo characters.
3191
3192         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3193
3194 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3195
3196         * mule-charset.c (Vcharset_ucs_cns): New variable.
3197         (Qucs_cns): New variable.
3198         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3199         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3200
3201 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3202
3203         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3204
3205 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3206
3207         * search.c (search_buffer): Make `charset_base_code' as
3208         character-id >> 6 to eliminate the corresponding last byte in
3209         UTF-8 representation [I'm not sure it is right thing].
3210         (boyer_moore): Likewise.
3211
3212 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3213
3214         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3215         representation in MULE.
3216
3217 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3218
3219         * text-coding.c (Fmake_coding_system): Use
3220         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3221         `EXTERNAL_PROPERTY_LIST_LOOP'.
3222
3223 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3224
3225         * text-coding.c (decode_output_utf8_partial_char): New function.
3226         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3227
3228 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3229
3230         * text-coding.c (decode_coding_utf8): Output original byte
3231         sequence if it is broken; change order of conditions.
3232
3233         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3234         of conditions.
3235
3236         * mb-multibyte.h (BYTE_ASCII_P):
3237         Use bit ops for char-signedness safety.
3238         (BYTE_C0_P): Use bit ops for char-signedness safety.
3239         (BYTE_C1_P): Use bit ops for char-signedness safety.
3240
3241         * character.h: (XCHAR_OR_CHAR_INT):
3242         Always use inline function.
3243         Remove redundant type checking assert() - XINT will abort quite
3244         nicely.
3245
3246 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3247
3248         * text-coding.c: (Fencode_shift_jis_char):
3249         (Fencode_big5_char):
3250         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3251         Replace 0 with '\0' when working with bytes.
3252         Replace initial "(" with "\(" in docstrings.
3253
3254         (Fmake_coding_system):
3255         When type is ccl and value is vector, register it with a proper
3256         symbol.  And checks whether the given ccl program is valid.
3257         (mule_decode): When calling ccl_driver, if src indicates
3258         NULL pointer, set an empty string instead.
3259         (mule_encode): Likewise.
3260
3261         (detect_eol_type):
3262         (detect_coding_sjis):
3263         (decode_coding_sjis):
3264         (detect_coding_big5):
3265         (decode_coding_big5):
3266         (detect_coding_ucs4):
3267         (decode_coding_ucs4):
3268         (detect_coding_utf8):
3269         (decode_coding_utf8):
3270         (detect_coding_iso2022):
3271         (decode_coding_iso2022):
3272         (decode_coding_no_conversion):
3273         (mule_decode):
3274         Make all detecting and decoding functions take an Extbyte * arg.
3275         (text_encode_generic):
3276         (encode_coding_big5):
3277         (encode_coding_no_conversion):
3278         (mule_encode):
3279         Make all encoding functions take a Bufbyte * arg.
3280         Use size_t instead of unsigned int for memory sizes.
3281         Only cast to unsigned char whenever dereferencing Extbyte *.
3282
3283         (struct lrecord_description fcd_description_1): Use countof.
3284         (complex_vars_of_file_coding):
3285         Use countof instead of sizeof.
3286         Use CHECK_NATNUM instead of CHECK_INT.
3287
3288 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3289
3290         * mule-charset.c (Fget_char_attribute): Add new optional argument
3291         `default-value'.
3292         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3293         (remove_char_ccs): Likewise.
3294
3295 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3296
3297         * text-coding.c (char_encode_shift_jis): New implementation in
3298         UTF-2000.
3299         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3300         ...)'.
3301
3302         * mule-charset.c (Vcharset_chinese_big5): New variable in
3303         UTF-2000.
3304         (Qchinese_big5): New variable in UTF-2000.
3305         (BIG5_SAME_ROW): New macro in UTF-2000.
3306         (make_builtin_char): Use builtin characters of
3307         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3308         characters of `Vcharset_chinese_big5'.
3309         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3310         (complex_vars_of_mule_charset): Add new coded-charset
3311         `chinese-big5' in UTF-2000.
3312
3313         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3314         (Vcharset_chinese_big5): New external variable declaration.
3315         (Vcharset_japanese_jisx0208_1990): Likewise.
3316
3317 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3318
3319         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3320         function.
3321         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3322
3323 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3324
3325         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3326         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3327         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3328         `mojikyo-pj-*'.
3329
3330 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3331
3332         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3333
3334 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3335
3336         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3337         to 0.17.
3338
3339 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3340
3341         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3342         for `CHARSET_BY_ATTRIBUTES'.
3343         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3344         `CHARSET_BY_ATTRIBUTES'.
3345
3346         * text-coding.c (struct decoding_stream): Rename member `CH' to
3347         `CPOS'.
3348         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3349         (decode_coding_sjis): Likewise.
3350         (decode_coding_big5): Likewise.
3351         (decode_coding_ucs4): Likewise.
3352         (decode_coding_utf8): Likewise.
3353         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3354         `CHARSET_BY_ATTRIBUTES'.
3355         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3356         `str->counter'; decode 3, 4 bytes sets.
3357         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3358         sets.
3359         (decode_coding_no_conversion): Use `str->cpos' instead of
3360         `str->ch'.
3361
3362         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3363         (Qmojikyo_2022_1): New variable.
3364         (make_charset): Don't use `CHARSET_TYPE_*'.
3365         (range_charset_code_point): Support coded-charset
3366         `mojikyo-2022-1'.
3367         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3368         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3369         `CHARSET_BY_ATTRIBUTES'.
3370         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3371         `CHARSET_BY_ATTRIBUTES'.
3372         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3373         (complex_vars_of_mule_charset): Add new coded-charset
3374         `mojikyo-2022-1'.
3375
3376         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3377         interface; changed to inline function.
3378
3379         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3380         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3381         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3382         (CHARSET_TYPE_94): Deleted.
3383         (CHARSET_TYPE_94X94): Deleted.
3384         (CHARSET_TYPE_96): Deleted.
3385         (CHARSET_TYPE_96X96): Deleted.
3386         (CHARSET_TYPE_128): Deleted.
3387         (CHARSET_TYPE_128X128): Deleted.
3388         (CHARSET_TYPE_256): Deleted.
3389         (CHARSET_TYPE_256X256): Deleted.
3390         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3391         to inline function.
3392         (DECODE_MOJIKYO_2022): New inline function.
3393         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3394         `Vcharset_mojikyo_2022_1'.
3395
3396 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3397
3398         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3399         instead of `EQ'.
3400         (put_byte_table): Likewise.
3401         (char_id_table_equal): Use `get_byte_table' [new implementation].
3402
3403 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3404
3405         * mule-charset.c: Include <limits.h> in UTF-2000.
3406         (BT_UINT8_MIN): New macro in UTF-2000.
3407         (BT_UINT8_MAX): New macro in UTF-2000.
3408         (BT_UINT8_t): New macro in UTF-2000.
3409         (BT_UINT8_nil): New macro in UTF-2000.
3410         (BT_UINT8_unbound): New macro in UTF-2000.
3411         (INT_UINT8_P): New inline function in UTF-2000.
3412         (UINT8_VALUE_P): New inline function in UTF-2000.
3413         (UINT8_ENCODE): New inline function in UTF-2000.
3414         (UINT8_DECODE): New inline function in UTF-2000.
3415         (mark_uint8_byte_table): New function in UTF-2000.
3416         (print_uint8_byte_table): New function in UTF-2000.
3417         (uint8_byte_table_equal): New function in UTF-2000.
3418         (uint8_byte_table_hash): New function in UTF-2000.
3419         (make_uint8_byte_table): New function in UTF-2000.
3420         (uint8_byte_table_same_value_p): New function in UTF-2000.
3421         (BT_UINT16_MIN): New macro in UTF-2000.
3422         (BT_UINT16_MAX): New macro in UTF-2000.
3423         (BT_UINT16_t): New macro in UTF-2000.
3424         (BT_UINT16_nil): New macro in UTF-2000.
3425         (BT_UINT16_unbound): New macro in UTF-2000.
3426         (INT_UINT16_P): New inline function in UTF-2000.
3427         (UINT16_VALUE_P): New inline function in UTF-2000.
3428         (UINT16_ENCODE): New inline function in UTF-2000.
3429         (UINT16_DECODE): New inline function in UTF-2000.
3430         (UINT8_TO_UINT16): New inline function in UTF-2000.
3431         (mark_uint16_byte_table): New function in UTF-2000.
3432         (print_uint16_byte_table): New function in UTF-2000.
3433         (uint16_byte_table_equal): New function in UTF-2000.
3434         (uint16_byte_table_hash): New function in UTF-2000.
3435         (make_uint16_byte_table): New function in UTF-2000.
3436         (uint16_byte_table_same_value_p): New function in UTF-2000.
3437         (print_byte_table): New function in UTF-2000.
3438         (byte-table): Use `print_byte_table' as printer.
3439         (make_byte_table): Delete second argument `older'.
3440         (byte_table_same_value_p): New function in UTF-2000.
3441         (copy_byte_table): Deleted.
3442         (get_byte_table): New function in UTF-2000.
3443         (put_byte_table): New function in UTF-2000.
3444         (print_char_id_table): New function in UTF-2000.
3445         (char-id-table): Use `print_char_id_table' as printer.
3446         (make_char_id_table): Delete second argument `older'.
3447         (get_char_id_table): Use `get_byte_table [new implementation].
3448         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3449         implementation].
3450         (Ffind_char_attribute_table): New function in UTF-2000.
3451         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3452         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3453         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3454         (syms_of_mule_charset): Add new function
3455         `find-char-attribute-table' in UTF-2000.
3456
3457         * lrecord.h (enum lrecord_type): Add
3458         `lrecord_type_uint16_byte_table' and
3459         `lrecord_type_uint8_byte_table'.
3460
3461         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3462         (Lisp_Uint8_Byte_Table): New type.
3463         (XUINT8_BYTE_TABLE): New macro.
3464         (XSETUINT8_BYTE_TABLE): New macro.
3465         (UINT8_BYTE_TABLE_P): New macro.
3466         (GC_UINT8_BYTE_TABLE_P): New macro.
3467         (struct Lisp_Uint16_Byte_Table): New structure.
3468         (Lisp_Uint16_Byte_Table): New type.
3469         (XUINT16_BYTE_TABLE): New macro.
3470         (XSETUINT16_BYTE_TABLE): New macro.
3471         (UINT16_BYTE_TABLE_P): New macro.
3472         (GC_UINT16_BYTE_TABLE_P): New macro.
3473
3474 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3475
3476         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3477         (Vcharacter_ideographic_strokes_table): Deleted.
3478         (Vcharacter_total_strokes_table): Deleted.
3479         (Vcharacter_morohashi_daikanwa_table): Deleted.
3480         (Vcharacter_decomposition_table): Deleted.
3481         (Qname): Deleted because it is duplicated.
3482         (Qideographic_radical): Deleted.
3483         (Qideographic_strokes): Deleted.
3484         (Qtotal_strokes): Deleted.
3485         (Qmorohashi_daikanwa): Deleted.
3486         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3487         `ideographic-radical', `ideographic-strokes', `total-strokes',
3488         `morohashi-daikanwa' and `->decomposition'.
3489         (Fget_char_attribute): Likewise.
3490         (Fput_char_attribute): Likewise; use `make-vector' instead of
3491         `make_older_vector' for `->decomposition' value.
3492         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3493         `ideograph-daikanwa'.
3494         (syms_of_mule_charset): Delete builtin symbols `name',
3495         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3496         `morohashi-daikanwa'.
3497         (vars_of_mule_charset): Don't setup
3498         `Vcharacter_ideographic_radical_table',
3499         `Vcharacter_ideographic_strokes_table',
3500         `Vcharacter_total_strokes_table',
3501         `Vcharacter_morohashi_daikanwa_table' and
3502         `Vcharacter_decomposition_table'.
3503
3504 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3505
3506         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3507         `make_older_vector', `make_vector_newer_1' and
3508         `make_vector_newer'.
3509
3510         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3511         `make_older_vector' and `make_vector_newer'.
3512
3513         * config.h.in (HAVE_GGC): New macro.
3514
3515 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3516
3517         * mule-charset.c (struct char_attribute_list_closure): New
3518         structure in UTF-2000.
3519         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3520         (Fchar_attribute_list): Likewise.
3521         (Fset_charset_mapping_table): Use `make_vector_newer'.
3522         (Fdecode_builtin_char): New function in UTF-2000.
3523         (syms_of_mule_charset): Add new function `char-attribute-list' and
3524         `decode-builtin-char' in UTF-2000.
3525
3526         * lisp.h (make_vector_newer): New prototype.
3527
3528         * alloc.c (make_vector_newer_1): New function.
3529         (make_vector_newer): New function.
3530
3531 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3532
3533         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3534         50100)'.
3535
3536 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3537
3538         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3539         (Vcharacter_attribute_table): Deleted.
3540         (Vcharacter_name_table): Deleted.
3541         (put_char_attribute): Deleted.
3542         (remove_char_attribute): Deleted.
3543         (struct char_attribute_alist_closure): New structure.
3544         (add_char_attribute_alist_mapper): New function.
3545         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3546         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3547         (Fget_char_attribute): Likewise.
3548         (Fput_char_attribute): Likewise.
3549         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3550         of `remove_char_attribute'.
3551         (Fdefine_char): Return character.
3552         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3553         and `Vcharacter_name_table'.
3554         (complex_vars_of_mule_charset): Likewise
3555         `Vchar_attribute_hash_table'.
3556
3557 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3558
3559         * character.h (CHARC_CHARSET): New macro.
3560         (CHARC_CHARSET_ID): New macro.
3561         (CHARC_CODE_POINT): New macro.
3562         (CHARC_COLUMNS): New macro.
3563         (CHARC_TO_CHAR): New inline function.
3564         (CHARC_EQ): New inline function.
3565         (CHARC_ASCII_EQ): New inline function.
3566         (CHARC_IS_SPACE): New inline function.
3567         (ASCII_TO_CHARC): New inline function.
3568
3569         * char-ucs.h (encode_char_2): Deleted.
3570         (ENCODE_CHAR): Use `encode_char_1' again.
3571         (breakup_char_1): Likewise.
3572         (CHAR_TO_CHARC): New inline function.
3573
3574         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3575
3576 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3577
3578         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3579         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3580         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3581         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3582         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3583         `CHARC_IS_SPACE'.
3584         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3585
3586         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3587         `CHARC_CODE_POINT'.
3588         (x_output_display_block): Use `CHARC_CHARSET' and
3589         `CHARC_ASCII_EQ'.
3590
3591         * redisplay-tty.c (tty_output_display_block): Use
3592         `CHARC_ASCII_EQ'.
3593         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3594
3595         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3596
3597         * insdel.c (find_charsets_in_charc_string): Use
3598         `CHARC_CHARSET_ID'.
3599         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3600         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3601         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3602         (convert_charc_string_into_malloced_string): Likewise.
3603
3604 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3605
3606         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3607         instead of <Emchar_dynarr *> for buf; use
3608         `convert_bufbyte_string_into_charc_dynarr' instead of
3609         `convert_bufbyte_string_into_emchar_dynarr'; use
3610         `find_charsets_in_charc_string' instead of
3611         `find_charsets_in_emchar_string'.
3612
3613         * redisplay.h:
3614         - Include "character.h".
3615         (struct rune): New member `cglyph'; delete member `chr'.
3616
3617         * redisplay.c (redisplay_text_width_charc_string): New function;
3618         delete `redisplay_text_width_emchar_string'.
3619         (rtw_charc_dynarr): New variable; renamed from
3620         `rtw_emchar_dynarr'.
3621         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3622         `rtw_emchar_dynarr'; use
3623         `convert_bufbyte_string_into_charc_dynarr' instead of
3624         `convert_bufbyte_string_into_emchar_dynarr'; use
3625         `redisplay_text_width_charc_string' instead of
3626         `redisplay_text_width_emchar_string'.
3627         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3628         instead of `rtw_emchar_dynarr'; use
3629         `convert_bufbyte_string_into_charc_dynarr' instead of
3630         `convert_bufbyte_string_into_emchar_dynarr'.
3631         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3632         `redisplay_text_width_charc_string' instead of
3633         `redisplay_text_width_emchar_string'.
3634         (create_text_block): Modify for <struct rune> change.
3635         (generate_formatted_string_db): Likewise.
3636         (create_string_text_block): Likewise.
3637         (pixel_to_glyph_translation): Likewise.
3638
3639         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3640         instead of <const Emchar *>.
3641         (x_text_width): Likewise.
3642         (x_output_display_block): Use <Charc_dynarr *> instead
3643         <Emchar_dynarr *>; modify for <structure rune> change.
3644         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3645         *>.
3646
3647         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3648         <const Emchar *>; use `charc_string_displayed_columns' instead of
3649         `emchar_string_displayed_columns'.
3650         (tty_output_display_block): Use <Charc_dynarr *> instead of
3651         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3652         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3653         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3654         `tty_output_emchar_dynarr_dynarr'.
3655         (tty_output_charc_dynarr): New function; delete
3656         `tty_output_charc_dynarr'.
3657
3658         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3659         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3660         <Emchar_dynarr *> for buf; use
3661         `convert_bufbyte_string_into_charc_dynarr' instead of
3662         `convert_bufbyte_string_into_emchar_dynarr'.
3663
3664         * frame.c (title_string_charc_dynarr): New variable; renamed from
3665         `title_string_emchar_dynarr'.
3666         (generate_title_string): Use `title_string_charc_dynarr' instead
3667         of `title_string_emchar_dynarr'; use
3668         `convert_charc_string_into_malloced_string' instead of
3669         `convert_emchar_string_into_malloced_string'.
3670         (init_frame): Use `title_string_charc_dynarr' instead of
3671         `title_string_emchar_dynarr'.
3672
3673         * console.h:
3674         - Include "character.h".
3675         (struct console_methods): Use <const Charc *> instead of <const
3676         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3677         <Emchar_dynarr *> in output_string_method.
3678
3679         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3680         <Emchar_dynarr *>.
3681
3682         * console-stream.c (stream_text_width): Use <const Charc *>
3683         instead of <const Emchar *>.
3684
3685         * character.h (Charc_dynarr): New type.
3686
3687         * char-ucs.h (structure Charc): New structure; define new type
3688         `Charc'.
3689
3690         * char-lb.h (DECODE_CHAR): New inline function.
3691         (encode_char_1): New inline function.
3692         (ENCODE_CHAR): New macro.
3693         (structure Charc): New structure; define new type `Charc'.
3694
3695         * char-1byte.h (Vcharset_control_1): New macro.
3696         (Vcharset_latin_iso8859_1): New macro.
3697         (DECODE_CHAR): New inline function.
3698         (encode_char_1): New inline function.
3699         (ENCODE_CHAR): New macro.
3700         (structure Charc): New structure; define new type `Charc'.
3701
3702         * insdel.c (find_charsets_in_charc_string): New function; delete
3703         `find_charsets_in_emchar_string'.
3704         (charc_string_displayed_columns): New function; delete
3705         `emchar_string_displayed_columns'.
3706         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3707         `convert_bufbyte_string_into_emchar_dynarr'.
3708         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3709         `convert_charc_string_into_bufbyte_dynarr'.
3710         (convert_charc_string_into_malloced_string): New function; delete
3711         `convert_charc_string_into_malloced_string'.
3712
3713         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3714         `find_charsets_in_emchar_string'.
3715         (charc_string_displayed_columns): New prototype; delete
3716         `emchar_string_displayed_columns'.
3717         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3718         `convert_charc_string_into_bufbyte_dynarr'.
3719         (convert_charc_string_into_malloced_string): New prototype; delete
3720         `convert_charc_string_into_malloced_string'.
3721
3722 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3723
3724         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3725
3726 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3727
3728         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3729
3730         * char-ucs.h: Use <short> for <Charset_ID>.
3731
3732         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3733         <Charset_ID>.
3734
3735 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3736
3737         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3738         to 0.16.
3739
3740 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3741
3742         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3743         variable.
3744         (Qmorohashi_daikanwa): New variable.
3745         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3746         for `morohashi-daikanwa' attribute.
3747         (Fget_char_attribute): Likewise.
3748         (Fput_char_attribute): Likewise.
3749         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3750         has the same value of `ideograph-daikanwa'.
3751         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3752         (vars_of_mule_charset): Setup
3753         `Vcharacter_morohashi_daikanwa_table'.
3754
3755 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3756
3757         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3758         attributes.
3759         (add_charset_to_list_mapper): Add `key' instead of
3760         `XCHARSET_NAME (value)' to return aliases.
3761
3762 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3763
3764         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3765         variable.
3766         (Vcharacter_ideographic_strokes_table): New variable.
3767         (Qideographic_radical): New variable.
3768         (Qideographic_strokes): New variable.
3769         (Fchar_attribute_alist): Use
3770         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3771         attribute; use `Vcharacter_ideographic_strokes_table' for
3772         `ideographic-strokes' attribute.
3773         (Fget_char_attribute): Likewise.
3774         (Fput_char_attribute): Likewise.
3775         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3776         `ideographic-strokes'.
3777         (vars_of_mule_charset): Setup
3778         `Vcharacter_ideographic_radical_table' and
3779         `Vcharacter_ideographic_strokes_table'.
3780
3781 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3782
3783         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3784         (Qtotal_strokes): New variable.
3785         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3786         `total-strokes' attribute.
3787         (Fget_char_attribute): Likewise.
3788         (Fput_char_attribute): Likewise.
3789         (syms_of_mule_charset): Add new symbol `total-strokes'.
3790         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3791
3792 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3793
3794         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3795         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3796         are found.
3797         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3798         `->decomposition' attribute.
3799         (Fput_char_attribute): Likewise.
3800         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3801
3802 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3803
3804         * mule-charset.c (decoding_table_check_elements): New function.
3805         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3806
3807 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3808
3809         * mule-charset.c (Fset_charset_mapping_table): Use
3810         `put_char_ccs_code_point'.
3811
3812 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3813
3814         * mule-charset.c (decoding_table_put_char): New inline function.
3815         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3816
3817 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3818
3819         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3820         (XCHARSET_BYTE_SIZE): New macro.
3821         (decoding_table_remove_char): New inline function.
3822         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3823         `decoding_table_remove_char'.
3824         (remove_char_ccs): Use `decoding_table_remove_char'.
3825         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3826
3827 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3828
3829         * mule-charset.c (Vcharacter_name_table): New variable.
3830         (Qname): New variable.
3831         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3832         attribute.
3833         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3834         `Vcharacter_name_table' for `name' attribute.
3835         (Fremove_char_attribute): Use function `remove_char_ccs'.
3836         (put_char_ccs_code_point): New function.
3837         (remove_char_ccs): New function.
3838         (syms_of_mule_charset): Add new symbol `name'.
3839         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3840
3841 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3842
3843         * mule-charset.c (make_byte_table): Add new argument `older'.
3844         (make_char_id_table): Likewise.
3845         (copy_char_id_table): Comment out because it is not used.
3846         (put_char_id_table): Modify for `make_byte_table'.
3847         (Fput_char_attribute): Make encoding_table as older object;
3848         inherit older bit of `Vcharacter_composition_table'.
3849         (mark_charset): Don't mark `cs->encoding_table'.
3850         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3851         normal object; make `Vcharacter_composition_table' as an older
3852         object; delete staticpro for `Vcharacter_composition_table'; make
3853         `Vcharacter_variant_table' as a normal object.
3854
3855         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3856         (mark_object): Don't check older object in UTF-2000.
3857
3858         * lrecord.h (struct lrecord_header): Add new member `older' in
3859         UTF-2000.
3860         (set_lheader_implementation): Setup `SLI_header->older' in
3861         UTF-2000.
3862         (set_lheader_older_implementation): New macro in UTF-2000.
3863         (OLDER_RECORD_P): New macro in UTF-2000.
3864         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3865         (alloc_older_lcrecord): New prototype in UTF-2000.
3866         (alloc_older_lcrecord_type): New macro in UTF-2000.
3867
3868 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3869
3870         * mule-charset.c (byte_table_description): Use
3871         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3872         (char_id_table_description): Delete bogus `, 1'.
3873         (Fget_char_attribute): Refer encoding_table of each coded-charset
3874         to get value of coded-charset attribute of a character.
3875         (Fput_char_attribute): Use `make_older_vector' instead of
3876         `make_vector'; use encoding_table of each coded-charset to store
3877         value of coded-charset attribute of a character.
3878         (Fremove_char_attribute): Use encoding_table of each coded-charset
3879         to store value of coded-charset attribute of a character.
3880         (mark_charset): Mark `cs->encoding_table'; don't mark
3881         `cs->decoding_table'.
3882         (charset_description): Add description of new member
3883         `encoding_table'.
3884         (make_charset): Initialize `encoding_table'.
3885
3886         * char-ucs.h (struct Lisp_Charset): Add new member
3887         `encoding_table'.
3888         (CHARSET_ENCODING_TABLE): New macro.
3889         (XCHARSET_ENCODING_TABLE): New macro.
3890         (charset_code_point): New implementation.
3891         (encode_char_1): Likewise.
3892
3893         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3894         (disksave_object_finalization_1): Call finalizers of
3895         `all_older_lcrecords' in UTF-2000.
3896         (make_older_vector): New function in UTF-2000.
3897         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3898         UTF-2000.
3899
3900         * lisp.h (make_older_vector): New prototype in UTF-2000.
3901
3902 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3903
3904         * lrecord.h (enum lrecord_type): Rename
3905         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3906
3907         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3908         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3909         `get_char_code_table'.
3910
3911         * mule-charset.c (mark_char_id_table): Renamed from
3912         `mark_char_code_table'.
3913         (char_id_table_equal): Renamed from `char_code_table_equal'.
3914         (char_id_table_hash): Renamed from `char_code_table_hash'.
3915         (make_char_id_table): Renamed from `make_char_code_table'.
3916         (copy_char_id_table): Renamed from `copy_char_code_table'.
3917         (get_char_id_table): Renamed from `get_char_code_table'.
3918         (put_char_id_table): Renamed from `put_char_code_table'.
3919         (to_char_id): Renamed from `to_char_code'.
3920
3921         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3922         `Lisp_Char_Code_Table'.
3923         (char_id_table): Renamed from `char_code_table'.
3924         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3925         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3926         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3927         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3928         (get_char_id_table): Renamed from `get_char_code_table'.
3929
3930 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3931
3932         * lrecord.h (enum lrecord_type): Rename
3933         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3934
3935         * mule-charset.c (mark_byte_table): Renamed from
3936         `mark_char_byte_table'.
3937         (byte_table_equal): Renamed from `char_byte_table_equal'.
3938         (byte_table_hash): Renamed from `byte_table_hash'.
3939         (make_byte_table): Renamed from `make_byte_table'.
3940         (copy_byte_table): Renamed from `copy_char_byte_table'.
3941
3942         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3943         `Lisp_Char_Byte_Table'.
3944         (byte_table): Renamed from `char_byte_table'.
3945         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3946         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3947         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3948         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3949
3950 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3951
3952         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3953         (dfc_convert_to_internal_format): Likewise.
3954         
3955         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3956         * text-coding.c (Fcoding_system_alias_p): New function.
3957         * text-coding.c (Fcoding_system_aliasee): New function.
3958         * text-coding.c (append_suffix_to_symbol): New function.
3959         * text-coding.c (dangling_coding_system_alias_p): New function.
3960         * text-coding.c (Ffind_coding_system):
3961         * text-coding.c (Fcopy_coding_system):
3962         * text-coding.c (encode_coding_no_conversion):
3963         * text-coding.c (syms_of_file_coding):
3964         * text-coding.c (vars_of_file_coding):
3965         Rewrite coding system alias code.
3966         Allow nested aliases, like symbolic links.
3967         Allow redefinition of coding system aliases.
3968         Prevent existence of dangling coding system aliases.
3969         Eliminate convert_to_external_format.
3970         Eliminate convert_to_internal_format.
3971         
3972         * text-coding.c: Change enum eol_type to eol_type_t.
3973
3974 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3975
3976         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3977         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3978
3979         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3980         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3981
3982 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3983
3984         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3985         `ideograph-daikanwa'.
3986
3987         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3988         (Vcharset_ucs_bmp): Likewise.
3989         (Vcharset_mojikyo): Add new extern variable definition.
3990         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3991         (Vcharset_latin_iso8859_3): Likewise.
3992         (Vcharset_latin_iso8859_4): Likewise.
3993         (Vcharset_latin_iso8859_9): Likewise.
3994         (Vcharset_latin_viscii_lower): Likewise.
3995         (Vcharset_latin_viscii_upper): Likewise.
3996         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3997         `mojikyo' code-point is used to decode.
3998         (encode_char_2): New function [to convert `mojikyo' code-point to
3999         Mojikyo font encoding].
4000         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
4001         (breakup_char_1): Likewise.
4002         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
4003
4004 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4005
4006         * text-coding.c (Fmake_coding_system): Add document about
4007         `disable-composition' property.
4008
4009 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4010
4011         * text-coding.c (Qdisable_composition): New variable; delete
4012         `Qcomposite'.
4013         (Fmake_coding_system): Add new property `disable-composite';
4014         delete property `composite'.
4015         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
4016         instead of `!CODING_SYSTEM_COMPOSITE'.
4017         (syms_of_file_coding): Add new symbol `disable-composition';
4018         delete symbol `composite'.
4019
4020         * file-coding.h (struct Lisp_Coding_System): Add
4021         `disable_composition'; delete `enable_composition'.
4022         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4023         `CODING_SYSTEM_COMPOSITE'.
4024         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
4025         `XCODING_SYSTEM_COMPOSITE'.
4026
4027 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4028
4029         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4030         to 0.15.
4031
4032 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4033
4034         * text-coding.c (Qcomposite): New variable.
4035         (Fmake_coding_system): Add new property `composite'.
4036         (struct decoding_stream): Add `combined_char_count',
4037         `combined_chars' and `combining_table' in UTF-2000.
4038         (COMPOSE_FLUSH_CHARS): New macro.
4039         (COMPOSE_ADD_CHAR): New macro.
4040         (reset_decoding_stream): Reset `str->combined_char_count' and
4041         `str->combining_table' in UTF-2000.
4042         (decode_coding_iso2022): Modify for character-decomposition.
4043         (syms_of_file_coding): Add new symbol `composite'.
4044
4045 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4046
4047         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
4048         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
4049         of `Vcharacter_composition_table' if `->decomposition' property
4050         has only 1 element.
4051         (Qlatin_tcvn5712): New variable.
4052         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
4053         (complex_vars_of_mule_charset): Add new coded-charset
4054         `latin-tcvn5712'.
4055
4056         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
4057
4058 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
4059
4060         * file-coding.h (struct Lisp_Coding_System): Add
4061         `enable_composition'.
4062         (CODING_SYSTEM_COMPOSITE): New macro.
4063         (XCODING_SYSTEM_COMPOSITE): New macro.
4064
4065 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
4066
4067         * mule-canna.c (c2mu): Fix problem with UTF-2000.
4068
4069 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
4070
4071         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
4072         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
4073
4074 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
4075
4076         * mule-charset.c (Vcharset_mojikyo): New variable.
4077         (Fdefine_char): Don't use coded-charset which does not have
4078         non-builtin character range to allocate character-id.
4079         (Qmojikyo): New variable.
4080         (syms_of_mule_charset): Add new symbol `mojikyo'.
4081         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
4082
4083         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
4084         (LEADING_BYTE_MOJIKYO): New macro.
4085         (MIN_CHAR_MOJIKYO): New macro.
4086         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
4087         (MAX_CHAR_MOJIKYO): New macro.
4088
4089 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
4090
4091         * mule-charset.c (remove_char_attribute): Fixed.
4092
4093 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
4094
4095         * mule-charset.c (remove_char_attribute): New function.
4096         (Fremove_char_attribute): New function.
4097         (encode_builtin_char_1): Comment out builtin-support for
4098         greek-iso8859-7 and cyrillic-iso8859-5.
4099         (Fdecode_char): Check `code' is an integer.
4100         (syms_of_mule_charset): Add `remove-char-attribute'.
4101         (MIN_CHAR_GREEK): Deleted.
4102         (MAX_CHAR_GREEK): Likewise.
4103         (MIN_CHAR_CYRILLIC): Likewise.
4104         (MAX_CHAR_CYRILLIC): Likewise.
4105         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
4106         MAX_CHAR_GREEK for `greek-iso8859-7'.
4107
4108         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
4109         (MAX_CHAR_GREEK): Likewise.
4110         (MIN_CHAR_CYRILLIC): Likewise.
4111         (MAX_CHAR_CYRILLIC): Likewise.
4112
4113 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
4114
4115         * mule-charset.c (Fdefine_char): Fix problem when new code-point
4116         format is used without `ucs' property.
4117         (Fdecode_char): Fix problem with GR representation.
4118         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
4119         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
4120
4121 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4122
4123         * mule-charset.c (make_builtin_char): New function.
4124         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
4125         (Fset_charset_mapping_table): Modify for new representation of
4126         code-point.
4127         (Fdecode_char): New function.
4128         (syms_of_mule_charset): Add new builtin function `decode-char' in
4129         UTF-2000.
4130
4131         * char-ucs.h (make_builtin_char): New prototype.
4132         (DECODE_CHAR): New inline function.
4133         (MAKE_CHAR): Use `DECODE_CHAR'.
4134
4135 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
4136
4137         * text-coding.c (parse_charset_conversion_specs): Use
4138         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
4139         `XCHARSET_TYPE'.
4140         (iso2022_designate): Likewise.
4141
4142         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
4143         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
4144
4145         * mule-charset.c (Vcharset_ucs): New variable.
4146         (print_charset): Change design; use `CHARSET_CHARS' and
4147         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4148         (make_charset): Change signature to specify `chars' and
4149         `dimension' instead of `type'.
4150         (range_charset_code_point): Modify for 256^n-set.
4151         (encode_builtin_char_1): Encode as `ucs' in default.
4152         (Fmake_charset): Modify for `make_charset'.
4153         (Fmake_reverse_direction_charset): Likewise.
4154         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4155         UTF-2000.
4156         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4157         for `make_charset'.
4158
4159         * char-ucs.h (Vcharset_ucs): New variable.
4160         (LEADING_BYTE_UCS): New macro.
4161         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4162         and `chars' to `unsigned short' from `unsigned int'.
4163         (CHARSET_TYPE): Deleted.
4164         (XCHARSET_TYPE): Deleted.
4165
4166 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4167
4168         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4169
4170         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4171         (ENCODE_CHAR): New macro.
4172
4173 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4174
4175         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4176         to 0.14 (Kawachi-Katakami).
4177
4178 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4179
4180         * text-coding.c (char_encode_shift_jis): Modify for
4181         `charset_code_point'.
4182         (char_encode_iso2022): Likewise.
4183
4184         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4185         (integer) instead of list of <Lisp_Object>s (integers) as the
4186         format of code-point of a coded-charset.
4187         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4188         (encode_builtin_char_1): New function; delete
4189         `split_builtin_char'.
4190         (charset_code_point): Return <int> instead of <Lisp_Object>.
4191         (Fsplit_char): Don't use `SPLIT_CHAR'.
4192
4193         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4194         prototype for `split_builtin_char'.
4195         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4196         (charset_code_point): Likewise.
4197         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4198         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4199
4200 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4201
4202         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4203         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4204
4205 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4206
4207         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4208
4209         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4210         (MAX_CHAR_OBS_94x94): Deleted.
4211
4212 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4213
4214         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4215
4216         * char-ucs.h (MAX_CHAR_BMP): New macro.
4217
4218 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4219
4220         * text-coding.c: Sync with r21-2-24.
4221
4222 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4223
4224         * file-coding.c: Modify for UTF-2000.
4225
4226 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4227
4228         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4229         to 0.13 (Takaida).
4230
4231 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4232
4233         * mule-charset.c (split_builtin_char): Delete builtin support for
4234         `katakana-jisx0201'.
4235         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4236         BMP area in builtin representation.
4237
4238         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4239         `Vcharset_katakana_jisx0201'.
4240
4241 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4242
4243         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4244         (Qisolated): New variable.
4245         (Qinitial): New variable.
4246         (Qmedial): New variable.
4247         (Qfinal): New variable.
4248         (Qvertical): New variable.
4249         (Qsmall): New variable.
4250         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4251         `Qvertical' and `Qsmall'.
4252         (Qmojikyo_pj_[1 .. 21]): New variable.
4253         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4254         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4255         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4256         .. 21]'.
4257
4258 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4259
4260         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4261         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4262         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4263
4264 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4265
4266         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4267         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4268         BMP.
4269         (Qjapanese_jisx0208_1990): New variable.
4270         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4271         (complex_vars_of_mule_charset): Add new coded-charset
4272         `japanese-jisx0208-1990'.
4273
4274         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4275         (MIN_CHAR_JIS_X0208_1990): New macro.
4276         (MAX_CHAR_JIS_X0208_1990): New macro.
4277
4278 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4279
4280         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4281         coded-charset is not found.
4282
4283 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4284
4285         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4286         (Fdefine_char): Use `Fmake_char'.
4287
4288 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4289
4290         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4291         (Vcharset_hiragana_jisx0208): Deleted.
4292         (Vcharset_katakana_jisx0208): Deleted.
4293         (Qideograph_daikanwa): New variable.
4294         (Qhiragana_jisx0208): Deleted.
4295         (Qkatakana_jisx0208): Deleted.
4296         (split_builtin_char): Split `ideograph-daikanwa'.
4297         (Fsplit_char): New implementation for UTF-2000.
4298         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4299         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4300         (complex_vars_of_mule_charset): Add new coded-charset
4301         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4302         `katakana-jisx0208'.
4303
4304         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4305         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4306         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4307         (MIN_CHAR_DAIKANWA): New macro.
4308         (MAX_CHAR_DAIKANWA): New macro.
4309
4310 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4311
4312         * data.c (Fstring_to_number): Don't recognize floating point if
4313         base is not 10.
4314
4315 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4316
4317         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4318
4319 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4320
4321         * mule-charset.c (Qsquare): New variable.
4322         (to_char_code): Add `Qsquare'.
4323         (syms_of_mule_charset): Add new symbol `square'.
4324
4325 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4326
4327         * mule-charset.c (Qcircle): New variable.
4328         (to_char_code): Add `Qcircle'.
4329         (syms_of_mule_charset): Add new symbol `circle'.
4330
4331 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4332
4333         * mule-charset.c (Qfont): New variable.
4334         (to_char_code): Add `Qfont'.
4335         (syms_of_mule_charset): Add new symbol `font'.
4336
4337 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4338
4339         * mule-charset.c (Qsub): New variable.
4340         (to_char_code): Add `Qsub'.
4341         (syms_of_mule_charset): Add new symbol `sub'.
4342
4343 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4344
4345         * mule-charset.c (Fput_char_attribute): Convert each element of
4346         VALUE to GL position if ATTRIBUTE is a GR-set,
4347
4348 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4349
4350         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4351         coded-charset is a GR-set.
4352
4353 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4354
4355         * mule-charset.c (Fput_char_attribute): Check each element of
4356         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4357
4358 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4359
4360         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4361         UTF-2000.
4362         (Qethiopic_ucs): New variable in UTF-2000.
4363         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4364         (complex_vars_of_mule_charset): Add new coded-charset
4365         `ethiopic-ucs' in UTF-2000.
4366
4367         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4368         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4369         9)'.
4370         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4371         10)'.
4372         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4373
4374 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4375
4376         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4377         `ascii'.
4378
4379 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4380
4381         * mule-charset.c (Vcharacter_variant_table): New variable.
4382         (Q_ucs): New variable.
4383         (Fchar_variants): New function.
4384         (Fput_char_attribute): Register `->ucs' value to
4385         `Vcharacter_variant_table'.
4386         (syms_of_mule_charset): Add new function `char-variants' and new
4387         symbol `->ucs'.
4388         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4389
4390 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4391
4392         * mule-charset.c (get_char_code_table): Allow negative character
4393         code.
4394         (put_char_code_table): Likewise.
4395         (Vcharacter_composition_table): New variable.
4396         (Q_decomposition): New variable.
4397         (Qwide): New variable.
4398         (Qnarrow): New variable.
4399         (Qcompat): New variable.
4400         (QnoBreak): New variable.
4401         (Qsuper): New variable.
4402         (Qfraction): New variable.
4403         (to_char_code): New function.
4404         (Fget_composite_char): New function.
4405         (Fput_char_attribute): Register `->decomposition' value to
4406         `Vcharacter_composition_table'.
4407         (syms_of_mule_charset): Add new function `get-composite-char', new
4408         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4409         `super' and `fraction'.
4410         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4411
4412 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4413
4414         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4415         character; copy the return value.
4416
4417 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4418
4419         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4420
4421         * mule-charset.c (range_charset_code_point): Must use make_int.
4422         (split_builtin_char): New function.
4423
4424 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4425
4426         * mule-charset.c (char_byte_table): Change name from
4427         "char-code-table" to "char-byte-table".
4428         (mark_char_code_table): New function.
4429         (char_code_table_equal): New function.
4430         (char_code_table_hash): New function.
4431         (char_code_table_description): New constant.
4432         (char_code_table): New type.
4433         (make_char_code_table): New function.
4434         (copy_char_code_table): New function.
4435         (get_char_code_table): Modify for `char_code_table' type.
4436         (put_char_code_table): Likewise.
4437         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4438         (Kashiwara).
4439
4440         * char-ucs.h (char_code_table): New type.
4441         (XCHAR_CODE_TABLE): New macro.
4442         (XSETCHAR_CODE_TABLE): New macro.
4443         (CHAR_CODE_TABLE_P): New macro.
4444         (GC_CHAR_CODE_TABLE_P): New macro.
4445         (struct Lisp_Char_Code_Table): New structure.
4446
4447 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4448
4449         * mule-charset.c (Fmake_charset): Setup byte_offset for
4450         {94|96}^n-set.
4451
4452 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4453
4454         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4455         character.
4456
4457 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4458
4459         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4460         is found.
4461
4462 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4463
4464         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4465         charset, it is regarded as a charset.
4466         (put_char_attribute): New function in UTF-2000.
4467         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4468         charset, mapping-table of the charset is modified.
4469         (Fdefine_char): New function in UTF-2000.
4470         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4471         `Fput_char_attribute'.
4472         (syms_of_mule_charset): Add new function `define-char' and new
4473         symbol `ucs' in UTF-2000.
4474         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4475
4476 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4477
4478         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4479         non-UTF-2000 configuration.
4480
4481 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4482
4483         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4484         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4485
4486         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4487         deleted.
4488         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4489         (Fset_charset_mapping_table): Likewise.
4490
4491         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4492         (CHARSET_ENCODING_TABLE): Delete.
4493         (XCHARSET_ENCODING_TABLE): Delete.
4494         (charset_code_point): New interface.
4495
4496 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4497
4498         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4499         instead of `charset_get_byte1' and `charset_get_byte2'.
4500
4501         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4502         (charset_get_byte2): Deleted.
4503
4504 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4505
4506         * char-ucs.h (SPLIT_CHAR): New inline function.
4507         (breakup_char_1): Use `SPLIT_CHAR'.
4508
4509         * mule-charset.c (range_charset_code_point): New function.
4510         (charset_code_point): New function.
4511
4512         * char-ucs.h (range_charset_code_point): New interface.
4513         (breakup_char_1): Use `range_charset_code_point'.
4514
4515 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4516
4517         * mule-charset.c (Fmake_charset): Delete unused local variable
4518         `code_offset'.
4519
4520         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4521         (breakup_char_1): Find a charset and code-point in
4522         `Vcharacter_attribute_table'.
4523
4524 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4525
4526         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4527         to 0.10 (Yao).
4528
4529 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4530
4531         * mule-charset.c (Vcharacter_attribute_table): New variable.
4532         (Fchar_attribute_alist): New function.
4533         (Fget_char_attribute): New function.
4534         (Fput_char_attribute): New function.
4535         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4536         too.
4537         (syms_of_mule_charset): Add new function `char-attribute-alist',
4538         `get-char-attribute' and `put-char-attribute'.
4539         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4540
4541 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4542
4543         * mule-charset.c (Fmake_charset): Just use
4544         `get_unallocated_leading_byte'.
4545
4546         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4547         sets; don't use final-byte based number for private sets.
4548
4549 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4550
4551         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4552         integer.
4553
4554 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4555
4556         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4557         to 0.9.
4558
4559 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4560
4561         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4562         of `CHAR_LEADING_BYTE' in UTF-2000.
4563
4564         * insdel.c (find_charsets_in_bufbyte_string): Use
4565         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4566         (find_charsets_in_emchar_string): Likewise.
4567
4568         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4569         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4570
4571         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4572         (CHAR_CHARSET_ID): New macro.
4573
4574 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4575
4576         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4577         charset-id - MIN_LEADING_BYTE.
4578         (put_char_table): Likewise.
4579
4580 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4581
4582         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4583         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4584         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4585         (CHARSET_ID_OFFSET): New macro.
4586         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4587         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4588         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4589         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4590         4).
4591         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4592         5).
4593         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4594         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4595         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4596         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4597         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4598
4599 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4600
4601         * mule-charset.c (next_allocated_leading_byte): New variable in
4602         UTF-2000.
4603         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4604         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4605         (get_unallocated_leading_byte): Simply use
4606         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4607         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4608         UTF-2000.
4609
4610         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4611         (MAX_LEADING_BYTE_PRIVATE): New macro.
4612         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4613         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4614
4615 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4616
4617         * mule-charset.c (Fmake_charset): Allocate final-byte based
4618         charset-id for 94-set, 96-set and 94x94-set.
4619
4620 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4621
4622         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4623         ambiguous `else'.
4624         (Fmake_charset): Likewise.
4625         (complex_vars_of_mule_charset): Modify the font registry of
4626         `ucs-bmp' not to match `Ethiopic-Unicode'.
4627
4628 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4629
4630         * mule-charset.c (complex_vars_of_mule_charset): Add font
4631         registory of `ucs-bmp'.
4632
4633 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4634
4635         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4636         coded-charsets in `default-coded-charset-priority-list' when
4637         breaking up a character.
4638
4639         * mule-charset.c (Vcharset_latin_viscii): New variable.
4640         (Qlatin_viscii): New variable.
4641         (make_charset): Don't use `decoding_table'.
4642         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4643         byte_offset.
4644         (Fset_charset_mapping_table): New implementation.
4645         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4646         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4647         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4648         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4649         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4650         charset `latin_viscii'.
4651
4652         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4653         (CHARSET_TYPE_94X94): Change to 1 from 2.
4654         (CHARSET_TYPE_96): Change to 2 from 1.
4655         (CHARSET_TYPE_128): New macro.
4656         (CHARSET_TYPE_128X128): Change to 5 from 4.
4657         (CHARSET_TYPE_256): New macro.
4658         (CHARSET_TYPE_256X256): Change to 7 from 5.
4659         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4660
4661 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4662
4663         * text-coding.c (char_encode_shift_jis): Refer
4664         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4665         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4666
4667         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4668         (char_byte_table_equal): New function in UTF-2000.
4669         (char_byte_table_hash): New function in UTF-2000.
4670         (char_byte_table_description): New constant in UTF-2000.
4671         (char_byte_table): New type in UTF-2000.
4672         (make_char_byte_table): New function in UTF-2000.
4673         (copy_char_byte_table): New function in UTF-2000.
4674         (make_char_code_table): New macro in UTF-2000.
4675         (get_char_code_table): New function in UTF-2000.
4676         (put_char_code_table): New function in UTF-2000.
4677         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4678         (charset_description): Add setting in UTF-2000.
4679         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4680         `CHARSET_TO_BYTE1_TABLE(cs)'.
4681         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4682         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4683         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4684         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4685         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4686         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4687         `CHARSET_TO_BYTE2_TABLE(cs)'.
4688
4689         * char-ucs.h (char_byte_table): New type.
4690         (XCHAR_BYTE_TABLE): New macro.
4691         (XSETCHAR_BYTE_TABLE): New macro.
4692         (CHAR_BYTE_TABLE_P): New macro.
4693         (GC_CHAR_BYTE_TABLE_P): New macro.
4694         (struct Lisp_Char_Byte_Table): New structure.
4695         (get_char_code_table): New interface.
4696         (Emchar_to_byte_table): Deleted.
4697         (get_byte_from_character_table): Deleted.
4698         (struct Lisp_Charset): Add `encoding_table'; delete
4699         `to_byte1_table' and `to_byte2_table'.
4700         (CHARSET_ENCODING_TABLE): New macro.
4701         (CHARSET_TO_BYTE1_TABLE): Deleted.
4702         (CHARSET_TO_BYTE2_TABLE): Deleted.
4703         (XCHARSET_ENCODING_TABLE): New macro.
4704         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4705         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4706
4707 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4708
4709         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4710         `vietnamese-viscii-*'.
4711
4712 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4713
4714         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4715         (Qvietnamese_viscii_upper): New variable.
4716         (Fdefine_charset_alias): New function.
4717         (syms_of_mule_charset): Add new function `define-charset-alias'.
4718         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4719         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4720         `latin-viscii-*'.
4721
4722 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4723
4724         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4725         (MAX_CHAR_OBS_94x94): New macro.
4726         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4727         for 94x94 sets.
4728
4729         * mule-charset.c (put_byte_from_character_table): Change unit size
4730         from 128 to 256.
4731         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4732         not defined.
4733         (Fmake_reverse_direction_charset): Modify dummy argument of
4734         `make_charset' for non-UTF-2000 environment.
4735
4736 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4737
4738         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4739
4740         * mule-charset.c (destroy_byte_from_character_table): New macro.
4741         (latin_jisx0201_to_ucs): Deleted.
4742         (latin_iso8859_2_to_ucs): Deleted.
4743         (latin_iso8859_3_to_ucs): Deleted.
4744         (latin_iso8859_4_to_ucs): Deleted.
4745         (latin_iso8859_9_to_ucs): Deleted.
4746         (latin_viscii_lower_to_ucs): Deleted.
4747         (latin_viscii_upper_to_ucs): Deleted.
4748         (mark_charset): Mark `cs->decoding_table'.
4749         (Fcharset_mapping_table): Fix DOC-string.
4750         (Fset_charset_mapping_table): New function.
4751         (syms_of_mule_charset): Add nwe function
4752         `set-charset-mapping-table'.
4753         (complex_vars_of_mule_charset): Don't setup and use
4754         `latin_*_to_ucs'.
4755
4756 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4757
4758         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4759         charset.
4760
4761 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4762
4763         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4764         (Vcharset_katakana_jisx0208): New variable.
4765         (Qhiragana_jisx0208): New variable.
4766         (Qkatakana_jisx0208): New variable.
4767         (make_charset): Add new argument `byte_offset'.
4768         (charset_get_byte1): Modify for new coded-charset definition; use
4769         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4770         `XCHARSET_BYTE_OFFSET'.
4771         (Fmake_charset): Modify for `make_charset'.
4772         (Fmake_reverse_direction_charset): Likewise.
4773         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4774         `katakana-jisx0208'.
4775         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4776         `.'  in font registry of charset `katakana-jisx0201',
4777         `latin-jisx0201', `vietnamese-viscii-lower' and
4778         `vietnamese-viscii-upper'; modify DOC-string of charset
4779         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4780         registry of charset `japanese-jisx0208' not to use font for JIS
4781         X0208:1990; add new charset `hiragana-jisx0208' and
4782         `katakana-jisx0208'.
4783
4784         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4785         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4786         (struct Lisp_Charset): Add `byte_offset'.
4787         (CHARSET_BYTE_OFFSET): New macro.
4788         (XCHARSET_UCS_MIN): New macro.
4789         (XCHARSET_UCS_MAX): New macro.
4790         (XCHARSET_CODE_OFFSET): New macro.
4791         (XCHARSET_BYTE_OFFSET): New macro.
4792         (MIN_CHAR_HIRAGANA): New macro.
4793         (MAX_CHAR_HIRAGANA): New macro.
4794         (MIN_CHAR_KATAKANA): New macro.
4795         (MAX_CHAR_KATAKANA): New macro.
4796         (MAKE_CHAR): Modify for new coded-charset definition; use
4797         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4798         `XCHARSET_BYTE_OFFSET'.
4799
4800 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4801
4802         * mule-charset.c (CHAR96): Deleted.
4803         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4804         <Lisp_Object>.
4805         (latin_iso8859_2_to_ucs): Likewise.
4806         (latin_iso8859_3_to_ucs): Likewise.
4807         (latin_iso8859_4_to_ucs): Likewise.
4808         (latin_iso8859_9_to_ucs): Likewise.
4809         (latin_viscii_lower_to_ucs): Likewise.
4810         (latin_viscii_upper_to_ucs): Likewise.
4811         (latin_tcvn5712_to_ucs): Commented out.
4812         (make_charset): Change type of argument `decoding_table' from
4813         <Emchar*> to <Lisp_Object> [vector of characters].
4814         (Fmake_charset): Modify for `make_charset'.
4815         (Fmake_reverse_direction_charset): Likewise.
4816         (Fcharset_mapping_table): New function in UTF-2000.
4817         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4818         UTF-2000.
4819         (complex_vars_of_mule_charset): Modify for type change of
4820         `*_to_ucs'; modify for `make_charset'.
4821
4822         * char-ucs.h (struct Lisp_Charset): Change type of
4823         `decoding_table' from <Emchar*> to <Lisp_Object>.
4824         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4825
4826 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4827
4828         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4829         error with non-UTF-2000-Mule.
4830
4831 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4832
4833         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4834         in lisp again].
4835         (Vcharset_chinese_cns11643_4): Likewise.
4836         (Vcharset_chinese_cns11643_5): Likewise.
4837         (Vcharset_chinese_cns11643_6): Likewise.
4838         (Vcharset_chinese_cns11643_7): Likewise.
4839         (Qchinese_cns11643_3): Likewise.
4840         (Qchinese_cns11643_4): Likewise.
4841         (Qchinese_cns11643_5): Likewise.
4842         (Qchinese_cns11643_6): Likewise.
4843         (Qchinese_cns11643_7): Likewise.
4844         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4845         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4846         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4847         (complex_vars_of_mule_charset): Likewise.
4848
4849 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4850
4851         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4852         96-set.
4853         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4854         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4855
4856 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4857
4858         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4859         0xFF60.
4860         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4861         (breakup_char_1): Likewise.
4862
4863         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4864         one of them includes the specified character.
4865
4866 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4867
4868         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4869
4870 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4871
4872         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4873
4874 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4875
4876         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4877         definition for non-UTF-2000 Mule.
4878         (latin_iso8859_3_to_ucs): Likewise.
4879         (latin_iso8859_4_to_ucs): Likewise.
4880         (latin_iso8859_9_to_ucs): Likewise.
4881         (latin_jisx0201_to_ucs): Likewise.
4882         (MIN_CHAR_THAI): Likewise.
4883         (MAX_CHAR_THAI): Likewise.
4884         (MIN_CHAR_GREEK): Likewise.
4885         (MAX_CHAR_GREEK): Likewise.
4886         (MIN_CHAR_HEBREW): Likewise.
4887         (MAX_CHAR_HEBREW): Likewise.
4888         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4889         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4890         (MIN_CHAR_CYRILLIC): Likewise.
4891         (MAX_CHAR_CYRILLIC): Likewise.
4892
4893 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4894
4895         * char-ucs.h (breakup_char_1): Use
4896         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4897         thai-tis620 and katakana-jisx0201 area.
4898
4899 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4900
4901         * char-ucs.h (breakup_char_1): Use
4902         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4903         area.
4904
4905         * text-coding.c (reset_encoding_stream): Fixed.
4906         (char_encode_ucs4): Delete `& 255'.
4907
4908         * char-ucs.h (breakup_char_1): Use
4909         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4910
4911 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4912
4913         * file-coding.c (Fmake_coding_system): Don't set up
4914         `codesys->fixed.size'.
4915         (encode_coding_no_conversion): Don't refer
4916         `str->codesys->fixed.size'.
4917
4918 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4919
4920         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4921         (latin_a_char_to_byte1): Deleted.
4922         (latin_a_char_to_byte2): Deleted.
4923
4924 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4925
4926         * mule-charset.c (make_charset): Add new argument `ucs_min',
4927         `ucs_max' and `code_offset'.
4928         (charset_get_byte1): New implementation [delete specific charset
4929         depended implementations].
4930         (Fmake_charset): Modify for `make_charset'.
4931         (Fmake_reverse_direction_charset): Likewise.
4932         (complex_vars_of_mule_charset): Likewise.
4933
4934         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4935         `code_offset'.
4936         (CHARSET_UCS_MIN): New macro.
4937         (CHARSET_UCS_MAX): New macro.
4938         (CHARSET_CODE_OFFSET): New macro.
4939         (MAKE_CHAR): Delete charset depended definitions [except
4940         katakana-jisx0201].
4941
4942 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4943
4944         * char-ucs.h (breakup_char_1): Use
4945         `Vdefault_coded_charset_priority_list' for C0-Controls,
4946         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4947
4948 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4949
4950         * char-ucs.h (charset_get_byte1): New function.
4951         (XCHARSET_GET_BYTE1): Deleted.
4952         (charset_get_byte2): New function.
4953         (XCHARSET_GET_BYTE2): Deleted.
4954         (Vdefault_coded_charset_priority_list): New external variable.
4955         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4956         `Vdefault_preferred_coded_charset_list'.
4957
4958         * mule-charset.c (charset_get_byte1): New function.
4959         (charset_get_byte2): New function.
4960         (Vdefault_coded_charset_priority_list): New variable.
4961         (vars_of_mule_charset): Add new variable
4962         `default-coded-charset-priority-list'.
4963
4964 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4965
4966         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4967         (XCHARSET_GET_BYTE2): New inline function.
4968         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4969         `XCHARSET_GET_BYTE2'.
4970
4971 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4972
4973         * mule-charset.c (make_charset): Initialize
4974         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4975         NULL if table is not defined.
4976
4977 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4978
4979         * text-coding.c (char_encode_shift_jis): Use
4980         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4981         `ucs_to_latin_jisx0201'.
4982
4983         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4984         (ucs_to_latin_iso8859_2): Deleted.
4985         (ucs_to_latin_iso8859_3): Deleted.
4986         (ucs_to_latin_iso8859_4): Deleted.
4987         (ucs_to_latin_iso8859_9): Deleted.
4988         (ucs_to_latin_viscii_lower): Deleted.
4989         (ucs_to_latin_viscii_upper): Deleted.
4990         (ucs_to_latin_tcvn5712): Deleted.
4991         (make_charset): Add new argument `decoding_table'; set up
4992         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4993         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4994         `decoding_table' is defined in UTF-2000.
4995         (Fmake_charset): Modify for `make_charset'.
4996         (Fmake_reverse_direction_charset): Likewise.
4997         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4998         and `GENERATE_96_SET'.
4999
5000         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
5001         (ucs_to_latin_jisx0201): Deleted.
5002         (latin_iso8859_2_to_ucs): Deleted.
5003         (ucs_to_latin_iso8859_2): Deleted.
5004         (latin_iso8859_3_to_ucs): Deleted.
5005         (ucs_to_latin_iso8859_3): Deleted.
5006         (latin_iso8859_4_to_ucs): Deleted.
5007         (ucs_to_latin_iso8859_4): Deleted.
5008         (latin_iso8859_9_to_ucs): Deleted.
5009         (ucs_to_latin_iso8859_9): Deleted.
5010         (latin_viscii_lower_to_ucs): Deleted.
5011         (ucs_to_latin_viscii_lower): Deleted.
5012         (latin_viscii_upper_to_ucs): Deleted.
5013         (ucs_to_latin_viscii_upper): Deleted.
5014         (struct Lisp_Charset): Renamed `encoding_table' to
5015         `to_byte1_table'; add `to_byte2_table'.
5016         (CHARSET_DECODING_TABLE): New macro.
5017         (CHARSET_TO_BYTE1_TABLE): New macro.
5018         (CHARSET_TO_BYTE2_TABLE): New macro.
5019         (XCHARSET_DECODING_TABLE): New macro.
5020         (XCHARSET_TO_BYTE1_TABLE): New macro.
5021         (XCHARSET_TO_BYTE2_TABLE): New macro.
5022         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
5023         tables.
5024         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
5025         don't use `ucs_to_*' tables.
5026
5027 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5028
5029         * text-coding.c (Fmake_coding_system): Don't set up
5030         `codesys->fixed.size'.
5031         (encode_coding_no_conversion): Use `if' instead of `switch'.
5032
5033         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
5034
5035 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5036
5037         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
5038         (Fmake_charset): Modify for `make_charset'.
5039         (Fmake_reverse_direction_charset): Likewise.
5040         (complex_vars_of_mule_charset): Likewise.
5041
5042 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5043
5044         * text-coding.c (char_encode_shift_jis): Use table
5045         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
5046
5047 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
5048
5049         * text-coding.c (text_encode_generic): Use `if' instead of
5050         `switch'.
5051         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
5052         decode JIS-Latin.
5053
5054 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5055
5056         * text-coding.c (encode_coding_sjis): Deleted.
5057         (char_encode_shift_jis): New function.
5058         (char_finish_shift_jis): New function.
5059         (reset_encoding_stream): Set up `encode_char' and `finish' for
5060         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
5061         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
5062         (char_encode_utf8): Treat `eol_type'.
5063
5064 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5065
5066         * file-coding.c (decode_coding_iso2022): Use
5067         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
5068
5069 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5070
5071         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5072         to 0.7 (Hirano).
5073
5074 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5075
5076         * char-lb.h (CHAR_COLUMNS): New macro.
5077
5078 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5079
5080         * text-coding.c (char_encode_ucs4): New function.
5081         (char_finish_ucs4): New function.
5082         (encode_coding_ucs4): Deleted.
5083         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
5084         (text_encode_generic): Delete local variable `charset' and `half'.
5085         (ucs_to_mule_table): Deleted.
5086         (mule_to_ucs_table): Deleted.
5087         (Fset_ucs_char): Deleted.
5088         (ucs_to_char): Deleted.
5089         (Fucs_char): Deleted.
5090         (Fset_char_ucs): Deleted.
5091         (Fchar_ucs): Deleted.
5092         (decode_ucs4): Deleted.
5093         (mule_char_to_ucs4): Deleted.
5094         (encode_ucs4): Deleted.
5095         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
5096         (decode_coding_utf8): Likewise.
5097         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
5098         (char_encode_iso2022): Fixed.
5099         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
5100         `Fset_char_ucs' and `Fchar_ucs'.
5101         (complex_vars_of_file_coding): Don't initialize
5102         `ucs_to_mule_table'.
5103
5104         * objects-tty.c (tty_initialize_font_instance): Don't use
5105         `XCHARSET_COLUMNS'.
5106
5107         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
5108         UTF-2000.
5109
5110         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
5111         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5112
5113         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
5114         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5115         (emchar_string_displayed_columns): Likewise.
5116
5117         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
5118         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
5119         (string_column_at_point): Likewise.
5120         (Fmove_to_column): Likewise.
5121
5122         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
5123         `encoding_table' and `decoding_table'.
5124         (CHARSET_REP_BYTES): Deleted.
5125         (XCHARSET_REP_BYTES): Deleted.
5126         (XCHARSET_COLUMNS): Deleted.
5127         (CHAR_COLUMNS): New macro.
5128         (lookup_composite_char): Deleted unconditionally.
5129         (composite_char_string): Likewise.
5130
5131 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
5132
5133         * char-ucs.h (Emchar_to_byte_table): New type.
5134         (get_byte_from_character_table): New function interface.
5135         (Vcharset_latin_jisx0201): New variable.
5136         (latin_jisx0201_to_ucs): New variable.
5137         (ucs_to_latin_jisx0201): New variable.
5138         (Vcharset_latin_iso8859_2): New variable.
5139         (latin_iso8859_2_to_ucs): New variable.
5140         (ucs_to_latin_iso8859_2): New variable.
5141         (Vcharset_latin_iso8859_3): New variable.
5142         (latin_iso8859_3_to_ucs): New variable.
5143         (ucs_to_latin_iso8859_3): New variable.
5144         (Vcharset_latin_iso8859_4): New variable.
5145         (latin_iso8859_4_to_ucs): New variable.
5146         (ucs_to_latin_iso8859_4): New variable.
5147         (Vcharset_latin_iso8859_9): New variable.
5148         (latin_iso8859_9_to_ucs): New variable.
5149         (ucs_to_latin_iso8859_9): New variable.
5150         (Vcharset_latin_viscii_lower): New variable.
5151         (latin_viscii_lower_to_ucs): New variable.
5152         (ucs_to_latin_viscii_lower): New variable.
5153         (Vcharset_latin_viscii_upper): New variable.
5154         (latin_viscii_upper_to_ucs): New variable.
5155         (ucs_to_latin_viscii_upper): New variable.
5156         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5157         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5158         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5159         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5160         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5161         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5162         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5163         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5164         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5165         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5166
5167         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5168         (Vcharset_latin_viscii_upper): New variable.
5169         (make_byte_from_character_table): New function.
5170         (put_byte_from_character_table): New function.
5171         (get_byte_from_character_table): New function.
5172         (CHAR96): New macro.
5173         (ucs_to_latin_jisx0201): New variable.
5174         (latin_jisx0201_to_ucs): New variable.
5175         (ucs_to_latin_iso8859_2): New variable.
5176         (latin_iso8859_2_to_ucs): New variable.
5177         (ucs_to_latin_iso8859_3): New variable.
5178         (latin_iso8859_3_to_ucs): New variable.
5179         (ucs_to_latin_iso8859_4): New variable.
5180         (latin_iso8859_4_to_ucs): New variable.
5181         (ucs_to_latin_iso8859_9): New variable.
5182         (latin_iso8859_9_to_ucs): New variable.
5183         (ucs_to_latin_viscii_lower): New variable.
5184         (latin_viscii_lower_to_ucs): New variable.
5185         (ucs_to_latin_viscii_upper): New variable.
5186         (latin_viscii_upper_to_ucs): New variable.
5187         (ucs_to_latin_tcvn5712): New variable.
5188         (latin_tcvn5712_to_ucs): New variable.
5189         (Qlatin_viscii_lower): New variable.
5190         (Qlatin_viscii_upper): New variable.
5191         (syms_of_mule_charset): Set up new symbol
5192         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5193         (complex_vars_of_mule_charset): Set up new charset
5194         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5195         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5196         `ucs_to_<CHARSET>' tables.
5197
5198 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5199
5200         * text-coding.c: New file.
5201
5202 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5203
5204         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5205
5206         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5207         (MAKE_CHAR): Modify for `ucs-bmp'.
5208         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5209         non-MULE characters of BMP.
5210
5211 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5212
5213         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5214         to 0.6.
5215
5216 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5217
5218         * lstream.h:
5219         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5220         - Include character.h for `CHAR_ASCII_P'.
5221
5222         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5223
5224         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5225         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5226
5227         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5228         (BYTE_C0_P): Likewise.
5229         (BYTE_C1_P): Likewise.
5230         (Lstream_get_emchar_1): Likewise.
5231         (Lstream_fput_emchar): Likewise.
5232         (Lstream_funget_emchar): Likewise.
5233         (copy_internal_to_external): Likewise.
5234         (copy_external_to_internal): Likewise.
5235
5236         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5237         (BYTE_C0_P): Likewise.
5238         (BYTE_C1_P): Likewise.
5239         (Lstream_get_emchar_1): Likewise.
5240         (Lstream_fput_emchar): Likewise.
5241         (Lstream_funget_emchar): Likewise.
5242         (copy_internal_to_external): Likewise.
5243         (copy_external_to_internal): Likewise.
5244
5245         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5246         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5247
5248         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5249         (BYTE_ASCII_P): Moved to mb-1byte.h.
5250
5251 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5252
5253         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5254
5255         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5256         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5257         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5258         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5259         (VALIDATE_CHARPTR_FORWARD): Likewise.
5260         (simple_charptr_emchar): Moved to mb-multibyte.h.
5261         (simple_set_charptr_emchar): Likewise.
5262         (simple_charptr_copy_char): Likewise.
5263         (non_ascii_charptr_emchar): Likewise.
5264         (non_ascii_set_charptr_emchar): Likewise.
5265         (non_ascii_charptr_copy_char): Likewise.
5266         (charptr_emchar): Moved to mb-*byte.h.
5267         (set_charptr_emchar): Likewise.
5268         (charptr_copy_char): Likewise.
5269
5270         * mb-1byte.h, mb-multibyte.h: New files.
5271
5272 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5273
5274         * mb-utf-8.h (MULTIBYTE): New macro.
5275         (MAX_EMCHAR_LEN): Moved from buffer.h.
5276         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5277
5278         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5279
5280         * mb-lb.h, multibyte.h: New files.
5281
5282         * char-1byte.h (Charset_ID): Moved from buffer.h.
5283         (MIN_LEADING_BYTE): Likewise.
5284         (LEADING_BYTE_ASCII): Likewise.
5285         (NUM_LEADING_BYTES): Likewise.
5286         (CHARSETP): Likewise.
5287         (CHARSET_BY_LEADING_BYTE): Likewise.
5288         (XCHARSET_LEADING_BYTE): Likewise.
5289         (XCHARSET_GRAPHIC): Likewise.
5290         (XCHARSET_COLUMNS): Likewise.
5291         (XCHARSET_DIMENSION): Likewise.
5292         (CHAR_CHARSET): Likewise.
5293         (CHAR_LEADING_BYTE): Likewise.
5294         (BREAKUP_CHAR): Likewise.
5295         (Vcharset_ascii): Likewise.
5296
5297         * buffer.h: Include multibyte.h unconditionally.
5298         (VALID_CHARPTR_P): Moved to multibyte.h.
5299         (ASSERT_VALID_CHARPTR): Likewise.
5300         (REAL_INC_CHARPTR): Likewise.
5301         (REAL_INC_CHARBYTIND): Likewise.
5302         (REAL_DEC_CHARPTR): Likewise.
5303         (INC_CHARPTR): Likewise.
5304         (INC_CHARBYTIND): Likewise.
5305         (DEC_CHARPTR): Likewise.
5306         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5307         (VALIDATE_CHARPTR_FORWARD): Likewise.
5308         (charptr_n_addr): Likewise.
5309         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5310         (simple_charptr_emchar): Moved to multibyte.h.
5311         (simple_set_charptr_emchar): Likewise.
5312         (simple_charptr_copy_char): Likewise.
5313         (non_ascii_charptr_emchar): Likewise.
5314         (non_ascii_set_charptr_emchar): Likewise.
5315         (non_ascii_charptr_copy_char): Likewise.
5316         (charptr_emchar): Likewise.
5317         (set_charptr_emchar): Likewise.
5318         (charptr_copy_char): Likewise.
5319         (charptr_emchar_n): Likewise.
5320         (Charset_ID): Moved to char-1byte.h.
5321         (Vcharset_ascii): Likewise.
5322         (CHAR_CHARSET): Likewise.
5323         (CHAR_LEADING_BYTE): Likewise.
5324         (LEADING_BYTE_ASCII): Likewise.
5325         (NUM_LEADING_BYTES): Likewise.
5326         (MIN_LEADING_BYTE): Likewise.
5327         (CHARSETP): Likewise.
5328         (CHARSET_BY_LEADING_BYTE): Likewise.
5329         (XCHARSET_LEADING_BYTE): Likewise.
5330         (XCHARSET_GRAPHIC): Likewise.
5331         (XCHARSET_COLUMNS): Likewise.
5332         (XCHARSET_DIMENSION): Likewise.
5333         (BREAKUP_CHAR): Likewise.
5334
5335 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5336
5337         * character.h: Add document about interface for characters.
5338
5339         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5340         (MAKE_CHAR): Delete comment about
5341         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5342         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5343         (BREAKUP_CHAR): Modify name of arguments.
5344         (CHAR_CHARSET): Modify name of argument.
5345
5346         * buffer.h: Delete document about Emchar accessors.
5347
5348 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5349
5350         * character.h (CHAR_INTP): Moved from buffer.h
5351         (CHAR_OR_CHAR_INTP): Likewise.
5352         (XCHAR_OR_CHAR_INT): Likewise.
5353         (CHECK_CHAR_COERCE_INT): Likewise.
5354
5355         * buffer.h (CHAR_INTP): Moved to character.h
5356         (CHAR_OR_CHAR_INTP): Likewise.
5357         (XCHAR_OR_CHAR_INT): Likewise.
5358         (CHECK_CHAR_COERCE_INT): Likewise.
5359
5360 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5361
5362         * character.h:
5363         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5364         - Include char-1byte.h, char-lb.h or char-ucs.h.
5365
5366         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5367
5368         * buffer.h: Include character unconditionally.
5369         (valid_char_p): Moved to char-*.h.
5370         (non_ascii_valid_char_p): Moved to char-lb.h.
5371
5372         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5373
5374 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5375
5376         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5377         in UTF-2000 because it is not ported yet and not to use
5378         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5379         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5380         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5381
5382         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5383         (CHAR_ASCII_P): Moved from character.h.
5384
5385         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5386         (CHAR_ASCII_P): Likewise.
5387         (CHAR_FIELD1_MASK): Deleted.
5388         (CHAR_FIELD2_MASK): Deleted.
5389         (CHAR_FIELD3_MASK): Deleted.
5390         (MAX_CHAR_BASIC_LATIN): New macro.
5391         (CHAR_FIELD1): Deleted.
5392         (CHAR_FIELD2_INTERNAL): Deleted.
5393         (CHAR_FIELD3_INTERNAL): Deleted.
5394         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5395         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5396         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5397         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5398         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5399         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5400         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5401         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5402         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5403         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5404         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5405         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5406         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5407         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5408         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5409         (MIN_CHAR_COMPOSITION): Deleted.
5410         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5411         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5412
5413 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5414
5415         * buffer.h: Include mb-utf-8.h in UTF-2000.
5416
5417         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5418
5419         * mb-utf-8.h: New file.
5420
5421 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5422
5423         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5424         instead of `int'.
5425
5426         * mule-charset.h, buffer.h (Charset_ID): New type.
5427
5428 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5429
5430         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5431         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5432         instead of `MULE_CHAR_PRIVATE_OFFSET',
5433         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5434         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5435         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5436
5437         * character.h (Vcharset_japanese_jisx0212): New variable
5438         definition.
5439
5440 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5441
5442         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5443         (charset_by_attributes): Delete array about direction.
5444         (latin_a_char_to_charset): New variable in UTF-2000.
5445         (latin_a_char_to_byte1): New variable in UTF-2000.
5446         (latin_a_char_to_byte2): New variable in UTF-2000.
5447         (Qucs_bmp): New variable.
5448         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5449         `Bufbyte'.
5450         (next_allocated_2_byte_leading_byte): Likewise.
5451         (non_ascii_set_charptr_emchar): Likewise.
5452         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5453         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5454         `charset_by_attributes'.
5455         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5456         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5457         and `CHARSET_BY_LEADING_BYTE'.
5458         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5459         `utf-2000-version' to `vars_of_mule_charset'.
5460         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5461         define `leading-code-private-11' in UTF-2000; move setting of
5462         `utf-2000-version' from `syms_of_mule_charset'.
5463         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5464         UTF-2000.
5465
5466         * character.h (Charset_ID): New type.
5467         (LEADING_BYTE_UCS_BMP): New macro.
5468         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5469         (CHARSET_ID_OFFSET_94): New macro.
5470         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5471         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5472         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5473         final-byte.
5474         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5475         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5476         (CHARSET_ID_OFFSET_96): New macro.
5477         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5478         CHARSET_ID_OFFSET_96 and final-byte.
5479         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5480         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5481         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5482         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5483         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5484         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5485         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5486         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5487         (LEADING_BYTE_THAI_TIS620): Likewise.
5488         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5489         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5490         (CHARSET_ID_OFFSET_94x94): New macro.
5491         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5492         CHARSET_ID_OFFSET_94x94 and final-byte.
5493         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5494         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5495         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5496         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5497         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5498         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5499         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5500         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5501         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5502         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5503         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5504         (CHARSET_TYPE_128X128): New macro.
5505         (CHARSET_TYPE_256X256): New macro.
5506         (XCHARSET_PRIVATE_P): Delete unconditionally.
5507         (charset_by_attributes): Delete array about direction.
5508         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5509         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5510         (MIN_CHAR_94): New macro.
5511         (MAX_CHAR_94): New macro.
5512         (MIN_CHAR_96): New macro.
5513         (MAX_CHAR_96): New macro.
5514         (MIN_CHAR_94x94): New macro.
5515         (MAX_CHAR_94x94): New macro.
5516         (MIN_CHAR_96x96): New macro.
5517         (MAX_CHAR_96x96): New macro.
5518         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5519         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5520         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5521         - 32)'.
5522         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5523         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5524         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5525         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5526         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5527         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5528         `XCHARSET_LEADING_BYTE' to make code-point.
5529         (latin_a_char_to_charset): New variable.
5530         (latin_a_char_to_byte1): New variable.
5531         (latin_a_char_to_byte2): New variable.
5532         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5533         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5534         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5535
5536         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5537         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5538         (find_charsets_in_emchar_string): Likewise.
5539         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5540
5541         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5542         `int'.
5543         (decode_coding_iso2022): Likewise.
5544
5545         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5546         of `unsigned char'.
5547
5548         * redisplay.c (redisplay_text_width_emchar_string): Use
5549         `Charset_ID' instead of `unsigned char'.
5550         (redisplay_frame_text_width_string): Likewise.
5551
5552         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5553         `unsigned char'.
5554
5555         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5556         instead of `unsigned char'.
5557         (face_cachel_charset_font_metric_info): Likewise.
5558
5559         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5560         (get_non_ascii_char_table_value): Likewise.
5561         (get_char_table): Likewise.
5562         (put_char_table): Likewise.
5563         (map_over_other_charset): Likewise.
5564         (map_char_table): Likewise.
5565
5566         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5567         instead of `unsigned char'.
5568
5569 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5570
5571         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5572         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5573
5574         * mule-charset.c (leading_code_private_11): Don't define in
5575         UTF-2000.
5576
5577         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5578         in UTF-2000 because it is not ported yet and not to use
5579         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5580
5581 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5582
5583         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5584
5585 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5586
5587         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5588         in UTF-2000.
5589
5590         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5591         of unsigned char to store leading-byte.
5592
5593         * chartab.c (get_non_ascii_char_table_value): Don't use
5594         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5595
5596         * file-coding.c (encode_coding_big5): Delete bogus implementation
5597         in UTF2000.
5598
5599         * character.h (LEADING_BYTE_*): Delete definition for
5600         non-UTF-2000.
5601         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5602         (LEADING_BYTE_PREFIX_P): Deleted.
5603         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5604         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5605         (BUFBYTE_LEADING_BYTE_P): Deleted.
5606         (CHARSET_PRIVATE_P): Deleted unconditionally.
5607         (rep_bytes_by_first_byte): Deleted unconditionally.
5608         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5609         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5610         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5611         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5612         (CHAR_FIELD2): Deleted.
5613         (CHAR_FIELD3): Deleted.
5614         (MAKE_CHAR): Delete definition for non-UTF-2000.
5615         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5616         (breakup_char_1): New implementation.
5617         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5618         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5619
5620 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5621
5622         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5623         condition.
5624
5625 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5626
5627         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5628         (CHARSET_PRIVATE_P): Likewise.
5629         (XCHARSET_PRIVATE_P): Likewise.
5630         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5631
5632         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5633         UTF2000.
5634         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5635
5636 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5637
5638         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5639         (NUM_LEADING_BYTES): Changed from 128 to 256.
5640         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5641         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5642         UTF2000.
5643         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5644
5645         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5646         UTF2000.
5647         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5648         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5649         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5650         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5651         (Qchinese_cns11643_3): New variable in UTF2000.
5652         (Qchinese_cns11643_4): New variable in UTF2000.
5653         (Qchinese_cns11643_5): New variable in UTF2000.
5654         (Qchinese_cns11643_6): New variable in UTF2000.
5655         (Qchinese_cns11643_7): New variable in UTF2000.
5656         (syms_of_mule_charset): Define `chinese-cns11643-3',
5657         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5658         and `chinese-cns11643-7' in UTF2000.
5659         (vars_of_mule_charset): Initialize
5660         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5661         + 1 in UTF2000.
5662         (complex_vars_of_mule_charset): Setup charset
5663         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5664         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5665
5666 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5667
5668         * mule-charset.c: Move setting for `leading-code-private-11' from
5669         `syms_of_mule_charset' to `vars_of_mule_charset'.
5670
5671 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5672
5673         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5674         and `NUM_LEADING_BYTES' in assert.
5675
5676 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5677
5678         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5679         instead of 128.
5680         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5681         `NUM_LEADING_BYTES' instead of 128.
5682
5683 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5684
5685         * mule-charset.h (charset_by_leading_byte): Use
5686         `NUM_LEADING_BYTES' instead of 128.
5687         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5688
5689         * mule-charset.c (charset_by_leading_byte): Use
5690         `NUM_LEADING_BYTES' instead of 128.
5691         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5692
5693         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5694         128.
5695
5696 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5697
5698         * mule-charset.c (syms_of_mule_charset): Update to
5699         0.4 (Shin-Imamiya).
5700
5701 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5702
5703         * file-coding.c (encode_coding_sjis): New implementation for
5704         UTF2000.  (decode_coding_sjis): Ditto.
5705
5706 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5707
5708         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5709         Don't define in UTF2000.
5710
5711         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5712         defined.
5713
5714         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5715         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5716         MULE.
5717
5718 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5719
5720         * config.h.in (CHAR_IS_UCS4): New macro.
5721
5722         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5723         conventional MULE representation.
5724         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5725
5726         * mule-charset.h: Reverted to original.
5727
5728         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5729         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5730         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5731
5732         * character.h: New file.
5733
5734         * file-coding.c (Fmake_coding_system): Set 1 to
5735         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5736         defined.
5737         (encode_coding_no_conversion): New implementation for UTF2000.
5738
5739         * file-coding.h (struct Lisp_Coding_System): Add new member
5740         `fixed.size'.
5741
5742 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5743
5744         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5745         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5746         (encode_coding_iso2022): New implementation for UTF2000.
5747
5748 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5749
5750         * mule-canna.c (c2mu): New implementation for UTF2000.
5751         (m2c): Likewise.
5752
5753 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5754
5755         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5756
5757 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5758
5759         * file-coding.c (reset_encoding_stream): Set 0 to
5760         `str->iso2022.current_char_boundary' in UTF2000.
5761         (encode_utf8): Don't define in UTF2000.
5762         (encode_coding_utf8): New implementation for UTF-8 representation
5763         of UTF2000.
5764         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5765
5766 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5767
5768         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5769
5770         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5771         UTF2000.
5772         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5773
5774         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5775
5776         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5777         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5778         as UTF-8 in UTF2000.
5779         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5780         (non_ascii_valid_char_p): Don't define in UTF2000.
5781         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5782         (Lstream_get_emchar_1): Likewise.
5783         (utf-2000-version): New variable in UTF2000.
5784
5785         * lread.c (read_escape): Add new reader `u'.
5786
5787         * insdel.c (three_to_one_table): Don't define in UTF2000.
5788         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5789         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5790         UTF2000.
5791         (bytind_to_bufpos_func): Likewise.
5792         (buffer_mule_signal_inserted_region): Likewise.
5793         (vars_of_insdel): Don't initialize `three_to_one_table'.
5794         (init_buffer_text): Use `buf->text->mule_size' instead of
5795         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5796         UTF2000.
5797
5798         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5799         UTF-8 representation in UTF2000.
5800         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5801         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5802         (decode_coding_iso2022): Don't define local variable `lb' in
5803         UTF2000; don't use LEADING_BYTE in UTF2000; use
5804         `DECODE_ADD_UCS_CHAR' in UTF2000.
5805         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5806
5807         * config.h.in (UTF2000): New macro.
5808
5809         * buffer.h (struct buffer_text): Add new member `mule_size' and
5810         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5811         (valid_char_p): Return always 1 in UTF2000.
5812         (MAX_EMCHAR_LEN): 6 in UTF2000.
5813         (three_to_one_table): Don't define in UTF2000.
5814         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5815         UTF2000.
5816         (real_bytind_to_bufpos): Likewise.
5817
5818         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5819
5820 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5821
5822         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5823         representation change.
5824         (Vutf_2000_version): New variable.
5825         (leading_code_private_11): New variable.
5826         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5827         `leading-code-private-11'.
5828
5829         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5830         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5831         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5832         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5833         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5834         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5835         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5836         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5837         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5838         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5839         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5840         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5841         (MIN_CHAR_GREEK): New macro.
5842         (MAX_CHAR_GREEK): New macro.
5843         (MIN_CHAR_CYRILLIC): New macro.
5844         (MAX_CHAR_CYRILLIC): New macro.
5845         (MIN_CHAR_HEBREW): New macro.
5846         (MAX_CHAR_HEBREW): New macro.
5847         (MIN_CHAR_THAI): New macro.
5848         (MAX_CHAR_THAI): New macro.
5849         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5850         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5851         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5852         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5853         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5854         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5855         (CHAR_FIELD2): New inline function.
5856         (CHAR_FIELD3): New inline function.
5857         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5858         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5859         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5860         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5861         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5862         (MIN_CHAR_COMPOSITION): Likewise.
5863         (CHAR_LEADING_BYTE): Modified for character representation change.
5864         (MAKE_CHAR): Likewise.
5865
5866         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5867         (Vcharset_greek_iso8859_7): Likewise.
5868         (Vcharset_cyrillic_iso8859_5): Likewise.
5869         (Vcharset_hebrew_iso8859_8): Likewise.
5870         (Vcharset_thai_tis620): Likewise.
5871         (Vcharset_katakana_jisx0201): Likewise.
5872
5873 2005-02-06  Vin Shelton <acs@xemacs.org>
5874
5875         * XEmacs 21.4.17 is released
5876
5877 2005-01-31  Ben Wing  <ben@xemacs.org>
5878
5879         * emacs.c:
5880         Define assert_failed() always.
5881         * lisp.h:
5882         Always define ABORT().
5883
5884 2005-01-25  Ben Wing  <ben@xemacs.org>
5885
5886         * Makefile.in.in:
5887         * Makefile.in.in (%.o):
5888         Don't compile executable as Windows (-mwindows) under Cygwin.
5889         Semi-recent changes to Cygwin's executable-startup handling make
5890         it impossible to access the TTY this way.
5891
5892         Don't use special linker file under Cygwin (cygwin.sc) except
5893         when non-PDUMP (even in this case it is highly questionable); you
5894         get errors like
5895
5896       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
5897    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
5898
5899 2005-01-29  Ben Wing  <ben@xemacs.org>
5900
5901         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5902
5903         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
5904
5905 2005-01-29  Ben Wing  <ben@xemacs.org>
5906
5907         * bytecode.c (optimize_compiled_function):
5908         * print.c (FROB):
5909         * print.c (long_to_string):
5910         Add casts to avoid warning.
5911         
5912         * glyphs-eimage.c:
5913         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
5914         #### The better solution is to move the TIFF and JPEG code to
5915         different files.
5916         
5917         * glyphs-msw.c (mswindows_xbm_instantiate):
5918         Define __STDC__ to avoid problems with compface.h.
5919         
5920         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
5921         * EmacsShell-sub.c:
5922         * EmacsShell-sub.c (ABORT):
5923         * EmacsShell-sub.c (SuperClassRootGeometryManager):
5924         * EmacsShell-sub.c (RootGeometryManager):
5925         * EmacsShell.c:
5926         * EmacsShell.c (ABORT):
5927         * EmacsShell.c (EmacsShellUpdateSizeHints):
5928         * alloc.c (free_lcrecord):
5929         * alloca.c (i00afunc):
5930         * buffer.c (delete_from_buffer_alist):
5931         * buffer.c (MARKED_SLOT):
5932         * bytecode.c (execute_rare_opcode):
5933         * bytecode.c (optimize_byte_code):
5934         * bytecode.c (Ffetch_bytecode):
5935         * chartab.c (char_table_type_to_symbol):
5936         * chartab.c (Freset_char_table):
5937         * chartab.c (decode_char_table_range):
5938         * chartab.c (Fget_range_char_table):
5939         * chartab.c (check_valid_char_table_value):
5940         * chartab.c (map_char_table):
5941         * chartab.c (slow_map_char_table_fun):
5942         * chartab.c (chartab_instantiate):
5943         * cm.c (cmcheckmagic):
5944         * console-msw.c (DHEADER):
5945         * console.c (MARKED_SLOT):
5946         * data.c (finish_marking_weak_lists):
5947         * data.c (encode_weak_list_type):
5948         * debug.h (DASSERT):
5949         * device-gtk.c (gtk_init_device):
5950         * device-msw.c (mswindows_get_default_margin):
5951         * device-tty.c (tty_init_device):
5952         * device-x.c (get_device_from_display):
5953         * device-x.c (x_get_visual_depth):
5954         * doprnt.c (parse_doprnt_spec):
5955         * doprnt.c (get_doprnt_args):
5956         * dumper.c (pdump_get_indirect_count):
5957         * dumper.c (pdump_register_sub):
5958         * dumper.c (pdump_register_object):
5959         * dumper.c (pdump_register_struct):
5960         * dumper.c (pdump_dump_data):
5961         * dumper.c (pdump_reloc_one):
5962         * elhash.c (print_hash_table):
5963         * elhash.c (make_standard_lisp_hash_table):
5964         * elhash.c (hash_table_instantiate):
5965         * emacs.c:
5966         * emacs.c (Fforce_debugging_signal):
5967         * emacs.c (sort_args):
5968         * emacs.c (main):
5969         * emacs.c (assert_failed):
5970         * eval.c (throw_or_bomb_out):
5971         * eval.c (signal_1):
5972         * eval.c (Fsignal):
5973         * event-Xt.c:
5974         * event-Xt.c (emacs_Xt_mapping_action):
5975         * event-Xt.c (Xt_process_to_emacs_event):
5976         * event-msw.c:
5977         * event-stream.c (check_event_stream_ok):
5978         * event-stream.c (Fadd_timeout):
5979         * event-stream.c (Fadd_async_timeout):
5980         * event-stream.c (Fdiscard_input):
5981         * event-stream.c (execute_internal_event):
5982         * event-stream.c (Frecent_keys):
5983         * event-stream.c (extract_this_command_keys_nth_mouse_event):
5984         * event-stream.c (lookup_command_event):
5985         * event-unixoid.c (poll_fds_for_input):
5986         * events.c:
5987         * events.c (mark_event):
5988         * events.c (event_equal):
5989         * events.c (event_hash):
5990         * events.c (Fmake_event):
5991         * events.c (Fdeallocate_event):
5992         * events.c (event_chain_find_previous):
5993         * events.c (event_to_character):
5994         * events.c (format_event_object):
5995         * events.c (Fevent_type):
5996         * events.c (event_pixel_translation):
5997         * events.c (Fevent_properties):
5998         * extents.c (extent_in_region_p):
5999         * extents.c (print_extent):
6000         * extents.c (process_extents_for_insertion_mapper):
6001         * extents.c (report_extent_modification_mapper):
6002         * extents.c (glyph_layout_to_symbol):
6003         * faces.c (face_validate):
6004         * file-coding.c (eol_type_to_symbol):
6005         * file-coding.c (subsidiary_coding_system):
6006         * file-coding.c (Fcoding_system_type):
6007         * file-coding.c (Fcoding_system_property):
6008         * file-coding.c (mule_decode):
6009         * file-coding.c (mule_encode):
6010         * file-coding.c (encode_coding_ucs4):
6011         * file-coding.c (encode_coding_utf8):
6012         * file-coding.c (parse_iso2022_esc):
6013         * file-coding.c (encode_coding_iso2022):
6014         * fileio.c:
6015         * fns.c (concat):
6016         * fns.c (Fsubseq):
6017         * fns.c (mapcar1):
6018         * fns.c (Fbase64_encode_region):
6019         * fns.c (Fbase64_encode_string):
6020         * fns.c (Fbase64_decode_region):
6021         * fns.c (Fbase64_decode_string):
6022         * font-lock.c (find_context):
6023         * font-lock.c (context_to_symbol):
6024         * frame-gtk.c (gtk_set_frame_pointer):
6025         * frame-gtk.c (gtk_update_frame_external_traits):
6026         * frame-x.c (x_wm_mark_shell_size_user_specified):
6027         * frame-x.c (x_wm_mark_shell_position_user_specified):
6028         * frame-x.c (x_wm_set_shell_iconic_p):
6029         * frame-x.c (x_wm_set_cell_size):
6030         * frame-x.c (x_wm_set_variable_size):
6031         * frame-x.c (x_wm_store_class_hints):
6032         * frame-x.c (x_wm_maybe_store_wm_command):
6033         * frame-x.c (x_initialize_frame_size):
6034         * frame-x.c (x_update_frame_external_traits):
6035         * frame.c:
6036         * frame.c (delete_frame_internal):
6037         * frame.c (mouse_pixel_position_1):
6038         * frame.c (change_frame_size_1):
6039         * free-hook.c (check_free):
6040         * free-hook.c (check_realloc):
6041         * free-hook.c (note_block_input):
6042         * free-hook.c (log_gcpro):
6043         * gccache-gtk.c (gc_cache_lookup):
6044         * glyphs-eimage.c (tiff_memory_write):
6045         * glyphs-gtk.c (gtk_finalize_image_instance):
6046         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
6047         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
6048         * glyphs-gtk.c (gtk_xpm_instantiate):
6049         * glyphs-gtk.c (gtk_unmap_subwindow):
6050         * glyphs-gtk.c (gtk_map_subwindow):
6051         * glyphs-gtk.c (gtk_button_redisplay):
6052         * glyphs-msw.c:
6053         * glyphs-msw.c (init_image_instance_from_xbm_inline):
6054         * glyphs-x.c (init_image_instance_from_xbm_inline):
6055         * glyphs-x.c (extract_xpm_color_names):
6056         * glyphs-x.c (x_xpm_instantiate):
6057         * glyphs.c (get_image_instantiator_governing_domain):
6058         * glyphs.c (print_image_instance):
6059         * glyphs.c (image_instance_equal):
6060         * glyphs.c (image_instance_hash):
6061         * glyphs.c (encode_image_instance_type):
6062         * glyphs.c (make_image_instance_1):
6063         * glyphs.c (inherit_instantiate):
6064         * glyphs.c (image_instantiate):
6065         * glyphs.c (allocate_glyph):
6066         * glyphs.c (Fglyph_type):
6067         * glyphs.c (redisplay_subwindow):
6068         * glyphs.c (display_table_entry):
6069         * gtk-glue.c (xemacs_list_to_gtklist):
6070         * gtk-glue.c (xemacs_gtklist_to_list):
6071         * gtk-glue.c (xemacs_list_to_array):
6072         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
6073         * gutter.c (gutter_was_visible):
6074         * gutter.c (get_gutter_coords):
6075         * input-method-xlib.c (get_XIM_input):
6076         * insdel.c (bufpos_to_bytind_func):
6077         * insdel.c (bytind_to_bufpos_func):
6078         * insdel.c (move_gap):
6079         * intl.c (x_get_composed_input):
6080         * keymap.c (keymap_lookup_directly):
6081         * keymap.c (keymap_delete_inverse_internal):
6082         * keymap.c (ensure_meta_prefix_char_keymapp):
6083         * keymap.c (accessible_keymaps_mapper_1):
6084         * keymap.c (where_is_recursive_mapper):
6085         * lisp.h:
6086         * lisp.h (ABORT):
6087         * lread.c (read_atom):
6088         * lstream.c (Lstream_delete):
6089         * lstream.c (make_lisp_buffer_stream_1):
6090         * macros.c (pop_kbd_macro_event):
6091         * malloc.c (malloc):
6092         * malloc.c (free):
6093         * marker.c (bi_marker_position):
6094         * marker.c (set_bi_marker_position):
6095         * menubar-gtk.c (menu_descriptor_to_widget_1):
6096         * menubar-msw.c (prune_menubar):
6097         * menubar-x.c (set_frame_menubar):
6098         * mule-charset.c (get_unallocated_leading_byte):
6099         * mule-charset.h (CHAR_LEADING_BYTE):
6100         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6101         * nt.c (init_environment):
6102         * nt.c (generate_inode_val):
6103         * ntproc.c (delete_child):
6104         * ntproc.c (_sys_read_ahead):
6105         * ntproc.c (create_child):
6106         * objects.c (color_instantiate):
6107         * objects.c (font_instantiate):
6108         * objects.c (face_boolean_instantiate):
6109         * print.c (printing_major_badness):
6110         * process-nt.c (nt_send_process):
6111         * process-unix.c (unix_send_process):
6112         * process.c (get_process):
6113         * ralloc.c (obtain):
6114         * ralloc.c (relinquish):
6115         * ralloc.c (relocate_blocs):
6116         * ralloc.c (resize_bloc):
6117         * ralloc.c (r_alloc_free):
6118         * ralloc.c (r_re_alloc):
6119         * ralloc.c (r_alloc_thaw):
6120         * ralloc.c (init_ralloc):
6121         * ralloc.c (Free_Addr_Block):
6122         * ralloc.c (r_alloc):
6123         * redisplay-gtk.c (gtk_output_display_block):
6124         * redisplay-msw.c (mswindows_output_display_block):
6125         * redisplay-output.c (get_next_display_block):
6126         * redisplay-output.c (get_cursor_size_and_location):
6127         * redisplay-output.c (redisplay_output_layout):
6128         * redisplay-output.c (redisplay_clear_region):
6129         * redisplay-tty.c (tty_output_display_block):
6130         * redisplay-x.c (x_output_display_block):
6131         * redisplay.c (add_propagation_runes):
6132         * redisplay.c (add_glyph_rune):
6133         * redisplay.c (create_text_block):
6134         * redisplay.c (add_margin_runes):
6135         * redisplay.c (create_left_glyph_block):
6136         * redisplay.c (create_right_glyph_block):
6137         * redisplay.c (create_string_text_block):
6138         * redisplay.c (regenerate_window):
6139         * redisplay.c (REGEN_INC_FIND_START_END):
6140         * redisplay.c (redisplay_frame):
6141         * redisplay.c (point_in_line_start_cache):
6142         * regex.c:
6143         * regex.c (ABORT):
6144         * regex.c (re_compile_fastmap):
6145         * regex.c (re_match_2_internal):
6146         * regex.c (regerror):
6147         * scrollbar-gtk.c (gtk_scrollbar_loop):
6148         * scrollbar-gtk.c (scrollbar_cb):
6149         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6150         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6151         * scrollbar-x.c (x_update_scrollbar_instance_status):
6152         * scrollbar-x.c (x_scrollbar_loop):
6153         * scrollbar-x.c (x_update_frame_scrollbars):
6154         * search.c (search_command):
6155         * search.c (Fmatch_data):
6156         * select-x.c (motif_clipboard_cb):
6157         * signal.c (interrupt_signal):
6158         * specifier.c (specifier_add_spec):
6159         * specifier.c (specifier_instance_from_inst_list):
6160         * specifier.c (specifier_instance):
6161         * specifier.h:
6162         * specifier.h (struct specifier_methods):
6163         * strftime.c (add_num_time_t):
6164         * sunplay.c (init_device):
6165         * symbols.c (Fsetplist):
6166         * symbols.c (do_symval_forwarding):
6167         * symbols.c (store_symval_forwarding):
6168         * symbols.c (Fset):
6169         * symbols.c (Fbuilt_in_variable_type):
6170         * symbols.c (decode_magic_handler_type):
6171         * symbols.c (handler_type_from_function_symbol):
6172         * syntax.c (update_syntax_cache):
6173         * sysdep.c (init_baud_rate):
6174         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6175         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6176         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6177         * toolbar.c (get_toolbar_coords):
6178         * ui-gtk.c (build_gtk_boxed):
6179         * ui-gtk.c (describe_gtk_arg):
6180         * ui-gtk.c (gtk_type_to_lisp):
6181         * ui-gtk.c (lisp_to_gtk_type):
6182         * ui-gtk.c (lisp_to_gtk_ret_type):
6183         * ui-gtk.c (lisp_to_flag):
6184         * unexnt.c (read_in_bss):
6185         * unexnt.c (map_in_heap):
6186         * window.c (real_window):
6187         * window.c (window_display_lines):
6188         * window.c (window_display_buffer):
6189         * window.c (set_window_display_buffer):
6190         * window.c (window_modeline_height):
6191         * window.c (unshow_buffer):
6192         * window.c (window_loop):
6193         * window.c (Fget_lru_window):
6194         * window.c (Fsplit_window):
6195         * window.c (Fset_window_configuration):
6196         * window.c (saved_window_index):
6197         * xgccache.c (gc_cache_lookup):
6198         abort() -> ABORT().  Eliminate preprocessor games with abort()
6199         since it creates huge problems in VC7, solvable only by including
6200         massive amounts of files in every compile (and not worth it).
6201
6202         * sysdep.c:
6203         * sysproc.h:
6204         Inclusion of process.h does not need to be before lisp.h any more.
6205         Move later and remove comment about abort().
6206
6207 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6208
6209         * regex.c (re_match_2_internal):
6210         Correctly initialize loop which clears uninitialized registers.
6211
6212 2005-01-28  Vin Shelton  <acs@xemacs.org>
6213
6214         * sheap.c (more_static_core): Applied Ben's version of the long
6215         string patch.
6216
6217 2005-01-24  Vin Shelton  <acs@xemacs.org>
6218
6219         * sheap.c (more_static_core): Reformatted printf string so
6220         gcc-3.3.3 will compile this on Cygwin.
6221
6222 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6223
6224         * console.c (function_key_map): Reference `key-binding'.
6225
6226         * keymap.c (Vkey_translation_map): Improve docstring.
6227
6228 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6229
6230         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6231         * window.c (window_loop): [fix] Take into account
6232         `allow-deletion-of-last-visible-frame' variable.
6233         * window.c (replace-buffer-in-windows): Ditto.
6234
6235 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6236
6237         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6238
6239 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6240
6241         * event-gtk.c: Recognise AltGr as a valid modifier.
6242
6243 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6244
6245         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6246
6247 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6248
6249         Fix backreference bug caught by test suite.
6250
6251         * regex.c (regex_compile):
6252         Make backref duplicate internal register.
6253
6254 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6255
6256         Documentation, code clarification, and warning suppression.
6257         
6258         * regex.c (regex_compile):
6259         Improve comments.
6260         (re_match_2_internal):
6261         Improve comments and avoid redundant braces.  [Most of the big hunk
6262         at l. 4710 is indentation; use diff -w to see the real changes.]
6263         (alt_match_null_string_p):
6264         (common_op_match_null_string_p):
6265         Avoid shadowing global on Mac OS X 10.4, at least.
6266
6267 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6268
6269         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6270         introduced with shy groups fix).  [Already applied, probably
6271         with the second "fix shy groups" patch of 2004-10-07.] 
6272
6273 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6274
6275         From Andrey Slusar <anrays@gmail.com>:
6276
6277         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6278
6279 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6280
6281         * Makefile (RECURSIVE_MAKE): Removed.
6282         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6283         handling parallel builds.
6284
6285 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6286
6287         * Makefile.in.in: Enable support for parallel builds.
6288
6289 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6290
6291         From Andrey Slusar <anrays@gmail.com>:
6292
6293         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6294         FreeBSD version is >= 199701 _and_ < 600006.
6295
6296 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6297
6298         * scrollbar.c (compute_scrollbar_instance_usage):
6299         Only call device method compute_scrollbar_instance_usage() if it
6300         is defined.
6301
6302 2004-12-05  Vin Shelton <acs@xemacs.org>
6303
6304         * XEmacs 21.4.16 is released
6305
6306 2004-12-04  Vin Shelton  <acs@xemacs.org>
6307
6308         * depend: Regenerated.
6309
6310 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6311
6312         * regex.c (re_match_2_internal): Map internal to external
6313         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6314         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6315
6316 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6317
6318         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6319         to fix a crash.  Also, check the buffer is live and it
6320         really exists in buffer_list.  If the buffer is not in the list,
6321         prepend it.
6322
6323 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6324
6325         Fix shy groups by implementing recording of all groups for
6326         repetition and backtracking.  Backport from 21.5.
6327         
6328         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6329         external_to_internal_register, external_to_internal_register_size,
6330         and update comments for re_nsub.
6331
6332         * regex.c (re_opcode_t): Update comments.
6333         (print_compiled_pattern): Ouput external_to_internal_register,
6334         external_to_internal_register_size, and re_ngroups for debugging.
6335         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6336         (regex_compile): Update header comment.
6337         Ensure that all groups are recorded so that repeat matches and
6338         backtracking work correctly.  Comment related warning for groups >
6339         255.
6340         (re_search_2): Construct map of API indexes (which count only
6341         nonshy groups) to internal register numbers, and keep it updated.
6342
6343 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6344
6345         * frame-gtk.c (gtk_make_frame_visible):
6346         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6347         show/hide.  This is what X uses and is prevents previously hidden
6348         widgets from suddenly reappearing.
6349         * gtk-xemacs.c (gtk_xemacs_paint):
6350         * gtk-xemacs.c (gtk_xemacs_draw):
6351         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6352         drawable.
6353         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6354         size and location changes so that they can be seen before the next
6355         idle event.  Without this rapid changes to scrollbar properties
6356         are not seen.
6357
6358 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6359
6360         * console-gtk.h:
6361         * console-gtk.h (struct gtk_frame):
6362         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6363           Add hash tables track tab_control callback data.
6364           Added #defines for GTK object data names.
6365           Declaration of gtk_widget_to_frame().
6366         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6367         * frame-gtk.c (gtk_widget_to_frame): New.
6368         * frame-gtk.c (gtk_create_widgets):
6369         * frame-gtk.c (allocate_gtk_frame_struct):
6370         * frame-gtk.c (gtk_mark_frame):
6371         Manage frame callbakc hash tables.
6372         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6373         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6374         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6375         of widget size.
6376         * glyphs-gtk.c (gtk_widget_query_geometry): New
6377         * glyphs-gtk.c (gtk_register_gui_item): New
6378         * glyphs-gtk.c (gtk_add_tab_item): New
6379         * glyphs-gtk.c (gtk_tab_control_callback): New
6380         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6381         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6382         Use correct list when loading item.
6383         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6384         Register new methods.
6385         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6386         default size, for widgets.
6387         * gui-x.c:  Improved comment.
6388         * menubar-gtk.c (__generic_button_callback): Use
6389         gtk_widget_to_frame instead of __get_channel.
6390         * scrollbar-gtk.c:
6391         * ui-gtk.c: Use symbolic names for GTK object data.
6392
6393 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6394
6395         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6396
6397 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6398
6399         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6400
6401 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6402
6403         * malloc.c (morecore): siz is a long because in some architectures
6404         (eg ia-64) an int cannot hold the address range.  Additional patch
6405         from the SuSe distribution.
6406
6407 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6408
6409         * emacs.c:
6410         * malloc.c: lim_data is a long because in some architectures
6411         (eg ia-64) an int cannot hold the address range.
6412         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6413         instead of ulimit() because ulimit() always returns -1.
6414
6415 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6416
6417         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6418
6419 2004-06-11  David Kastrup  <dak@gnu.org>
6420
6421         * search.c (match_limit): Don't flag an error if match-data
6422         exceeding the allocated search_regs.num_regs gets requested, just
6423         return Qnil.
6424
6425 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6426
6427         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6428         replace symbolic color entries with the real colors specified in
6429         xpm-color-symbols, before passing the XPM to gtk.
6430         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6431         instead of a GTK specific field, so that it is used in by generic
6432         code.
6433
6434 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6435
6436        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6437         coredump from deref of NULL ptr (ExtData)
6438
6439 2004-04-19  Jerry James  <james@xemacs.org>
6440
6441         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6442         VALBITS to compute the location of the sign bit.
6443         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6444         of VALBITS with EMACS_INT_MAX.
6445         * events.c (Fevent_timestamp): Ditto.
6446         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6447         compute the halfway point to timestamp wraparound.
6448         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6449         EMACS_INT_MIN instead of using VALBITS.
6450         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6451         incorrect number with VALBITS.
6452         * fns.c (Frandom): Correct number of integer bits in docstring.
6453         Use INT_VALBITS instead of VALBITS to compute the denominator.
6454         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6455         build random numbers.
6456
6457 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6458         * event-gtk.c:
6459         * event-gtk.c (gtk_event_to_emacs_event):
6460         * menubar-gtk.c:
6461         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6462         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6463         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6464         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6465         * menubar-gtk.c (__activate_menu):
6466         * menubar-gtk.c (convert_underscores):
6467         * menubar-gtk.c (remove_underscores):
6468         * menubar-gtk.c (menu_convert):
6469         * menubar-gtk.c (menu_descriptor_to_widget_1):
6470         * menubar-gtk.c (menu_descriptor_to_widget):
6471         * menubar-gtk.c (menu_can_reuse_widget):
6472         * menubar-gtk.c (menu_create_menubar):
6473         * menubar-gtk.c (gtk_popup_menu):
6474         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6475         Added support for Gtk menu bar and menu item mnemonics.
6476
6477 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6478
6479         * sysdll.c: (dll_function): Added support for finding symbols in
6480         Darwin shared libraries as well in Darwin bundles.
6481         * sysdll.c (image_for_address): New
6482         * sysdll.c (my_find_image): New
6483         * sysdll.c (search_linked_libs): New
6484
6485 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6486
6487         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6488         return to GTK requires a different API to marshalling data to use
6489         as GTK parameters.
6490         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6491
6492 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6493
6494         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6495
6496 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6497
6498         * glyphs.c (process_image_string_instantiator):
6499         (Fset_console_type_image_conversion_list):
6500         Stop GCC from warning about shadowing of `exp'.
6501
6502         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6503
6504 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6505
6506         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6507
6508 2004-02-03  Vin Shelton  <acs@xemacs.org>
6509
6510         * glyphs.c (image_instance_layout): Remove pointless assertion.
6511         * regex.c (regex_grow_registers): Return type is void.
6512
6513 2004-02-02  Vin Shelton <acs@xemacs.org>
6514
6515         * XEmacs 21.4.15 is released
6516
6517 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6518
6519         * device-x.c (x_error_handler): Don't call stderr_out
6520
6521 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6522
6523         * buffer.c (other-buffer): Clarify documentation of order of
6524         arguments for FSF Emacs.
6525
6526 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6527
6528         * window.c (Fdelete_window): Dirty the mirror structure _before_
6529         marking the window deleted.
6530
6531 2003-09-15  Jerry James  <james@xemacs.org>
6532
6533         * event-msw.c (debug_mswin_messages): Conditionally compile
6534         messages missing from the Cygwin headers.
6535
6536 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6537
6538         * data.c (eq_with_ebola_notice): Fix typo in comment.
6539         (Ftrue_list_p): Improve docstring.
6540
6541 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6542
6543         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6544
6545 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6546
6547         * search.c (trivial_regexp_p): Regexps containing "\{" are
6548         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6549         Stefan Monnier for suggesting a diagnosis.
6550
6551 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6552
6553         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6554
6555 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6556
6557         * search.c (Fsearch_forward):
6558         (Fsearch_backward):
6559         Document negative count.
6560
6561 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6562
6563         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6564
6565 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6566
6567         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6568
6569 2003-09-15  Vin Shelton  <acs@xemacs.org>
6570
6571         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6572         21.5.
6573
6574 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6575
6576         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6577         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6578         (re_match_2_internal): Use TRANSLATE instead of
6579         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6580         non-ASCII char case conversion.
6581
6582 2003-09-08  Mike Sperber  <mike@xemacs.org>
6583
6584         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6585         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6586
6587 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6588
6589        * .gdbinit (pobj): fix printing of symbol name.
6590
6591 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6592
6593         * frame-x.c (x_layout_widgets): When resizing is about to cause
6594         frame size slip, mark it for redisplay.
6595
6596 2003-08-18  Jerry James  <james@xemacs.org>
6597
6598         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6599
6600 2003-09-03  Vin Shelton <acs@xemacs.org>
6601
6602         * XEmacs 21.4.14 is released
6603
6604 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6605
6606         * config.h.in (REGEX_MALLOC): Make it configure'able.
6607
6608 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6609
6610         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6611         linking.
6612         * sysdll.c (dll_init):
6613         * sysdll.c (dll_open):
6614         * sysdll.c (dll_close):
6615         * sysdll.c (dll_function):
6616         * sysdll.c (dll_variable):
6617         * sysdll.c (dll_error):
6618         Add support for loading bundles using Darwin/MacOSX
6619         native API.
6620
6621 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6622
6623         * process.c (start-process-internal): Document coding systems.
6624
6625 2003-07-30  Jerry James  <james@xemacs.org>
6626
6627         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6628
6629 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
6630
6631         * event-msw.c (mswindows_enqueue_mouse_button_event):
6632         * event-msw.c (mswindows_wnd_proc):
6633           enqueue button event when scrollwheel event isn't handled by 
6634           mswindows_handle_mousewheel_event, such as when the scrollbars
6635           are not showing.
6636
6637 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
6638
6639         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
6640
6641 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
6642
6643         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
6644
6645 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
6646
6647         * regex.c (re_match_2_internal): Fix matching degenerate word
6648         boundaries.
6649
6650 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
6651
6652         * XEmacs 21.4.13 is released
6653
6654 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
6655
6656         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
6657         * lisp.h (<inttypes.h>):
6658         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
6659         the definition.
6660
6661 2003-03-15  Martin Buchholz  <martin@xemacs.org>
6662
6663         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
6664         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
6665         Result: "temacs can only be run in -batch mode."
6666         Fix: Check xemacs executable candidate for directory-ness.
6667
6668 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
6669
6670         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
6671           they conflict with <sys/types.h>.
6672
6673 2003-02-14  Martin Buchholz  <martin@xemacs.org>
6674
6675         * database.c: Berkeley DB wants __STDC__ to be defined.
6676
6677 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6678
6679         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
6680
6681 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6682
6683         * process-unix.c (unix_send_process): Fix C++ compile error.
6684
6685 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
6686
6687         * Added .dylib as an acceptable shared library file extension
6688         * to support MacOSX.
6689
6690 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6691
6692         * EmacsFrameP.h (EmacsFramePart):
6693         Kludge to allow compiling with Motif1, but linking with Motif2.
6694
6695 2003-01-28  Martin Buchholz  <martin@xemacs.org>
6696
6697         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
6698
6699
6700 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
6701
6702         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
6703
6704 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
6705
6706         * sysdll.c: Included lisp.h to define needed alloca_array.
6707
6708 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6709
6710         Make XEmacs redisplay 10 times faster.
6711         If, that is, you're using a slow X connection and MoveOpaque.
6712         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
6713         Use compress_motion = TRUE.
6714         * EmacsFrame.c (emacsFrameClassRec): 
6715         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
6716         * EmacsManager.c (emacsManagerClassRec):
6717         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
6718
6719 2003-01-30  Vin Shelton  <acs@xemacs.org>
6720
6721         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
6722
6723 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
6724
6725         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
6726         Patch by Martin Buchholz.
6727
6728 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
6729
6730         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
6731         Thanks to icc for warning and Martin Buchholz for reporting.
6732
6733 2003-01-29  Vin Shelton <acs@xemacs.org>
6734
6735         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
6736
6737         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
6738         remember to multiply by the element size.
6739
6740 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
6741
6742         * XEmacs 21.4.12 "Portable Code" is released.
6743
6744 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
6745
6746         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
6747         * s/cygwin.sc: new linker file.
6748
6749 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
6750
6751         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
6752
6753         * redisplay-x.c (x_output_string): Use X11-specified types.
6754         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
6755         * emacs.c (__free_hook): Use typeof with Intel compiler.
6756         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
6757
6758 2003-01-08  Andy Piper  <andy@xemacs.org>
6759
6760         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
6761         reserve size during unexec().
6762
6763 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
6764
6765         * process-unix.c (unix_create_process): Don't let outchannel block.
6766
6767 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
6768
6769         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
6770         Needed for IsBadReadPtr().
6771
6772 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
6773
6774         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
6775
6776 2002-12-14  Ben Wing  <ben@xemacs.org>
6777
6778         * callint.c: Declaration error.
6779         * dumper.c (pdump):
6780         * dumper.c (pdump_load): Warning fix.
6781         * process.c: GCPRO error.
6782         * glyphs.c (unmap_subwindow):
6783         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
6784         * event-stream.c (maybe_kbd_translate): Wrong argument to
6785         character_to_event().
6786
6787         * alloc.c (garbage_collect_1):
6788         * emacs.c:
6789         * emacs.c (debug_can_access_memory):
6790         * emacs.c (fatal_error_signal):
6791         * emacs.c (mswindows_handle_hardware_exceptions):
6792         * emacs.c (main_1):
6793         * emacs.c (main):
6794         * emacs.c (assert_failed):
6795         * emacs.c (syms_of_emacs):
6796         * lisp.h:
6797         * print.c:
6798         * print.c (std_handle_out_va):
6799         * print.c (write_string_to_stdio_stream):
6800         * print.c (write_fmt_string):
6801         * print.c (printing_badness):
6802         * print.c (printing_major_badness):
6803         * print.c (print_internal):
6804         * print.c (debug_print_no_newline):
6805         * print.c (debug_backtrace):
6806         Be more defensive in handling bad values when printing.  Add code
6807         from trunk involving inhibit_non_essential_printing_operations.
6808         When going down or in debug_print(), don't do external conversion
6809         and such and try really, really hard when printing to avoid core
6810         dumping.  Add force-debugging-signal, debug_break().
6811
6812 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
6813
6814         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
6815         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
6816
6817 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
6818
6819         * database.c: Fix open_database. Berkeley DB API has changed in
6820         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
6821
6822 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
6823
6824         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
6825
6826 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
6827
6828         * event-Xt.c (Xt_timeout):
6829         (Xt_timeout_callback):
6830         (emacs_Xt_add_timeout):
6831         (emacs_Xt_remove_timeout):
6832         (Xt_timeout_to_emacs_event):
6833         Turn completed_timeouts from a stack into a queue.  Fixes
6834         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
6835
6836 2002-11-07  Wolfram Gloger  <wg@malloc.de>
6837
6838         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
6839         * emacs.c (main): Assert that mmap'd allocation is disabled.
6840
6841 2002-10-14  Andy Piper  <andy@xemacs.org>
6842
6843         * glyphs-widget.c (layout_query_geometry): add in fiddle
6844         factor. Include border text in width layout calculation.
6845         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
6846
6847 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
6848
6849         * XEmacs 21.4.10 "Military Intelligence" is released.
6850
6851 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
6852
6853         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
6854         using the NAS private array SoundFileInfo that no longer exists in
6855         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
6856         and earlier.  This is broken for some versions between 1.5a and
6857         1.5f.
6858
6859 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
6860
6861         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
6862
6863         * emacs.c (shut_down_emacs): Improve crash message.
6864
6865 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
6866
6867         * file-coding.c (determine_real_coding_system): Check for coding
6868         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
6869         shebangs and Python PEP 263.
6870
6871 2002-10-08  Andy Piper  <andy@xemacs.org>
6872
6873         * glyphs-widget.c (layout_query_geometry): only resize dynamically
6874         if static sizes haven't been set.
6875
6876 2002-08-30  Mike Alexander  <mta@arbortext.com>
6877
6878         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
6879         to close a socket.
6880
6881 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
6882
6883         * callproc.c (child_setup): 21.4 doesn't have retry_close.
6884
6885 2002-09-20  Mike Sperber <mike@xemacs.org>
6886
6887         (This partially gets back my patch from 2002-07-20 without the
6888         bug.)
6889         * callproc.c (child_setup): Remove Ben's comment noting confusion
6890         over the file descriptors >= 3: close_process_descs() doesn't
6891         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
6892         * process-unix.c (unix_create_process): Call
6893         begin_dont_check_for_quit to inhibit unwanted interaction (and
6894         thus breaking of X event synchronicity) in the child.
6895
6896 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
6897
6898         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
6899         widget.
6900
6901 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
6902
6903         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
6904         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
6905         the xemacs process did not exit, but looped infinitely here.  This
6906         fixes that problem.
6907
6908 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6909
6910         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
6911         (find_context): Improve comments.
6912
6913         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
6914         (re_match_2): An XCHAR_TABLE operation was missing.
6915
6916         Many of the following changes were inspired by Andy Piper's (now
6917         obsolete) patch to make syntax-table text property lookup optional.
6918
6919         [Documentation]
6920
6921         * syntax.h (top level): Document semantics of syntax flags.
6922         * syntax.c (comstr_start, Fforward_comment): Improve comments.
6923         * syntax.c, syntax.h (top level): Document syntax cache better in
6924         comments.
6925
6926         [Instrument syntax caching (temporary change)]
6927
6928         * syntax.h (enum syntax_cache_statistics_functions, struct
6929         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
6930         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
6931         * syntax.c (scan_words, Fforward_comment, scan_lists,
6932         Fbackward_prefix_characters):
6933         * font-lock.c (find_context):
6934         Use them to instrument syntax caching. 
6935         * syntax.c (struct syntax_cache_statistics, scs_statistics,
6936         syntax_cache_statistics_function_names): New type and variables.
6937         * syntax.c (update_syntax_cache): Update and report statistics.
6938
6939         [Major syntax cache optimizations]
6940
6941         syntax.c (lookup_syntax_properties): Default off.
6942
6943         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
6944         * syntax.c (update_syntax_cache):
6945         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
6946
6947         [Minor syntax cache optimizations and code clarifications]
6948
6949         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
6950         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
6951         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
6952         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
6953         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
6954         (Code clarification.)
6955
6956         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
6957         scan_lists): Compute code from syncode, use Boolean macros instead
6958         of redundant masking operations.  (Code clarification; any decent
6959         compiler can do this optimization.)
6960
6961         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
6962         for clarity.
6963
6964         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
6965         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
6966         use F*_single_property_change instead of F*_extent_change.
6967         Currently F*_single_property_change is _much_ less efficient.
6968
6969         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
6970         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
6971         syntax_cache.object properly, don't leave Qt or Qnil.
6972         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
6973         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
6974         tests for Qt or Qnil.
6975
6976 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
6977
6978         * redisplay.c (point_in_line_start_cache): 
6979         * extents.c (print_extent_1):
6980         Fix warnings.
6981
6982         * extents.c (Fset_extent_property): Document `syntax-table' property.
6983
6984         * extents.h (Fnext_single_property_change): EXFUN it.
6985
6986 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6987
6988         * search.c (clear_unused_search_regs): New static function.
6989         (search_buffer): 
6990         (simple_search): 
6991         (boyer_moore):
6992         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
6993         Minor clarifications in comments.
6994
6995         * regex.c (re_match_2_internal): Ensure no stale submatches.
6996
6997 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6998
6999         * event-Xt.c (enqueue_focus_event): Add missing prototype.
7000
7001 2002-08-29  Jerry James  <james@xemacs.org>
7002
7003         * lisp.h: structrures -> structures.
7004
7005 2002-06-03  Andy Piper  <andy@xemacs.org>
7006
7007         * frame.c (frame_conversion_internal): add conversion appropriate
7008         for setting frame dimensions in pixels.
7009
7010         * console.h (struct console_methods): add device-specific widget
7011         layout functions.
7012
7013         * emacs.c (main_1): initialize glyph vars.
7014
7015         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
7016         (handle_focus_event_2): new function. Allow focus to
7017         be set to a particular window and widget.
7018         (enqueue_focus_event): new function. Create a
7019         synthetic focus event.
7020         (emacs_Xt_handle_magic_event): call
7021         handle_focus_event_2.
7022
7023         * frame.c (Fset_frame_pixel_height): new function. Allow
7024         pixel-based sizing. Does the right thing on character-oriented
7025         displays.
7026         (Fset_frame_pixel_width): ditto.
7027         (Fset_frame_pixel_size): ditto.
7028         (syms_of_frame): declare.
7029
7030         * general-slots.h: add :vertically-justify and
7031         :horizontally-justify.
7032
7033         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
7034         (mswindows_widget_border_width): new function.
7035         (mswindows_combo_box_instantiate): set border widths.
7036         (console_type_create_glyphs_mswindows): declare.
7037
7038         * glyphs-widget.c:
7039         (check_valid_justification): allow vertical and horizontal
7040         justification.
7041         (widget_border_width): new function. Call device methods.
7042         (widget_instance_border_width): ditto.
7043         (logical_unit_height): new function. Determine the height of a
7044         logical-unit. Logical units are intended to provide grid-like
7045         layout for subcontrols in a layout. If the layout is
7046         :vertically-justify top then subcontrols will be positioned on
7047         logical-unit boundaries, thus allowing adjacent subcontrols to
7048         line up.
7049         (widget_logical_unit_height): ditto for widgets.
7050         (redisplay_widget): misc cleanup.
7051         (widget_spacing): new function. Call device specific
7052         methods. Intended to be the default gap between adjacent widgets.
7053         (widget_query_geometry): use new spacing functions to determine
7054         appropriate geometry.
7055         (initialize_widget_image_instance): initialize horizontal and
7056         vertical justification.
7057         (widget_instantiate): use logica-units where appropriate for
7058         sizing large widgets.
7059         (button_query_geometry): use widget_instance_border_width.
7060         (tree_view_query_geometry): ditto.
7061         (tab_control_query_geometry): ditto.
7062         (edit_field_query_geometry): new function.
7063         (layout_update): pick up :justify, :horizontally-justify and
7064         :vertically-justify none of which worked previously. :justify is
7065         used as a fallback for both horizontal and vertical justification.
7066         (layout_query_geometry): use logical units to size appropriately.
7067         (layout_layout): ditto.
7068         (Fwidget_logical_to_character_width): new function. Allow users to
7069         convert from logical units to characters so that frame sizes can
7070         be set appropriately.
7071         (Fwidget_logical_to_character_height): ditto.
7072         (syms_of_glyphs_widget): declare.
7073         (image_instantiator_edit_fields): add edit_field_query_geometry.
7074         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
7075         :horizontally-justify.
7076         (specifier_vars_of_glyphs_widget): new function. Declare
7077         Vwidget_border_width which is not yet used.
7078
7079         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
7080         (x_widget_border_width): new function.
7081         (x_widget_instantiate): create a sensible name for widgets.
7082         (console_type_create_glyphs_x): declare x_widget_border_width.
7083
7084         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
7085         (struct Lisp_Image_Instance): add :vertically-justify and
7086         :horizontally-justify.
7087         (LAYOUT_JUSTIFY_TOP): new.
7088         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
7089         (ROUND_UP): new macro. Round argument up to next integral
7090         interval.
7091
7092         * redisplay-output.c (redisplay_output_layout): misc formatting.
7093
7094         * symsinit.h: declare specifier_vars_of_glyphs_widget.
7095
7096 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
7097
7098         * XEmacs 21.4.9 "Informed Management" is released.
7099
7100 2002-08-19  Andy Piper  <andy@xemacs.org>
7101
7102         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
7103         win32 format.
7104
7105         * realpath.c (xrealpath): normalize drive spec also so that dir
7106         sep chars are not mixed on cygwin.
7107
7108 2002-08-06  Jerry James  <james@xemacs.org>
7109
7110         * window.c (Fsplit_window): Count only half of the divider width
7111         against the left window when splitting horizontally. 
7112
7113 2002-06-24  Andy Piper  <andy@xemacs.org>
7114
7115         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
7116         toolbar was cleared.
7117
7118         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
7119         function. Split out from mswindows_output_frame_toolbars.
7120         (mswindows_output_frame_toolbars): move clear pieces to
7121         mswindows_output_frame_toolbars.
7122
7123         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
7124         out from gtk_output_frame_toolbars.
7125         (gtk_output_frame_toolbars): move clear pieces to
7126         gtk_clear_frame_toolbars.
7127
7128         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
7129         the frame is cleared. How this ever worked before is a mystery.
7130         (x_output_frame_toolbars): Only output toolbars.
7131         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
7132
7133         * gutter.c (update_gutter_geometry):
7134         Mark frame layout changed.
7135         (update_frame_gutter_geometry, update_frame_gutters):
7136         Respect frame_layout_changed.
7137
7138         * console.h (struct console_methods): add
7139         clear_frame_toolbars_method.
7140
7141         * redisplay.c (redisplay_frame): call
7142         update_frame_toolbars_geometry and re-order update_frame_toolbars.
7143
7144         * toolbar.h: declare update_frame_toolbars_geometry.
7145
7146         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7147         out from update_frame_toolbars.  Call clear_frame_toolbars.
7148         (update_frame_toolbars): only output, do not change geometry.
7149
7150         * redisplay.c: add frame_layout_changed.
7151
7152         * redisplay.h: add frame_layout_changed.
7153         (CLASS_RESET_CHANGED_FLAGS): set it.
7154         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7155         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7156         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7157
7158         * device.h (struct device): add frame_layout_changed.
7159         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7160
7161         * frame.h (struct frame): add frame_layout_changed.
7162         (MARK_FRAME_LAYOUT_CHANGED): new.
7163
7164 2002-06-30  Mike Alexander  <mta@arbortext.com>
7165
7166         * event-msw.c (mswindows_need_event): Don't wait for a new message
7167         if the queue is not empty.  Suggested by Paul Moore.
7168
7169 2002-06-12  Andy Piper  <andy@xemacs.org>
7170
7171         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7172         for printing on accurately.
7173
7174 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7175
7176         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7177         WM_ACTIVATE message. Make sure that the frame is visible if the
7178         window is visible. This seemss to fix the problem where XEmacs
7179         appears to freeze after switching desktops with certain virtual
7180         window managers.
7181         (debug_output_mswin_message): Added code to output message
7182         parameters for WM_WINDOWPOSCHANGED, 
7183         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7184
7185 2002-05-25  Andy Piper  <andy@xemacs.org>
7186
7187         * select-x.c (vars_of_select_x): Fix docstring of
7188         x-selection-strict-motif-ownership
7189
7190 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7191
7192         * keymap.c (get_keymap):
7193         Add comment about do_autoload GCPROs own args.
7194
7195 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7196
7197         * bytecode.c (execute_optimized_program): check_opcode ifdef
7198         ERROR_CHECK_BYTE_CODE.
7199
7200 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7201
7202         Thanks to Ben Wing and Michael Sperber.
7203
7204         * eval.c (Fcommand_execute):
7205         (Feval):
7206         (Ffuncall):
7207         (Fmacroexpand_internal):
7208         (function_argcount):
7209         callint.c (Fcall_interactively):
7210         Add comment about do_autoload GCPROs own args.
7211
7212         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7213
7214         * eval.c (Ffuncall): Extra braces to placate GCC.
7215
7216 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7217
7218         * backtrace.h (grow_specpdl):
7219         (SPECPDL_RESERVE):
7220         * EmacsFrame.c (EmacsFrameSetValues):
7221         * eval.c (grow_specpdl):
7222         * ExternalShell.c (hack_event_masks_1):
7223         * glyphs-x.c (convert_EImage_to_XImage): 
7224         (x_finalize_image_instance):
7225         * ralloc.c (page_size):
7226         (r_alloc_sbrk):
7227         * xgccache.c (gc_cache_hash):
7228         Fix unsigned comparison warnings.
7229
7230 2002-07-29  Jerry James  <james@xemacs.org>
7231
7232         * lread.c (locate_file): Any nonnegative return value indicates
7233         success if MODE is nonnegative.
7234
7235 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7236
7237         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7238         argument. 
7239
7240 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7241
7242         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7243
7244         * dumper.c (pdump_get_indirect_count):
7245         (pdump_scan_by_alignment):
7246         (pdump_dump_root_struct_ptrs):
7247         (pdump_dump_rtables):
7248         (pdump_dump_root_objects):
7249         (pdump):
7250         * nas.c (WaveOpenDataForReading):
7251         * fns.c (print_bit_vector):
7252         * font-lock.c (SINGLE_SYNTAX_STYLE):
7253         * glyphs.c (check_for_ignored_expose):
7254         (find_matching_subwindow):
7255         * glyphs-eimage.c:
7256         * imgproc.c (get_histogram):
7257         * redisplay.c (point_in_line_start_cache):
7258         * redisplay-output.c (redisplay_unmap_subwindows):
7259         * symbols.c (defsymbol_massage_name_1):
7260         (defkeyword_massage_name):
7261         (deferror_massage_name_and_message):
7262         * redisplay-x.c (x_output_string): 
7263         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7264         * frame.h (struct frame):
7265         * filelock.c (current_lock_owner):
7266         * doprnt.c (emacs_doprnt_1):
7267         * lisp.h (struct Lisp_Bit_Vector):
7268         (DO_REALLOC):
7269         Fix warnings.
7270
7271 2002-02-13  Ben Wing  <ben@xemacs.org>
7272
7273         * event-stream.c (reset_key_echo):
7274         * event-stream.c (reset_this_command_keys):
7275         * event-stream.c (execute_command_event):
7276         If console is dead as a result of C-x 5 0, then post-command stuff
7277         needs to be careful and do only non-console-specific stuff.
7278
7279 2002-07-01  Mike Sperber <mike@xemacs.org>
7280
7281         * process-unix.c (unix_send_process): Mark coding_outstream as
7282         non-open upon SIGPIPE.
7283
7284         * event-stream.c (Fnext_event): Reorder switch cases to something
7285         that makes sense.
7286
7287 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7288
7289         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7290         Don't bogusly reinitialize ascii_character property.
7291
7292 2002-07-08  Mike Sperber <mike@xemacs.org>
7293
7294         * process.c (Fstart_process_internal): Do error checking before we
7295         fork off the child, so the child can't muck with the state of the
7296         parent.
7297
7298 2002-07-08  Mike Sperber <mike@xemacs.org>
7299
7300         * ralloc.c (init_ralloc): Allocate properly for pdump.
7301
7302 2002-06-12  Andy Piper  <andy@xemacs.org>
7303
7304         * glyphs.c (query_string_geometry): check the string.
7305
7306         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7307         widget names.
7308
7309 2002-06-17  Jerry James  <james@xemacs.org>
7310
7311         * sysdll.c: Remove RTLD_GLOBAL initialization.
7312         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7313
7314 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7315
7316         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7317
7318 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7319
7320         * sysdep.c (sys_rename): Make sys_rename work for the case where
7321         Windows rename sets errno to EACCES if target file exists.
7322
7323 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7324
7325         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7326         Fix detection of metric units to work on Win95
7327
7328 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7329
7330         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7331
7332 2002-04-25  Andy Piper  <andy@xemacs.org>
7333
7334         * redisplay.c (create_text_block): Remove extra comment trailer.
7335
7336 2002-04-24  Andy Piper  <andy@xemacs.org>
7337
7338         * redisplay.c (create_text_block): Don't actually add propagation
7339         data if the line ends after we have added a glyph.
7340
7341 2002-04-22  Andy Piper  <andy@xemacs.org>
7342
7343         * extents.c (extent_fragment_update): check for glyphs we have
7344         previously displayed.
7345         * extents.c (print_extent_1): warning removal.
7346         * extents.h: change prototype.
7347         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7348         widths correctly for wide glyphs.
7349         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7350         * redisplay.c (prop_type): add PROP_GLYPH.
7351         * redisplay.c (struct prop_block): add glyph type
7352         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7353         to the propagation data.
7354         * redisplay.c (create_text_block): if there is a glyph in the
7355         propagation data use it to salt extent_fragment_update.
7356         * redisplay.c (create_string_text_block): ditto.
7357
7358 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7359
7360         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7361         * redisplay-output.c (compare_runes): Compare them.
7362         * redisplay.c: Update copyright date.
7363         * redisplay.c (pos_data): Add need_baseline_computation field.
7364         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7365         need_baseline_computation; zero yoffset. Set max_pixmap_height
7366         for all pixmaps, not just automatically positioned ones.
7367         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7368         * redisplay.c (calculate_baseline): New, compute textual baseline.
7369         * redisplay.c (add_glyph_rune): Call them.
7370         * redisplay.c (create_text_block): Likewise.
7371         * redisplay.c (create_overlay_glyph_block): Likewise.
7372         * redisplay.c (add_margin_runes): Likewise.
7373         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7374
7375         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7376         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7377         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7378         * redisplay-msw.c (mswindows_output_string): Likewise.
7379         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7380         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7381         * redisplay-x.c (x_output_display_block): Likewise.
7382
7383 2002-03-28  Ben Wing  <ben@xemacs.org>
7384
7385         * redisplay.c: Fixed bug in redisplay
7386         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7387         and down of the lines, since they're bigger than the line
7388         size. (It was seen most obviously when there's a horizontal scroll
7389         bar, e.g. do C-h a glyph or something like that.) The problem was
7390         that the glyph-contrib-p setting on glyphs was ignored even if it
7391         was set properly, which it wasn't until now.
7392
7393 2002-04-24  Andy Piper  <andy@xemacs.org>
7394
7395         * lisp.h (Dynarr_end): Fix definition.
7396
7397 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7398
7399         * redisplay.c (mark_redisplay): Remove call to
7400         update_frame_window_mirror.
7401
7402 2001-11-15  Andy Piper  <andy@xemacs.org>
7403
7404         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7405         cygwin (again).
7406
7407 2002-02-13  Andy Piper  <andy@xemacs.org>
7408
7409         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7410         we did in fact enqueue the XM_MAPFRAME event.
7411
7412 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7413
7414         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7415         to fix problem switching between virtual desktops under virtuawin
7416         virtual window manager.
7417
7418 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7419
7420         * event-msw.c: Typo fix.
7421         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7422         magic XM_MAPFRAME event has been sent.
7423
7424 2001-11-23  Andy Piper  <andy@xemacs.org>
7425
7426         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7427
7428 2001-11-21  Andy Piper  <andy@xemacs.org>
7429
7430         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7431         mouse events outside the frame.
7432
7433 2002-03-20  Andy Piper  <andy@xemacs.org>
7434
7435         * menubar-msw.c (mswindows_popup_menu): warning removal.
7436         * dialog-msw.c (dialog_popped_down): ditto.
7437
7438 2001-12-11  Andy Piper  <andy@xemacs.org>
7439
7440         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7441         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7442         popup_up_p.
7443         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7444         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7445         * menubar-msw.c (mswindows_popup_menu): ditto.
7446
7447 2001-10-29  Andy Piper  <andy@xemacs.org>
7448
7449         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7450         cancels.
7451
7452 2002-01-03  Andy Piper  <andy@xemacs.org>
7453
7454         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7455         letters.
7456         (xrealpath): ditto.
7457
7458 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7459
7460         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7461         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7462         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7463         Detect and handle case where machine is set up for metric units
7464
7465 2002-04-02  Andy Piper  <andy@xemacs.org>
7466
7467         * dired-msw.c (mswindows_get_files): 
7468         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7469         completely handled by XEmacs. Suggested by Thomas Vogler
7470         <mail@thomas-vogler.de>.
7471
7472 2001-11-14  Andy Piper  <andy@xemacs.org>
7473
7474         * nt.c (REG_ROOT): change registry key to XEmacs.
7475
7476 2002-04-27  Andy Piper  <andy@xemacs.org>
7477
7478         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7479
7480 2002-04-26  Andy Piper  <andy@xemacs.org>
7481
7482         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7483         behavior.
7484
7485 2002-03-14  Mike Alexander  <mta@arbortext.com>
7486
7487         * event-msw.c (mswindows_unwait_process): New, remove process from
7488         wait list
7489         * process-nt.c (nt_finalize_process_data): Call
7490         mswindows_unwait_process
7491         * console-msw.h: Declare mswindows_unwait_process
7492
7493 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7494
7495         * editfns.c (Fdecode_time):
7496         (Fformat_time_string):
7497         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7498         (make_time): Warning elimination (change arg name).
7499
7500 2001-11-24  Andy Piper  <andy@xemacs.org>
7501
7502         * window.c (Fsplit_window): Doc return type.
7503
7504 2002-04-01  Andy Piper  <andy@xemacs.org>
7505
7506         * emacs.c (Fkill_emacs): Only output message box in interactive
7507         mode.
7508
7509 2002-04-26  Andy Piper  <andy@xemacs.org>
7510  
7511         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7512         cygwin.
7513
7514 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7515
7516         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7517         bit platform.
7518
7519 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7520
7521         * XEmacs 21.4.8 "Honest Recruiter" is released.
7522
7523 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7524
7525         Supersedes 2002-04-17 patch.
7526
7527         * process.h (PROCESS_LIVE_P): Use the process status as
7528         evidence of health, not the state of the input stream.
7529         (PROCESS_READABLE_P): Say if the process is readable
7530         from. (It may be dead nonetheless.)
7531         (CHECK_READABLE_PROCESS): Test for that condition.
7532
7533         * process.c (create_process): Use PROCESS_READABLE_P.
7534         (read_process_output, set_process_filter): Likewise.
7535
7536         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7537         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7538
7539         This code is #if 0'd, this is not the time to add new functions:
7540
7541         * process.c (Fprocess_readable_p): Report readability status.
7542         * process.c (Qprocess_readable_p): New, associated symbol...
7543         * process.c (syms_of_process): ... initialize it.
7544
7545 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7546
7547         * XEmacs 21.4.7 "Economic Science" is released.
7548
7549 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7550
7551         * process.h (PROCESS_LIVE_P): Use the process status as
7552         evidence of health, not the state of the input stream.
7553
7554 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7555
7556         * sysdep.c (sys_siglist): change "signum" to "signal"
7557
7558 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7559
7560         * s/darwin.h: New file.
7561         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7562         
7563 2002-04-23  Andreas Jaeger  <aj@suse.de>
7564
7565         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7566         which use lib64 for 64-bit libs.
7567         (START_FILES): Likewise.
7568
7569 2002-02-11  Mike Sperber  <mike@xemacs.org>
7570
7571         * device-x.c: 
7572         (x_IO_error_handler):
7573         (x_init_device): Temporarily keep device in static variable
7574         `device_being_initialized' so we can recover gracefully from
7575         internal XOpenDevice failure.  (XOpenDevice is documented to
7576         return NULL on failure, but sometimes calls the IO error handler
7577         instead.)
7578
7579 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7580
7581         * dired.c (Ffile_name_all_completions): Change documentation --
7582         remove reference to completion-ignored-extensions.
7583         * dired.c (vars_of_dired): Change documentation for
7584         completion-ignored-extensions -- remove reference to
7585         file-name-all-completions.
7586
7587 2002-03-06  Jerry James  <james@xemacs.org>
7588
7589         * emodules.c (emodules_load): Fix multiple loading of same module.
7590
7591 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7592         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7593         RTLD_LAZY to avoid incorrect symbol binding when using nested
7594         shared libraries on Solaris.
7595
7596 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7597
7598         * fileio.c (Ffind_file_name_handler): Improve docstring.
7599
7600 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7601
7602         * fns.c (Fmapconcat): Improve docstring.
7603
7604 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7605
7606         * device-gtk.c: Add prototype for
7607         emacs_gtk_selection_clear_event_handle.
7608         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7609         selection.  Setup signal handler for "selection_clear_event"
7610         (emacs_gtk_selection_clear_event_handle).
7611
7612         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7613         other applications owning the clipboard (based on
7614         x_handle_selection_clear).
7615
7616 2001-12-23  William M. Perry  <wmperry@gnu.org>
7617
7618         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7619         
7620 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7621
7622         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7623
7624 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7625
7626         * XEmacs 21.4.6 "Common Lisp" is released.
7627
7628 2001-12-16  Torsten Duwe  <duwe@caldera.de>
7629
7630         * search.c (Freplace_match): Add missing sub-expression functionality.
7631
7632         * buffer.c (decode_buffer): Add a check for pointer type to
7633         decode_buffer, before gcc's CSE optimization reorders a
7634         dereference in front of the allow_string test.
7635
7636 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
7637
7638         * window.c (window_loop): Fix bug that sometimes prevented
7639         window_loop() from iterating across multiple devices.  Also, at
7640         Ben's request, changed infloop-detecting code to abort() instead
7641         of silently terminating window_loop().
7642
7643 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
7644
7645         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
7646         * editfns.c (make_time): New function.
7647         (Fencode_time): Use it instead of wasteful_word_to_lisp.
7648         * lisp.h (make_time): Prototype and comment it.
7649         * dired.c (wasteful_word_to_lisp): Deprecate.
7650         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
7651
7652 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
7653
7654         * fileio.c (auto_save_1): Use current coding system, not
7655         escape-quoted.
7656
7657 2001-11-13  Ben Wing  <ben@xemacs.org>
7658
7659         * window.c:
7660         * window.c (window_truncation_on):
7661         * window.c (syms_of_window):
7662         truncate-partial-width-windows should respect the buffer being
7663         displayed, like other redisplay vars.
7664
7665 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
7666
7667         * event-stream.c (Fread_key_sequence): save current buffer.
7668
7669 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7670
7671         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
7672
7673 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7674
7675         * alloc.c (lcrecord_stats): Add space for types defined in modules.
7676
7677 2001-10-26  Mike Alexander  <mta@arbortext.com>
7678
7679         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
7680
7681 2001-10-25  Andy Piper  <andy@xemacs.org>
7682
7683         * ChangeLog:
7684         * dialog-msw.c (handle_directory_proc): new function.
7685          (handle_directory_dialog_box): new fucntion.
7686          (handle_file_dialog_box): use new directory dialog support.
7687          (mswindows_make_dialog_box_internal): ditto.
7688         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
7689         handling.
7690         (mswindows_find_frame): make global.
7691         * fileio.c (Fexpand_file_name): build fix.
7692         * general-slots.h: add Qdirectory.
7693         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
7694         handling.
7695         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
7696         cygwin not leaving win32 paths unchanged.
7697         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
7698         cygwin runtime to do path conversion.
7699         (Fmswindows_shell_execute): fix cygwin handling of URLs.
7700         (syms_of_win32): add new function.
7701         * window.c (window_loop): build fix.
7702
7703 2001-10-15  Andy Piper  <andy@xemacs.org>
7704
7705         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
7706
7707 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
7708
7709         * XEmacs 21.4.5 "Civil Service" is released.
7710
7711 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
7712
7713         * glyphs-x.c: Force buffer-tab highlight update when moving the
7714         buffer, avoiding an ugly black border, used for keyboard focus
7715         indication, on a widget that can never have keyboard focus, the
7716         buffer tab.
7717
7718 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
7719
7720         * process-unix.c (unix_open_multicast_group): Remove too much
7721         conversion between host and network byte order.
7722
7723 2001-09-10  Nix  <nix@esperi.demon.co.uk>
7724
7725         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
7726         before replacing them.
7727
7728         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
7729         operation.
7730
7731         * src/window.c (undedicate_windows): Use it.
7732         * src/window.h: Add prototype.
7733
7734 2001-09-17  Ben Wing  <ben@xemacs.org>
7735
7736         * fileio.c (normalize_filename):
7737         * fileio.c (Fexpand_file_name):
7738         Fix various C++ compile errors in Andy's recent code.
7739         
7740         * callint.c (Fcall_interactively):
7741         * editfns.c (Ftemp_directory):
7742         * editfns.c (Fuser_full_name):
7743         * emacs.c (argmatch):
7744         * lread.c (locate_file_map_suffixes):
7745         * redisplay-x.c (x_ring_bell):
7746         Fix sign-compare warnings.
7747         
7748 2001-09-08  Andy Piper  <andy@xemacs.org>
7749
7750         * fileio.c (normalize_filename): copied from nt.c
7751         * (Ffile_name_directory): enable win32 paths under cygwin.
7752         * (Ffile_name_nondirectory): ditto.
7753         * (directory_file_name): ditto.
7754         * (Fexpand_file_name): ditto.
7755         * (Ffile_truename): ditto.
7756         * (Fsubstitute_in_file_name): ditto.
7757         * (Ffile_name_absolute_p): ditto.
7758         * (Ffile_readable_p): ditto.
7759
7760 2001-09-08  Andy Piper  <andy@xemacs.org>
7761
7762         * device-msw.c (mswindows_finish_init_device): remove dde
7763         initialization.
7764         * device-msw.c (mswindows_init_dde): factor out from
7765         mswindows_finish_init_device()
7766         * device-msw.c (init_mswindows_very_early): new function
7767         initialize but don't enable dde.
7768         * emacs.c (main_1): call init_mswindows_very_early.
7769         * event-msw.c:
7770         * event-msw.c (mswindows_dde_callback): only execute when we are
7771         ready.
7772         * symsinit.h: declare init_mswindows_very_early.
7773
7774 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7775
7776         [sjt: This has been in 21.5 for months with no complaints.]
7777
7778         * console.h (struct console_methods): Added flags member.
7779         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
7780         (CONMETH_IMPL_FLAG):
7781         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
7782         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7783
7784         * device.c (window_system_pixelated_geometry): Use the above macros.
7785
7786         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
7787         implememntation flag.
7788         * device.h (DEVICE_DISPLAY_P): Use it.
7789
7790         * frame.c (delete_frame_internal): Use the above macro.
7791
7792         * redisplay.c (redisplay_device): Use it.
7793         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7794         (redisplay_frame): Ditto.
7795
7796         * device-msw.c (mswindows_device_implementation_flags): Removed.
7797         (msprinter_device_implementation_flags): Removed.
7798         (console_type_create_device_mswindows): Removed references to
7799         implementation_flags methods, set implementation flags here.
7800         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
7801
7802         * device-gtk.c (gtk_device_implementation_flags): Removed method.
7803         (console_type_create_device_gtk): Removed method declaration.
7804         Added commented out statement which semantically matches the
7805         commented out statement in the above removed method.
7806
7807 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
7808
7809         The attached patch fixes a few warnings. 
7810
7811         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
7812         * src/frame-gtk.c: guard against GNOME calls in GTK only
7813         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
7814         * src/select-gtk.c: prototype lisp_to_time
7815
7816 2001-06-08  Ben Wing  <ben@xemacs.org>
7817
7818         ------ gc-in-window-procedure fixes ------
7819         
7820         * alloc.c:
7821         * alloc.c (struct post_gc_action):
7822         * alloc.c (register_post_gc_action):
7823         * alloc.c (run_post_gc_actions):
7824         * alloc.c (garbage_collect_1):
7825         Create "post-gc actions", to avoid those dreaded "GC during window
7826         procedure" problems.
7827
7828         * event-msw.c:
7829         Abort, clean and simple, when GC in window procedure.  We want
7830         to flush these puppies out.
7831
7832         * glyphs-msw.c:
7833         * glyphs-msw.c (finalize_destroy_window):
7834         * glyphs-msw.c (mswindows_finalize_image_instance):
7835         Use a post-gc action when destroying subwindows.
7836
7837         * lisp.h:
7838         Declare register_post_gc_action().
7839
7840         * scrollbar-msw.c:
7841         * scrollbar-msw.c (unshow_that_mofo):
7842         Use a post-gc action when unshowing scrollbar windows, if in gc.
7843
7844         * redisplay.c (mark_redisplay):
7845         Add comment about the utter evilness of what's going down here.
7846
7847         ------ cygwin setitimer fixes ------
7848         
7849         * Makefile.in.in (sheap_objs):
7850         * Makefile.in.in (profile_objs):
7851         * Makefile.in.in (objs):
7852         Compile profile.c only when HAVE_SETITIMER.
7853         
7854         * nt.c (mswindows_sigset):
7855         * nt.c (mswindows_sighold):
7856         * nt.c (mswindows_sigrelse):
7857         * nt.c (mswindows_sigpause):
7858         * nt.c (mswindows_raise):
7859         * nt.c (close_file_data):
7860         Style fixes.
7861         
7862         * nt.c:
7863         Move setitimer() emulation to win32.c, because Cygwin needs it too.
7864         
7865         * profile.c:
7866         * profile.c (Fstart_profiling):
7867         * profile.c (Fstop_profiling):
7868         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
7869         instead of just plain setitimer().
7870         
7871         * signal.c:
7872         * signal.c (set_one_shot_timer):
7873         * signal.c (alarm):
7874         Define qxe_setitimer() as an encapsulation around setitimer() --
7875         call setitimer() directly unless Cygwin or MS Win, in which case
7876         we use our simulated version in win32.c.
7877         
7878         * systime.h:
7879         * systime.h (struct itimerval):
7880         * systime.h (ITIMER_REAL):
7881         Prototype mswindows_setitimer() and qxe_setitimer().  Long
7882         comment about "qxe" and the policy regarding encapsulation.
7883
7884         * win32.c:
7885         * win32.c (setitimer_helper_proc):
7886         * win32.c (setitimer_helper_period):
7887         * win32.c (setitimer_helper):
7888         * win32.c (mswindows_setitimer):
7889         Move setitimer() emulation here, so Cygwin can use it.
7890         Rename a couple of functions and variables to be longer and more
7891         descriptive.  In setitimer_helper_proc(), send the signal
7892         using either mswindows_raise() or (on Cygwin) kill().  If for
7893         some reason we are still getting lockups, we'll change the kill()
7894         to directly invoke the signal handlers.
7895
7896         ------ windows shell fixes ------
7897         
7898         * callproc.c:
7899         * ntproc.c:
7900         Comments about how these two files must die.
7901
7902         * callproc.c (init_callproc):
7903         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
7904         not just COMSPEC. (more correct and closer to FSF.) Don't
7905         force a value for SHELL into the environment. (Comments added
7906         to explain why not.)
7907         
7908         * nt.c (init_user_info):
7909         Don't shove a fabricated SHELL into the environment.  See above.
7910
7911 2001-06-01  Ben Wing  <ben@xemacs.org>
7912
7913         * Makefile.in.in (ldflags):
7914         eliminate that pesky "defaulting to 00401000" warning.
7915         * nt.h:
7916         eliminate warnings.
7917
7918 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
7919
7920         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
7921         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
7922
7923 2001-04-24  Jerry James <james@xemacs.org>
7924
7925         * faces.h: pass parameters to Fadd_spec_to_specifier in the
7926         correct order.
7927
7928 2001-06-01  Ben Wing  <ben@xemacs.org>
7929
7930         * event-msw.c (debug_mswin_messages):
7931         conditionalize the messages that were causing compile errors.
7932         (if only macros could generate #ifdef statements ...)
7933
7934 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
7935
7936         * XEmacs 21.4.4 "Artificial Intelligence" is released.
7937
7938 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7939
7940         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
7941
7942 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7943
7944         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
7945         * process-unix.c (unix_canonicalize_host_name):
7946         sysdep.c (init_system_name):
7947         Use it to conditionally support IPv6 canonicalization.
7948
7949 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
7950
7951         * event-msw.c:
7952         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
7953
7954 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
7955
7956         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
7957         attempt is made to scroll when no scroll bar is available.
7958
7959 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7960
7961         * input-method-motif.c (XIM_delete_frame): New callback.
7962         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
7963         got deleted from 21.4.3.)
7964
7965 2001-06-01  Ben Wing  <ben@xemacs.org>
7966
7967         * nt.c (mswindows_utime):
7968         * nt.c (close_file_data):
7969         fix off-by-one-indirection error.
7970
7971 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
7972
7973         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
7974         because set_file_times() now takes Lisp_Object path, instead of
7975         char*.
7976         * nt.c: Include buffer.h.
7977         * nt.c (convert_from_time_t): New.
7978         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
7979         not set mtime correctly.
7980         * nt.h: Declare mswindows_utime().
7981         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
7982         path, instead of char*.
7983         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
7984
7985 2001-05-30  Ben Wing  <ben@xemacs.org>
7986
7987         For 21.4:
7988
7989         (Stephen, just take all event-msw.c patches.  This includes
7990         the "iconify" fix below.)
7991
7992         * event-msw.c:
7993         * event-msw.c (mswindows_dequeue_dispatch_event):
7994         * event-msw.c (assert):
7995         * event-msw.c (emacs_mswindows_quit_p):
7996         * event-msw.c (debug_mswin_messages):
7997         * event-msw.c (debug_output_mswin_message):
7998         * event-msw.c (vars_of_event_mswindows):
7999         Fix yet more problems with C-g handling.
8000         Implement debug-mswindows-events.
8001         
8002 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
8003
8004         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
8005         
8006 2001-05-23  Ben Wing  <ben@xemacs.org>
8007
8008         * event-msw.c (winsock_writer):
8009         * event-msw.c (winsock_closer):
8010         prior kludgy code was clobbering the buffer, thinking it was
8011         "unused" space to store an unneeded return value; instead, use
8012         the variable we've already got staring us in the face.
8013
8014 2001-05-17  Andy Piper  <andy@xemacs.org>
8015
8016         * sysfile.h: don't assume that file attributes are boolean
8017
8018 2001-05-23  Ben Wing  <ben@xemacs.org>
8019
8020         * device-msw.c (msprinter_init_device):
8021         signal an error rather than crash with an unavailable network
8022         printer (from Mike Alexander).
8023         
8024         * event-msw.c:
8025         * event-msw.c (struct winsock_stream):
8026         * event-msw.c (winsock_writer):
8027         * event-msw.c (winsock_closer):
8028         * event-msw.c (make_winsock_stream_1):
8029         cleanup headers.  fix (hopefully) an error with data corruption
8030         when sending to a network connection.
8031
8032         * fileio.c (Fexpand_file_name): Fix evil code that attempts
8033         to handle the ~user prefix by (a) always assuming we're referencing
8034         ourselves and not even verifying the user -- hence any file with
8035         a tilde as its first char is invalid! (b) if there wasn't a slash
8036         following the filename, the pointer was set *past* the end of
8037         file and we started reading from uninitialized memory.  Now we
8038         simply treat these as files, always.
8039
8040         * buffer.c (common_init_complex_vars_of_buffer): comment change.
8041         
8042 2001-05-19  Ben Wing  <ben@xemacs.org>
8043
8044         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
8045
8046         * process-nt.c:
8047         * process-nt.c (vars_of_process_nt):
8048         remove unused mswindows-quote-process-args.  rec for 21.4.
8049         
8050 2001-05-12  Ben Wing  <ben@xemacs.org>
8051
8052         * event-msw.c (mswindows_dde_callback):
8053         * event-msw.c (mswindows_wnd_proc):
8054         eliminate cygwin warnings.
8055
8056 2001-05-06  Ben Wing  <ben@xemacs.org>
8057
8058         * console-msw.h:
8059         * device-msw.c:
8060         * device-msw.c (print_dialog_worker):
8061         * device-msw.c (mswindows_handle_print_dialog_box):
8062         * device-msw.c (syms_of_device_mswindows):
8063         * dialog-msw.c (mswindows_make_dialog_box_internal):
8064         * general-slots.h:
8065         implement printing the selection when it's selected.
8066
8067 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
8068
8069         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
8070
8071 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
8072
8073         * lisp.h (EMACS_INT_MAX): This should be one bit less since
8074         EMACS_INT is signed.
8075
8076 2001-04-15  Michael Lausch  <mla@1012surf.net>
8077
8078         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
8079         gtk_widget_request_size() to give scrollbar >0 width for
8080         GTK >1.2.8.
8081
8082 2001-05-30  William M. Perry  <wmperry@gnu.org>
8083
8084         * event-gtk.c: Check for buttons as modifier keys.
8085
8086 2001-05-25  Craig Lanning  <CraigL@Knology.net>
8087
8088         * s\mingw32.h:
8089         Properly find MinGW's <process.h> inside Cygwin's restructured
8090         include directories.  Don't try to include <cygwin/version.h>
8091         since we are dropping support for MinGW in versions of Cygwin
8092         earlier than b21.
8093         * nt.c:
8094         Drop support for MinGW in versions of Cygwin before b21.
8095         * sysdep.c:
8096         Properly find MinGW's <process.h> inside Cygwin's restructured
8097         include directories.
8098         * syswindows.h:
8099         Drop support for MinGW in versions of Cygwin before b21.
8100         * unexcw.c:
8101         Even though a.out.h is no longer detected by configure, allow
8102         MinGW to use it until we figure out how to do the job with Win32.
8103
8104 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
8105
8106         * syntax.c (find_start_of_comment):
8107         Fix `unbalanced parentheses' bug when dealing with mixed comment
8108         styles in c++/java/etc. mode
8109
8110 2001-05-29  Mike Alexander  <mta@arbortext.com>
8111
8112         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
8113         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
8114
8115 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
8116
8117         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
8118
8119 2001-03-31  Mike Sperber <mike@xemacs.org>
8120
8121         * search.c (Freplace_match): Support FSF-style specification of
8122         match subexpression when applied to a buffer.
8123
8124 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8125
8126         * event-stream.c (is_scrollbar_event): add missing semicolon
8127
8128 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
8129
8130         * Makefile.in.in: Use TAR macro instead of hardcoding
8131           tar.  Allows use of GNU tar instead of system tar
8132
8133 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
8134
8135         * event-stream.c (is_scrollbar_event): add missing semicolon
8136
8137 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8138
8139         * XEmacs 21.4.3 "Academic Rigor" is released.
8140
8141 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
8142
8143         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
8144
8145 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
8146
8147         * buffer.c (Vcase_fold_search): Remove obsolete
8148           comment about non ASCII case-fold-search.  This
8149           bug has been fixed by case-table changes.
8150
8151 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8152
8153         * event-msw.c: Restore include of events-mod.h.
8154
8155 2001-04-22   zhaoway  <zw@debian.org>
8156
8157         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8158         !HAVE_SCROLLBARS.
8159
8160 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8161
8162         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8163
8164 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8165
8166         * mule-charset.c (Fmake_charset): Add missing else.
8167
8168 2001-04-23  Ben Wing  <ben@xemacs.org>
8169
8170         * event-msw.c (FAKE_MOD_QUIT):
8171         * event-msw.c (mswindows_dequeue_dispatch_event):
8172         * event-msw.c (mswindows_wnd_proc):
8173         * event-msw.c (emacs_mswindows_quit_p):
8174         Get critical quit working.
8175
8176 2001-05-05  Ben Wing  <ben@xemacs.org>
8177
8178         * console-msw.h:
8179         * device-msw.c:
8180         * device-msw.c (mswindows_get_default_margin):
8181         * frame-msw.c (mswindows_size_frame_internal):
8182         * frame-msw.c (msprinter_init_frame_1):
8183         * frame-msw.c (vars_of_frame_mswindows):
8184         Change top/bottom margin defaults to 0.5 inches.
8185
8186 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8187
8188         Fix link error with gcc 3.0 on Linux.
8189         * terminfo.c (UP): Remove.
8190         * terminfo.c (BC): Remove.
8191         * terminfo.c (PC): Remove.
8192         They weren't used, and in any case, these symbols should be
8193         defined in the *library*.
8194
8195 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8196
8197         * s/aix4.h: Fix crash with xlc -O3.
8198         Improve comment explaining how -O3 works.
8199
8200 2001-04-15  Ben Wing  <ben@xemacs.org>
8201
8202         * event-stream.c:
8203         * event-stream.c (Fnext_event):
8204         * event-stream.c (is_scrollbar_event):
8205         * event-stream.c (execute_command_event):
8206         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8207         crash' problem.  His fix introduces other problems.  We filter
8208         out scrollbar events specifically, making them somewhat invisible
8209         to command-building, and not appearing in `this-command-keys'.
8210         More work is still needed (see comments in event-stream.c), but
8211         this fixes all the major problems.
8212
8213 2001-04-20  Ben Wing  <ben@xemacs.org>
8214
8215         * .cvsignore: Added stuff for Windows.
8216
8217 2001-04-28  Ben Wing  <ben@xemacs.org>
8218
8219         * buffer.c (Ferase_buffer):
8220         * editfns.c (buffer_insert1):
8221         * editfns.c (Finsert_before_markers):
8222         * editfns.c (Finsert_string):
8223         * editfns.c (Finsert_char):
8224         * editfns.c (Fdelete_region):
8225         * editfns.c (Fwiden):
8226         * editfns.c (Fnarrow_to_region):
8227         remove bogus lines setting zmacs_region_stays to 0.
8228         
8229 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8230
8231         * process-unix.c (unix_open_network_stream): If connect() fails
8232         invalidate file descriptor after closing it.
8233
8234 2001-03-08  Mike Alexander  <mta@arbortext.com>
8235
8236         * event-msw.c (mswindows_need_event_in_modal_loop):
8237         Don't dispatch a message if we didn't get one.
8238         (mswindows_need_event):
8239         Terminate the correct process when one exits instead of the first
8240         one on Vprocess_list and look for process termination when in
8241         mswindows_protect_modal_loop.
8242
8243 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8244
8245         * XEmacs 21.4.1 "Copyleft" is released.
8246
8247 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8248
8249         * input-method-motif.c (XIM_delete_frame): New callback.
8250         (XIM_init_frame): Register it.
8251
8252 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8253
8254         * XEmacs 21.4.0 "Solid Vapor" is released.
8255
8256 2001-04-15  Ben Wing  <ben@xemacs.org>
8257
8258         * cmdloop.c (call_command_loop):
8259         Fix braino in bit-rotting code.
8260         
8261 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8262
8263         * extents.c (Fset_extent_endpoints): Force creation of extent info
8264         in buffer_or_string.
8265
8266         * extents.c (process_extents_for_insertion_mapper): Correctly
8267         check for open-open zero-length extents.
8268
8269 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8270
8271         * lisp.h: New typedefs Memory_count, Element_count.
8272         * regex.c:
8273         * regex.h:
8274         Sign-compare warning elimination: several unsigned -> signed.
8275         Based on work by Ben Wing <ben@xemacs.org>.
8276
8277 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8278
8279         * XEmacs 21.2.47 "Zephir" is released.
8280
8281 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8282
8283         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8284
8285 2001-04-03  Mike Sperber <mike@xemacs.org>
8286
8287         * search.c: Revert previous patch due because of release.
8288
8289 2001-03-30  Ben Wing  <ben@xemacs.org>
8290
8291         * s\cygwin32.h:
8292         Add missing killpg prototype.
8293
8294         * elhash.c:
8295         Add a comment about fixing problems when a new entry is added
8296         while mapping.
8297
8298         * frame-msw.c (mswindows_init_frame_1):
8299         Fix compile warnings.
8300
8301         * menubar.c (vars_of_menubar):
8302         Provide `menu-accelerator-support' to indicate that we properly
8303         support %_ in menu specifications, so that package code can
8304         conditionalize on this (and remove %_ from menu specifications
8305         on older versions).
8306
8307         * event-msw.c:
8308         * scrollbar-msw.c:
8309         * scrollbar-msw.c (can_scroll):
8310         * scrollbar-msw.h:
8311         Fix handling of mouse wheel under Windows to follow standards --
8312         now scrolls window under pointer, not selected window.
8313
8314 2001-03-31  Mike Sperber <mike@xemacs.org>
8315
8316         * search.c (Freplace_match): Support FSF-style specification of
8317         match subexpression when applied to a buffer.
8318
8319 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8320
8321         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8322         function to modify KEYMAP, so map over a copy of the hash table.
8323
8324 2001-03-21  Martin Buchholz <martin@xemacs.org>
8325
8326         * XEmacs 21.2.46 "Urania" is released.
8327
8328 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8329
8330         * realpath.c (xrealpath): Make file-truename work with symlinks to
8331         /cygdrive paths on cygwin. Always lowercase drive-letters on
8332         native windows.
8333         (cygwin_readlink): Don't try to find canonical filename unless
8334         file exists.
8335
8336 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8337
8338         * ChangeLog: Log GTK merge.
8339
8340         * dumper.c:
8341         * select-x.c:
8342         * specifier.c:
8343         * symeval.h:
8344         Revert gratuitous whitespace changes from GTK merge.
8345
8346         * emacs.c: Document end of complex #ifdef @ l. 1495.
8347
8348
8349 2001-03-12  Andy Piper  <andy@xemacs.org>
8350
8351         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8352         have to do likewise.
8353
8354 2001-03-12  Andy Piper  <andy@xemacs.org>
8355
8356         * sysdep.c: we only support mingw now.
8357
8358 2001-03-09  Andy Piper  <andy@xemacs.org>
8359
8360         * unexcw.c (copy_executable_and_dump_data_section): making approx
8361         overrun a warning only.
8362
8363 2001-03-10  William M. Perry  <wmperry@aventail.com>
8364
8365         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8366         satisfy Stephen's identical-after-cpp plea.
8367
8368 2001-03-02  Ben Wing  <ben@xemacs.org>
8369
8370         * cmds.c:
8371         * cmds.c (Fforward_char):
8372         * syntax.c:
8373         * window.c:
8374
8375         Augment documentation of the most common motion commands to make
8376         note of the shifted-motion support.
8377         
8378 2001-03-02  Ben Wing  <ben@xemacs.org>
8379
8380         * nt.c (mswindows_fstat):
8381         * nt.c (mswindows_stat):
8382         * search.c (boyer_moore):
8383         Fix compile warnings under Windows.
8384         
8385         * sysdep.c (sys_readdir):
8386         Fix buggy filename-conversion code under Mule.
8387
8388 2001-03-09  William M. Perry  <wmperry@aventail.com>
8389
8390         * Makefile.in.in:
8391         * config.h.in:
8392         * console.c:
8393         * console.h:
8394         * device.c:
8395         * device.h:
8396         * dragdrop.c:
8397         * emacs.c:
8398         * event-stream.c:
8399         * events.c:
8400         * events.h:
8401         * faces.c:
8402         * frame.h:
8403         * general-slots.h:
8404         * glyphs.c:
8405         * gutter.c:
8406         * inline.c:
8407         * lisp.h:
8408         * lrecord.h:
8409         * make-src-depend:
8410         * redisplay-output.c:
8411         * redisplay.c:
8412         * symsinit.h:
8413         * sysfile.h:
8414         * toolbar.c:
8415         * window.c:
8416         The Great GTK Merge.
8417
8418         * ChangeLog.GTK:
8419         * console-gtk.c:
8420         * console-gtk.h:
8421         * device-gtk.c:
8422         * emacs-marshals.c:
8423         * emacs-widget-accessors.c:
8424         * event-gtk.c:
8425         * frame-gtk.c:
8426         * gccache-gtk.c:
8427         * gccache-gtk.h:
8428         * glade.c:
8429         * glyphs-gtk.c:
8430         * glyphs-gtk.h:
8431         * gtk-glue.c:
8432         * gtk-xemacs.c:
8433         * gtk-xemacs.h:
8434         * gui-gtk.c:
8435         * gui-gtk.h:
8436         * menubar-gtk.c:
8437         * native-gtk-toolbar.c:
8438         * objects-gtk.c:
8439         * objects-gtk.h:
8440         * redisplay-gtk.c:
8441         * scrollbar-gtk.c:
8442         * scrollbar-gtk.h:
8443         * select-gtk.c:
8444         * toolbar-gtk.c:
8445         * ui-byhand.c:
8446         * ui-gtk.c:
8447         * ui-gtk.h:
8448         The Great GTK Merge: new files.
8449
8450 2001-02-26  Ben Wing  <ben@xemacs.org>
8451
8452         Reapplied Lstream change.
8453
8454 2001-02-26  Ben Wing  <ben@xemacs.org>
8455
8456         Undid the last change, since it is more controversial than I
8457         thought.  It should be back in at some point soon.
8458         
8459 2001-02-25  Ben Wing  <ben@xemacs.org>
8460
8461         * buffer.c:
8462         * callproc.c (Fold_call_process_internal):
8463         * event-msw.c (ntpipe_slurp_reader):
8464         * event-msw.c (ntpipe_shove_writer):
8465         * event-msw.c (winsock_reader):
8466         * event-msw.c (winsock_writer):
8467         * file-coding.c:
8468         * file-coding.c (detect_eol_type):
8469         * file-coding.c (detect_coding_type):
8470         * file-coding.c (determine_real_coding_system):
8471         * file-coding.c (Fdetect_coding_region):
8472         * file-coding.c (decoding_reader):
8473         * file-coding.c (decoding_writer):
8474         * file-coding.c (mule_decode):
8475         * file-coding.c (Fdecode_coding_region):
8476         * file-coding.c (encoding_reader):
8477         * file-coding.c (encoding_writer):
8478         * file-coding.c (mule_encode):
8479         * file-coding.c (Fencode_coding_region):
8480         * file-coding.c (detect_coding_sjis):
8481         * file-coding.c (decode_coding_sjis):
8482         * file-coding.c (encode_coding_sjis):
8483         * file-coding.c (detect_coding_big5):
8484         * file-coding.c (decode_coding_big5):
8485         * file-coding.c (encode_coding_big5):
8486         * file-coding.c (detect_coding_ucs4):
8487         * file-coding.c (decode_coding_ucs4):
8488         * file-coding.c (encode_coding_ucs4):
8489         * file-coding.c (detect_coding_utf8):
8490         * file-coding.c (decode_coding_utf8):
8491         * file-coding.c (encode_coding_utf8):
8492         * file-coding.c (detect_coding_iso2022):
8493         * file-coding.c (decode_coding_iso2022):
8494         * file-coding.c (encode_coding_iso2022):
8495         * file-coding.c (decode_coding_no_conversion):
8496         * file-coding.c (encode_coding_no_conversion):
8497         * glyphs-x.c (write_lisp_string_to_temp_file):
8498         * gpmevent.c (tty_get_foreign_selection):
8499         * lisp.h:
8500         * lstream.c:
8501         * lstream.c (Lstream_flush_out):
8502         * lstream.c (Lstream_adding):
8503         * lstream.c (Lstream_write_1):
8504         * lstream.c (Lstream_write):
8505         * lstream.c (Lstream_raw_read):
8506         * lstream.c (Lstream_read_more):
8507         * lstream.c (Lstream_read):
8508         * lstream.c (Lstream_unread):
8509         * lstream.c (Lstream_fputc):
8510         * lstream.c (stdio_reader):
8511         * lstream.c (stdio_writer):
8512         * lstream.c (filedesc_reader):
8513         * lstream.c (filedesc_writer):
8514         * lstream.c (lisp_string_reader):
8515         * lstream.c (struct fixed_buffer_stream):
8516         * lstream.c (make_fixed_buffer_input_stream):
8517         * lstream.c (make_fixed_buffer_output_stream):
8518         * lstream.c (fixed_buffer_reader):
8519         * lstream.c (fixed_buffer_writer):
8520         * lstream.c (struct resizing_buffer_stream):
8521         * lstream.c (resizing_buffer_writer):
8522         * lstream.c (dynarr_writer):
8523         * lstream.c (lisp_buffer_reader):
8524         * lstream.c (lisp_buffer_writer):
8525         * lstream.h:
8526         * lstream.h (lstream_implementation):
8527         * lstream.h (struct lstream):
8528         * md5.c (Fmd5):
8529         * process-nt.c (nt_send_process):
8530         * process-unix.c (unix_send_process):
8531         
8532         Correct Lstream lossage due to mixing of signed and unsigned
8533         quantities.  All Lstream uses of size_t and ssize_t are now a
8534         single signed data type Lstream_data_count.  This fixes problems
8535         under Windows with sending large quantities of data to a process,
8536         and may well fix other subtle bugs.
8537
8538 2001-02-23  Martin Buchholz <martin@xemacs.org>
8539
8540         * XEmacs 21.2.45 "Thelxepeia" is released.
8541
8542 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8543
8544         * lisp-union.h (XSETINT): 
8545         (XSETCHAR):
8546         (XSETOBJ): 
8547         Reverse previous change of 2001-02-06.
8548
8549 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8550
8551         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8552         buffers.
8553         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8554         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8555         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8556         * regex.c (POS_AS_IN_BUFFER): removed
8557         * regex.c (re_search_2):
8558         * regex.c (re_match_2):
8559         Don't use an offset of 1 when calculating buffer positions, since
8560         `BI_BUF_BEGV' does it already.
8561
8562 2001-02-18  Wim Dumon  <wim@easics.be>
8563
8564         * insdel.c (prepare_to_modify_buffer): Also check for
8565         supersession when clash-detection is enabled. 
8566
8567 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8568
8569         * regex.c (re_match_2_internal):
8570         Convert temp characters from 'const unsigned char' to 're_char'.
8571         Fix crashing bug with extended characters under mule.
8572         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8573         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8574         font-lock, pdump, and new syntax-table code.
8575         * syntax.c (find_start_of_comment):
8576         (find_end_of_comment):
8577         (forward-comment):
8578         Fix crashing bugs involving moving beyond end of buffer.
8579         * syntax.c (find_start_of_comment):
8580         Fixed logic to allow proper detection of cases where the same
8581         character is used to end both a two-char comment start and a
8582         two-char comment end sequence. Fixes `(forward-comment -1)'.
8583         * syntax.c (find_start_of_comment):
8584         Return position just past last comment-end character for all cases
8585         (previously was only done for two-char comment-end sequences).
8586         * syntax.c (forward-comment):
8587         Take value returned from `find_end_of_comment', rather than
8588         incrementing it.
8589         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8590         Properly deal with BUFFERP (syntax_cache.object)
8591
8592 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8593
8594         * alloc.c (Fgarbage_collect): 
8595         * alloc.c (make_bit_vector_from_byte_vector):
8596         -Wsign-compare-correctness.
8597
8598 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8599
8600         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8601         (XSETCHAR): Likewise.
8602         (XSETOBJ): Likewise.
8603
8604 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8605
8606         * mule-canna.c (canna-func-delete_previous): 
8607         Rename to canna-func-delete-previous.
8608
8609 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8610
8611         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8612
8613 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8614
8615         * font-lock.c (find_context): Fix C++ compile errors introduced by
8616         recent patch
8617
8618 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8619
8620         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8621         pragma, but earlier ones barf on the same pragma.
8622
8623 2001-02-06  Mike Sperber <mike@xemacs.org>
8624
8625         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8626         `configure-mule-lisp-directory'.
8627
8628 2001-02-12  Martin Buchholz  <martin@xemacs.org>
8629
8630         Make sure dump-id.c is compiled in the same way as other .c's.
8631         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
8632         * dump-id.h: Remove.
8633         * emacs.c: Move dump-id.h into dumper.h.
8634         * dumper.h: Move dump-id.h into dumper.h.
8635         * Makefile.in.in:
8636         Use standard .c.o rule for building dump-id.o.
8637         Remove preprocessor flags from link command.
8638         Add dump-id.o to ${otherobjs} if PDUMP.
8639
8640 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
8641
8642         Port FSF 20.7 syntax table improvements.
8643         * syntax.c.
8644         * syntax.h.
8645
8646         Fixups for new syntax table stuff.
8647         * dired.c: Include syntax.c.
8648         (Fdirectory_files): Initialize regex_match_object and
8649         regex_emacs_buffer.
8650         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
8651         and Fget_char_property.
8652
8653         Use ported FSF 20.7 syntax table improvements.
8654         * font-lock.c.
8655         * regex.c.
8656         * search.c.
8657         
8658 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8659
8660         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
8661         Unixware's enum boolean from sys/types.h.
8662
8663 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8664
8665         Fix support for building with latest Purify.
8666         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
8667         (PURIFY_FLAGS): Likewise.
8668
8669 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8670
8671         * fileio.c (lisp_string_set_file_times): New.
8672         * fileio.c (Fcopy_file): Use it.
8673         Fixes bug:
8674         (copy-file filename non-ascii-filename t t)
8675         ==> No such file or directory, non-ascii-filename
8676
8677 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8678
8679         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
8680         USHRT_MAX seems clearer than ~0 anyways.
8681
8682 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8683
8684         dumper improvements.  Inspired by Olivier.
8685         * dumper.c (pdump_max_align): New.
8686         * dumper.c (pdump_add_entry): Use pdump_max_align.
8687         * dumper.c (pdump_get_entry_list): Likewise.
8688         * dumper.c (pdump_scan_by_alignment): Likewise.
8689         Don't iterate through unnecessary alignments.
8690         * dumper.c (pdump_file_get): No need to align result of malloc().
8691         * dumper.c (pdump_mallocadr): Remove.  
8692         The result of malloc() is guaranteed to be maximally aligned.
8693         * dumper.c: s/elmt/elt/g;
8694         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
8695         * dumper.c (pdump_alert_undump_object): Likewise.
8696         * dumper.c (pdump_align_table): 
8697         Don't support alignments > 64.
8698         Store ALIGNOF's, not shift counts, in table.
8699
8700 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8701
8702         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
8703         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
8704         * systime.h: Use HAVE_UTIME.
8705         * sysdep.c (struct utimbuf): Remove.
8706         * sysdep.c (set_file_times): Prefer utime() to utimes().
8707         * config.h.in (HAVE_UTIME): New.
8708         * config.h.in (HAVE_UTIME_H): Remove.
8709         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
8710
8711 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8712
8713         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
8714
8715 2001-02-08  Martin Buchholz  <martin@xemacs.org>
8716
8717         * s/irix6-0.h: Use the standard system memmove, not bcopy.
8718
8719 2001-02-08  Martin Buchholz <martin@xemacs.org>
8720
8721         * XEmacs 21.2.44 "Thalia" is released.
8722
8723 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8724
8725         Fixes crashes in kill-emacs on some systems.
8726         * process-unix.c (unix_kill_child_process):
8727         It's OK for kill() to fail with ESRCH.
8728
8729 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8730
8731         Contortions to make .gdbinit tricks work on most systems.
8732         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
8733         * alloc.c (dbg_valmask): Make non-const.
8734         * alloc.c (dbg_typemask): Make non-const.
8735         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
8736         * alloc.c (dbg_valbits): Make non-const.
8737         * alloc.c (dbg_gctypebits): Make non-const.
8738         * .gdbinit (decode_object): Make it work with AIX cc.
8739
8740 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8741
8742         * elhash.c (make_general_lisp_hash_table):
8743         Use simpler and more efficient calloc to clear entries.
8744
8745 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8746
8747         * window.c (window_scroll): Work around an AIX C compiler bug.
8748         Fixes 'scroll-up' does nothing problem with xlC.
8749
8750 2001-02-05  Martin Buchholz  <martin@xemacs.org>
8751
8752         * .gdbinit: Remove obsolete comment.
8753
8754 2001-01-31  Mike Alexander  <mta@arbortext.com>
8755
8756         * select.c (Fown_selection_internal): Set owned_p for device
8757         method correctly.
8758
8759 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8760
8761         Port to g++ 2.97.
8762         "not" cannot be used as a macro name as it is an operator in C++
8763         * config.h.in: Stop #defining `not'.
8764         * chartab.c (check_category_char): not ==> not_p
8765         * chartab.h: Likewise.
8766         * regex.c (re_match_2_internal): Likewise.
8767
8768 2001-02-02  Martin Buchholz  <martin@xemacs.org>
8769
8770         * lisp-disunion.h: Fix up comments.
8771
8772 2001-01-31  Martin Buchholz  <martin@xemacs.org>
8773
8774         * keymap.c (define_key_check_and_coerce_keysym):
8775         (syms_of_keymap):
8776         Support mouse-6 and mouse-7 bindings in the obvious way.
8777
8778 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8779
8780         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
8781
8782 2001-01-30  Martin Buchholz  <martin@xemacs.org>
8783
8784         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
8785         Previous patch missed DEFVAR_INT_MAGIC.
8786         Make sure future DEFVAR_foo use correct types.
8787         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
8788         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
8789         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
8790         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
8791         * (DEFVAR_INT): Likewise.
8792         * redisplay.c (vertical_clip): Should be of type Fixnum.
8793         * redisplay.c (horizontal_clip): Likewise.
8794         * lisp.h (dump_add_opaque_int): New.
8795         (dump_add_opaque_fixnum): New.
8796
8797 2001-01-29  Andy Piper  <andy@xemacs.org>
8798
8799         * glyphs-widget.c (check_valid_int_or_function): allow symbols
8800         since they can be eval'ed
8801
8802 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8803
8804         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
8805         Oops, XEmacs redefines `class'.  Use `typename' instead.
8806
8807 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8808
8809         * dumper.c: Fix C++ compile errors.
8810
8811 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8812
8813         * tparam.c: Use correct prototypes.
8814
8815 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8816
8817         * sysproc.h: #include util.h for NetBSD's openpty.
8818
8819 2001-01-27  Martin Buchholz  <martin@xemacs.org>
8820
8821         More 64-bit correctness.
8822         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
8823         Use a typedef `fixnum' for the type used for DEFVAR_INT.
8824         Fix up comments.
8825         This finally finishes the 64-bit SGI port.
8826         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
8827         * symbols.c: Fix up comments and type casts.
8828         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
8829         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
8830         * symeval.h (Fixnum): New type.
8831         * symeval.h (symbol_value_type): Fix up comment.
8832
8833         * commands.h:
8834         * nt.c:
8835         * emacs.c:
8836         * data.c:
8837         * redisplay.c:
8838         * abbrev.c:
8839         * dired-msw.c:
8840         * event-Xt.c:
8841         * eldap.c:
8842         * window.c:
8843         * sound.c:
8844         * event-stream.c:
8845         * eval.c:
8846         * buffer.c:
8847         * mule-canna.c: A million DEFVAR_INTs here...
8848         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
8849         * extents.c:
8850         * cmdloop.c:
8851         * lisp.h:
8852         * select-x.c:
8853         * console-x.h:
8854         * event-msw.c:
8855         * mule-wnnfns.c:
8856         * hpplay.c:
8857         * ralloc.c:
8858         * alloc.c:
8859         * keymap.c:
8860         * profile.c:
8861         s/int/Fixnum/g in DEFVAR_INT declarations.
8862
8863 2001-01-26  Martin Buchholz  <martin@xemacs.org>
8864
8865         Port pdump to SGI alignment-sensitive environment.
8866         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
8867         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
8868         properly aligned.
8869         Define and use aligned reading and writing macros.
8870         Use buffered stdio instead of posix i/o for faster dumping.
8871         Eliminate kludgy 256 byte space for header.
8872         Read and write from dump file using structs for alignment safety.
8873         * dumper.c (pdump_align_stream): New.
8874         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
8875         * dumper.c (PDUMP_READ_ALIGNED): New.
8876         * dumper.c (PDUMP_WRITE_ALIGNED): New.
8877         * dumper.c (pdump_static_Lisp_Object): New struct.
8878         * dumper.c (pdump_static_pointer): New struct.
8879         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
8880         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
8881         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
8882         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
8883
8884         * dumper.c (pdump_backtrace):
8885         * dumper.c (pdump_get_indirect_count):
8886         * dumper.c (pdump_register_object):
8887         * dumper.c (pdump_register_struct):
8888         * dumper.c (pdump_reloc_one):
8889         * dumper.c (pdump_scan_by_alignment):
8890         * dumper.c (pdump_dump_from_root_struct_ptrs):
8891         * dumper.c (pdump_dump_opaques):
8892         * dumper.c (pdump_dump_rtables):
8893         * dumper.c (pdump_dump_from_root_objects):
8894         * dumper.c (pdump):
8895         * dumper.c (pdump_load_finish):
8896         Use aligned reading and writing.
8897
8898         * dumper.c (pdump_free): Make static.
8899         * dumper.c (pdump_hFile): Likewise.
8900         * dumper.c (pdump_hMap): Likewise.
8901
8902 2001-01-26  Martin Buchholz <martin@xemacs.org>
8903
8904         * XEmacs 21.2.43 "Terspichore" is released.
8905
8906 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8907
8908         Type fiddling for window_config.saved_windows_count
8909         * window.c (struct window_config): 
8910         Make saved_windows_count member unsigned.
8911         * window.c (sizeof_window_config_for_n_windows): 
8912         Make parameter unsigned.
8913         * window.c (mark_window_config):
8914         * window.c (window_config_equal):
8915         * window.c (free_window_configuration):
8916         * window.c (Fset_window_configuration):
8917         * window.c (count_windows):
8918         * window.c (Fcurrent_window_configuration):
8919         * window.c (reinit_vars_of_window):
8920         Update all callers and users.
8921
8922 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8923
8924         Alignment correctness for flexible arrays.
8925         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
8926         Make alignment-correct. Add interesting comments.
8927         * alloc.c (size_vector):
8928         * alloc.c (make_vector_internal):
8929         * alloc.c (make_bit_vector_internal):
8930         * alloc.c (sweep_bit_vectors_1):
8931         * fns.c (size_bit_vector):
8932         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
8933         * window.c (sizeof_window_config_for_n_windows): 
8934         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
8935
8936 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8937
8938         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
8939
8940 2001-01-23  Andy Piper  <andy@xemacs.org>
8941
8942         * select.c (Fown_selection_internal): pass owned_p
8943
8944         * select-msw.c (mswindows_own_selection): New Signature.
8945
8946         * console.h (struct console_methods): add owned_p to
8947         _own_selection.
8948
8949         * select-x.c (x_own_selection): pass owned_p
8950         (hack_motif_clipboard_selection): use owned_p
8951         (vars_of_select_x): new variable -
8952         x_selection_strict_motif_ownership.
8953
8954 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8955
8956         * specifier.h (specifier_data_offset): Remove pointless parens.
8957         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
8958
8959 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8960
8961         Make Lisp_Object sizeof methods be alignment-correct.
8962         pdump must restore objects to the same alignment as the C compiler
8963         assumes.  It really matters on SGIs.
8964         * lstream.c (aligned_sizeof_lstream): New.
8965         (sizeof_lstream): Use aligned_sizeof_lstream.
8966         (Lstream_new): Likewise.
8967         * opaque.c (aligned_sizeof_opaque): New.
8968         (sizeof_opaque): Use aligned_sizeof_opaque.
8969         (make_opaque): Likewise.
8970         * specifier.c (aligned_sizeof_specifier): New.
8971         (sizeof_specifier): Use aligned_sizeof_specifier.
8972         (make_specifier_internal): Likewise.
8973
8974 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8975
8976         * lstream.h (struct lstream): Use max_align_t for trailing data.
8977         * specifier.h (struct Lisp_Specifier): Likewise.
8978
8979 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8980
8981         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
8982         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
8983         (CCL_SUSPEND): Likewise.
8984         (CCL_INVALID_CMD): Likewise.
8985         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
8986         (ccl_driver): Likewise.
8987         (CCL_WRITE_CHAR): Macro hygiene.
8988         (CCL_WRITE_STRING): Macro hygiene.
8989
8990 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8991
8992         Port "portable" dumper to SunOS 4 and HP-UX.
8993         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
8994         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
8995         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
8996
8997 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8998
8999         * lisp.h (ALIGNOF): A better definition for C++.
9000
9001 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9002
9003         Macro hygiene.
9004         Fix printf warnings: int format, long int arg.
9005         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
9006         (PUSH_FAILURE_POINT): Use correct printf formats.
9007         (POP_FAILURE_POINT): Use correct printf formats.  
9008         Use do {...} while (0)
9009
9010 2001-01-20  Martin Buchholz <martin@xemacs.org>
9011
9012         * XEmacs 21.2.42 "Poseidon" is released.
9013
9014 2001-01-20  Martin Buchholz  <martin@xemacs.org>
9015
9016         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
9017
9018 2001-01-19  Martin Buchholz  <martin@xemacs.org>
9019
9020         De-kludgify FIXED_TYPE free list frobbing.
9021         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
9022         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
9023         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
9024         * alloc.c (Lisp_Free): New pseudo lisp object definition.
9025         * alloc.c (LRECORD_FREE_P): New.
9026         * alloc.c (MARK_LRECORD_AS_FREE): New.
9027         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
9028         * alloc.c (STRUCT_FREE_P): Deleted.
9029         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
9030         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
9031         * alloc.c (STRING_CHARS_FREE_P): New.
9032         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
9033         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
9034         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
9035         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
9036         * alloc.c (resize_string): Use new definitions.
9037         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
9038         * alloc.c (verify_string_chars_integrity): Use new definitions.
9039         * alloc.c (compact_string_chars): Use new definitions.
9040         * alloc.c: Update monster comments.
9041         * lrecord.h (lrecord_type): Add some new lrecord types for
9042         alloc.c's use.
9043
9044 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9045
9046         Improve alignment hackery.
9047         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
9048         (max_align_t): Moved from opaque.h - general purpose.
9049         (ALIGN_PTR): Use size_t, not long.
9050         * opaque.h (max_align_t): Move to lisp.h.
9051
9052 2001-01-18  Norbert Koch  <nk@LF.net>
9053
9054         * gui.h: Fix and add prototypes to fix build problems.
9055
9056 2001-01-18  Martin Buchholz  <martin@xemacs.org>
9057
9058         temacs is going away, so `dump-temacs' is now a bad name.
9059         * .dbxrc (dump-temacs): Rename to `dmp'.
9060         * .gdbinit (dump-temacs): Rename to `dmp'.
9061
9062 2001-01-17  Andy Piper  <andy@xemacs.org>
9063
9064         * glyphs.c (print_image_instance): comment to make martin happy.
9065
9066         * glyphs-x.c (x_redisplay_widget): update faces after a frame
9067         change.
9068
9069         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
9070         activation.
9071         (mswindows_tab_control_redisplay): warning suppression.
9072
9073         * glyphs-widget.c (widget_update): re-write to cope with updated
9074         items.
9075         (widget_instantiate): use new gui_item functions.
9076         (tab_control_update): deleted.
9077         (progress_gauge_update): deleted.
9078         (image_instantiator_progress_guage): take out update reference.
9079         (image_instantiator_tree_view): ditto.
9080         (image_instantiator_tab_control): ditto.
9081
9082         * gui.c (widget_gui_parse_item_keywords): new function. Do things
9083         Right the new way.
9084         (gui_item_add_keyval_pair): re-write to cope with descriptors and
9085         return whether anything was changed.
9086         (update_gui_item_keywords): as it sounds.
9087
9088         * gui.h: declare widget_gui_parse_item_keywords.
9089
9090         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
9091         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
9092
9093 2001-01-17  Martin Buchholz <martin@xemacs.org>
9094
9095         * XEmacs 21.2.41 "Polyhymnia" is released.
9096
9097 2001-01-16  Didier Verna  <didier@xemacs.org>
9098
9099         * glyphs.c (image_instantiate): don't use fallbacks when
9100         instantiating a face's background pixmap by inheritance.
9101
9102 2001-01-14  Mike Sperber <mike@xemacs.org>
9103
9104         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
9105         Conditionalize accordingly.
9106
9107 2001-01-16  Martin Buchholz  <martin@xemacs.org>
9108
9109         * dumper.c (pdump_file_get): Fix a compiler warning.
9110
9111 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9112
9113         Make Purify happy when pdumping.
9114         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
9115         iniitalizing all bits of new lisp object memory.
9116         * symbols.c (Fmake_local_variable): Likewise.
9117         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
9118         * symbols.c (Fdefvaralias): Likewise.
9119         * mule-charset.c (vars_of_mule_charset): Likewise.
9120
9121 2001-01-15  Martin Buchholz  <martin@xemacs.org>
9122         Add the `-nd' flag when running pre-dump operations under the debugger.
9123         * .dbxrc (run-temacs): Add `-nd'.
9124         * .dbxrc (update-elc): Likewise.
9125         * .dbxrc (dump-temacs): Likewise.
9126         * .gdbinit (run-temacs): Likewise.
9127         * .gdbinit (check-temacs): Likewise.
9128         * .gdbinit (update-elc): Likewise.
9129         * .gdbinit (dump-temacs): Likewise.
9130
9131 2001-01-14  Martin Buchholz  <martin@xemacs.org>
9132
9133         Allow building 64-bit executables on AIX with GNU malloc, e.g.
9134         export OBJECT_MODE=64
9135         configure --pdump --use-union-type=no
9136         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
9137         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
9138
9139         * miscplay.c (sndcnv8U_2mono):
9140         Avoid two uses of `++' in the same expression.
9141         Suppresses a GCC warning.
9142
9143 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9144
9145         Make sure future compilers don't miscompile alloc.c.
9146         * alloc.c:
9147         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9148         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9149
9150 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9151
9152         * dumper.c: A little post-pdump-rename comment fixup.
9153
9154 2001-01-09  Jerry James  <james@eecs.ku.edu>
9155
9156         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9157
9158 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9159
9160         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9161         script:
9162         #!/bin/sh
9163         replace_symbol () {
9164           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9165         }
9166
9167         replace_symbol pdump_wire_lists pdump_weak_object_chains
9168         replace_symbol pdump_wire_list dump_add_weak_object_chain
9169
9170         replace_symbol pdump_wires pdump_root_objects
9171         replace_symbol pdump_wire dump_add_root_object
9172
9173         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9174         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9175
9176         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9177         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9178         replace_symbol dumpstructinfo pdump_root_struct_ptr
9179         replace_symbol dumpstruct dump_add_root_struct_ptr
9180
9181         replace_symbol dumpopaque dump_add_opaque
9182         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9183         replace_symbol dumpopaqueinfos pdump_opaques
9184         replace_symbol dumpopaqueinfo pdump_opaque
9185
9186         replace_symbol nb_structdump nb_root_struct_ptrs
9187         replace_symbol nb_opaquedump nb_opaques
9188
9189         replace_symbol align_table pdump_align_table
9190         replace_symbol dump_header pdump_header
9191
9192         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9193         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9194
9195
9196 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9197
9198         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9199         optimizing bytecount_to_charcount().
9200
9201 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9202
9203         * config.h.in:
9204         (HAVE_DLFCN_H): Removed.
9205         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9206
9207 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9208
9209         Portable dumper maintainability improvements.
9210         * alloc.c (staticpro):
9211         * alloc.c (staticpro_nodump):
9212         * alloc.c (garbage_collect_1):
9213         * alloc.c (reinit_alloc_once_early):
9214         * alloc.c (init_alloc_once_early):
9215         * alloc.c: Move dumper functions to alloc.c.
9216         * dumper.c (pdump_backtrace):
9217         * dumper.c (pdump_dump_structs):
9218         * dumper.c (pdump_dump_opaques):
9219         * dumper.c (pdump_dump_rtables):
9220         * dumper.c (pdump_dump_wired):
9221         * dumper.c (pdump):
9222         * dumper.c (pdump_load_check):
9223         * dumper.c (pdump_load_finish):
9224         * dumper.c (pdump_file_unmap):
9225         * dumper.c (pdump_file_get):
9226         * dumper.c (pdump_resource_free):
9227         * dumper.c (pdump_resource_get):
9228         * dumper.c (pdump_file_free):
9229         * dumper.c (pdump_file_try):
9230         * dumper.c (pdump_load):
9231         Remove fixed size limits on staticpro(), staticpro_nodump(),
9232         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9233         Remove custom code for dumping lrecord_implementations_table - use
9234         dumpopaque instead.
9235         Remove (most of the) custom code for dumping staticpros - dump it
9236         like any other dynarr.
9237
9238         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9239         * dumper.c: Moved functions from alloc.c.
9240         * alloc.c (dumpstruct): Moved to dumper.c.
9241         * alloc.c (dumpopaque): Likewise.
9242         * alloc.c (pdump_wire): Likewise.
9243         * alloc.c (pdump_wire_list): Likewise.
9244
9245         * lisp.h (Dynarr_sizeof): New.
9246         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9247         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9248         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9249
9250         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9251         * lisp.h (dumpopaque): ditto.
9252         * lisp.h (pdump_wire): ditto.
9253         * lisp.h (pdump_wire_list): ditto.
9254
9255 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9256
9257         * make-src-depend (PrintPatternDeps):
9258         Use `sort' to make output independent of perl version.
9259
9260 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9261
9262         Port to Netbsd 1.5.
9263         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9264         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9265
9266 2001-01-03  Didier Verna  <didier@xemacs.org>
9267
9268         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9269         that `focus_frame' is alive before thinking of calling
9270         `redisplay_redraw_cursor' on it.
9271
9272 2001-01-08  Martin Buchholz <martin@xemacs.org>
9273
9274         * XEmacs 21.2.40 is released.
9275
9276 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9277
9278         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9279
9280 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9281
9282         * alloc.c (dbg_valmask): Make const.
9283         * alloc.c (dbg_typemask): Make const.
9284         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9285         * alloc.c (dbg_valbits): Make const.
9286         * alloc.c (dbg_gctypebits): Make const.
9287
9288 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9289
9290         * redisplay-x.c (x_bevel_area):
9291         redisplay.h (struct rune):
9292         Typo fixes in comments.
9293
9294 2001-01-05  Andy Piper  <andy@xemacs.org>
9295
9296         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9297         adjustment.
9298
9299         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9300
9301 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9302
9303         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9304
9305         * mule-ccl.c (stack_idx_of_map_multiple):
9306         Non const global data must not be initialized!
9307         Found by MIYASHITA Hisashi.
9308
9309 2001-01-02  Andy Piper  <andy@xemacs.org>
9310
9311         * frame.c (change_frame_size): make sure frame size is always
9312         marked as changed.
9313
9314         * glyphs.c (image_instance_layout): minor code reuse.
9315
9316         * window.c (Fcurrent_window_configuration): revert previous
9317         change.
9318
9319 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9320
9321         * glyphs.h:
9322         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9323
9324 2000-12-31  Andy Piper  <andy@xemacs.org>
9325
9326         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9327         when widget gets unmapped.
9328
9329         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9330         function. Make sure widgets losing focus don't just drop it.
9331         (handle_focus_event_1): record the widget with focus.
9332
9333 2000-12-31  Andy Piper  <andy@xemacs.org>
9334
9335         * window.c (allocate_window): use
9336         make_image_instance_cache_hash_table.
9337         (make_dummy_parent): ditto.
9338         (Fset_window_configuration): ditto.
9339
9340         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9341
9342         * glyphs.c (process_image_string_instantiator): use
9343         INSTANTIATOR_TYPE.
9344         (get_image_instantiator_governing_domain): ditto.
9345         (normalize_image_instantiator): ditto.
9346         (instantiate_image_instantiator): ditto.
9347         (make_image_instance_1): ditto.
9348         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9349         (instantiator_eq_equal): new function for use with instance hash
9350         tables.
9351         (instantiator_eq_hash): ditto.
9352         (make_image_instance_cache_hash_table): create a suitable hash
9353         table for storing image instances.
9354
9355         * elhash.h (hash_table_weakness): new internal weakness type
9356         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9357         declare new functions.
9358
9359         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9360         another weakness type for glyphs.
9361         (make_standard_lisp_hash_table): new function split out from
9362         make_general_lisp_hash_table.
9363         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9364         (hash_table_instantiate): ditto.
9365         (Fmake_hash_table): ditto.
9366
9367 2000-12-31  Martin Buchholz <martin@xemacs.org>
9368
9369         * XEmacs 21.2.39 is released.
9370
9371 2000-12-29  Andy Piper  <andy@xemacs.org>
9372
9373         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9374
9375         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9376         the frame has changed so that we pick up geometry changes such as
9377         menubar visibility.
9378
9379 2000-12-28  Andy Piper  <andy@xemacs.org>
9380
9381         * lastfile.c (my_ebss): make a char array so we can pad the
9382         bss. Fixes cygwin unexec.
9383
9384         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9385
9386 2000-12-26  Andy Piper  <andy@xemacs.org>
9387
9388         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9389         comments and try and be more precise about a non-/SIGIO world.
9390         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9391         SIGIO.
9392
9393         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9394         we don't normalize to zero width or height.
9395
9396 2000-12-24  Andy Piper  <andy@xemacs.org>
9397
9398         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9399
9400 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9401
9402         * s/sco5.h: SCO 5 has pty support.
9403
9404 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9405
9406         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9407         input-method-xlib.c contains whole contents of input-method-xfs.c,
9408         so we can use input-method-xlib.c's code for USE_XFONTSET
9409         using #ifdefs.
9410         * input-method-xfs.c: removed.
9411
9412 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9413
9414         * file-coding.h (enum coding_category_type): reorder enumerators to
9415         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9416         (now one greater than largest real coding_category_type enumerator).
9417         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9418         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9419         Fcoding_category_list, Fset_coding_priority_list,
9420         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9421         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9422
9423 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9424
9425         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9426         * redisplay-output.c (redisplay_output_window): Clear top of window
9427         when face is changed.
9428         * redisplay-x.c (x_redraw_exposed_window): Call
9429         redisplay_clear_top_of_window.
9430         * redisplay.h: Publish redisplay_clear_top_of_window.
9431
9432 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9433
9434         * buffer.c (Fkill_buffer): Map over all devices.
9435         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9436         (list_windows): New function.
9437         (list_all_windows): Ditto.
9438         (Freplace_buffer_in_windows): Use them.
9439
9440 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9441
9442         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9443         (Fopen_database): Use `db_create' instead of `db_open'.
9444         (syms_of_database): Initialize Qqueue.
9445
9446 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9447
9448         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9449         buffer_local_face_property.
9450         * buffer.h (struct buffer): New member buffer_local_face_property.
9451         * window.c (Fset_window_buffer):  Mark window's face as changed
9452         when buffer has buffer local face.
9453         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9454         * objects.c (color_after_change): Set buffer_local_face_property
9455         when locale of face specifier is buffer.
9456         * objects.c (font_after_change): Ditto.
9457         * objects.c (face_boolean_after_change): Ditto.
9458         * glyphs.c (image_after_change): Ditto.
9459
9460 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9461
9462         * nt.c (mswindows_fstat): Report file permissions, volume serial
9463         number, etc. Code adapted from FSF Emacs 20.7.
9464
9465 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9466
9467         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9468         of stat when we don't have symbolic links, to make sure
9469         mswindows_stat is called on mswindows.
9470
9471 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9472
9473         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9474
9475 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9476
9477         * doprnt.c (emacs_doprnt_1): More printing fixes.
9478         Make printing of numbers compatible with libc and FSF Emacs.
9479         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9480         Use the system printf to do most of the hard work of formatting,
9481         instead of doprnt_1().
9482         Calculate memory to allocate for format string.
9483         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9484         (doprnt_1): Cleaner code and documentation.
9485
9486 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9487
9488         * Makefile.in.in: Use the loop variable to install headers.
9489
9490 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9491
9492         * window.c (Fsplit_window): Don't invalidate face cache.
9493
9494 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9495
9496         * minibuf.c (Fall_completions): Undo the previous change
9497         which removed checking elements start with space.
9498
9499 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9500
9501         * mule-canna.c: Didier suppression.
9502
9503 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9504
9505         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9506         (warning suppression).  Add English comment translations.
9507
9508 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9509
9510         * unexelfsgi.c (unexec): Better test for mmap failure.
9511
9512 2000-12-05  Martin Buchholz <martin@xemacs.org>
9513
9514         * XEmacs 21.2.38 is released.
9515
9516 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9517
9518         * redisplay.c (bar-cursor): Make a user variable.
9519
9520         * symsinit.h: Add init_postgresql_from_environment.
9521
9522 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9523
9524         * regex.c: Convert to clean C.
9525
9526 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9527
9528         * realpath.c:
9529         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9530         initialization.
9531         (sys_readlink): renamed to system_readlink to avoid conflict with
9532         the other sys_readlink.
9533
9534 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9535
9536         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9537
9538 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9539
9540         * postgresql.c (init_postgresql_from_environment): new function.
9541         (vars_of_postgresql): Move code initializing Lisp variables out and
9542         into init_postgresql_from_environment.
9543         emacs.c (main_1): Call init_postgresql_from_environment if and only
9544         if running a dumped XEmacs.
9545
9546 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9547
9548         * buffer.c: Make find-file-compare-truenames default to true on
9549         windows.
9550
9551         * realpath.c (win32_abs_start):
9552         (cygwin_readlink):
9553         (win32_readlink): New functions.
9554         (xrealpath): Return really real filenames on windows.
9555
9556         * fileio.c (Ffile_truename): Make file-truename work on windows.
9557
9558 2000-11-29  Didier Verna  <didier@xemacs.org>
9559
9560         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9561         * faces.c (update_face_cachel_data): use it.
9562         * faces.c (add_face_cachel): use it. Complete background pixmap
9563         frobbing in face cache if `update_face_cachel_data' has not done so.
9564
9565 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9566
9567         * search.c (string_match_1): Don't set last_thing_searched
9568         when search failed.
9569
9570 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9571
9572         * buffer.c: Include casetab.h
9573         (common_init_complex_vars_of_buffer): Use new case-table object.
9574         * buffer.h: Include casetab.h
9575         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9576         (DOWNCASE_TABLE_OF): Ditto.
9577         * bufslots.h: Remove char-tables and add case-table.
9578         * casetab.c: Include casetab.h
9579         (CASE_TABLE_P): Removed.
9580         (mark_case_table): New function.
9581         (allocate_case_table): New function.
9582         (Fcase_table_p): Use new case-table.
9583         (case_table_char): New function.
9584         (Fget_case_table): Ditto.
9585         (Fput_case_table): Ditto.
9586         (Fput_case_table_pair): Ditto.
9587         (Fcopy_case_table): Ditto.
9588         (Fcurrent_case_table): Return case-table.
9589         (Fstandard_case_table): Return case-table.
9590         (Fset_case_table): Fix doc-string.
9591         (set_case_table): Use case-table
9592         (syms_of_casetab): DEFSUBR new functions.
9593         (complex_vars_of_casetab): Set up standard case-table.
9594         * casetab.h: New file.
9595         * editfns.c: Include casetab.h
9596         (Fcompare_buffer_substrings): Use case-table.
9597         * inline.c: Include casetab.h
9598         * lisp.h: Remove bogus extern.
9599         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9600         * search.c: Include casetab.h
9601         (TRANSLATE_ASCII): Removed.
9602         (TRANSLATE): Unconditionally translate character.
9603         (looking_at_1): Use case-table.
9604         (string_match_1): Ditto.
9605         (fast_string_match): Ditto.
9606         (search_command): Ditto.
9607         (search_buffer): Separate boyer_moore.  Check whether
9608         boyer_moore is possible.
9609         (simple_search): New function.
9610         (boyer_moore): Separated from search_buffer. Translate char.
9611
9612 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9613
9614         * regex.c (RE_TR_ASCII): Removed.
9615         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9616         (PATFETCH): Call PATFETCH_RAW.
9617         (PATFETCH_RAW): Fetch Emchar.
9618         (PATUNFETCH): Decrement charptr.
9619         (GET_BUFFER_SPACE): Rename b to buf_end.
9620         (BUF_PUSH): Ditto.
9621         (BUF_PUSH_2): Ditto.
9622         (BUF_PUSH_3): Ditto.
9623         (EXTEND_BUFFER): Ditto.
9624         (SET_LIST_BIT): Ditto.
9625         (regex_compile): Ditto.  Translate non ASCII char.
9626         (compile_range): Ditto.
9627         (re_search_2): Ditto.
9628         (re_match_2_internal): Compare Emchar.
9629         (bcmp_translate): Ditto.
9630
9631 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
9632
9633         * lisp.h (basic char/int typedefs):  comment improvement.
9634
9635 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
9636
9637         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
9638         unstomp inhibit_site_lisp.  Improve comments.
9639
9640 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
9641
9642         * mule-charset.c (Fcharset_property):  improve type checking, comments.
9643
9644 2000-11-28  Andy Piper  <andy@xemacs.org>
9645
9646         * redisplay-output.c (redisplay_output_subwindow): make sure we do
9647         clipped display for windows in the gutter also.
9648         (redisplay_display_boxes_in_window_p): change semantics of return
9649         codes to be more intuitive.
9650
9651         * gutter.h: declare display_boxes_in_gutter_p.
9652
9653         * gutter.c (display_boxes_in_gutter_p): new function for
9654         redisplay.
9655
9656 2000-11-22  Andy Piper  <andy@xemacs.org>
9657
9658         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
9659         autodetect domain.
9660
9661 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
9662
9663         * callproc.c (Fold_call_process_internal):
9664         * gpm.c (Freceive_gpm_event):
9665         (tty_get_foreign_selection): Might be just warning supression.
9666         * fileio.c (Fwrite_region_internal):
9667         (Fset_visited_file_modtime):
9668         * keymap.c (event_matches_key_specifier_p):
9669         Initialize GCPROed variable.
9670
9671         * menubar-x.c (command_builder_find_menu_accelerator):
9672         Initialize before use.
9673
9674 2000-11-23  Andy Piper  <andy@xemacs.org>
9675
9676         * unexcw.c (unexec): make the resulting executable executable.
9677
9678 2000-11-21  Martin Buchholz  <martin@xemacs.org>
9679
9680         * doc.c (get_doc_string):
9681         Use size_t, not int, for result of XSTRING_LENGTH.
9682
9683         * cmds.c (Fdelete_char):
9684         * cmds.c (Fpoint_at_eol):
9685         * cmds.c (Fself_insert_command):
9686         Use EMACS_INT, not int, for result of XINT.
9687         Someday, someone will want to insert more than 2**31 identical characters.
9688
9689         * cmds.c (Fdelete_char):
9690         * cmds.c (Fdelete_backward_char):
9691         * syntax.c (Fforward_word):
9692         * syntax.c (Fforward_comment):
9693         Make COUNT argument optional, for consistency with forward-char et al.
9694
9695 2000-11-22  Martin Buchholz  <martin@xemacs.org>
9696
9697         * lisp.h:
9698         * print.c (long_to_string):
9699         Return a useful value: the pointer at end of data written.
9700
9701         * doprnt.c:
9702         Use `static const char * const' for constant strings.
9703         (union printf_arg): Delete `i', `ui' members.
9704         (get_doprnt_args):
9705         (emacs_doprnt_1):
9706         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
9707         Do all printf-ing via the `l' specifier.
9708         Use EMACS_INT instead of int.
9709         Optimize.
9710
9711 2000-11-20  Didier Verna  <didier@xemacs.org>
9712
9713         * faces.c (update_face_cachel_data): don't frob the background
9714         pixmap when the window is being created. The face is needed but
9715         does not exist yet.
9716
9717 2000-11-20  Andy Piper  <andy@xemacs.org>
9718
9719         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
9720         messing with a debug environment.
9721
9722 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9723
9724         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
9725
9726 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9727
9728         * casetab.c (Fcase_table_p): Fix compile error and crash.
9729
9730 2000-11-18  Philip Aston  <philipa@mail.com>
9731
9732         * s/cygwin32.h: Cygwin has SVR4-like pty support.
9733
9734 2000-11-18  Martin Buchholz  <martin@xemacs.org>
9735
9736         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
9737         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
9738
9739 2000-11-17  Martin Buchholz  <martin@xemacs.org>
9740
9741         * config.h.in: Define HAVE_ELF_H if elf.h exists.
9742         * unexelf.c: Use HAVE_ELF_H.
9743         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
9744         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
9745         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
9746         Greg Harrington <greg_harrington@hotmail.com> provided a machine
9747         for testing.
9748         So this is an unexelfsgi.c from a different line of development.
9749
9750 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9751
9752         * regex.c (RE_TR_ASCII): New function.
9753         (RE_TRANSLATE): Call it.
9754
9755 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9756
9757         * buffer.h (TRT_TABLE_OF): Remove assert.
9758         (IN_TRT_TABLE_DOMAIN): Removed.
9759
9760 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9761
9762         * free-hook.c (log_gcpro):
9763         (show_gcprohist): Add support for GCPRO5.
9764
9765 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
9766
9767         * emacs.c (main_1): Improve -sd error message when --pdump=no.
9768
9769 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
9770
9771         * symeval.h: Declare flush_all_buffer_local_cache.
9772
9773         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
9774         (flush_buffer_local_cache): Added.
9775         (flush_all_buffer_local_cache): Added.
9776
9777         * lrecord.h: Remove unused XD_LO_RESET_NIL.
9778
9779         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
9780         (pdump_dump_data): Ditto.
9781         (pdump_reloc_one): Ditto.
9782         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
9783         before dumping.
9784
9785
9786 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9787
9788         * buffer.c: Remove if 0'ed entry.
9789         * buffer.h: Rewrite TRT to use char-table.
9790         * bufslots.h: Remove mirror tables.
9791         * casetab.c: Remove mirror tables.
9792         (CASE_TABLE_P): New macro.
9793         (Fcase_table_p): Element of a case table is string or char-table.
9794         (make_mirror_trt_table): Removed.
9795         (set_case_table): Setup char-table from strings for backward
9796         compatibility.
9797         * dired.c (Fdirectory_files):
9798         * dired-msw.c: (mswindows_get_files):
9799         * lisp.h: Change prototype of re_pattern_buffer.
9800         * regex.c: (RE_TRANSLATE): New macro.
9801         (TRANSLATE_P): Ditto.
9802         Change translate to type RE_TRANSLATE_TYPE.
9803         * regex.h: Define RE_TRANSLATE_TYPE
9804         * search.c (TRANSLATE): New macro.
9805         (TRANSLATE_ASCII): New macro.
9806         Translate table is changed to Lisp_Object.
9807         (signal_failure): Inhibit return.
9808
9809 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9810
9811         * device-msw.c:
9812         * eldap.c:
9813         * event-Xt.c:
9814         * event-stream.c:
9815         * print.c:
9816         Do UNGCPRO before return.
9817
9818 2000-11-14  Martin Buchholz <martin@xemacs.org>
9819
9820         * XEmacs 21.2.37 is released.
9821
9822 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9823
9824         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
9825         Add comments about discarded return value.
9826
9827 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9828
9829         * callint.c:
9830         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
9831
9832 2000-10-27  Andy Piper  <andy@xemacs.org>
9833
9834         * gutter.c (Fset_default_gutter_position): default left and right
9835         gutters to visible.
9836         (calculate_gutter_size): calculate resonable heuristic for left
9837         and right gutter sizes.
9838         (specifier_vars_of_gutter): change left and right gutter sizes to
9839         autodetect.
9840         (calculate_gutter_size_from_display_lines): new function.
9841         (output_gutter): check for resizing on left and right gutters.
9842         (clear_gutter): don't special case top and left gutters.
9843         (specifier_vars_of_gutter): use new signature for
9844         set_specifier_caching.
9845
9846         * glyphs-x.c (x_redisplay_widget): spelling fix.
9847         * glyphs.c (specifier_vars_of_glyphs):
9848         * menubar.c (specifier_vars_of_menubar):
9849         * redisplay.c (specifier_vars_of_redisplay):
9850         * toolbar.c (specifier_vars_of_toolbar):
9851         * window.c (specifier_vars_of_window):
9852         * scrollbar.c (specifier_vars_of_scrollbar):
9853         (complex_vars_of_scrollbar): use new signature for
9854         set_specifier_caching.
9855
9856         * specifier.c (set_specifier_caching): include recompute flag.
9857         (recompute_one_cached_specifier_in_window): always recompute if
9858         flag set.
9859         (recompute_one_cached_specifier_in_frame): ditto.
9860
9861         * specifier.h (struct specifier_caching): add recompute flag.
9862
9863 2000-10-24  Andy Piper  <andy@xemacs.org>
9864
9865         * unexcw.c (copy_executable_and_dump_data_section): add new
9866         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
9867         5.0 happy.
9868
9869 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9870
9871         * console-x.h (x_device): New member modifier_release_time.
9872         * event-Xt.c (x_handle_sticky_modifiers):
9873         Bound interval modifier keys are sticky.
9874         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
9875         * events.h: extern it.
9876
9877 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9878
9879         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
9880
9881 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9882
9883         * event-stream.c (execute_command_event): Preserve current_events
9884         and the like when event is misc-user-event.
9885         Inhibit quit during the call to maybe_echo_keys.
9886
9887 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9888
9889         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
9890         symlink when buffer is killed.
9891         (inhibit_clash_detection): New variable.
9892
9893 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9894
9895         * console.c (Fset_input_method): Trigger redisplay on tty.
9896
9897 2000-11-07  Martin Buchholz  <martin@xemacs.org>
9898
9899         * process.c (Fprocess_status): Revert to previous behavior:
9900         (process-status "nosuchprocess") ==> nil
9901
9902 2000-11-06  Martin Buchholz  <martin@xemacs.org>
9903
9904         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
9905         Work around another GCC 2.95.2 optimizer bug.
9906
9907 2000-11-02  Martin Buchholz  <martin@xemacs.org>
9908
9909         * process.c (Fget_process): Use LIST_LOOP_2.
9910         (kill_buffer_processes): Use LIST_LOOP_2.
9911
9912         * minibuf.c (Fall_completions):
9913         Delete old non-functional code for FSF fourth argument.
9914
9915         * frame.c (frame_matches_frame_spec):
9916         Renamed from `frame_matches_frametype'.  Update all callers.
9917         (device_matches_device_spec):
9918         Renamed from 'device_matches_console_spec'.  Update all callers.
9919
9920         * doc.c (Fsubstitute_command_keys):
9921         Remove buffer overflow crash.  Small code cleanups.
9922
9923         * casetab.c (check_case_table): Simpler code.
9924
9925         * window.c (Freplace_buffer_in_windows):
9926         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
9927         (and similar implementation) as Fdelete_windows_on.
9928         Update all callers.
9929
9930         * alloc.c (Fmake_list):
9931         * alloc.c (make_vector):
9932         * alloc.c (Fmake_vector):
9933         * alloc.c (make_bit_vector):
9934         * alloc.c (Fmake_bit_vector):
9935         * alloc.c (Fbit_vector):
9936         * alloc.c (Fmake_string):
9937         * alloc.c (Fpurecopy):
9938         * alloc.c (Fmemory_limit):
9939         * buffer.c:
9940         * buffer.c (Fget_buffer):
9941         * buffer.c (Fkill_buffer):
9942         * buffer.c (complex_vars_of_buffer):
9943         * bytecode.c (Fcompiled_function_stack_depth):
9944         * callint.c (Fprefix_numeric_value):
9945         * event-stream.c:
9946         * event-stream.c (Fread_key_sequence):
9947         * casetab.c:
9948         * casetab.c (Fcase_table_p):
9949         * casetab.c (check_case_table):
9950         * casetab.c (Fset_case_table):
9951         * casetab.c (Fset_standard_case_table):
9952         * chartab.c:
9953         * chartab.c (Fchar_table_type):
9954         * chartab.c (Freset_char_table):
9955         * chartab.c (Fget_char_table):
9956         * chartab.c (Fget_range_char_table):
9957         * chartab.c (Fput_char_table):
9958         * chartab.c (Fmap_char_table):
9959         * chartab.c (Fcategory_table_p):
9960         * chartab.c (Fcheck_category_at):
9961         * chartab.c (Fchar_in_category_p):
9962         * chartab.c (Fcategory_table):
9963         * chartab.c (Fcopy_category_table):
9964         * chartab.c (Fset_category_table):
9965         * chartab.c (Fcategory_designator_p):
9966         * chartab.c (Fcategory_table_value_p):
9967         * cmds.c (Fdelete_char):
9968         * cmds.c (Fdelete_backward_char):
9969         * cmds.c (Fself_insert_command):
9970         * cmds.c (Fself_insert_internal):
9971         * console.c (Fvalid_console_type_p):
9972         * console.c (Fcdfw_console):
9973         * console.c (Fconsole_type):
9974         * console.c (Fconsole_name):
9975         * console.c (Fconsole_device_list):
9976         * console.c (Fconsole_on_window_system_p):
9977         * data.c:
9978         * data.c (Feq):
9979         * data.c (Fold_eq):
9980         * data.c (Fsubr_interactive):
9981         * data.c (Fchar_to_int):
9982         * data.c (Fint_to_char):
9983         * data.c (Fsetcar):
9984         * data.c (Fsetcdr):
9985         * data.c (Fnumber_to_string):
9986         * data.c (Fstring_to_number):
9987         * data.c (Frem):
9988         * database.c (mark_database):
9989         * database.c (finalize_database):
9990         * database.c (Fdatabase_live_p):
9991         * database.c (Fdatabasep):
9992         * device-x.c (Fx_get_resource):
9993         * device.c (Fdfw_device):
9994         * dired.c:
9995         * dired.c (Ffile_name_completion):
9996         * dired.c (Ffile_name_all_completions):
9997         * dired.c (Fuser_name_completion):
9998         * dired.c (Fuser_name_completion_1):
9999         * dired.c (Fuser_name_all_completions):
10000         * doc.c (Fdocumentation):
10001         * doc.c (Fdocumentation_property):
10002         * doc.c (Fsubstitute_command_keys):
10003         * editfns.c:
10004         * editfns.c (Fchar_to_string):
10005         * editfns.c (Fstring_to_char):
10006         * editfns.c (Ftemp_directory):
10007         * editfns.c (Finsert_char):
10008         * editfns.c (Fbuffer_substring_no_properties):
10009         * editfns.c (Fnarrow_to_region):
10010         * editfns.c (Fchar_equal):
10011         * editfns.c (Fchar_Equal):
10012         * editfns.c (Ftranspose_regions):
10013         * emacs.c (Fdump_emacs):
10014         * eval.c (Fthrow):
10015         * eval.c (Fcommand_execute):
10016         * eval.c (Fautoload):
10017         * eval.c (Fbacktrace):
10018         * eval.c (Fbacktrace_frame):
10019         * events.c:
10020         * events.c (Fcopy_event):
10021         * events.c (Fcharacter_to_event):
10022         * events.c (Fevent_button):
10023         * events.c (Fevent_process):
10024         * extents.c:
10025         * extents.c (Fnext_extent_change):
10026         * extents.c (Fextent_property):
10027         * faces.c (Ffacep):
10028         * faces.c (Fmake_face):
10029         * file-coding.c:
10030         * file-coding.c (Fencode_shift_jis_char):
10031         * file-coding.c (Fencode_big5_char):
10032         * fileio.c (Ffile_name_directory):
10033         * fileio.c (Ffile_name_nondirectory):
10034         * fileio.c (Ffile_name_as_directory):
10035         * fileio.c (Fdirectory_file_name):
10036         * fileio.c (Ffile_truename):
10037         * fileio.c (Fsubstitute_in_file_name):
10038         * fileio.c (Ffile_modes):
10039         * fileio.c (Fset_file_modes):
10040         * fileio.c (Fset_default_file_modes):
10041         * fileio.c (Fverify_visited_file_modtime):
10042         * floatfns.c (Facos):
10043         * floatfns.c (Fasin):
10044         * floatfns.c (Fatan):
10045         * floatfns.c (Fcos):
10046         * floatfns.c (Fsin):
10047         * floatfns.c (Ftan):
10048         * floatfns.c (Fbessel_j0):
10049         * floatfns.c (Fbessel_j1):
10050         * floatfns.c (Fbessel_jn):
10051         * floatfns.c (Fbessel_y0):
10052         * floatfns.c (Fbessel_y1):
10053         * floatfns.c (Fbessel_yn):
10054         * floatfns.c (Ferf):
10055         * floatfns.c (Ferfc):
10056         * floatfns.c (Flog_gamma):
10057         * floatfns.c (Fexp):
10058         * floatfns.c (Fexpt):
10059         * floatfns.c (Flog):
10060         * floatfns.c (Flog10):
10061         * floatfns.c (Fsqrt):
10062         * floatfns.c (Fcube_root):
10063         * floatfns.c (Facosh):
10064         * floatfns.c (Fasinh):
10065         * floatfns.c (Fatanh):
10066         * floatfns.c (Fcosh):
10067         * floatfns.c (Fsinh):
10068         * floatfns.c (Ftanh):
10069         * floatfns.c (Fabs):
10070         * floatfns.c (Ffloat):
10071         * floatfns.c (Flogb):
10072         * floatfns.c (Fceiling):
10073         * floatfns.c (Ffloor):
10074         * floatfns.c (Fround):
10075         * floatfns.c (Ftruncate):
10076         * floatfns.c (Ffceiling):
10077         * floatfns.c (Fffloor):
10078         * floatfns.c (Ffround):
10079         * floatfns.c (Fftruncate):
10080         * fns.c (Fstring_equal):
10081         * fns.c (Fstring_lessp):
10082         * fns.c (concat2):
10083         * fns.c (concat3):
10084         * fns.c (vconcat2):
10085         * fns.c (vconcat3):
10086         * fns.c (Fsubstring):
10087         * fns.c (Fassoc):
10088         * fns.c (Fold_assoc):
10089         * fns.c (assoc_no_quit):
10090         * fns.c (Fassq):
10091         * fns.c (Fold_assq):
10092         * fns.c (assq_no_quit):
10093         * fns.c (Frassoc):
10094         * fns.c (Fold_rassoc):
10095         * fns.c (Frassq):
10096         * fns.c (Fold_rassq):
10097         * fns.c (rassq_no_quit):
10098         * fns.c (Fremassoc):
10099         * fns.c (remassoc_no_quit):
10100         * fns.c (Fremassq):
10101         * fns.c (remassq_no_quit):
10102         * fns.c (Fremrassoc):
10103         * fns.c (Fremrassq):
10104         * fns.c (remrassq_no_quit):
10105         * fns.c (Fsort):
10106         * fns.c (Fplist_get):
10107         * fns.c (Fplist_put):
10108         * fns.c (Fplist_remprop):
10109         * fns.c (Fplist_member):
10110         * fns.c (Flax_plist_get):
10111         * fns.c (Flax_plist_put):
10112         * fns.c (Flax_plist_remprop):
10113         * fns.c (Flax_plist_member):
10114         * fns.c (Fequal):
10115         * fns.c (Fold_equal):
10116         * fns.c (Frequire):
10117         * fns.c (Fbase64_encode_region):
10118         * fns.c (Fbase64_encode_string):
10119         * fns.c (Fbase64_decode_region):
10120         * frame.c:
10121         * frame.c (frame_matches_frame_spec):
10122         * frame.c (device_matches_device_spec):
10123         * frame.c (next_frame):
10124         * frame.c (previous_frame):
10125         * frame.c (Fnext_frame):
10126         * frame.c (Fprevious_frame):
10127         * frame.c (Fframe_property):
10128         * frame.c (Fset_frame_height):
10129         * frame.c (Fset_frame_size):
10130         * frame.h:
10131         * glyphs.c:
10132         * glyphs.c (if):
10133         * glyphs.c (decode_error_behavior_flag):
10134         * glyphs.c (Fmake_image_instance):
10135         * indent.c (Findent_to):
10136         * intl.c (Fignore_defer_gettext):
10137         * keymap.c (Fkeymapp):
10138         * keymap.c (Flookup_key):
10139         * lread.c:
10140         * lread.c (Fload_internal):
10141         * lread.c (Feval_buffer):
10142         * lread.c (Feval_region):
10143         * macros.c (Fexecute_kbd_macro):
10144         * marker.c (set_marker_internal):
10145         * marker.c (Fset_marker):
10146         * marker.c (set_marker_restricted):
10147         * marker.c (Fcopy_marker):
10148         * marker.c (noseeum_copy_marker):
10149         * menubar.c:
10150         * menubar.c (Fpopup_menu):
10151         * minibuf.c:
10152         * mule-charset.c (Fcharset_name):
10153         * mule-charset.c (Fchar_charset):
10154         * mule-charset.c (Fchar_octet):
10155         * mule-charset.c (Fsplit_char):
10156         * mule-wnnfns.c (Fwnn_open):
10157         * mule-wnnfns.c (Fwnn_dict_comment):
10158         * mule-wnnfns.c (Fwnn_quit_henkan):
10159         * mule-wnnfns.c (Fwnn_word_toroku):
10160         * mule-wnnfns.c (Fwnn_word_sakujo):
10161         * mule-wnnfns.c (Fwnn_word_use):
10162         * mule-wnnfns.c (Fwnn_hindo_set):
10163         * objects.c:
10164         * objects.c (Fmake_color_instance):
10165         * objects.c (Fmake_font_instance):
10166         * print.c (Fwrite_char):
10167         * process.c:
10168         * process.c (mark_process):
10169         * process.c (print_process):
10170         * process.c (get_process_from_usid):
10171         * process.c (Fprocessp):
10172         * process.c (Fprocess_live_p):
10173         * process.c (Fget_process):
10174         * process.c (Fget_buffer_process):
10175         * process.c (get_process):
10176         * process.c (Fprocess_id):
10177         * process.c (Fprocess_name):
10178         * process.c (Fprocess_command):
10179         * process.c (init_process_io_handles):
10180         * process.c (start_process_unwind):
10181         * process.c (Fstart_process_internal):
10182         * process.c (Fopen_multicast_group_internal):
10183         * process.c (Fset_process_window_size):
10184         * process.c (read_process_output):
10185         * process.c (send_process):
10186         * process.c (Fprocess_tty_name):
10187         * process.c (Fset_process_buffer):
10188         * process.c (Fprocess_buffer):
10189         * process.c (Fprocess_mark):
10190         * process.c (set_process_filter):
10191         * process.c (Fset_process_filter):
10192         * process.c (Fprocess_filter):
10193         * process.c (Fprocess_send_region):
10194         * process.c (Fprocess_send_string):
10195         * process.c (exec_sentinel):
10196         * process.c (Fset_process_sentinel):
10197         * process.c (Fprocess_sentinel):
10198         * process.c (status_notify):
10199         * process.c (Fprocess_status):
10200         * process.c (Fprocess_exit_status):
10201         * process.c (process_send_signal):
10202         * process.c (Fprocess_send_eof):
10203         * process.c (deactivate_process):
10204         * process.c (remove_process):
10205         * process.c (Fdelete_process):
10206         * process.c (kill_buffer_processes):
10207         * process.c (Fprocess_kill_without_query):
10208         * process.c (Fprocess_kill_without_query_p):
10209         * rangetab.c:
10210         * rangetab.c (Fget_range_table):
10211         * rangetab.c (Fput_range_table):
10212         * rangetab.c (Fremove_range_table):
10213         * rangetab.c (Fclear_range_table):
10214         * search.c:
10215         * search.c (Fskip_chars_forward):
10216         * search.c (Fskip_chars_backward):
10217         * search.c (Fskip_syntax_forward):
10218         * search.c (Fskip_syntax_backward):
10219         * search.c (search_command):
10220         * search.c (Freplace_match):
10221         * search.c (Fregexp_quote):
10222         * select.c (Fown_selection_internal):
10223         * select.c (Fselection_owner_p):
10224         * select.c (Fselection_exists_p):
10225         * select.c (Fget_selection_internal):
10226         * specifier.c:
10227         * symbols.c:
10228         * symbols.c (Fintern):
10229         * symbols.c (Fintern_soft):
10230         * symbols.c (Funintern):
10231         * symbols.c (Fapropos_internal):
10232         * symbols.c (Fset_default):
10233         * syntax.c:
10234         * syntax.c (Fsyntax_table_p):
10235         * syntax.c (Fcopy_syntax_table):
10236         * syntax.c (Fset_syntax_table):
10237         * syntax.c (Fchar_syntax):
10238         * syntax.c (syntax_match):
10239         * syntax.c (Fmatching_paren):
10240         * syntax.c (Fforward_word):
10241         * syntax.c (scan_lists):
10242         * syntax.c (Fscan_lists):
10243         * syntax.c (Fscan_sexps):
10244         * syntax.c (Fparse_partial_sexp):
10245         * toolbar.c (Fcheck_toolbar_button_syntax):
10246         * tooltalk.doc:
10247         * window.c:
10248         * window.c (Fwindowp):
10249         * window.c (Fwindow_live_p):
10250         * window.c (Fwindow_point):
10251         * window.c (Fdelete_window):
10252         * window.c (Fnext_window):
10253         * window.c (Fprevious_window):
10254         * window.c (Fother_window):
10255         * window.c (window_loop):
10256         * window.c (Fget_lru_window):
10257         * window.c (Fsplit_window):
10258         * window.c (Fenlarge_window):
10259         * window.c (Fenlarge_window_pixels):
10260         * window.c (Fshrink_window):
10261         * window.c (Fshrink_window_pixels):
10262         * window.c (change_window_height):
10263         * window.c (Fwindow_configuration_p):
10264         * window.c (Fcurrent_window_configuration):
10265         * window.h:
10266         * casefiddle.c (casify_object):
10267         * casefiddle.c (Fupcase):
10268         * casefiddle.c (Fdowncase):
10269         * casefiddle.c (Fcapitalize):
10270         * casefiddle.c (Fupcase_initials):
10271         * casefiddle.c (casify_region_internal):
10272         * casefiddle.c (casify_region):
10273         * casefiddle.c (Fupcase_region):
10274         * casefiddle.c (Fdowncase_region):
10275         * casefiddle.c (Fcapitalize_region):
10276         * casefiddle.c (Fupcase_initials_region):
10277         * casefiddle.c (Fupcase_word):
10278         * casefiddle.c (Fdowncase_word):
10279         * casefiddle.c (Fcapitalize_word):
10280         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10281         Replace 0 with '\0' when working with bytes.
10282         Replace initial "(" with "\(" in docstrings.
10283
10284 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10285
10286         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10287
10288         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10289
10290 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10291
10292         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10293
10294 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10295
10296         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10297         correctly.
10298
10299 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10300
10301         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10302         (inhibit_auto_save_session): New variable.
10303         (vars_of_fileio): Declare and initialize them.
10304         * fileio.c (Fdo_auto_save): Don't create session file if
10305         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10306
10307 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10308
10309         * sgiplay.c (play_internal): C++ compilability.
10310         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10311         * callproc.c (Fold_call_process_internal):
10312         Remove unused vars `env', `first'.
10313         * scrollbar.c (update_scrollbar_instance):
10314         #### unused var `current_window'.
10315         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10316         etc. within #ifdef NOT_YET.
10317         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10318         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10319         * specifier.c (specifier_instance):
10320         #### unused var `tag'.
10321         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10322
10323 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10324
10325         * fns.c (Fbutlast):
10326         * fns.c (list_sort):
10327         * fns.c (Ffillarray):
10328         * fns.c (bytecode_nconc2):
10329         * fns.c (Fnconc):
10330         * fns.c (mapcar1):
10331         * fns.c (Fmapconcat):
10332         Be pedantically 64-bit correct.  For the time when someone will
10333         want to have a list with length > 2**32.
10334
10335         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10336         Work around MIPSpro compiler bug.
10337
10338         * process-unix.c (unix_kill_child_process): Add snarky comment.
10339         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10340
10341         * config.h.in: Oops, _getpt ==> _getpty
10342
10343 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10344
10345         * config.h.in:
10346         * regex.c:
10347         Use void*, not char*, as return type of alloca().
10348
10349         * alloc.c (free_marker): Side effect inside assert expression!
10350
10351 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10352
10353         * mule-charset.c (Fset_charset_ccl_program): To check
10354         if the given ccl program is valid, use setup_ccl_program()
10355         instead of CHECK_VECTOR().
10356         (Fmake_charset): Likewise.
10357
10358 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10359
10360         * faces.c (get_extent_fragment_face_cache_index):
10361         Fix cachel.merged_faces memory leak.
10362
10363 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10364
10365         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10366         Reset MSB of octets obtained by DECODE_SJIS
10367         because of the incompatibility with Emacs.
10368         (ccl_driver)<CCL_ENCODE_SJIS>:
10369         Set MSB of octets before passing them to
10370         ENCODE_SJIS because of the incompatibility
10371         with Emacs.
10372
10373 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10374
10375         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10376         (DECLARE_LRECORD): Undo the last change.
10377         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10378
10379 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10380
10381         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10382         the implementation to lrecord_implementations_table.
10383
10384 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10385
10386         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10387         initial value of `lrecord_type_##c_name' and
10388         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10389         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10390         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10391         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10392         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10393
10394 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10395
10396         * miscplay.c (sndcnv8S_2mono):
10397         (sndcnv2monounsigned):
10398         (sndcnvULaw_2linear):
10399         (sndcnv16swap):
10400         Remove implementation-defined behavior.
10401
10402 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10403
10404         * input-method-xlib.c: Warning suppression.
10405
10406 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10407
10408         * mule-ccl.c: Sync up with Emacs 21.0.90.
10409         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10410         Do nothing.
10411         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10412         Likewise.
10413         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10414         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10415         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10416         leading char belongs to official 2-dimensional charset.
10417         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10418         write the given character as is.  Otherwise,
10419         if it is a multibyte char, convert it by
10420         non_ascii_set_charptr_emchar, then write it.
10421         (CCL_WRITE_STRING): Likewise.
10422         (ccl_get_compiled_code): New function.
10423         (setup_ccl_program): When ccl_prog is invalid,
10424         return -1.
10425         (Fregister_code_conversion_map): New function.
10426         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10427
10428         * mule-ccl.h: Sync up with Emacs 21.0.90.
10429         (Fregister_ccl_program): export it.
10430
10431         * redisplay-msw.c (separate_textual_runs):
10432         If ccl program is not valid, don't do ccl conversion.
10433
10434         * redisplay-x.c (separate_textual_runs): Ditto.
10435
10436         * file-coding.c (Fmake_coding_system):
10437         When type is ccl and value is vector, register it
10438         with a proper symbol.  And checks whether the
10439         given ccl program is valid.
10440         (mule_decode): When calling ccl_driver, if src indicates
10441         NULL pointer, set an empty string instead.
10442         (mule_encode): Likewise.
10443
10444 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10445
10446         The following large batch of changes gets us back to a state of
10447         C++ compilability.  Extbyte is now a char, which means that
10448         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10449
10450         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10451
10452         * sound.c (Fplay_sound): Type correctness.
10453
10454         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10455         (x_get_window_property): Type correctness.
10456         (receive_incremental_selection): unsigned char ==> Extbyte
10457         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10458         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10459         (Fx_store_cutbuffer_internal): Type correctness.
10460
10461         * process-unix.c (try_to_initialize_subtty): Type correctness.
10462
10463         * objects-x.c (x_print_color_instance): Type correctness.
10464         (x_print_font_instance): Type correctness.
10465         (x_list_fonts): SExtbyte ==> Extbyte.
10466         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10467         (x_find_charset_font): SExtbyte ==> Extbyte.
10468         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10469         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10470         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10471         Use bufbyte_strcmp.
10472
10473         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10474         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10475         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10476         (BYTE_C0_P): Use bit ops for char-signedness safety.
10477         (BYTE_C1_P): Use bit ops for char-signedness safety.
10478         (CHARSET_BY_LEADING_BYTE):
10479         (CHARSET_BY_ATTRIBUTES):
10480         Always use inline function.
10481         Use type_checking_assert.
10482         Hide chlook.
10483
10484         * mule-charset.c (non_ascii_charptr_copy_char):
10485         Modify to work with both ASCII and non-ASCII characters.
10486         Improve docs and variable names.
10487         Replace over-clever fall-through switch with a simple loop.
10488         (Lstream_get_emchar_1):
10489         Replace over-clever fall-through switch with a simple loop.
10490
10491         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10492         Warning suppression.
10493
10494         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10495         the return value of Lstream_getc, which could be EOF as well.
10496
10497         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10498
10499         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10500         APIs can be used on Extbytes without casts.  Risky!
10501         (SExtbyte): Remove.
10502         (UExtbyte): Remove.
10503
10504         * input-method-xlib.c (XIM_init_device):
10505         Use Xlib.h instead of IntrinsicP.h.
10506         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10507         which will break in X11R7.
10508         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10509         to call XRegisterIMInstantiateCallback with correct types.
10510
10511         * gui-x.c (button_item_to_widget_value): Type correctness.
10512
10513         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10514
10515         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10516         (xbm_instantiate_1): Type correctness.
10517         (BUILD_GLYPH_INST):  Type correctness.
10518
10519         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10520
10521         * file-coding.c:
10522         (decode_coding_sjis):
10523         (decode_coding_big5):
10524         (decode_coding_ucs4):
10525         (decode_coding_utf8):
10526         (decode_coding_iso2022):
10527         (decode_coding_no_conversion):
10528         Make all decoding functions take an Extbyte * arg.
10529         (encode_coding_sjis):
10530         (encode_coding_big5):
10531         (encode_coding_ucs4):
10532         (encode_coding_utf8):
10533         (encode_coding_iso2022):
10534         (encode_coding_no_conversion):
10535         Make all encoding functions take a Bufbyte * arg.
10536         Use size_t instead of unsigned int for memory sizes.
10537         Only cast to unsigned char whenever dereferencing Extbyte *.
10538
10539         * doc.c (unparesseuxify_doc_string): Type correctness.
10540
10541         * console-x.c (split_up_display_spec):
10542         Rewrite without using details of internal string representation.
10543         (x_semi_canonicalize_device_connection): Type correctness.
10544
10545         * config.h.in:
10546         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10547         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10548         (HAVE_XFREE386): Removed.
10549
10550         * buffer.h (DEC_CHARPTR): `const' correctness.
10551         (bufbyte_strcmp): New.
10552         (bufbyte_memcmp): New.
10553
10554         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10555
10556         * buffer.h (XCHAR_OR_CHAR_INT):
10557         Always use inline function.
10558         Remove redundant type checking assert() - XINT will abort quite nicely.
10559
10560 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10561
10562         * search.c (Freplace_match): Set newtext to an empty string.
10563
10564 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10565
10566         * s/decosf1-3.h: Remove #include of stropts.h
10567         * s/ptx.h: Remove #include of stropts.h
10568         * s/usg5-4.h: Remove #include of stropts.h
10569         * sysproc.h:
10570         * config.h.in:
10571         Use stropts.h, not sys/stropts.h.
10572         Use strtio.h, not sys/strtio.h.
10573
10574 2000-10-04  Martin Buchholz <martin@xemacs.org>
10575
10576         * XEmacs 21.2.36 is released.
10577
10578 2000-09-21  Andy Piper  <andy@xemacs.org>
10579
10580         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10581         changes still involve copying the widget tree.
10582         (update_widget_face): make sure a change is register in the widget
10583         tree. Call update_tab_widget_face appropriately.
10584         (update_tab_widget_face): ditto.
10585         (x_tab_control_redisplay): make sure non-structural changes still
10586         involve copying the widget tree.
10587
10588 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10589
10590         * lread.c (locate_file): Check the path element is non-nil.
10591
10592 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10593
10594         * lisp.h: Warning suppression for SCO compilers.
10595
10596         * redisplay-tty.c (reset_tty_modes): Fix crash.
10597         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10598
10599 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10600
10601         Big signal/process handling overhaul.  Bugs fixed:
10602         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10603         M-x comint-kill-subjob should work for both values nil and t of
10604         process-connection-type. It was broken on most platforms.
10605         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10606         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10607         * process-unix.c: Signal/Process handling overhaul.
10608         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10609         (allocate_pty): Use all available modern methods of allocating
10610         ptys, falling back to old style BSD allocation as a last resort.
10611         Use allegedly more secure Unix98 pty allocation by default.
10612         (allocate_pty_the_old_fashioned_way): New. the last resort.
10613         (unix_create_process): Push ptem, ldterm, ttcompat where
10614         available.  Autoconfiscate.
10615         (try_to_initialize_subtty): New.
10616         (unix_kill_child_process): Proper signal handling for ptys on most
10617         platforms, using special knowledge of AIX, BSD, etc...
10618         (unix_create_process): Always disconnect_controlling_terminal() for
10619         subprocesses, whether using ptys or not.
10620         * process.h: Remove old getpt-dependent PTY code.
10621         * process.c (Fprocess_send_signal): New, obvious generic function.
10622         (decode_signal): New.
10623         (Finterrupt_process):
10624         (Fkill_process):
10625         (Fquit_process):
10626         (Fstop_process):
10627         (Fcontinue_process):
10628         (Fsignal_process): Use decode_signal.
10629         (process_send_signal):
10630         Many docstring corrections.
10631         Allow any signal to be sent to a process object.
10632         * config.h.in: Add symbols for big signal/process overhaul.
10633         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
10634         * sysproc.h: Include process-related headers, where available:
10635         sys/stropts.h sys/strtio.h pty.h libutil.h
10636         * s/irix4-0.h:
10637         * s/irix5-0.h:
10638         * s/cygwin32.h:
10639         * s/gnu.h:
10640         * s/linux.h:
10641         * s/hpux.h:
10642         * s/aix3-1.h:
10643         Remove old S&M pty stuff.
10644         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
10645         * systty.h: Simplify cpp hackery, improve comments.
10646         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
10647
10648         * editfns.c (Fformat_time_string):
10649         Be a little more paranoid with the return value of ctime.
10650
10651         * fileio.c (check_executable):
10652         (check_writable):
10653         Use symbolic constants X_OK, W_OK.
10654
10655         * console-x.c (split_up_display_spec): Fix a warning.
10656
10657 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10658
10659         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
10660         * ntproc.c (sys_spawnve): make_string ==> build_string
10661         Small clarity improvements.
10662
10663 2000-09-30  Martin Buchholz  <martin@xemacs.org>
10664
10665         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
10666
10667         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
10668
10669         * config.h.in (HAVE_STRCASECMP): Remove.
10670
10671 2000-09-29  Martin Buchholz  <martin@xemacs.org>
10672
10673         * redisplay-output.c (redisplay_output_pixmap):
10674         Cleaner and possibly more 64-bit correct code.
10675
10676 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
10677
10678         * dumper.c (pdump_load_finish): move restoration of
10679         `noninteractive1' to emacs.c (main_1).
10680         * emacs.c (main_1): protect LISP-visible command-line flags
10681         from pdump_load().
10682
10683 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
10684
10685         * Makefile.in.in (versionclean):  Use EXE_TARGET and
10686         DUMP_TARGET instead of literal program names.
10687
10688 2000-09-20  Martin Buchholz  <martin@xemacs.org>
10689
10690         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
10691
10692 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10693
10694         * *: Spelling mega-patch
10695
10696 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10697
10698         * fns.c (bad_bad_turtle):
10699         Delete "Eek!" comment, since we fixed the bug to which it refers.
10700
10701 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10702
10703         * alloca.c: Replace REGISTER with register.
10704
10705 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
10706
10707         * file-coding.c (ucs_to_char): Use countof.
10708
10709 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10710
10711         * file-coding.c: (ucs_to_char):
10712         (complex_vars_of_file_coding):
10713         Use countof instead of sizeof.
10714         Use CHECK_NATNUM instead of CHECK_INT.
10715
10716         * sysdep.c (strcasecmp): Remove.
10717         * device-x.c (ascii_strcasecmp): New.
10718         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
10719         Avoid using non-standard non-portable strcasecmp.
10720
10721 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10722
10723         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
10724         * font-lock.c: remove reference to emacsfns.h.
10725         * search.c: small doc improvement.
10726         * event-Xt.c: correct file names in comments.
10727         * console-x.h Correct file names in comments.
10728         * frame.c: Correct file names in comments.
10729         * event-stream.c: remove Energize from comments.
10730
10731 2000-09-15  Martin Buchholz  <martin@xemacs.org>
10732
10733         * symeval.h (DEFERROR_STANDARD):
10734         (DEFERROR):
10735         (DEFSYMBOL):
10736         (DEFSYMBOL_NO_DUMP):
10737         (DEFSYMBOL_MULTIWORD_PREDICATE):
10738         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
10739         (DEFKEYWORD):
10740         The construct &##name is not sensible C.
10741         Fixes compilation errors with Unixware native compiler.
10742
10743 2000-09-14  Martin Buchholz  <martin@xemacs.org>
10744
10745         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
10746         (next_frame_internal): Removed.  We now just have next_frame.
10747         (next_frame):
10748         Write a simpler and cleaner one-pass algorithm.
10749         Remove called_from_delete_device arg and #ifdefed-out code.
10750         (previous_frame):
10751         Renamed from prev_frame.  Update callers.
10752         Cleaned up to have an analogous implementation to next_frame.
10753         (other_visible_frames_internal): Remove the
10754         called_from_delete_device bogus arg, and hence, remove this
10755         function.  Just use other_visible_frames().
10756
10757         * window.c (Fnext_window):
10758         Prettify docstring.
10759         Since next_frame() is guaranteed to return a frame, remove check
10760         for nil inserted in previous patch.
10761         (Fprevious_window):
10762         Prettify docstring.
10763         Make code look more like Fnext_window.
10764         (window_loop):
10765         Respect the `console' arg when iterating through windows.
10766         Fixes bug: (get-buffer-window buffer t device) not respecting
10767         the `device' arg.
10768         This function needs more work, as others have pointed out.
10769
10770         * frame.h: Rename prev_frame to previous_frame.
10771         device_matches_console_spec no longer takes a `frame' arg.
10772
10773         * s/gnu.h:
10774         * s/linux.h:
10775         * s/hpux.h:
10776         Use EMACS_BLOCK_SIGNAL instead of sigblock.
10777         From "Golubev I. N." <gin@mo.msk.ru>.
10778
10779         * make-src-depend: Fix typo.
10780
10781 2000-09-13  Martin Buchholz  <martin@xemacs.org>
10782
10783         * window.c (Fnext_window):
10784         next_frame() might return nil, not a frame.
10785         Fixes this crash:
10786         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10787
10788         * frame.c (next_frame_internal):
10789         We've passed a frame if we've passed its device.
10790         Fixes this crash:
10791         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10792 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
10793
10794 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10795
10796         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10797         Allow option to suppress accelerators in menu/dialog items.
10798         (populate_or_checksum_helper): Pass dialog title through above.
10799
10800 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10801
10802         * event-msw.c (mswindows_key_to_emacs_keysym):
10803         Add "pause" key, fix "menu" key.
10804
10805 2000-09-09  Martin Buchholz  <martin@xemacs.org>
10806
10807         * eval.c (reinit_vars_of_eval):
10808         Increase max_lisp_eval_depth to 1000,
10809         required for thai-xtis.el to byte-compile under some circumstances.
10810
10811 2000-09-04  Martin Buchholz  <martin@xemacs.org>
10812
10813         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
10814         From Kenichi Handa.
10815
10816 2000-09-01  Martin Buchholz  <martin@xemacs.org>
10817
10818         * make-src-depend: Make the generated Makefiles smaller.
10819
10820         * s/hpux.h (SETUP_SLAVE_PTY):
10821         Provide a %d in the format string for the errno argument.
10822
10823         * editfns.c (Ftemp_directory):
10824         Warning fix.
10825         Avoid buffer overrun on very long file name.
10826
10827         * input-method-xlib.c (XIM_init_device):
10828         6th parameter of XRegisterIMInstantiateCallback has different
10829         pointer types on different OSes, so simply cast to (void *).
10830
10831         * unexhp9k800.c: Warning fixes.  Fiddly changes.
10832
10833         * sysdll.c (dll_open):
10834         shl_load will hang hard if passed a NULL filename.
10835         Simply return NULL for compatibility with dlopen.
10836         * sysdll.c: Conform to XEmacs coding standards.
10837
10838         * sysdep.c (get_pty_max_bytes):
10839         Support pty input lines longer than 512 bytes on HP-UX 10.20.
10840
10841 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10842
10843         * tooltalk.c: Add #include <syssignal.h>
10844
10845 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
10846
10847         * s/hpux.h: Don't use undefined function sigunblock().
10848
10849 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10850
10851         * config.h.in: Add HAVE_BALLOON_HELP.
10852         * emacs.c: Use HAVE_BALLOON_HELP.
10853         * Makefile.in.in (x_objs):
10854         Make Balloon Help conditional on finding shape.h.
10855
10856 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
10857
10858         * syntax.c (regex_emacs_buffer_p): New variable.
10859         * syntax.h (regex_emacs_buffer_p): extern.
10860         * search.c (looking_at_1):
10861         (string_match_1):
10862         (fast_string_match):
10863         (search_buffer): Set regex_emacs_buffer_p.
10864         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
10865         when before_dot, at_dot, after_dot.
10866
10867 2000-08-23  Andy Piper  <andy@xemacs.org>
10868
10869         * gui-x.c (popup_selection_callback): Only set action_occurred
10870         when we really have an image instance.
10871         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
10872
10873 2000-08-23  Andy Piper  <andy@xemacs.org>
10874
10875         * gui-msw.c (mswindows_handle_gui_wm_command): set
10876         action_occurred.
10877         * gui-x.c (popup_selection_callback): ditto.
10878
10879         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
10880         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
10881         (struct Lisp_Image_Instance): add action_occurred flag.
10882
10883         * glyphs.c (redisplay_subwindow): use action_occurred flag.
10884         (image_instance_changed): ditto.
10885         (reset_frame_subwindow_instance_cache): only unmap windows - do
10886         not remove them from the cache also.
10887
10888         * glyphs-widget.c (tab_control_update): better debug.
10889         (progress_gauge_update): ditto.
10890         (layout_update): ditto.
10891         (layout_instantiate): ditto.
10892         (tab_control_order_only_changed): cope with null pending items.
10893
10894         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
10895         debug. Force selection of an item when an action occurred. Cope
10896         with null pending_items.
10897         (mswindows_progress_gauge_redisplay): better debug.
10898         * glyphs-x.c (x_tab_control_redisplay): ditto.
10899
10900         * redisplay.c (redisplay_frame): reset the frame cache if the
10901         frame is garbaged.
10902
10903         * window.c (Fset_window_configuration): potentially re-enable
10904         frame cache reset.
10905         (window_unmap_subwindows): need to finalize instances here since
10906         it is only used in mark_window_as_deleted.
10907
10908 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
10909
10910         * nas.c (SndOpenDataForReading):
10911         nas.c (WaveOpenDataForReading):
10912         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
10913         Somehow escaped from the 2000-08-14 patch.
10914
10915 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
10916
10917         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
10918         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
10919
10920 2000-08-21  Andy Piper  <andy@xemacs.org>
10921
10922         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
10923         window if it is not already displayed.
10924
10925         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
10926         it is not already displayed.
10927
10928         * window.c (Fset_window_configuration): don't reset the frame
10929         cache.
10930
10931         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
10932         instances from the frame cache if we are actually finalizing them.
10933         (reset_frame_subwindow_instance_cache): reset frame cache only
10934         after unmapping everything.
10935         (map_subwindow): set displayed flag after mapping.
10936
10937 2000-08-21  Martin Buchholz  <martin@xemacs.org>
10938
10939         * data.c (indirect_function):
10940         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
10941
10942         * eval.c (function_argcount):
10943         Use original function when signaling errors.
10944
10945 2000-08-18  Andy Piper  <andy@xemacs.org>
10946
10947         * frame.c (delete_frame_internal): use new
10948         free_frame_subwindow_instances name.
10949
10950         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
10951         (add_tab_item): make return type correct.
10952         (mswindows_tab_control_instantiate): assert index of tab.
10953         (mswindows_tab_control_redisplay): Re-code to use
10954         gui_item_equal_sans_selected and gui_item_list_find_selected.
10955
10956         * glyphs-widget.c (tab_control_update): Correct comment.
10957
10958         * window.c (window_unmap_subwindows): use new
10959         unmap_subwindow_instance_cache_mapper.
10960         (window_unmap_subwindows_cache_mapper): deleted.
10961         (Fset_window_configuration): comparisons should now be with
10962         EQ. Preserve the subwindow instance cache across configuration
10963         changes.
10964         (allocate_window): ditto.
10965         (make_dummy_parent): ditto.
10966
10967         * glyphs.c (free_frame_subwindow_instances): rename from
10968         free_frame_subwindow_instance_cache. finalize all instances rather
10969         than just those in the display cache.
10970         (finalize_all_subwindow_instances): walk windows unmapping and
10971         finalizing subwindows.
10972         (unmap_subwindow_instance_cache_mapper): moved from
10973         window.c. Allow finalization as well as unmapping.
10974
10975         * gui.c (gui_item_list_find_selected): new function.
10976
10977         * gui.h (gui_item_list_find_selected): declare.
10978
10979         * glyphs-x.c (x_tab_control_redisplay): pick tab
10980         explicitly. Re-code to use gui_item_equal_sans_selected and
10981         gui_item_list_find_selected.
10982
10983         * glyphs-x.h: add lwlib-utils.h
10984
10985         * buffer.c (Frecord_buffer): undo previous change.
10986
10987 2000-08-09  Vin Shelton  <acs@xemacs.org>
10988
10989         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
10990         possible.  Create temporary files more securely.  The patch was
10991         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
10992         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
10993         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
10994         for details.
10995
10996 2000-08-07  Ben Wing  <ben@xemacs.org>
10997
10998         * getloadavg.c: remove duplicate (and windows-breaking)
10999         includes of fcntl.h and sys/file.h.
11000
11001         * nt.c: remove duplicate getloadavg() definition.
11002
11003         * sysdll.h (Qdll_filename_encoding): add missing stand-in
11004         encodings.
11005
11006 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
11007
11008         * eval.c (function_argcount): If function needs to be autoloaded
11009         actually use the loaded definition.
11010         GCPRO function.
11011
11012 2000-08-05  Ben Wing  <ben@xemacs.org>
11013
11014         * getloadavg.c: add prototype for getloadavg().  remove
11015         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
11016         of the code).  remove duplicate header includes.
11017
11018         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
11019
11020         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
11021         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
11022         useful load average.
11023
11024         * alloc.c (reinit_alloc_once_early): removed references to
11025         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
11026         the lisp vars are the only things referencing the malloc_sbrk_*
11027         vars, and they were already if 0'd out.  these vars only exist
11028         in the older malloc.c, which is basically unused, and they're
11029         only for informational purposes.
11030
11031         * m\*.h: removed useless VIRT_ADDR_VARIES.
11032
11033         * m\powerpc.h: removed stray NO_ARG_ARRAY.
11034
11035 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
11036
11037         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
11038         color if the image is a mono pixmap.
11039
11040 2000-07-30  Ben Wing  <ben@xemacs.org>
11041
11042         * Makefile.in.in (release):
11043         Remove stray @.
11044
11045         * buffer.c (directory_is_current_directory):
11046         * dired-msw.c (mswindows_get_files):
11047         * dired.c:
11048         * dired.c (Fdirectory_files):
11049         * dired.c (file_name_completion_stat):
11050         * dired.c (Ffile_attributes):
11051         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
11052         preprocessor tricks, to avoid problems on some machines
11053         (e.g. SCO).
11054
11055         * callproc.c (egetenv): GC docs.
11056
11057         * console-msw.h:
11058         * console-msw.h (struct mswindows_dialog_id):
11059         * lrecord.h (lrecord_type):
11060         New object for use with MSW dialogs.
11061
11062         * console.h (struct console_methods):
11063         New enable/disable frame methods, for proper modal dialogs.
11064
11065         * device-msw.c (msprinter_default_printer): Fix to follow
11066         proper Mule conventions.
11067
11068         * device-msw.c:
11069         * device-msw.c (signal_open_printer_error):
11070         * device-msw.c (msprinter_init_device):
11071         * device-msw.c (ensure_not_printing):
11072         * device-msw.c (plist_get_margin):
11073         * device-msw.c (Fmsprinter_select_settings):
11074         * device-msw.c (finalize_devmode):
11075         * device-msw.c (Fmsprinter_settings_despecialize):
11076         * device-msw.c (signal_enum_priner_error):
11077         * extents.c (decode_extent):
11078         * extents.c (decode_map_extents_flags):
11079         * extents.c (decode_extent_at_flag):
11080         * extents.c (Fextent_at):
11081         * extents.c (Fextents_at):
11082         * extents.c (symbol_to_glyph_layout):
11083         [[[[2]]]] Use structured errors.
11084
11085         * dialog-msw.c:
11086         * dialog-msw.c (mswindows_is_dialog_msg):
11087         * dialog-msw.c (mark_mswindows_dialog_id):
11088         * dialog-msw.c (dialog_proc):
11089         * dialog-msw.c (handle_question_dialog_box):
11090         * dialog-msw.c (syms_of_dialog_mswindows):
11091         Define new object to clean up marking; use it as a dialog identifier.
11092         Call new delete-dialog-box-hook.
11093
11094         * dialog-x.c (dbox_selection_callback):
11095         * dialog-x.c (dbox_descriptor_to_widget_value):
11096         * dialog-x.c (x_make_dialog_box_internal):
11097         Call new delete-dialog-box-hook.
11098         Return an id.
11099
11100         * dialog.c:
11101         * dialog.c (syms_of_dialog):
11102         * dialog.c (vars_of_dialog):
11103         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
11104
11105         * eval.c:
11106         * eval.c (signal_call_debugger):
11107         when noninteractive, output stack traces on the console instead
11108         of in a (never-seen) buffer.
11109
11110         * eval.c (signal_type_error):
11111         * eval.c (invalid_argument_2):
11112         * lisp.h:
11113         new funs for use w/structured errors.
11114
11115         * event-Xt.c:
11116         * event-Xt.c (x_to_emacs_keysym):
11117         * event-Xt.c (describe_event):
11118         * event-Xt.c (emacs_Xt_event_handler):
11119         * event-Xt.c (vars_of_event_Xt):
11120         * event-msw.c:
11121         * event-msw.c (mswindows_wnd_proc):
11122         * event-msw.c (vars_of_event_mswindows):
11123         rename {x,mswindows}-debug-events to debug-{}-events for
11124         consistency with other debug-foo variables.
11125
11126         * event-stream.c:
11127         document next-event more clearly.
11128
11129         * fileio.c (Ffile_name_directory):
11130         * fileio.c (Ffile_name_nondirectory):
11131         * fileio.c (Funhandled_file_name_directory):
11132         * fileio.c (file_name_as_directory):
11133         * fileio.c (Ffile_name_as_directory):
11134         * fileio.c (directory_file_name):
11135         * fileio.c (Fdirectory_file_name):
11136         * fileio.c (Fmake_temp_name):
11137         * fileio.c (Ffile_truename):
11138         * fileio.c (Fsubstitute_in_file_name):
11139         * fileio.c (expand_and_dir_to_file):
11140         * fileio.c (barf_or_query_if_file_exists):
11141         * fileio.c (check_executable):
11142         * fileio.c (Ffile_exists_p):
11143         * fileio.c (Ffile_writable_p):
11144         * fileio.c (Ffile_directory_p):
11145         * fileio.c (Ffile_regular_p):
11146         * fileio.c (Ffile_modes):
11147         * fileio.c (Ffile_newer_than_file_p):
11148         * fileio.c (Fverify_visited_file_modtime):
11149         * fileio.c (Fset_visited_file_modtime):
11150         * fileio.c (auto_save_1):
11151         (1). (2).
11152         fix up gcpro's.
11153
11154         * frame-msw.c:
11155         * frame-msw.c (mswindows_init_frame_1):
11156         * frame-msw.c (mswindows_enable_frame):
11157         * frame-msw.c (error_frame_unsizable):
11158         * frame-msw.c (msprinter_init_frame_1):
11159         * frame-msw.c (msprinter_init_frame_3):
11160         * frame-msw.c (console_type_create_frame_mswindows):
11161         (2).
11162         implement new enable/disable frame methods.
11163
11164         * frame-x.c:
11165         * frame-x.c (x_enable_frame):
11166         * frame-x.c (console_type_create_frame_x):
11167         implement new enable/disable frame methods.
11168
11169         * frame.c:
11170         * frame.c (Fdisable_frame):
11171         * frame.c (syms_of_frame):
11172         * frame.h (struct frame):
11173         implement new enable/disable frame methods/functions.
11174
11175         * general-slots.h:
11176         add initial-focus.
11177
11178         * glyphs-msw.c (mswindows_widget_instantiate):
11179         comment that initial-focus should be implemented.
11180
11181         * glyphs-widget.c:
11182         * glyphs-widget.c (check_valid_instantiator):
11183         * glyphs-widget.c (check_valid_orientation):
11184         * glyphs-widget.c (check_valid_tab_orientation):
11185         * glyphs-widget.c (check_valid_justification):
11186         * glyphs-widget.c (check_valid_border):
11187         * glyphs-widget.c (check_valid_callback):
11188         * glyphs-widget.c (check_valid_int_or_function):
11189         * glyphs-widget.c (check_valid_string_or_vector):
11190         * glyphs-widget.c (check_valid_item_list_1):
11191         * glyphs-widget.c (widget_validate):
11192         * glyphs-widget.c (combo_box_validate):
11193         * glyphs-widget.c (widget_instantiate):
11194         * glyphs-widget.c (syms_of_glyphs_widget):
11195         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11196         * glyphs-widget.c (image_instantiator_combo_box):
11197         * glyphs-widget.c (image_instantiator_scrollbar):
11198         * glyphs-widget.c (image_instantiator_tab_control):
11199         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11200         (2).
11201         support (unimplemented) keyword initial-focus.
11202         reindent long macros.
11203
11204         * glyphs-x.c (x_redisplay_widget):
11205         * glyphs-x.c (x_button_instantiate):
11206         * glyphs-x.c (x_button_redisplay):
11207         * glyphs-x.c (x_progress_gauge_instantiate):
11208         * glyphs-x.c (x_edit_field_instantiate):
11209         * glyphs-x.c (x_combo_box_instantiate):
11210         * glyphs-x.c (x_tab_control_instantiate):
11211         * glyphs-x.c (x_label_instantiate):
11212         * gui-x.c:
11213         * gui-x.c (button_item_to_widget_value):
11214         * gui-x.c (gui_items_to_widget_values_1):
11215         * gui-x.c (gui_item_children_to_widget_values):
11216         * gui-x.c (gui_items_to_widget_values):
11217         * gui-x.h:
11218         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11219         add new flag to gui-parsing routines to indicate whether
11220         accelerator specs should be supported.
11221
11222         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11223
11224         * glyphs.h (struct Lisp_Image_Instance):
11225         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11226         add initial-focus flag.
11227
11228         * gui.c:
11229         * gui.c (syms_of_gui):
11230         * gui.c (vars_of_gui):
11231         clean up menu-no-selection-hook.
11232
11233         * gui.h:
11234         support delete-dialog-box-hook.
11235
11236         * lread.c (Fload_internal):
11237         * lread.c (locate_file_in_directory_mapper):
11238         (1).
11239
11240         * lrecord.h:
11241         * lrecord.h (struct toolbar_button):
11242         * lrecord.h (syms_of_toolbar):
11243         document how to create a new object.
11244
11245         * menubar-msw.c (mswindows_char_is_accelerator):
11246         may be called on frames w/o menus.
11247
11248         * menubar.c (vars_of_menubar):
11249         clean up :filter docs.
11250
11251         * nt.c (readdir):
11252         * ntproc.c:
11253         (1).
11254
11255         * process-nt.c:
11256         * process-nt.c (validate_signal_number):
11257         * process-nt.c (signal_cannot_launch):
11258         * process-nt.c (nt_create_process):
11259         * process-nt.c (nt_send_process):
11260         * process-nt.c (nt_kill_child_process):
11261         * process-nt.c (nt_open_network_stream):
11262         * process-nt.c (syms_of_process_nt):
11263         (2).
11264         delete quote-handling.  call new lisp code that does it better.
11265
11266         * process-unix.c (connect_to_file_descriptor):
11267         * process-unix.c (allocate_pty):
11268         * process-unix.c (unix_send_process):
11269         * process-unix.c (unix_kill_child_process):
11270         * process-unix.c (unix_open_network_stream):
11271         * process-unix.c (unix_open_multicast_group):
11272         (1). (2).
11273
11274         * process.c:
11275         * process.c (Fstart_process_internal):
11276         (2).  need to canonicalize process path even if absolute.
11277
11278         * select-msw.c (symbol_to_ms_cf):
11279         * select-msw.c (ms_cf_to_symbol):
11280         * select-msw.c (cf_is_autofreed):
11281         * select-msw.c (mswindows_destroy_selection):
11282         * select.c:
11283         * select.c (syms_of_select):
11284         * select.h:
11285         support dibv5, fix bugs. (from Mike Alexander)
11286
11287         * select.c (Fget_selection_internal):
11288         * select.c (select_convert_out):
11289
11290         * sysdep.c:
11291         * sysdep.c (xemacs_stat):
11292         renamed.
11293
11294         * sysdep.c (mkdir):
11295         * sysdep.c (rmdir):
11296         but keep original stat() here because we provide encapsulation
11297         around these funs.
11298
11299         * sysfile.h:
11300         * sysfile.h (fstat):
11301         remove stat garbage.
11302
11303         * syswindows.h:
11304         fix X/MSW conflict.
11305         don't include tchar.h.  it's inappropriate because it makes
11306         compile-time distinctions when we want runtime distinctions.
11307         (we provide our own tchar replacements)
11308
11309         * toolbar.c:
11310         use default object printer for toolbar-button.
11311
11312         * unexcw.c:
11313         make sure we don't encapsulate.
11314
11315         * window.c (vars_of_window):
11316         emphasize that temp-buffer-show-hook is obsolete.
11317
11318 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11319
11320         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11321         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11322
11323         * events.c (Fevent_timestamp_lessp):
11324         Not 64-bit clean.  Use EMACS_INT, not int.
11325
11326 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11327
11328         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11329         unsigned int and changed the last enum to
11330         lrecord_type_last_built_in_type.
11331         (lrecord_implementations_table): changed prototype to know how
11332         long the array is supposed to be.
11333         (lrecord_type_count): new unsigned int to keep track of the
11334         current number of lisp lrecord types.
11335         (DEFINE_EXTERNAL_LRECORD):
11336         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11337         dynamic-modules to declare new lisp types. They are the same
11338         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11339         int for each new type, and increment lrecord_type_count by 1.
11340
11341         * alloc.c (lrecord_implementations_table): Changed to reference
11342         lrecord_type_last_built_in_type for the size of the array.
11343         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11344
11345 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11346
11347         * glyphs.h (check_valid_item_list): Renamed from
11348         check_valid_item_list_1.
11349
11350 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11351
11352         * select.c (Qselect_coerce): New.
11353         * select.c (Vselection_coercion_alist): New.
11354         * select.c (syms_of_select): Declare.
11355         * select.c (get-selection-internal): Use it.
11356         Use the new select-coerce functionality.
11357
11358         * select.c (select_coerce): New.
11359         * select.h (select_coerce): Declare.
11360         New function to coerce one type of data into another.
11361
11362 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11363
11364         * callproc.c (Fcall_process_internal):
11365         (Fcall_process_internal):
11366         * process-unix.c (unix_create_process):
11367         Save and restore the value of errno, so that error messages are accurate.
11368
11369 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11370
11371         * elhash.c (print_hash_table):
11372         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11373         Prettify docstrings and indentation.
11374
11375 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11376
11377         * window.c (Fwindow_pixel_edges): Subtract frame border and
11378         gutter size.
11379
11380 2000-07-31  Andy Piper  <andy@xemacs.org>
11381
11382         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11383         will acknowledge the change.
11384
11385         * glyphs.h: declare tab_control_order_only_changed.
11386
11387         * glyphs-x.c (x_tab_control_redisplay): use
11388         tab_control_order_only_changed.
11389
11390         * glyphs-widget.c (tab_control_order_only_changed): new function.
11391
11392         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11393         tab_control_order_only_changed.
11394
11395         * gui.c (gui_item_equal_sans_selected): new function.
11396         (gui_item_equal): use it.
11397
11398         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11399         :properties in favor of :items..
11400
11401         * glyphs-widget.c (check_valid_item_list): rename from
11402         check_valid_item_list_1.
11403         (check_valid_item_list_1): renamed.
11404         (combo_box_validate): deprecate :properties in favor of :items.
11405         (widget_instantiate): ditto.
11406         (tab_control_update): ditto.
11407         (image_instantiator_combo_box): ditto.
11408         (image_instantiator_tree_view): ditto.
11409         (image_instantiator_tab_control): ditto.
11410         (layout_post_instantiate): remove dead code.
11411
11412         * print.c (debug_print_no_newline): only write to debugger if in
11413         WIN32_NATIVE.
11414
11415         * elhash.c (Fmake_hash_table): update doc string.
11416
11417         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11418         messages whilst in GC. This at least stops XEmacs crashing but has
11419         the potential for wierd behaviour.
11420
11421 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11422
11423         * config.h.in:
11424         Make existence of s&m files optional.
11425
11426         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11427         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11428         * s/gnu.h: Remove HAVE_GETLOADAVG.
11429         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11430         * s/sol2.h: Remove HAVE_GETLOADAVG.
11431         * lisp.h: Remove getloadavg() declaration.
11432         * fns.c:
11433         Include <sys/loadavg.h> if available.
11434         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11435         * config.h.in:  Group together getloadavg()-related macros.
11436         Use only configure-time tests to detect getloadavg().
11437
11438 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11439
11440         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11441
11442 2000-07-25  Andy Piper  <andy@xemacs.org>
11443
11444         * syswindows.h: add tchar.h for native builds.
11445
11446         * frame.c (syms_of_frame): remove set-glyph-image.
11447
11448         * general-slots.h: add Qset_glyph_image.
11449
11450         * glyphs-widget.c (layout_update): add domain arg to
11451         set-glyph-image.
11452         (syms_of_glyphs_widget): remove set-glyph-image.
11453
11454 2000-07-23  Ben Wing  <ben@xemacs.org>
11455
11456         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11457         Vpopup_frame_list.
11458
11459 2000-07-22  Andy Piper  <andy@xemacs.org>
11460
11461         * symsinit.h: add syms_of_win32().
11462
11463         * gui-msw.c (syms_of_gui_mswindows): remove
11464         Fmswindows_shell_execute.
11465         (Fmswindows_shell_execute): moved to win32.c.
11466
11467         * emacs.c (main_1): add syms_of_win32 ().
11468
11469         * win32.c (init_potentially_nonexistent_functions): rewrite in
11470         compiler-friendly terms.
11471         (Fmswindows_shell_execute): move here from gui-msw.c.
11472         (syms_of_win32): new.
11473
11474         * device-msw.c (Fmswindows_printer_list): clean up args to
11475         EnumPrinters.
11476         Don't include tchar under cygwin or mingw.
11477         (msprinter_default_printer): make cygwin-friendly.
11478
11479 2000-07-21  Andy Piper  <andy@xemacs.org>
11480
11481         * glyphs-widget.c (image_instantiator_tree_view): use tab
11482         control's update function.
11483         (layout_property): new function. Retrieve items.
11484
11485         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11486         function. Re-populate the tree view from the pending items.
11487
11488         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11489         is designated the parent if the domain is an image instance. This
11490         is needed so that dirtiness can be cascade up the hierarchy and
11491         thus for layout children to be redisplayed correctly.
11492         (allocate_image_instance): rename glyph -> parent.
11493
11494         * redisplay.h: change redisplay_output_layout signature.
11495
11496         * redisplay-msw.c (mswindows_output_display_block): use domain
11497         arg.
11498
11499         * redisplay-x.c (x_output_display_block): use domain arg.
11500
11501 2000-07-10  Andy Piper  <andy@xemacs.org>
11502
11503         * window.c (Fset_window_configuration): add comment.
11504
11505         * redisplay-output.c (compare_runes):
11506         (redisplay_output_subwindow): redisplay rather than update subwindow.
11507         (redisplay_output_layout): ditto.
11508
11509         * redisplay-msw.c (mswindows_frame_output_end):
11510         (mswindows_frame_output_end): make defer window pos optional.
11511
11512         * lisp.h: add Flast.
11513
11514         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11515         normalize method. Change update method to be for changed
11516         instantiators. Add redisplay method. Change signature of layout
11517         method.
11518         (struct Lisp_Image_Instance): add instantiator.
11519         (IMAGE_INSTANCE_INSTANTIATOR): new.
11520         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11521         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11522         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11523
11524         * glyphs.c:
11525         (find_instantiator_differences): new function.
11526         (Fset_instantiator_property): new convenience function.
11527         (check_image_instance_structure): strictly check for vector
11528         instantiators.
11529         (normalize_image_instantiator): make non-static.
11530         (instantiate_image_instantiator): pass on dest_mask and use new
11531         signatures for image_instance_layout and friends.
11532         (mark_image_instance): mark the instantiator. Mark the subwindow
11533         face not the widget face.
11534         (image_instance_equal): add instantiator.
11535         (image_instance_hash): ditto.
11536         (allocate_image_instance): ditto.
11537         (Fset_image_instance_property): removed.
11538         (Fimage_instance_file_name): ditto.
11539         (Fcolorize_image_instance): ditto.
11540         (image_instance_layout): add offsets to be set.
11541         (update_image_instance): new function. update an image instance
11542         from its changed instantiator.
11543         (inherit_normalize): add dest_mask.
11544         (xbm_normalize): ditto.
11545         (xface_normalize): ditto.
11546         (xpm_normalize): ditto.
11547         (text_update): set_property -> update.
11548         (image_instantiate): use the glyph identity as a hash key, not the
11549         instantiator.
11550         (glyph_width): use new image_instance_layout signature.
11551         (glyph_ascent): ditto.
11552         (glyph_descent): ditto.
11553         (glyph_height): ditto.
11554         (glyph_query_geometry): ressurrect.
11555         (glyph_layout): ditto.
11556         (redisplay_subwindow): update -> redisplay.
11557         (syms_of_glyphs): add Fset_instantiator_property.
11558         (image_instantiator_format_create): set_property -> update.
11559
11560         * glyphs-x.c:
11561         (autodetect_normalize): add dest_maks to signature.
11562         (x_redisplay_subwindow): update -> redisplay.
11563         (x_redisplay_widget): ditto.
11564         (x_button_redisplay): ditto.
11565         (x_progress_gauge_redisplay): ditto.
11566         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11567         stacking order.
11568         (console_type_create_glyphs_x): update -> redisplay.
11569         (image_instantiator_format_create_glyphs_x): ditto.
11570
11571         * glyphs-widget.c:
11572         (check_valid_instantiator): disallow glyphs in the instantiator,
11573         they must now be vectors.
11574         (check_valid_instantiator_list): ditto.
11575         (glyph_instantiator_to_glyph): use internal symbol rather than
11576         intern.
11577         (widget_update): renamed from widget_set_property. Call cascaded
11578         update methods.
11579         (redisplay_widget): renamed from update_widget.
11580         (widget_layout): image_instance_layout now takes position as well
11581         as size.
11582         (widget_normalize): ditto.
11583         (widget_instantiate): ditto.
11584         (tab_control_query_geometry) ditto.:
11585         (tab_control_update): renamed from tab_control_set_property.
11586         (progress_gauge_update): set_property -> update.
11587         (layout_normalize): rewrite so that child instantiators are
11588         normalized also.
11589         (layout_update): new function. Create glyphs from the normalized
11590         children and cope with any other layout keywords. We do not
11591         instantiate children here that will be take care of by
11592         redisplay_output_layout.
11593         (layout_instantiate): call layout_update and not much else.
11594         (layout_post_instantiate): not sure whether this is needed
11595         anymore.
11596         (layout_query_geometry): query glyph geometry rather than
11597         image_instance geometry.
11598         (layout_layout): set offsets from pass in parameters. Use glyph
11599         geometry and layout functions rather than image instance ones.
11600         (native_layout_layout): ditto.
11601         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11602         (image_instantiator_widget): set_property -> update.
11603         (image_instantiator_buttons): ditto.
11604         (image_instantiator_progress_guage): ditto.
11605         (image_instantiator_tab_control): ditto.
11606         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11607         (image_instantiator_layout): add update method.
11608
11609         * glyphs-msw.c (bmp_normalize):
11610         (mswindows_resource_normalize): add dest_mask so that it can be
11611         proprogated by layout_normalize.
11612         (begin_defer_window_pos): make optional because it may not be the
11613         right thing to do and it introduces differences with X.
11614         (mswindows_unmap_subwindow): ditto.
11615         (mswindows_map_subwindow): ditto.
11616         (mswindows_redisplay_subwindow): renamed from
11617         mswindows_update_subwindow.
11618         (mswindows_redisplay_widget): ditto.
11619         (mswindows_button_redisplay): renamed from
11620         mswindows_button_update. Update is now what the instantiation
11621         function does for a changed instantiator.
11622         (mswindows_progress_gauge_instantiate): set the progress value
11623         here if appropriate.
11624         (mswindows_tab_control_redisplay): cope with re-ordering of the
11625         members of the tab widget by simply selecting the new top
11626         widget. This makes things appear ok if you click on a tab.
11627         (mswindows_combo_box_instantiate): image_instance_layout now takes
11628         position as well as size.
11629         (mswindows_progress_gauge_redisplay): renamed from
11630         mswindows_progress_gauge_update.
11631         (console_type_create_glyphs_mswindows): fix update -> redisplay.
11632         (image_instantiator_format_create_glyphs_mswindows): ditto.
11633
11634         * glyphs-eimage.c (jpeg_normalize):
11635         (gif_normalize):
11636         (png_normalize):
11637         (tiff_normalize): add dest_mask so that it can be proprogated by
11638         layout_normalize.
11639
11640         * elhash.c:
11641         (print_hash_table):
11642         (hash_table_weakness_validate):
11643         (decode_hash_table_weakness):
11644         (Fhash_table_weakness):
11645         (Fhash_table_type):
11646         (syms_of_elhash): use Ben's naming scheme for hashtable types..
11647
11648         * console.h (struct console_methods): move update_* to
11649         redisplay_*.
11650
11651 2000-07-20  Ben Wing  <ben@xemacs.org>
11652
11653         * *.[ch] (XSETOBJ): remove unused middle argument.
11654         lisp-disunion.h: correct wrap_object() to one argument.
11655
11656 2000-07-15  Ben Wing  <ben@xemacs.org>
11657
11658         * s/cygwin32.h:
11659         * s/cygwin32.h (CYGWIN_CONV_PATH):
11660         Add missing logb prototype for v1.1.
11661         Use post-b20 names and alias to pre-b20 names when pre-b20.
11662
11663         * s/windowsnt.h: [5].
11664
11665 2000-07-15  Ben Wing  <ben@xemacs.org>
11666
11667         * Makefile.in.in (x_objs):
11668         * Makefile.in.in (sheap_objs):
11669         * Makefile.in.in (objs):
11670         added win32.o, cosmetic cleanups.
11671
11672         * alloc.c (Fmake_byte_code):
11673         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
11674         etc. macros which declare their own args now.
11675
11676         * alloc.c (syms_of_alloc):
11677         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
11678
11679         * buffer.c:
11680         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
11681
11682         * buffer.c (Fget_file_buffer):
11683         Fixed GCPRO problem.
11684
11685         * buffer.c (get_truename_buffer):
11686         Fixed comment about GC checking.
11687
11688         * buffer.c (syms_of_buffer):
11689         Undeclared those dedicated frame funs.
11690         [2].
11691
11692         * buffer.h:
11693         Define convenience macros for internal/external conversions.
11694         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
11695         and Qenvironment_variable_encoding for cleaner code.
11696
11697         * bufslots.h:
11698         Remove dedicated-frame; in lisp.
11699
11700         * bytecode.c (funcall_compiled_function):
11701         [1].
11702
11703         * bytecode.c (syms_of_bytecode):
11704         [2].
11705
11706         * console-msw.c:
11707         * console-msw.c (mswindows_show_console): Rewrote.
11708
11709         * console-msw.c (Fmswindows_debugging_output): New.
11710         Sends to OutputDebugString (special MSWin debugger interface).
11711
11712         * console-msw.c (Fmswindows_message_box):
11713         Fixed stupid bugs so it works when called from kill-emacs.
11714
11715         * console-msw.c (syms_of_console_mswindows):
11716         Declare Fmswindows_debugging_output.
11717
11718         * console-msw.h:
11719         New MSWin prototypes.
11720
11721         * console-msw.h (struct mswindows_frame):
11722         New entry last-click-mods for improved button-modifier support.
11723
11724         * console-msw.h (FRAME_MSWINDOWS_POPUP):
11725         New struct entry `popup' with corresponding accessor.
11726
11727         * console-x.c:
11728         * console-x.c (split_up_display_spec):
11729         * console-x.c (get_display_arg_connection):
11730         * console-x.c (x_semi_canonicalize_console_connection):
11731         * console-x.c (x_canonicalize_device_connection):
11732         [[[6]]]: Change char to more specific type.
11733         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
11734
11735         * console-x.c (x_semi_canonicalize_console_connection):
11736         * console-x.c (x_canonicalize_device_connection):
11737         [[[9]]]: Fix up error signalling to use new structured error system.
11738
11739         * console-x.h:
11740         [[[4]]]: Define codesys aliases:
11741         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
11742         Qx_color_name_encoding, Qx_display_name_encoding.
11743
11744         * console.h (struct console_methods):
11745         New method make_dialog_box_internal supersedes older
11746         popup_dialog_box method.
11747
11748         * data.c:
11749         Define many new errors, part of new structured errors.
11750
11751         * data.c (init_errors_once_early):
11752         * data.c (syms_of_data):
11753         [2].
11754
11755         * device-msw.c (mswindows_init_device):
11756         [[[5]]]: Cleanup to support NT 3.51.
11757
11758         * device-msw.c (decode_devmode): Cleanup.
11759
11760         * device-msw.c (mswindows_handle_print_setup_dialog_box):
11761         * device-msw.c (mswindows_handle_print_dialog_box):
11762         * device-msw.c (mswindows_handle_page_setup_dialog_box):
11763         * device-msw.c (syms_of_device_mswindows):
11764         Delete the dialog box primitives recently introduced by Kirill and
11765         instead interface to general dialog box interface.
11766
11767         * device-x.c:
11768         * device-x.c (compute_x_app_name):
11769         * device-x.c (x_init_device):
11770         * device-x.c (Fx_valid_keysym_name_p):
11771         * device-x.c (Fx_set_font_path):
11772         [6].
11773         [7].
11774
11775         * device.h (wrap_device): New.
11776         First of its kind; meant to replace XSETDEVICE.
11777
11778         * dialog-msw.c: Many file-dialog symbols.
11779
11780         * dialog-msw.c (mswindows_register_popup_frame): New.
11781         * dialog-msw.c (mswindows_is_dialog_msg): New.
11782         For supporting kbd traversal in dialog boxes.
11783
11784         * dialog-msw.c (dialog_proc):
11785         Support hitting ESC in dialogs.
11786
11787         * dialog-msw.c (struct):
11788         Common dialog box errors.
11789
11790         * dialog-msw.c (handle_file_dialog_box): New.
11791         Add file dialog code.
11792
11793         * dialog-msw.c (handle_question_dialog_box):
11794         Redo existing code to support new question dialog syntax.
11795
11796         * dialog-msw.c (console_type_create_dialog_mswindows):
11797         We support new dialog console method.
11798
11799         * dialog-msw.c (syms_of_dialog_mswindows):
11800         * dialog-msw.c (vars_of_dialog_mswindows):
11801         New file dialog symbols, vars.
11802
11803         * dialog-x.c:
11804         * dialog-x.c (maybe_run_dbox_text_callback):
11805         * dialog-x.c (dbox_descriptor_to_widget_value):
11806         * dialog-x.c (x_make_dialog_box_internal):
11807         * dialog-x.c (console_type_create_dialog_x):
11808         Mule-ize entire file.
11809         Redo to support question dialog syntax.
11810         [6].
11811
11812         * dialog.c:
11813         * dialog.c (Fmake_dialog_box_internal):
11814         * dialog.c (syms_of_dialog):
11815         Kill old popup-dialog-box, replace with new primitive.
11816         Just call device method or signal error.
11817
11818         * eldap.c (Fldap_open):
11819         * eldap.c (Fldap_search_basic):
11820         * eldap.c (Fldap_add):
11821         * eldap.c (Fldap_modify):
11822         [1].
11823         [7].
11824
11825         * emacs.c:
11826         * emacs.c (make_arg_list_1):
11827         * emacs.c (make_arg_list):
11828         Mule-ize call to dll_init().
11829         [6].
11830         [8].
11831
11832         * emacs.c (make_argc_argv):
11833         * emacs.c (free_argc_argv):
11834         * emacs.c (init_cmdargs):
11835         * emacs.c (main_1):
11836         * emacs.c (Fkill_emacs):
11837         * emacs.c (Fdump_emacs):
11838         Update comments about what can be used in syms_* etc.
11839         Call init_win32() when necessary.
11840         Fix up MS Win dialog box in kill-buffer to actually work right.
11841         [7].
11842
11843         * eval.c:
11844         * eval.c (For):
11845         * eval.c (Fand):
11846         * eval.c (Fprogn):
11847         * eval.c (Fprog1):
11848         * eval.c (Fprog2):
11849         * eval.c (FletX):
11850         * eval.c (Flet):
11851         * eval.c (condition_case_3):
11852         * eval.c (Feval):
11853         * eval.c (function_argcount):
11854         * eval.c (funcall_lambda):
11855         [1].
11856
11857         * eval.c (type_error): New.
11858         * eval.c (maybe_type_error): New.
11859         * eval.c (continuable_type_error): New.
11860         * eval.c (maybe_continuable_type_error): New.
11861         * eval.c (type_error_with_frob): New.
11862         * eval.c (maybe_type_error_with_frob): New.
11863         * eval.c (continuable_type_error_with_frob): New.
11864         * eval.c (maybe_continuable_type_error_with_frob): New.
11865         New functions for use with structured errors.
11866
11867         * event-Xt.c:
11868         * event-Xt.c (x_event_to_emacs_event):
11869         Buttons are now modifiers too.
11870
11871         * event-Xt.c (emacs_Xt_current_event_timestamp):
11872         Implement new event method.
11873         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
11874
11875         * event-msw.c:
11876         * event-msw.c (ntpipe_shove_writer): [5].
11877         * event-msw.c (mswindows_enqueue_mouse_button_event):
11878         * event-msw.c (mswindows_drain_windows_queue):
11879         * event-msw.c (mswindows_wnd_proc): [7].
11880         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
11881         * event-msw.c (mswindows_modifier_state):
11882         Throughout: support new button modifiers.
11883
11884         * event-msw.c (emacs_mswindows_current_event_timestamp):
11885         Implement new event method.
11886         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
11887
11888         * event-stream.c:
11889         * event-stream.c (event_stream_current_event_timestamp): New.
11890         * event-stream.c (maybe_kbd_translate): New functionality.
11891         * event-stream.c (vars_of_event_stream):
11892         Document new kbd-translate-table functionality.
11893
11894         * event-stream.c (Fcurrent_event_timestamp): New.
11895         New primitive for use in fabricated events.
11896         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
11897
11898         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
11899
11900         * events.c:
11901         * events.c (Fmake_event):
11902         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
11903         [1].
11904         [9].
11905
11906         * events.c (format_event_object): fix gcc warnings.
11907
11908         * events.c (Fevent_timestamp): Document new primitives.
11909
11910         * events.c (TIMESTAMP_HALFSPACE): New.
11911
11912         * events.c (Fevent_timestamp_lessp): New.  New primitive for
11913         comparing timestamps correctly (half-space algorithm).
11914
11915         * events.c (Fevent_modifier_bits): Doc fix.
11916
11917         * events.c (Fevent_modifiers): Major doc addition.
11918         * events.c (event_x_y_pixel_internal): Typo fix.
11919         * events.c (syms_of_events): Declare new primitives.
11920
11921         * events.h:
11922         Update long comment for button modifiers, timestamps.
11923
11924         * events.h (struct event_stream):
11925         New current_event_timestamp method.
11926
11927         * extents.c:
11928         * extents.c (extent_in_region_p):
11929         * extents.c (decode_extent):
11930         * extents.c (Fset_extent_parent):
11931         * extents.c (decode_map_extents_flags):
11932         Fix gcc warnings.
11933         [9].
11934
11935         * extents.c (struct extent_at_arg):
11936         * extents.c (decode_extent_at_flag):
11937         * extents.c (extent_at_mapper):
11938         * extents.c (extent_at_bytind):
11939         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
11940         * extents.c (Fextents_at): New primitive. [9].
11941         * extents.c (symbol_to_glyph_layout): [9].
11942         Support new primitive `extents-at'.
11943
11944
11945         * extents.c (get_text_property_bytind):
11946         extent_at_bytind has another arg.
11947         [9].
11948
11949         * extents.c (syms_of_extents): New primitive.
11950
11951         * file-coding.c (Fmake_coding_system): [1].
11952         * file-coding.c (subsidiary_coding_system): fix gcc warning
11953         * file-coding.c (syms_of_file_coding): [2].
11954
11955         * fileio.c (Fexpand_file_name):
11956         * fileio.c (Fsysnetunam):
11957         * fileio.c (Ffile_exists_p):
11958         * fileio.c (Ffile_executable_p):
11959         * fileio.c (Fverify_visited_file_modtime):
11960         Clean up GCPROing.
11961
11962         * fileio.c (syms_of_fileio): [2].
11963
11964         * filelock.c (lock_file_1):
11965         * filelock.c (current_lock_owner):
11966         * filelock.c (lock_if_free):
11967         * filelock.c (lock_file):
11968         * filelock.c (unlock_file):
11969         Clean up GCPROing.
11970
11971         * fns.c (concat): Fix gcc warning.
11972
11973         * fns.c (Fmember):
11974         * fns.c (Fold_member):
11975         * fns.c (Fmemq):
11976         * fns.c (Fold_memq):
11977         * fns.c (memq_no_quit):
11978         * fns.c (Fassoc):
11979         * fns.c (Fold_assoc):
11980         * fns.c (Fassq):
11981         * fns.c (Fold_assq):
11982         * fns.c (assq_no_quit):
11983         * fns.c (Frassoc):
11984         * fns.c (Fold_rassoc):
11985         * fns.c (Frassq):
11986         * fns.c (Fold_rassq):
11987         * fns.c (rassq_no_quit):
11988         * fns.c (Fdelete):
11989         * fns.c (Fold_delete):
11990         * fns.c (Fdelq):
11991         * fns.c (Fold_delq):
11992         * fns.c (delq_no_quit):
11993         * fns.c (Fremassoc):
11994         * fns.c (Fremassq):
11995         * fns.c (remassq_no_quit):
11996         * fns.c (Fremrassoc):
11997         * fns.c (Fremrassq):
11998         * fns.c (remrassq_no_quit):
11999         * fns.c (Freverse):
12000         * fns.c (mapcar1):
12001         [1].
12002
12003         * frame-msw.c (mswindows_init_frame_1):
12004         * frame-msw.c (mswindows_delete_frame):
12005         Register popups with dialog code so keyboard traversing works.
12006
12007         * frame-tty.c (tty_raise_frame_no_select): [1].
12008
12009         * frame-x.c:
12010         * frame-x.c (x_set_frame_text_value):
12011         * frame-x.c (x_set_frame_properties):
12012         * frame-x.c (x_create_widgets):
12013         [7].
12014
12015         * frame.c:
12016         * frame.c (Fmouse_pixel_position): Minor doc fixes.
12017
12018         * frame.h (wrap_frame): New.
12019         Macro like wrap_device.
12020
12021         * general.c:
12022         * general.c (SYMBOL):
12023         * general.c (syms_of_general):
12024         Major reorg.  This is now just a wrapper and symbols themselves
12025         are listed in general-slots.h.
12026
12027         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
12028         * glyphs-msw.c (mswindows_resource_instantiate): [5].
12029
12030         * glyphs-msw.c (mswindows_native_layout_instantiate):
12031         Add DS_CONTROL so keyboard traversal will work.
12032
12033         * glyphs-widget.c:
12034         * glyphs-widget.c (syms_of_glyphs_widget):
12035         Move some symbols to general-slots.h.
12036
12037         * glyphs-x.c:
12038         * glyphs-x.c (xbm_instantiate_1):
12039         * glyphs-x.c (x_xbm_instantiate):
12040         * glyphs-x.c (x_xface_instantiate):
12041         * glyphs-x.c (autodetect_instantiate):
12042         * glyphs-x.c (cursor_font_instantiate):
12043         * glyphs-x.c (x_update_widget):
12044         * glyphs-x.c (x_widget_instantiate):
12045         * glyphs.c (bitmap_to_lisp_data):
12046         * glyphs.c (pixmap_to_lisp_data):
12047         [7].
12048
12049         * glyphs.c (syms_of_glyphs):
12050         [2].
12051
12052         * gui-x.c:
12053         * gui-x.c (print_widget_value):
12054         * gui-x.c (menu_separator_style_and_to_external):
12055         * gui-x.c (add_accel_and_to_external):
12056         * gui-x.c (button_item_to_widget_value):
12057         * gui-x.c (gui_items_to_widget_values_1):
12058         * gui-x.c (gui_items_to_widget_values):
12059         * gui-x.c (syms_of_gui_x):
12060         * gui-x.c (vars_of_gui_x):
12061         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
12062         [9].
12063
12064         * gui-x.h:
12065         Muleize, prototype changes matching gui-x.c.
12066
12067         * gui.c:
12068         * gui.c (separator_string_p):
12069         * gui.c (gui_item_add_keyval_pair):
12070         * gui.c (make_gui_item_from_keywords_internal):
12071         * gui.c (signal_too_long_error):
12072         * gui.c (parse_gui_item_tree_item):
12073         * gui.c (syms_of_gui):
12074         * gui.c (vars_of_gui):
12075         * gui.h:
12076         menu-no-selection-hook moved here (used by MSWin).
12077         Move some symbols to general-slots.h.
12078         [6].
12079         [9].
12080
12081         * insdel.c (get_buffer_pos_char):
12082         * insdel.c (get_buffer_range_char):
12083         Add GC comments.
12084
12085         * keymap.c (keymap_lookup_directly):
12086         * keymap.c (keymap_store):
12087         * keymap.c (ensure_meta_prefix_char_keymapp):
12088         * keymap.c (describe_map):
12089         * keymap.h:
12090         Support new button modifiers.
12091
12092         * lisp-disunion.h (wrap_object):
12093         * lisp-disunion.h (XSETOBJ):
12094         Rename make_obj to wrap_object.
12095
12096         * lisp-union.h:
12097         * lisp-union.h (make_int):
12098         * lisp-union.h (make_char):
12099         Support wrap_object.
12100
12101         * lisp.h:
12102         * lisp.h (LIST_LOOP):
12103         * lisp.h (EXTERNAL_LIST_LOOP):
12104         * lisp.h (LIST_LOOP_2):
12105         * lisp.h (EXTERNAL_LIST_LOOP_1):
12106         * lisp.h (EXTERNAL_LIST_LOOP_2):
12107         * lisp.h (EXTERNAL_LIST_LOOP_3):
12108         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
12109         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
12110         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
12111         * lisp.h (EXTERNAL_ALIST_LOOP_5):
12112         * lisp.h (EXTERNAL_ALIST_LOOP_6):
12113         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
12114         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
12115         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
12116         * lisp.h (struct Lisp_Symbol):
12117         * lisp.h (maybe_continuable_error_with_frob):
12118         Fix up section comments.
12119         Add new types for char to indicate usage.
12120         Delete symbols auto-generated from general-slots.h.
12121         Add prototypes for structured error functions.
12122         Add long comments describing looping macros and change interface
12123         so that lvalues are automatically declared.
12124         Add NO_DECLARE macro in case callers want to declare lvalues
12125         themselves.
12126
12127         * lread.c (read_syntax_error):
12128         * lread.c (continuable_read_syntax_error):
12129         * lread.c (read_structure):
12130         * lread.c (sequence_reader):
12131         * lread.c (read_list_conser):
12132         * lread.c (read_compiled_function):
12133         Rename syntax_error and continuable_syntax_error to avoid clash
12134         with same-named structured error functions.
12135
12136         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12137         * menubar-msw.c (populate_menu_add_item):
12138         * menubar-msw.c (populate_or_checksum_helper):
12139         [5].
12140         [9].
12141
12142         * menubar-x.c:
12143         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
12144         Mule-ize whole file.
12145
12146         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12147
12148         * mule-charset.c (Fmake_charset):
12149         * mule-wnnfns.c (Fwnn_set_param):
12150         [1].
12151
12152         * ntproc.c (create_child):
12153         * ntproc.c (Fwin32_set_current_locale):
12154         Add comments portending doom.
12155
12156         * objects-msw.c:
12157         * objects-msw.c (old_font_enum_callback_2):
12158         * objects-msw.c (font_enum_callback_1):
12159         * objects-msw.c (mswindows_enumerate_fonts):
12160         [5].
12161
12162         * objects-x.c:
12163         * objects-x.c (allocate_nearest_color):
12164         * objects-x.c (x_parse_nearest_color):
12165         * objects-x.c (x_initialize_color_instance):
12166         * objects-x.c (x_print_color_instance):
12167         * objects-x.c (x_finalize_color_instance):
12168         * objects-x.c (x_valid_color_name_p):
12169         * objects-x.c (x_initialize_font_instance):
12170         * objects-x.c (x_print_font_instance):
12171         * objects-x.c (valid_x_font_name_p):
12172         * objects-x.c (truename_via_FONT_prop):
12173         * objects-x.c (truename_via_random_props):
12174         * objects-x.c (truename_via_XListFonts):
12175         * objects-x.c (x_font_truename):
12176         * objects-x.c (x_font_instance_truename):
12177         * objects-x.c (x_font_instance_properties):
12178         * objects-x.c (x_list_fonts):
12179         * objects-x.c (x_find_charset_font):
12180         Mule-ize entire file.
12181         [7].
12182
12183         * objects-x.h:
12184         Mule-verify.
12185
12186         * print.c:
12187         * print.c (std_handle_out_external):
12188         * print.c (debug_print_no_newline):
12189         * print.c (syms_of_print):
12190         Output to all debugger kinds in debug-print.
12191         Fix console-output code under MSWin to actually work.
12192
12193         * process-nt.c (send_signal):
12194         * process-nt.c (nt_create_process):
12195         Use newer Unicode macros.
12196
12197         * process-unix.c (unix_create_process):
12198         * process-unix.c (unix_canonicalize_host_name):
12199         * process-unix.c (unix_open_network_stream):
12200         [7].
12201
12202         * scrollbar-x.c:
12203         Mule-verify.
12204
12205         * search.c (syms_of_search):
12206         [2].
12207
12208         * select-msw.c (mswindows_destroy_selection):
12209         Use LIST_LOOP_2.
12210
12211         * select-x.c (symbol_to_x_atom):
12212         [7].
12213
12214         * select.c (syms_of_select):
12215         [2].
12216
12217         * sound.c (Fplay_sound_file):
12218         [7].
12219
12220         * specifier.c:
12221         * specifier.c (decode_specifier_type):
12222         * specifier.c (Fvalid_specifier_locale_type_p):
12223         * specifier.c (check_valid_locale_or_locale_type):
12224         * specifier.c (decode_locale):
12225         * specifier.c (decode_locale_type):
12226         * specifier.c (decode_locale_list):
12227         * specifier.c (check_valid_domain):
12228         * specifier.c (decode_specifier_tag_set):
12229         * specifier.c (Fcanonicalize_tag_set):
12230         * specifier.c (Fdefine_specifier_tag):
12231         * specifier.c (Fspecifier_tag_predicate):
12232         * specifier.c (check_valid_inst_list):
12233         * specifier.c (check_valid_spec_list):
12234         * specifier.c (decode_how_to_add_specification):
12235         * specifier.c (check_modifiable_specifier):
12236         * specifier.c (specifier_add_spec):
12237         * specifier.c (boolean_validate):
12238         * specifier.c (display_table_validate):
12239         [9].
12240
12241         * specifier.c (syms_of_specifier):
12242         Move some symbols to general-slots.h.
12243         [2].
12244
12245         * symbols.c:
12246         * symbols.c (Fmapatoms):
12247         * symbols.c (Fapropos_internal):
12248         Add GCPROs.
12249
12250         * symbols.c (set_default_buffer_slot_variable):
12251         * symbols.c (set_default_console_slot_variable):
12252         [1].
12253
12254         * symbols.c (defsymbol_massage_name_1):
12255         * symbols.c (defkeyword_massage_name):
12256         * symbols.c (deferror_1):
12257         * symbols.c (deferror):
12258         * symbols.c (deferror_massage_name_and_message):
12259         * symeval.h:
12260         * symeval.h (DEFSYMBOL):
12261         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12262
12263         * symbols.c (syms_of_symbols):
12264         [2].
12265
12266         * symsinit.h:
12267         * symsinit.h (init_win32): New.
12268         Also new is syms_of_dialog_mswindows.
12269
12270         * syswindows.h:
12271         Add new Unicode macros, missing Cygwin wide-char functions,
12272         convenience conversion macros for Qmswindows_tstr, macros for
12273         encapsulating required MSWin <-> Cygwin filename conversions,
12274         prototype for dynamically-extracted (not in NT 3.51) functions.
12275
12276         * toolbar-x.c:
12277         Mule-verify.
12278
12279         * tooltalk.c (Fadd_tooltalk_message_arg):
12280         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12281         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12282         [7].
12283
12284         * tooltalk.c (syms_of_tooltalk):
12285         [2].
12286
12287         * unexnt.c:
12288         * unexnt.c (unexec):
12289         Fix up headers, declaration of unexec() to be more standard.
12290
12291 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12292
12293         * offix.h: Revert change to guard macros - they're used in offix.c!
12294
12295 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12296
12297         * lisp.h: Defsubred Fdelete.
12298
12299         * console-msw.h:  (msprinter_default_printer): Added.
12300
12301         * console-msw.c (msprinter_canonicalize_console_connection):
12302         (msprinter_canonicalize_device_connection): Added.
12303
12304         * device-msw.c (msprinter_default_printer):
12305         (Fmswingows_get_default_printer):
12306         (signal_enum_priner_error):
12307         (Fmswingows_printer_list): Added.
12308
12309 2000-07-19  Martin Buchholz <martin@xemacs.org>
12310
12311         * XEmacs 21.2.35 is released.
12312
12313 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12314
12315         * select-x.c (x_handle_selection_request):
12316         Text selected in xemacs and pasted into xterm failed to appear.
12317         Spelling fixes and cosmetic changes.
12318
12319 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12320
12321         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12322         XEmacs frame (fix for doubling chars in dialog boxes).
12323
12324 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12325
12326         * select.c (select_convert_in, select_convert_out):
12327         Don't call intern() every time.
12328
12329         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12330         * select.c (vars_of_select): Initialise them.
12331
12332 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12333
12334         * select.c (selection-coercible-types): New.
12335
12336         * select.c (own-selection-internal):
12337         * select.c (get-selection-internal):
12338         MULE bug fix - these should default to COMPOUND_TEXT and not
12339         STRING for MULE. I think.
12340
12341         * select.c (select_convert_out): Use selection-coercible-types
12342         to find types that we can attempt to perform coercions on.
12343
12344 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12345
12346         * mule-wnnfns.c:
12347         * mule-canna.c:
12348         Add coding: cookie to identify encoding.
12349
12350         * mule-canna.c (CANNA_mode_keys): make static.
12351         Use proper prototypes, even for functions of no arguments.
12352         Remove external prototype for Fding().
12353
12354         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12355
12356         * select.c (syms_of_select): Add missing DEFSUBR.
12357
12358 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12359
12360         * select.c (get_selection_internal, own_selection_internal):
12361         Make the type default to STRING, rather than placing a nil type
12362         into Vselection_alist.
12363
12364 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12365
12366         * gpmevent.c (tty_selection_exists_p):
12367         * gpmevent.c (tty_own_selection):
12368         Updated parameter lists.
12369
12370 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12371
12372         * select.h (selection-alist): Removed declaration.
12373
12374         * select.h (get_local_selection):
12375         * select.c (get_local_selection):
12376         Made static.
12377
12378         * select.h (convert_selection): Removed declaration.
12379         * select.c (convert_selection): Removed.
12380         This function belongs in Lisp.
12381
12382         * select.h (select_convert_in): Declare.
12383         * select.h (select_convert_out): Declare.
12384         * select.c (select_convert_in): New.
12385         * select.c (select_convert_out): New.
12386         New conversion functions for other files to call.
12387
12388         * select.h (select_notify_buffer_kill): Declare.
12389         * select.c (select_notify_buffer_kill): New.
12390         New functions that get called from kill-buffer.
12391
12392         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12393         X-specific lisp code.
12394
12395         * select.h: Declare some of the lisp-visible functions for
12396         external use.
12397
12398         * select.c (clean_local_selection_data): Removed. This was
12399         a disgusting function, and previously should have been in
12400         select-x.c in any case. The functionality is now provided
12401         in select-convert-from-integer (select.el).
12402
12403         * select.c (available-selection-types): Fixed stupidity where
12404         INTEGER and ATOM got added twice. Also add STRING when we see an
12405         extent.
12406
12407         * select.c (get-selection-internal): Removed symbol stripping. No
12408         longer causes conversion when data comes from the internal cache.
12409
12410         * select.c (syms_of_select): Added new functions.
12411
12412         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12413         error checking - previously this called abort!
12414
12415         * select-x.c (x_own_selection): Changed comment.
12416
12417         * select-x.c (x_handle_selection_request): Use select_convert_out.
12418         Don't mess with selection-alist; it's an internal variable of select.c.
12419
12420         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12421
12422         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12423         rather than messing with selection-alist.
12424
12425         * select-msw.c (mswindows_get_foreign_selection):
12426         Use TO_INTERNAL_FORMAT rather than hacking.
12427
12428 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12429
12430         * process-unix.c (unix_open_multicast_group):
12431         (unix_open_multicast_group): Remove useless casts.
12432
12433 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12434
12435         * sound.c (Fplay_sound): Fix `unused variable' warning.
12436
12437         * emacs.c (main): Use correct type for _environ on SCO5.
12438
12439 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12440
12441         * console.h (own_selection_method):
12442         * console.h (selection_exists_p_method):
12443         * console.h (available_selection_types_method): New.
12444         * console.h (register_selection_data_type_method): New.
12445         * console.h (selection_data_type_name): New.
12446
12447         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12448         function & alist to track GlobalAlloc()'d handles that need
12449         releasing when the clipboard data gets replaced or emptied.
12450
12451         * event-msw.c (mswindows_wnd_proc): Call it.
12452
12453         * lisp.h, general.c (Qappend): New symbol representing a
12454         `how-to-add' mode.
12455
12456         * select.c (own-selection-internal):
12457         * select.c (selection-exists-p):
12458         * select.c (available-selection-types): New.
12459         * select.c (register-selection-data-type): New.
12460         * select.c (selection-data-type-name): New.  New functions to deal
12461         with device-specific selection data formats.
12462         * select.c (selection-converter-out-alist): Renamed.
12463         * select.c (selection-converter-in-alist): New.
12464         * select.c (selection-appender-alist): New.  Added new alists.
12465         * select.c (syms_of_select, vars_of_select): Added new symbols &
12466         variables.
12467         * select.c (get_local_selection): Split.
12468         * select.c: Removed spurious type checking - selections may now be
12469         of any type, not just strings.
12470         * select.c (own-selection-internal):
12471
12472         * select.h, select.c (convert_selection): New. Created
12473         convert_selection() function based on get_local_selection().
12474         * select.h, select.c (QCF_*): New symbols representing mswindows
12475         clipboard formats.
12476         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12477         symbols representing `how-to-add' modes.
12478
12479         * select-msw.c (x_sym_p): New.
12480         * select-msw.c (symbol_to_ms_cf): New.
12481         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12482         symbols & clipboard formats. Can also handle string names.
12483         * select-msw.c (mswindows_own_selection):
12484         * select-msw.c (mswindows_selection_exists_p):
12485         Added `data-type' parameter. Use it.
12486         * select-msw.c (mswindows_available_selection_types): New.
12487         * select-msw.c (mswindows_register_selection_data_type): New.
12488         * select-msw.c (mswindows_selection_data_type_name): New.
12489         * select-msw.c (mswindows_own_selection):
12490         * select-msw.c (mswindows_get_foreign_selection):
12491         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12492         * select-msw.c (console_create_select_mswindows): Added new methods.
12493         * select-msw.c (mswindows_destroy_selection): New.
12494         * select-msw.c (Vhandle_alist): New list.
12495         * select-msw.c (mswindows_own_selection):
12496
12497         * select-x.c (x_own_selection):
12498         * select-x.c (x_selection_exists_p):
12499         * select-x.c: Added some comments about maybe using new
12500         functionality.
12501         * select-x.c (x_own_selection):
12502
12503         * specifier.c: Remove definition of Qappend (now in general.c)
12504         * specifier.c (syms_of_specifier): Remove Qappend.
12505
12506 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12507
12508         * config.h.in: Add socklen_t.
12509
12510         * s/decosf4-0.h: No special compiler flags needed or desired.
12511         In particular, undefine _BSD for DEC OSF 4.0.
12512
12513 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12514
12515         * redisplay-msw.c (msprinter_frame_output_end): Added.
12516         (console_type_create_redisplay_mswindows): Referred the above.
12517
12518         * frame.c (setup_frame_without_minibuffer): Do not create a
12519         default minibuffer frame on a printer device.
12520
12521         * frame-msw.c (apply_dc_geometry): Added.
12522         (msprinter_start_page):
12523         (msprinter_init_frame_3):
12524         (msprinter_eject_page): Use it.
12525
12526         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12527         and removed residual duplex and orientation properties.
12528
12529 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12530
12531         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12532
12533         * unexalpha.c: Remove system prototypes from C sources!
12534
12535 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12536
12537         * eval.c: Remove references to M-x edit-options in DEFUNs for
12538         `defvar' and `defconst'.
12539
12540 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12541
12542         * config.h.in: Remove SMART_INCLUDE hackery.
12543
12544         PostgreSQL hacking:
12545         * config.h.in: Don't use SMART_INCLUDE.
12546
12547         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12548         * inline.c: Simply #include "postgresql.h"
12549         * postgresql.c:
12550         - Don't use SMART_INCLUDE
12551         - Use simply "const".
12552         - Use standard doc string conventions.
12553         - Use correct type for result of PQstatus.
12554
12555 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12556
12557         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12558
12559         C++ compilation changes.
12560         * config.h.in (EXTERN_C): Define.
12561         * config.h.in (not): This is also a C++ keyword.
12562         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12563         * cm.c: Use EXTERN_C.
12564         * redisplay-tty.c: Use EXTERN_C.
12565         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12566
12567 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12568
12569         * general.c: Remove duplicate definition for Qfunction.
12570
12571 2000-07-08  Ben Wing  <ben@xemacs.org>
12572
12573         * device-msw.c (msprinter_init_device):
12574         * device-msw.c (sync_printer_with_devmode):
12575         * device-msw.c (handle_devmode_changes):
12576         * device-msw.c (print_dialog_worker):
12577         * device-msw.c (Fmsprinter_apply_settings):
12578         * device-msw.c (hash_devmode):
12579         * device-msw.c (Fmsprinter_settings_despecialize):
12580         use Qmswindows_tstr, not Qctext.
12581
12582         * vm-limit.c (check_memory_limits):
12583         avoid infinite loop printing warning messages.
12584
12585 2000-07-05  Craig Lanning  <lanning@scra.org>
12586
12587         * Makefile.in.in: Add support for including the Windows resources
12588         when building with the cygwin and mingw targets.
12589
12590         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12591         not set or not correct.
12592         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12593         (init_initial_directory): Don't try to use $PWD on the
12594         WIN32_NATIVE target.
12595
12596         * s\cygwin32.h:
12597         [[Add -mwindows to eliminate console window.]] not required --ben
12598         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12599         (MAIL_USE_POP): removed; now handled by configure.
12600
12601         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12602         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12603         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12604         (MAIL_USE_POP): removed; now handled by configure.
12605         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12606         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12607         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12608         constant string.
12609         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12610         up from <winsock.h> via systime.h.
12611         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12612         (getpagesize): from Dan Holmsand, added.
12613         Added #endif which was left dangling by Ben's mega patch; added
12614         comment to help prevent this in the future.
12615
12616         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12617
12618 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12619
12620         * console-msw.h (struct mswindows_device): Removed unnecessary
12621         cached device geometry values.
12622         Added update_tick and an accessor macro.
12623         (Lisp_Devmode): Added lrecord declaration.
12624         (struct msprinter_device): Contain devmode as a Lisp object.
12625         Added mswindows_get_selected_frame_hwnd();
12626
12627         * console.h (struct console_methods): Indentation nitpicking.
12628
12629         * device-msw.c (mswindows_init_device): Do not initialize geometry
12630         cache. Initialize update tick.
12631         (mswindows_device_system_metrics): Ask the device for its geometry.
12632         (global_free_2_maybe):
12633         (devmode_to_hglobal):
12634         (handle_printer_changes):
12635         (ensure_not_printing):
12636         (print_dialog_worker):
12637         (Fmsprinter_print_setup_dialog):
12638         (Fmsprinter_print_dialog):
12639         (plist_get_margin):
12640         (plist_set_margin):
12641         (Fmsprinter_page_setup_dialog): Added functions.
12642         (sync_printer_with_devmode):
12643         (handle_devmode_changes):
12644         (Fmsprinter_get_settings):
12645         (Fmsprinter_select_settings):
12646         (Fmsprinter_apply_settings):
12647         (allocate_devmode):
12648         (Fmsprinter_settings_copy):
12649         (Fmsprinter_settings_despecialize):
12650         (print_devmode):
12651         (finalize_devmode):
12652         (equal_devmode):
12653         (hash_devmode): Added functions
12654         (syms_of_device_mswindows): Init devmode lrecord class.
12655
12656         * device.h: Added an exfun for find-device.
12657
12658         * event-msw.c (mswindows_wnd_proc): Do not update the cached
12659         geometry; although, recreate the device compatible DC.
12660
12661         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
12662         (msprinter_init_frame_3):
12663         (msprinter_frame_property):
12664         (msprinter_internal_frame_property_p):
12665         (msprinter_frame_properties):
12666         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
12667         print job properties (will move to device settings).
12668
12669         * lisp.h: Added symbols.
12670
12671         * general.c (syms_of_general): Declared them.
12672
12673         * hash.c (string_hash): Added.
12674
12675         * lrecord.h (lrecord_type): Added devmode lrecord type.
12676
12677 2000-07-02  Mike Sperber <mike@xemacs.org>
12678
12679         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
12680         FreeBSD 4.0.
12681
12682 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
12683
12684         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
12685         integer.
12686
12687 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
12688
12689         * data.c (Fstring_to_number): Don't recognize floating point if
12690         base is not 10.
12691
12692 2000-06-22  Martin Buchholz  <martin@xemacs.org>
12693
12694         * glyphs-widget.c (tab_control_query_geometry):
12695         (widget_query_geometry):
12696         (button_query_geometry):
12697         * glyphs.c (text_query_geometry):
12698         Enforce type correctness.
12699
12700 2000-06-18  Martin Buchholz  <martin@xemacs.org>
12701
12702         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
12703         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
12704
12705 2000-06-17  Martin Buchholz  <martin@xemacs.org>
12706
12707         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
12708         conflicts with gcc's fixincluded version of FOO.h.
12709
12710         * glyphs.h (image_instance_geometry): Remove trailing `,'
12711
12712 2000-06-08  Mike Alexander  <mta@arbortext.com>
12713
12714         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
12715         (shove_thread): Don't write the same output twice
12716         (make_ntpipe_output_stream): Increase priority of shove thread
12717         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
12718         chance to run
12719         (ntpipe_shove_closer): Don't delete the pipe until we're done with
12720         it.
12721
12722 2000-06-12  Ben Wing  <ben@xemacs.org>
12723
12724         * s\mingw32.h (sigset):
12725         * s\windowsnt.h (sigset):
12726         rename msw_ to mswindows_ for consistency with general convention.
12727
12728 2000-06-12  Ben Wing  <ben@xemacs.org>
12729
12730         * console-msw.c:
12731         * console-msw.c (mswindows_get_console_hwnd):
12732         * console-msw.c (mswindows_ensure_console_allocated):
12733         * console-msw.c (mswindows_hide_console):
12734         * console-msw.c (mswindows_show_console):
12735         * console-msw.c (mswindows_ensure_console_buffered):
12736         * console-msw.c (mswindows_output_console_string):
12737         * console-msw.c (mswindows_windows9x_p):
12738         * console-msw.h:
12739         * device-msw.c (mswindows_get_workspace_coords):
12740         * device-msw.c (mswindows_device_system_metrics):
12741         * dialog-msw.c (mswindows_popup_dialog_box):
12742         * event-msw.c (mswindows_wnd_proc):
12743         * frame-msw.c (mswindows_size_frame_internal):
12744         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12745         * menubar-msw.c (displayable_menu_item):
12746         * menubar-msw.c (mswindows_char_is_accelerator):
12747         * nt.c:
12748         * nt.c (mswindows_sigset):
12749         * nt.c (mswindows_sigrelse):
12750         * nt.c (mswindows_sigpause):
12751         * nt.c (mswindows_raise):
12752         * nt.c (timer_proc):
12753         * ntproc.c:
12754         * ntproc.c (find_child_console):
12755         * ntproc.c (sys_kill):
12756         * print.c:
12757         * print.c (std_handle_out_external):
12758         * process-nt.c (find_child_console):
12759         * process-nt.c (send_signal_the_95_way):
12760         * process-nt.c (ensure_console_window_exists):
12761         * process-nt.c (nt_create_process):
12762         * syssignal.h:
12763         rename msw_ to mswindows_ for consistency with general convention.
12764
12765         * emacs.c:
12766         * dumper.c:
12767         include nt.h, not syswindows.h.
12768
12769         * nt.c (mswindows_fstat):
12770         * nt.c (mswindows_stat):
12771         prefix mswindows_ instead of attempting to directly override the
12772         library functions.  fix declarations.
12773
12774         * nt.h:
12775         include syswindows.h.  move some sysdep.h stuff here.
12776
12777         * ntheap.h:
12778         include syswindows.h, not <windows.h>.
12779
12780         * ntplay.c:
12781         clean up headers.
12782
12783         * sysdep.c:
12784         clean up headers.
12785
12786         * sysdep.c (sys_fstat):
12787         * sysdep.c (sys_stat):
12788         call mswindows versions when appropriate.
12789
12790         * sysdep.h:
12791         move mswin decls to nt.h.
12792
12793         * syswindows.h:
12794         add long comment describing appropriate use of the various windows
12795         headers.
12796
12797 2000-06-11  Ben Wing  <ben@xemacs.org>
12798
12799         * device-x.c: Correct doc string for sixth arg of x-get-resource.
12800
12801 2000-06-10  Ben Wing  <ben@xemacs.org>
12802
12803         * Makefile.in.in (release):
12804         Correction to make sure xemacs.exe always dumped when correct.
12805
12806         * alloca.c:
12807         * balloon_help.c:
12808         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
12809
12810         * buffer.c (set_buffer_internal):
12811         [[[[2]]]]: Remove HAVE_FEP code.
12812
12813         * buffer.c (init_initial_directory):
12814         [3].
12815
12816         * bytecode.c:
12817         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
12818         individual files.
12819
12820         * callproc.c:
12821         * callproc.c (call_process_cleanup):
12822         * callproc.c (Fold_call_process_internal):
12823         * callproc.c (child_setup):
12824         * callproc.c (getenv_internal):
12825         * callproc.c (init_callproc):
12826         * callproc.c (vars_of_callproc):
12827         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
12828         __CYGWIN32__ -> CYGWIN.
12829         DOS_NT -> WIN32_NATIVE.
12830         Remove MSDOS support/references, converting to WIN32_NATIVE
12831           where correct.
12832         __MINGW32__ -> MINGW.
12833         Fix windows.h includes.
12834         Remove bogus HAVE_NTGUI.
12835
12836         * config.h.in:
12837         [2].
12838
12839         * console-msw.c:
12840         mswindows_message_outputted added for use in allowing startup
12841         errors on the console to be seen.
12842
12843         * console-msw.c (msw_ensure_console_allocated):
12844         * console-msw.c (msw_output_console_string):
12845         * console-msw.c (DHEADER):
12846         * console-msw.c (DOPAQUE_DATA):
12847         * console-msw.c (DEVENT):
12848         * console-msw.c (DCONS):
12849         * console-msw.c (DCONSCDR):
12850         * console-msw.c (DSTRING):
12851         * console-msw.c (DVECTOR):
12852         * console-msw.c (DSYMBOL):
12853         * console-msw.c (DSYMNAME):
12854         Fix warnings.
12855
12856         * console-stream.c (stream_init_console):
12857         Fix text/binary problems.
12858
12859         * device-msw.c:
12860         * device-msw.c (mswindows_finish_init_device):
12861         * device-msw.c (mswindows_delete_device):
12862         [1].
12863
12864         * device.c (handle_asynch_device_change):
12865         [3].
12866
12867         * dgif_lib.c:
12868         * dgif_lib.c (DGifOpenFileName):
12869         * dgif_lib.c (DGifOpenFileHandle):
12870         * dgif_lib.c (DGifGetLine):
12871         * dgif_lib.c (DGifGetPixel):
12872         Added config.h/lisp.h, fix up includes.
12873         [1].
12874
12875         * dired-msw.c:
12876         [4].
12877
12878         * dired.c:
12879         * dired.c (file_name_completion):
12880         * dired.c (Ffile_attributes):
12881         * dired.c (syms_of_dired):
12882         [1].
12883
12884         * dumper.c:
12885         * dumper.c (pdump_file_unmap):
12886         * dumper.c (pdump_load):
12887         [1].
12888
12889         * editfns.c:
12890         * editfns.c (Ftemp_directory):
12891         * editfns.c (user_login_name):
12892         * editfns.c (Fuser_real_login_name):
12893         * editfns.c (get_home_directory):
12894         [1].
12895
12896         * elhash.c (finish_marking_weak_hash_tables):
12897         [[[[5]]]]: Fix GCC warnings.
12898
12899         * emacs.c:
12900         * emacs.c (mswindows_handle_hardware_exceptions):
12901         * emacs.c (make_arg_list_1):
12902         * emacs.c (main_1):
12903         * emacs.c (Fkill_emacs):
12904         * emacs.c (Fdump_emacs):
12905         [1].
12906         Fix problems with nested crashes, add long comment.
12907
12908         * event-Xt.c (init_event_Xt_late):
12909         [1].
12910
12911         * event-msw.c:
12912         * event-msw.c (mswindows_dde_callback):
12913         * event-msw.c (mswindows_handle_sticky_modifiers):
12914         * event-msw.c (mswindows_wnd_proc):
12915         [1].
12916         [5].
12917
12918         * events.c (character_to_event):
12919         [1].
12920
12921         * fileio.c:
12922         * fileio.c (Ffile_name_directory):
12923         * fileio.c (Ffile_name_nondirectory):
12924         * fileio.c (directory_file_name):
12925         * fileio.c (Fexpand_file_name):
12926         * fileio.c (Fsubstitute_in_file_name):
12927         * fileio.c (Ffile_name_absolute_p):
12928         * fileio.c (check_executable):
12929         * fileio.c (Ffile_readable_p):
12930         * fileio.c (Ffile_accessible_directory_p):
12931         * fileio.c (Ffile_modes):
12932         * fileio.c (Funix_sync):
12933         * fileio.c (vars_of_fileio):
12934         [1]. [4].
12935
12936         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
12937
12938         Expand getdefdir defn.
12939         Fix bogus rename() comment.
12940
12941         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
12942         to use standard XEmacs include files, e.g. sysfile.h, rather
12943         than system-specific includes.
12944
12945         * fns.c:
12946         * fns.c (Fsubseq):
12947         [5]. [6].
12948
12949         * frame.c (vars_of_frame):
12950         [1].
12951
12952         * getloadavg.c:
12953         * getloadavg.c (getloadavg):
12954         [1]. [6].
12955         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
12956         (We don't use it elsewhere in the code; just add a comment.)
12957
12958         * gif_io.c:
12959         [6].
12960         Add config.h.
12961
12962         * glyphs-msw.c:
12963         * glyphs-msw.c (mswindows_resource_instantiate):
12964         [1].
12965
12966         * glyphs-x.c (x_native_layout_instantiate):
12967         [5].
12968
12969         * gui-msw.c (Fmswindows_shell_execute):
12970         [1].
12971
12972         * insdel.c:
12973         [4].
12974
12975         * lisp.h:
12976         [4]. [5].
12977
12978         * lread.c (locate_file_in_directory_mapper):
12979         [1].
12980
12981         * lstream.c:
12982         [4].
12983
12984         * mem-limits.h:
12985         * mem-limits.h (get_lim_data):
12986         [1].
12987
12988         * menubar-msw.c:
12989         [4].
12990
12991         * ndir.h:
12992         [1].
12993
12994         * nt.c:
12995         * nt.c (getwd):
12996         * nt.c (closedir):
12997         * nt.c (rva_to_section):
12998         * nt.c (mswindows_executable_type):
12999         [1]. [6].
13000         Fix closedir() defn.
13001
13002         * nt.h:
13003         [[[[8]]]]: *_OK defs moved to sysfile.h.
13004
13005         * ntproc.c:
13006         [6]. [7].
13007
13008         * objects-x.c:
13009         [4].
13010
13011         * print.c:
13012         * print.c (std_handle_out_external):
13013         [1]. [4].
13014
13015         * process-nt.c:
13016         * process-nt.c (nt_create_process):
13017         [6].
13018         try to fix process quoting somewhat.
13019
13020         * process-unix.c (unix_create_process):
13021         [1].
13022
13023         * process.c:
13024         * process.c (vars_of_process):
13025         Add Vnull_device.
13026
13027         * process.h:
13028         [1].
13029
13030         * realpath.c:
13031         * realpath.c (xrealpath):
13032         [1].
13033
13034         * redisplay-tty.c (init_tty_for_redisplay):
13035         [3].
13036
13037         * redisplay.c:
13038         [4]. [6].
13039
13040         * scrollbar-msw.c:
13041         [4].
13042
13043         * sheap.c:
13044         * sheap.c (more_static_core):
13045         * sheap.c (report_sheap_usage):
13046         [5]. [6].
13047
13048         * signal.c:
13049         * signal.c (alarm_signal):
13050         [1]. [6].
13051
13052         * sound.c:
13053         [6].
13054
13055         * strftime.c:
13056         * strftime.c (zone_name):
13057         [1]. [5].
13058
13059         * symsinit.h (init_sunpro):
13060         [1].
13061
13062         * syscommctrl.h:
13063         commctrl.h not in Cygwin b20.1.
13064
13065         * sysdep.c:
13066         * sysdep.c (endif):
13067         * sysdep.c (sys_subshell):
13068         * sysdep.c (init_baud_rate):
13069         * sysdep.c (emacs_get_tty):
13070         * sysdep.c (emacs_set_tty):
13071         * sysdep.c (tty_init_sys_modes_on_device):
13072         * sysdep.c (init_system_name):
13073         * sysdep.c (sys_open):
13074         * sysdep.c (interruptible_open):
13075         * sysdep.c (sys_fopen):
13076         * sysdep.c (sys_mkdir):
13077         * sysdep.c (sys_rename):
13078         * sysdep.c (get_process_times_1):
13079         [1]. [6].
13080
13081         * sysdep.h:
13082         [1].
13083
13084         * sysdir.h:
13085         * sysdir.h (DIRENTRY_NONEMPTY):
13086         [1]. [6].
13087
13088         * sysdll.c (dll_init):
13089         * sysdll.h:
13090         [1].
13091
13092         * sysfile.h:
13093         [1]. [6]. [8].
13094         added text/binary defs.
13095
13096         * sysfloat.h:
13097         [1].
13098
13099         * sysproc.h:
13100         * sysproc.h (EDESTADDRREQ):
13101         * sysproc.h (poll_fds_for_input):
13102         [1]. [6].
13103
13104         * syspwd.h:
13105         [6].
13106
13107         * syssignal.h:
13108         [1].
13109
13110         * systime.h:
13111         [1]. [6].
13112
13113         * systty.h:
13114         [1].
13115
13116         * syswindows.h:
13117         [1].
13118         Always define WIN32_LEAN_AND_MEAN.
13119
13120         * unexcw.c (unexec):
13121         [5].
13122
13123         * unexec.c:
13124         * unexec.c (copy_text_and_data):
13125         * unexec.c (adjust_lnnoptrs):
13126         [1].
13127
13128         * unexnt.c:
13129         * unexnt.c (_start):
13130         [1].
13131
13132 2000-06-07  Ben Wing  <ben@xemacs.org>
13133
13134         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
13135         was used only as a model.  We've long since extracted any useful
13136         logic or code out of this. (I just did an exhaustive search.)
13137
13138         * s\msdos.h: Removed.
13139
13140         * s\windows95.h: Removed.
13141
13142 2000-06-10  Ben Wing  <ben@xemacs.org>
13143
13144         * s\cygwin32.h:
13145         [1]. [5].
13146         Don't use extern with fun defs.
13147
13148         * s\mingw32.h:
13149         [1]. [7].
13150         Remove nt\inc include.
13151         Remove getdisk, getdefdir. (The former is unused, the latter
13152         expanded in fileio.h.)
13153
13154         * s\windowsnt.h:
13155         * s\windowsnt.h (WIN32_NATIVE):
13156         * s\windowsnt.h (HAVE_STRCASECMP):
13157         [1]. [7].
13158         Add long comment about preprocessor changes.
13159         Remove getdisk, getdefdir. (The former is unused, the latter
13160         expanded in fileio.h.)
13161
13162 2000-06-10  Ben Wing  <ben@xemacs.org>
13163
13164         * m\arm.h:
13165         * m\delta.h:
13166         * m\intel386.h:
13167         * m\sequent.h:
13168         * m\template.h:
13169         * m\windowsnt.h:
13170         [1].
13171         Remove bogus/unused NO_SOCK_SIGIO.
13172
13173 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13174
13175         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13176         not an Emchar.
13177
13178 2000-06-04  Mike Sperber <mike@xemacs.org>
13179
13180         * casetab.c (set_case_table): For `set-standard-case-table',
13181         actually deposit the new case tables where the rest of XEmacs can
13182         see them.
13183
13184 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13185
13186         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13187
13188 2000-06-05  Ben Wing  <ben@xemacs.org>
13189
13190         * callproc.c (child_setup): Don't do close_load_descs() under
13191         MS Windows.  Put in a comment explaining why.
13192
13193 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13194
13195         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13196         Toolkit shell" which breaks `kill-compilation' on Windows NT
13197         native, retaining STDERR handling improvements.
13198
13199 2000-06-01  Andreas Jaeger  <aj@suse.de>
13200
13201         * s/s390.h: Support for S390, based on a patch by Martin
13202         Schwidefsky <schwidefsky@de.ibm.com>.
13203
13204 2000-05-30  Andy Piper  <andy@xemacs.org>
13205
13206         * window.c (allocate_window):
13207         (make_dummy_parent):
13208         (Fset_window_configuration): use new hashtable type.
13209
13210         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13211         (struct image_instantiator_methods):
13212         (struct Lisp_Image_Instance): make instance geometry signed.
13213
13214         * glyphs.c (instantiate_image_instantiator):
13215         (image_instance_query_geometry):
13216         (image_instance_layout):
13217         (image_instance_layout):
13218         (query_string_geometry):
13219         (text_query_geometry):
13220         (image_instantiate):
13221         (image_instantiate):
13222         (cache_subwindow_instance_in_frame_maybe):
13223         (subwindow_query_geometry): make instance geometry signed.
13224
13225         * glyphs-widget.c (widget_query_geometry):
13226         (widget_layout):
13227         (button_query_geometry):
13228         (tree_view_query_geometry):
13229         (tab_control_query_geometry):
13230         (layout_query_geometry):
13231         (layout_layout):
13232         (native_layout_layout): make instance geometry signed.
13233
13234 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13235
13236         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13237         constant.
13238
13239         * general.c (syms_of_general): Add Qfull_assoc symbol.
13240
13241         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13242         correctly.
13243         (decode_weak_list_type): Decode full-assoc type.
13244         (encode_weak_list_type): Encode full-assoc type.
13245         (Fmake_weak_list): Update doc string.
13246
13247 2000-05-30  Andy Piper  <andy@xemacs.org>
13248
13249         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13250
13251         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13252         (decode_hash_table_weakness): ditto.
13253         (Fhash_table_weakness): ditto.
13254         (Fhash_table_type): ditto.
13255         (finish_marking_weak_hash_tables): ditto.
13256         (hash_table_weakness_validate): ditto.
13257         (syms_of_elhash): ditto.
13258
13259 2000-05-28  Martin Buchholz <martin@xemacs.org>
13260
13261         * XEmacs 21.2.34 is released.
13262
13263 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13264
13265         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13266         start cache.
13267         (updating_line_start_cache): Gone.
13268         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13269         generic code to force a minimum of 1 line laid out in the
13270         CMOTION_DISP case.
13271
13272 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13273
13274         * glyphs.c (instantiate_image_instantiator): Check for initialized
13275         height & width no longer special cases IMAGE_NOTHING.
13276         (nothing_instantiate): Set height and width of instance.
13277
13278 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13279
13280         * unexelf.c (unexec): Search for ".data" section.
13281         Initialize new_data2_offset from old_data_index.
13282         Remove redundant check for ElfW.
13283
13284 2000-05-23  Andy Piper  <andy@xemacs.org>
13285
13286         * glyphs.c (get_image_instantiator_governing_domain): allow more
13287         specific domains as the governing domain rather than expecting an
13288         exact match. This fixes problems with layouts.
13289
13290 2000-05-22  Andy Piper  <andy@xemacs.org>
13291
13292         * redisplay-output.c (compare_runes): check for non-images
13293
13294         * glyphs.c (set_glyph_dirty_p): ditto.
13295         (update_glyph_cachel_data): ditto.
13296
13297         * glyphs-widget.c (layout_post_instantiate): ditto.
13298         (layout_post_instantiate): ditto.
13299
13300         * event-msw.c (mswindows_wnd_proc): warning removal.
13301
13302 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13303
13304         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13305
13306         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13307
13308         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13309
13310         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13311         (mswindows_executable_type): mingw32 now has enough headers for
13312         this to work.
13313
13314 2000-05-20  Andy Piper  <andy@xemacs.org>
13315
13316         * console-msw.c (mswindows_output_last_error): ; -> ,
13317
13318 2000-05-12  Andy Piper  <andy@xemacs.org>
13319
13320         * console-msw.c (FROB): compare ints with ints.
13321
13322 2000-05-11  Andy Piper  <andy@xemacs.org>
13323
13324         * glyphs-x.c (x_finalize_image_instance): make minimal build
13325         happy.
13326
13327 2000-05-20  Ben Wing  <ben@xemacs.org>
13328
13329         * event-Xt.c:
13330         * event-Xt.c (vars_of_event_Xt):
13331         move modifier-keys-are-sticky to event-stream.c.
13332
13333         * event-msw.c:
13334         * event-msw.c (mswindows_enqueue_mouse_button_event):
13335         * event-msw.c (key_needs_default_processing_p):
13336         * event-msw.c (XEMSW_LCONTROL):
13337         * event-msw.c (mswindows_handle_sticky_modifiers):
13338         * event-msw.c (FROB):
13339         * event-msw.c (clear_sticky_modifiers):
13340         * event-msw.c (output_modifier_keyboard_state):
13341         * event-msw.c (output_alt_keyboard_state):
13342         * event-msw.c (mswindows_wnd_proc):
13343         * event-msw.c (mswindows_modifier_state):
13344         * event-msw.c (emacs_mswindows_handle_magic_event):
13345         implement sticky modifiers.
13346
13347         * event-stream.c:
13348         * event-stream.c (vars_of_event_stream):
13349         move modifier-keys-are-sticky here.
13350
13351         * lisp.h:
13352         add CHECK_FUNCTION.
13353
13354         * rangetab.c:
13355         implement map-range-table.
13356
13357
13358 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13359
13360         * redisplay-tty.c (reset_tty_modes):
13361         (tty_redisplay_shutdown): Adjust argument type to
13362         tty_frame_output_end.
13363
13364 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13365
13366         * eval.c (Fbacktrace): Don't output a line with only right
13367         parenthesis.
13368
13369 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13370
13371         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13372         (Fpq_reset_poll): Ditto.
13373
13374 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13375
13376         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13377
13378 2000-05-16  Ben Wing  <ben@xemacs.org>
13379
13380         * buffer.c:
13381         * buffer.c (dfc_convert_to/from_internal_format):
13382         * buffer.c (reinit_vars_of_buffer):
13383         Fix conversion functions to allow reentrancy.
13384
13385         * console-msw.c:
13386         * console-msw.c (mswindows_output_last_error):
13387         New fun, generally useful -- output a human-readable
13388         version of GetLastError() on the console.
13389
13390         * console-msw.h:
13391         * console-msw.h (struct mswindows_frame):
13392         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13393
13394         * console-stream.c (stream_output_begin):
13395         * console-stream.c (stream_output_end):
13396         * console-stream.c (stream_output_vertical_divider):
13397         * console-stream.c (stream_clear_region):
13398         * console-stream.c (stream_flash):
13399         * console-stream.c (console_type_create_stream):
13400         Delete blank stream methods, not needed.
13401
13402         * console.h (struct console_methods):
13403         Split begin/end methods into window and frame.
13404
13405         * event-msw.c:
13406         * event-msw.c (mswindows_handle_paint):
13407         * event-msw.c (output_alt_keyboard_state):
13408         * event-msw.c (mswindows_wnd_proc):
13409         * event-msw.c (vars_of_event_mswindows):
13410         Comment about problems with ignored-expose.
13411         Define mswindows-debug-events; not really implemented.
13412
13413         * frame-msw.c (mswindows_init_frame_1):
13414         random cleanups.
13415
13416         * glyphs-msw.c:
13417         * glyphs-msw.c (begin_defer_window_pos):
13418         * glyphs-msw.c (mswindows_unmap_subwindow):
13419         * glyphs-msw.c (mswindows_map_subwindow):
13420         * glyphs-msw.c (mswindows_resize_subwindow):
13421         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13422
13423         * glyphs.c (make_image_instance_1):
13424         Fix crash.
13425
13426         * gutter.c (Fredisplay_gutter_area):
13427         Use new begin/end methods.
13428
13429         * lisp.h (Dynarr_new2):
13430         New creation fun.
13431
13432         * redisplay-msw.c:
13433         * redisplay-msw.c (mswindows_frame_output_begin):
13434         * redisplay-msw.c (mswindows_frame_output_end):
13435         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13436         New begin/end methods -- handle DeferWindowPos.
13437
13438         * redisplay-output.c (redisplay_move_cursor):
13439         * redisplay-output.c (redraw_cursor_in_window):
13440         * redisplay-output.c (redisplay_update_line):
13441         * redisplay-output.c (redisplay_output_window):
13442         New begin/end methods.
13443
13444         * redisplay-tty.c:
13445         * redisplay-tty.c (tty_frame_output_begin):
13446         * redisplay-tty.c (tty_frame_output_end):
13447         * redisplay-tty.c (console_type_create_redisplay_tty):
13448         New begin/end methods.
13449
13450         * redisplay-x.c:
13451         * redisplay-x.c (x_window_output_begin):
13452         * redisplay-x.c (x_window_output_end):
13453         * redisplay-x.c (console_type_create_redisplay_x):
13454         New begin/end methods.
13455
13456         * redisplay.c (redisplay_frame):
13457         * redisplay.c (Fredisplay_echo_area):
13458         New begin/end methods.
13459         use MAYBE_DEVMETH for clear_frame; it may not exist.
13460
13461         * window.h (WINDOW_XFRAME):
13462         WINDOW_XFOO macros -- get locale and decode struct pointer.
13463
13464
13465 2000-05-12  Ben Wing  <ben@xemacs.org>
13466
13467         * emacs.c:
13468         * emacs.c (ensure_no_quitting_from_now_on):
13469         * emacs.c (fatal_error_signal):
13470         * emacs.c (mswindows_handle_hardware_exceptions):
13471         * emacs.c (main):
13472         * emacs.c (Fkill_emacs):
13473         * emacs.c (shut_down_emacs):
13474         * emacs.c (assert_failed):
13475         various improvements in fatal error handling.
13476
13477         * eval.c:
13478         move preparing_for_armageddon to emacs.c.
13479
13480         * lisp.h:
13481         declare fatal_error_in_progress.
13482
13483         * print.c:
13484         * print.c (std_handle_out_external):
13485         * print.c (std_handle_out_va):
13486         * print.c (stderr_out):
13487         * print.c (stdout_out):
13488         use console under mswin when no standard output.
13489         don't do code conversion during fatal error.
13490
13491         * scrollbar.c (Fscrollbar_page_up):
13492         * scrollbar.c (Fscrollbar_page_down):
13493         fix missing else.  reindent.
13494
13495 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13496
13497         Emergency fix.
13498
13499         * glyphs.h (GLYPH_CACHEL_DESCENT):
13500         (GLYPH_CACHEL_DESCENT):
13501         (GLYPH_CACHEL_DESCENT):
13502         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13503         used in case these are inline functions.
13504         Use more absurd values to error check.
13505
13506         include window.h for error check functions.
13507
13508 2000-05-11  Ben Wing  <ben@xemacs.org>
13509
13510         * cmdloop.c (Freally_early_error_handler):
13511         Display message box under windows; otherwise, message will disappear
13512         before it can be viewed.
13513
13514         * console-msw.c:
13515         * console-msw.c (Fmswindows_message_box):
13516         * console-msw.c (FROB):
13517         * console-msw.c (syms_of_console_mswindows):
13518         Define new fun `mswindows-message-box'.
13519         #### I will merge this into `popup-dialog-box'; just give me
13520         a bit of time.
13521
13522         * general.c:
13523         * general.c (syms_of_general):
13524         Some new symbols used in `mswindows-message-box'.
13525
13526         * glyphs.c:
13527         * glyphs.c (Fset_image_instance_property):
13528         put warning in this fun.
13529
13530         * glyphs.h:
13531         * glyphs.h (GLYPH_CACHEL_WIDTH):
13532         * glyphs.h (GLYPH_CACHEL_ASCENT):
13533         * glyphs.h (GLYPH_CACHEL):
13534         * glyphs.h (GLYPH_CACHEL_GLYPH):
13535         define error-checking versions to try to catch a bug i've seen --
13536         redisplay gets in an infinite loop because the glyph width of the
13537         continuation glyph is 65535.
13538
13539         * lisp.h:
13540         Extern message-box stuff.
13541
13542         * window.c (allocate_window):
13543         * window.c (make_dummy_parent):
13544         * window.c (Fset_window_configuration):
13545         Use EQUAL not EQ for subwindow caches to make them work a bit
13546         better. (Something is still very broken.)
13547
13548
13549 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13550
13551         * glyphs.c (image_instantiate): Suppress gcc warnings.
13552         (Fmake_image_instance): Fix doc string.
13553         * specifier.c (Fmake_specifier): Ditto.
13554
13555 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13556
13557         * paths.h.in (PATH_LOCK): Removed.
13558         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13559         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13560
13561 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13562
13563         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13564         Document (featurep '(and xemacs 21.02)).
13565
13566 2000-05-09  Ben Wing  <ben@xemacs.org>
13567
13568         * buffer.c (complex_vars_of_buffer):
13569         update modeline-format doc.
13570
13571         * device.h:
13572         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13573
13574         * emacs.c:
13575         timeline of all released versions of Emacs, for use in creating
13576         authorship comments and in synching up.
13577
13578         * glyphs-widget.c (image_instantiator_buttons):
13579         * glyphs-widget.c (image_instantiator_edit_fields):
13580         * glyphs-widget.c (image_instantiator_combo_box):
13581         * glyphs-widget.c (image_instantiator_scrollbar):
13582         * glyphs-widget.c (image_instantiator_progress_guage):
13583         * glyphs-widget.c (image_instantiator_tree_view):
13584         * glyphs-widget.c (image_instantiator_tab_control):
13585         * glyphs-widget.c (image_instantiator_labels):
13586         * glyphs-widget.c (image_instantiator_layout):
13587         * glyphs-widget.c (image_instantiator_native_layout):
13588         rename decode_domain method to governing_domain.
13589
13590         * glyphs.c:
13591         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13592         * glyphs.c (add_entry_to_device_ii_format_list):
13593         make sure we don't put an entry more than once into the list.
13594         * glyphs.c (check_instance_cache_mapper):
13595         *************************************************************
13596         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13597         HAVE BEEN GETTING.
13598         *************************************************************
13599         * glyphs.c (get_image_instantiator_governing_domain):
13600         clean up, expand on new concept of governing domain.
13601         * glyphs.c (instantiate_image_instantiator):
13602         * glyphs.c (allocate_image_instance):
13603         use governing_domain instead of cache_domain in naming.
13604         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13605         * glyphs.c (make_image_instance_1):
13606         * glyphs.c (Fmake_image_instance):
13607         allow for any domain (not just device), and process the
13608         governing domain correctly.  very big doc fix.
13609         * glyphs.c (Fimage_instance_domain):
13610         new primitive, to retrieve the governing domain of an image instance.
13611         * glyphs.c (image_instantiate):
13612         use new governing_domain stuff.  this fixes a crash you could get
13613         by instantiating certain widget glyphs in frame locales. (should
13614         signal an error instead of crashing.)
13615         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13616         * glyphs.c (Fglyphp): clean up doc.
13617         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13618         * glyphs.c (syms_of_glyphs):
13619         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13620         * glyphs.c (image_instantiator_format_create): add some comments about
13621         bogus code.
13622         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13623         for current-display-table. (Apparently Hrjove implemented in 1998 a
13624         design I wrote up in 1996, but didn't update the doc string.)
13625
13626         * glyphs.h: clean up a doc string.
13627         * glyphs.h (governing_domain):
13628         * glyphs.h (struct image_instantiator_methods):
13629         changes for governing_domain stuff.
13630
13631         * gutter.c:
13632         * gutter.c (Fgutter_specifier_p):
13633         * gutter.c (Fgutter_size_specifier_p):
13634         * gutter.c (Fgutter_visible_specifier_p):
13635         * objects.c:
13636         * objects.c (Fcolor_specifier_p):
13637         * objects.c (Ffont_specifier_p):
13638         * objects.c (Fface_boolean_specifier_p):
13639         doc strings moved to make-*-specifier.
13640
13641         * redisplay.c (add_disp_table_entry_runes_1):
13642         * redisplay.c (generate_fstring_runes):
13643         * redisplay.c (screen):
13644         add random comments and doc strings.
13645
13646         * specifier.c:
13647         * specifier.c (Fmake_specifier):
13648         major overhaul of this doc string.
13649
13650         * specifier.c (Fvalid_specifier_domain_p):
13651         comment about the bogosity of image instances being domains.
13652         * specifier.c (decode_domain):
13653         now non-static, used in glyphs.c.
13654         * specifier.c (specifier_instance):
13655         comment about the bogosity of image instances being domains.
13656         * specifier.c (Fgeneric_specifier_p):
13657         move doc string to make-generic-specifier.
13658         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
13659         rebackslashify.
13660
13661         * specifier.h:
13662         * specifier.h (DOMAIN_FRAME):
13663         * specifier.h (DOMAIN_LIVE_P):
13664         * specifier.h (DOMAIN_XDEVICE):
13665         rebackslashify.
13666         add comments about problems with these macros.
13667         prototype for decode_domain.
13668
13669         * toolbar.c:
13670         * toolbar.c (Ftoolbar_specifier_p):
13671         move doc string to `make-toolbar-specifier'.
13672
13673         * window.c (window_unmap_subwindows_cache_mapper):
13674         *************************************************************
13675         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13676         HAVE BEEN GETTING.
13677         *************************************************************
13678
13679 2000-05-09  Andy Piper  <andy@xemacs.org>
13680
13681         * glyphs.h: declare reset_frame_subwindow_instance_cache.
13682
13683         * window.c (Fset_window_configuration): reset the frame subwindow
13684         cache and re-initialize the window subwindow caches.
13685
13686         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
13687
13688 2000-05-09  Ben Wing  <ben@xemacs.org>
13689
13690         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
13691         DWORD.
13692
13693 2000-04-26  Mike Woolley  <mike@bulsara.com>
13694
13695         * ntheap.c: Changed recreate_heap to limit the amount reserved
13696         for the heap to that which is actually available. Also now
13697         displays a message box (with some dignostics) in the event that
13698         it still can't start.
13699
13700 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
13701
13702         * callproc.c (Fold_call_process_internal): GCPRO path
13703
13704 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
13705
13706         Patch by Bill Perry.
13707
13708         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
13709         back data instead of #ifdef.
13710         (Fscrollbar_page_down): ditto.
13711
13712 2000-05-07  Ben Wing  <ben@xemacs.org>
13713
13714         * buffer.h:
13715         Kludge for defining Qmswindows_tstr.
13716
13717         * nt.c:
13718         * nt.c (open_input_file):
13719         * nt.c (open_output_file):
13720         * nt.c (rva_to_section):
13721         * nt.c (mswindows_executable_type):
13722         Move all memory-mapped-file routines here (some were in unexnt.c,
13723         which is bad because they are used by process-nt.c, and unexnt
13724         won't be around when portable dumping).  Synched the above routines
13725         with FSF 20.6.
13726
13727         * nt.h:
13728         Removed ifdef'd out bogus code.
13729         Fixed some prototypes.
13730
13731         * nt.h (file_data):
13732         * nt.h (OFFSET_TO_RVA):
13733         * nt.h (RVA_TO_OFFSET):
13734         * nt.h (RVA_TO_PTR):
13735         Moved the memory-mapped-file structures, macros and prototypes
13736         here, to parallel nt.c.  ntheap.h should really be removed
13737         entirely, and it's a non-portable-dumper specific file.
13738
13739         * ntheap.h (round_to_next):
13740         Moved the memory-mapped-file structures, macros and prototypes
13741         to nt.h.
13742
13743         * ntproc.c (compare_env):
13744         Moved rva_to_section and mswindows_executable_type to nt.c.
13745         Moved compare_env to process-nt.c.
13746         ntproc.c will die, one day.
13747
13748         * ntproc.c (sys_spawnve):
13749         Account for win32_ -> mswindows_.
13750
13751         * process-nt.c:
13752         * process-nt.c (struct nt_process_data):
13753         * process-nt.c (ensure_console_window_exists):
13754         * process-nt.c (compare_env):
13755         * process-nt.c (nt_create_process):
13756         * process-nt.c (nt_kill_process_by_pid):
13757         * process-nt.c (syms_of_process_nt):
13758         * process-nt.c (vars_of_process_nt):
13759         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
13760         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
13761         changes).  Eliminate our old `nt-quote-process-args' mechanism.
13762         Synch up nt_create_process with FSF 20.6 sys_spawnve.
13763         Move compare_env here from ntproc.c.
13764
13765         * process.c (Fprocess_send_region):
13766         Takes an optional fourth argument, BUFFER, which should fix some
13767         problems with call-process.
13768
13769         * syscommctrl.h:
13770         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
13771
13772         * syswindows.h:
13773         Move ICC_BAR_CLASSES to syscommctrl.h.
13774         Add preliminary macros for MSWindows/Mule.  More to come.
13775
13776         * unexnt.c:
13777         * unexnt.c (unexec):
13778         open_output_file moved to nt.c.
13779
13780
13781 2000-05-05  Andy Piper  <andy@xemacs.org>
13782
13783         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
13784         instance from the frame cache also since GC may catch up too late
13785         to make frame deletion sane.
13786
13787 2000-05-04  Andy Piper  <andy@xemacs.org>
13788
13789         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
13790         (x_finalize_image_instance): ungcpro on deletion.
13791
13792         * glyphs.c (image_instantiator_format_create): give pointers a
13793         query geometry method so that the geometry is at least set.
13794
13795         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
13796         initialize layouts if using widgets.
13797
13798 2000-05-03  Andy Piper  <andy@xemacs.org>
13799
13800         * nt.c: remove bogus reference to sysmmsystem.h
13801
13802         * gui-x.c (popup_selection_callback): fix no selection abort.
13803
13804 2000-05-02  Andy Piper  <andy@xemacs.org>
13805
13806         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
13807         (mswindows_widget_instantiate): ditto.
13808
13809         * glyphs-widget.c (initialize_widget_image_instance): initialize
13810         children correctly.
13811         (widget_instantiate): cope with children and items in the same
13812         instance.
13813
13814         * glyphs.c (mark_image_instance): cope with children as a first
13815         class member.
13816         (image_instance_equal): ditto.
13817         (image_instance_hash): ditto.
13818         (image_instance_changed): ditto.
13819
13820 2000-04-30  Andy Piper  <andy@xemacs.org>
13821
13822         * glyphs.c (subwindow_query_geometry): new function. Return some
13823         defaults.
13824         (subwindow_instantiate): don't assign dimensions if none have been
13825         given.
13826         (image_instantiator_format_create): add subwindow_query_geometry.
13827         (print_image_instance): cope with layouts as widgets.
13828
13829 2000-04-29  Andy Piper  <andy@xemacs.org>
13830
13831         * frame.c (delete_frame_internal): call
13832         free_frame_subwindow_instance_cache so that all subwindows are
13833         finalized before their parent.
13834         (mark_frame): remove subwindow_cachels.
13835         (Fmake_frame): remove subwindow_cachel manipulation.
13836         (allocate_frame_core): subwindow_instance_cache is a weak list.
13837         (delete_frame_internal): set subwindow_instance_cache to nil.
13838
13839         * glyphs-msw.c (mswindows_finalize_image_instance): make double
13840         finalization safe.
13841         (mswindows_finalize_image_instance): use the device
13842         not the domain as the domain may have died already.
13843
13844         * glyphs-x.c (x_finalize_image_instance): ditto.
13845         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
13846         HEIGHT.
13847
13848         * redisplay-output.c (redisplay_unmap_subwindows): update for
13849         subwindow instance cache as a weak list.
13850         (redisplay_unmap_subwindows_maybe): ditto.
13851         (redisplay_unmap_subwindows_except_us): ditto.
13852
13853         * glyphs.c (unmap_subwindow): error checking will check the domain
13854         so don't deal with it here. Don't use cachels anymore.
13855         (map_subwindow): ditto.
13856         (update_subwindow_cachel_data): remove old accessor names.
13857         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
13858         (Fresize_subwindow): don't update cachel.
13859         (mark_subwindow_cachels):
13860         (update_subwindow_cachel_data):
13861         (add_subwindow_cachel):
13862         (get_subwindow_cachel_index):
13863         (update_subwindow_cachel):
13864         (reset_subwindow_cachels):
13865         (mark_subwindow_cachels_as_not_updated): deleted.
13866         (cache_subwindow_instance_in_frame_maybe): new function. Add a
13867         subwindow instance to the frame cache.
13868         (find_matching_subwindow): update for subwindow instance cache as
13869         a weak list.
13870         (update_widget_instances): ditto.
13871         (image_instance_type_to_mask):inlined.
13872         (free_frame_subwindow_instance_cache): new function. finalize all
13873         subwindows that are instantiated.
13874
13875         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
13876         of cachel information.
13877         (IMAGE_INSTANCE_DISPLAY_X):
13878         (IMAGE_INSTANCE_DISPLAY_Y):
13879         (IMAGE_INSTANCE_DISPLAY_WIDTH):
13880         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
13881         (XIMAGE_INSTANCE_DISPLAY_X):
13882         (XIMAGE_INSTANCE_DISPLAY_Y):
13883         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
13884         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
13885         remove subwindow_cachel structure and function references.
13886         (image_instance_type_to_mask): inline from glyphs.c
13887
13888         * redisplay.c (redisplay_frame): remove subwindow_cachel
13889         references.
13890
13891         * frame.h (struct frame): remove subwindow_cachels.
13892         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
13893
13894         * frameslots.h: add subwindow_instance_cache.
13895
13896         * window.c (replace_window): check subwindow cache of replacement.
13897         (window_unmap_subwindows_cache_mapper):
13898         (window_unmap_subwindows): new functions. Unmap all subwindows
13899         cached on this window.
13900         (mark_window_as_deleted): unmap all subwindows.
13901
13902 2000-04-27  Andy Piper  <andy@xemacs.org>
13903
13904         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
13905
13906         * glyphs-widget.c (widget_layout): return something.
13907         (layout_layout): return something. Fail if not initialized.
13908         (layout_query_geometry): ditto.
13909         (image_instantiator_native_layout): new function. Initialized the
13910         native layout type.
13911         (widget_instantiate): don't do layout stuff here.
13912
13913         * glyphs.c (instantiate_image_instantiator): reorded calling or
13914         instantiate and post_instantiate with layout in between.
13915         (image_instance_layout): be more selective about deciding whether
13916         the layout has been done or not.
13917
13918         * glyphs.h (struct image_instantiator_methods): return a value
13919         from layout_method.
13920
13921 2000-04-26  Andy Piper  <andy@xemacs.org>
13922
13923         * glyphs.c (allocate_image_instance): make initial width and
13924         height unspecified. Set initialized to 0.
13925
13926         * syscommctrl.h new file. Encapsulates commctrl.h.
13927
13928         * syswindows.h new file. Encapsulates windows.h.
13929
13930         * ntplay.c: use new syswindows.h and syscommctrl.h header.
13931         * nt.c: ditto.
13932         * console-msw.h: ditto.
13933
13934         * redisplay-tty.c (tty_output_display_block): remove layout references.
13935
13936         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
13937         window handle rather than just the frame.
13938
13939         * glyphs.c (mark_image_instance): remove layout references.
13940         (print_image_instance): ditto.
13941         (image_instance_equal): ditto.
13942         (image_instance_hash): ditto.
13943         (decode_image_instance_type): ditto.
13944         (encode_image_instance_type): ditto.
13945         (image_instantiate): ditto.
13946         (allocate_glyph): ditto.
13947         (Fimage_instance_height): ditto.
13948         (Fimage_instance_width): ditto.
13949         (update_subwindow): ditto.
13950
13951         * redisplay-x.c (x_output_display_block): recode for layouts as
13952         widgets.
13953
13954         * redisplay-output.c (redisplay_output_layout): recode for layouts
13955         as widgets.
13956         (compare_runes): remove layout references.
13957
13958         * redisplay-msw.c (mswindows_output_display_block): recode for
13959         layouts as widgets.
13960
13961         * glyphs-widget.c (image_instantiator_layout): remove
13962         layout_possible_dest_types.
13963         (layout_possible_dest_types): deleted.
13964
13965         * glyphs.h (image_instance_type): remove layout references.
13966         (struct Lisp_Image_Instance): ditto. Add initialized flag.
13967         (IMAGE_INSTANCE_INITIALIZED): new accessor.
13968         (XIMAGE_INSTANCE_INITIALIZED): ditto.
13969
13970 2000-04-25  Andy Piper  <andy@xemacs.org>
13971
13972         * glyphs-widget.c (image_instantiator_buttons):
13973         (image_instantiator_edit_fields):
13974         (image_instantiator_combo_box):
13975         (image_instantiator_scrollbar):
13976         (image_instantiator_progress_guage):
13977         (image_instantiator_tree_view):
13978         (image_instantiator_tab_control):
13979         (image_instantiator_labels):
13980         (image_instantiator_layout): call default post_instantiate method.
13981         (widget_post_instantiate): new function. Simply lays out the
13982         widgets.
13983
13984         * glyphs.h (struct image_instantiator_methods): add
13985         post_instantiate method.
13986
13987         * glyphs.c (instantiate_image_instantiator): add post_instantiate
13988         method calls.
13989
13990 2000-04-23  Andy Piper  <andy@xemacs.org>
13991
13992         * glyphs.h (struct image_instantiator_methods): add
13993         decode_domain_method.
13994         (struct Lisp_Image_Instance): remove subwindow frame - it can be
13995         derived from the domain.
13996         (IMAGE_INSTANCE_FRAME): new accessor.
13997         (XIMAGE_INSTANCE_FRAME): ditto.
13998
13999         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
14000         instead of _SUBWINDOW_FRAME.
14001         (finalize_image_instance): ditto.
14002         (Fimage_instance_foreground): ditto.
14003         (Fimage_instance_background): ditto.
14004         (image_instantiate): ditto.
14005         (update_subwindow_cachel): ditto.
14006         (update_subwindow): ditto.
14007         (unmap_subwindow): ditto.
14008         (map_subwindow): ditto
14009         (subwindow_instantiate): ditto.
14010         * glyphs-msw.c (mswindows_update_widget): ditto.
14011         (mswindows_progress_gauge_instantiate): ditto.
14012         (mswindows_tab_control_update): ditto.
14013         * glyphs-x.c (x_update_widget): ditto.
14014         (x_widget_instantiate): ditto.
14015         (x_tab_control_instantiate): ditto.
14016         (x_tab_control_update): ditto.
14017         * event-msw.c (mswindows_wnd_proc): ditto
14018
14019         * glyphs-widget.c (image_instantiator_layout): use
14020         subwindow_decode_domain.
14021         (image_instantiator_buttons): ditto.
14022         (image_instantiator_edit_fields): ditto.
14023         (image_instantiator_combo_box): ditto.
14024         (image_instantiator_scrollbar): ditto.
14025         (image_instantiator_progress_guage): ditto.
14026         (image_instantiator_tree_view): ditto.
14027         (image_instantiator_tab_control): ditto.
14028         (image_instantiator_labels): ditto.
14029         (image_instantiator_layout): ditto.
14030
14031         * glyphs.c: add instance error checking to many functions.
14032         (instantiate_image_instantiator): decode device from cache_domain.
14033         (image_instantiate): partially rewrite by using
14034         decode_image_instantiator_domain to determine what domain the
14035         instance needs to be cached in.
14036         (decode_image_instantiator_domain): new function. Determine what
14037         domain the image needs to be cached in.
14038         (check_window_subwindow_cache): new error checking function.
14039         (check_instance_cache_mapper): ditto.
14040         (check_image_instance_structure): ditto.
14041         (subwindow_decode_domain): new function. Encodes a window as a
14042         subwindow's cache domain.
14043         (image_instantiator_format_create): use it for text and
14044         subwindows.
14045
14046 2000-04-21  Andy Piper  <andy@xemacs.org>
14047
14048         * glyphs.c (image_instance_device): new function.
14049         (image_instance_frame): new function.
14050         (image_instance_window): new function.
14051         (image_instance_live_p): new function.
14052
14053         * window.c (mark_window_as_deleted): reset the subwindow_instance_
14054         cache to nil.
14055
14056         * glyphs.h (struct Lisp_Image_Instance): device->domain.
14057         (IMAGE_INSTANCE_DOMAIN): new accessor.
14058         (XIMAGE_INSTANCE_DOMAIN): ditto.
14059
14060         * glyphs-x.c (x_finalize_image_instance): device->domain.
14061
14062         * glyphs-msw.c (init_image_instance_geometry): device->domain.
14063         (mswindows_finalize_image_instance): ditto.
14064
14065         * glyphs-eimage.c (jpeg_instantiate): device->domain.
14066         (gif_instantiate): ditto.
14067         (png_instantiate): ditto.
14068         (tiff_instantiate): ditto.
14069
14070         * glyphs.c (instantiate_image_instantiator): use domain rather
14071         than device.
14072         (mark_image_instance): device -> domain.
14073         (print_image_instance): ditto.
14074         (finalize_image_instance): ditto.
14075         (image_instance_equal): ditto.
14076         (allocate_image_instance): ditto.
14077         (Fcolorize_image_instance): ditto.
14078         (query_string_geometry): ditto.
14079         (image_instantiate): ditto
14080         (query_string_font): ditto.
14081         (image_instantiate): ditto.
14082         (update_subwindow): ditto.
14083         (unmap_subwindow): ditto.
14084         (map_subwindow): ditto.
14085         (subwindow_instantiate): ditto.
14086
14087         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
14088         (DOMAIN_FRAME): ditto.
14089         (DOMAIN_WINDOW): ditto.
14090         (DOMAIN_LIVE_P): ditto.
14091         (XDOMAIN_DEVICE): ditto.
14092         (XDOMAIN_FRAME): ditto.
14093         (XDOMAIN_WINDOW): ditto.
14094
14095         * specifier.c (Fvalid_specifier_domain_p): add image instances as
14096         a valid specifier domain.
14097
14098 2000-04-19  Andy Piper  <andy@xemacs.org>
14099
14100         * glyphs-widget.c (syms_of_glyphs_widget): remove
14101         widget-callback-current-channel.
14102         (vars_of_glyphs_widget): ditto.
14103         * glyphs.h: ditto
14104
14105         * gui.c (get_gui_callback): revert to previous behaviour.
14106
14107 2000-04-18  Andy Piper  <andy@xemacs.org>
14108
14109         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
14110         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
14111         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
14112
14113         * glyphs.c (image_instance_equal): add margin_width.
14114         (image_instance_hash): ditto.
14115
14116         * glyphs-widget.c (widget_instantiate): deal with margin-width.
14117         (layout_query_geometry): ditto.
14118         (layout_layout): ditto.
14119         (syms_of_glyphs_widget): add margin-width.
14120         (image_instantiator_layout): allow margin-width.
14121
14122         * glyphs.c (update_widget_instances): make a normal function.
14123         (syms_of_glyphs): remove Qupdate_widget_instances.
14124         * glyphs.h: ditto.
14125
14126         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
14127         so that we don't corrupt ideas about the last event or
14128         command. Remove widget-callback-current-channel fiddling.
14129         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
14130
14131 2000-05-01  Martin Buchholz <martin@xemacs.org>
14132
14133         * XEmacs 21.2.33 is released.
14134
14135 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
14136
14137         * make-src-depend: Allow dots in header file name.
14138
14139 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
14140
14141         * mule-charset.h (struct charset_lookup): Add
14142         next_allocated_1_byte_leading_byte and
14143         next_allocated_2_byte_leading_byte.
14144         * mule-charset.c: Move above two variables so that those values
14145         will be dumped.
14146
14147 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14148
14149         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14150         when string length is zero.
14151         (find_charsets_in_emchar_string): Ditto.
14152
14153 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14154
14155         * lisp.h: extern Qdialog and Qmenubar.
14156
14157         * gui-x.c: added events.h.
14158                 also fixed typo which made the file uncompilable.
14159
14160         * general.c: Added Qmenubar and Qdialog
14161
14162 2000-04-28  Ben Wing  <ben@xemacs.org>
14163
14164         * frame-msw.c (mswindows_init_frame_1):
14165         * frame-msw.c (mswindows_mark_frame):
14166         * event-msw.c (mswindows_enqueue_dispatch_event):
14167         * console-msw.h:
14168         * console-msw.h (struct mswindows_frame):
14169         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14170         there are now three hash tables for callbacks.
14171         mswindows_enqueue_dispatch_event is no longer static.
14172
14173         * dialog-x.c (maybe_run_dbox_text_callback):
14174         * dialog-x.c (dbox_descriptor_to_widget_value):
14175         switch to new cons3 form for callbacks.
14176
14177         * glyphs-msw.c (mswindows_register_gui_item):
14178         * glyphs-msw.c (mswindows_widget_instantiate):
14179         * glyphs-msw.c (add_tree_item):
14180         * glyphs-msw.c (add_tab_item):
14181         new image instance parameter, so it can be passed to callback-ex.
14182         respect :callback-ex as well as :callback.
14183
14184         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14185         add :callback-ex.
14186
14187         * glyphs.c (print_image_instance):
14188         prettify, e.g. now prints widget type.
14189
14190         * gui-x.h:
14191         certain funs have new image instance parameter.
14192
14193         * gui.c:
14194         * gui.c (get_gui_callback):
14195         * gui.c (gui_item_add_keyval_pair):
14196         * gui.c (gui_item_init):
14197         * gui.c (gui_add_item_keywords_to_plist):
14198         * gui.c (mark_gui_item):
14199         * gui.c (gui_item_hash):
14200         * gui.c (gui_item_equal):
14201         * gui.c (copy_gui_item):
14202         * gui.c (syms_of_gui):
14203         recognize callback-ex in a number of places.
14204         also, fix the annoying "can't get out of yes-no dialog" bug.
14205
14206         * gui.h:
14207         * gui.h (struct Lisp_Gui_Item):
14208         recognize callback-ex in a number of places.
14209
14210         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14211         new parameter in button_item_to_widget_value.
14212
14213         * glyphs-x.c (x_update_widget):
14214         * glyphs-x.c (x_button_instantiate):
14215         * glyphs-x.c (x_button_update):
14216         * glyphs-x.c (x_progress_gauge_instantiate):
14217         * glyphs-x.c (x_edit_field_instantiate):
14218         * glyphs-x.c (x_combo_box_instantiate):
14219         * glyphs-x.c (x_tab_control_instantiate):
14220         * glyphs-x.c (x_label_instantiate):
14221         new image instance parameter in various places.
14222
14223         * event-Xt.c:
14224         * event-Xt.c (enqueue_Xt_dispatch_event):
14225         this fun gets exported.
14226
14227         * gui-msw.c:
14228         * gui-msw.c (mswindows_handle_gui_wm_command):
14229         handle both :callback and :callback-ex, and generate our own
14230         event because it's one of the callback-ex arguments.
14231
14232         * gui-x.c:
14233         * gui-x.c (popup_selection_callback):
14234         handle both :callback and :callback-ex, and generate our own
14235         event because it's one of the callback-ex arguments.
14236         * gui-x.c (button_item_to_widget_value):
14237         * gui-x.c (gui_items_to_widget_values_1):
14238         * gui-x.c (gui_item_children_to_widget_values):
14239         * gui-x.c (gui_items_to_widget_values):
14240         new image instance parameter in various places.
14241
14242         * fns.c (Freplace_list):
14243         fix small typo in doc string.
14244
14245         * lisp.h:
14246         declare enqueue_Xt_dispatch_event.
14247
14248 2000-04-28  Ben Wing  <ben@xemacs.org>
14249
14250         * buffer.c:
14251         * buffer.c (Frecord_buffer):
14252         * buffer.c (syms_of_buffer):
14253         delete record-buffer-hook.
14254
14255         * fns.c:
14256         * fns.c (Freplace_list):
14257         * fns.c (syms_of_fns):
14258         new primitive replace-list.
14259
14260         * frameslots.h:
14261         slot for old buffer-alist.
14262
14263         * lisp.h:
14264         exfun replace-list.
14265
14266         * redisplay.c:
14267         * redisplay.c (redisplay_frame):
14268         * redisplay.c (syms_of_redisplay):
14269         * redisplay.c (vars_of_redisplay):
14270         new hook buffer-list-changed-hook.
14271         call it.
14272
14273 2000-04-27  Ben Wing  <ben@xemacs.org>
14274
14275         * extents.h: extern in_modeline_generation.
14276
14277         * redisplay.c (generate_formatted_string_db): set
14278         in_modeline_generation.
14279
14280         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14281         flags if in modeline generation.  otherwise frame-modified-tick
14282         is ticked far too often.
14283         Declare in_modeline_generation.
14284
14285 2000-04-26  Ben Wing  <ben@xemacs.org>
14286
14287         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14288         option.
14289         (vars_of_emacs): add quick-build as an error-checking option.
14290         A bit kludgy, but there doesn't seem much point in creating
14291         a real var for this.
14292
14293         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14294
14295 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14296
14297         * redisplay.h (struct display_line): Add a new variable,
14298         line_continuation.
14299
14300         * redisplay.c (create_text_block): Set dl->line_continuation if
14301         the line continues.
14302         (create_string_text_block): Ditto.
14303         (regenerate_window_incrementally): Use line_continuation instead
14304         of searching continuation glyph.
14305         (add_margin_runes): Call add_glyph_rune.
14306         (add_glyph_rune): Handle margin glyph.
14307
14308 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14309
14310         * filelock.c (fill_in_lock_file_name):
14311         ANSIfy.
14312         Check for IS_ANY_SEP instead of '/'.
14313         (lock_file_1):
14314         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14315         Never check errno without first seeing that system call failed.
14316         (unlock_file): Add GCPRO.
14317         (Flock_buffer): Fix docstring.
14318         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14319
14320 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14321
14322         * sysdep.c (get_pty_max_bytes):
14323         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14324         strings longer than 252 bytes.
14325
14326         * md5.c: Unconditionally include ANSI header <limits.h>
14327
14328         * glyphs-x.c (convert_EImage_to_XImage):
14329         * lisp-union.h (union Lisp_Object):
14330         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14331
14332 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14333
14334         * filelock.c (current_lock_owner): Remove unused variable o, p.
14335
14336 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14337
14338         * callint.c: Remove multiply defined symbol Qlet
14339         (syms_of_callint): ditto.
14340
14341 2000-04-14  Andy Piper  <andy@xemacs.org>
14342
14343         * general.c (syms_of_general): add last-command, this-command, let
14344         and funcall.
14345
14346         * lisp.h: declare various symbols.
14347
14348         * glyphs.h: declare Qwidget_callback_current_channel;
14349
14350         * glyphs-widget.c (syms_of_glyphs_widget): add
14351         Qgui_callback_current_channel.
14352         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14353
14354         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14355         widget-callback-current-channel when invoking the interactive
14356         arg. Also bind last-command and next-command when invoking the
14357         widget updates.
14358         * gui-x.c (popup_selection_callback): ditto.
14359
14360         * gui.c (get_gui_callback): massage args so that we are always
14361         calling eval. This allows us to add our own variable bindings
14362         outside.
14363
14364         * glyphs-x.c (x_button_instantiate): use
14365         gui_items_to_widget_values since this is GC safe.
14366         (x_progress_gauge_instantiate): ditto.
14367         (x_edit_field_instantiate): ditto.
14368         (x_label_instantiate): ditto.
14369
14370         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14371         (emacs_Xt_event_widget_focus_out): new function
14372         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14373         focus.
14374         (emacs_Xt_event_add_widget_actions): new function. add focus
14375         functions as actions.
14376         (init_event_Xt_late): use it.
14377
14378 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14379
14380         * event-stream.c (Fdispatch_event): Doc fix.
14381
14382 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14383
14384         * postgresql.c: Remove all references to PQsetenv*.
14385
14386         * postgresql.h: Remove references to PGsetenvHandler object.
14387         * lrecord.h (lrecord_type): Ditto.
14388
14389 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14390
14391         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14392         real_heigh and real_width members, and accessor macros for these.
14393
14394         * glyphs-msw.c (init_image_instance_geometry): New function.
14395         (init_image_instance_from_dibitmap): Use it.
14396         (mswindows_resource_instantiate): Use it.
14397         (init_image_instance_from_xbm_inline): Use it.
14398         (mswindows_initialize_image_instance_mask): Use real bitmap
14399         geometry.
14400         (mswindows_create_resized_bitmap): Ditto.
14401         (mswindows_create_resized_mask): Ditto.
14402
14403         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14404         and bitmap to their surface size.
14405
14406 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14407
14408         * process-unix.c (unix_send_process): Guard against process MIA
14409         after Faccept_process_output.
14410
14411 2000-04-11  Ben Wing  <ben@xemacs.org>
14412
14413         * eval.c (unbind_to_hairy): fix brokenness introduced by
14414         nanosecond speed improvements.
14415
14416 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14417
14418         * sunplay.c (init_device): To play sounds correctly, the device
14419         apparently needs to be initialized at least once by XEmacs.  Make
14420         it so.
14421
14422 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14423
14424         * redisplay.c (add_margin_runes): Add text image glyph
14425           handling.
14426
14427 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14428
14429         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14430         gcc is newer than 2.5.
14431
14432 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14433
14434         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14435
14436         * fns.c (size_bit_vector):
14437         * alloc.c (size_vector):
14438         (make_vector_internal):
14439         (make_bit_vector_internal):
14440         (sweep_bit_vectors_1):
14441         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14442
14443 2000-04-06  Andy Piper  <andy@xemacs.org>
14444
14445         * gmalloc.c (malloc): undo previous change.
14446         (malloc): ditto.
14447         (free): ditto.
14448         (realloc): ditto.
14449
14450 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14451
14452         * line-number.c (buffer_line_number): Revert to former version.
14453
14454 2000-04-06  Andy Piper  <andy@xemacs.org>
14455
14456         * gmalloc.c (malloc): add error checking.
14457         (malloc): ditto.
14458         (free): ditto.
14459         (realloc): ditto.
14460
14461         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14462         button_item_to_widget_value arg.
14463
14464         * glyphs-x.c (x_button_instantiate): add extra
14465         button_item_to_widget_value arg.
14466         (x_progress_gauge_instantiate): ditto.
14467         (x_edit_field_instantiate): ditto.
14468         (x_label_instantiate): ditto.
14469
14470         * gui-x.c (gui_items_to_widget_values_1): add extra
14471         button_item_to_widget_value arg.
14472         (button_item_to_widget_value): add extra menu_item_p arg.
14473
14474         * gui-x.h: change signature of button_item_to_widget_value.
14475
14476         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14477         button_item_to_widget_value arg.
14478
14479 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14480
14481         * buffer.h (struct buffer): auto_save_modified should be long.
14482
14483 2000-04-05  Andy Piper  <andy@xemacs.org>
14484
14485         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14486         type.
14487         (button_query_geometry): give a little more room so that athena
14488         buttons fit.
14489
14490 2000-04-05  Andy Piper  <andy@xemacs.org>
14491
14492         * faces.c (complex_vars_of_faces): The widget face should inherit
14493         the font of the gui-element face.
14494
14495 2000-04-04  Andy Piper  <andy@xemacs.org>
14496
14497         * glyphs-x.c (x_button_update): new function. unconditionally
14498         update a button's state when the instance is dirty.
14499         (image_instantiator_format_create_glyphs_x): add x_button_update.
14500         (x_widget_instantiate): remove old resize cruft.
14501
14502 2000-04-02  Andy Piper  <andy@xemacs.org>
14503
14504         * frame.c (change_frame_size_1): The introduction of gutters means
14505         that we need to allow 0 as a potential frame dimension.
14506
14507 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14508
14509         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14510         image glyph if allow_cursor.
14511         (add_hscroll_rune): Don't allow cursor to border glyph.
14512         (create_text_block): Ditto.
14513
14514         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14515         text not in buffer.
14516         (redisplay_output_layout): Call ensure_face_cachel_complete for
14517         text image glyph.
14518
14519
14520 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14521
14522         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14523
14524         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14525         not in buffer
14526
14527         * redisplay-tty.c (tty_output_display_block): Delete the routine
14528         for text image glyph
14529         * redisplay-x.c (x_output_display_block): ditto
14530         * redisplay-msw.c (mswindows_output_display_block): ditto
14531
14532 2000-02-02  Mike Alexander  <mta@arbortext.com>
14533
14534         Note: Some of these were committed by accident as part of other
14535         patches.
14536
14537         * regex.c (regex_compile): Avoid compiler warnings.
14538
14539         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14540
14541         * nt.h: Declare term_ntproc correctly.
14542
14543         * nt.c: Remove incorrect declaration of get_home_directory which
14544         is declared correctly in lisp.h.
14545
14546         * keymap.c (get_keyelt): Avoid compiler warnings.
14547         (raw_lookup_key_mapper): Avoid compiler warnings.
14548
14549         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14550
14551         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14552
14553         * filemode.c (mode_string): Avoid compiler warnings.
14554
14555         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14556         avoid warning.
14557
14558         * events-mod.h: Undef some things that winuser.h defines differently.
14559
14560         * data.c (Faset): Avoid compiler warnings.
14561
14562         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14563
14564 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14565
14566         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14567         Fall through to simple beep on error.
14568         Replace "extern" by real header file.
14569
14570         * linuxplay.c: Use nativesound.h
14571         (play_sound_data): Return error code. Be less verbose on error.
14572
14573         * sunplay.c: Use nativesound.h
14574         (play_sound_data): Return error code. Be less verbose on error.
14575
14576         * ntplay.c: Use nativesound.h
14577         (play_sound_data): Return fake error code
14578
14579         * sgiplay.c: Use nativesound.h
14580         (play_sound_data): Return error code
14581
14582         * hpplay.c: Use nativesound.h, partially implement
14583         new error code. Break compilation until finished.
14584         (play_sound_data): error code.
14585
14586         * nativesound.h (play_sound_file):
14587           (play_sound_data): Prototype in new header.
14588
14589 2000-03-31  Andy Piper  <andy@xemacs.org>
14590
14591         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14592         for toggle and radio buttons.
14593         (image_instantiator_buttons): use it.
14594
14595 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14596
14597         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14598         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14599         found. Scrollbar event probably belonged to some old config.
14600
14601 2000-03-31  Andy Piper  <andy@xemacs.org>
14602
14603         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14604         than 1.
14605         (initialize_widget_image_instance): default layout to
14606         LAYOUT_HORIZONTAL rather than 0.
14607         (widget_instantiate): reverse the item list at the end rather than
14608         every iteration.
14609         (layout_layout): re-code for the border text at the front of the
14610         item list rather than at the end.
14611         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14612         provided by the user.
14613         (widget_query_geometry): comment.
14614
14615 2000-03-30  Andy Piper  <andy@xemacs.org>
14616
14617         * glyphs-widget.c (image_instantiator_layout): allow standard
14618         widget keywords in layouts.
14619
14620         * gutter.c (output_gutter): cope with nil gutter contents.
14621
14622         * frame.c (Fset_frame_properties): add gutter docs.
14623
14624 2000-03-29  Andy Piper  <andy@xemacs.org>
14625
14626         * toolbar-msw.c (TBSTYLE_FLAT): add.
14627         (mswindows_output_toolbar): minor fiddling.
14628
14629 2000-03-29  Andy Piper  <andy@xemacs.org>
14630
14631         * gutter.c (output_gutter): force gutter size recalculation if
14632         what we are trying to display won't fit.
14633         (update_gutter_geometry): new function. A per-gutter version of
14634         update_frame_gutter_geometry.
14635         (update_frame_gutter_geometry): use it.
14636         (redraw_exposed_gutter): add extra debugging output.
14637
14638 2000-03-28  Mike Alexander  <mta@arbortext.com>
14639
14640         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
14641         (pdump_file_unmap): Implement it on Windows
14642         (pdump_file_get): Save alocated handles for pdump_file_unmap
14643
14644 2000-03-28  Andy Piper  <andy@xemacs.org>
14645
14646         * gui.c (get_gui_callback): treat Quit specially.
14647
14648 2000-03-27  Andy Piper  <andy@xemacs.org>
14649
14650         * glyphs.c (image_instantiate): be careful to check in the same
14651         way we assigned.
14652
14653 2000-03-27  Didier Verna  <didier@xemacs.org>
14654
14655         * config.h.in: define the proper SMART_INCLUDE macro.
14656         handle renaming of `foo_h_path' to `foo_h_file'.
14657
14658         * database.c: ditto.
14659
14660         * emacs.c: ditto.
14661
14662         * linuxplay.c: ditto.
14663
14664         * terminfo.c: ditto.
14665
14666         * tooltalk.h: ditto.
14667
14668 2000-03-27  Andy Piper  <andy@xemacs.org>
14669
14670         * glyphs-msw.c (mswindows_update_widget): make sure the widget
14671         gets updated whenever the face might have changed.
14672
14673 2000-03-26  Mike Alexander  <mta@arbortext.com>
14674
14675         * dumper.c (pdump_resource_free): Fix the comment.
14676
14677 2000-03-21  Olivier Galibert  <galibert@pobox.com>
14678
14679         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
14680
14681 2000-03-22  Mike Alexander  <mta@arbortext.com>
14682
14683         * dumper.c: Include Windows headers on Windows
14684         (pdump_resource_free): Add a body to the function
14685         (pdump_load): exe_name -> exe_path and add some comments.
14686
14687 2000-03-25  Mike Alexander  <mta@arbortext.com>
14688
14689         * gui.c (copy_gui_item_tree): Return a value in all cases
14690
14691 2000-03-21  Didier Verna  <didier@xemacs.org>
14692
14693         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
14694         lwlib/config.h.in.
14695         (SMART_INCLUDE): new macro.
14696         (POSTGRES_INCLUDE): new macro to include postgresql headers from
14697         the proper location.
14698
14699         * postgresql.c: use it.
14700
14701         * inline.c: ditto.
14702
14703 2000-03-24  Andy Piper  <andy@xemacs.org>
14704
14705         * gutter.c (redraw_exposed_gutters): must be "in display" when we
14706         do this.
14707
14708 2000-03-24  Andy Piper  <andy@xemacs.org>
14709
14710         * redisplay-output.c (compare_runes): use image_instance_changed
14711         to detect changes. Do not depend on glyphs_changed, only depend on
14712         dirtiness.
14713          (redisplay_output_layout): add debug messages.
14714         (compare_runes): ditto.
14715
14716         * glyphs.h: declare new functions.
14717         (struct Lisp_Image_Instance): remove percent and associated
14718         accessors.
14719
14720         * gui.h: declare new copying functions.
14721
14722         * gui.c (copy_gui_item_tree): new function.
14723         (copy_gui_item): new function.
14724         (gui_item_id_hash): revert to standard hash.
14725         (gui_item_hash): ditto.
14726         (gui_item_hash_internal): deleted.
14727         (mark_gui_item): mark value.
14728         (gui_item_add_keyval_pair): add value.
14729         (gui_item_init): ditto.
14730         (gui_add_item_keywords_to_plist): ditto.
14731         (gui_item_equal): ditto.
14732         (syms_of_gui): add Q_value.
14733
14734         * glyphs-x.c (x_progress_gauge_update): use pending items and
14735         value for setting the state.
14736         (x_update_widget): don't set items from pending here.
14737
14738         * glyphs-widget.c (update_widget): update items here.
14739         (progress_gauge_set_property): use items for storing value. Put
14740         new value in pending items.
14741
14742         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
14743         items for new value. Convert percent -> value.
14744         (mswindows_tab_control_update): don't update items here.
14745
14746         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
14747         (update_subwindow): ditto.
14748         (image_instance_changed): new function. Compare hash values and
14749         past and present widget items.
14750         (image_instantiate): We more careful about where we instantiate
14751         things.
14752         (image_instantiate): add error checking.
14753
14754         * gutter.c (syms_of_gutter): use -hook.
14755
14756 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
14757
14758         * console-tty.c (Fset_console_tty_input_coding_system): Use
14759         Qkeyboard.
14760         (Fset_console_tty_output_coding_system): Use Qterminal.
14761         (tty_init_console): Use Qkeyboard and Qterminal.
14762
14763 2000-03-21  Ben Wing  <ben@xemacs.org>
14764
14765         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
14766         From Mike Alexander <mta@arbortext.com>.
14767
14768 2000-03-21  Ben Wing  <ben@xemacs.org>
14769
14770         * event-msw.c (mswindows_need_event): Horrible kludge to fix
14771         process brokenness.  Proper implementation to come.
14772         * callproc.c:
14773         Rename call-process-internal to old-call-process-internal.
14774         New impl. in process.el.
14775
14776 2000-03-21  Martin Buchholz  <martin@xemacs.org>
14777
14778         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
14779
14780 2000-03-20  Andy Piper  <andy@xemacs.org>
14781
14782         * glyphs.c (full_list_hash): make hashes of the same elements in
14783         different orders return different values.
14784
14785 2000-03-20  Martin Buchholz <martin@xemacs.org>
14786
14787         * XEmacs 21.2.32 is released.
14788
14789 2000-03-20  Martin Buchholz  <martin@xemacs.org>
14790
14791         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
14792         (DFC_MALLOC_USE_CONVERTED_DATA):
14793         Add aliasing-safe casts to allow use with char* or unsigned char*
14794         lvalues.
14795
14796         * eldap.c (Fldap_open):
14797         (Fldap_search_basic):
14798         (Fldap_add):
14799         (Fldap_modify):
14800         Make C++-compilable.
14801         Make sure GCPRO'ed variables are initialized.
14802         Use temp variables to avoid repeated calls to Flength.
14803
14804 2000-03-16  Martin Buchholz  <martin@xemacs.org>
14805
14806         * sysfile.h:
14807         Make sure PATH_MAX is always defined.
14808         Include limits.h for PATH_MAX.
14809         Deprecate use of MAXPATHLEN.
14810
14811 2000-03-10  Martin Buchholz  <martin@xemacs.org>
14812
14813         * emacs.c: Add reinit_vars_of_fileio.
14814         * symsinit.h: Add reinit_vars_of_fileio.
14815         * fileio.c (reinit_vars_of_fileio): New.
14816         * fileio.c (Fmake_temp_name):
14817         Initialize temp_name random number from microseconds to make
14818         collisions even less likely.  Initialize always at process startup
14819         time.  (make-temp-name) used to return the same file name twice in
14820         a row when PDUMP.
14821         Random stylistic fiddling.
14822         Comment fixes.
14823
14824 2000-03-20  Andy Piper  <andy@xemacs.org>
14825
14826         * glyphs.c (image_instantiate): allow text glyphs to be
14827         instantiated in the minibuffer window.
14828
14829 2000-03-19  Andy Piper  <andy@xemacs.org>
14830
14831         * glyphs.c (image_instance_hash): be careful about which items we
14832         hash on.
14833
14834         * glyphs-widget.c (tab_control_set_property): record into pending
14835         items rather than the actual items.
14836
14837         * glyphs-x.c (x_update_widget): use pending items to update with.
14838
14839         * glyphs-msw.c (mswindows_tab_control_update): use pending items
14840         to update with.
14841
14842         * glyphs.c (mark_image_instance): mark pending items.
14843
14844         * window.c (Fset_window_configuration): record the buffer.
14845         (Fselect_window): totally revert previous change which breaks many
14846         things.
14847
14848 2000-03-18  Andy Piper  <andy@xemacs.org>
14849
14850         * glyphs-msw.c (mswindows_tab_control_update): force selected
14851         item.
14852
14853         * glyphs.c (image_instantiate): don't allow the minibuffer as a
14854         window domain cache, otherwise we get inconsistencies at
14855         startup. There is something fishy at startup which can lead to the
14856         minibuffer being the selected window when the gutter content is
14857         instantiated.
14858
14859         * gui.c (parse_gui_item_tree_list): add probably unnecessary
14860         gcpros.
14861         (parse_gui_item_tree_children): ditto.
14862         (parse_gui_item_tree_item): ditto.
14863
14864         * glyphs.c (Fupdate_widget_instances): return something.
14865
14866 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
14867
14868         * window.c (Fselect_window): Undo 2000-03-17 change.
14869
14870 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
14871
14872         * postgresql.c (Fpq_setenv): Remove this turkey when linking
14873         against v7.0 libraries.  Insta-coredump city until the postgres
14874         folks fix it.
14875
14876 2000-03-17  Andy Piper  <andy@xemacs.org>
14877
14878         * faces.c (complex_vars_of_faces): don't give the widget face an
14879         inherited background pixmap.
14880
14881         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
14882         selected item.
14883
14884         * event-stream.c (Fdispatch_non_command_events): return something.
14885
14886         * gutter.c (output_gutter): use widget face.
14887         (clear_gutter): ditto.
14888
14889         * NEWS: adjust again.
14890
14891         * window.c (Fselect_window): make sure this runs to completion to
14892         avoid oddities with Fset_window_configuration.
14893         (Fcurrent_window_configuration): in general do not save the
14894         minibuffer as the selected window.
14895
14896         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
14897
14898 2000-03-16  Olivier Galibert  <galibert@pobox.com>
14899
14900         * emacs.c (Frunning_temacs_p): Revert previous patch.
14901         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
14902
14903 2000-03-16  Andy Piper  <andy@xemacs.org>
14904
14905         * glyphs-x.c (x_tab_control_update): if no widget values then
14906         return.
14907
14908         * NEWS: update for new features.
14909
14910         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
14911         synthetic event to the native system.
14912         (reinit_vars_of_event_Xt): set force_event_pending to
14913         emacs_Xt_force_event_pending.
14914
14915         * events.h (struct event_stream): add force_event_pending.
14916
14917         * specifier.c (recompute_one_cached_specifier_in_window): add
14918         comment.
14919
14920         * redisplay.c (redisplay_frame): don't call
14921         update_frame_subwindows. Reset subwindow cachels when
14922         subwindows_changed, removing this was an optimization too far.
14923
14924         * redisplay-output.c (compare_runes): reorganize so that we catch
14925         glyph changes when we want them. Set optimize_output when this
14926         would help layouts.
14927         (redisplay_output_layout): remove frame_really_changed, use
14928         optimize_output instead.
14929
14930         * redisplay-msw.c (mswindows_output_display_block): reset
14931         optimize_output after outputting a glyph.
14932         * redisplay-x.c (x_output_display_block): ditto.
14933         * redisplay-tty.c (tty_output_display_block): ditto.
14934
14935         * gutter.c: (specifier_vars_of_gutter): use new spec changed
14936         functions.
14937         (gutter_specs_changed): do specific gutter positions.
14938         (top_gutter_specs_changed): new function. Only update the
14939         specified gutter specs.
14940         (bottom_gutter_specs_changed): ditto.
14941         (left_gutter_specs_changed): ditto.
14942         (right_gutter_specs_changed): ditto.
14943
14944         * gui.c (gui_item_hash_internal): new function, does a real hash.
14945         (gui_item_id_hash): use it.
14946         (gui_item_hash): hash the eval'ed gui_item.
14947
14948         * gui-x.c (popup_selection_callback): send an eval event to call
14949         Fupdate_widget_instances.
14950
14951         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
14952         to call Fupdate_widget_instances.
14953
14954         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
14955         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
14956
14957         * glyphs.c: (update_frame_subwindows): deleted.
14958         (Fupdate_widget_instances): new function for updating the dirty
14959         state of widgets that might have changed.
14960         (syms_of_glyphs): add Qupdate_widget_instances.
14961         (full_list_hash): hash a list completely.
14962         (image_instance_hash): use it for items and properties.
14963
14964         * frame-msw.c (mswindows_size_frame_internal): remove unused
14965         variable.
14966
14967         * faces.h (struct face_cachel): fix comment.
14968
14969         * event-stream.c (Fdispatch_non_command_events): new
14970         function. Process non-command events, forcing an event cycle
14971         beforehand.
14972         (syms_of_event_stream): declare.
14973         (event_stream_force_event_pending): new function. Force an event
14974         on the native event queue so that an event cycle will occur next
14975         time we check.
14976
14977         * event-msw.c:
14978         (struct ntpipe_shove_stream):
14979         (mswindows_enqueue_dispatch_event):
14980         (mswindows_dequeue_dispatch_event):
14981         (mswindows_cancel_dispatch_event):
14982         (mswindows_pump_outstanding_events):
14983         (mswindows_drain_windows_queue):
14984         (mswindows_handle_paint):
14985         (mswindows_wnd_proc):
14986         (mswindows_key_to_emacs_keysym):
14987         (get_process_input_waitable):
14988         (emacs_mswindows_delete_stream_pair): re-indent file.
14989         (mswindows_need_event): do not process further fds if the windows
14990         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
14991         fixes the 100% cpu problem.
14992         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
14993
14994 2000-03-15  Olivier Galibert  <galibert@pobox.com>
14995
14996         * alloc.h: New.
14997         * dumper.h: New.
14998         * dumper.c: New.
14999
15000         * emacs.c: Moved dump file searching to dumper.c.
15001         (Frunning_temacs_p): Fixed.
15002
15003         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
15004         last_lrecord_type_index_assigned.
15005
15006 2000-02-20  Olivier Galibert  <galibert@pobox.com>
15007
15008         * symsinit.h: Added reinit parameter to init_console_stream
15009         declaration.
15010
15011         * lisp.h: Added file parameter to pdump_load declaration.
15012
15013         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
15014         support.  Added dump file searching.
15015
15016         * config.h.in: Added EMACS_PROGNAME.
15017
15018         * console-stream.c (init_console_stream): Fix reinitialisation
15019         when running from temacs.
15020
15021         * alloc.c (pdump): Add id support.
15022         (pdump_load): Add file parameter and signature/id support.
15023
15024         * Makefile.in.in: Add full pdump support.
15025
15026 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
15027
15028         * postgresql.c: Update documentation to reflect latest code
15029         status.
15030         (print_result): Show tuple counts in printed representation when
15031         appropriate.
15032         (Fpq_put_nbytes): MULE-ize.
15033         (Fpq_get_line_async): Ditto.
15034
15035 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15036
15037         * postgresql.c (Fpq_lo_import): Fix return value.
15038         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
15039
15040 2000-03-13  Ben Wing  <ben@xemacs.org>
15041
15042         * alloc.c (pdump_load):
15043         Fix compile warning under mswin.
15044
15045 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
15046
15047         * postgresql.c: Mule-ization, bug fixes.
15048         Use PG_CODING to encapsulate coding system name changes.
15049         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
15050         (pg-coding-system): Create.
15051
15052         (Fpq_conn_defaults): Mule-ize.
15053         (Fpq_connectdb): Mule-ize & bug fix.
15054         (Fpq_connect_start): Mule-ize.
15055         (Fpq_set_client_encoding): Mule-ize.
15056         (Fpq_finish): Document `DEAD' connection status.
15057         (Fpq_clear): Ditto.
15058         (Fpq_pgconn): Mule-ize.
15059         (Fpq_exec): Mule-ize & bug fix.
15060         (Fpq_send_query): Ditto.
15061         (Fpq_get_result): Ditto.
15062         (Fpq_res_status): Mule-ize.
15063         (Fpq_result_error_message): Mule-ize.
15064         (Fpq_ntuples): fix comments.
15065         (Fpq_fname): Mule-ize.
15066         (Fpq_fnumber): Mule-ize.
15067         (Fpq_ftype): fix comments.
15068         (Fpq_get_value): Mule-ize.
15069         (Fpq_cmd_status): Ditto.
15070         (Fpq_cmd_tuples): Ditto.
15071         (Fpq_oid_value): Ditto.
15072         (Fpq_notifies): Ditto.
15073         (Fpq_lo_import): Ditto.
15074         (Fpq_lo_export): Ditto.
15075         (Fpq_get_line): Ditto.
15076         (Fpq_put_line): Mule-ize and bug fix.
15077         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
15078
15079 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15080
15081         * postgresql.c (vars_of_postgresql): Mule-ize.
15082         (Fpq_conn_defaults): Ditto.
15083
15084 2000-03-12  Ben Wing  <ben@xemacs.org>
15085
15086         * alloc.c (Fmake_byte_code):
15087         * alloc.c (debug_string_purity_print):
15088         * alloc.c (pdump_backtrace):
15089         * alloc.c (pdump_get_indirect_count):
15090         * alloc.c (pdump_register_sub):
15091         * alloc.c (pdump_register_object):
15092         * alloc.c (pdump_register_struct):
15093         * alloc.c (pdump_dump_data):
15094         * alloc.c (pdump_reloc_one):
15095         Minor cleanups.
15096
15097         * console-msw.c:
15098         * console-msw.c (GetConsoleHwnd):
15099         * console-msw.c (msw_hide_console):
15100         * console-msw.c (msw_show_console):
15101         * console-msw.c (msw_ensure_console_buffered):
15102         * console-msw.c (msw_output_console_string):
15103         * console-msw.c (console_type_create_mswindows):
15104
15105         a) Added functions to manipulate the console window for use with
15106         shell support.
15107
15108         b) Added support for writing text to the console, which is now
15109         used under Windows when xemacs is not being run non-interactively,
15110         to write text that would otherwise be destined for stdout because
15111         under these circumstances, text written to stdout tends to
15112         disappear and not be seen.
15113
15114         * console-msw.h:
15115         * event-Xt.c:
15116         * event-Xt.c (x_event_to_emacs_event):
15117         * event-Xt.c (describe_event_window):
15118         * events-mod.h (XEMACS_MOD_CONTROL):
15119         * events.c:
15120         * events.c (Fmake_event):
15121         * events.c (character_to_event):
15122         * events.c (event_to_character):
15123         * events.c (format_event_object):
15124         * events.c (Fevent_modifiers):
15125         * events.h:
15126         * events.h (struct key_data):
15127         * events.h (struct button_data):
15128         * events.h (struct misc_user_data):
15129         * frame-x.c (Fcde_start_drag_internal):
15130         * frame-x.c (Foffix_start_drag_internal):
15131         * gpmevent.c (Freceive_gpm_event):
15132         * keymap.c:
15133         * keymap.c (bucky_sym_to_bucky_bit):
15134         * keymap.c (control_meta_superify):
15135         * keymap.c (make_key_description):
15136         * keymap.c (keymap_lookup_directly):
15137         * keymap.c (create_bucky_submap):
15138         * keymap.c (keymap_store):
15139         * keymap.c (define_key_check_and_coerce_keysym):
15140         * keymap.c (define_key_parser):
15141         * keymap.c (define_key_alternate_name):
15142         * keymap.c (Fdefine_key):
15143         * keymap.c (raw_lookup_key_mapper):
15144         * keymap.c (struct map_keymap_unsorted_closure):
15145         * keymap.c (map_keymap_unsorted_mapper):
15146         * keymap.c (map_keymap_sort_predicate):
15147         * keymap.c (map_keymap_sorted):
15148         * keymap.c (accessible_keymaps_mapper_1):
15149         * keymap.c (where_is_recursive_mapper):
15150         * keymap.c (describe_map_mapper):
15151         * keymap.c (describe_map_sort_predicate):
15152         * keymap.c (describe_map):
15153         * keymap.c (complex_vars_of_keymap):
15154         And a number of other files, the key modifier preprocessor
15155         constants that xemacs uses have names that conflict with constants
15156         defined under MS Windows for other purposes, so they were renamed
15157         to begin with the prefix XEMACS_. The variables that hold such
15158         modifiers were changed to consistently be of type int to fix
15159         various compile warnings.
15160
15161         * console.c (complex_vars_of_console):
15162         * device.c:
15163         * device-msw.c:
15164         * device-msw.c (mswindows_finish_init_device):
15165         * device-msw.c (msw_get_workspace_coords):
15166         * device-msw.c (mswindows_device_system_metrics):
15167         and various other files, added support for a new
15168         device property called offset-workspace which returns the position
15169         of the upper left corner of the workspace area and goes along with
15170         the existing size-workspace property.
15171
15172         * dialog-msw.c:
15173         * dialog-msw.c (push_bufbyte_string_as_unicode):
15174         * dialog-msw.c (mswindows_popup_dialog_box):
15175         Added support for XEmacs-style accelerator specifications in
15176         button text.  Note: I didn't add support for this under X Windows,
15177         and somebody needs to do this.
15178
15179         * dialog.c:
15180         * dialog.c (Fpopup_dialog_box):
15181         Documented the support for accelerators that was just mentioned.
15182
15183         editfns.c (get_home_directory): Changed behavior under Windows
15184         when HOME not defined; former behavior was irretrievably broken.
15185
15186         * emacs.c:
15187         * emacs.c (main_1):
15188         * emacs.c (main):
15189         * minibuf.c (clear_echo_area_internal):
15190         * minibuf.c (echo_area_append):
15191         * print.c:
15192         * print.c (std_handle_out_external):
15193         * print.c (std_handle_out_va):
15194         * print.c (fatal):
15195         * print.c (write_string_to_stdio_stream):
15196         * print.c (output_string):
15197         * print.c (debug_print):
15198         * print.c (debug_backtrace):
15199         * print.c (debug_short_backtrace):
15200         Cleaned up the code that prints text to stdout so that this can be
15201         changed to output into a console window instead under MS Windows,
15202         as described above.
15203
15204         * eval.c:
15205         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15206         * eval.c (internal_catch):
15207         * eval.c (unwind_to_catch):
15208         * eval.c (throw_or_bomb_out):
15209         * eval.c (condition_case_1):
15210         * eval.c (signal_1):
15211         * eval.c (check_error_state_sanity):
15212         * eval.c (call_with_suspended_errors_1):
15213         * eval.c (call_with_suspended_errors):
15214         * eval.c (reinit_vars_of_eval):
15215         Added code to catch throw loops and check for a pesky bug that may
15216         be gone now.
15217
15218         * event-msw.c:
15219         * event-msw.c (key_needs_default_processing_p):
15220         * event-msw.c (mswindows_wnd_proc):
15221         * event-msw.c (mswindows_modifier_state):
15222         * event-msw.c (emacs_mswindows_quit_p):
15223         * event-msw.c (vars_of_event_mswindows):
15224         a) Added support for using the alt key to select menu items as is
15225         standard under MS Windows.  This is controlled using the variable
15226         menu-accelerator-enabled, just like under X Windows.  There is an
15227         option on the options menu to turn this support on.  I really
15228         think that it should be on by default under Windows, but I'm not
15229         going to make this change yet.
15230
15231         b)  Added support for dynamic display size changes under Windows.
15232
15233         * event-stream.c:
15234         * event-stream.c (maybe_echo_keys):
15235         * event-stream.c (Fnext_event):
15236         * event-stream.c (command_builder_find_leaf):
15237         * event-stream.c (lookup_command_event):
15238         * event-stream.c (execute_command_event):
15239         * event-stream.c (pre_command_hook):
15240         * event-stream.c (post_command_hook):
15241         * event-stream.c (syms_of_event_stream):
15242         * event-stream.c (vars_of_event_stream):
15243         * event-stream.c (complex_vars_of_event_stream):
15244         * events.h (struct command_builder):
15245
15246         a) Tried to clean up a little bit the horribly written x-specific
15247         accelerator code that crept into this file.  I moved this code
15248         into menubar-x.c where it belongs. I also needed to move the
15249         command builder structure into the file events.h because it is
15250         accessed directly by this accelerator code.  What I didn't do, but
15251         which should be done at some point, is to properly abstract this
15252         code using device methods instead of the kludgy way that it
15253         currently hooks into the event code.
15254
15255         b) Added the lisp variables this-command-properties and
15256         last-command- properties, which should be used to synchronize two
15257         adjacent commands in preference to playing games with the variable
15258         this-command, which is typically what happens.
15259
15260         c) Added some slightly nasty code to hook into the lisp support
15261         for shifted- motion-key selection.  This is actually necessary for
15262         somewhat complicated reasons, which are described in
15263         simple.el. (NB: I think the proper thing would be to have the code
15264         that calls the pre and post command hooks also call out to generic
15265         lisp functions in simple.el, where all built-in stuff could be
15266         added.  I will think about this more.)
15267
15268         * event-unixoid.c (poll_fds_for_input):
15269         * lread.c (readchar):
15270         * redisplay-tty.c (tty_clear_frame):
15271         * redisplay-x.c (x_get_gc):
15272         * signal.c (interrupt_signal):
15273         And a whole bunch of other files: fixed up places that printed
15274         directly to stderr to instead call the function stderr_out so that
15275         the changes I made under Windows work correctly.
15276
15277         * filemode.c (mode_string):
15278         Warning fixes.
15279
15280         * frame-msw.c:
15281         * frame-msw.c (mswindows_size_frame_internal):
15282         Fixed the computation of frame size and position to keep the frame
15283         within the workspace area, rather than within the physical
15284         dimensions of the screen, so that the frame doesn't overlap window
15285         manager decorations, such as the start menu and toolbar, typically
15286         at the bottom of the screen.
15287
15288         * frame.c (vars_of_frame):
15289         Changed the default frame title format under MS Windows to consist
15290         of buffername-XEmacs, which is standard under MS Windows.  I think
15291         it might be a good idea to change this everywhere because I think
15292         it is superior to the current frame title format, but this is the
15293         kind of change that is likely to cause some people to get annoyed,
15294         so I'm not making it.
15295
15296         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15297
15298         * gui-msw.c (mswindows_handle_gui_wm_command):
15299         Fixed compile warnings.
15300
15301         * gui-x.c:
15302         * gui-x.c (strdup_and_add_accel):
15303         * gui-x.c (button_item_to_widget_value):
15304         * gui-x.h:
15305         Added code to automatically put an accelerator onto the beginning
15306         of menu items that don't have one as is now the standard, and is
15307         described more later.  Also fixed things so that the menu item
15308         name can be an evaluated expression, again a new standard.
15309
15310         * gui.c:
15311         * gui.c (gui_item_add_keyval_pair):
15312         * gui.c (make_gui_item_from_keywords_internal):
15313         * gui.c (gui_add_item_keywords_to_plist):
15314         * gui.c (gui_item_accelerator):
15315         * gui.c (gui_name_accelerator):
15316         * gui.c (gui_item_included_p):
15317         * gui.c (gui_item_display_flush_left):
15318         * gui.c (gui_item_display_flush_right):
15319         * gui.c (parse_gui_item_tree_item):
15320         * gui.c (parse_gui_item_tree_children):
15321         * gui.c (parse_gui_item_tree_list):
15322         Mule-ized.  Cleanup.  GCPRO addition.
15323
15324         * line-number.c (buffer_line_number):
15325         * lisp.h:
15326         * lisp.h (EMACS_INT_MAX):
15327         Added the manifest constant EMACS_INT_MIN corresponding to the
15328         existing constant EMACS_INT_MAX.  This is partially to fix compile
15329         warnings under Windows, and partly for cleanliness.
15330
15331         * menubar-msw.c:
15332         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15333         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15334         * menubar-msw.c (displayable_menu_item):
15335         * menubar-msw.c (populate_menu_add_item):
15336         * menubar-msw.c (populate_or_checksum_helper):
15337         * menubar-msw.c (populate_menu):
15338         * menubar-msw.c (update_frame_menubar_maybe):
15339         * menubar-msw.c (prune_menubar):
15340         * menubar-msw.c (msw_char_is_accelerator):
15341         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15342         * menubar-msw.c (mswindows_handle_wm_command):
15343         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15344         * menubar-msw.c (mswindows_handle_wm_initmenu):
15345         * menubar-msw.c (mswindows_update_frame_menubars):
15346         * menubar-msw.c (mswindows_free_frame_menubars):
15347         * menubar-msw.c (mswindows_popup_menu):
15348         Fixed a bug in handling accelerators where an extra character
15349         would be displayed in the menu item.  Also generalized the
15350         function displayable_menu_item because it is now used by the
15351         dialog box code as well.  And finally, added code in the functions
15352         that create the menubar to extract a list of accelerators for the
15353         top level menubar, which is used in the event code to determine
15354         whether a particular alt-key combination should be used to invoke
15355         a menu item, or should be passed through to access the standard
15356         XEmacs keymap binding for this key combination.
15357
15358         Much needed GCPROing.
15359
15360         * menubar-x.c:
15361         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15362         * menubar-x.c (menu_item_descriptor_to_widget_value):
15363         * menubar-x.c (restore_in_menu_callback):
15364         * menubar-x.c (x_popup_menu):
15365         * menubar-x.c (menu_move_up):
15366         * menubar-x.c (menu_move_down):
15367         * menubar-x.c (menu_move_left):
15368         * menubar-x.c (menu_move_right):
15369         * menubar-x.c (menu_select_item):
15370         * menubar-x.c (command_builder_operate_menu_accelerator):
15371         * menubar-x.c (menu_accelerator_junk_on_error):
15372         * menubar-x.c (command_builder_find_menu_accelerator):
15373         * menubar-x.c (Faccelerate_menu):
15374         * menubar.h:
15375         Moved a whole bunch of code here that was previously in
15376         event-stream.c as described above.  There is also code connected
15377         to the new standard of adding an accelerator to the beginning of
15378         menu items that don't have one as described above and below.
15379
15380         * menubar.c:
15381         * menubar.c (menu_parse_submenu_keywords):
15382         * menubar.c (Fmenu_find_real_submenu):
15383         * menubar.c (Fnormalize_menu_item_name):
15384         * menubar.c (syms_of_menubar):
15385         * menubar.c (vars_of_menubar):
15386         * menubar.c (complex_vars_of_menubar):
15387
15388         a) Cleaned up a bunch of documentation and improved it.
15389
15390         b) XEmacs now automatically adds an accelerator onto the beginning
15391         of any menu items that don't have one.  I did this because there
15392         will inevitably be some menu items on the main menubar that don't
15393         have accelerators on them because the package that adds that
15394         particular menu item hasn't yet been fixed up to have accelerators
15395         in them and it looked rather strange to have some items with and
15396         some items without accelerators, especially since even in items
15397         without accelerators, you can, at least under windows, still
15398         access the item through an accelerator corresponding to the first
15399         character in the item's name.  If people don't like this behavior,
15400         I can add a variable to turn it off optionally, but I'm not sure
15401         this is a good idea because we really do need to have accelerators
15402         on all of the menu items, and if a package doesn't like the
15403         accelerators being put on the first character, then it should put
15404         the accelerators where they belong.
15405
15406         c) I made a behavior change, which is that the descriptor that
15407         specifies the text of the menu item, which formerly was just a
15408         string, can now also be an evaluated expression.  This makes this
15409         descriptor parallel with all of the others, which could also be
15410         evaluated expressions.  This also obviates the need for the
15411         keyword :label, which was previously listed in the documentation
15412         as unimplemented, and which was for the same purpose.
15413
15414         d) GCPROing.
15415
15416         * ntproc.c:
15417         * ntproc.c (new_child):
15418         * ntproc.c (sys_spawnve):
15419         * ntproc.c (find_child_console):
15420         * ntproc.c (sys_kill):
15421         Fixed compile warnings.  By the way, this file should really go
15422         away entirely, and this will happen as soon as Kirill makes his
15423         final round of process cleanups, which affect the function
15424         call-process.
15425
15426         * process-nt.c:
15427         * process-nt.c (struct nt_process_data):
15428         * process-nt.c (find_process_from_pid):
15429         * process-nt.c (send_signal_the_nt_way):
15430         * process-nt.c (enable_child_signals):
15431         * process-nt.c (find_child_console):
15432         * process-nt.c (send_signal_the_95_way):
15433         * process-nt.c (nt_finalize_process_data):
15434         * process-nt.c (ensure_console_window_exists):
15435         * process-nt.c (nt_create_process):
15436         * process-nt.c (nt_kill_child_process):
15437         * process-nt.c (nt_kill_process_by_pid):
15438         * process-nt.c (nt_open_network_stream):
15439         * process-nt.c (vars_of_process_nt):
15440         Copied over code from Emacs 20.5 to correctly send signals to sub-
15441         processes under Windows 95.  Also added code to automatically
15442         create and hide console window when a sub-process is created under
15443         Windows 95, which obviates the need for the separate runemacs.exe
15444         executable, and finally implemented some variables that were
15445         implemented in Emacs 20.5, but previously not in XEmacs.  These
15446         include mswindows- start-process-share-console and
15447         mswindows-start-process-inherit-error-mode. (Both of these only
15448         apply to Windows 95.)
15449
15450         * regex.c (regex_compile): Fixed a compile warning.
15451
15452         * select-msw.c:
15453         * select-msw.c (mswindows_own_selection):
15454         * select-msw.c (mswindows_get_foreign_selection):
15455         * select-msw.c (mswindows_disown_selection):
15456         * select-msw.c (console_type_create_select_mswindows):
15457         * select-msw.c (syms_of_select_mswindows):
15458         Cleaned up the file and implemented the device method
15459         selection_exists_p, which had accidentally been left out.  Also
15460         removed four lisp functions that were remnants from before the
15461         time when the selection code was properly device abstracted.
15462         These functions are no longer needed because there are generic
15463         equivalents, and because they were added recently and don't exist
15464         in FSF Emacs, I don't think there's any problem with just deleting
15465         them.
15466
15467         * sysdep.c:
15468         * sysdep.c (sys_subshell):
15469         Fixed a compile warning, although in this case there's probably
15470         something wrong with this code, and it ought to be looked into
15471         more thoroughly by somebody who understands it.
15472
15473         * window.c:
15474         * window.c (Fwindow_text_area_height):
15475         * window.c (Fwindow_width):
15476         * window.c (Fwindow_full_width):
15477         * window.c (Fwindow_pixel_width):
15478         * window.c (debug_print_window):
15479         * window.c (syms_of_window):
15480         Added functions window-text-area-height and window-full-width,
15481         which are functions for returning various width and height
15482         characteristics of a window. (One of these functions is necessary
15483         for making the file dialog box work correctly, and the other one
15484         was added for completeness.)  Also added a table to the
15485         documentation for window-height which describes the entire scheme
15486         for accessing width and height characteristics of a window.
15487
15488 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15489
15490         * nt.c (fstat): Added a comment for another problem with
15491         non-encapsulated [f]stat(), reported by Adrian Aichner
15492         <aichner@ecf.teradyne.com>.
15493
15494 2000-03-11  Andy Piper  <andy@xemacs.org>
15495
15496         * window.c (make_dummy_parent): initialize subwindow instance
15497         cache.
15498         (Fset_window_configuration): zero extent_modiff.
15499
15500 2000-03-10  Andy Piper  <andy@xemacs.org>
15501
15502         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15503         more changes can be triggered.
15504         (Fredisplay_frame): ditto.
15505         (Fredraw_device): ditto.
15506         (Fredisplay_device): ditto.
15507         (redisplay_frame): make non-static.
15508         (redisplay_frame): call update_frame_gutter_geometry outside of
15509         display proper.
15510
15511         * gutter.h: declare update_frame_gutter_geometry.
15512
15513         * redisplay.h: declare redisplay_frame.
15514
15515         * gutter.c (update_frame_gutter_geometry): move geometry changes
15516         in update_frame_gutters here. Geometry changes can only occur
15517         outside of redisplay.
15518         (update_frame_gutters): remove geometry change code.
15519         (Fredisplay_gutter_area): make sure that we are in display when we
15520         update and that we have flushed any size changes.
15521
15522 2000-03-11  Andy Piper  <andy@xemacs.org>
15523
15524         * alloc.c (pdump_dump_data): remove i & count shadows.
15525
15526 2000-02-27  Mike Alexander  <mta@arbortext.com>
15527
15528         * sysdep.h: Declare pdump_read_file
15529
15530         * sysdep.c (pdump_read_file): New function
15531
15532         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15533         dump data
15534
15535 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15536
15537         * lrecord.h: add `lrecord_type_pgsetenv'.
15538
15539 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15540
15541         * symsinit.h: declare (vars|syms)_of* functions.
15542         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15543
15544 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15545
15546         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15547
15548         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15549         GCCs.
15550
15551         * emacs.c (main_1): Call postgres initialization code.
15552
15553         * postgresql.h: New file.  PostgreSQL RDBMS support.
15554         * postgresql.c: New file.
15555
15556 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15557
15558         * redisplay-output.c (redisplay_output_display_block): Disable
15559         redundant code.
15560
15561 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15562
15563         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15564         (Fcanna_henkan_next): Ditto.
15565         (Fcanna_bunsetu_henkou): Ditto.
15566         (Fcanna_henkan_kakutei): Ditto.
15567         (Fcanna_henkan_end): Ditto.
15568         (Fcanna_henkan_quit): Ditto.
15569         (Fcanna_henkan_next): Set retun value correctly.
15570         (c2mu): Use unsigned char instead of signed char.
15571
15572 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15573
15574         * emacs.c (main_1): Always call syms_of_gui.
15575         * inline.c: include gui.h
15576
15577 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15578
15579         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15580         converted to Lisp_Object.
15581         (Qtop_bottom): New variable.
15582         (syms_of_redisplay): Initialize it.
15583         * redisplay.h (Vvisible_bell): Ditto.
15584         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15585         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15586         only flash top and bottom.
15587
15588 2000-03-08  Andy Piper  <andy@xemacs.org>
15589
15590         * buffer.c (Frename_buffer): record new buffer name the right way.
15591
15592 2000-03-08  Andy Piper  <andy@xemacs.org>
15593
15594         * glyphs.c (update_subwindow): increase hash depth so that widget
15595         items get picked up properly.
15596
15597         * redisplay-output.c (compare_runes): increase hash depth so that
15598         widget items get picked up properly.
15599
15600 2000-03-08  Andy Piper  <andy@xemacs.org>
15601
15602         * gutter.c (output_gutter): add some debug.
15603
15604         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15605         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15606         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15607
15608         * redisplay-output.c (compare_runes): use display_hash to
15609         determine if glyphs really are not the same.
15610
15611         * glyphs.c (update_subwindow): check display_hash to see if
15612         anything really needs to be updated. If not then do
15613         nothing. Record the display_hash after updating.
15614         (image_instance_equal): compare the image_instance face also.
15615
15616 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15617
15618         * redisplay.h: Fix comment style.
15619
15620 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15621
15622         * consle-msw.h (struct mswindows_frame):
15623         Added new member paint_pending to indicate whether a WM_PAINT
15624         magic event has been queued for this frame.
15625
15626         * event-msw.c (mswindows_drain_windows_queue):
15627         Don't queue a WM_PAINT magic event if one is already queued.
15628         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15629
15630         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15631
15632 2000-03-07  Didier Verna  <didier@xemacs.org>
15633
15634         * dired.c: #include `regex.h' after `sysfile.h'.
15635
15636 2000-03-06  Martin Buchholz  <martin@xemacs.org>
15637
15638         * sound.c (init_nas_sound): Fix compiler warning.
15639
15640         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
15641         (FREE_STRUCT_P):
15642         (MARK_STRUCT_AS_FREE):
15643         (MARK_STRUCT_AS_NOT_FREE):
15644         Make `gcc -fstrict-aliasing' work properly.
15645
15646 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15647
15648         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
15649         (mswindows_delete_device): Call CoUnnitialize().
15650
15651         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
15652
15653 2000-02-25    <CraigL@DyCon.com>
15654
15655         * process-nt.c: MinGW now has <shellapi.h>, but still needs
15656         <errno.h>.
15657
15658         * sysdep.c: This extern declaration for environ prevents MinGW
15659         from finding the variable in CRTDLL.DLL.
15660
15661         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
15662         windows headers.
15663         (SHGFI_EXETYPE): ..
15664         (WM_MOUSEWHEEL): ..
15665         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
15666         definitions.
15667         (MMRESULT): Removed, now defined in cygwin's windows headers.
15668         (TIMECAPS): ..
15669         (uid_t,gid_t,pid_t,ssize_t): ..
15670         (_timeb): Removed, MinGW defines both _timeb and timeb.
15671         (HAVE_H_ERRNO): Added.
15672         (HAVE_TZNAME): Added, configure is not detecting this.
15673
15674 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
15675
15676         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
15677         * syntax.c (syntax_match): Use it.
15678
15679         * cmds.c: Import auto-fill-chars from FSF Emacs.
15680         (Vauto_fill_chars): New variables.
15681         (internal_self_insert): Check Vauto_fill_chars.
15682         (vars_of_cmds):
15683         Declare auto-fill-chars as a Lisp variable and initialize it.
15684
15685 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15686
15687         * fileio.c (Fmake_symbolic_link):
15688         (Ffile_symlink_p):
15689         Run handlers even if local machine doesn't have symlinks.
15690
15691 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15692
15693         * event-msw.c (mswindows_drain_windows_queue):
15694         Don't generate paint magic events for non-XEmacs frames.
15695
15696 2000-03-05  Andy Piper  <andy@xemacs.org>
15697
15698         * redisplay.c (redisplay_frame): generate_displayable_area and
15699         friends assumes that we are not in GC, we therefore have to make
15700         sure that this doesn't happen.
15701
15702         * gutter.c (calculate_gutter_size): generate_displayable_area
15703         assumes that we are not in GC, we therefore have to make sure that
15704         this doesn't happen.
15705
15706 2000-03-05  Martin Buchholz  <martin@xemacs.org>
15707
15708         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
15709
15710 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15711
15712         * redisplay.c (regenerate_window): Make sure we set a sane value
15713         for end_pos even if we jump out of the loop.
15714         (regenerate_window): Answer Ben's question :-).
15715         (start_end_of_last_line): Add may_error argument.
15716         (start_of_last_line):
15717         (end_of_last_line): Pass may_error = 0.
15718         (end_of_last_line_may_error): New function.
15719         (pixel_to_glyph_translation): Use it, so we don't crash in
15720         event_to_glyph.
15721
15722 2000-03-04  Andy Piper  <andy@xemacs.org>
15723
15724         * window.h (struct window): add gutter_extent_modiff.
15725
15726         * window.c (allocate_window): zero out gutter_extent_modiff.
15727
15728         * redisplay.h: declare sync_display_line_structs.
15729
15730         * redisplay.c (add_glyph_rune): add a better comment.
15731
15732         * redisplay-output.c (sync_display_line_structs): made non-static.
15733         (compare_runes): remove unneccesary glyph cachel access.
15734
15735         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
15736
15737         * gutter.c (output_gutter): don't output the gutter if extent
15738         changes only involve extents in buffers. use 4 sets of display
15739         lines.
15740         (gutter_extent_signal_changed_region_maybe): new function. Mark
15741         extents in gutters as changed.
15742         (update_frame_gutters): use 4 sets of display lines.
15743         (reset_gutter_display_lines): ditto.
15744         (free_frame_gutters): ditto.
15745         (redraw_exposed_gutter): force output of gutters.
15746
15747         * frame.h (struct frame): add 4 sets of gutter display lines.
15748
15749         * extents.c: (extent_changed_for_redisplay): signal changes to
15750         extents in strings in the gutter as well as extents in buffers.
15751
15752 2000-03-02  Andy Piper  <andy@xemacs.org>
15753
15754         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
15755
15756         * frame.c (Fmake_frame): make sure the gutters get initialized
15757         after the frame is visible.
15758         (set_frame_selected_window): re-arrange compilation macros a
15759         little.
15760         (change_frame_size_1): mark gutters changed.
15761
15762         * device.c (Fset_device_class): mark gutters changed.
15763
15764 2000-03-01  Andy Piper  <andy@xemacs.org>
15765
15766         * window.c (window_top_frame_gutter_height): deleted.
15767         (window_bottom_frame_gutter_height): ditto.
15768         (window_left_frame_gutter_height): ditto.
15769         (window_right_frame_gutter_height): ditto.
15770         (window_top_gutter_height): don't use them.
15771         (window_bottom_gutter_height): ditto.
15772         (window_left_gutter_width): ditto.
15773         (window_right_gutter_width): ditto.
15774         (Fsplit_window): ditto.
15775         (Fwindow_pixel_edges): don't use border dimensions here.
15776
15777         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
15778         (update_scrollbar_instance): ditto.
15779
15780         * redisplay.c (generate_modeline): don't take gutters into account.
15781         (generate_modeline): ditto.
15782         (redisplay_frame): small gutter display optimization.
15783
15784         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
15785
15786         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
15787         gutters into account.
15788
15789         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
15790         for window position and type.
15791
15792         * gutter.c (get_gutter_coords): fix for frame gutters.
15793         (update_frame_gutters): update frame geometry if the gutters have
15794         changed.
15795         (init_frame_gutters): record current gutter geometries.
15796
15797         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
15798         var.
15799         (mswindows_widget_instantiate): ditto.
15800
15801         * frame.h (struct frame): add current_gutter_bounds.
15802
15803         * frame.c (change_frame_size_1): position window and minibuffer
15804         appropriately taking into account the frame gutters.
15805
15806         * frame-x.c: (x_initialize_frame_size): take into account the
15807         frame gutters.
15808
15809 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15810
15811         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
15812
15813 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15814
15815         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
15816
15817 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15818
15819         * file-coding.c (reset_decoding_stream): Clear previous
15820         detection state when autodetect.
15821
15822 2000-02-29  Didier Verna  <didier@xemacs.org>
15823
15824         * extents.c (set_extent_glyph_1): don't require extents to be
15825         attached.
15826
15827 2000-02-27  Andy Piper  <andy@xemacs.org>
15828
15829         * gutter.c (Fset_default_gutter_position): don't default left and
15830         right gutter visibility to t.
15831         (Fset_default_gutter_position): run
15832         default-gutter-position-changed-hook.
15833         (syms_of_gutter): add default-gutter-position-changed-hook.
15834
15835 2000-02-26  Andy Piper  <andy@xemacs.org>
15836
15837         * specifier.c (Fmake_specifier): add gutter references.
15838
15839         * gutter.h (RAW_WINDOW_GUTTER): new macro.
15840
15841         * lisp.h: declare Fvalid_plist_p.
15842
15843         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
15844         as changed.
15845         (default_gutter_visible_p_changed_in_window): invalidate gutter as
15846         well as its visibility so that it gets reconstructed.
15847         (construct_window_gutter_spec): new function. Construct a string
15848         to be displayed in the gutter from a plist of strings. Take care
15849         to only use elements that are declared as visible.
15850         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
15851         WINDOW_GUTTER.
15852         (gutter_validate): allow plists of strings in the specifier.
15853         (gutter_specs_changed): construct the real_gutter from the gutter
15854         specs using construct_window_gutter_spec.
15855         (gutter_visible_validate): gutter-visible is a new specifier type.
15856         (Fgutter_visible_specifier_p): new function for the new specifier.
15857         (syms_of_gutter): declare gutter-visible and
15858         Fgutter_visible_specifier_p.
15859         (specifier_type_create_gutter): intitalize new gutter-visible
15860         specifier.
15861         (reinit_specifier_type_create_gutter): ditto.
15862         (specifier_vars_of_gutter): use new specifier type for gutter
15863         visibility.
15864         (init_frame_gutters): construct real_gutter correctly.
15865         (Fgutter_specifier_p): beef up documentation.
15866         (Fgutter_size_specifier_p): ditto.
15867
15868         * winslots.h: add real_gutter slots.
15869
15870 2000-02-25  Andy Piper  <andy@xemacs.org>
15871
15872         * device-msw.c: Be kind to older cygwin versions. From Raymond
15873         Toy <toy@rtp.ericsson.se>.
15874
15875         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
15876         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
15877
15878 2000-02-25  Martin Buchholz  <martin@xemacs.org>
15879
15880         * elhash.c (MARK_OBJ): Practice macro hygiene.
15881
15882 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15883
15884         * miscplay.c: s/__inline__/inline/g;
15885         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
15886         (get_device_compdc): INLINE ==> static inline
15887         * *.[ch]: Change INLINE to INLINE_HEADER globally.
15888         find -name '*.h' | \
15889         xargs global-replace \
15890         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
15891
15892 2000-02-25  Andy Piper  <andy@xemacs.org>
15893
15894         * window.c (window_top_frame_gutter_height): new function.
15895         (window_top_window_gutter_height): ditto.
15896         (window_top_gutter_height): use them.
15897         (window_bottom_frame_gutter_height): new function.
15898         (window_bottom_window_gutter_height): ditto.
15899         (window_bottom_gutter_height): use them.
15900         (window_left_window_gutter_width): new function.
15901         (window_left_frame_gutter_width): ditto.
15902         (window_left_gutter_width): use them.
15903         (window_right_window_gutter_width): new function.
15904         (window_right_frame_gutter_width): ditto.
15905         (window_right_gutter_width): use them.
15906         (window_pixel_height): new function. calulate window pixel height
15907         with frame gutter involvement.
15908         (Fsplit_window): calculate new sizes taking frame gutters into
15909         account.
15910         (window_char_height_to_pixel_height): don't include frame gutters.
15911         (window_char_height): use window_pixel_height.
15912         (window_pixheight): rename from window_pixel_height.
15913         (change_window_height): use it.
15914         (window_pixel_height_to_char_height): don't include frame gutters.
15915         (window_char_width_to_pixel_width): ditto.
15916
15917 2000-02-25  Andy Piper  <andy@xemacs.org>
15918
15919         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
15920         if it is.
15921
15922 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15923
15924         * alloc.c (staticpro):
15925         (staticpro_nodump):
15926         (dumpstruct):
15927         (dumpopaque):
15928         (pdump_wire):
15929         (pdump_wire_list):
15930         (compact_string_chars):
15931         (pdump_dump_wired):
15932         Convert:  if (foo) abort();  ==>  assert (! foo);
15933
15934         * eldap.c (Fldap_search_basic):
15935         (Fldap_add):
15936         (Fldap_modify):
15937         (Fldap_delete):
15938         Fix compiler warnings, and possible crashes if (random) return
15939         value were to be used.
15940
15941 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15942
15943         * device-msw.c: Workaround ResetDC failure.
15944
15945         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
15946         applying a devmode.
15947
15948         * redisplay-msw.c (get_frame_dc): Added start_page_p.
15949         (mswindows_text_width): Do not start printer page.
15950
15951         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
15952
15953         * glyphs-msw.c: Added image methods to msprinter console and
15954         msprinter-specific image instantiation.
15955
15956 2000-02-20  Mike Alexander  <mta@arbortext.com>
15957
15958         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
15959         to avoid crashes when selection-sets-clipboard is on
15960         (mswindows_own_selection): ditto
15961
15962 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15963
15964         * glyphs-msw.c:
15965         * redisplay-msw.c (get_frame_dc):
15966         (get_frame_compdc):
15967         * console-msw.h:
15968         * device-msw.c (mswindows_init_device):
15969         (mswindows_delete_device):
15970         (msprinter_init_device):
15971         (msprinter_delete_device):
15972         * frame-msw.c (mswindows_init_frame_1):
15973         (mswindows_delete_frame):
15974         (msprinter_init_frame_3):
15975         (msprinter_delete_frame): Move compatible DC to device object from
15976         frame object, for both mswindows and msprinter. Only one at a time
15977         is needed, it is a real waste to have one per frame!
15978
15979 2000-02-23  Andy Piper  <andy@xemacs.org>
15980
15981         * glyphs.c: add dynamic width and height elements.
15982         (image_instance_equal): ditto.
15983
15984         * glyphs-widget.c (widget_query_geometry): calculate width and
15985         height dynamically if required.
15986         (initialize_widget_image_instance): initialize dynamic dimensions.
15987         (widget_instantiate): pick-up dynamic dimensions.
15988
15989         * glyphs.h (struct Lisp_Image_Instance): add width and height for
15990         dynamic determination. Add appropriate macros.
15991
15992         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
15993         dimensions safe.
15994         (WINDOW_GUTTER_SIZE): ditto.
15995         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
15996
15997         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
15998         inline.
15999         (get_frame_dc): ditto.
16000
16001         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
16002         here.
16003
16004 2000-02-23  Martin Buchholz <martin@xemacs.org>
16005
16006         * XEmacs 21.2.31 is released.
16007
16008 2000-02-22  Ben Wing <ben@xemacs.org>
16009
16010         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
16011
16012 2000-02-22  Andy Piper  <andy@xemacs.org>
16013
16014         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
16015
16016 2000-02-21  Mike Sperber <mike@xemacs.org>
16017
16018         * .dbxrc:
16019         * .gdbinit:
16020         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
16021         variables.
16022
16023 2000-02-21  Mike Sperber <mike@xemacs.org>
16024
16025         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
16026
16027 2000-02-21  Martin Buchholz <martin@xemacs.org>
16028
16029         * XEmacs 21.2.30 is released.
16030
16031 2000-02-20  Martin Buchholz  <martin@xemacs.org>
16032
16033         Performance hacking.
16034         * *.c (syms_of_*):
16035         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
16036         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
16037         * emacs.c (main_1):
16038         * lisp.h (DEFUN):
16039         * console.c (DEFVAR_CONSOLE_LOCAL_1):
16040         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
16041         * symeval.h (DEFVAR_SYMVAL_FWD):
16042         * symbols.c (guts_of_unbound_marker):
16043         Make all c_readonly objects also lisp_readonly and marked for life.
16044         * lrecord.h (struct lrecord_implementation):
16045         Document flags better.
16046         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
16047         * lrecord.h (DECLARE_LRECORD):
16048         * lrecord.h (XSETRECORD):
16049         * lrecord.h (RECORDP):
16050         * lrecord.h (RECORD_TYPEP):
16051         * lrecord.h (RECORD_MARKER): New.
16052         * lrecord.h (error_check_*):
16053         * lrecord.h (CONCHECK_NONRECORD):
16054         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
16055         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
16056         * lrecord.h (set_lheader_implementation):
16057         * lrecord.h (enum lrecord_type): New.
16058         * symeval.h (SYMBOL_VALUE_MAGIC_P):
16059         * alloc.c (disksave_object_finalization_1):
16060         * alloc.c (mark_object):
16061         * alloc.c (lrecord_type_index):
16062         * alloc.c (tick_lcrecord_stats):
16063         * alloc.c (Fgarbage_collect):
16064         * alloc.c (init_alloc_once_early):
16065         * alloc.c (pdump_load):
16066         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
16067         * alloc.c (lrecord_type_index): Delete.
16068         Make lisp object type indexes be constant.
16069           Makes (byte-compile) 5% faster.
16070         Put all marker functions into their own array.
16071           Makes (garbage-collect) 5% faster.
16072         Optimize SYMBOL_VALUE_MAGIC_P.
16073           Makes (byte-compile) 2-3% faster.
16074         * config.h.in (gc_checking_assert): New.
16075         * alloc.c: Use gc_checking_assert().
16076         * .dbxrc: Make compatible with new object type implementation.
16077         * .gdbinit: Make compatible with new object type implementation.
16078         * alloc.c: Delete all symbols defined only for debugging, such as
16079         Lisp_Type_Vector and lrecord_charset.
16080
16081 2000-02-21  Andy Piper  <andy@xemacs.org>
16082
16083         * gui-msw.c (Fmswindows_shell_execute): fix file location
16084         problems.
16085
16086         * buffer.c (Fkill_buffer): remove buffer from alist buffer
16087         unshowing so that set_window_buffer doesn't undo
16088         kill_buffer_hook's hard work.
16089
16090         * glyphs-widget.c (tab_control_query_geometry): don't count the
16091         first item when calculating geometry.
16092
16093         * glyphs.c (map_subwindow): remove redundant code.
16094         (update_frame_subwindows): be more circumspect about when to
16095         update subwindows.
16096
16097         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
16098         when items haven't changed. Update faces if faces have changed as
16099         well as just the widget face.
16100         (x_tab_control_update): Update faces if faces have changed as well
16101         as just the widget face.
16102
16103 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16104
16105         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
16106         registration.
16107         (build_syscolor_string): Use mswindows_color_to_string to try to
16108         get a named color.
16109         (mswindows_device_system_metrics): Reverse the foreground and
16110         background colors so that they match the documentation.
16111
16112         * objects-msw.c: (mswindows_X_color_map): tweak some values so
16113         they match the default Windows palette.
16114         (mswindows_color_to_string): New function.
16115
16116 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16117
16118         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
16119
16120 2000-02-18  Olivier Galibert  <galibert@pobox.com>
16121
16122         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
16123         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
16124
16125         * symbols.c (init_symbols_once_early): Removed obsolete
16126         DATA_SEG_BITS related kludge.
16127         (defvar_magic): Ditto.
16128
16129         * malloc.c: Removed obsolete DATA_SEG_BITS
16130         * ralloc.c: Ditto.
16131         * mem-limits.h: Ditto.
16132
16133         * Makefile.in.in: Removed obsolete HAVE_SHM
16134         * emacs.c: Ditto.
16135
16136 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16137
16138         *  device-msw.c (mswindows_delete_device): Free DDE string
16139         handles.
16140
16141 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16142
16143         * keymap.c (get_keyelt):
16144         * unexnt.c (unexec):
16145         * vm-limit.c (memory_warnings):
16146         * ntheap.c (recreate_heap):
16147         * ntheap.h (UNINIT_PTR):
16148         * select-msw.c (Fmswindows_get_clipboard):
16149         (Fmswindows_set_clipboard):
16150         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16151         * objects-msw.c:
16152         * menubar-msw.c (displayable_menu_item):
16153         * glyphs-msw.c:
16154         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16155         * sysdep.c (sys_subshell):
16156         * process-nt.c (nt_create_process):
16157         * nt.c (normalize_filename):
16158         (dostounix_filename):
16159         (unixtodos_filename):
16160         * ntproc.c (win32_executable_type):
16161         * ntplay.c (play_sound_data_1):
16162         (play_sound_file):
16163         * editfns.c (get_home_directory):
16164         * event-msw.c (struct winsock_stream):
16165         (mswindows_dde_callback):
16166         * device-msw.c (msprinter_init_device):
16167         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16168
16169         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16170         mswindows_clear_toolbar were swapped!
16171
16172         * objects-msw.c:(colormap_t):
16173         (fontmap_t):
16174         * emacs.c (struct standard_args): Fixed const jumble.
16175
16176         * glyphs-widget.c (update_widget): Fixed comparison notation.
16177
16178         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16179
16180         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16181         __declspec(noreturn) syntax.
16182
16183 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16184
16185         * eldap.c (Fldap_open):
16186         (Fldap_search_basic):
16187         (Fldap_add):
16188         (Fldap_modify):
16189         Use new coding system conversion macros.
16190
16191 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16192
16193         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16194
16195 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16196
16197         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16198         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16199
16200         * eldap.c (Qadd, Qreplace): New constant symbols
16201         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16202         interruptions by XEmacs signals
16203         Remove unnecessary calls to slow_down_interrupts and
16204         speed_up_interrupts
16205         (Fldap_search_basic): Renamed from Fldap_search_internal
16206         Added new optional parameter VERBOSE that triggers the
16207         display of progress messages
16208         Remove unnecessary calls to slow_down_interrupts and
16209         speed_up_interrupts
16210         LDAP result code analysis rewritten
16211         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16212         (syms_of_eldap): Define the new symbols and functions
16213
16214
16215 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16216
16217         * realpath.c: Determine PATH_MAX maximally portably.
16218
16219         * insdel.c (bytecount_to_charcount): Optimize.
16220         The function used to be optimized for entirely ASCII sequences.
16221         Now it is optimized for successive characters from the same
16222         charset.  This also wins big for _mostly_ ASCII sequences.
16223
16224         * fileio.c (Ffile_truename): convert return from realpath() using
16225         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16226         - Rewrite GCPROing slightly.
16227
16228         * sysdep.c (sys_open): Do filename conversion, like all other
16229         sys_* functions.  Fixes bug:
16230         (let ((file-name-coding-system 'iso-8859-2))
16231            (write-region x y latin2-name))
16232         ==> writes filename using internal encoding.
16233
16234 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16235
16236         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16237         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16238         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16239         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16240         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16241         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16242         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16243         (CONST_IF_NOT_DEBUG): Delete.
16244         * alloc.c (this_one_is_unmarkable): Delete.
16245         (mark_object): Don't check for this_one_is_unmarkable. Use the
16246         c_readonly flag instead.
16247         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16248
16249 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16250
16251         * event-msw.c (mswindows_drain_windows_queue):
16252         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16253         away redundant repaint events.
16254
16255 2000-02-17  Andy Piper  <andy@xemacs.org>
16256
16257         * redisplay.h: declare mark_redisplay_structs.
16258
16259         * redisplay.c (redisplay_window):
16260         (redisplay_frame): don't check subwindows_state_changed.
16261         (mark_redisplay): mark gutters here.
16262
16263         * glyphs.c: (instantiate_image_instantiator): always layout if we
16264         haven't done so already.
16265         (allocate_image_instance): don't mark as dirty.
16266         (update_subwindow): bind inhibit_quit.
16267
16268         * gutter.c (mark_gutters): new function.
16269
16270         * glyphs-x.c (x_update_widget): Always resize to get round a
16271         widget bug.
16272
16273         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16274         breaking absolutely everything.
16275
16276         * gutter.h: declare mark_gutters.
16277
16278 2000-02-16  Martin Buchholz <martin@xemacs.org>
16279
16280         * XEmacs 21.2.29 is released.
16281
16282 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16283
16284         * fns.c (size_bit_vector): Fix computation of the size.
16285
16286 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16287
16288         * *.[ch]: Change CONST to const globally.
16289         find -name '*.[ch]' | \
16290         xargs global-replace \
16291         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16292         - Remove vestigial references to CONST_IS_LOSING
16293
16294 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16295
16296         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16297         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16298         events instead of dispatching them directly.
16299         (mswindows_handle_paint): New function to do repainting.
16300         (mswindows_wnd_proc):
16301         (emacs_mswindows_handle_magic_event): Call above function.
16302
16303 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16304
16305         * objects-msw.c (mswindows_create_font_variant): Return the new
16306         font handle.
16307         (initialize_font_instance): Get font metrics from the underlined
16308         variant of the font to cope with the case where the underlined
16309         font has a bigger descent.
16310
16311 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16312
16313         * gui.c (gui_item_accelerator): Return the first underlined
16314         character in item name.
16315
16316 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16317
16318         * lisp.h: Added Qprinter.
16319
16320         * general.c (syms_of_general): Initialized it.
16321
16322         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16323         (get_frame_dc):
16324         (get_frame_compdc): Made inline.
16325
16326         * console.h (struct console_methods): Added eject_page method.
16327
16328         * frame.h: Added FRAME_DISPLAY_P and friends.
16329         Aligned backslahes in many macros in more readable fashion.
16330         Added page_number to struct frame, and an accessor macro
16331         for it.
16332
16333         * defice.h: Added DEVICE_DISPLAY_P and friends.
16334
16335         * device.c (Fdevice_printer_p): Used these.
16336
16337         * frame.c (allocate_frame_core): Initialize page number.
16338         (Fprint_job_page_number):
16339         (Fprint_job_eject_page): Implemented.
16340
16341         * frame-msw.c (msprinter_eject_page): Added method.
16342         (msprinter_start_page): Added.
16343
16344         * window.c (Fwindow_truncated_p): Fixed docstring.
16345         (Fwindow_last_line_visible_height): Implemented.
16346
16347 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16348
16349         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16350
16351 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16352
16353         * syntax.c (scan_words): Always advance at least one character.
16354
16355 2000-02-13  Andy Piper  <andy@xemacs.org>
16356
16357         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16358         to make sure the glyph is in the cachels.
16359
16360         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16361         global image instance flag.
16362         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16363         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16364
16365         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16366         (Fset_image_instance_property): mark layout as changed.
16367         (invalidate_glyph_geometry_maybe): mark layout as changed.
16368         (glyph_width): use new NEEDS_LAYOUT macro.
16369         (glyph_ascent): ditto.
16370         (glyph_descent): ditto.
16371         (glyph_height): ditto.
16372         (image_instance_layout): mark layout as clean after laying out.
16373         (update_subwindow): don't mark layout as clean here.
16374
16375         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16376         should no longer be needed.
16377
16378         * glyphs-x.c (x_update_widget): sanitize asserts.
16379         (x_finalize_image_instance): sanitize assignment to widgets.
16380
16381         * glyphs-widget.c (widget_instantiate): don't need to clear the
16382         layout flag here.
16383
16384 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16385
16386         * sysdep.c (getcwd): Use standard prototype.
16387         * sysdep.h (getcwd): Use standard prototype.
16388
16389         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16390         (sequence, start, end).
16391         Remove redundant type checking.
16392         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16393         view of `caller-protects') to avoid a crash where the real fix was
16394         found elsewhere.
16395
16396 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16397
16398         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16399
16400         * s/sol2.h: Remove feature macro initialization.
16401
16402         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16403         (vector_hash): New.  Code from internal_hash.
16404         * lrecord.h:
16405         Fix up allocation subsystem comments.
16406
16407         * config.h.in: Add __EXTENSIONS__ for Solaris.
16408
16409         * systime.h (EMACS_GETTIMEOFDAY): New.
16410         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16411         Remove Solaris-specific code.
16412         Use void* for the (ignored) second arg for gettimeofday().
16413
16414         * elhash.c (hash_table_hash): Implement it, finally.
16415         * elhash.c:  Use hashcode_t.
16416
16417         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16418         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16419
16420         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16421         * fns.c (size_bit_vector):
16422         * alloc.c (size_vector):
16423         (make_vector_internal):
16424         (make_bit_vector_internal):
16425         (sweep_bit_vectors_1):
16426         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16427
16428 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16429
16430         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16431         Include strings.h to avoid warnings for bzero and strcasecmp.
16432
16433 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16434
16435         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16436         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16437
16438         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16439         sequence.
16440
16441 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16442
16443         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16444         use a value field instead.
16445         (symbol_value_forward_forward): Use value field.
16446         (DEFVAR_SYMVAL_FWD): Use value field.
16447         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16448         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16449         (DEFVAR_CONST_INT): Ditto.
16450         (DEFVAR_BOOL): Ditto.
16451         (DEFVAR_CONST_BOOL): Ditto.
16452         (DEFVAR_INT_MAGIC): Ditto.
16453         (DEFVAR_BOOL_MAGIC): Ditto.
16454
16455         * symbols.c (guts_of_unbound_marker): Use value field.
16456         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16457         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16458
16459         * lisp.h: Declare dumpopaque and noninteractive1.
16460
16461         * alloc.c (dumpopaque): Added.
16462         (pdump_dump_opaquevec): Added.
16463         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16464         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16465         noninteractive.
16466
16467 2000-02-10  Andy Piper  <andy@xemacs.org>
16468
16469         * glyphs.c (image_instance_layout): if the size changes, mark it
16470         as such.
16471
16472         * redisplay-output.c (redisplay_output_layout): Update the
16473         subwindow here.
16474         (redisplay_output_subwindow): ditto.
16475
16476         * glyphs.c (update_subwindow): make sure we reset flags for
16477         layouts as well as everything else.
16478
16479         * glyphs-widget.c (layout_layout): don't need to set the instances
16480         dimensions here.
16481
16482 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16483
16484         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16485         not HAVE_DLOPEN, which is a lower-level thing.
16486
16487         * .cvsignore: Ignore gmon.out
16488
16489 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16490
16491         * .cvsignore: Ignore portable dumper xemacs.dmp file
16492
16493 2000-02-09  Andy Piper  <andy@xemacs.org>
16494
16495         * redisplay-output.c (redisplay_output_layout): be more clever
16496         about when we output based on the changed flags.
16497
16498         * glyphs.h (struct image_instantiator_methods): add update_method.
16499         (struct Lisp_Image_Instance): add changed flags. Declare new
16500         macros for manipulating them.
16501
16502         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16503         (image_instance_parent_glyph): find an image_instance's parent
16504         glyph or image_instance.
16505         (image_instance_layout): mark the size as changed.
16506         (set_image_instance_dirty_p): new function. mark an image
16507         instance, plus all of its parents, as dirty.
16508         (Fset_image_instance_property): use it.
16509         (Fglyph_animated_timeout_handler): use it.
16510         (update_subwindow): call update_widget and device methods for
16511         update_subwindow. Mark all changed flags as clean.
16512         (Fresize_subwindow): mark size as changed.
16513
16514         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16515         failures.
16516         (x_update_subwindow): only resize subwindows here.
16517         (x_update_widget): new function. Update all changed properties of
16518         a widget.
16519         (x_resize_subwindow): deleted.
16520         (x_widget_set_property): deleted.
16521         (x_progress_gauge_set_property): deleted.
16522         (x_progress_gauge_update): new function. Implement recorded
16523         changes.
16524         (x_tab_control_update): ditto.
16525         (x_tab_control_set_property): deleted.
16526         (console_type_create_glyphs_x): declare new functions.
16527         (image_instantiator_format_create_glyphs_x): ditto.
16528
16529         * glyphs-widget.c (widget_set_property): mark text changed.
16530         (update_widget): new function. Update properties of a widget.
16531         (widget_instantiate): for layouts make sure we set their
16532         children's parent correctly.
16533         (tab_control_set_property): new function. Record changes that will
16534         take place under redisplay's control.
16535         (progress_gauge_set_property): ditto.
16536         (image_instantiator_progress_guage): declare new functions.
16537         (image_instantiator_tab_control): ditto.
16538
16539         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16540         now.
16541         (mswindows_update_widget): new function. Update all properties on
16542         a widget that have changed.
16543         (mswindows_button_update): new function. Update a button's set
16544         state.
16545         (mswindows_tab_control_update): new function. Update the items in
16546         a tab.
16547         (mswindows_tab_control_set_property): deleted.
16548         (mswindows_progress_gauge_update): new function. Update the
16549         progress gauge's progress.
16550         (mswindows_widget_set_property): deleted. This is all done
16551         asynchronously now.
16552         (mswindows_progress_gauge_set_property): ditto.
16553         (console_type_create_glyphs_mswindows): declare new methods.
16554         (image_instantiator_format_create_glyphs_mswindows): ditto.
16555
16556         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16557         (msprinter_set_frame_properties): ditto.
16558
16559         * console.h (struct console_methods): Add update_widget_method.
16560
16561 2000-02-09  Andy Piper  <andy@xemacs.org>
16562
16563         * gui-msw.c (Fmswindows_shell_execute): Make
16564         mswindows-shell-execute industrial strength.
16565
16566 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16567
16568         * lrecord.h: Make macro argument `props' match member function `plist'.
16569         * fns.c (Fget):
16570         * fns.c (Fput):
16571         * fns.c (Fremprop):
16572         * fns.c (Fobject_plist):
16573         * alloc.c:
16574         * symbols.c:
16575         Object property list frobbing cleanup.
16576         - Allow any lisp object (compared with `eq'), not just symbols, as
16577           keys in object plists.
16578         - Move symbol plist frobbing into symbols.c, where it belongs.
16579         - Move string plist frobbing into alloc.c, where it belongs.
16580         - Everything's an lrecord now, so no need to test for symbolp, etc.
16581         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16582
16583         * extents.c: Reorder code to remove declarations.
16584
16585         * frame.h (store_in_alist): Remove useless declaration.
16586
16587 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16588
16589         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16590         * config.h.in: Add HAVE_XCONVERTCASE.
16591
16592 2000-02-07  Andy Piper  <andy@xemacs.org>
16593
16594         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16595         it breaks many things.
16596
16597 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16598
16599         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16600         actually can start a common comment type.
16601         * src/syntax.h (SYNTAX_END_P): ditto for end.
16602
16603 2000-02-07  Martin Buchholz <martin@xemacs.org>
16604
16605         * XEmacs 21.2.28 is released.
16606
16607 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16608
16609         * event-Xt.c (x_keysym_to_character): New.
16610         (maybe_define_x_key_as_self_inserting_character): New.
16611         (x_has_keysym): New.
16612         Auto-define all keys on the keyboard as self-insert-key.
16613
16614 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16615
16616         * menubar.c (vars_of_menubar): A small code simplification.
16617
16618         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16619
16620         * ExternalShell.c:
16621         * ExternalClient.c:
16622         * EmacsShell-sub.c:
16623         * EmacsManager.c:
16624         * EmacsFrame.c:
16625         Use consistent style for specifying X resources.
16626
16627         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16628         This makes (dontusethis-set-symbol-value-handler) actually usable.
16629
16630         * lrecord.h (lrecord_decription_type):
16631         * alloc.c (pdump_register_sub):
16632         (pdump_dump_data):
16633         (pdump_reloc_one):
16634         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
16635         Comply with XEmacs coding style.
16636         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
16637         args, and XD_LISP_OBJECT_ARRAY with 3 args.
16638
16639         * keymap.c (Faccessible_keymaps):
16640         Make (accessible-keymaps map "\C-h") do the Right Thing.
16641         Make (accessible-keymaps map []) do the Right Thing.
16642         Make (accessible-keymaps map "") do the Right Thing.
16643         (check_keymap_definition_loop): New function.
16644         (keymap_store_internal): Keep luser from shooting self in foot,
16645           via (define-key ctl-x-4-map "p" global-map).
16646         Remove fullness slot from struct Lisp_Keymap, since hash tables
16647         are now reliable.
16648         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
16649
16650 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16651
16652         * redisplay.c (init_redisplay): Fix small memory leak.
16653         * elhash.h:
16654         * elhash.c (pdump_reorganize_hash_table):
16655         Rename from reorganize_hash_table. Change prototype.
16656         Reuse the original memory for hentries.  Save 100k.
16657         * alloc.c (PDUMP_READ): new macro.
16658         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
16659         * alloc.c: No need to #ifndef before #undef.
16660
16661         * print.c: Allow debug_print() to print readably by modifying
16662         debug_print_readably.  Use consistent variable names.
16663
16664         * .dbxrc: Try to get things to work even if stopped in a function
16665         without source available by explicitly specifying source files.
16666 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16667
16668         * unexnt.c (_start): Removed bogus code which caused loading heap
16669         from differrent executable file.
16670         Removed bogus assignment to _fmode, which caused inconsistencies.
16671
16672 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16673
16674         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
16675         Have spawnve encapsulation regard DONT_ENCAPSULATE.
16676         Do not preliminary `#define signal sigset'.
16677
16678         * systime.h: Do not prototype environ on windows nt and cygwin,
16679         this conflicts with system header.
16680
16681         * syssignal.h: Use correct define for WINDOWSNT
16682
16683         * sysdep.h: Do not prototype environ on windows nt, this conflicts
16684         with system header.
16685
16686         * sysdep.c (near start of file): Fixed commentary and rearranged
16687         ifdefs in readable order.
16688         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
16689         (start_of_text):
16690         (end_of_text):
16691         (end_of_data): Do not compile in if using PDUMP.
16692
16693         * symsinit.h: Prototyped vars_of_nt().
16694
16695         * ntproc.c (windows9x_p): Added, instead of os_subtype.
16696         (find_child_console): Use it.
16697         (sys_kill): Use it.
16698
16699         * ntheap.h: Do not extern os_subtype.
16700
16701         * ntheap.c (cache_system_info): Do not cache unneeded:
16702         nt_major_version, nt_minor_version and os_subtype.
16703         (recreate_heap): Do not compile in when PDUMPing.
16704
16705         * nt.c (geteuid and friends): Use the new varibale
16706         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
16707         (init_user_info): Removed the above mentioned hackery.
16708         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
16709         stat has been fixed in the C runtime.
16710         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
16711
16712         * file-coding.c (struct file_coding_dump): Do not define
16713         ucs_to_mule_table in the struct if not MULE.
16714         (struct struct lrecord_description fcd_description_1): Do not dump
16715         the above.
16716
16717         * emacs.c (main_1): Call vars_of_nt().
16718         (right before Fdump_emacs_data): Don't need lastfile if using both
16719         portabe dumper and system malloc.
16720
16721         * alloc.c (Fmemory_limit): Conditionalized out.
16722         (pdump): Use OPEN_BINARY for the portable dump file.
16723         (pdump_load): Ditto.
16724
16725 2000-02-02  Mike Alexander  <mta@arbortext.com>
16726
16727         * nt.c (convert_time): Set tm_isdst before calling mktime and
16728         avoid calling it at all if the compiler supports 64 bit integers.
16729         Also initialize utc_base_ft before using it.
16730
16731 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16732
16733         * frame.c (change_frame_size_1): Take f->internal_border_width
16734         into consideration when calculating the width of the frame.
16735
16736 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16737
16738         * window.c (frame_min_height):
16739         (frame_size_valid_p):
16740         (frame_pixsize_valid_p): Added.
16741         (check_frame_size): Generalized.
16742
16743         * window.h: Prototyped the above.
16744
16745         * lisp.h:
16746         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
16747         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
16748         Deleted Vwin32_* and Vbinary_process_* unused variables.
16749
16750         * device-msw.c (msprinter_init_device): Do not get printer font
16751         list; Added DEVMODE functions.
16752
16753         * frame-msw.c: Added lots of printer code.
16754
16755         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
16756         general.c.
16757
16758         * console-msw.h: Added more msprinter device private slots.
16759
16760 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16761
16762         * event-msw.c (key_needs_default_processing_p): Added.
16763         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
16764
16765 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16766
16767         * glyphs.c (image_instance_layout): Mark image instance as clean
16768         after layout.
16769         (glyph_dirty_p): Removed redundant function.
16770         (invalidate_glyph_geometry_maybe): Added.
16771         (update_glyph_cachel_data): Call it.
16772
16773         * glyphs.h: Prototyped it.
16774
16775         * redisplay.c (add_glyph_rune): Call it.
16776         (redisplay_window): Reset glyphs cachels when frame faces have
16777         changed, thus forcing recomputation of built-in border glyphs.
16778
16779 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16780
16781         * Makefile.in.in: Make portable dumper and purify play well together.
16782         Add imperfect, but better than nothing, support for pdump.
16783         Remove xemacs.dmp when temacs is re-generated.
16784         Don't ignore errors when dumping xemacs.
16785
16786         * symbols.c (maybe_call_magic_handler): Remove one magic number.
16787
16788 2000-01-28  Andy Piper  <andy@xemacs.org>
16789
16790         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
16791         (setup_normal_frame): ditto.
16792         (setup_frame_without_minibuffer): ditto.
16793         (setup_minibuffer_frame): ditto.
16794         (delete_frame_internal): ditto.
16795         (Fmake_frame_invisible): ditto.
16796         (Ficonify_frame): ditto.
16797
16798         * window.h: change Fset_window_buffer signature.
16799
16800         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
16801         (Fset_window_buffer): allow recording of buffer if the window is
16802         the selected window.
16803         (window_loop): Use new Fset_window signature.
16804
16805 2000-01-23  Daniel Pittman  <daniel@danann.net>
16806
16807         * config.h.in: Added template for `HAVE_ATHENA_3D'
16808
16809 2000-01-29  Andy Piper  <andy@xemacs.org>
16810
16811         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
16812
16813         * gutter.c (output_gutter): Don't output if the window isn't live.
16814
16815 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16816
16817         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
16818         of 01/12/00: Moved SetFocus back here where it belongs.
16819
16820 2000-01-23  Andy Piper  <andy@xemacs.org>
16821
16822         * s/cygwin32.h: declare printer things.
16823
16824 2000-01-26  Andy Piper  <andy@xemacs.org>
16825
16826         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
16827         Alexander.
16828
16829 2000-01-24  Andy Piper  <andy@xemacs.org>
16830
16831         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
16832         (mswindows_button_instantiate): Make sure glyph is a pixmap.
16833
16834         * glyphs-widget.c (widget_instantiate): Avoid shadows.
16835
16836         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
16837
16838         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
16839
16840         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
16841         (mswindows_output_display_block): Avoid local shadows.
16842
16843         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
16844         (mswindows_enqueue_mouse_button_event): ditto.
16845         (mswindows_handle_gui_wm_command): remove declaration.
16846
16847         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
16848         warnings.
16849
16850         * console-msw.h: Avoid shadows.
16851         (mswindows_get_toolbar_button_text):
16852         (emacs_mswindows_create_stream_pair):
16853         (emacs_mswindows_delete_stream_pair):
16854         (mswindows_handle_toolbar_wm_command): declare.
16855
16856         * device-msw.c (build_syscolor_string): Avoid shadows.
16857
16858 2000-01-23  Andy Piper  <andy@xemacs.org>
16859
16860         * glyphs-widget.c (widget_instantiate): reverse the items for
16861         layouts so that children are in the expected order.
16862
16863 2000-01-28  Martin Buchholz  <martin@xemacs.org>
16864
16865         * ralloc.c: safe_bcopy ==> memmove
16866         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
16867         * s/msdos.h: Remove BCOPY macros.
16868         * insdel.c (gap_right): Remove BCOPY conditional code.
16869         * insdel.c (gap_left): Remove BCOPY conditional code.
16870         XEmacs demands a working ANSI C compiler - hence memmove.
16871
16872         * regex.c (regex_compile): Remove accidental use of trigraphs.
16873
16874 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16875
16876         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
16877         event timestamp.
16878
16879 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16880
16881         * event-msw.c (mswindows_drain_windows_queue): Added the
16882         parameter.
16883         (mswindows_need_event): Commented the call to
16884         mswindows_drain_windows_queue().
16885         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
16886         only.
16887
16888         * console-msw.h: Moved a few function prototypes here from
16889         event-msw.c.
16890
16891         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
16892         parameter from unsigned short to unsigned long.
16893         (Fmswindows_shell_execute): Added return value.
16894
16895 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16896
16897         * sysdep.c (init_system_name):
16898           process-unix.c (unix_canonicalized_host_name):
16899         Don't call freeaddrinfo() if getaddrinfo() fails.
16900
16901         * process-unix.c (unix_open_unix_network_stream):
16902         Moved the code to get a port # into address loop.
16903
16904 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16905
16906         * buffer.c (reinit_vars_of_buffer):
16907         The right place to initialize conversion_in_dynarr and
16908         conversion_out_dynarr.
16909
16910         * alloc.c (pdump): Use the real open() till sys_open() is functional.
16911
16912         * process-unix.c (unix_canonicalize_host_name): Muleize.
16913         (unix_open_network_stream): Muleize.
16914
16915         * buffer.h: Fix up prototypes for ralloc.c functions.
16916
16917 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16918         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
16919         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
16920                 instead of gethostbyname()
16921         * process-unix.c: In unix_canonicalize_host_name() and
16922                 unix_open_network_stream(), add code to use getaddrinfo()
16923                 instead of gethostbyname().
16924
16925 2000-01-27  Daniel Pittman <daniel@danann.net>
16926
16927         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
16928         libs when built with flat Athena.
16929
16930 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16931
16932         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
16933         Use coding standards for function prototypes.
16934
16935 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16936
16937         * dialog-msw.c (push_lisp_string_as_unicode):
16938         * doc.c (unparesseuxify_doc_string):
16939         * dired.c (Fuser_name_completion_1):
16940         * dired.c (Fuser_name_all_completions):
16941         * dired.c (free_user_cache):
16942         * dired.c (user_name_completion):
16943         * console-x.c (get_display_arg_connection):
16944         * minibuf.c (clear_echo_area_internal):
16945         * minibuf.c (echo_area_append):
16946         * eldap.c (Fldap_open):
16947         * eldap.c (Fldap_search_internal):
16948         * frame-x.c (x_set_frame_text_value):
16949         * frame-x.c (x_set_frame_properties):
16950         * frame-x.c (x_create_widgets):
16951         * redisplay-tty.c (term_get_fkeys_1):
16952         * objects-x.c (x_parse_nearest_color):
16953         * objects-x.c (x_valid_color_name_p):
16954         * objects-x.c (x_initialize_font_instance):
16955         * objects-x.c (x_list_fonts):
16956         * objects-x.c (x_find_charset_font):
16957         * tooltalk.c (Fadd_tooltalk_message_arg):
16958         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
16959         * tooltalk.c (Fadd_tooltalk_pattern_arg):
16960         * process-unix.c (unix_create_process):
16961         * ntproc.c (sys_spawnve):
16962         * sound.c (Fplay_sound_file):
16963         * sound.c (Fplay_sound):
16964         * buffer.c (init_initial_directory):
16965         * buffer.c (init_buffer):
16966         * editfns.c (init_editfns):
16967         * editfns.c (Ftemp_directory):
16968         * editfns.c (Fuser_full_name):
16969         * editfns.c (uncache_home_directory):
16970         * editfns.c (get_home_directory):
16971         * editfns.c (Fuser_home_directory):
16972         * editfns.c (Fformat_time_string):
16973         * editfns.c (Fcurrent_time_string):
16974         * gui-x.c (button_item_to_widget_value):
16975         * database.c (Fopen_database):
16976         * event-Xt.c (x_to_emacs_keysym):
16977         * event-Xt.c (x_event_to_emacs_event):
16978         * event-Xt.c (describe_event_window):
16979         * event-msw.c (mswindows_wnd_proc):
16980         * glyphs-eimage.c (jpeg_instantiate):
16981         * glyphs-eimage.c (gif_instantiate):
16982         * glyphs-eimage.c (png_instantiate):
16983         * glyphs-eimage.c (tiff_instantiate):
16984         * glyphs-x.c (xbm_instantiate_1):
16985         * glyphs-x.c (x_xbm_instantiate):
16986         * glyphs-x.c (x_xface_instantiate):
16987         * glyphs-x.c (autodetect_instantiate):
16988         * glyphs-x.c (cursor_font_instantiate):
16989         * glyphs-x.c (x_widget_instantiate):
16990         * glyphs-x.c (x_widget_set_property):
16991         * glyphs-x.c (x_widget_property):
16992         * glyphs-x.c (BUILD_GLYPH_INST):
16993         * print.c (write_string_to_stdio_stream):
16994         * print.c (output_string):
16995         * print.c (Falternate_debugging_output):
16996         * print.c (Fexternal_debugging_output):
16997         * glyphs-msw.c (extract_xpm_color_names):
16998         * glyphs-msw.c (mswindows_xpm_instantiate):
16999         * glyphs-msw.c (bmp_instantiate):
17000         * glyphs-msw.c (resource_name_to_resource):
17001         * glyphs-msw.c (mswindows_resource_instantiate):
17002         * glyphs-msw.c (xbm_instantiate_1):
17003         * glyphs-msw.c (mswindows_xbm_instantiate):
17004         * glyphs-msw.c (mswindows_xface_instantiate):
17005         * glyphs-msw.c (mswindows_widget_instantiate):
17006         * glyphs-msw.c (add_tree_item):
17007         * glyphs-msw.c (add_tab_item):
17008         * glyphs-msw.c (mswindows_combo_box_instantiate):
17009         * glyphs-msw.c (mswindows_widget_property):
17010         * glyphs-msw.c (mswindows_combo_box_property):
17011         * glyphs-msw.c (mswindows_widget_set_property):
17012         * console.c (stuff_buffered_input):
17013         * objects-msw.c (mswindows_initialize_color_instance):
17014         * objects-msw.c (mswindows_valid_color_name_p):
17015         * objects-msw.c (mswindows_list_fonts):
17016         * objects-msw.c (mswindows_font_instance_truename):
17017         * bytecode.c (optimize_compiled_function):
17018         * select-x.c (symbol_to_x_atom):
17019         * select-x.c (x_atom_to_symbol):
17020         * select-x.c (hack_motif_clipboard_selection):
17021         * select-x.c (selection_data_to_lisp_data):
17022         * select-x.c (lisp_data_to_selection_data):
17023         * select-x.c (Fx_get_cutbuffer_internal):
17024         * select-x.c (Fx_store_cutbuffer_internal):
17025         * buffer.h (TO_EXTERNAL_FORMAT): New function.
17026         * buffer.h (TO_INTERNAL_FORMAT): New function.
17027         * emacs.c (make_arg_list_1):
17028         * emacs.c (make_argc_argv):
17029         * emacs.c (main_1):
17030         * emacs.c (Fdump_emacs):
17031         * emacs.c (split_string_by_emchar_1):
17032         * file-coding.h:
17033         * lisp.h:
17034         * lstream.h:
17035         * symsinit.h:
17036         * device-x.c (x_init_device):
17037         * device-x.c (Fx_valid_keysym_name_p):
17038         * device-x.c (Fx_get_font_path):
17039         * device-x.c (Fx_set_font_path):
17040         * glyphs.c (bitmap_to_lisp_data):
17041         * glyphs.c (pixmap_to_lisp_data):
17042         * alloc.c (make_ext_string): Use coding system arguments.  Update
17043         all callers.
17044         * alloc.c (build_string):
17045         * callproc.c (child_setup):
17046         * callproc.c (init_callproc):
17047         * fileio.c (lisp_strerror):
17048         * fileio.c (directory_file_name):
17049         * fileio.c (Fexpand_file_name):
17050         * fileio.c (Ffile_truename):
17051         * fileio.c (Fsysnetunam):
17052         * fileio.c (Fdo_auto_save):
17053         * sysdep.c (sys_readdir):
17054         * tests.c: New file.  Allow adding C tests.
17055         Replace GET_* macros with a more comprehensible and flexible
17056         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
17057         Modify all calls.
17058         Any coding system can be used to do format conversion.
17059         Eliminate enum external_data_format.
17060         Eliminate convert_to_external_format.
17061         Eliminate convert_to_internal_format.
17062         Make sure file-name, keyboard, terminal, and ctext are always
17063         defined as coding systems or aliases.  Make
17064         file-name-coding-system, terminal-coding-system, and
17065         keyboard-coding-system magical variables that are equivalent to
17066         defining the corresponding coding system aliases.
17067
17068         * file-coding.c (Fcoding_system_canonical_name_p): New function.
17069         * file-coding.c (Fcoding_system_alias_p): New function.
17070         * file-coding.c (Fcoding_system_aliasee): New function.
17071         * file-coding.c (append_suffix_to_symbol): New function.
17072         * file-coding.c (dangling_coding_system_alias_p): New function.
17073         * file-coding.c (Ffind_coding_system):
17074         * file-coding.c (Fcopy_coding_system):
17075         * file-coding.c (encode_coding_no_conversion):
17076         * file-coding.c (syms_of_file_coding):
17077         * file-coding.c (vars_of_file_coding):
17078         Rewrite coding system alias code.
17079         Allow nested aliases, like symbolic links.
17080         Allow redefinition of coding system aliases.
17081         Prevent existence of dangling coding system aliases.
17082
17083         * dired.c (Fuser_name_completion_1):
17084         * dired.c (Fuser_name_all_completions):
17085         A crash would happen if user did QUIT in the middle of building
17086         user_name_cache.  Remove redundant code in mainline and unwind_protect.
17087
17088         * lisp.h:
17089         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
17090
17091         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
17092         an unsigned char *.  Update all callers.
17093
17094 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17095
17096         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
17097
17098 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17099
17100         * elhash.c (hentry_description): Use more portable definition.
17101         (resize_hash_table): Initialize new hentries using
17102         xnew_array_and_zero, thereby simplifying the code.
17103
17104         * mule-charset.c (make_charset): Make sure entire object is
17105         initialized, to avoid Purify warnings.
17106
17107         * alloc.c (resize_string): Fix unlikely crash with big strings.
17108
17109 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17110
17111         * realpath.c (xrealpath):
17112         Don't call getwd().
17113
17114 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17115
17116         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
17117
17118 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
17119
17120         * unexelfsgi.c (unexec): Change the way we decide which segment
17121         should be extended.
17122
17123         Assumption that .bss section should be outside the PT_LOADable
17124         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
17125         it's present) is inside the 'data' segment. This would fail the
17126         test which was used to find a segment to grow and cover new
17127         heap. Instead of this assumption, I created another one - on IRIX
17128         the segment to grow should start below .bss and it's address
17129         should extent above the end of .bss. Once this segment is
17130         identified, it's grown to accommodate the new heap and new
17131         zero-length .bss section is added at the end of .data2.
17132
17133 2000-01-25  Martin Buchholz  <martin@xemacs.org>
17134
17135         * eval.c (Feval): Wrong number of arguments should use original
17136         function, not the indirect_function version of it.
17137
17138 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
17139
17140         * glyphs-x.c (x_button_instantiate): Don't add image if
17141         it is not a pixmap.
17142         (x_locate_pixmap_file): Call Fexpand_file_name when file name
17143         is relative.
17144
17145 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
17146
17147         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17148         declaration.
17149         (DEFVAR_INT_MAGIC): Ditto.
17150         (DEFVAR_BOOL_MAGIC): Ditto.
17151         * glyphs.h: Reindent backslash.
17152
17153 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17154
17155         * glyphs-widget.c (layout_query_geometry):
17156         (layout_layout): Use correct types for gheight, gwidth.
17157
17158 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17159
17160         * EmacsManager.c (QueryGeometry): Purified.
17161
17162 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17163
17164         * alloc.c (make_float): Make sure entire object is initialized, to
17165         avoid Purify warnings.
17166         (pdump_register_sub): Remove useless assignment.
17167         (pdump): Use xmalloc, not malloc.
17168         (pdump_load): Use xmalloc, not malloc.
17169
17170 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17171
17172         * callproc.c:
17173         * dired-msw.c:
17174         * fileio.c:
17175         * process-nt.c:
17176         * redisplay-msw.c:
17177         * sysdep.c: Removed redundant #include <windows.h>
17178
17179 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17180
17181         * frame.c (delete_frame_internal): Do not delete device when its
17182         implementation so declares.
17183         (delete_frame_internal): Set device selected frame to nil when
17184         last frame goes away.
17185
17186         * device-msw.c (msprinter_device_system_metrics): Implemented.
17187         (mswindows_device_system_metrics): Added 'device-dpi property.
17188
17189         * device.c: (Fdevice_printer_p): Added.
17190         Added 'offset-workspace device metric.
17191
17192         * console.h (device_metrics): Declared DM_offset_workspace.
17193
17194 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17195
17196         * fileio.c (Ffile_truename): Remove pointless and confusing
17197         initialization of elen.
17198
17199         * glyphs-widget.c: Compiler warning fixes.
17200
17201 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17202
17203         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17204         instead of a Lisp_Object as argument to make it consistent with
17205         the other LIVE_P macros.
17206         (CHECK_LIVE_PROCESS): New macro.
17207
17208         * process.c: Declare Qprocess_live_p.
17209         (Fprocess_live_p): New function.
17210         (create_process): Use PROCESS_LIVE_P.
17211         (read_process_output): Ditto.
17212         (set_process_filter): Ditto.
17213         (Fdelete_process): Ditto.
17214         (kill_buffer_processes): Ditto
17215         (process_send_signal): Use CHECK_LIVE_PROCESS.
17216         (Fprocess_input_coding_system): Check whether process is still
17217         alive (fix PR#1061).
17218         (Fprocess_output_coding_system): Ditto.
17219         (Fprocess_coding_system): Ditto.
17220         (Fset_process_input_coding_system): Ditto.
17221         (Fset_process_output_coding_system): Ditto.
17222
17223 2000-01-23  Andy Piper  <andy@xemacs.org>
17224
17225         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17226         layout and widget.
17227
17228         * glyphs.c (mark_image_instance): take into account changed
17229         image_instance format.
17230         (image_instance_equal): ditto.
17231         (image_instance_hash): ditto.
17232
17233         * glyphs-widget.c (widget_instantiate): Incorporate layout
17234         instantiation here. Delay layout of the layout until later.
17235         (layout_instantiate): deleted.
17236         (layout_query_geometry): new function. get the geometry of a
17237         layout.
17238         (layout_layout): layout a layout dynamically.
17239         (image_instantiator_widget): New function - splitting up
17240         image_instantiator_format_create_glyphs_widget for netwinder
17241         compilation.
17242         (image_instantiator_buttons):
17243         (image_instantiator_edit_fields):
17244         (image_instantiator_combo_box):
17245         (image_instantiator_scrollbar):
17246         (image_instantiator_progress_guage):
17247         (image_instantiator_tree_view):
17248         (image_instantiator_tab_control):
17249         (image_instantiator_labels):
17250         (image_instantiator_layout): ditto.
17251         (image_instantiator_format_create_glyphs_widget): Call preceding
17252         functions.
17253
17254 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17255
17256         * process.c (Fset_process_coding_system):
17257         * device-x.c (Fx_keysym_hash_table):
17258         Docstring fixes.
17259
17260         * lstream.c (Lstream_write): Return documented value, not 0.
17261
17262         * fileio.c (directory_file_name):
17263         (Fsubstitute_in_file_name):
17264         (Fsubstitute_insert_file_contents_internal):
17265         (Fwrite_region_internal):
17266         * emacs.c:
17267         * sysdep.c:
17268         * getloadavg.c:
17269         * systty.h:
17270         Remove vestigial APOLLO-conditional code.
17271
17272 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17273
17274         * getpagesize.h: Add guard macros.
17275         * libsst.h: Add guard macros.
17276         * libst.h: Add guard macros.
17277         * line-number.h: Add guard macros.
17278         * ndir.h: Add guard macros.
17279         * sysfloat.h: Add guard macros.
17280         * sysfile.h: Add guard macros.
17281         * sysproc.h: Add guard macros.
17282         * syswait.h: Add guard macros.
17283         * xintrinsic.h: Add guard macros.
17284         * xintrinsicp.h: Add guard macros.
17285         * xmmanager.h: Add guard macros.
17286         * xmmanagerp.h: Add guard macros.
17287         * xmprimitive.h: Add guard macros.
17288         * xmu.h: Add guard macros.
17289         * gpmevent.h: Add copyright statement. Add guard macros.
17290         * miscplay.h: Add guard macros.
17291         * *.h: Use consistent C-standards-approved guard macro names.
17292
17293         * opaque.c (make_opaque): Switch parameter order.
17294         * opaque.h (make_opaque): Switch parameter order.
17295         Update all callers.
17296         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17297
17298         * config.h.in (type_checking_assert): Added.
17299         (bufpos_checking_assert): Added.
17300
17301 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17302
17303         * alloc.c: Harmless pdump changes.
17304         - Use countof().
17305         - spell alignment correctly.
17306         * sysdep.c: Use countof()
17307
17308 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17309
17310         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17311         initially_selected_for_input() console method, default to 0.
17312         (semi_canonicalize_console_connection): Try to delegate to
17313         canonicalize_console_connection if no such console method.
17314         (canonicalize_console_connection): Vice versa.
17315         (print_console): Do not print nil connection.
17316
17317         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17318         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17319         (XDEVIMPF_FRAMELESS_OK): Added.
17320         (CONSOLE_INHERITS_METHOD): Added.
17321
17322         * console-msw.c (mswindows_canonicalize_console_connection):
17323         Added.
17324         (mswindows_canonicalize_device_connection): Added.
17325
17326         * console-msw.h (struct msprinter_device): Added this struct and
17327         accessor macros.
17328         (mswindows_device): Made fontlist a lisp object.
17329
17330         * device.c (semi_canonicalize_device_connection):  Try to delegate
17331         to canonicalize_device_connection if no such console method.
17332         (canonicalize_device_connection): Vice versa.
17333         (print_device): Do not print nil connection.
17334
17335         * device-msw.c (mswindows_init_device): Call InitCommonControls
17336         when have widgets.
17337         (mswindows_delete_device): Removed fontlist deallocation.
17338         (mswindows_mark_device): Added.
17339
17340         * events.c (event_equal): Added abort() at unreached code.
17341         (event_hash): Ditto.
17342
17343         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17344         fallback tags of Windows devices.
17345
17346         * general.c (syms_of_general): Initialized Qmsprinter.
17347
17348         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17349         of fallback tags of Windows devices.
17350
17351         * lisp.h: Declared Qmsprinter.
17352
17353         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17354         of strings.
17355         (mswindows_list_fonts): Ditto.
17356         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17357         that it can be used by both mswindows and msprinter devices.
17358         (initialize_font_instance): Added.
17359         (mswindows_initialize_font_instance): Use it.
17360         (msprinter_initialize_font_instance): Added.
17361
17362         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17363         and implementation flags check.
17364         (redisplay_without_hooks): Changed the call to the above.
17365         (Fredraw_device): Ditto.
17366         (Fredisplay_device): Ditto.
17367
17368         * redisplay-msw.c (get_frame_dc): Implemented.
17369         (get_frame_compdc): Implemented.
17370         (many functions): Use the two functions above to get device
17371         contexts, ether for a window or a printer.
17372
17373 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17374
17375         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17376         initialization here.
17377         (init_symbols_once_early): Call it.
17378         * emacs.c (main_1): Call it.
17379         * symsinit.h: Declare it.
17380
17381 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17382
17383         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17384         Lisp_Object.
17385         (pdump_backtrace): Ditto.
17386         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17387         (pdump_get_entry): Abort if trying to register a null pointer.
17388         (pdump_dump_data): Cleanup types when relocating.
17389         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17390         (pdump_dump_rtables): Remove bad casts.
17391         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17392         Lisp_Object instead of a EMACS_INT for the hashtable
17393         reorganization.
17394
17395 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17396
17397         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17398
17399         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17400
17401         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17402
17403         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17404
17405 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17406
17407         * faces.h (FACE_STRIKETHRU_P): Added.
17408
17409         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17410         of font variants.
17411
17412         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17413         (mswindows_set_dc_font): New function, aware of font variants,
17414         separated from mswindows_update_dc.
17415
17416         * objects-msw.h (struct mswindows_font_instance_data): Added
17417         definition.
17418
17419         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17420         cached fonts and the data structure.
17421         (mswindows_initialize_font_instance): Added creation of font data
17422         structure.
17423         (mswindows_print_font_instance): Print at least something.
17424         (mswindows_create_font_variant): Implemented.
17425         (mswindows_get_hfont): Implemented.
17426
17427 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17428
17429         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17430         prototyping problem with msvc.
17431
17432         * emacs.c (main_1): added syms_of_gui_mswindows() call
17433
17434         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17435         syms_of_gui_mswindows() function
17436
17437         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17438
17439 2000-01-18  Martin Buchholz <martin@xemacs.org>
17440
17441         * XEmacs 21.2.27 is released.
17442
17443 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17444
17445         * glyphs-eimage.c (struct tiff_error_struct):
17446         (tiff_error_func):
17447         (tiff_warning_func):
17448         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17449
17450         * unexmips.c:
17451         * unexhp9k3.c:
17452         * unexfreebsd.c:
17453         * unexec.c: Remove vestigial Lucid C code.
17454         * unexalpha.c:
17455         * unexaix.c:
17456         * termcap.c:
17457         * libsst.c: Ansify.
17458         Remove declarations of errno and strerror().
17459
17460         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17461
17462         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17463
17464 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17465
17466         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17467         Optimize.
17468
17469 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17470
17471         * md5.c:
17472         * file-coding.c:
17473         * file-coding.h:
17474         Change enum eol_type to eol_type_t.
17475
17476 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17477
17478         * gui.c (get_gui_callback): Check cons before accessing car.
17479
17480 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17481
17482         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17483         (XSETSPECIFIER_TYPE): Ditto.
17484
17485 2000-01-17  Didier Verna  <didier@xemacs.org>
17486
17487         * redisplay.c (generate_fstring_runes): compute string size in
17488         characters, not bytes.
17489
17490 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17491
17492         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17493
17494 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17495
17496         * print.c (print_error_message): Call print_prepare().
17497
17498 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17499
17500         * .dbxrc: Renamed from dbxrc.
17501
17502         * events.c (event_to_character):
17503         Use `assert (foo)' instead of `if (!foo) abort()'
17504
17505         * .gdbinit (xtype): Add documentation.
17506         * .gdbinit (check-temacs): New function.
17507         * .gdbinit (check-xemacs): New function.
17508         * dbxrc (check-xemacs): New function.
17509         * dbxrc (check-xemacs): New function.
17510
17511 2000-01-14  Andy Piper  <andy@xemacs.org>
17512
17513         * glyphs-widget.c (widget_query_geometry): Make sure that we
17514         calculate default dimensions correctly.
17515
17516 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17517
17518         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17519
17520         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17521         pdump_wire'd variable.
17522
17523         * emacs.c: (main_1): Conditionalized calls to
17524         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17525
17526 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17527
17528         * window.c (Fset_window_configuration):
17529         * sysdep.c (_start):
17530         * input-method-motif.c (res):
17531         * event-Xt.c (Xt_process_to_emacs_event):
17532         Simple compiler warning fixes.
17533
17534         * bytecode.c (funcall_compiled_function): Use the original
17535         function symbol on the backtrace list in preference to the
17536         compiled_function object in error messages.
17537
17538 2000-01-13  Andy Piper  <andy@xemacs.org>
17539
17540         * glyphs-x.c (update_widget_face): Make sure we update the widget
17541         background as well as foreground.
17542
17543 2000-01-13  Andy Piper  <andy@xemacs.org>
17544
17545         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17546         fields to subwindow.
17547         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17548         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17549         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17550         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17551
17552         * glyphs-widget.c (check_valid_tab_orientation): new function.
17553         (initialize_widget_image_instance): zero orientation and
17554         justification.
17555         (widget_instantiate): pick up orientation.
17556         (tab_control_query_geometry): return appropriate values for
17557         vertical tabs.
17558
17559         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17560         appropriate creation flags for left, right and bottom tabs.
17561
17562         * s/cygwin32.h: add tab definitions.
17563
17564 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17565
17566         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17567         frame upon hiding a subwindow.
17568         (mswindows_button_instantiate): Changed the push button style to
17569         BS_PUSHBUTTON.
17570         (mswindows_button_instantiate): Removed button BS_NOTIFY
17571         style.
17572         (mswindows_button_instantiate): Removed redundant check for
17573         a disabled gui item.
17574         (mswindows_button_instantiate): Made use of WS_TABSTOP
17575         consistent: "operable" controls (edit, button, tree, scroll) have
17576         this style, "display-only" ones (static, progress gauge) do
17577         not. This style is currently ignored by XEmacs though. Also,
17578         removed the WS_EX_CONTROLPARENT style - it is not for children,
17579         it is for their parents!
17580         (mswindows_edit_field_instantiate): Ditto.
17581         (mswindows_progress_gauge_instantiate): Ditto.
17582         (mswindows_tree_view_instantiate): Ditto.
17583         (mswindows_tab_control_instantiate): Ditto.
17584         (mswindows_scrollbar_instantiate): Ditto.
17585         (mswindows_combo_box_instantiate): Ditto.
17586         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17587         style to the "clip" window.
17588         (mswindows_button_instantiate): Removed compilation warning by
17589         equally typing terms of the ?: operator.
17590
17591 2000-01-12  Didier Verna  <didier@xemacs.org>
17592
17593         * redisplay.c (generate_fstring_runes): new parameter holding the
17594         last modeline-format extent.
17595         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17596         extent, fill the glyph block with it.
17597         (generate_fstring_runes): handle these parameters.
17598         (generate_formatted_string_db): ditto.
17599
17600         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17601         glyphs'extents in the modeline.
17602
17603 1999-01-11  Mike Woolley  <mike@bulsara.com>
17604
17605         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17606         256Mb, as a workaround for the non-starting problem many people
17607         have experienced.
17608
17609 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17610
17611         * console-tty.c (Fset_console_tty_output_coding_system):
17612         Force redrawing tty frame.
17613
17614 2000-01-10  Didier Verna  <didier@xemacs.org>
17615
17616         * redisplay.c (generate_fstring_runes): fix size computation bug.
17617
17618 2000-01-09  William M. Perry <wmperry@aventail.com>
17619
17620         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17621
17622 2000-01-09  Andy Piper  <andy@xemacs.org>
17623
17624         * glyphs-msw.c: index -> i to avoid shadows.
17625         (xbm_create_bitmap_from_data): make static.
17626         (check_valid_string_or_int): deleted.
17627         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17628
17629         * glyphs-x.c (x_update_subwindow): remove unused args.
17630
17631         * glyphs.c (glyph_image_instance): return the thing. Don't set the
17632         back pointer - this is done in allocate_image_instance.
17633         (query_string_font): return Qnil to make the compiler happy.
17634         (unmap_subwindow): set to ~0 to make the compiler happy.
17635         (glyph_query_geometry): comment out until used.
17636         (glyph_layout): ditto.
17637
17638 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17639
17640         * insdel.c (signal_after_change): Remove extraneous unbind_to().