update.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (Q_halfwidth_of): New variable.
4         (put_char_composition): Return `<-halfwidth' instead of
5         `=decomposition' for compatibility mapping to single character
6         tagged `narrow'.
7         (Fput_char_attribute): Convert char-specs in value of
8         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
9         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
10         for `<-halfwidth'.
11         (syms_of_chartab): Add new symbol `<-halfwidth'.
12
13 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
14
15         * chartab.c (put_char_composition): Return
16         `<-formed@{isolated|initial|medial|final}' for compatibility
17         mapping to single character tagged
18         `{isolated|initial|medial|final}'.
19
20 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
21
22         * chartab.c (Q_compat_of): Deleted.
23         (put_char_composition): Return `<-FOO' for compatibility mapping
24         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
25         of `symbol_name (XSYMBOL(...))'.
26         (Fput_char_attribute): Convert char-specs in value of
27         `{<-|->}font[^*]*' to characters and put reverse links.
28         (Fsave_char_attribute_table): Don't refer Q_compat_of.
29         (syms_of_chartab): Delete builtin symbol `<-compat'.
30
31 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
32
33         * chartab.c (Q_circled_of): New variable.
34         (put_char_composition): Return `<-circled' instead of
35         `=decomposition' for compatibility mapping to single character
36         tagged `circle'.
37         (Fput_char_attribute): Convert char-specs in value of
38         `{<-|->}circled[^*]*' to characters and put reverse links.
39         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
40         for `<-circled'.
41         (syms_of_chartab): Add new symbol `<-circled'.
42
43 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
44
45         * chartab.c (Qto_decomposition_at_circled): New variable.
46         (put_char_composition): Return `=>decomposition@circled' instead
47         of `=decomposition' for compatibility decomposition mapping tagged
48         `circle'.
49         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
50
51 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
52
53         * chartab.c (Q_subscript_of): New variable.
54         (put_char_composition): Return `<-subscript' instead of
55         `=decomposition' for compatibility mapping to single character
56         tagged `sub'.
57         (Fput_char_attribute): Convert char-specs in value of
58         `{<-|->}subscript[^*]*' to characters and put reverse links.
59         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
60         for `<-subscript'.
61         (syms_of_chartab): Add new symbol `<-subscript'.
62
63 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
64
65         * chartab.c (Q_superscript_of): New variable.
66         (put_char_composition): Return `<-superscript' instead of
67         `=decomposition' for compatibility mapping to single character
68         tagged `super'.
69         (Fput_char_attribute): Convert char-specs in value of
70         `{<-|->}superscript[^*]*' to characters and put reverse links.
71         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
72         for `<-superscript'.
73         (syms_of_chartab): Add new symbol `<-superscript'.
74
75 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
76
77         * chartab.c (Qto_decomposition_at_compat): Deleted.
78         (Qto_decomposition_at_superscript): New variable.
79         (put_char_composition): Use `=>decomposition@superscript' instead
80         of `=decomposition' for compatibility decomposition mapping tagged
81         `super'.
82         (Fput_char_attribute): Fix condition about `put_char_composition'.
83         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
84         add news symbol `=>decomposition@superscript'.
85
86 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
87
88         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
89         for compatibility decomposition mapping tagged FOO.
90         (Fput_char_attribute): Modify for `put_char_composition'.
91
92 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
93
94         * chartab.c (Qto_decomposition_at_compat): New variable.
95         (Q_compat_of): Renamed from `Q_compatibility_of'.
96         (put_char_composition): Rename `Q_compatibility_of' to
97         `Q_compat_of'; return `=>decomposition@compat' for compatibility
98         decomposition mapping.
99         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
100         `Q_compat_of'.
101         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
102         `<-compatibility' to `<-compat'.
103
104 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
105
106         * chartab.c (Q_compatibility_of): New variable.
107         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
108         object is proved to be a cons cell; return `<-compatibility' if
109         the first element of argument `value' is `compat'.
110         (Fput_char_attribute): Eliminate the first value if
111         `put_char_composition' returns `<-compatibility'.
112         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
113         for `<-compatibility'.
114         (syms_of_chartab): Add new symbol `<-compatibility'.
115
116 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
117
118         * chartab.c (Q_canonical): New variable.
119         (put_char_composition): Return a feature name: return
120         `->canonical' if argument `value' specifies single character.
121         (Fput_char_attribute): Use `put_char_composition' to determine
122         feature name for `=decomposition' or `->denotational'.
123         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
124         for `->canonical'.
125         (syms_of_chartab): Add new symbol `->canonical'.
126
127 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
128
129         * chartab.c (Qmap_decomposition): New variable.
130         (Fput_char_attribute): Convert `->decomposition' to
131         `=decomposition'.
132         (syms_of_chartab): Add new symbol `=decomposition'.
133
134 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
135
136         * chartab.c (Fget_range_char_table): Fix serious problem when
137         `range' is nil.
138
139 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
140
141         * chartab.c (char_table_get_db): Use `read_from_c_string'.
142
143 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
144
145         * lread.c (read_from_c_string): New function.
146
147         * lisp.h (read_from_c_string): New prototype.
148
149 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
150
151         * chartab.c (Fput_char_attribute): Convert char-specs in value of
152         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
153         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
154         for `{<-|->}Oracle-Bones[^*]*'.
155
156 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
157
158         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
159         (Kizu).
160
161 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
162
163         * text-coding.c (Qccs_priority_list): New variable in XEmacs
164         CHISE.
165         (Fmake_coding_system): Support new property `ccs-priority-list' in
166         XEmacs CHISE.
167         (Fcoding_system_property): Likewise.
168         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
169         Vdefault_coded_charset_priority_list in XEmacs CHISE.
170         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
171         XEmacs CHISE.
172         (complex_vars_of_file_coding): Define new coding-system-property
173         `ccs-priority-list' in XEmacs CHISE.
174
175         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
176
177 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
178
179         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
180         changed to normal function.
181         (encode_char_2): Likewise.
182
183         * mule-charset.c (decoding_table_put_char): Copied from
184         char-ucs.h; changed to normal function.
185         (encode_char_2): Likewise.
186
187 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
188
189         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
190         New extern.
191         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
192         (encode_char_2_search_children): New inline function.
193         (encode_char_2): Refer
194         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
195         and use `encode_char_2_search_children'.
196
197 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
198
199         * mule-charset.c
200         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
201         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
202         (vars_of_mule_charset): Add new variable
203         `display-coded-charset-priority-use-inheritance' and
204         `display-coded-charset-priority-use-hierarchy-order'.
205
206 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
207
208         * char-ucs.h (Q_subsumptive): New extern.
209         (Q_denotational): Likewise.
210         (encode_char_2): Search children specified by `->subsumptive' and
211         `->denotational'.
212
213 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
214
215         * mule-charset.c (complex_vars_of_mule_charset): Modify the
216         X-registry of `ucs-bmp'.
217
218 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
219
220         * chartab.c (char-variants): Refer `->subsumptive',
221         `->denotational' and `->identical' as same as `->ucs-unified'.
222
223 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
224
225         * chartab.c (Fput_char_attribute): Convert char-specs in value of
226         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
227         links.
228
229 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
230
231         * text-coding.c: Add EXFUN for `Fregexp_quote'.
232         (decode_add_er_char): Fix problem about infinite loop when a CCS
233         specified in `coded-charset-entity-reference-alist' is not
234         existed.
235
236 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
237
238         * mule-charset.c (syms_of_mule_charset): Rename
239         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
240
241 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
242
243         * fns.c (simplify_char_spec): Don't allocate new character-object
244         if specified char_spec does not have any CCS-features.
245
246         * chartab.h: Add EXFUN for Fdefine_char.
247
248         * chartab.c: Delete EXFUN for Fdefine_char.
249
250 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
251
252         * fns.c (simplify_char_spec): Use Fdefine_char instead of
253         Ffind_char for char-spec.
254
255 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
256
257         * lisp-disunion.h (XCHARVAL): Fix condition about
258         SIZEOF_EMACS_INT.
259
260 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
261
262         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
263         <int> for `code'.
264         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
265         point; use <Emchar> instead of <int> for character-id.
266
267 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
268
269         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
270         (make_char): Likewise.
271         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
272         environment.
273         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
274         instead of <int> as the type of return value; use <Lisp_Object>
275         instead of <Emchar> as the type of argument.
276         (XCHARVAL[macro version]): Cast the result into <Emchar>.
277
278         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
279         syntaxcode> instead of <int>.
280
281 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
282
283         * chartab.c (put_char_composition): Use DECODE_CHAR to get
284         character corresponding with UCS code point.
285         (Fput_char_attribute): Likewise.
286
287         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
288         character in the UCS decoding-table if the char-id is not equal to
289         the UCS code point.
290
291 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
292
293         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
294         for aliases; write `description'; write
295         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
296         not 0.
297
298 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
299
300         * chartab.c (Fsave_char_attribute_table): Don't use
301         `save_charset_properties'.
302
303         * mule-charset.c (Fsave_charset_properties): Renamed from
304         `save_charset_properties' and changed to Lisp function again;
305         write property `type' as `CCS'; write properties `final-byte' and
306         `mother' if they exists.
307         (syms_of_mule_charset): Revive builtin function
308         `save-charset-properties' when HAVE_LIBCHISE is defined.
309
310 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
311
312         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
313         instead of Vexec_directory.
314         (char_attribute_system_db_file): Likewise.
315
316 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
317
318         * chartab.c (Fsave_char_attribute_table): Use
319         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
320         defined.
321
322         * mule-charset.c (save_charset_properties): Renamed from
323         `Fsave_charset_properties'; changed to non-Lisp function.
324         (syms_of_mule_charset): Abolish builtin function
325         `save-charset-properties'.
326
327 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
328
329         * mule-charset.c (Fsave_charset_properties): New function when
330         HAVE_LIBCHISE is defined.
331         (syms_of_mule_charset): Add new builtin function
332         `save-charset-properties' when HAVE_LIBCHISE is defined.
333
334 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
335
336         * chartab.c (Fput_char_attribute): Convert char-specs in value of
337         `{<-|->}ancient[^*]*' to characters and put reverse links.
338         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
339         for `{<-|->}ancient[^*]*'.
340
341 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
342
343         * chartab.c (Fput_char_attribute): Convert char-specs in value of
344         `{<-|->}original[^*]*' to characters and put reverse links.
345         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
346         for `{<-|->}original[^*]*'.
347
348 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
349
350         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
351
352 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
353
354         * mule-charset.c (Qsystem_char_id): New variable.
355
356         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
357         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
358
359 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
360
361         * chartab.c (Fput_char_attribute): When processing a reference of
362         a character, put into the end of the reversed reference of each
363         target character.
364
365 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
366
367         * chartab.c (Q_same): Deleted.
368         (Q_same_of): Deleted.
369         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
370         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
371         for `{<-|->}same'.
372         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
373
374 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
375
376         * chartab.c (Q_vulgar): Deleted.
377         (Q_vulgar_of): Deleted.
378         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
379         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
380         for `{<-|->}vulgar'.
381         (syms_of_chartab): Don't define `{<-|->}vulgar'.
382
383 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
384
385         * chartab.c (Fput_char_attribute): Convert char-specs in value of
386         `{<-|->}wrong[^*]*' to characters and put reverse links.
387         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
388         for `{<-|->}wrong[^*]*'.
389
390 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
391
392         * chartab.c (Q_vulgar): New variable.
393         (Q_vulgar_of): New variable.
394         (Fput_char_attribute): Convert char-specs in value of
395         `{->|<-}vulgar' to characters and put reverse links.
396         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
397         for `{->|<-}vulgar'.
398         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
399
400 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
401
402         * text-coding.c (decode_add_er_char): Must to quote prefix string
403         as regexp.
404
405 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
406
407         * mule-charset.c (put_char_ccs_code_point): Store characters of
408         =ucs whose code_points >= 0xF0000.
409
410 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
411
412         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
413         CHISE.
414         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
415         CHISE.
416         (complex_vars_of_mule_charset): Add new coded-charset
417         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
418         builtin characters over 0xEFFFF.
419
420         * chartab.c (syms_of_chartab): Don't define symbol
421         `system-char-id' in every case.
422
423         * char-ucs.h (Qsystem_char_id): New extern variable.
424         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
425
426 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
427
428         * text-coding.c (char_encode_utf8): Try to use entity-references
429         for U-000F0000 ...  U-0010FFFF.
430
431 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
432
433         * text-coding.c (ER_BUF_SIZE): New macro.
434         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
435         `er_buf'.
436         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
437         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
438
439 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
440
441         * chartab.c (find_char_feature_in_family): New function.
442         (Fchar_feature): Use `find_char_feature_in_family' with
443         `->identical', `<-subsumptive' and `<-denotational'.
444
445 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
446
447         * text-coding.c (char_encode_as_entity_reference): Allow prefix
448         within 8 characters; fix infinite loop.
449
450 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
451
452         * chartab.c (Q_same): New variable.
453         (Q_same_of): New variable.
454         (Fput_char_attribute): Convert char-specs in value of
455         `{->|<-}same' to characters and put reverse links.
456         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
457         for `{->|<-}same'.
458         (syms_of_chartab): Add new symbols `{->|<-}same'.
459
460 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
461
462         * chartab.c (Q_component): New variable.
463         (Q_component_of): Likewise.
464         (Fput_char_attribute): Convert char-specs in value of
465         `{->|<-}ideographic-component-forms' to characters and put reverse
466         links.
467         (syms_of_chartab): Add new symbols
468         `{->|<-}ideographic-component-forms'.
469
470 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
471
472         * chartab.c (Q_identical): New variable.
473         (Q_identical_from): New variable.
474         (Fchar_feature): Regard `->identical' as a feature to find
475         ancestors.
476         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
477         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
478         for `{->|<-}identical'.
479         (syms_of_chartab): Add new symbols `{->|<-}identical'.
480
481 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
482
483         * char-ucs.h (encode_char_2): New inline function.
484         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
485
486 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
487
488         * chartab.c (Fput_char_attribute): Convert char-specs to
489         characters in value of `ideographic-structure'.
490         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
491         for `{<-|->}simplified(@...)'.
492         (Fdefine_char): Try to use predefined character's id.
493
494 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
495
496         * fns.c (simplify_char_spec): Try to convert builtin chars to
497         defined chars.
498
499 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
500
501         * chartab.c (Fput_char_attribute): Convert char-specs in value of
502         `<-simplified[^*]*' to characters and put reverse links.
503
504 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
505
506         * chartab.c (Q_subsumptive): Renamed from Q_unified.
507         (Q_subsumptive_from): Renamed from Q_unified_from.
508         (Fchar_feature): Use `Q_subsumptive_from' instead of
509         `Q_unified_from'.
510         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
511         `Q_unified'.
512         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
513         `<-unified' to `<-subsumptive'.
514
515 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
516
517         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
518         inheritance itself; fix typo; stop recursive search if cyclic
519         inheritance is found.
520
521 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
522
523         * chartab.c (Q_denotational): New variable.
524         (Q_denotational_from): New variable.
525         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
526         (put_char_attribute): New function.
527         (Fput_char_attribute): Use `put_char_attribute'; regard
528         `->denotational' and `<-denotational' as same as `->unified' and
529         `<-unified'.
530         (syms_of_chartab): Add new symbols `->denotational' and
531         `<-denotational'.
532
533 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
534
535         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
536         `Fget_char_attribute'.
537         (Fchar_variants): Likewise.
538         (get_char_table): Likewise.
539         (Fchar_feature): New function.
540         (put_char_composition): Use `Fchar_feature' instead of
541         `Fget_char_attribute'.
542         (Fput_char_attribute): Likewise; don't put the target character
543         into its `->unified' value.
544         (syms_of_chartab): Add new builtin function `char-feature'.
545
546 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
547
548         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
549         `Fget_char_attribute'.
550         (char_encode_utf8): Likewise.
551
552         * chartab.h: Add an EXFUN for `Fchar_feature'.
553
554 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
555
556         * chartab.c (Vnext_defined_char_id): New variable.
557         (Fput_char_attribute): Accept characters in `->unified'.
558         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
559         new characters which are not related with builtin char-id ranges.
560         (vars_of_chartab): Add new variable `next-defined-char-id'.
561
562 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
563
564         * chartab.c (Q_unified): New variable.
565         (Q_unified_from): New variable.
566         (Fput_char_attribute): Add code for `->unified'.
567         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
568         XEmacs CHISE.
569
570 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
571
572         * mule-charset.c (decode_ccs_conversion): New function.
573         (decode_defined_char): Use `decode_ccs_conversion'.
574         (decode_builtin_char): Likewise.
575
576 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
577
578         * char-ucs.h: Change some charset-ids of private coded-charsets.
579
580 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
581
582         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
583         (char_encode_as_entity_reference): Likewise.
584         (decode_coding_big5): Modify for `decode_defined_char' and
585         `DECODE_CHAR'.
586         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
587         avoid compiler warning.
588         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
589
590         * mule-charset.c (decode_defined_char): Add new argument
591         `without_inheritance'.
592         (Fdecode_char): Add new optional argument `without_inheritance'.
593         (Fdecode_builtin_char): Modify for `Fdecode_char'.
594
595         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
596         (simplify_char_spec): Likewise.
597
598         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
599         setting.
600
601         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
602         (map_char_table): Likewise.
603         (Fdefine_char): Use `Fdecode_char' without inheritance.
604         (Ffind_char): Modify for `Fdecode_char'.
605
606         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
607
608         * char-ucs.h (decode_defined_char): Add new argument
609         `without_inheritance'.
610         (DECODE_CHAR): Likewise.
611         (MAKE_CHAR): Modify for `DECODE_CHAR'.
612
613 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
614
615         * chartab.c (Vchise_system_db_directory): New variable.
616         (vars_of_chartab): Add new variable `chise-system-db-directory'.
617
618 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
619
620         * chartab.c: EXFUN `Fmount_char_attribute_table'.
621         (print_chartab_range): Don't define when `UTF2000' is defined.
622         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
623         `CHISE_DS_open'.
624
625 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
626
627         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
628         and optional argument `rehash' is specified, call
629         `open_chise_data_source_maybe' before
630         `chise_ds_foreach_char_feature_name' is called.
631
632 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
633
634         * chartab.c (char_attribute_list_reset_map_func): New function
635         when HAVE_LIBCHISE is defined.
636         (Fchar_attribute_list): Add new optional argument `rehash' when
637         HAVE_LIBCHISE is defined.
638         (open_chise_data_source_maybe): Use "chise-db" instead of
639         "char-db".
640         (char_attribute_system_db_file): Likewise.
641         (Fload_char_attribute_table): Use
642         `chise_feature_foreach_char_with_value' instead of
643         `chise_char_feature_value_iterate'.
644
645 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
646
647         * chartab.c (Vchise_db_directory): New variable.
648         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
649
650 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
651
652         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
653         instead of HAVE_CHISE to specify using with libchise.
654
655         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
656
657         * chartab.h: Don't use HAVE_CHISE_CLIENT.
658
659         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
660         defined or HAVE_LIBCHISE_LIBCHISE is defined.
661         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
662         is defined.
663         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
664         HAVE_CHISE to specify using with libchise.
665         (syms_of_chartab): Don't define symbol `system-char-id' when
666         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
667
668 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
669
670         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
671         specify CHISE DB support.
672         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
673         of `char_attribute_system_db_file' to check feature DB file.
674
675         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
676         HAVE_CHISE_CLIENT to specify CHISE DB support.
677
678         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
679         specify CHISE DB support.
680         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
681         not defined.
682         (Freset_char_attribute_table): Use `chise_feature_setup_db'
683         instead of `char_attribute_system_db_file' to check feature DB
684         file.
685
686 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
687
688         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
689         `HAVE_CHISE_CLIENT'.
690
691 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
692
693         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
694         (Fsave_charset_mapping_table): Don't use
695         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
696
697         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
698         (HAVE_LIBCHISE): New macro.
699
700         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
701
702         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
703         (Fsave_char_attribute_table): Don't use
704         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
705
706 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
707
708         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
709         defined.
710         (save_uint16_byte_table): Likewise.
711         (save_byte_table): Likewise.
712         (char_table_get_db): Use `chise_ds_load_char_feature_value'
713         instead of `chise_char_load_feature_value'.
714         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
715
716 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
717
718         * chartab.h (struct Lisp_Char_Table): Delete member
719         `feature_table' if CHISE is defined.
720
721         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
722         (Fcopy_char_table): Likewise.
723         (char_table_open_db_maybe): Likewise.
724         (char_table_close_db_maybe): Likewise.
725         (char_table_get_db): Likewise.
726         (Fmount_char_attribute_table): Likewise.
727         (Fload_char_attribute_table): Likewise.
728
729 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
730
731         * mule-charset.c (load_char_decoding_entry_maybe): Use
732         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
733         `chise_ccs_decode'.
734
735 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
736
737         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
738         instead of `chise_open_data_source'.
739         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
740         `chise_ds_close'.
741
742 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
743
744         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
745         instead of `chise_ds_open_feature_table'.
746         (char_table_close_db_maybe): Don't use `chise_ft_close'.
747
748 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
749
750         * mule-charset.c (Fsave_charset_mapping_table): Use
751         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
752         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
753         `chise_ccs_sync' instead of `chise_ccst_close'.
754         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
755
756         * chartab.c (open_chise_data_source_maybe): Modify for
757         `chise_open_data_source'.
758         (char_table_open_db_maybe): Modify for
759         `chise_ds_open_feature_table'.
760
761 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
762
763         * mule-charset.c (load_char_decoding_entry_maybe): Use
764         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
765         `chise_ccst_close'.
766
767 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
768
769         * mule-charset.c (Fsave_charset_mapping_table): Use
770         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
771         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
772         `chise_dt_put_char' and `chise_dt_close'.
773         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
774         `chise_ccs_decode' and `chise_ccst_close' instead of
775         `chise_ds_open_decoding_table', `chise_dt_get_char' and
776         `chise_dt_close'.
777
778         * chartab.c (char_table_get_db): Use
779         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
780         (load_char_attribute_table_map_func): Modify for
781         `chise_char_feature_value_iterate'.
782         (Fload_char_attribute_table): Use
783         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
784
785 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
786
787         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
788
789 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
790
791         * chartab.c (put_char_table): Modify for inherited coded-charsets
792         in XEmacs CHISE.
793
794 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
795
796         * chartab.c (Fput_char_table_map_function): Fixed.
797         (word_boundary_p): Don't check charset in XEmacs CHISE.
798
799 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
800
801         * mule-charset.c (Fsave_charset_mapping_table): Use
802         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
803         instead of `chise_open_decoding_table'; refer
804         `default_chise_data_source'; use `chise_dt_close' instead of
805         `chise_close_decoding_table'.
806         (load_char_decoding_entry_maybe): Likewise.
807
808         * chartab.c (default_chise_data_source): New variable when `CHISE'
809         is defined.
810         (Fcopy_char_table): `ct->ds' is deleted.
811         (open_chise_data_source_maybe): New function.
812         (Fclose_char_data_source): New function.
813         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
814         use `chise_ds_open_feature_table' instead of
815         `chise_open_feature_table'.
816         (char_table_close_db_maybe): Use `chise_ft_close' instead of
817         `chise_close_feature_table'; `cit->ds' is deleted.
818         (syms_of_chartab): Add new builtin function
819         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
820
821         * chartab.h (default_chise_data_source): New extern variable.
822         (open_chise_data_source_maybe): New prototype.
823         (struct Lisp_Char_Table): Delete `ds'.
824
825 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
826
827         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
828         `CHISE' is defined.
829
830 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
831
832         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
833         not defined; add code for non-libchise setting.
834         (char_table_close_db_maybe): Likewise.
835         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
836         defined.
837         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
838         even if `CHISE' is not defined.
839         (Freset_char_attribute_table): Likewise.
840         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
841         `char_table_close_db_maybe' even if `CHISE' is not defined; use
842         `char_table_get_db'.
843         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
844         `char_table_close_db_maybe' even if `CHISE' is not defined.
845
846 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
847
848         * chartab.c (char_table_open_db_maybe): New function.
849         (char_table_close_db_maybe): New function.
850         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
851         (Freset_char_attribute_table): Likewise.
852         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
853         `char_table_close_db_maybe'.
854         (Fload_char_attribute_table): Likewise.
855
856 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
857
858         * chartab.c: Don't include <chise.h> because it is included in
859         chartab.h.
860         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
861         defined.
862         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
863         `CHISE' is defined.
864         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
865         `CHISE' is defined.
866         (Fclose_char_attribute_table): Close `ct->feature_table' and
867         `ct->ds' when `CHISE' is defined.
868         (Freset_char_attribute_table): Likewise.
869         (load_char_attribute_maybe): Use `cit->ds' and
870         `cit->feature_table' when `CHISE' is defined.
871         (Fload_char_attribute_table): Likewise.
872
873         * chartab.h: Include <chise.h> when `CHISE' is defined.
874         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
875         when `CHISE' is defined.
876
877 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
878
879         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
880         is defined.
881         (char_table_description): Likewise.
882         (Fmake_char_table): Likewise.
883         (Fcopy_char_table): Likewise.
884         (Fmount_char_attribute_table): Likewise.
885         (Fclose_char_attribute_table): Likewise.
886         (Freset_char_attribute_table): Likewise.
887         (load_char_attribute_maybe): Likewise.
888         (Fload_char_attribute_table): Likewise.
889
890         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
891         defined.
892
893 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
894
895         * chartab.c (load_char_attribute_table_map_func): New function
896         when CHISE is defined.
897         (Qload_char_attribute_table_map_function): Don't define when CHISE
898         is defined.
899         (Fload_char_attribute_table_map_function): Likewise.
900         (Fload_char_attribute_table): Use libchise when `CHISE' is
901         defined.
902         (syms_of_chartab): Don't define
903         `load-char-attribute-table-map-function' when CHISE is defined.
904
905 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
906
907         * chartab.c: Include <chise.h> when `CHISE' is defined.
908         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
909
910 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
911
912         * mule-charset.c (charset_code_point): Fix problem when searching
913         in mother CCS fails with `defined_only' mode.
914
915 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
916
917         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
918         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
919         (put_char_composition): Likewise.
920         (Fput_char_attribute): Likewise.
921         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
922
923 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
924
925         * chartab.c (Q_ucs): Deleted.
926         (Fput_char_attribute): Don't refer `->ucs'.
927         (Fdefine_char): Likewise.
928         (Ffind_char): Likewise.
929         (syms_of_chartab): Delete `->ucs'.
930
931 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
932
933         * mule-charset.c (Qmap_cns11643_2): Renamed from
934         `Qchinese_cns11643_2'.
935         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
936         `chinese-cns11643-2'.
937         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
938         `=cns11643-2'.
939
940 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
941
942         * mule-charset.c (Qmap_cns11643_1): Renamed from
943         `Qchinese_cns11643_1'.
944         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
945         `chinese-cns11643-1'.
946         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
947         `=cns11643-1'.
948
949 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
950
951         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
952         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
953         `chinese-gb12345'.
954         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
955         `=gb12345'.
956
957 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
958
959         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
960         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
961         `chinese-gb2312'.
962         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
963         `=gb2312'.
964
965 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
966
967         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
968         (syms_of_mule_charset): Add new symbol `=big5' instead of
969         `chinese-big5'.
970         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
971
972 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
973
974         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
975         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
976         `korean-ksc5601'.
977         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
978         `=ks-x1001'.
979
980 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
981
982         * mule-charset.c (Qmap_jis_x0212): Renamed from
983         `Qjapanese_jisx0212'.
984         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
985         `japanese-jisx0212'.
986         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
987         `=jis-x0212'.
988
989 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
990
991         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
992         `Qjapanese_jisx0208'.
993         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
994         of `japanese-jisx0208'.
995         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
996         `=jis-x0208-1983'.
997
998 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
999
1000         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1001         `Qjapanese_jisx0208_1978'.
1002         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1003         of `japanese-jisx0208-1978'.
1004         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1005         `=jis-x0208-1978'.
1006
1007 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1008
1009         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1010         only for XEmacs CHISE.
1011
1012 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1013
1014         * char-ucs.h: Compact non-ISO-IR charset-ids.
1015         (LEADING_BYTE_UCS): Changed to -177.
1016         (LEADING_BYTE_CONTROL_1): Changed to -77.
1017         (LEADING_BYTE_UCS_BMP): Changed to -176.
1018         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1019
1020 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1021
1022         * mule-charset.c (Qiso_ir): New variable.
1023         (Fmake_charset): Recognise new property `iso-ir'.
1024         (syms_of_mule_charset): Add new symbol `iso-ir'.
1025
1026 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1027
1028         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1029         n to -n; charset-id of non ISO-IR sets are changed to positive
1030         numbers.
1031
1032 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1033
1034         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1035         for &MCS-XXXXXXXX; values.
1036
1037 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1038
1039         * mule.c (Vxemacs_chise_version): Renamed from
1040         `Vutf_2000_version'.
1041         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1042         `utf-2000-version' as an alias for `xemacs-chise-version'.
1043
1044 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1045
1046         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1047         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1048         defined.
1049
1050         * config.h.in (CHISE): New macro.
1051
1052 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1053
1054         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1055         of `ucs'.
1056         (Qmap_ucs): New variable.
1057         (syms_of_mule_charset): Add new symbol `=ucs'.
1058         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1059
1060         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1061         (simplify_char_spec): Likewise.
1062
1063         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1064
1065         * char-ucs.h (Qmap_ucs): New extern variable.
1066
1067 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1068
1069         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1070         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1071         don't define it when UTF2000 is not defined.
1072         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1073         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1074         when UTF2000 is not defined.
1075         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1076         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1077
1078 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1079
1080         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1081
1082         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1083         (Qucs_gb): Deleted.
1084         (syms_of_mule_charset): Delete `ucs-gb'.
1085         (complex_vars_of_mule_charset): Likewise.
1086
1087 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1088
1089         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1090
1091         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1092         (Qucs_cns): Deleted.
1093         (syms_of_mule_charset): Delete `ucs-cns'.
1094         (complex_vars_of_mule_charset): Likewise.
1095
1096 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1097
1098         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1099
1100         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1101         (Qucs_jis): Deleted.
1102         (syms_of_mule_charset): Delete `ucs-jis'.
1103         (complex_vars_of_mule_charset): Likewise.
1104
1105 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1106
1107         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1108
1109         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1110         (Qucs_ks): Deleted.
1111         (syms_of_mule_charset): Delete `ucs-ks'.
1112         (complex_vars_of_mule_charset): Likewise.
1113
1114 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1115
1116         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1117         (Qideograph_daikanwa_2): Deleted.
1118         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1119         (complex_vars_of_mule_charset): Likewise.
1120
1121         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1122         (LEADING_BYTE_DAIKANWA_1): Deleted.
1123         (LEADING_BYTE_DAIKANWA_2): Deleted.
1124         (MIN_CHAR_DAIKANWA): Deleted.
1125         (MAX_CHAR_DAIKANWA): Deleted.
1126
1127 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1128
1129         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1130         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1131         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1132
1133         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1134         (Vcharset_ideograph_daikanwa): Deleted.
1135         (Qideograph_hanziku_{1..12}): Deleted.
1136         (Qideograph_daikanwa): Deleted.
1137         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1138         Vcharset_ideograph_daikanwa.
1139         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1140         `ideograph-hanziku-{1..12}'.
1141         (complex_vars_of_mule_charset): Likewise.
1142
1143 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1144
1145         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1146
1147         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1148         (Qideograph_gt_pj_{1..11}): Deleted.
1149         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1150         (complex_vars_of_mule_charset): Likewise.
1151
1152 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1153
1154         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1155         (Vcharset_ideograph_gt): Deleted.
1156         (Qucs_big5): Deleted.
1157         (Qideograph_gt): Deleted.
1158         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1159         `ideograph-gt'.
1160         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1161         and `ideograph-gt'.
1162
1163         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1164         (LEADING_BYTE_GT): Deleted.
1165         (MIN_CHAR_GT): Deleted.
1166         (MAX_CHAR_GT): Deleted.
1167
1168 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1169
1170         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1171
1172 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1173
1174         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1175         (save_uint16_byte_table): Likewise.
1176         (save_byte_table): Likewise; convert values by it.
1177         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1178         for `ideographic-structure'.
1179         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1180         as the filter for `ideographic-structure'.
1181
1182 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1183
1184         * chartab.c (put_char_composition): New function.
1185         (Fput_char_attribute): Use `put_char_composition'; use
1186         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1187
1188         * fns.c (simplify_char_spec): New function.
1189         (char_ref_simplify_spec): New function.
1190         (Fchar_refs_simplify_char_specs): New function.
1191         (syms_of_fns): Add new builtin function
1192         `char-refs-simplify-char-specs'.
1193
1194 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1195
1196         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1197         (Qideograph_cbeta): Deleted.
1198         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1199         (complex_vars_of_mule_charset): Likewise.
1200
1201         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1202         (MIN_CHAR_CBETA): Comment out.
1203         (MAX_CHAR_CBETA): Likewise.
1204
1205 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1206
1207         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1208         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1209         CHISE client feature.
1210
1211 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1212
1213         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1214
1215 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1216
1217         * mule-charset.c (charset_lookup_description_1): Use
1218         `NUM_LEADING_BYTES' in UTF-2000.
1219
1220 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1221
1222         * char-ucs.h (GC_CHARSETP): Deleted.
1223
1224 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1225
1226         * char-ucs.h (MAX_CHAR_GT): Updated.
1227
1228 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1229
1230         * text-coding.c: Sync with XEmacs 21.4.10.
1231
1232 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1233
1234         * mule-charset.c (Vcharset_china3_jef): Deleted.
1235         (Qchina3_jef): Deleted.
1236         (syms_of_mule_charset): Don't define `china3-jef'.
1237         (complex_vars_of_mule_charset): Likewise.
1238
1239         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1240         (MIN_CHAR_CHINA3_JEF): Comment out.
1241         (MAX_CHAR_CHINA3_JEF): Comment out.
1242
1243 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1244
1245         * mule-charset.c (Vcharset_ucs_gb): New variable.
1246         (Qucs_gb): New variable.
1247         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1248         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1249
1250         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1251
1252 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1253
1254         * mule-charset.c (charset_code_point): if a coded-charset has a
1255         final-byte, don't inherit the builtin range of the mother CCS.
1256
1257 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1258
1259         * mule-charset.c (charset_code_point): Fix problem about
1260         inheritance.
1261
1262 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1263
1264         * mule-charset.c (decode_builtin_char): Reorganized.
1265
1266 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1267
1268         * text-coding.c (char_encode_as_entity_reference): Modify for
1269         `charset_code_point'.
1270         (char_encode_shift_jis): Likewise.
1271         (char_encode_big5): Likewise.
1272         (char_encode_utf8): Likewise.
1273         (char_encode_iso2022): Likewise.
1274
1275         * mule-charset.c (charset_code_point): Add new argument
1276         `defined_only'.
1277         (Fencode_char): Add new optional argument `defined_only'.
1278
1279         * chartab.c (put_char_table): Modify for `charset_code_point'.
1280
1281         * char-ucs.h (charset_code_point): Add new argument
1282         `defined_only'.
1283         (encode_char_1): Modify for `charset_code_point'.
1284
1285 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1286
1287         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1288         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1289
1290 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1291
1292         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1293         (Qjis_x0208): Likewise.
1294         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1295         XCHARSET_FINAL(charset).
1296         (charset_code_point): Modify condition for final-byte based
1297         builtin-chars.
1298         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1299         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1300         in UTF-2000; specify `=jis-x0208' as the mother of
1301         `japanese-jisx0208-1978', `japanese-jisx0208' and
1302         `japanese-jisx0208-1990' in UTF-2000.
1303
1304 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1305
1306         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1307
1308 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1309
1310         * text-coding.c (decode_coding_utf16): Support UTF-16.
1311         (char_encode_utf16): Fixed.
1312
1313 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1314
1315         * text-coding.c (Qutf16): New variable in MULE.
1316         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1317         (Fcoding_system_type): Add `utf-16' in MULE.
1318         (struct detection_state): Add a structure for utf16 in MULE.
1319         (detect_coding_type): Setup st->utf16.mask in MULE.
1320         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1321         MULE.
1322         (reset_encoding_stream): Use `char_encode_utf16' and
1323         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1324         (detect_coding_utf16): New function [incomplete].
1325         (decode_coding_utf16): New function [support only UCS-2].
1326         (char_encode_utf16): New function.
1327         (char_finish_utf16): New function.
1328         (syms_of_file_coding): Add new symbol `utf-16'; setup
1329         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1330
1331         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1332         UTF-2000.
1333         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1334         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1335
1336 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1337
1338         * chartab.c (put_char_table): When a charset is specified as a
1339         range in UTF-2000, don't support builtin characters.
1340
1341 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1342
1343         * mule-charset.c (decode_defined_char): Don't refer external
1344         database if Qunbound or Qnil are found.
1345         (Fsave_charset_mapping_table): Don't define it if
1346         HAVE_CHISE_CLIENT is not defined.
1347         (Freset_charset_mapping_table): New function.
1348         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1349         found in external database.
1350         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1351         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1352         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1353
1354 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1355
1356         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1357         not.
1358
1359 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1360
1361         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1362         Q_lowercase, Q_uppercase in UTF-2000.
1363
1364         * chartab.c (get_char_table): Add special code for the standard
1365         case table to use character attribute `->downcase' and
1366         `->uppercase' for case operations in UTF-2000.
1367
1368         * casetab.c (Qflippedcase): New variable in UTF-2000.
1369         (Q_lowercase): Likewise.
1370         (Q_uppercase): Likewise.
1371         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1372         and `->uppercase' in UTF-2000.
1373         (complex_vars_of_casetab): Assign attribute name `downcase' to
1374         downcase and CANON table of Vstandard_case_table in UTF-2000;
1375         assign attribute name `flippedcase' to upcase and EQV table of
1376         Vstandard_case_table in UTF-2000.
1377
1378 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1379
1380         * text-coding.c (decode_add_er_char): Support isolated-chars.
1381         (char_encode_as_entity_reference): Likewise.
1382
1383 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1384
1385         * emacs.c (Vutf_2000_lisp_directory): New variable.
1386         (Vconfigure_utf_2000_lisp_directory): Likewise.
1387         (complex_vars_of_emacs): Add new variable
1388         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1389
1390 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1391
1392         * char-ucs.h (DECODE_CHAR): Delete special code for
1393         `chinese-big5-1' and `chinese-big5-2'.
1394
1395         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1396         (Qbig5_2): Likewise.
1397         (decode_defined_char): Support CONVERSION_BIG5_1 and
1398         CONVERSION_BIG5_2.
1399         (decode_builtin_char): Likewise.
1400         (charset_code_point): Likewise.
1401         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1402         'conversion in UTF-2000.
1403         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1404         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1405         `chinese-big5-2' as children of `chinese-big5'.
1406
1407         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1408         (CONVERSION_BIG5_2): New macro.
1409
1410 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1411
1412         * text-coding.c (char_encode_big5): Support entity-reference.
1413
1414 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1415
1416         * text-coding.c (char_encode_as_entity_reference): New function.
1417         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1418
1419 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1420
1421         * text-coding.c (decode_coding_big5): Support entity-reference
1422         decoding feature.
1423
1424 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1425
1426         * text-coding.c (allocate_coding_system): Initialize initial
1427         charsets for CODESYS_UTF8.
1428         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1429         charset-g2 for CODESYS_UTF8.
1430         (decode_coding_utf8): Use charset-g0.
1431         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1432         to force variants to map to UCS.
1433
1434 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1435
1436         * text-coding.c (Qutf_8_mcs): New variable.
1437         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1438         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1439         instead of `utf-8' in UTF-2000.
1440
1441 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1442
1443         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1444         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1445         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1446         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1447         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1448         CONVERSION_96x96x96x96 are introduced.
1449         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1450         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1451         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1452
1453         * char-ucs.h (CONVERSION_94): New macro.
1454         (CONVERSION_96): New macro.
1455         (CONVERSION_94x94): New macro.
1456         (CONVERSION_96x96): New macro.
1457         (CONVERSION_94x94x94): New macro.
1458         (CONVERSION_96x96x96): New macro.
1459         (CONVERSION_94x94x94x60): New macro.
1460         (CONVERSION_94x94x94x94): New macro.
1461         (CONVERSION_96x96x96x96): New macro.
1462
1463 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1464
1465         * chartab.c (Vcharacter_variant_table): Deleted.
1466         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1467         of `Vcharacter_variant_table'.
1468         (Fput_char_attribute): Likewise.
1469         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1470         (complex_vars_of_chartab): Likewise.
1471
1472 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1473
1474         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1475
1476         * fns.c (Qideographic_structure): New variable.
1477         (Qkeyword_char): New variable.
1478         (ids_format_unit): New function.
1479         (Fideographic_structure_to_ids): New function.
1480         (syms_of_fns): Add new symbols `ideographic-structure' and
1481         `:char'; add new builtin function `ideographic-structure-to-ids'.
1482
1483         * data.c (Fchar_ref_p): New function.
1484         (syms_of_data): Add new builtin function `char-ref-p'.
1485
1486         * chartab.h: Add an EXFUN for `Ffind_char'.
1487
1488 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1489
1490         * text-coding.c (Vcharacter_composition_table): Deleted.
1491         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1492         in every UTF-2000.
1493
1494         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1495         UTF-2000.
1496         (Vcharacter_composition_table): Deleted.
1497         (Fget_composite_char): Use the implementation for external-DB
1498         support in every UTF-2000.
1499         (Fput_char_attribute): Likewise.
1500         (char_attribute_system_db_file): Don't define if external-DB
1501         feature is not available.
1502         (Fsave_char_attribute_table): Likewise.
1503         (Fmount_char_attribute_table): Likewise.
1504         (Fclose_char_attribute_table): Likewise.
1505         (Freset_char_attribute_table): Likewise.
1506         (Fload_char_attribute_table): Likewise.
1507         (syms_of_chartab): Don't define `save-char-attribute-table',
1508         `mount-char-attribute-table', `reset-char-attribute-table',
1509         `close-char-attribute-table' and `load-char-attribute-table' if
1510         external-DB feature is not available.
1511         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1512
1513 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1514
1515         * text-coding.c (Qcomposition): Add extern if external-DB feature
1516         is supported.
1517         (Vcharacter_composition_table): Don't add extern if external-DB
1518         feature is supported.
1519         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1520         character composition rule if external-DB feature is supported.
1521
1522         * chartab.c (Vcharacter_composition_table): Don't define if
1523         external-DB feature is supported.
1524         (Qcomposition): New variable.
1525         (Fget_composite_char): New implementation for external-DB support.
1526         (Fput_char_attribute): Use `composition' property of each
1527         character instead of `Vcharacter_composition_table' to store
1528         character-composition rules if external-DB feature is supported.
1529         (syms_of_chartab): Add new symbol `composition'.
1530         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1531         external-DB feature is supported.
1532
1533 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1534
1535         * chartab.c (Vchar_db_stingy_mode): New variable.
1536         (load_char_attribute_maybe): Close database if
1537         Vchar_db_stingy_mode is not NIL.
1538         (Fload_char_attribute_table_map_function): Use
1539         `get_char_id_table_0' instead of `get_char_id_table'.
1540         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1541
1542         * chartab.h (get_char_id_table_0): New inline function.
1543         (get_char_id_table): Use `get_char_id_table_0'.
1544
1545 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1546
1547         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1548         and `COMPOSE_ADD_CHAR'.
1549         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1550
1551 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1552
1553         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1554         instead of `DECODE_ADD_UCS_CHAR'.
1555         (COMPOSE_ADD_CHAR): Likewise.
1556
1557 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1558
1559         * text-coding.c (decode_flush_er_chars): New inline function.
1560         (decode_add_er_char): New function.
1561         (decode_coding_utf8): Use `decode_flush_er_chars' and
1562         `decode_add_er_char'.
1563
1564 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1565
1566         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1567         done before `decode_output_utf8_partial_char'.
1568
1569         * mule-charset.c (complex_vars_of_mule_charset): Specify
1570         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1571         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1572
1573 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1574
1575         * mule-charset.c (decode_defined_char): New function; search
1576         mother.
1577         (decode_builtin_char): Don't search mother if
1578         XCHARSET_MAX_CODE(charset) == 0.
1579         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1580         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1581         (Fdecode_char): Use `decode_defined_char' instead of
1582         `DECODE_DEFINED_CHAR'.
1583         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1584         mother of `Vcharset_ucs_jis'.
1585
1586         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1587         instead of `DECODE_DEFINED_CHAR'.
1588
1589         * char-ucs.h (decode_defined_char): Renamed from
1590         `DECODE_DEFINED_CHAR'; changed to normal function.
1591         (DECODE_CHAR): Use `decode_defined_char' instead of
1592         `DECODE_DEFINED_CHAR'.
1593
1594         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1595
1596 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1597
1598         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1599
1600         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1601         variable.
1602         (Quse_entity_reference): New variable.
1603         (Qd): New variable.
1604         (Qx): New variable.
1605         (QX): New variable.
1606         (coding_system_description): Add description for
1607         `ccs_priority_list'.
1608         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1609         (allocate_coding_system): Initialize `ccs_priority_list' in
1610         UTF-2000.
1611         (Fmake_coding_system): Add description about
1612         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1613         (codesys).
1614         (Fcoding_system_property): Accept `disable-composition' and
1615         `use-entity-reference' in UTF-2000.
1616         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1617         in UTF-2000.
1618         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1619         (decode_coding_utf8): Decode entity-reference if
1620         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1621         (char_encode_utf8): Encode non-Unicode characters as
1622         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1623         (str->codesys).
1624         (syms_of_file_coding): Add new symbols `use-entity-reference',
1625         `d', `x', `X'.
1626         (vars_of_file_coding): Add new variable
1627         `coded-charset-entity-reference-alist'.
1628         (complex_vars_of_file_coding): Declare `disable-composition' and
1629         `use-entity-reference' to be coding-system-properties in UTF-2000.
1630
1631         * file-coding.h (struct Lisp_Coding_System): Add new member
1632         `use_entity_reference' and `ccs_priority_list'.
1633         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1634         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1635         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1636
1637 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1638
1639         * chartab.c (save_uint8_byte_table): Don't clear the table.
1640         (save_uint16_byte_table): Likewise.
1641         (save_byte_table): Likewise.
1642         (Fmount_char_attribute_table): New function.
1643         (syms_of_chartab): Add new builtin function
1644         `mount-char-attribute-table'.
1645
1646 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1647
1648         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1649         "w+" mode.
1650         (load_char_decoding_entry_maybe): Open database as read-only mode.
1651
1652         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1653         open database as "w+" mode.
1654         (load_char_attribute_maybe): Open database as read-only mode.
1655         (Fload_char_attribute_table): Likewise.
1656
1657 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1658
1659         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1660         (char_table_description): Delete member `db_file'.
1661         (Fmake_char_table): Don't refer `ct->db_file'.
1662         (Fcopy_char_table): Likewise.
1663         (Fsave_char_attribute_table): Likewise.
1664         (Fclose_char_attribute_table): Likewise.
1665         (Freset_char_attribute_table): Likewise.
1666         (load_char_attribute_maybe): Likewise.
1667         (Fload_char_attribute_table): Likewise.
1668
1669         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1670
1671 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1672
1673         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1674         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1675         `ct->db' is living.
1676         (load_char_attribute_maybe): Likewise.
1677         (Fload_char_attribute_table): Likewise.
1678
1679 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1680
1681         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1682         `ct->db_file' unconditionally.
1683
1684 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1685
1686         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1687         UTF-2000.
1688         (char_table_description): Add description for `db_file' and `db'
1689         in UTF-2000.
1690         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1691         UTF-2000.
1692         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1693         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1694         (Fclose_char_attribute_table): New function.
1695         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1696         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1697         and `cit->db'.
1698         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1699         (syms_of_chartab): Add new builtin function
1700         `Fclose_char_attribute_table'.
1701
1702 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1703
1704         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1705         `db' in UTF-2000.
1706         (load_char_attribute_maybe): Change interface.
1707         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1708
1709 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1710
1711         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1712
1713 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1714
1715         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1716         instead of `DECODE_CHAR' for mother; don't use special code for
1717         chinese-big5 to use code space of chinese-big5-1 and
1718         chinese-big5-2.
1719         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1720         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1721
1722         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1723         (MAX_CHAR_BIG5_CDP): Revival.
1724
1725 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1726
1727         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1728         the XLFD registry-encoding name of `chinese-big5'.
1729
1730 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1731
1732         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1733         (Qchinese_big5_cdp): Deleted.
1734         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1735         (complex_vars_of_mule_charset): Delete coded-charset
1736         `chinese-big5-cdp'.
1737
1738         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1739         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1740         `CHARSET_ID_OFFSET - n' for private CCS.
1741         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1742         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1743         of `MIN_LEADING_BYTE'.
1744         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1745         `(CHARSET_ID_OFFSET - 97)'.
1746         (MIN_CHAR_BIG5_CDP): Deleted.
1747         (MAX_CHAR_BIG5_CDP): Deleted.
1748
1749 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1750
1751         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1752
1753 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1754
1755         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1756         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1757         chartab.c].
1758
1759         * chartab.c (Vutf_2000_version): Moved to mule.c.
1760         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1761
1762 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1763
1764         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1765         when HAVE_CHISE_CLIENT is not defined.
1766
1767         * mule.c (vars_of_mule): Provide feature `chise' when
1768         HAVE_CHISE_CLIENT is defined.
1769
1770 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1771
1772         * config.h.in (UTF2000): Add comment.
1773         (HAVE_CHISE_CLIENT): New macro.
1774
1775 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1776
1777         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1778         CONSP.
1779         (Fput_char_attribute): Likewise.
1780         (char_attribute_system_db_file): Encode file-name of attribute.
1781         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1782         the initial value.
1783
1784 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1785
1786         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1787         (Fsave_charset_mapping_table): Use
1788         `char_attribute_system_db_file'.
1789         (load_char_decoding_entry_maybe): Likewise.
1790
1791         * chartab.h (Qsystem_char_id): New external variable.
1792         (char_attribute_system_db_file): New prototype.
1793
1794         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1795         (char_attribute_system_db_file): New function.
1796         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1797         (Freset_char_attribute_table): Likewise.
1798         (load_char_attribute_maybe): Likewise.
1799         (Fload_char_attribute_table): Likewise.
1800         (syms_of_chartab): Add new symbol `system-char-id'.
1801
1802 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1803
1804         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1805         `XCHARSET_GRAPHIC(ccs)'.
1806
1807 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1808
1809         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1810
1811 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1812
1813         * chartab.c (Q_ucs_variants): New variable.
1814         (syms_of_chartab): Add new symbol `->ucs-variants'.
1815         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1816         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1817         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1818
1819         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1820
1821         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1822         `HAVE_DATABASE' is defined.
1823         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1824         `HAVE_DATABASE' is defined.
1825
1826 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1827
1828         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1829         attribute-table.
1830         (Freset_char_attribute_table): New function.
1831         (syms_of_chartab): Add new builtin function
1832         `reset-char-attribute-table'.
1833
1834 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1835
1836         * chartab.c (load_char_attribute_maybe): Don't make directories.
1837
1838 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1839
1840         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1841
1842         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1843         for decoding-table.
1844
1845 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1846
1847         * mule-charset.c (Fsave_charset_mapping_table): Use
1848         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1849
1850         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1851         instead of `XCHARSET_CHARS'.
1852
1853 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1854
1855         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1856         (XCHARSET_BYTE_SIZE): Likewise.
1857
1858         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1859         mule-charset.c].
1860         (XCHARSET_BYTE_SIZE): Likewise.
1861
1862 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1863
1864         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1865         data-directory to store database.
1866         (Fsave_char_attribute_table): Likewise.
1867         (load_char_attribute_maybe): Likewise.
1868         (Fload_char_attribute_table): Likewise.
1869
1870 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1871
1872         * mule-charset.c (Fsave_charset_mapping_table): New function.
1873         (syms_of_mule_charset): Add new builtin function
1874         `save-charset-mapping-table'.
1875
1876 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1877
1878         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1879         (get_ccs_octet_table): New inline function.
1880         (put_ccs_octet_table): Likewise.
1881         (decoding_table_put_char): Use `get_ccs_octet_table' and
1882         `put_ccs_octet_table'.
1883         (decoding_table_remove_char): Use `decoding_table_put_char'.
1884         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1885
1886         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1887         into encoding_table.
1888         (make_charset): Use Qunbound instead Qnil as initial value of
1889         decoding_table.
1890
1891 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1892
1893         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1894         element is Qunloaded.
1895         (map_over_uint16_byte_table): Likewise.
1896         (map_over_byte_table): Likewise.
1897         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1898         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1899         database support, load encoding-table of the specified
1900         coded-charset if it is not loaded yet.
1901         (save_uint8_byte_table): New function of UTF-2000 with external
1902         database support.
1903         (save_uint16_byte_table): Likewise.
1904         (save_byte_table): Likewise.
1905         (Fput_char_attribute): Don't store value into external database
1906         even if the external database feature is supported in UTF-2000;
1907         set `attribute' as name of char-table if the external database
1908         feature is supported.
1909         (Fsave_char_attribute_table): New function in UTF-2000.
1910         (syms_of_chartab): Add new builtin function
1911         `save-char-attribute-table' in UTF-2000.
1912
1913 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1914
1915         * chartab.c (char_attribute_table_to_put): New variable in
1916         UTF-2000.
1917         (Qput_char_table_map_function): Likewise.
1918         (value_to_put): Likewise.
1919         (Fput_char_table_map_function): New function in UTF-2000.
1920         (put_char_table): Use `Fmap_char_attribute' for
1921         CHARTAB_RANGE_CHARSET in UTF-2000.
1922         (Fput_char_attribute): Store symbol instead of string in
1923         `XCHAR_TABLE_NAME (table)'.
1924         (load_char_attribute_maybe): Likewise.
1925         (syms_of_chartab): Add new symbol/function
1926         `put-char-table-map-function'.
1927
1928 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1929
1930         * database.h: Add new EXFUN for `Fmap_database'.
1931
1932         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1933         (syms_of_database): Likewise.
1934
1935         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1936         UTF-2000.
1937         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1938         (XCHAR_TABLE_UNLOADED): Likewise.
1939
1940         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1941         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1942         HAVE_DATABASE is defined.
1943         (char_attribute_table_to_load): New variable of UTF-2000 with
1944         external database support.
1945         (Qload_char_attribute_table_map_function): Likewise.
1946         (Fload_char_attribute_table_map_function): New function of
1947         UTF-2000 with external database support.
1948         (Fload_char_attribute_table): New function of UTF-2000.
1949         (Fmap_char_attribute): Call Fload_char_attribute_table if
1950         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1951         (syms_of_chartab): Add new symbol and function
1952         `load-char-attribute-table-map-function' in UTF-2000 with external
1953         database support; add new function `load-char-attribute-table' in
1954         UTF-2000.
1955
1956 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1957
1958         * chartab.h (load_char_attribute_maybe): New prototype for
1959         UTF-2000 with DATABASE support.
1960         (get_char_id_table): Use `load_char_attribute_maybe' if
1961         HAVE_DATABASE is defined.
1962
1963         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1964         with DATABASE support.
1965
1966 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1967
1968         * chartab.c (Fput_char_attribute): Use S-expression as key of
1969         external database.
1970
1971         * chartab.h (get_char_id_table): Use S-expression as key of
1972         external database.
1973
1974 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1975
1976         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1977         if an element is not loaded, load the corresponding attributes
1978         from an external database.
1979         (map_over_uint16_byte_table): Likewise.
1980         (map_over_byte_table): Likewise.
1981         (map_char_table): Modify for `map_over_uint8_byte_table',
1982         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1983         element is not loaded, load the corresponding attributes from an
1984         external database.
1985         (Fput_char_attribute): Change initial values to Qunloaded.
1986
1987         * chartab.h (get_char_id_table): If a character attribute is not
1988         loaded and the attribute value is not found in an external
1989         database, store Qunbound as the attribute value.
1990
1991 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1992
1993         * chartab.c (BT_UINT8_unloaded): New macro.
1994         (UINT8_VALUE_P): Accept Qunloaded.
1995         (UINT8_ENCODE): Likewise.
1996         (UINT8_DECODE): Likewise.
1997         (BT_UINT16_unloaded): New macro.
1998         (UINT16_VALUE_P): Accept Qunloaded.
1999         (UINT16_ENCODE): Likewise.
2000         (UINT16_DECODE): Likewise.
2001         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2002         BT_UINT16_unloaded.
2003         (mark_char_table): Mark `ct->name' in UTF-2000.
2004         (char_table_description): Add `name' in UTF-2000.
2005         (Fmake_char_table): Initialize `ct->name'.
2006         (Fcopy_char_table): Copy `ct->name'.
2007         (Fput_char_attribute): Store value into an external database if
2008         HAVE_DATABASE is defined.
2009
2010         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2011         UTF-2000.
2012         (CHAR_TABLE_NAME): New macro in UTF-2000.
2013         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2014         (get_char_id_table): Try to read an external database if Qunloaded
2015         is stored in a table.
2016
2017         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2018         Qunloaded.
2019
2020 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2021
2022         * database.h: Add EXFUN definitions for Fopen_database,
2023         Fput_database, Fget_database and Fclose_database.
2024
2025         * data.c (Qunloaded): New variable in UTF-2000.
2026
2027         * lisp.h (Qunloaded): New variable in UTF-2000.
2028
2029 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2030
2031         * mule-charset.c (put_char_ccs_code_point): Modify for
2032         `decoding_table_remove_char' and `decoding_table_put_char'.
2033         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2034
2035         * char-ucs.h (decoding_table_remove_char): Change arguments to
2036         hide decoding_table vector.
2037         (decoding_table_put_char): Likewise.
2038
2039 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2040
2041         * mule-charset.c (decoding_table_remove_char): Moved to
2042         char-ucs.h.
2043         (decoding_table_put_char): Likewise.
2044
2045         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2046         from mule-charset.c].
2047         (decoding_table_remove_char): New inline function [moved from
2048         mule-charset.c].
2049         (decoding_table_put_char): Likewise.
2050
2051 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2052
2053         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2054         extension.
2055
2056 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2057
2058         * mule-charset.c (decode_builtin_char): Support mother charsets.
2059
2060 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2061
2062         * mule-charset.c (Q94x94x60): New variable.
2063         (charset_code_point): Support conversion `94x94x60'.
2064         (Fmake_charset): Likewise.
2065         (syms_of_mule_charset): Add new symbol `94x94x60'.
2066
2067         * char-ucs.h (CONVERSION_94x94x60): New macro.
2068
2069 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2070
2071         * mule-charset.c (charset_code_point): Unify code about
2072         `code-offset'.
2073
2074 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2075
2076         * mule-charset.c (charset_code_point): Merge code about builtin
2077         characters into code about mother charsets; don't use
2078         `range_charset_code_point'.
2079         (range_charset_code_point): Deleted.
2080
2081 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2082
2083         * mule-charset.c (Qcode_offset): New variable.
2084         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2085         `max-code'; accept new property `code-offset'.
2086         (syms_of_mule_charset): Add new symbol `code-offset'.
2087
2088 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2089
2090         * mule-charset.c (range_charset_code_point): Fixed.
2091
2092 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2093
2094         * mule-charset.c (decode_builtin_char): Change semantics of
2095         code-offset of coded-charset.
2096         (charset_code_point): Likewise.
2097         (range_charset_code_point): Likewise.
2098         (complex_vars_of_mule_charset): Modify for the change.
2099
2100 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2101
2102         * mule-charset.c (Fencode_char): Reverse arguments.
2103
2104         * mule-charset.c (charset_code_point): Fixed.
2105
2106 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2107
2108         * mule-charset.c (Vcharset_mojikyo): Deleted.
2109         (Vcharset_mojikyo_2022_1): Deleted.
2110         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2111         (Qmin_code): New variable in UTF-2000.
2112         (Qmax_code): Likewise.
2113         (Qmother): Likewise.
2114         (Qconversion): Likewise.
2115         (Q94x60): Likewise.
2116         (Qmojikyo): Deleted.
2117         (Qmojikyo_2022_1): Deleted.
2118         (Qmojikyo_pj_{1..22}): Deleted.
2119         (mark_charset): Mark `cs->mother'.
2120         (charset_description): Add description for `mother'.
2121         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2122         new arguments `mother' and `conversion'; use
2123         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2124         (charset_code_point): Moved from char-ucs.h; support `mother'
2125         charset feature.
2126         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2127         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2128         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2129         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2130         allow 2 as the value of `graphic' in UTF-2000; add new properties
2131         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2132         require `final' in UTF-2000; modify for `make_charset'.
2133         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2134         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2135         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2136         (Fencode_char): New function.
2137         (syms_of_mule_charset): Add new builtin function `encode-char' in
2138         UTF-2000; add new symbols `min-code', `max-code', `mother',
2139         `conversion' and `94x60'; delete symbols `mojikyo',
2140         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2141         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2142         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2143         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2144
2145         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2146         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2147
2148         * char-ucs.h (Vcharset_mojikyo): Deleted.
2149         (Vcharset_mojikyo_2022_1): Deleted.
2150         (LEADING_BYTE_MOJIKYO): Deleted.
2151         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2152         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2153         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2154         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2155         add new member `mother'; add new member `conversion'.
2156         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2157         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2158         (CHARSET_MOTHER): New macro.
2159         (CHARSET_CONVERSION): New macro.
2160         (CONVERSION_IDENTICAL): New macro.
2161         (CONVERSION_94x60): New macro.
2162         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2163         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2164         (XCHARSET_MOTHER): New macro.
2165         (XCHARSET_CONVERSION): New macro.
2166         (MIN_CHAR_MOJIKYO): Deleted.
2167         (MAX_CHAR_MOJIKYO): Deleted.
2168         (DECODE_MOJIKYO_2022): Deleted.
2169         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2170         (charset_code_point): Changed to non-inline function.
2171         (encode_char_1): Use `charset_code_point'.
2172         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2173
2174 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2175
2176         * lread.c (read_compiled_function): Fix prototype.
2177         (read_vector): Likewise.
2178
2179 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2180
2181         * lrecord.h (struct lrecord_header): Delete `older'.
2182         (set_lheader_implementation): Delete code for `older'.
2183         (set_lheader_older_implementation): Deleted.
2184         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2185         (OLDER_RECORD_P): Deleted.
2186         (OLDER_RECORD_HEADER_P): Deleted.
2187         (alloc_older_lcrecord): Deleted.
2188         (alloc_older_lcrecord_type): Deleted.
2189
2190         * alloc.c (all_older_lcrecords): Deleted.
2191         (alloc_older_lcrecord): Deleted.
2192         (disksave_object_finalization_1): Delete code for older objects.
2193         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2194         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2195
2196 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2197
2198         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2199         instead of `make_older_vector'.
2200         (put_char_ccs_code_point): Likewise.
2201         (mark_charset): Mark `cs->decoding_table'.
2202         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2203
2204         * lisp.h (make_older_vector): Deleted.
2205         (make_vector_newer): Deleted.
2206
2207         * config.h.in (HAVE_GGC): Deleted.
2208
2209         * alloc.c (make_older_vector): Deleted.
2210         (make_vector_newer_1): Deleted.
2211         (make_vector_newer): Deleted.
2212
2213 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2214
2215         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2216         (Qideograph_daikanwa_2): New variable.
2217         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2218         (complex_vars_of_mule_charset): Add new coded-charset
2219         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2220         `LEADING_BYTE_DAIKANWA'.
2221
2222         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2223         (LEADING_BYTE_DAIKANWA_1): New macro.
2224         (LEADING_BYTE_DAIKANWA_2): New macro.
2225         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2226
2227 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2228
2229         * mule-charset.c (complex_vars_of_mule_charset): Change
2230         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2231         the second revised version.
2232
2233 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2234
2235         * mule-charset.c (Vcharset_ucs_smp): New variable.
2236         (Vcharset_ucs_sip): New variable.
2237         (Qucs_smp): New variable.
2238         (Qucs_sip): New variable.
2239         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2240         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2241         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2242         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2243         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2244         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2245
2246         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2247         (LEADING_BYTE_UCS_SIP): New macro.
2248         (MIN_CHAR_SMP): New macro.
2249         (MAX_CHAR_SMP): New macro.
2250         (MIN_CHAR_SIP): New macro.
2251         (MAX_CHAR_SIP): New macro.
2252
2253 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2254
2255         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2256         utf-2000.
2257
2258 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2259
2260         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2261         value; don't store value into `encoding_table' of `Lisp_Charset'.
2262         (mark_charset): `encoding_table' was deleted.
2263         (charset_description): Likewise.
2264         (make_charset): Likewise.
2265         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2266         `put_char_ccs_code_point'.
2267
2268         * chartab.h (Fput_char_attribute): New EXFUN.
2269
2270         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2271         is unified with normal symbol space.
2272         (Fget_char_attribute): Likewise.
2273         (Fput_char_attribute): Likewise; behavior of
2274         `put_char_ccs_code_point' is changed.
2275
2276         * char-ucs.h: Include "elhash.h".
2277         (Vchar_attribute_hash_table): New external variable.
2278         (struct Lisp_Charset): Delete `encoding_table'.
2279         (CHARSET_ENCODING_TABLE): New implementation; refer
2280         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2281         `Lisp_Charset'.
2282
2283 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2284
2285         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2286         (cs) == 0.
2287
2288 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2289
2290         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2291         `chinese-big5'.
2292
2293 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2294
2295         * chartab.c (uint8_byte_table_description): New constant.
2296         (uint8-byte-table): Use `uint8_byte_table_description'.
2297         (uint16_byte_table_description): New constant.
2298         (uint16-byte-table): Use `uint16_byte_table_description'.
2299
2300 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2301
2302         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2303         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2304
2305 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2306
2307         * mule-charset.c (Vcharset_ucs_ks): New variable.
2308         (Qucs_ks): New variable.
2309         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2310         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2311
2312         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2313
2314 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2315
2316         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2317         (Fdecode_char): Likewise.
2318
2319         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2320         chartab.h.
2321         (Fdefine_char): Modify for Fdecode_char.
2322         (Ffind_char): Likewise.
2323
2324         * mule-charset.c (Fdecode_char): Add new optional argument
2325         `defined-only'.
2326         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2327
2328 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2329
2330         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2331         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2332         (allocate_coding_system): Initialize initial-charsets of
2333         CODESYS_BIG5 in XEmacs UTF-2000.
2334         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2335         CODESYS_BIG5 in XEmacs UTF-2000.
2336         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2337         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2338
2339         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2340         variables.
2341         (Qideograph_hanziku_{1 .. 12}): Likewise.
2342         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2343         .. 12}'.
2344         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2345         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2346         `ideograph-hanziku-{1 .. 12}'.
2347
2348         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2349         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2350         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2351         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2352         (DECODE_DEFINED_CHAR): New inline function.
2353         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2354
2355 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2356
2357         * mule-charset.c (Vcharset_china3_jef): Renamed from
2358         `Vcharset_japanese_jef_china3'.
2359         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2360         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2361         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2362         (syms_of_mule_charset): Rename `china3-jef' from
2363         `japanese-jef-china3'.
2364         (complex_vars_of_mule_charset): Likewise; rename
2365         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2366
2367         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2368         `LEADING_BYTE_JEF_CHINA3'.
2369         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2370         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2371
2372 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2373
2374         * mule-charset.c (encode_builtin_char_1): Comment out special code
2375         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2376
2377         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2378         (MAX_CHAR_MOJIKYO_0): Comment out.
2379         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2380         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2381         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2382         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2383
2384 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2385
2386         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2387         (Qideograph_cbeta): New variable.
2388         (encode_builtin_char_1): Comment out special code for
2389         coded-charset `mojikyo' and `japanese-jef-china3'.
2390         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2391         (complex_vars_of_mule_charset): Add new coded-charset
2392         `ideograph-cbeta'.
2393
2394         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2395         (MIN_CHAR_CBETA): New macro.
2396         (MAX_CHAR_CBETA): New macro.
2397
2398 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2399
2400         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2401         (LEADING_BYTE_JEF_CHINA3): New macro.
2402         (MIN_CHAR_JEF_CHINA3): New macro.
2403         (MAX_CHAR_JEF_CHINA3): Likewise.
2404         (DECODE_CHAR): Fixed.
2405
2406 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2407
2408         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2409         (Qjapanese_jef_china3): New variable.
2410         (encode_builtin_char_1): Support `japanese-jef-china3'.
2411         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2412         (complex_vars_of_mule_charset): Add new coded-charset
2413         `japanese-jef-china3'.
2414
2415 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2416
2417         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2418         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2419         94^4, 96^3, 96^4, 128^n and 256^n set.
2420         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2421         (map_char_table): Likewise.
2422
2423 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2424
2425         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2426         UTF-2000.
2427
2428 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2429
2430         * chartab.h (get_char_id_table): New inline function.
2431
2432         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2433         function.
2434
2435 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2436
2437         * chartab.h (decode_char_table_range): New prototype in XEmacs
2438         UTF-2000.
2439         (put_char_id_table): New inline function in XEmacs UTF-2000.
2440
2441         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2442         function.
2443         (decode_char_table_range): Delete static declaration in XEmacs
2444         UTF-2000.
2445
2446 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2447
2448         * chartab.c (put_char_id_table): Use `put_char_table'.
2449
2450 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2451
2452         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2453         (map_over_uint16_byte_table): Likewise.
2454         (map_over_byte_table): Likewise.
2455         (map_char_table): Modify for `map_over_uint8_byte_table',
2456         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2457         UTF-2000.
2458
2459 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2460
2461         * chartab.c (struct map_char_table_for_charset_arg): New
2462         structure.
2463         (map_char_table_for_charset_fun): New function.
2464         (map_char_table): Use `map_char_table' for encoding_table of
2465         `range->charset'.
2466
2467 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2468
2469         * chartab.c (map_char_table): Check a character is found in
2470         range->charset instead of non default value is defined in
2471         char-table when range is CHARTAB_RANGE_ROW.
2472
2473 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2474
2475         * chartab.c (map_char_id_table): Deleted.
2476         (Fmap_char_attribute): Use `map_char_table' instead of
2477         `map_char_id_table'.
2478
2479 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2480
2481         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2482         UTF-2000.
2483         (update_syntax_table): Deleted in XEmacs UTF-2000.
2484
2485         * syntax.c (find_defun_start): Use `syntax_table' instead of
2486         `mirror_syntax_table' in XEmacs UTF-2000.
2487         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2488         UTF-2000.
2489         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2490         XEmacs UTF-2000.
2491         (Fmatching_paren): Likewise.
2492         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2493         in XEmacs UTF-2000.
2494         (find_start_of_comment): Likewise.
2495         (find_end_of_comment): Likewise.
2496         (Fforward_comment): Likewise.
2497         (scan_lists): Likewise.
2498         (char_quoted): Likewise.
2499         (Fbackward_prefix_chars): Likewise.
2500         (scan_sexps_forward): Likewise.
2501         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2502         (update_syntax_table): Likewise.
2503
2504         * search.c (skip_chars): Use `syntax_table' instead of
2505         `mirror_syntax_table' in XEmacs UTF-2000.
2506         (wordify): Likewise.
2507         (Freplace_match): Likewise.
2508
2509         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2510         `mirror_syntax_table' in XEmacs UTF-2000.
2511         (WORDCHAR_P_UNSAFE): Likewise.
2512         (re_match_2_internal): Likewise.
2513
2514         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2515         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2516
2517         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2518         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2519
2520         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2521         XEmacs UTF-2000.
2522
2523         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2524         UTF-2000.
2525         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2526         (char_table_description): Delete `mirror_table' in XEmacs
2527         UTF-2000.
2528         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2529         UTF-2000.
2530         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2531         (Fcopy_char_table): Likewise.
2532         (put_char_table): Don't call `update_syntax_table' in XEmacs
2533         UTF-2000.
2534
2535         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2536         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2537         (casify_region_internal): Likewise.
2538
2539         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2540
2541         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2542         `mirror_syntax_table' in XEmacs UTF-2000.
2543
2544         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2545         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2546         (Fexpand_abbrev): Likewise.
2547
2548 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2549
2550         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2551
2552 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2553
2554         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2555         (map_over_uint16_byte_table): Likewise.
2556         (map_over_byte_table): Likewise.
2557         (get_char_id_table): Refer `cit->default_value'.
2558         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2559         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2560         of character-id ranges.
2561         (mark_char_table): Mark `ct->default_value'.
2562         (char_table_description): Add `default_value'.
2563         (fill_char_table): Use `default_value'.
2564         (decode_char_table_range): Decode `nil' as
2565         `CHARTAB_RANGE_DEFAULT'.
2566         (get_char_id_table): Refer `cit->default_value'.
2567         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2568         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2569         temporary hack; check value of char-table is bound or not.
2570         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2571
2572         * chartab.h (struct Lisp_Char_Table): Add new member
2573         `default_value' in XEmacs UTF-2000.
2574         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2575         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2576         UTF-2000.
2577
2578 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2579
2580         * chartab.h (Lisp_Char_ID_Table): Deleted.
2581
2582         * chartab.c (char_table_description): Fix typo.
2583         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2584         `Lisp_Char_ID_Table'.
2585
2586 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2587
2588         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2589         `CHAR_ID_TABLE_P'.
2590
2591         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2592         `CHAR_ID_TABLE_P'.
2593
2594         * chartab.h (XCHAR_ID_TABLE): Deleted.
2595         (XSETCHAR_ID_TABLE): Deleted.
2596         (CHAR_ID_TABLE_P): Deleted.
2597
2598         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2599         `CHAR_ID_TABLE_P'.
2600         (Fget_composite_char): Likewise.
2601         (put_char_table): Likewise.
2602         (add_char_attribute_alist_mapper): Fixed.
2603         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2604         `CHAR_ID_TABLE_P'.
2605         (Fget_char_attribute): Likewise.
2606         (Fget_char_attribute): Likewise.
2607         (Fmap_char_attribute): Likewise.
2608
2609         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2610         `CHAR_ID_TABLE_P'.
2611         (encode_char_1): Likewise.
2612
2613 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2614
2615         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2616         `XCHAR_ID_TABLE'.
2617
2618         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2619         instead of `XCHAR_ID_TABLE'.
2620         (remove_char_ccs): Likewise.
2621
2622         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2623         `XCHAR_ID_TABLE'.
2624         (Fget_composite_char): Likewise.
2625         (Fchar_variants): Likewise.
2626         (put_char_table): Likewise.
2627         (add_char_attribute_alist_mapper): Likewise.
2628         (Fchar_attribute_alist): Likewise.
2629         (Fget_char_attribute): Likewise.
2630         (Fput_char_attribute): Likewise.
2631         (Fmap_char_attribute): Likewise.
2632         (Fmap_char_attribute): Likewise.
2633
2634         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2635         `XCHAR_ID_TABLE'.
2636         (encode_char_1): Likewise.
2637
2638 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2639
2640         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2641         `Lisp_Char_ID_Table'.
2642         (mark_char_id_table): Deleted.
2643         (print_char_id_table): Likewise.
2644         (char_id_table_equal): Likewise.
2645         (char_id_table_hash): Likewise.
2646         (char_id_table_description): Likewise.
2647         (char_id_table): Likewise.
2648         (make_char_id_table): Use `Fmake_char_table' and
2649         `fill_char_table'.
2650         (get_char_id_table): Use `Lisp_Char_Table' instead of
2651         `Lisp_Char_ID_Table'.
2652         (put_char_id_table): Likewise.
2653         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2654         `XCHAR_ID_TABLE'.
2655         (Fremove_char_attribute): Likewise.
2656         (syms_of_chartab): Don't define type `char-id-table'.
2657
2658         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2659         (char_id_table): Likewise.
2660         (GC_CHAR_ID_TABLE_P): Likewise.
2661         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2662         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2663         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2664         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2665         (get_char_id_table): Use `Lisp_Char_Table' instead of
2666         `Lisp_Char_ID_Table'.
2667         (put_char_id_table_0): Likewise.
2668         (put_char_id_table): Likewise.
2669
2670 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2671
2672         * chartab.h: Lisp_Byte_Table related codes are moved from
2673         chartab.h.
2674
2675         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2676
2677 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2678
2679         * chartab.h: Don't include "chartab.h".
2680         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2681         (Lisp_Char_ID_Table): Likewise.
2682         (char_id_table): Likewise.
2683         (XCHAR_ID_TABLE): Likewise.
2684         (XSETCHAR_ID_TABLE): Likewise.
2685         (CHAR_ID_TABLE_P): Likewise.
2686         (GC_CHAR_ID_TABLE_P): Likewise.
2687         (get_char_id_table): Likewise.
2688
2689         * char-ucs.h: Include "chartab.h".
2690         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2691         (Lisp_Char_ID_Table): Likewise.
2692         (char_id_table): Likewise.
2693         (XCHAR_ID_TABLE): Likewise.
2694         (XSETCHAR_ID_TABLE): Likewise.
2695         (CHAR_ID_TABLE_P): Likewise.
2696         (GC_CHAR_ID_TABLE_P): Likewise.
2697         (get_char_id_table): Likewise.
2698
2699 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2700
2701         * chartab.c (copy_uint8_byte_table): New function.
2702         (copy_uint16_byte_table): New function.
2703         (copy_byte_table): New function.
2704         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2705         characters to call.
2706         (map_over_uint16_byte_table): Likewise.
2707         (map_over_byte_table): Likewise.
2708         (get_byte_table): Move prototype to chartab.h.
2709         (put_byte_table): Likewise.
2710         (put_char_id_table_0): Moved to chartab.h.
2711         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2712         (char_table_entry_equal): Likewise.
2713         (char_table_entry_hash): Likewise.
2714         (char_table_entry_description): Likewise.
2715         (char_table_entry): Likewise.
2716         (make_char_table_entry): Likewise.
2717         (copy_char_table_entry): Likewise.
2718         (get_non_ascii_char_table_value): Likewise.
2719         (map_over_charset_ascii): Likewise.
2720         (map_over_charset_control_1): Likewise.
2721         (map_over_charset_row): Likewise.
2722         (map_over_other_charset): Likewise.
2723         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2724         (print_char_table): Likewise.
2725         (char_table_equal): Likewise.
2726         (char_table_hash): Likewise.
2727         (char_table_description): Likewise.
2728         (fill_char_table): Likewise.
2729         (Fcopy_char_table): Likewise.
2730         (get_char_table): Likewise.
2731         (Fget_range_char_table): Likewise.
2732         (put_char_table): Likewise.
2733         (map_char_table): Likewise.
2734         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2735         UTF-2000.
2736
2737 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2738
2739         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2740         `Vauto_fill_chars' in XEmacs UTF-2000.
2741
2742         * chartab.h (get_byte_table): New prototype [moved from
2743         chartab.c].
2744         (put_byte_table): Likewise [moved from chartab.c].
2745         (put_char_id_table_0): New inline function [moved from chartab.c].
2746         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2747         (Lisp_Char_Table_Entry): Likewise.
2748         (char_table_entry): Likewise.
2749         (XCHAR_TABLE_ENTRY): Likewise.
2750         (XSETCHAR_TABLE_ENTRY): Likewise.
2751         (CHAR_TABLE_ENTRYP): Likewise.
2752         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2753         (NUM_ASCII_CHARS): Likewise.
2754         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2755         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2756
2757 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2758
2759         * chartab.c (get_char_id_table): Change interface.
2760         (put_char_id_table_0): New function.
2761         (put_char_id_table): Change interface; new implementation.
2762         (Fget_composite_char): Modify for interface change of
2763         `get_char_id_table'.
2764         (Fchar_variants): Likewise.
2765         (add_char_attribute_alist_mapper): Likewise.
2766         (Fchar_attribute_alist): Likewise.
2767         (Fget_char_attribute): Likewise.
2768         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2769         as same as character as the first argument like `put-char-table';
2770         modify for interface change of `put_char_id_table'.
2771         (Fremove_char_attribute): Modify for interface change of
2772         `put_char_id_table'.
2773
2774 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2775
2776         * text-coding.c: Sync up with XEmacs 21.2.41.
2777         (COMPOSE_ADD_CHAR): Modify for interface change of
2778         `get_char_id_table'.
2779
2780         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2781         change of `put_char_id_table'.
2782         (remove_char_ccs): Likewise.
2783
2784         * chartab.h (put_char_id_table): Change interface.
2785
2786         * char-ucs.h (get_char_id_table): Change interface.
2787         (charset_code_point): Modify for interface change of
2788         `get_char_id_table'.
2789         (encode_char_1): Likewise.
2790
2791 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2792
2793         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2794         argument `ccs'.
2795         (map_over_uint16_byte_table): Likewise.
2796         (map_over_byte_table): Likewise.
2797         (map_char_id_table): Add new argument `range' like
2798         `map_char_table'.
2799         (Fmap_char_attribute): Add new argument `range' like
2800         `Fmap_char_table'.
2801
2802 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2803
2804         * chartab.c (map_over_uint8_byte_table): Change interface of
2805         mapping function to use struct chartab_range instead of Emchar.
2806         (map_over_uint16_byte_table): Likewise.
2807         (map_over_byte_table): Likewise.
2808         (map_char_id_table): Likewise.
2809         (struct slow_map_char_id_table_arg): Deleted.
2810         (slow_map_char_id_table_fun): Deleted.
2811         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2812         function `slow_map_char_table_fun' instead of struct
2813         `slow_map_char_id_table_arg' and function
2814         `slow_map_char_id_table_fun'.
2815
2816 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2817
2818         * mule-charset.c: Move char-it-table related codes to chartab.c.
2819         (Vutf_2000_version): Moved to chartab.c.
2820         (Fdefine_char): Likewise.
2821         (Ffind_char): Likewise.
2822         (syms_of_mule_charset): Move types `uint8-byte-table',
2823         `uint16-byte-table', `byte-table' and `char-id-table' to
2824         chartab.c; move functions `char_attribute_list,
2825         `find_char_attribute_table, `char_attribute_alist,
2826         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2827         `map_char_attribute, `define_char, `find_char, `char_variants and
2828         `get_composite_char to chartab.c; move symbols `=>ucs',
2829         `->decomposition', `compat', `isolated', `initial', `medial',
2830         `final', `vertical', `noBreak', `fraction', `super', `sub',
2831         `circle', `square', `wide', `narrow', `small' and `font' to
2832         chartab.c.
2833         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2834         setting codes for `Vcharacter_composition_table' and
2835         `Vcharacter_variant_table' to chartab.c.
2836         (complex_vars_of_mule_charset): Move setting code for
2837         `Vchar_attribute_hash_table' to chartab.c.
2838
2839         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2840         (make_char_id_table): New prototype.
2841         (put_char_id_table): Likewise.
2842         (Fget_char_attribute): Likewise.
2843
2844         * chartab.c: Move char-id-table related code from mule-charset.c.
2845         (Vutf_2000_version): Moved from mule-charset.c.
2846
2847         * char-ucs.h (Qucs): New external variable.
2848         (put_char_ccs_code_point): New prototype.
2849         (remove_char_ccs): Likewise.
2850
2851 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2852
2853         * mule-charset.c (Vcharset_ucs_jis): New variable.
2854         (Qucs_jis): Likewise.
2855         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2856         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2857
2858         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2859
2860 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2861
2862         * mule-charset.c (map_over_uint8_byte_table): New function.
2863         (map_over_uint16_byte_table): Likewise.
2864         (map_over_byte_table): Likewise.
2865         (map_char_id_table): Likewise.
2866         (slow_map_char_id_table_fun): Likewise.
2867         (Fmap_char_attribute): Likewise.
2868         (syms_of_mule_charset): Add new function `map-char-attribute'.
2869
2870 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2871
2872         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2873         (syms_of_mule_charset): Add new function `find-char'.
2874
2875 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2876
2877         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2878         XEmacs UTF-2000.
2879         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2880         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2881         XEmacs UTF-2000.
2882         (complex_vars_of_mule_charset): Add new coded-charset
2883         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2884         `ideograph-gt-pj-*'.
2885
2886         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2887
2888 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2889
2890         * mule-charset.c (encode_builtin_char_1): Purge codes about
2891         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2892         {MIN|MAX}_CHAR_HEBREW.
2893         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2894         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2895
2896         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2897         (MAX_CHAR_GREEK): Purged.
2898         (MIN_CHAR_CYRILLIC): Purged.
2899         (MAX_CHAR_CYRILLIC): Purged.
2900         (MIN_CHAR_HEBREW): Commented out.
2901         (MAX_CHAR_HEBREW): Likewise.
2902
2903 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2904
2905         * mule-charset.c (Qto_ucs): New variable.
2906         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2907         (Fdefine_char): Likewise.
2908         (syms_of_mule_charset): Add new symbol `=>ucs'.
2909
2910 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2911
2912         * mule-charset.c (Fdecode_char): Fixed.
2913
2914 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2915
2916         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2917         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2918         "tcvn5712-1".
2919
2920 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2921
2922         * mule-charset.c (Vcharset_ucs_big5): New variable.
2923         (Qucs_big5): Likewise.
2924         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2925         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2926
2927         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2928
2929 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2930
2931         * mule-charset.c (decode_builtin_char): Check Big5 code range
2932         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2933
2934 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2935
2936         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2937         (Qchinese_gb12345): Likewise.
2938         (Fdecode_builtin_char): Fixed.
2939         (syms_of_mule_charset): Add `chinese-gb12345'.
2940         (complex_vars_of_mule_charset): Add coded-charset
2941         `chinese-gb12345'.
2942
2943         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2944         (LEADING_BYTE_CHINESE_GB12345): New macro.
2945
2946 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2947
2948         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2949         and `latin-viscii-upper' for `latin-viscii'.
2950
2951 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2952
2953         * mule-charset.c (Fdecode_builtin_char): Comment out
2954         regularization code for ISO-IR GR representation.
2955
2956 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2957
2958         * mule-charset.c (decode_builtin_char): New function; renamed from
2959         `make_builtin_char'; return -1 instead of signal.
2960         (Fdecode_builtin_char): Use `decode_builtin_char'.
2961
2962         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2963         `make_builtin_char'.
2964         (DECODE_CHAR): Use `decode_builtin_char' instead of
2965         `make_builtin_char'; use mapping table of `chinese-big5' for
2966         `chinese-big5-{1,2}'.
2967
2968 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2969
2970         * text-coding.c (char_encode_big5): New function.
2971         (char_finish_big5): Likewise.
2972         (reset_encoding_stream): Use `char_encode_big5' and
2973         `char_finish_big5' for CODESYS_BIG5.
2974         (mule_encode): Don't use `encode_coding_big5'.
2975         (encode_coding_big5): Deleted.
2976
2977 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2978
2979         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2980         0x81- in XEmacs UTF-2000.
2981         (detect_coding_big5): Likewise.
2982
2983 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2984
2985         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2986         generate character-id if the CCS property does not have
2987         corresponding predefined character.
2988         (make_builtin_char): Return -1 if corresponding predefined
2989         character is not found.
2990         (Fdecode_char): Return nil if corresponding character is not
2991         found.
2992         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2993         don't map to builtin ucs space.
2994
2995 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2996
2997         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
2998         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
2999
3000 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3001
3002         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3003         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3004         (Qideograph_gt): Likewise.
3005         (Qideograph_gt_pj_{1..11}): Likewise.
3006         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3007         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3008         `ideograph-gt-pj-11'.
3009         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3010         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3011         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3012
3013         * char-ucs.h (LEADING_BYTE_GT): New macro.
3014         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3015         (MIN_CHAR_GT): Likewise.
3016         (MAX_CHAR_GT): Likewise.
3017
3018 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3019
3020         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3021         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3022
3023         * doprnt.c (unsigned_int_converters): Add `c'.
3024         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3025
3026         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3027         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3028         `MIN_CHAR_MOJIKYO'.
3029         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3030         (MAX_CHAR_MOJIKYO_0): New macro.
3031         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3032
3033 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3034
3035         * mule-charset.c (Fdefine_char): Delete cemented out code.
3036         (encode_builtin_char_1): Modify for new allocation of builtin
3037         Mojikyo characters.
3038
3039         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3040
3041 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3042
3043         * mule-charset.c (Vcharset_ucs_cns): New variable.
3044         (Qucs_cns): New variable.
3045         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3046         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3047
3048 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3049
3050         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3051
3052 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3053
3054         * search.c (search_buffer): Make `charset_base_code' as
3055         character-id >> 6 to eliminate the corresponding last byte in
3056         UTF-8 representation [I'm not sure it is right thing].
3057         (boyer_moore): Likewise.
3058
3059 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3060
3061         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3062         representation in MULE.
3063
3064 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3065
3066         * text-coding.c (Fmake_coding_system): Use
3067         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3068         `EXTERNAL_PROPERTY_LIST_LOOP'.
3069
3070 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3071
3072         * text-coding.c (decode_output_utf8_partial_char): New function.
3073         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3074
3075 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3076
3077         * text-coding.c (decode_coding_utf8): Output original byte
3078         sequence if it is broken; change order of conditions.
3079
3080         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3081         of conditions.
3082
3083         * mb-multibyte.h (BYTE_ASCII_P):
3084         Use bit ops for char-signedness safety.
3085         (BYTE_C0_P): Use bit ops for char-signedness safety.
3086         (BYTE_C1_P): Use bit ops for char-signedness safety.
3087
3088         * character.h: (XCHAR_OR_CHAR_INT):
3089         Always use inline function.
3090         Remove redundant type checking assert() - XINT will abort quite
3091         nicely.
3092
3093 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3094
3095         * text-coding.c: (Fencode_shift_jis_char):
3096         (Fencode_big5_char):
3097         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3098         Replace 0 with '\0' when working with bytes.
3099         Replace initial "(" with "\(" in docstrings.
3100
3101         (Fmake_coding_system):
3102         When type is ccl and value is vector, register it with a proper
3103         symbol.  And checks whether the given ccl program is valid.
3104         (mule_decode): When calling ccl_driver, if src indicates
3105         NULL pointer, set an empty string instead.
3106         (mule_encode): Likewise.
3107
3108         (detect_eol_type):
3109         (detect_coding_sjis):
3110         (decode_coding_sjis):
3111         (detect_coding_big5):
3112         (decode_coding_big5):
3113         (detect_coding_ucs4):
3114         (decode_coding_ucs4):
3115         (detect_coding_utf8):
3116         (decode_coding_utf8):
3117         (detect_coding_iso2022):
3118         (decode_coding_iso2022):
3119         (decode_coding_no_conversion):
3120         (mule_decode):
3121         Make all detecting and decoding functions take an Extbyte * arg.
3122         (text_encode_generic):
3123         (encode_coding_big5):
3124         (encode_coding_no_conversion):
3125         (mule_encode):
3126         Make all encoding functions take a Bufbyte * arg.
3127         Use size_t instead of unsigned int for memory sizes.
3128         Only cast to unsigned char whenever dereferencing Extbyte *.
3129
3130         (struct lrecord_description fcd_description_1): Use countof.
3131         (complex_vars_of_file_coding):
3132         Use countof instead of sizeof.
3133         Use CHECK_NATNUM instead of CHECK_INT.
3134
3135 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3136
3137         * mule-charset.c (Fget_char_attribute): Add new optional argument
3138         `default-value'.
3139         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3140         (remove_char_ccs): Likewise.
3141
3142 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3143
3144         * text-coding.c (char_encode_shift_jis): New implementation in
3145         UTF-2000.
3146         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3147         ...)'.
3148
3149         * mule-charset.c (Vcharset_chinese_big5): New variable in
3150         UTF-2000.
3151         (Qchinese_big5): New variable in UTF-2000.
3152         (BIG5_SAME_ROW): New macro in UTF-2000.
3153         (make_builtin_char): Use builtin characters of
3154         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3155         characters of `Vcharset_chinese_big5'.
3156         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3157         (complex_vars_of_mule_charset): Add new coded-charset
3158         `chinese-big5' in UTF-2000.
3159
3160         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3161         (Vcharset_chinese_big5): New external variable declaration.
3162         (Vcharset_japanese_jisx0208_1990): Likewise.
3163
3164 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3165
3166         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3167         function.
3168         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3169
3170 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3171
3172         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3173         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3174         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3175         `mojikyo-pj-*'.
3176
3177 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3178
3179         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3180
3181 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3182
3183         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3184         to 0.17.
3185
3186 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3187
3188         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3189         for `CHARSET_BY_ATTRIBUTES'.
3190         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3191         `CHARSET_BY_ATTRIBUTES'.
3192
3193         * text-coding.c (struct decoding_stream): Rename member `CH' to
3194         `CPOS'.
3195         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3196         (decode_coding_sjis): Likewise.
3197         (decode_coding_big5): Likewise.
3198         (decode_coding_ucs4): Likewise.
3199         (decode_coding_utf8): Likewise.
3200         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3201         `CHARSET_BY_ATTRIBUTES'.
3202         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3203         `str->counter'; decode 3, 4 bytes sets.
3204         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3205         sets.
3206         (decode_coding_no_conversion): Use `str->cpos' instead of
3207         `str->ch'.
3208
3209         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3210         (Qmojikyo_2022_1): New variable.
3211         (make_charset): Don't use `CHARSET_TYPE_*'.
3212         (range_charset_code_point): Support coded-charset
3213         `mojikyo-2022-1'.
3214         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3215         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3216         `CHARSET_BY_ATTRIBUTES'.
3217         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3218         `CHARSET_BY_ATTRIBUTES'.
3219         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3220         (complex_vars_of_mule_charset): Add new coded-charset
3221         `mojikyo-2022-1'.
3222
3223         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3224         interface; changed to inline function.
3225
3226         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3227         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3228         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3229         (CHARSET_TYPE_94): Deleted.
3230         (CHARSET_TYPE_94X94): Deleted.
3231         (CHARSET_TYPE_96): Deleted.
3232         (CHARSET_TYPE_96X96): Deleted.
3233         (CHARSET_TYPE_128): Deleted.
3234         (CHARSET_TYPE_128X128): Deleted.
3235         (CHARSET_TYPE_256): Deleted.
3236         (CHARSET_TYPE_256X256): Deleted.
3237         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3238         to inline function.
3239         (DECODE_MOJIKYO_2022): New inline function.
3240         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3241         `Vcharset_mojikyo_2022_1'.
3242
3243 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3244
3245         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3246         instead of `EQ'.
3247         (put_byte_table): Likewise.
3248         (char_id_table_equal): Use `get_byte_table' [new implementation].
3249
3250 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3251
3252         * mule-charset.c: Include <limits.h> in UTF-2000.
3253         (BT_UINT8_MIN): New macro in UTF-2000.
3254         (BT_UINT8_MAX): New macro in UTF-2000.
3255         (BT_UINT8_t): New macro in UTF-2000.
3256         (BT_UINT8_nil): New macro in UTF-2000.
3257         (BT_UINT8_unbound): New macro in UTF-2000.
3258         (INT_UINT8_P): New inline function in UTF-2000.
3259         (UINT8_VALUE_P): New inline function in UTF-2000.
3260         (UINT8_ENCODE): New inline function in UTF-2000.
3261         (UINT8_DECODE): New inline function in UTF-2000.
3262         (mark_uint8_byte_table): New function in UTF-2000.
3263         (print_uint8_byte_table): New function in UTF-2000.
3264         (uint8_byte_table_equal): New function in UTF-2000.
3265         (uint8_byte_table_hash): New function in UTF-2000.
3266         (make_uint8_byte_table): New function in UTF-2000.
3267         (uint8_byte_table_same_value_p): New function in UTF-2000.
3268         (BT_UINT16_MIN): New macro in UTF-2000.
3269         (BT_UINT16_MAX): New macro in UTF-2000.
3270         (BT_UINT16_t): New macro in UTF-2000.
3271         (BT_UINT16_nil): New macro in UTF-2000.
3272         (BT_UINT16_unbound): New macro in UTF-2000.
3273         (INT_UINT16_P): New inline function in UTF-2000.
3274         (UINT16_VALUE_P): New inline function in UTF-2000.
3275         (UINT16_ENCODE): New inline function in UTF-2000.
3276         (UINT16_DECODE): New inline function in UTF-2000.
3277         (UINT8_TO_UINT16): New inline function in UTF-2000.
3278         (mark_uint16_byte_table): New function in UTF-2000.
3279         (print_uint16_byte_table): New function in UTF-2000.
3280         (uint16_byte_table_equal): New function in UTF-2000.
3281         (uint16_byte_table_hash): New function in UTF-2000.
3282         (make_uint16_byte_table): New function in UTF-2000.
3283         (uint16_byte_table_same_value_p): New function in UTF-2000.
3284         (print_byte_table): New function in UTF-2000.
3285         (byte-table): Use `print_byte_table' as printer.
3286         (make_byte_table): Delete second argument `older'.
3287         (byte_table_same_value_p): New function in UTF-2000.
3288         (copy_byte_table): Deleted.
3289         (get_byte_table): New function in UTF-2000.
3290         (put_byte_table): New function in UTF-2000.
3291         (print_char_id_table): New function in UTF-2000.
3292         (char-id-table): Use `print_char_id_table' as printer.
3293         (make_char_id_table): Delete second argument `older'.
3294         (get_char_id_table): Use `get_byte_table [new implementation].
3295         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3296         implementation].
3297         (Ffind_char_attribute_table): New function in UTF-2000.
3298         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3299         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3300         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3301         (syms_of_mule_charset): Add new function
3302         `find-char-attribute-table' in UTF-2000.
3303
3304         * lrecord.h (enum lrecord_type): Add
3305         `lrecord_type_uint16_byte_table' and
3306         `lrecord_type_uint8_byte_table'.
3307
3308         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3309         (Lisp_Uint8_Byte_Table): New type.
3310         (XUINT8_BYTE_TABLE): New macro.
3311         (XSETUINT8_BYTE_TABLE): New macro.
3312         (UINT8_BYTE_TABLE_P): New macro.
3313         (GC_UINT8_BYTE_TABLE_P): New macro.
3314         (struct Lisp_Uint16_Byte_Table): New structure.
3315         (Lisp_Uint16_Byte_Table): New type.
3316         (XUINT16_BYTE_TABLE): New macro.
3317         (XSETUINT16_BYTE_TABLE): New macro.
3318         (UINT16_BYTE_TABLE_P): New macro.
3319         (GC_UINT16_BYTE_TABLE_P): New macro.
3320
3321 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3322
3323         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3324         (Vcharacter_ideographic_strokes_table): Deleted.
3325         (Vcharacter_total_strokes_table): Deleted.
3326         (Vcharacter_morohashi_daikanwa_table): Deleted.
3327         (Vcharacter_decomposition_table): Deleted.
3328         (Qname): Deleted because it is duplicated.
3329         (Qideographic_radical): Deleted.
3330         (Qideographic_strokes): Deleted.
3331         (Qtotal_strokes): Deleted.
3332         (Qmorohashi_daikanwa): Deleted.
3333         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3334         `ideographic-radical', `ideographic-strokes', `total-strokes',
3335         `morohashi-daikanwa' and `->decomposition'.
3336         (Fget_char_attribute): Likewise.
3337         (Fput_char_attribute): Likewise; use `make-vector' instead of
3338         `make_older_vector' for `->decomposition' value.
3339         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3340         `ideograph-daikanwa'.
3341         (syms_of_mule_charset): Delete builtin symbols `name',
3342         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3343         `morohashi-daikanwa'.
3344         (vars_of_mule_charset): Don't setup
3345         `Vcharacter_ideographic_radical_table',
3346         `Vcharacter_ideographic_strokes_table',
3347         `Vcharacter_total_strokes_table',
3348         `Vcharacter_morohashi_daikanwa_table' and
3349         `Vcharacter_decomposition_table'.
3350
3351 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3352
3353         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3354         `make_older_vector', `make_vector_newer_1' and
3355         `make_vector_newer'.
3356
3357         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3358         `make_older_vector' and `make_vector_newer'.
3359
3360         * config.h.in (HAVE_GGC): New macro.
3361
3362 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3363
3364         * mule-charset.c (struct char_attribute_list_closure): New
3365         structure in UTF-2000.
3366         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3367         (Fchar_attribute_list): Likewise.
3368         (Fset_charset_mapping_table): Use `make_vector_newer'.
3369         (Fdecode_builtin_char): New function in UTF-2000.
3370         (syms_of_mule_charset): Add new function `char-attribute-list' and
3371         `decode-builtin-char' in UTF-2000.
3372
3373         * lisp.h (make_vector_newer): New prototype.
3374
3375         * alloc.c (make_vector_newer_1): New function.
3376         (make_vector_newer): New function.
3377
3378 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3379
3380         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3381         50100)'.
3382
3383 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3384
3385         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3386         (Vcharacter_attribute_table): Deleted.
3387         (Vcharacter_name_table): Deleted.
3388         (put_char_attribute): Deleted.
3389         (remove_char_attribute): Deleted.
3390         (struct char_attribute_alist_closure): New structure.
3391         (add_char_attribute_alist_mapper): New function.
3392         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3393         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3394         (Fget_char_attribute): Likewise.
3395         (Fput_char_attribute): Likewise.
3396         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3397         of `remove_char_attribute'.
3398         (Fdefine_char): Return character.
3399         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3400         and `Vcharacter_name_table'.
3401         (complex_vars_of_mule_charset): Likewise
3402         `Vchar_attribute_hash_table'.
3403
3404 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3405
3406         * character.h (CHARC_CHARSET): New macro.
3407         (CHARC_CHARSET_ID): New macro.
3408         (CHARC_CODE_POINT): New macro.
3409         (CHARC_COLUMNS): New macro.
3410         (CHARC_TO_CHAR): New inline function.
3411         (CHARC_EQ): New inline function.
3412         (CHARC_ASCII_EQ): New inline function.
3413         (CHARC_IS_SPACE): New inline function.
3414         (ASCII_TO_CHARC): New inline function.
3415
3416         * char-ucs.h (encode_char_2): Deleted.
3417         (ENCODE_CHAR): Use `encode_char_1' again.
3418         (breakup_char_1): Likewise.
3419         (CHAR_TO_CHARC): New inline function.
3420
3421         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3422
3423 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3424
3425         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3426         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3427         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3428         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3429         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3430         `CHARC_IS_SPACE'.
3431         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3432
3433         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3434         `CHARC_CODE_POINT'.
3435         (x_output_display_block): Use `CHARC_CHARSET' and
3436         `CHARC_ASCII_EQ'.
3437
3438         * redisplay-tty.c (tty_output_display_block): Use
3439         `CHARC_ASCII_EQ'.
3440         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3441
3442         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3443
3444         * insdel.c (find_charsets_in_charc_string): Use
3445         `CHARC_CHARSET_ID'.
3446         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3447         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3448         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3449         (convert_charc_string_into_malloced_string): Likewise.
3450
3451 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3452
3453         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3454         instead of <Emchar_dynarr *> for buf; use
3455         `convert_bufbyte_string_into_charc_dynarr' instead of
3456         `convert_bufbyte_string_into_emchar_dynarr'; use
3457         `find_charsets_in_charc_string' instead of
3458         `find_charsets_in_emchar_string'.
3459
3460         * redisplay.h:
3461         - Include "character.h".
3462         (struct rune): New member `cglyph'; delete member `chr'.
3463
3464         * redisplay.c (redisplay_text_width_charc_string): New function;
3465         delete `redisplay_text_width_emchar_string'.
3466         (rtw_charc_dynarr): New variable; renamed from
3467         `rtw_emchar_dynarr'.
3468         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3469         `rtw_emchar_dynarr'; use
3470         `convert_bufbyte_string_into_charc_dynarr' instead of
3471         `convert_bufbyte_string_into_emchar_dynarr'; use
3472         `redisplay_text_width_charc_string' instead of
3473         `redisplay_text_width_emchar_string'.
3474         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3475         instead of `rtw_emchar_dynarr'; use
3476         `convert_bufbyte_string_into_charc_dynarr' instead of
3477         `convert_bufbyte_string_into_emchar_dynarr'.
3478         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3479         `redisplay_text_width_charc_string' instead of
3480         `redisplay_text_width_emchar_string'.
3481         (create_text_block): Modify for <struct rune> change.
3482         (generate_formatted_string_db): Likewise.
3483         (create_string_text_block): Likewise.
3484         (pixel_to_glyph_translation): Likewise.
3485
3486         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3487         instead of <const Emchar *>.
3488         (x_text_width): Likewise.
3489         (x_output_display_block): Use <Charc_dynarr *> instead
3490         <Emchar_dynarr *>; modify for <structure rune> change.
3491         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3492         *>.
3493
3494         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3495         <const Emchar *>; use `charc_string_displayed_columns' instead of
3496         `emchar_string_displayed_columns'.
3497         (tty_output_display_block): Use <Charc_dynarr *> instead of
3498         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3499         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3500         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3501         `tty_output_emchar_dynarr_dynarr'.
3502         (tty_output_charc_dynarr): New function; delete
3503         `tty_output_charc_dynarr'.
3504
3505         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3506         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3507         <Emchar_dynarr *> for buf; use
3508         `convert_bufbyte_string_into_charc_dynarr' instead of
3509         `convert_bufbyte_string_into_emchar_dynarr'.
3510
3511         * frame.c (title_string_charc_dynarr): New variable; renamed from
3512         `title_string_emchar_dynarr'.
3513         (generate_title_string): Use `title_string_charc_dynarr' instead
3514         of `title_string_emchar_dynarr'; use
3515         `convert_charc_string_into_malloced_string' instead of
3516         `convert_emchar_string_into_malloced_string'.
3517         (init_frame): Use `title_string_charc_dynarr' instead of
3518         `title_string_emchar_dynarr'.
3519
3520         * console.h:
3521         - Include "character.h".
3522         (struct console_methods): Use <const Charc *> instead of <const
3523         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3524         <Emchar_dynarr *> in output_string_method.
3525
3526         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3527         <Emchar_dynarr *>.
3528
3529         * console-stream.c (stream_text_width): Use <const Charc *>
3530         instead of <const Emchar *>.
3531
3532         * character.h (Charc_dynarr): New type.
3533
3534         * char-ucs.h (structure Charc): New structure; define new type
3535         `Charc'.
3536
3537         * char-lb.h (DECODE_CHAR): New inline function.
3538         (encode_char_1): New inline function.
3539         (ENCODE_CHAR): New macro.
3540         (structure Charc): New structure; define new type `Charc'.
3541
3542         * char-1byte.h (Vcharset_control_1): New macro.
3543         (Vcharset_latin_iso8859_1): New macro.
3544         (DECODE_CHAR): New inline function.
3545         (encode_char_1): New inline function.
3546         (ENCODE_CHAR): New macro.
3547         (structure Charc): New structure; define new type `Charc'.
3548
3549         * insdel.c (find_charsets_in_charc_string): New function; delete
3550         `find_charsets_in_emchar_string'.
3551         (charc_string_displayed_columns): New function; delete
3552         `emchar_string_displayed_columns'.
3553         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3554         `convert_bufbyte_string_into_emchar_dynarr'.
3555         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3556         `convert_charc_string_into_bufbyte_dynarr'.
3557         (convert_charc_string_into_malloced_string): New function; delete
3558         `convert_charc_string_into_malloced_string'.
3559
3560         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3561         `find_charsets_in_emchar_string'.
3562         (charc_string_displayed_columns): New prototype; delete
3563         `emchar_string_displayed_columns'.
3564         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3565         `convert_charc_string_into_bufbyte_dynarr'.
3566         (convert_charc_string_into_malloced_string): New prototype; delete
3567         `convert_charc_string_into_malloced_string'.
3568
3569 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3570
3571         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3572
3573 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3574
3575         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3576
3577         * char-ucs.h: Use <short> for <Charset_ID>.
3578
3579         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3580         <Charset_ID>.
3581
3582 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3583
3584         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3585         to 0.16.
3586
3587 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3588
3589         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3590         variable.
3591         (Qmorohashi_daikanwa): New variable.
3592         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3593         for `morohashi-daikanwa' attribute.
3594         (Fget_char_attribute): Likewise.
3595         (Fput_char_attribute): Likewise.
3596         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3597         has the same value of `ideograph-daikanwa'.
3598         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3599         (vars_of_mule_charset): Setup
3600         `Vcharacter_morohashi_daikanwa_table'.
3601
3602 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3603
3604         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3605         attributes.
3606         (add_charset_to_list_mapper): Add `key' instead of
3607         `XCHARSET_NAME (value)' to return aliases.
3608
3609 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3610
3611         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3612         variable.
3613         (Vcharacter_ideographic_strokes_table): New variable.
3614         (Qideographic_radical): New variable.
3615         (Qideographic_strokes): New variable.
3616         (Fchar_attribute_alist): Use
3617         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3618         attribute; use `Vcharacter_ideographic_strokes_table' for
3619         `ideographic-strokes' attribute.
3620         (Fget_char_attribute): Likewise.
3621         (Fput_char_attribute): Likewise.
3622         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3623         `ideographic-strokes'.
3624         (vars_of_mule_charset): Setup
3625         `Vcharacter_ideographic_radical_table' and
3626         `Vcharacter_ideographic_strokes_table'.
3627
3628 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3629
3630         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3631         (Qtotal_strokes): New variable.
3632         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3633         `total-strokes' attribute.
3634         (Fget_char_attribute): Likewise.
3635         (Fput_char_attribute): Likewise.
3636         (syms_of_mule_charset): Add new symbol `total-strokes'.
3637         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3638
3639 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3640
3641         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3642         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3643         are found.
3644         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3645         `->decomposition' attribute.
3646         (Fput_char_attribute): Likewise.
3647         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3648
3649 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3650
3651         * mule-charset.c (decoding_table_check_elements): New function.
3652         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3653
3654 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3655
3656         * mule-charset.c (Fset_charset_mapping_table): Use
3657         `put_char_ccs_code_point'.
3658
3659 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3660
3661         * mule-charset.c (decoding_table_put_char): New inline function.
3662         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3663
3664 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3665
3666         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3667         (XCHARSET_BYTE_SIZE): New macro.
3668         (decoding_table_remove_char): New inline function.
3669         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3670         `decoding_table_remove_char'.
3671         (remove_char_ccs): Use `decoding_table_remove_char'.
3672         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3673
3674 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3675
3676         * mule-charset.c (Vcharacter_name_table): New variable.
3677         (Qname): New variable.
3678         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3679         attribute.
3680         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3681         `Vcharacter_name_table' for `name' attribute.
3682         (Fremove_char_attribute): Use function `remove_char_ccs'.
3683         (put_char_ccs_code_point): New function.
3684         (remove_char_ccs): New function.
3685         (syms_of_mule_charset): Add new symbol `name'.
3686         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3687
3688 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3689
3690         * mule-charset.c (make_byte_table): Add new argument `older'.
3691         (make_char_id_table): Likewise.
3692         (copy_char_id_table): Comment out because it is not used.
3693         (put_char_id_table): Modify for `make_byte_table'.
3694         (Fput_char_attribute): Make encoding_table as older object;
3695         inherit older bit of `Vcharacter_composition_table'.
3696         (mark_charset): Don't mark `cs->encoding_table'.
3697         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3698         normal object; make `Vcharacter_composition_table' as an older
3699         object; delete staticpro for `Vcharacter_composition_table'; make
3700         `Vcharacter_variant_table' as a normal object.
3701
3702         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3703         (mark_object): Don't check older object in UTF-2000.
3704
3705         * lrecord.h (struct lrecord_header): Add new member `older' in
3706         UTF-2000.
3707         (set_lheader_implementation): Setup `SLI_header->older' in
3708         UTF-2000.
3709         (set_lheader_older_implementation): New macro in UTF-2000.
3710         (OLDER_RECORD_P): New macro in UTF-2000.
3711         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3712         (alloc_older_lcrecord): New prototype in UTF-2000.
3713         (alloc_older_lcrecord_type): New macro in UTF-2000.
3714
3715 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3716
3717         * mule-charset.c (byte_table_description): Use
3718         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3719         (char_id_table_description): Delete bogus `, 1'.
3720         (Fget_char_attribute): Refer encoding_table of each coded-charset
3721         to get value of coded-charset attribute of a character.
3722         (Fput_char_attribute): Use `make_older_vector' instead of
3723         `make_vector'; use encoding_table of each coded-charset to store
3724         value of coded-charset attribute of a character.
3725         (Fremove_char_attribute): Use encoding_table of each coded-charset
3726         to store value of coded-charset attribute of a character.
3727         (mark_charset): Mark `cs->encoding_table'; don't mark
3728         `cs->decoding_table'.
3729         (charset_description): Add description of new member
3730         `encoding_table'.
3731         (make_charset): Initialize `encoding_table'.
3732
3733         * char-ucs.h (struct Lisp_Charset): Add new member
3734         `encoding_table'.
3735         (CHARSET_ENCODING_TABLE): New macro.
3736         (XCHARSET_ENCODING_TABLE): New macro.
3737         (charset_code_point): New implementation.
3738         (encode_char_1): Likewise.
3739
3740         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3741         (disksave_object_finalization_1): Call finalizers of
3742         `all_older_lcrecords' in UTF-2000.
3743         (make_older_vector): New function in UTF-2000.
3744         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3745         UTF-2000.
3746
3747         * lisp.h (make_older_vector): New prototype in UTF-2000.
3748
3749 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3750
3751         * lrecord.h (enum lrecord_type): Rename
3752         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3753
3754         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3755         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3756         `get_char_code_table'.
3757
3758         * mule-charset.c (mark_char_id_table): Renamed from
3759         `mark_char_code_table'.
3760         (char_id_table_equal): Renamed from `char_code_table_equal'.
3761         (char_id_table_hash): Renamed from `char_code_table_hash'.
3762         (make_char_id_table): Renamed from `make_char_code_table'.
3763         (copy_char_id_table): Renamed from `copy_char_code_table'.
3764         (get_char_id_table): Renamed from `get_char_code_table'.
3765         (put_char_id_table): Renamed from `put_char_code_table'.
3766         (to_char_id): Renamed from `to_char_code'.
3767
3768         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3769         `Lisp_Char_Code_Table'.
3770         (char_id_table): Renamed from `char_code_table'.
3771         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3772         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3773         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3774         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3775         (get_char_id_table): Renamed from `get_char_code_table'.
3776
3777 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3778
3779         * lrecord.h (enum lrecord_type): Rename
3780         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3781
3782         * mule-charset.c (mark_byte_table): Renamed from
3783         `mark_char_byte_table'.
3784         (byte_table_equal): Renamed from `char_byte_table_equal'.
3785         (byte_table_hash): Renamed from `byte_table_hash'.
3786         (make_byte_table): Renamed from `make_byte_table'.
3787         (copy_byte_table): Renamed from `copy_char_byte_table'.
3788
3789         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3790         `Lisp_Char_Byte_Table'.
3791         (byte_table): Renamed from `char_byte_table'.
3792         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3793         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3794         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3795         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3796
3797 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3798
3799         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3800         (dfc_convert_to_internal_format): Likewise.
3801         
3802         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3803         * text-coding.c (Fcoding_system_alias_p): New function.
3804         * text-coding.c (Fcoding_system_aliasee): New function.
3805         * text-coding.c (append_suffix_to_symbol): New function.
3806         * text-coding.c (dangling_coding_system_alias_p): New function.
3807         * text-coding.c (Ffind_coding_system):
3808         * text-coding.c (Fcopy_coding_system):
3809         * text-coding.c (encode_coding_no_conversion):
3810         * text-coding.c (syms_of_file_coding):
3811         * text-coding.c (vars_of_file_coding):
3812         Rewrite coding system alias code.
3813         Allow nested aliases, like symbolic links.
3814         Allow redefinition of coding system aliases.
3815         Prevent existence of dangling coding system aliases.
3816         Eliminate convert_to_external_format.
3817         Eliminate convert_to_internal_format.
3818         
3819         * text-coding.c: Change enum eol_type to eol_type_t.
3820
3821 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3822
3823         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3824         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3825
3826         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3827         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3828
3829 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3830
3831         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3832         `ideograph-daikanwa'.
3833
3834         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3835         (Vcharset_ucs_bmp): Likewise.
3836         (Vcharset_mojikyo): Add new extern variable definition.
3837         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3838         (Vcharset_latin_iso8859_3): Likewise.
3839         (Vcharset_latin_iso8859_4): Likewise.
3840         (Vcharset_latin_iso8859_9): Likewise.
3841         (Vcharset_latin_viscii_lower): Likewise.
3842         (Vcharset_latin_viscii_upper): Likewise.
3843         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3844         `mojikyo' code-point is used to decode.
3845         (encode_char_2): New function [to convert `mojikyo' code-point to
3846         Mojikyo font encoding].
3847         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3848         (breakup_char_1): Likewise.
3849         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3850
3851 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3852
3853         * text-coding.c (Fmake_coding_system): Add document about
3854         `disable-composition' property.
3855
3856 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3857
3858         * text-coding.c (Qdisable_composition): New variable; delete
3859         `Qcomposite'.
3860         (Fmake_coding_system): Add new property `disable-composite';
3861         delete property `composite'.
3862         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3863         instead of `!CODING_SYSTEM_COMPOSITE'.
3864         (syms_of_file_coding): Add new symbol `disable-composition';
3865         delete symbol `composite'.
3866
3867         * file-coding.h (struct Lisp_Coding_System): Add
3868         `disable_composition'; delete `enable_composition'.
3869         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3870         `CODING_SYSTEM_COMPOSITE'.
3871         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3872         `XCODING_SYSTEM_COMPOSITE'.
3873
3874 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3875
3876         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3877         to 0.15.
3878
3879 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3880
3881         * text-coding.c (Qcomposite): New variable.
3882         (Fmake_coding_system): Add new property `composite'.
3883         (struct decoding_stream): Add `combined_char_count',
3884         `combined_chars' and `combining_table' in UTF-2000.
3885         (COMPOSE_FLUSH_CHARS): New macro.
3886         (COMPOSE_ADD_CHAR): New macro.
3887         (reset_decoding_stream): Reset `str->combined_char_count' and
3888         `str->combining_table' in UTF-2000.
3889         (decode_coding_iso2022): Modify for character-decomposition.
3890         (syms_of_file_coding): Add new symbol `composite'.
3891
3892 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3893
3894         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3895         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3896         of `Vcharacter_composition_table' if `->decomposition' property
3897         has only 1 element.
3898         (Qlatin_tcvn5712): New variable.
3899         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3900         (complex_vars_of_mule_charset): Add new coded-charset
3901         `latin-tcvn5712'.
3902
3903         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3904
3905 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3906
3907         * file-coding.h (struct Lisp_Coding_System): Add
3908         `enable_composition'.
3909         (CODING_SYSTEM_COMPOSITE): New macro.
3910         (XCODING_SYSTEM_COMPOSITE): New macro.
3911
3912 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3913
3914         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3915
3916 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3917
3918         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3919         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3920
3921 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3922
3923         * mule-charset.c (Vcharset_mojikyo): New variable.
3924         (Fdefine_char): Don't use coded-charset which does not have
3925         non-builtin character range to allocate character-id.
3926         (Qmojikyo): New variable.
3927         (syms_of_mule_charset): Add new symbol `mojikyo'.
3928         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3929
3930         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3931         (LEADING_BYTE_MOJIKYO): New macro.
3932         (MIN_CHAR_MOJIKYO): New macro.
3933         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3934         (MAX_CHAR_MOJIKYO): New macro.
3935
3936 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3937
3938         * mule-charset.c (remove_char_attribute): Fixed.
3939
3940 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3941
3942         * mule-charset.c (remove_char_attribute): New function.
3943         (Fremove_char_attribute): New function.
3944         (encode_builtin_char_1): Comment out builtin-support for
3945         greek-iso8859-7 and cyrillic-iso8859-5.
3946         (Fdecode_char): Check `code' is an integer.
3947         (syms_of_mule_charset): Add `remove-char-attribute'.
3948         (MIN_CHAR_GREEK): Deleted.
3949         (MAX_CHAR_GREEK): Likewise.
3950         (MIN_CHAR_CYRILLIC): Likewise.
3951         (MAX_CHAR_CYRILLIC): Likewise.
3952         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3953         MAX_CHAR_GREEK for `greek-iso8859-7'.
3954
3955         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3956         (MAX_CHAR_GREEK): Likewise.
3957         (MIN_CHAR_CYRILLIC): Likewise.
3958         (MAX_CHAR_CYRILLIC): Likewise.
3959
3960 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3961
3962         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3963         format is used without `ucs' property.
3964         (Fdecode_char): Fix problem with GR representation.
3965         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3966         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3967
3968 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3969
3970         * mule-charset.c (make_builtin_char): New function.
3971         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3972         (Fset_charset_mapping_table): Modify for new representation of
3973         code-point.
3974         (Fdecode_char): New function.
3975         (syms_of_mule_charset): Add new builtin function `decode-char' in
3976         UTF-2000.
3977
3978         * char-ucs.h (make_builtin_char): New prototype.
3979         (DECODE_CHAR): New inline function.
3980         (MAKE_CHAR): Use `DECODE_CHAR'.
3981
3982 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3983
3984         * text-coding.c (parse_charset_conversion_specs): Use
3985         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3986         `XCHARSET_TYPE'.
3987         (iso2022_designate): Likewise.
3988
3989         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3990         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3991
3992         * mule-charset.c (Vcharset_ucs): New variable.
3993         (print_charset): Change design; use `CHARSET_CHARS' and
3994         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
3995         (make_charset): Change signature to specify `chars' and
3996         `dimension' instead of `type'.
3997         (range_charset_code_point): Modify for 256^n-set.
3998         (encode_builtin_char_1): Encode as `ucs' in default.
3999         (Fmake_charset): Modify for `make_charset'.
4000         (Fmake_reverse_direction_charset): Likewise.
4001         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4002         UTF-2000.
4003         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4004         for `make_charset'.
4005
4006         * char-ucs.h (Vcharset_ucs): New variable.
4007         (LEADING_BYTE_UCS): New macro.
4008         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4009         and `chars' to `unsigned short' from `unsigned int'.
4010         (CHARSET_TYPE): Deleted.
4011         (XCHARSET_TYPE): Deleted.
4012
4013 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4014
4015         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4016
4017         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4018         (ENCODE_CHAR): New macro.
4019
4020 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4021
4022         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4023         to 0.14 (Kawachi-Katakami).
4024
4025 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4026
4027         * text-coding.c (char_encode_shift_jis): Modify for
4028         `charset_code_point'.
4029         (char_encode_iso2022): Likewise.
4030
4031         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4032         (integer) instead of list of <Lisp_Object>s (integers) as the
4033         format of code-point of a coded-charset.
4034         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4035         (encode_builtin_char_1): New function; delete
4036         `split_builtin_char'.
4037         (charset_code_point): Return <int> instead of <Lisp_Object>.
4038         (Fsplit_char): Don't use `SPLIT_CHAR'.
4039
4040         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4041         prototype for `split_builtin_char'.
4042         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4043         (charset_code_point): Likewise.
4044         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4045         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4046
4047 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4048
4049         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4050         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4051
4052 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4053
4054         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4055
4056         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4057         (MAX_CHAR_OBS_94x94): Deleted.
4058
4059 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4060
4061         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4062
4063         * char-ucs.h (MAX_CHAR_BMP): New macro.
4064
4065 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4066
4067         * text-coding.c: Sync with r21-2-24.
4068
4069 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4070
4071         * file-coding.c: Modify for UTF-2000.
4072
4073 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4074
4075         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4076         to 0.13 (Takaida).
4077
4078 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4079
4080         * mule-charset.c (split_builtin_char): Delete builtin support for
4081         `katakana-jisx0201'.
4082         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4083         BMP area in builtin representation.
4084
4085         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4086         `Vcharset_katakana_jisx0201'.
4087
4088 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4089
4090         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4091         (Qisolated): New variable.
4092         (Qinitial): New variable.
4093         (Qmedial): New variable.
4094         (Qfinal): New variable.
4095         (Qvertical): New variable.
4096         (Qsmall): New variable.
4097         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4098         `Qvertical' and `Qsmall'.
4099         (Qmojikyo_pj_[1 .. 21]): New variable.
4100         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4101         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4102         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4103         .. 21]'.
4104
4105 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4106
4107         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4108         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4109         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4110
4111 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4112
4113         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4114         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4115         BMP.
4116         (Qjapanese_jisx0208_1990): New variable.
4117         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4118         (complex_vars_of_mule_charset): Add new coded-charset
4119         `japanese-jisx0208-1990'.
4120
4121         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4122         (MIN_CHAR_JIS_X0208_1990): New macro.
4123         (MAX_CHAR_JIS_X0208_1990): New macro.
4124
4125 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4126
4127         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4128         coded-charset is not found.
4129
4130 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4131
4132         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4133         (Fdefine_char): Use `Fmake_char'.
4134
4135 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4136
4137         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4138         (Vcharset_hiragana_jisx0208): Deleted.
4139         (Vcharset_katakana_jisx0208): Deleted.
4140         (Qideograph_daikanwa): New variable.
4141         (Qhiragana_jisx0208): Deleted.
4142         (Qkatakana_jisx0208): Deleted.
4143         (split_builtin_char): Split `ideograph-daikanwa'.
4144         (Fsplit_char): New implementation for UTF-2000.
4145         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4146         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4147         (complex_vars_of_mule_charset): Add new coded-charset
4148         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4149         `katakana-jisx0208'.
4150
4151         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4152         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4153         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4154         (MIN_CHAR_DAIKANWA): New macro.
4155         (MAX_CHAR_DAIKANWA): New macro.
4156
4157 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4158
4159         * data.c (Fstring_to_number): Don't recognize floating point if
4160         base is not 10.
4161
4162 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4163
4164         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4165
4166 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4167
4168         * mule-charset.c (Qsquare): New variable.
4169         (to_char_code): Add `Qsquare'.
4170         (syms_of_mule_charset): Add new symbol `square'.
4171
4172 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4173
4174         * mule-charset.c (Qcircle): New variable.
4175         (to_char_code): Add `Qcircle'.
4176         (syms_of_mule_charset): Add new symbol `circle'.
4177
4178 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4179
4180         * mule-charset.c (Qfont): New variable.
4181         (to_char_code): Add `Qfont'.
4182         (syms_of_mule_charset): Add new symbol `font'.
4183
4184 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4185
4186         * mule-charset.c (Qsub): New variable.
4187         (to_char_code): Add `Qsub'.
4188         (syms_of_mule_charset): Add new symbol `sub'.
4189
4190 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4191
4192         * mule-charset.c (Fput_char_attribute): Convert each element of
4193         VALUE to GL position if ATTRIBUTE is a GR-set,
4194
4195 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4196
4197         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4198         coded-charset is a GR-set.
4199
4200 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4201
4202         * mule-charset.c (Fput_char_attribute): Check each element of
4203         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4204
4205 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4206
4207         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4208         UTF-2000.
4209         (Qethiopic_ucs): New variable in UTF-2000.
4210         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4211         (complex_vars_of_mule_charset): Add new coded-charset
4212         `ethiopic-ucs' in UTF-2000.
4213
4214         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4215         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4216         9)'.
4217         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4218         10)'.
4219         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4220
4221 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4222
4223         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4224         `ascii'.
4225
4226 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4227
4228         * mule-charset.c (Vcharacter_variant_table): New variable.
4229         (Q_ucs): New variable.
4230         (Fchar_variants): New function.
4231         (Fput_char_attribute): Register `->ucs' value to
4232         `Vcharacter_variant_table'.
4233         (syms_of_mule_charset): Add new function `char-variants' and new
4234         symbol `->ucs'.
4235         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4236
4237 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4238
4239         * mule-charset.c (get_char_code_table): Allow negative character
4240         code.
4241         (put_char_code_table): Likewise.
4242         (Vcharacter_composition_table): New variable.
4243         (Q_decomposition): New variable.
4244         (Qwide): New variable.
4245         (Qnarrow): New variable.
4246         (Qcompat): New variable.
4247         (QnoBreak): New variable.
4248         (Qsuper): New variable.
4249         (Qfraction): New variable.
4250         (to_char_code): New function.
4251         (Fget_composite_char): New function.
4252         (Fput_char_attribute): Register `->decomposition' value to
4253         `Vcharacter_composition_table'.
4254         (syms_of_mule_charset): Add new function `get-composite-char', new
4255         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4256         `super' and `fraction'.
4257         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4258
4259 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4260
4261         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4262         character; copy the return value.
4263
4264 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4265
4266         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4267
4268         * mule-charset.c (range_charset_code_point): Must use make_int.
4269         (split_builtin_char): New function.
4270
4271 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4272
4273         * mule-charset.c (char_byte_table): Change name from
4274         "char-code-table" to "char-byte-table".
4275         (mark_char_code_table): New function.
4276         (char_code_table_equal): New function.
4277         (char_code_table_hash): New function.
4278         (char_code_table_description): New constant.
4279         (char_code_table): New type.
4280         (make_char_code_table): New function.
4281         (copy_char_code_table): New function.
4282         (get_char_code_table): Modify for `char_code_table' type.
4283         (put_char_code_table): Likewise.
4284         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4285         (Kashiwara).
4286
4287         * char-ucs.h (char_code_table): New type.
4288         (XCHAR_CODE_TABLE): New macro.
4289         (XSETCHAR_CODE_TABLE): New macro.
4290         (CHAR_CODE_TABLE_P): New macro.
4291         (GC_CHAR_CODE_TABLE_P): New macro.
4292         (struct Lisp_Char_Code_Table): New structure.
4293
4294 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4295
4296         * mule-charset.c (Fmake_charset): Setup byte_offset for
4297         {94|96}^n-set.
4298
4299 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4300
4301         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4302         character.
4303
4304 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4305
4306         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4307         is found.
4308
4309 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4310
4311         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4312         charset, it is regarded as a charset.
4313         (put_char_attribute): New function in UTF-2000.
4314         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4315         charset, mapping-table of the charset is modified.
4316         (Fdefine_char): New function in UTF-2000.
4317         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4318         `Fput_char_attribute'.
4319         (syms_of_mule_charset): Add new function `define-char' and new
4320         symbol `ucs' in UTF-2000.
4321         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4322
4323 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4324
4325         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4326         non-UTF-2000 configuration.
4327
4328 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4329
4330         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4331         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4332
4333         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4334         deleted.
4335         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4336         (Fset_charset_mapping_table): Likewise.
4337
4338         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4339         (CHARSET_ENCODING_TABLE): Delete.
4340         (XCHARSET_ENCODING_TABLE): Delete.
4341         (charset_code_point): New interface.
4342
4343 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4344
4345         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4346         instead of `charset_get_byte1' and `charset_get_byte2'.
4347
4348         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4349         (charset_get_byte2): Deleted.
4350
4351 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4352
4353         * char-ucs.h (SPLIT_CHAR): New inline function.
4354         (breakup_char_1): Use `SPLIT_CHAR'.
4355
4356         * mule-charset.c (range_charset_code_point): New function.
4357         (charset_code_point): New function.
4358
4359         * char-ucs.h (range_charset_code_point): New interface.
4360         (breakup_char_1): Use `range_charset_code_point'.
4361
4362 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4363
4364         * mule-charset.c (Fmake_charset): Delete unused local variable
4365         `code_offset'.
4366
4367         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4368         (breakup_char_1): Find a charset and code-point in
4369         `Vcharacter_attribute_table'.
4370
4371 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4372
4373         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4374         to 0.10 (Yao).
4375
4376 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4377
4378         * mule-charset.c (Vcharacter_attribute_table): New variable.
4379         (Fchar_attribute_alist): New function.
4380         (Fget_char_attribute): New function.
4381         (Fput_char_attribute): New function.
4382         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4383         too.
4384         (syms_of_mule_charset): Add new function `char-attribute-alist',
4385         `get-char-attribute' and `put-char-attribute'.
4386         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4387
4388 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4389
4390         * mule-charset.c (Fmake_charset): Just use
4391         `get_unallocated_leading_byte'.
4392
4393         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4394         sets; don't use final-byte based number for private sets.
4395
4396 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4397
4398         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4399         integer.
4400
4401 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4402
4403         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4404         to 0.9.
4405
4406 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4407
4408         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4409         of `CHAR_LEADING_BYTE' in UTF-2000.
4410
4411         * insdel.c (find_charsets_in_bufbyte_string): Use
4412         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4413         (find_charsets_in_emchar_string): Likewise.
4414
4415         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4416         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4417
4418         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4419         (CHAR_CHARSET_ID): New macro.
4420
4421 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4422
4423         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4424         charset-id - MIN_LEADING_BYTE.
4425         (put_char_table): Likewise.
4426
4427 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4428
4429         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4430         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4431         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4432         (CHARSET_ID_OFFSET): New macro.
4433         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4434         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4435         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4436         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4437         4).
4438         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4439         5).
4440         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4441         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4442         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4443         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4444         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4445
4446 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4447
4448         * mule-charset.c (next_allocated_leading_byte): New variable in
4449         UTF-2000.
4450         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4451         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4452         (get_unallocated_leading_byte): Simply use
4453         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4454         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4455         UTF-2000.
4456
4457         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4458         (MAX_LEADING_BYTE_PRIVATE): New macro.
4459         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4460         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4461
4462 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4463
4464         * mule-charset.c (Fmake_charset): Allocate final-byte based
4465         charset-id for 94-set, 96-set and 94x94-set.
4466
4467 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4468
4469         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4470         ambiguous `else'.
4471         (Fmake_charset): Likewise.
4472         (complex_vars_of_mule_charset): Modify the font registry of
4473         `ucs-bmp' not to match `Ethiopic-Unicode'.
4474
4475 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4476
4477         * mule-charset.c (complex_vars_of_mule_charset): Add font
4478         registory of `ucs-bmp'.
4479
4480 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4481
4482         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4483         coded-charsets in `default-coded-charset-priority-list' when
4484         breaking up a character.
4485
4486         * mule-charset.c (Vcharset_latin_viscii): New variable.
4487         (Qlatin_viscii): New variable.
4488         (make_charset): Don't use `decoding_table'.
4489         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4490         byte_offset.
4491         (Fset_charset_mapping_table): New implementation.
4492         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4493         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4494         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4495         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4496         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4497         charset `latin_viscii'.
4498
4499         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4500         (CHARSET_TYPE_94X94): Change to 1 from 2.
4501         (CHARSET_TYPE_96): Change to 2 from 1.
4502         (CHARSET_TYPE_128): New macro.
4503         (CHARSET_TYPE_128X128): Change to 5 from 4.
4504         (CHARSET_TYPE_256): New macro.
4505         (CHARSET_TYPE_256X256): Change to 7 from 5.
4506         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4507
4508 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4509
4510         * text-coding.c (char_encode_shift_jis): Refer
4511         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4512         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4513
4514         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4515         (char_byte_table_equal): New function in UTF-2000.
4516         (char_byte_table_hash): New function in UTF-2000.
4517         (char_byte_table_description): New constant in UTF-2000.
4518         (char_byte_table): New type in UTF-2000.
4519         (make_char_byte_table): New function in UTF-2000.
4520         (copy_char_byte_table): New function in UTF-2000.
4521         (make_char_code_table): New macro in UTF-2000.
4522         (get_char_code_table): New function in UTF-2000.
4523         (put_char_code_table): New function in UTF-2000.
4524         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4525         (charset_description): Add setting in UTF-2000.
4526         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4527         `CHARSET_TO_BYTE1_TABLE(cs)'.
4528         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4529         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4530         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4531         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4532         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4533         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4534         `CHARSET_TO_BYTE2_TABLE(cs)'.
4535
4536         * char-ucs.h (char_byte_table): New type.
4537         (XCHAR_BYTE_TABLE): New macro.
4538         (XSETCHAR_BYTE_TABLE): New macro.
4539         (CHAR_BYTE_TABLE_P): New macro.
4540         (GC_CHAR_BYTE_TABLE_P): New macro.
4541         (struct Lisp_Char_Byte_Table): New structure.
4542         (get_char_code_table): New interface.
4543         (Emchar_to_byte_table): Deleted.
4544         (get_byte_from_character_table): Deleted.
4545         (struct Lisp_Charset): Add `encoding_table'; delete
4546         `to_byte1_table' and `to_byte2_table'.
4547         (CHARSET_ENCODING_TABLE): New macro.
4548         (CHARSET_TO_BYTE1_TABLE): Deleted.
4549         (CHARSET_TO_BYTE2_TABLE): Deleted.
4550         (XCHARSET_ENCODING_TABLE): New macro.
4551         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4552         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4553
4554 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4555
4556         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4557         `vietnamese-viscii-*'.
4558
4559 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4560
4561         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4562         (Qvietnamese_viscii_upper): New variable.
4563         (Fdefine_charset_alias): New function.
4564         (syms_of_mule_charset): Add new function `define-charset-alias'.
4565         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4566         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4567         `latin-viscii-*'.
4568
4569 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4570
4571         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4572         (MAX_CHAR_OBS_94x94): New macro.
4573         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4574         for 94x94 sets.
4575
4576         * mule-charset.c (put_byte_from_character_table): Change unit size
4577         from 128 to 256.
4578         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4579         not defined.
4580         (Fmake_reverse_direction_charset): Modify dummy argument of
4581         `make_charset' for non-UTF-2000 environment.
4582
4583 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4584
4585         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4586
4587         * mule-charset.c (destroy_byte_from_character_table): New macro.
4588         (latin_jisx0201_to_ucs): Deleted.
4589         (latin_iso8859_2_to_ucs): Deleted.
4590         (latin_iso8859_3_to_ucs): Deleted.
4591         (latin_iso8859_4_to_ucs): Deleted.
4592         (latin_iso8859_9_to_ucs): Deleted.
4593         (latin_viscii_lower_to_ucs): Deleted.
4594         (latin_viscii_upper_to_ucs): Deleted.
4595         (mark_charset): Mark `cs->decoding_table'.
4596         (Fcharset_mapping_table): Fix DOC-string.
4597         (Fset_charset_mapping_table): New function.
4598         (syms_of_mule_charset): Add nwe function
4599         `set-charset-mapping-table'.
4600         (complex_vars_of_mule_charset): Don't setup and use
4601         `latin_*_to_ucs'.
4602
4603 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4604
4605         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4606         charset.
4607
4608 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4609
4610         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4611         (Vcharset_katakana_jisx0208): New variable.
4612         (Qhiragana_jisx0208): New variable.
4613         (Qkatakana_jisx0208): New variable.
4614         (make_charset): Add new argument `byte_offset'.
4615         (charset_get_byte1): Modify for new coded-charset definition; use
4616         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4617         `XCHARSET_BYTE_OFFSET'.
4618         (Fmake_charset): Modify for `make_charset'.
4619         (Fmake_reverse_direction_charset): Likewise.
4620         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4621         `katakana-jisx0208'.
4622         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4623         `.'  in font registry of charset `katakana-jisx0201',
4624         `latin-jisx0201', `vietnamese-viscii-lower' and
4625         `vietnamese-viscii-upper'; modify DOC-string of charset
4626         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4627         registry of charset `japanese-jisx0208' not to use font for JIS
4628         X0208:1990; add new charset `hiragana-jisx0208' and
4629         `katakana-jisx0208'.
4630
4631         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4632         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4633         (struct Lisp_Charset): Add `byte_offset'.
4634         (CHARSET_BYTE_OFFSET): New macro.
4635         (XCHARSET_UCS_MIN): New macro.
4636         (XCHARSET_UCS_MAX): New macro.
4637         (XCHARSET_CODE_OFFSET): New macro.
4638         (XCHARSET_BYTE_OFFSET): New macro.
4639         (MIN_CHAR_HIRAGANA): New macro.
4640         (MAX_CHAR_HIRAGANA): New macro.
4641         (MIN_CHAR_KATAKANA): New macro.
4642         (MAX_CHAR_KATAKANA): New macro.
4643         (MAKE_CHAR): Modify for new coded-charset definition; use
4644         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4645         `XCHARSET_BYTE_OFFSET'.
4646
4647 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4648
4649         * mule-charset.c (CHAR96): Deleted.
4650         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4651         <Lisp_Object>.
4652         (latin_iso8859_2_to_ucs): Likewise.
4653         (latin_iso8859_3_to_ucs): Likewise.
4654         (latin_iso8859_4_to_ucs): Likewise.
4655         (latin_iso8859_9_to_ucs): Likewise.
4656         (latin_viscii_lower_to_ucs): Likewise.
4657         (latin_viscii_upper_to_ucs): Likewise.
4658         (latin_tcvn5712_to_ucs): Commented out.
4659         (make_charset): Change type of argument `decoding_table' from
4660         <Emchar*> to <Lisp_Object> [vector of characters].
4661         (Fmake_charset): Modify for `make_charset'.
4662         (Fmake_reverse_direction_charset): Likewise.
4663         (Fcharset_mapping_table): New function in UTF-2000.
4664         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4665         UTF-2000.
4666         (complex_vars_of_mule_charset): Modify for type change of
4667         `*_to_ucs'; modify for `make_charset'.
4668
4669         * char-ucs.h (struct Lisp_Charset): Change type of
4670         `decoding_table' from <Emchar*> to <Lisp_Object>.
4671         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4672
4673 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4674
4675         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4676         error with non-UTF-2000-Mule.
4677
4678 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4679
4680         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4681         in lisp again].
4682         (Vcharset_chinese_cns11643_4): Likewise.
4683         (Vcharset_chinese_cns11643_5): Likewise.
4684         (Vcharset_chinese_cns11643_6): Likewise.
4685         (Vcharset_chinese_cns11643_7): Likewise.
4686         (Qchinese_cns11643_3): Likewise.
4687         (Qchinese_cns11643_4): Likewise.
4688         (Qchinese_cns11643_5): Likewise.
4689         (Qchinese_cns11643_6): Likewise.
4690         (Qchinese_cns11643_7): Likewise.
4691         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4692         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4693         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4694         (complex_vars_of_mule_charset): Likewise.
4695
4696 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4697
4698         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4699         96-set.
4700         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4701         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4702
4703 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4704
4705         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4706         0xFF60.
4707         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4708         (breakup_char_1): Likewise.
4709
4710         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4711         one of them includes the specified character.
4712
4713 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4714
4715         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4716
4717 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4718
4719         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4720
4721 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4722
4723         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4724         definition for non-UTF-2000 Mule.
4725         (latin_iso8859_3_to_ucs): Likewise.
4726         (latin_iso8859_4_to_ucs): Likewise.
4727         (latin_iso8859_9_to_ucs): Likewise.
4728         (latin_jisx0201_to_ucs): Likewise.
4729         (MIN_CHAR_THAI): Likewise.
4730         (MAX_CHAR_THAI): Likewise.
4731         (MIN_CHAR_GREEK): Likewise.
4732         (MAX_CHAR_GREEK): Likewise.
4733         (MIN_CHAR_HEBREW): Likewise.
4734         (MAX_CHAR_HEBREW): Likewise.
4735         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4736         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4737         (MIN_CHAR_CYRILLIC): Likewise.
4738         (MAX_CHAR_CYRILLIC): Likewise.
4739
4740 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4741
4742         * char-ucs.h (breakup_char_1): Use
4743         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4744         thai-tis620 and katakana-jisx0201 area.
4745
4746 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4747
4748         * char-ucs.h (breakup_char_1): Use
4749         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4750         area.
4751
4752         * text-coding.c (reset_encoding_stream): Fixed.
4753         (char_encode_ucs4): Delete `& 255'.
4754
4755         * char-ucs.h (breakup_char_1): Use
4756         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4757
4758 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4759
4760         * file-coding.c (Fmake_coding_system): Don't set up
4761         `codesys->fixed.size'.
4762         (encode_coding_no_conversion): Don't refer
4763         `str->codesys->fixed.size'.
4764
4765 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4766
4767         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4768         (latin_a_char_to_byte1): Deleted.
4769         (latin_a_char_to_byte2): Deleted.
4770
4771 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4772
4773         * mule-charset.c (make_charset): Add new argument `ucs_min',
4774         `ucs_max' and `code_offset'.
4775         (charset_get_byte1): New implementation [delete specific charset
4776         depended implementations].
4777         (Fmake_charset): Modify for `make_charset'.
4778         (Fmake_reverse_direction_charset): Likewise.
4779         (complex_vars_of_mule_charset): Likewise.
4780
4781         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4782         `code_offset'.
4783         (CHARSET_UCS_MIN): New macro.
4784         (CHARSET_UCS_MAX): New macro.
4785         (CHARSET_CODE_OFFSET): New macro.
4786         (MAKE_CHAR): Delete charset depended definitions [except
4787         katakana-jisx0201].
4788
4789 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4790
4791         * char-ucs.h (breakup_char_1): Use
4792         `Vdefault_coded_charset_priority_list' for C0-Controls,
4793         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4794
4795 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4796
4797         * char-ucs.h (charset_get_byte1): New function.
4798         (XCHARSET_GET_BYTE1): Deleted.
4799         (charset_get_byte2): New function.
4800         (XCHARSET_GET_BYTE2): Deleted.
4801         (Vdefault_coded_charset_priority_list): New external variable.
4802         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4803         `Vdefault_preferred_coded_charset_list'.
4804
4805         * mule-charset.c (charset_get_byte1): New function.
4806         (charset_get_byte2): New function.
4807         (Vdefault_coded_charset_priority_list): New variable.
4808         (vars_of_mule_charset): Add new variable
4809         `default-coded-charset-priority-list'.
4810
4811 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4812
4813         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4814         (XCHARSET_GET_BYTE2): New inline function.
4815         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4816         `XCHARSET_GET_BYTE2'.
4817
4818 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4819
4820         * mule-charset.c (make_charset): Initialize
4821         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4822         NULL if table is not defined.
4823
4824 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4825
4826         * text-coding.c (char_encode_shift_jis): Use
4827         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4828         `ucs_to_latin_jisx0201'.
4829
4830         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4831         (ucs_to_latin_iso8859_2): Deleted.
4832         (ucs_to_latin_iso8859_3): Deleted.
4833         (ucs_to_latin_iso8859_4): Deleted.
4834         (ucs_to_latin_iso8859_9): Deleted.
4835         (ucs_to_latin_viscii_lower): Deleted.
4836         (ucs_to_latin_viscii_upper): Deleted.
4837         (ucs_to_latin_tcvn5712): Deleted.
4838         (make_charset): Add new argument `decoding_table'; set up
4839         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4840         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4841         `decoding_table' is defined in UTF-2000.
4842         (Fmake_charset): Modify for `make_charset'.
4843         (Fmake_reverse_direction_charset): Likewise.
4844         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4845         and `GENERATE_96_SET'.
4846
4847         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4848         (ucs_to_latin_jisx0201): Deleted.
4849         (latin_iso8859_2_to_ucs): Deleted.
4850         (ucs_to_latin_iso8859_2): Deleted.
4851         (latin_iso8859_3_to_ucs): Deleted.
4852         (ucs_to_latin_iso8859_3): Deleted.
4853         (latin_iso8859_4_to_ucs): Deleted.
4854         (ucs_to_latin_iso8859_4): Deleted.
4855         (latin_iso8859_9_to_ucs): Deleted.
4856         (ucs_to_latin_iso8859_9): Deleted.
4857         (latin_viscii_lower_to_ucs): Deleted.
4858         (ucs_to_latin_viscii_lower): Deleted.
4859         (latin_viscii_upper_to_ucs): Deleted.
4860         (ucs_to_latin_viscii_upper): Deleted.
4861         (struct Lisp_Charset): Renamed `encoding_table' to
4862         `to_byte1_table'; add `to_byte2_table'.
4863         (CHARSET_DECODING_TABLE): New macro.
4864         (CHARSET_TO_BYTE1_TABLE): New macro.
4865         (CHARSET_TO_BYTE2_TABLE): New macro.
4866         (XCHARSET_DECODING_TABLE): New macro.
4867         (XCHARSET_TO_BYTE1_TABLE): New macro.
4868         (XCHARSET_TO_BYTE2_TABLE): New macro.
4869         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4870         tables.
4871         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4872         don't use `ucs_to_*' tables.
4873
4874 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4875
4876         * text-coding.c (Fmake_coding_system): Don't set up
4877         `codesys->fixed.size'.
4878         (encode_coding_no_conversion): Use `if' instead of `switch'.
4879
4880         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4881
4882 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4883
4884         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4885         (Fmake_charset): Modify for `make_charset'.
4886         (Fmake_reverse_direction_charset): Likewise.
4887         (complex_vars_of_mule_charset): Likewise.
4888
4889 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4890
4891         * text-coding.c (char_encode_shift_jis): Use table
4892         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4893
4894 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4895
4896         * text-coding.c (text_encode_generic): Use `if' instead of
4897         `switch'.
4898         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4899         decode JIS-Latin.
4900
4901 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4902
4903         * text-coding.c (encode_coding_sjis): Deleted.
4904         (char_encode_shift_jis): New function.
4905         (char_finish_shift_jis): New function.
4906         (reset_encoding_stream): Set up `encode_char' and `finish' for
4907         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4908         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4909         (char_encode_utf8): Treat `eol_type'.
4910
4911 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4912
4913         * file-coding.c (decode_coding_iso2022): Use
4914         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4915
4916 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4917
4918         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4919         to 0.7 (Hirano).
4920
4921 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4922
4923         * char-lb.h (CHAR_COLUMNS): New macro.
4924
4925 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4926
4927         * text-coding.c (char_encode_ucs4): New function.
4928         (char_finish_ucs4): New function.
4929         (encode_coding_ucs4): Deleted.
4930         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4931         (text_encode_generic): Delete local variable `charset' and `half'.
4932         (ucs_to_mule_table): Deleted.
4933         (mule_to_ucs_table): Deleted.
4934         (Fset_ucs_char): Deleted.
4935         (ucs_to_char): Deleted.
4936         (Fucs_char): Deleted.
4937         (Fset_char_ucs): Deleted.
4938         (Fchar_ucs): Deleted.
4939         (decode_ucs4): Deleted.
4940         (mule_char_to_ucs4): Deleted.
4941         (encode_ucs4): Deleted.
4942         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4943         (decode_coding_utf8): Likewise.
4944         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4945         (char_encode_iso2022): Fixed.
4946         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4947         `Fset_char_ucs' and `Fchar_ucs'.
4948         (complex_vars_of_file_coding): Don't initialize
4949         `ucs_to_mule_table'.
4950
4951         * objects-tty.c (tty_initialize_font_instance): Don't use
4952         `XCHARSET_COLUMNS'.
4953
4954         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4955         UTF-2000.
4956
4957         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4958         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4959
4960         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4961         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4962         (emchar_string_displayed_columns): Likewise.
4963
4964         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4965         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4966         (string_column_at_point): Likewise.
4967         (Fmove_to_column): Likewise.
4968
4969         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4970         `encoding_table' and `decoding_table'.
4971         (CHARSET_REP_BYTES): Deleted.
4972         (XCHARSET_REP_BYTES): Deleted.
4973         (XCHARSET_COLUMNS): Deleted.
4974         (CHAR_COLUMNS): New macro.
4975         (lookup_composite_char): Deleted unconditionally.
4976         (composite_char_string): Likewise.
4977
4978 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4979
4980         * char-ucs.h (Emchar_to_byte_table): New type.
4981         (get_byte_from_character_table): New function interface.
4982         (Vcharset_latin_jisx0201): New variable.
4983         (latin_jisx0201_to_ucs): New variable.
4984         (ucs_to_latin_jisx0201): New variable.
4985         (Vcharset_latin_iso8859_2): New variable.
4986         (latin_iso8859_2_to_ucs): New variable.
4987         (ucs_to_latin_iso8859_2): New variable.
4988         (Vcharset_latin_iso8859_3): New variable.
4989         (latin_iso8859_3_to_ucs): New variable.
4990         (ucs_to_latin_iso8859_3): New variable.
4991         (Vcharset_latin_iso8859_4): New variable.
4992         (latin_iso8859_4_to_ucs): New variable.
4993         (ucs_to_latin_iso8859_4): New variable.
4994         (Vcharset_latin_iso8859_9): New variable.
4995         (latin_iso8859_9_to_ucs): New variable.
4996         (ucs_to_latin_iso8859_9): New variable.
4997         (Vcharset_latin_viscii_lower): New variable.
4998         (latin_viscii_lower_to_ucs): New variable.
4999         (ucs_to_latin_viscii_lower): New variable.
5000         (Vcharset_latin_viscii_upper): New variable.
5001         (latin_viscii_upper_to_ucs): New variable.
5002         (ucs_to_latin_viscii_upper): New variable.
5003         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5004         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5005         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5006         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5007         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5008         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5009         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5010         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5011         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5012         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5013
5014         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5015         (Vcharset_latin_viscii_upper): New variable.
5016         (make_byte_from_character_table): New function.
5017         (put_byte_from_character_table): New function.
5018         (get_byte_from_character_table): New function.
5019         (CHAR96): New macro.
5020         (ucs_to_latin_jisx0201): New variable.
5021         (latin_jisx0201_to_ucs): New variable.
5022         (ucs_to_latin_iso8859_2): New variable.
5023         (latin_iso8859_2_to_ucs): New variable.
5024         (ucs_to_latin_iso8859_3): New variable.
5025         (latin_iso8859_3_to_ucs): New variable.
5026         (ucs_to_latin_iso8859_4): New variable.
5027         (latin_iso8859_4_to_ucs): New variable.
5028         (ucs_to_latin_iso8859_9): New variable.
5029         (latin_iso8859_9_to_ucs): New variable.
5030         (ucs_to_latin_viscii_lower): New variable.
5031         (latin_viscii_lower_to_ucs): New variable.
5032         (ucs_to_latin_viscii_upper): New variable.
5033         (latin_viscii_upper_to_ucs): New variable.
5034         (ucs_to_latin_tcvn5712): New variable.
5035         (latin_tcvn5712_to_ucs): New variable.
5036         (Qlatin_viscii_lower): New variable.
5037         (Qlatin_viscii_upper): New variable.
5038         (syms_of_mule_charset): Set up new symbol
5039         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5040         (complex_vars_of_mule_charset): Set up new charset
5041         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5042         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5043         `ucs_to_<CHARSET>' tables.
5044
5045 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5046
5047         * text-coding.c: New file.
5048
5049 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5050
5051         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5052
5053         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5054         (MAKE_CHAR): Modify for `ucs-bmp'.
5055         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5056         non-MULE characters of BMP.
5057
5058 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5059
5060         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5061         to 0.6.
5062
5063 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5064
5065         * lstream.h:
5066         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5067         - Include character.h for `CHAR_ASCII_P'.
5068
5069         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5070
5071         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5072         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5073
5074         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5075         (BYTE_C0_P): Likewise.
5076         (BYTE_C1_P): Likewise.
5077         (Lstream_get_emchar_1): Likewise.
5078         (Lstream_fput_emchar): Likewise.
5079         (Lstream_funget_emchar): Likewise.
5080         (copy_internal_to_external): Likewise.
5081         (copy_external_to_internal): Likewise.
5082
5083         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5084         (BYTE_C0_P): Likewise.
5085         (BYTE_C1_P): Likewise.
5086         (Lstream_get_emchar_1): Likewise.
5087         (Lstream_fput_emchar): Likewise.
5088         (Lstream_funget_emchar): Likewise.
5089         (copy_internal_to_external): Likewise.
5090         (copy_external_to_internal): Likewise.
5091
5092         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5093         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5094
5095         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5096         (BYTE_ASCII_P): Moved to mb-1byte.h.
5097
5098 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5099
5100         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5101
5102         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5103         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5104         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5105         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5106         (VALIDATE_CHARPTR_FORWARD): Likewise.
5107         (simple_charptr_emchar): Moved to mb-multibyte.h.
5108         (simple_set_charptr_emchar): Likewise.
5109         (simple_charptr_copy_char): Likewise.
5110         (non_ascii_charptr_emchar): Likewise.
5111         (non_ascii_set_charptr_emchar): Likewise.
5112         (non_ascii_charptr_copy_char): Likewise.
5113         (charptr_emchar): Moved to mb-*byte.h.
5114         (set_charptr_emchar): Likewise.
5115         (charptr_copy_char): Likewise.
5116
5117         * mb-1byte.h, mb-multibyte.h: New files.
5118
5119 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5120
5121         * mb-utf-8.h (MULTIBYTE): New macro.
5122         (MAX_EMCHAR_LEN): Moved from buffer.h.
5123         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5124
5125         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5126
5127         * mb-lb.h, multibyte.h: New files.
5128
5129         * char-1byte.h (Charset_ID): Moved from buffer.h.
5130         (MIN_LEADING_BYTE): Likewise.
5131         (LEADING_BYTE_ASCII): Likewise.
5132         (NUM_LEADING_BYTES): Likewise.
5133         (CHARSETP): Likewise.
5134         (CHARSET_BY_LEADING_BYTE): Likewise.
5135         (XCHARSET_LEADING_BYTE): Likewise.
5136         (XCHARSET_GRAPHIC): Likewise.
5137         (XCHARSET_COLUMNS): Likewise.
5138         (XCHARSET_DIMENSION): Likewise.
5139         (CHAR_CHARSET): Likewise.
5140         (CHAR_LEADING_BYTE): Likewise.
5141         (BREAKUP_CHAR): Likewise.
5142         (Vcharset_ascii): Likewise.
5143
5144         * buffer.h: Include multibyte.h unconditionally.
5145         (VALID_CHARPTR_P): Moved to multibyte.h.
5146         (ASSERT_VALID_CHARPTR): Likewise.
5147         (REAL_INC_CHARPTR): Likewise.
5148         (REAL_INC_CHARBYTIND): Likewise.
5149         (REAL_DEC_CHARPTR): Likewise.
5150         (INC_CHARPTR): Likewise.
5151         (INC_CHARBYTIND): Likewise.
5152         (DEC_CHARPTR): Likewise.
5153         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5154         (VALIDATE_CHARPTR_FORWARD): Likewise.
5155         (charptr_n_addr): Likewise.
5156         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5157         (simple_charptr_emchar): Moved to multibyte.h.
5158         (simple_set_charptr_emchar): Likewise.
5159         (simple_charptr_copy_char): Likewise.
5160         (non_ascii_charptr_emchar): Likewise.
5161         (non_ascii_set_charptr_emchar): Likewise.
5162         (non_ascii_charptr_copy_char): Likewise.
5163         (charptr_emchar): Likewise.
5164         (set_charptr_emchar): Likewise.
5165         (charptr_copy_char): Likewise.
5166         (charptr_emchar_n): Likewise.
5167         (Charset_ID): Moved to char-1byte.h.
5168         (Vcharset_ascii): Likewise.
5169         (CHAR_CHARSET): Likewise.
5170         (CHAR_LEADING_BYTE): Likewise.
5171         (LEADING_BYTE_ASCII): Likewise.
5172         (NUM_LEADING_BYTES): Likewise.
5173         (MIN_LEADING_BYTE): Likewise.
5174         (CHARSETP): Likewise.
5175         (CHARSET_BY_LEADING_BYTE): Likewise.
5176         (XCHARSET_LEADING_BYTE): Likewise.
5177         (XCHARSET_GRAPHIC): Likewise.
5178         (XCHARSET_COLUMNS): Likewise.
5179         (XCHARSET_DIMENSION): Likewise.
5180         (BREAKUP_CHAR): Likewise.
5181
5182 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5183
5184         * character.h: Add document about interface for characters.
5185
5186         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5187         (MAKE_CHAR): Delete comment about
5188         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5189         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5190         (BREAKUP_CHAR): Modify name of arguments.
5191         (CHAR_CHARSET): Modify name of argument.
5192
5193         * buffer.h: Delete document about Emchar accessors.
5194
5195 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5196
5197         * character.h (CHAR_INTP): Moved from buffer.h
5198         (CHAR_OR_CHAR_INTP): Likewise.
5199         (XCHAR_OR_CHAR_INT): Likewise.
5200         (CHECK_CHAR_COERCE_INT): Likewise.
5201
5202         * buffer.h (CHAR_INTP): Moved to character.h
5203         (CHAR_OR_CHAR_INTP): Likewise.
5204         (XCHAR_OR_CHAR_INT): Likewise.
5205         (CHECK_CHAR_COERCE_INT): Likewise.
5206
5207 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5208
5209         * character.h:
5210         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5211         - Include char-1byte.h, char-lb.h or char-ucs.h.
5212
5213         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5214
5215         * buffer.h: Include character unconditionally.
5216         (valid_char_p): Moved to char-*.h.
5217         (non_ascii_valid_char_p): Moved to char-lb.h.
5218
5219         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5220
5221 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5222
5223         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5224         in UTF-2000 because it is not ported yet and not to use
5225         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5226         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5227         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5228
5229         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5230         (CHAR_ASCII_P): Moved from character.h.
5231
5232         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5233         (CHAR_ASCII_P): Likewise.
5234         (CHAR_FIELD1_MASK): Deleted.
5235         (CHAR_FIELD2_MASK): Deleted.
5236         (CHAR_FIELD3_MASK): Deleted.
5237         (MAX_CHAR_BASIC_LATIN): New macro.
5238         (CHAR_FIELD1): Deleted.
5239         (CHAR_FIELD2_INTERNAL): Deleted.
5240         (CHAR_FIELD3_INTERNAL): Deleted.
5241         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5242         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5243         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5244         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5245         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5246         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5247         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5248         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5249         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5250         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5251         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5252         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5253         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5254         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5255         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5256         (MIN_CHAR_COMPOSITION): Deleted.
5257         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5258         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5259
5260 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5261
5262         * buffer.h: Include mb-utf-8.h in UTF-2000.
5263
5264         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5265
5266         * mb-utf-8.h: New file.
5267
5268 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5269
5270         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5271         instead of `int'.
5272
5273         * mule-charset.h, buffer.h (Charset_ID): New type.
5274
5275 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5276
5277         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5278         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5279         instead of `MULE_CHAR_PRIVATE_OFFSET',
5280         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5281         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5282         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5283
5284         * character.h (Vcharset_japanese_jisx0212): New variable
5285         definition.
5286
5287 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5288
5289         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5290         (charset_by_attributes): Delete array about direction.
5291         (latin_a_char_to_charset): New variable in UTF-2000.
5292         (latin_a_char_to_byte1): New variable in UTF-2000.
5293         (latin_a_char_to_byte2): New variable in UTF-2000.
5294         (Qucs_bmp): New variable.
5295         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5296         `Bufbyte'.
5297         (next_allocated_2_byte_leading_byte): Likewise.
5298         (non_ascii_set_charptr_emchar): Likewise.
5299         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5300         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5301         `charset_by_attributes'.
5302         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5303         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5304         and `CHARSET_BY_LEADING_BYTE'.
5305         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5306         `utf-2000-version' to `vars_of_mule_charset'.
5307         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5308         define `leading-code-private-11' in UTF-2000; move setting of
5309         `utf-2000-version' from `syms_of_mule_charset'.
5310         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5311         UTF-2000.
5312
5313         * character.h (Charset_ID): New type.
5314         (LEADING_BYTE_UCS_BMP): New macro.
5315         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5316         (CHARSET_ID_OFFSET_94): New macro.
5317         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5318         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5319         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5320         final-byte.
5321         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5322         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5323         (CHARSET_ID_OFFSET_96): New macro.
5324         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5325         CHARSET_ID_OFFSET_96 and final-byte.
5326         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5327         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5328         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5329         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5330         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5331         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5332         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5333         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5334         (LEADING_BYTE_THAI_TIS620): Likewise.
5335         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5336         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5337         (CHARSET_ID_OFFSET_94x94): New macro.
5338         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5339         CHARSET_ID_OFFSET_94x94 and final-byte.
5340         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5341         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5342         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5343         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5344         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5345         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5346         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5347         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5348         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5349         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5350         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5351         (CHARSET_TYPE_128X128): New macro.
5352         (CHARSET_TYPE_256X256): New macro.
5353         (XCHARSET_PRIVATE_P): Delete unconditionally.
5354         (charset_by_attributes): Delete array about direction.
5355         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5356         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5357         (MIN_CHAR_94): New macro.
5358         (MAX_CHAR_94): New macro.
5359         (MIN_CHAR_96): New macro.
5360         (MAX_CHAR_96): New macro.
5361         (MIN_CHAR_94x94): New macro.
5362         (MAX_CHAR_94x94): New macro.
5363         (MIN_CHAR_96x96): New macro.
5364         (MAX_CHAR_96x96): New macro.
5365         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5366         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5367         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5368         - 32)'.
5369         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5370         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5371         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5372         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5373         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5374         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5375         `XCHARSET_LEADING_BYTE' to make code-point.
5376         (latin_a_char_to_charset): New variable.
5377         (latin_a_char_to_byte1): New variable.
5378         (latin_a_char_to_byte2): New variable.
5379         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5380         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5381         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5382
5383         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5384         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5385         (find_charsets_in_emchar_string): Likewise.
5386         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5387
5388         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5389         `int'.
5390         (decode_coding_iso2022): Likewise.
5391
5392         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5393         of `unsigned char'.
5394
5395         * redisplay.c (redisplay_text_width_emchar_string): Use
5396         `Charset_ID' instead of `unsigned char'.
5397         (redisplay_frame_text_width_string): Likewise.
5398
5399         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5400         `unsigned char'.
5401
5402         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5403         instead of `unsigned char'.
5404         (face_cachel_charset_font_metric_info): Likewise.
5405
5406         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5407         (get_non_ascii_char_table_value): Likewise.
5408         (get_char_table): Likewise.
5409         (put_char_table): Likewise.
5410         (map_over_other_charset): Likewise.
5411         (map_char_table): Likewise.
5412
5413         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5414         instead of `unsigned char'.
5415
5416 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5417
5418         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5419         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5420
5421         * mule-charset.c (leading_code_private_11): Don't define in
5422         UTF-2000.
5423
5424         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5425         in UTF-2000 because it is not ported yet and not to use
5426         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5427
5428 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5429
5430         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5431
5432 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5433
5434         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5435         in UTF-2000.
5436
5437         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5438         of unsigned char to store leading-byte.
5439
5440         * chartab.c (get_non_ascii_char_table_value): Don't use
5441         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5442
5443         * file-coding.c (encode_coding_big5): Delete bogus implementation
5444         in UTF2000.
5445
5446         * character.h (LEADING_BYTE_*): Delete definition for
5447         non-UTF-2000.
5448         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5449         (LEADING_BYTE_PREFIX_P): Deleted.
5450         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5451         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5452         (BUFBYTE_LEADING_BYTE_P): Deleted.
5453         (CHARSET_PRIVATE_P): Deleted unconditionally.
5454         (rep_bytes_by_first_byte): Deleted unconditionally.
5455         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5456         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5457         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5458         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5459         (CHAR_FIELD2): Deleted.
5460         (CHAR_FIELD3): Deleted.
5461         (MAKE_CHAR): Delete definition for non-UTF-2000.
5462         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5463         (breakup_char_1): New implementation.
5464         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5465         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5466
5467 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5468
5469         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5470         condition.
5471
5472 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5473
5474         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5475         (CHARSET_PRIVATE_P): Likewise.
5476         (XCHARSET_PRIVATE_P): Likewise.
5477         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5478
5479         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5480         UTF2000.
5481         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5482
5483 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5484
5485         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5486         (NUM_LEADING_BYTES): Changed from 128 to 256.
5487         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5488         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5489         UTF2000.
5490         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5491
5492         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5493         UTF2000.
5494         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5495         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5496         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5497         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5498         (Qchinese_cns11643_3): New variable in UTF2000.
5499         (Qchinese_cns11643_4): New variable in UTF2000.
5500         (Qchinese_cns11643_5): New variable in UTF2000.
5501         (Qchinese_cns11643_6): New variable in UTF2000.
5502         (Qchinese_cns11643_7): New variable in UTF2000.
5503         (syms_of_mule_charset): Define `chinese-cns11643-3',
5504         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5505         and `chinese-cns11643-7' in UTF2000.
5506         (vars_of_mule_charset): Initialize
5507         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5508         + 1 in UTF2000.
5509         (complex_vars_of_mule_charset): Setup charset
5510         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5511         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5512
5513 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5514
5515         * mule-charset.c: Move setting for `leading-code-private-11' from
5516         `syms_of_mule_charset' to `vars_of_mule_charset'.
5517
5518 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5519
5520         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5521         and `NUM_LEADING_BYTES' in assert.
5522
5523 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5524
5525         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5526         instead of 128.
5527         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5528         `NUM_LEADING_BYTES' instead of 128.
5529
5530 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5531
5532         * mule-charset.h (charset_by_leading_byte): Use
5533         `NUM_LEADING_BYTES' instead of 128.
5534         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5535
5536         * mule-charset.c (charset_by_leading_byte): Use
5537         `NUM_LEADING_BYTES' instead of 128.
5538         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5539
5540         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5541         128.
5542
5543 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5544
5545         * mule-charset.c (syms_of_mule_charset): Update to
5546         0.4 (Shin-Imamiya).
5547
5548 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5549
5550         * file-coding.c (encode_coding_sjis): New implementation for
5551         UTF2000.  (decode_coding_sjis): Ditto.
5552
5553 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5554
5555         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5556         Don't define in UTF2000.
5557
5558         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5559         defined.
5560
5561         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5562         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5563         MULE.
5564
5565 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5566
5567         * config.h.in (CHAR_IS_UCS4): New macro.
5568
5569         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5570         conventional MULE representation.
5571         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5572
5573         * mule-charset.h: Reverted to original.
5574
5575         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5576         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5577         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5578
5579         * character.h: New file.
5580
5581         * file-coding.c (Fmake_coding_system): Set 1 to
5582         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5583         defined.
5584         (encode_coding_no_conversion): New implementation for UTF2000.
5585
5586         * file-coding.h (struct Lisp_Coding_System): Add new member
5587         `fixed.size'.
5588
5589 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5590
5591         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5592         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5593         (encode_coding_iso2022): New implementation for UTF2000.
5594
5595 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5596
5597         * mule-canna.c (c2mu): New implementation for UTF2000.
5598         (m2c): Likewise.
5599
5600 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5601
5602         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5603
5604 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5605
5606         * file-coding.c (reset_encoding_stream): Set 0 to
5607         `str->iso2022.current_char_boundary' in UTF2000.
5608         (encode_utf8): Don't define in UTF2000.
5609         (encode_coding_utf8): New implementation for UTF-8 representation
5610         of UTF2000.
5611         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5612
5613 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5614
5615         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5616
5617         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5618         UTF2000.
5619         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5620
5621         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5622
5623         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5624         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5625         as UTF-8 in UTF2000.
5626         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5627         (non_ascii_valid_char_p): Don't define in UTF2000.
5628         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5629         (Lstream_get_emchar_1): Likewise.
5630         (utf-2000-version): New variable in UTF2000.
5631
5632         * lread.c (read_escape): Add new reader `u'.
5633
5634         * insdel.c (three_to_one_table): Don't define in UTF2000.
5635         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5636         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5637         UTF2000.
5638         (bytind_to_bufpos_func): Likewise.
5639         (buffer_mule_signal_inserted_region): Likewise.
5640         (vars_of_insdel): Don't initialize `three_to_one_table'.
5641         (init_buffer_text): Use `buf->text->mule_size' instead of
5642         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5643         UTF2000.
5644
5645         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5646         UTF-8 representation in UTF2000.
5647         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5648         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5649         (decode_coding_iso2022): Don't define local variable `lb' in
5650         UTF2000; don't use LEADING_BYTE in UTF2000; use
5651         `DECODE_ADD_UCS_CHAR' in UTF2000.
5652         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5653
5654         * config.h.in (UTF2000): New macro.
5655
5656         * buffer.h (struct buffer_text): Add new member `mule_size' and
5657         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5658         (valid_char_p): Return always 1 in UTF2000.
5659         (MAX_EMCHAR_LEN): 6 in UTF2000.
5660         (three_to_one_table): Don't define in UTF2000.
5661         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5662         UTF2000.
5663         (real_bytind_to_bufpos): Likewise.
5664
5665         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5666
5667 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5668
5669         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5670         representation change.
5671         (Vutf_2000_version): New variable.
5672         (leading_code_private_11): New variable.
5673         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5674         `leading-code-private-11'.
5675
5676         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5677         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5678         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5679         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5680         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5681         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5682         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5683         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5684         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5685         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5686         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5687         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5688         (MIN_CHAR_GREEK): New macro.
5689         (MAX_CHAR_GREEK): New macro.
5690         (MIN_CHAR_CYRILLIC): New macro.
5691         (MAX_CHAR_CYRILLIC): New macro.
5692         (MIN_CHAR_HEBREW): New macro.
5693         (MAX_CHAR_HEBREW): New macro.
5694         (MIN_CHAR_THAI): New macro.
5695         (MAX_CHAR_THAI): New macro.
5696         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5697         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5698         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5699         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5700         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5701         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5702         (CHAR_FIELD2): New inline function.
5703         (CHAR_FIELD3): New inline function.
5704         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5705         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5706         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5707         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5708         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5709         (MIN_CHAR_COMPOSITION): Likewise.
5710         (CHAR_LEADING_BYTE): Modified for character representation change.
5711         (MAKE_CHAR): Likewise.
5712
5713         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5714         (Vcharset_greek_iso8859_7): Likewise.
5715         (Vcharset_cyrillic_iso8859_5): Likewise.
5716         (Vcharset_hebrew_iso8859_8): Likewise.
5717         (Vcharset_thai_tis620): Likewise.
5718         (Vcharset_katakana_jisx0201): Likewise.
5719
5720 2005-02-06  Vin Shelton <acs@xemacs.org>
5721
5722         * XEmacs 21.4.17 is released
5723
5724 2005-01-31  Ben Wing  <ben@xemacs.org>
5725
5726         * emacs.c:
5727         Define assert_failed() always.
5728         * lisp.h:
5729         Always define ABORT().
5730
5731 2005-01-25  Ben Wing  <ben@xemacs.org>
5732
5733         * Makefile.in.in:
5734         * Makefile.in.in (%.o):
5735         Don't compile executable as Windows (-mwindows) under Cygwin.
5736         Semi-recent changes to Cygwin's executable-startup handling make
5737         it impossible to access the TTY this way.
5738
5739         Don't use special linker file under Cygwin (cygwin.sc) except
5740         when non-PDUMP (even in this case it is highly questionable); you
5741         get errors like
5742
5743       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
5744    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
5745
5746 2005-01-29  Ben Wing  <ben@xemacs.org>
5747
5748         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5749
5750         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
5751
5752 2005-01-29  Ben Wing  <ben@xemacs.org>
5753
5754         * bytecode.c (optimize_compiled_function):
5755         * print.c (FROB):
5756         * print.c (long_to_string):
5757         Add casts to avoid warning.
5758         
5759         * glyphs-eimage.c:
5760         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
5761         #### The better solution is to move the TIFF and JPEG code to
5762         different files.
5763         
5764         * glyphs-msw.c (mswindows_xbm_instantiate):
5765         Define __STDC__ to avoid problems with compface.h.
5766         
5767         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
5768         * EmacsShell-sub.c:
5769         * EmacsShell-sub.c (ABORT):
5770         * EmacsShell-sub.c (SuperClassRootGeometryManager):
5771         * EmacsShell-sub.c (RootGeometryManager):
5772         * EmacsShell.c:
5773         * EmacsShell.c (ABORT):
5774         * EmacsShell.c (EmacsShellUpdateSizeHints):
5775         * alloc.c (free_lcrecord):
5776         * alloca.c (i00afunc):
5777         * buffer.c (delete_from_buffer_alist):
5778         * buffer.c (MARKED_SLOT):
5779         * bytecode.c (execute_rare_opcode):
5780         * bytecode.c (optimize_byte_code):
5781         * bytecode.c (Ffetch_bytecode):
5782         * chartab.c (char_table_type_to_symbol):
5783         * chartab.c (Freset_char_table):
5784         * chartab.c (decode_char_table_range):
5785         * chartab.c (Fget_range_char_table):
5786         * chartab.c (check_valid_char_table_value):
5787         * chartab.c (map_char_table):
5788         * chartab.c (slow_map_char_table_fun):
5789         * chartab.c (chartab_instantiate):
5790         * cm.c (cmcheckmagic):
5791         * console-msw.c (DHEADER):
5792         * console.c (MARKED_SLOT):
5793         * data.c (finish_marking_weak_lists):
5794         * data.c (encode_weak_list_type):
5795         * debug.h (DASSERT):
5796         * device-gtk.c (gtk_init_device):
5797         * device-msw.c (mswindows_get_default_margin):
5798         * device-tty.c (tty_init_device):
5799         * device-x.c (get_device_from_display):
5800         * device-x.c (x_get_visual_depth):
5801         * doprnt.c (parse_doprnt_spec):
5802         * doprnt.c (get_doprnt_args):
5803         * dumper.c (pdump_get_indirect_count):
5804         * dumper.c (pdump_register_sub):
5805         * dumper.c (pdump_register_object):
5806         * dumper.c (pdump_register_struct):
5807         * dumper.c (pdump_dump_data):
5808         * dumper.c (pdump_reloc_one):
5809         * elhash.c (print_hash_table):
5810         * elhash.c (make_standard_lisp_hash_table):
5811         * elhash.c (hash_table_instantiate):
5812         * emacs.c:
5813         * emacs.c (Fforce_debugging_signal):
5814         * emacs.c (sort_args):
5815         * emacs.c (main):
5816         * emacs.c (assert_failed):
5817         * eval.c (throw_or_bomb_out):
5818         * eval.c (signal_1):
5819         * eval.c (Fsignal):
5820         * event-Xt.c:
5821         * event-Xt.c (emacs_Xt_mapping_action):
5822         * event-Xt.c (Xt_process_to_emacs_event):
5823         * event-msw.c:
5824         * event-stream.c (check_event_stream_ok):
5825         * event-stream.c (Fadd_timeout):
5826         * event-stream.c (Fadd_async_timeout):
5827         * event-stream.c (Fdiscard_input):
5828         * event-stream.c (execute_internal_event):
5829         * event-stream.c (Frecent_keys):
5830         * event-stream.c (extract_this_command_keys_nth_mouse_event):
5831         * event-stream.c (lookup_command_event):
5832         * event-unixoid.c (poll_fds_for_input):
5833         * events.c:
5834         * events.c (mark_event):
5835         * events.c (event_equal):
5836         * events.c (event_hash):
5837         * events.c (Fmake_event):
5838         * events.c (Fdeallocate_event):
5839         * events.c (event_chain_find_previous):
5840         * events.c (event_to_character):
5841         * events.c (format_event_object):
5842         * events.c (Fevent_type):
5843         * events.c (event_pixel_translation):
5844         * events.c (Fevent_properties):
5845         * extents.c (extent_in_region_p):
5846         * extents.c (print_extent):
5847         * extents.c (process_extents_for_insertion_mapper):
5848         * extents.c (report_extent_modification_mapper):
5849         * extents.c (glyph_layout_to_symbol):
5850         * faces.c (face_validate):
5851         * file-coding.c (eol_type_to_symbol):
5852         * file-coding.c (subsidiary_coding_system):
5853         * file-coding.c (Fcoding_system_type):
5854         * file-coding.c (Fcoding_system_property):
5855         * file-coding.c (mule_decode):
5856         * file-coding.c (mule_encode):
5857         * file-coding.c (encode_coding_ucs4):
5858         * file-coding.c (encode_coding_utf8):
5859         * file-coding.c (parse_iso2022_esc):
5860         * file-coding.c (encode_coding_iso2022):
5861         * fileio.c:
5862         * fns.c (concat):
5863         * fns.c (Fsubseq):
5864         * fns.c (mapcar1):
5865         * fns.c (Fbase64_encode_region):
5866         * fns.c (Fbase64_encode_string):
5867         * fns.c (Fbase64_decode_region):
5868         * fns.c (Fbase64_decode_string):
5869         * font-lock.c (find_context):
5870         * font-lock.c (context_to_symbol):
5871         * frame-gtk.c (gtk_set_frame_pointer):
5872         * frame-gtk.c (gtk_update_frame_external_traits):
5873         * frame-x.c (x_wm_mark_shell_size_user_specified):
5874         * frame-x.c (x_wm_mark_shell_position_user_specified):
5875         * frame-x.c (x_wm_set_shell_iconic_p):
5876         * frame-x.c (x_wm_set_cell_size):
5877         * frame-x.c (x_wm_set_variable_size):
5878         * frame-x.c (x_wm_store_class_hints):
5879         * frame-x.c (x_wm_maybe_store_wm_command):
5880         * frame-x.c (x_initialize_frame_size):
5881         * frame-x.c (x_update_frame_external_traits):
5882         * frame.c:
5883         * frame.c (delete_frame_internal):
5884         * frame.c (mouse_pixel_position_1):
5885         * frame.c (change_frame_size_1):
5886         * free-hook.c (check_free):
5887         * free-hook.c (check_realloc):
5888         * free-hook.c (note_block_input):
5889         * free-hook.c (log_gcpro):
5890         * gccache-gtk.c (gc_cache_lookup):
5891         * glyphs-eimage.c (tiff_memory_write):
5892         * glyphs-gtk.c (gtk_finalize_image_instance):
5893         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
5894         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
5895         * glyphs-gtk.c (gtk_xpm_instantiate):
5896         * glyphs-gtk.c (gtk_unmap_subwindow):
5897         * glyphs-gtk.c (gtk_map_subwindow):
5898         * glyphs-gtk.c (gtk_button_redisplay):
5899         * glyphs-msw.c:
5900         * glyphs-msw.c (init_image_instance_from_xbm_inline):
5901         * glyphs-x.c (init_image_instance_from_xbm_inline):
5902         * glyphs-x.c (extract_xpm_color_names):
5903         * glyphs-x.c (x_xpm_instantiate):
5904         * glyphs.c (get_image_instantiator_governing_domain):
5905         * glyphs.c (print_image_instance):
5906         * glyphs.c (image_instance_equal):
5907         * glyphs.c (image_instance_hash):
5908         * glyphs.c (encode_image_instance_type):
5909         * glyphs.c (make_image_instance_1):
5910         * glyphs.c (inherit_instantiate):
5911         * glyphs.c (image_instantiate):
5912         * glyphs.c (allocate_glyph):
5913         * glyphs.c (Fglyph_type):
5914         * glyphs.c (redisplay_subwindow):
5915         * glyphs.c (display_table_entry):
5916         * gtk-glue.c (xemacs_list_to_gtklist):
5917         * gtk-glue.c (xemacs_gtklist_to_list):
5918         * gtk-glue.c (xemacs_list_to_array):
5919         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
5920         * gutter.c (gutter_was_visible):
5921         * gutter.c (get_gutter_coords):
5922         * input-method-xlib.c (get_XIM_input):
5923         * insdel.c (bufpos_to_bytind_func):
5924         * insdel.c (bytind_to_bufpos_func):
5925         * insdel.c (move_gap):
5926         * intl.c (x_get_composed_input):
5927         * keymap.c (keymap_lookup_directly):
5928         * keymap.c (keymap_delete_inverse_internal):
5929         * keymap.c (ensure_meta_prefix_char_keymapp):
5930         * keymap.c (accessible_keymaps_mapper_1):
5931         * keymap.c (where_is_recursive_mapper):
5932         * lisp.h:
5933         * lisp.h (ABORT):
5934         * lread.c (read_atom):
5935         * lstream.c (Lstream_delete):
5936         * lstream.c (make_lisp_buffer_stream_1):
5937         * macros.c (pop_kbd_macro_event):
5938         * malloc.c (malloc):
5939         * malloc.c (free):
5940         * marker.c (bi_marker_position):
5941         * marker.c (set_bi_marker_position):
5942         * menubar-gtk.c (menu_descriptor_to_widget_1):
5943         * menubar-msw.c (prune_menubar):
5944         * menubar-x.c (set_frame_menubar):
5945         * mule-charset.c (get_unallocated_leading_byte):
5946         * mule-charset.h (CHAR_LEADING_BYTE):
5947         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5948         * nt.c (init_environment):
5949         * nt.c (generate_inode_val):
5950         * ntproc.c (delete_child):
5951         * ntproc.c (_sys_read_ahead):
5952         * ntproc.c (create_child):
5953         * objects.c (color_instantiate):
5954         * objects.c (font_instantiate):
5955         * objects.c (face_boolean_instantiate):
5956         * print.c (printing_major_badness):
5957         * process-nt.c (nt_send_process):
5958         * process-unix.c (unix_send_process):
5959         * process.c (get_process):
5960         * ralloc.c (obtain):
5961         * ralloc.c (relinquish):
5962         * ralloc.c (relocate_blocs):
5963         * ralloc.c (resize_bloc):
5964         * ralloc.c (r_alloc_free):
5965         * ralloc.c (r_re_alloc):
5966         * ralloc.c (r_alloc_thaw):
5967         * ralloc.c (init_ralloc):
5968         * ralloc.c (Free_Addr_Block):
5969         * ralloc.c (r_alloc):
5970         * redisplay-gtk.c (gtk_output_display_block):
5971         * redisplay-msw.c (mswindows_output_display_block):
5972         * redisplay-output.c (get_next_display_block):
5973         * redisplay-output.c (get_cursor_size_and_location):
5974         * redisplay-output.c (redisplay_output_layout):
5975         * redisplay-output.c (redisplay_clear_region):
5976         * redisplay-tty.c (tty_output_display_block):
5977         * redisplay-x.c (x_output_display_block):
5978         * redisplay.c (add_propagation_runes):
5979         * redisplay.c (add_glyph_rune):
5980         * redisplay.c (create_text_block):
5981         * redisplay.c (add_margin_runes):
5982         * redisplay.c (create_left_glyph_block):
5983         * redisplay.c (create_right_glyph_block):
5984         * redisplay.c (create_string_text_block):
5985         * redisplay.c (regenerate_window):
5986         * redisplay.c (REGEN_INC_FIND_START_END):
5987         * redisplay.c (redisplay_frame):
5988         * redisplay.c (point_in_line_start_cache):
5989         * regex.c:
5990         * regex.c (ABORT):
5991         * regex.c (re_compile_fastmap):
5992         * regex.c (re_match_2_internal):
5993         * regex.c (regerror):
5994         * scrollbar-gtk.c (gtk_scrollbar_loop):
5995         * scrollbar-gtk.c (scrollbar_cb):
5996         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
5997         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
5998         * scrollbar-x.c (x_update_scrollbar_instance_status):
5999         * scrollbar-x.c (x_scrollbar_loop):
6000         * scrollbar-x.c (x_update_frame_scrollbars):
6001         * search.c (search_command):
6002         * search.c (Fmatch_data):
6003         * select-x.c (motif_clipboard_cb):
6004         * signal.c (interrupt_signal):
6005         * specifier.c (specifier_add_spec):
6006         * specifier.c (specifier_instance_from_inst_list):
6007         * specifier.c (specifier_instance):
6008         * specifier.h:
6009         * specifier.h (struct specifier_methods):
6010         * strftime.c (add_num_time_t):
6011         * sunplay.c (init_device):
6012         * symbols.c (Fsetplist):
6013         * symbols.c (do_symval_forwarding):
6014         * symbols.c (store_symval_forwarding):
6015         * symbols.c (Fset):
6016         * symbols.c (Fbuilt_in_variable_type):
6017         * symbols.c (decode_magic_handler_type):
6018         * symbols.c (handler_type_from_function_symbol):
6019         * syntax.c (update_syntax_cache):
6020         * sysdep.c (init_baud_rate):
6021         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6022         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6023         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6024         * toolbar.c (get_toolbar_coords):
6025         * ui-gtk.c (build_gtk_boxed):
6026         * ui-gtk.c (describe_gtk_arg):
6027         * ui-gtk.c (gtk_type_to_lisp):
6028         * ui-gtk.c (lisp_to_gtk_type):
6029         * ui-gtk.c (lisp_to_gtk_ret_type):
6030         * ui-gtk.c (lisp_to_flag):
6031         * unexnt.c (read_in_bss):
6032         * unexnt.c (map_in_heap):
6033         * window.c (real_window):
6034         * window.c (window_display_lines):
6035         * window.c (window_display_buffer):
6036         * window.c (set_window_display_buffer):
6037         * window.c (window_modeline_height):
6038         * window.c (unshow_buffer):
6039         * window.c (window_loop):
6040         * window.c (Fget_lru_window):
6041         * window.c (Fsplit_window):
6042         * window.c (Fset_window_configuration):
6043         * window.c (saved_window_index):
6044         * xgccache.c (gc_cache_lookup):
6045         abort() -> ABORT().  Eliminate preprocessor games with abort()
6046         since it creates huge problems in VC7, solvable only by including
6047         massive amounts of files in every compile (and not worth it).
6048
6049         * sysdep.c:
6050         * sysproc.h:
6051         Inclusion of process.h does not need to be before lisp.h any more.
6052         Move later and remove comment about abort().
6053
6054 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6055
6056         * regex.c (re_match_2_internal):
6057         Correctly initialize loop which clears uninitialized registers.
6058
6059 2005-01-28  Vin Shelton  <acs@xemacs.org>
6060
6061         * sheap.c (more_static_core): Applied Ben's version of the long
6062         string patch.
6063
6064 2005-01-24  Vin Shelton  <acs@xemacs.org>
6065
6066         * sheap.c (more_static_core): Reformatted printf string so
6067         gcc-3.3.3 will compile this on Cygwin.
6068
6069 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6070
6071         * console.c (function_key_map): Reference `key-binding'.
6072
6073         * keymap.c (Vkey_translation_map): Improve docstring.
6074
6075 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6076
6077         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6078         * window.c (window_loop): [fix] Take into account
6079         `allow-deletion-of-last-visible-frame' variable.
6080         * window.c (replace-buffer-in-windows): Ditto.
6081
6082 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6083
6084         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6085
6086 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6087
6088         * event-gtk.c: Recognise AltGr as a valid modifier.
6089
6090 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6091
6092         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6093
6094 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6095
6096         Fix backreference bug caught by test suite.
6097
6098         * regex.c (regex_compile):
6099         Make backref duplicate internal register.
6100
6101 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6102
6103         Documentation, code clarification, and warning suppression.
6104         
6105         * regex.c (regex_compile):
6106         Improve comments.
6107         (re_match_2_internal):
6108         Improve comments and avoid redundant braces.  [Most of the big hunk
6109         at l. 4710 is indentation; use diff -w to see the real changes.]
6110         (alt_match_null_string_p):
6111         (common_op_match_null_string_p):
6112         Avoid shadowing global on Mac OS X 10.4, at least.
6113
6114 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6115
6116         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6117         introduced with shy groups fix).  [Already applied, probably
6118         with the second "fix shy groups" patch of 2004-10-07.] 
6119
6120 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6121
6122         From Andrey Slusar <anrays@gmail.com>:
6123
6124         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6125
6126 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6127
6128         * Makefile (RECURSIVE_MAKE): Removed.
6129         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6130         handling parallel builds.
6131
6132 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6133
6134         * Makefile.in.in: Enable support for parallel builds.
6135
6136 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6137
6138         From Andrey Slusar <anrays@gmail.com>:
6139
6140         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6141         FreeBSD version is >= 199701 _and_ < 600006.
6142
6143 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6144
6145         * scrollbar.c (compute_scrollbar_instance_usage):
6146         Only call device method compute_scrollbar_instance_usage() if it
6147         is defined.
6148
6149 2004-12-05  Vin Shelton <acs@xemacs.org>
6150
6151         * XEmacs 21.4.16 is released
6152
6153 2004-12-04  Vin Shelton  <acs@xemacs.org>
6154
6155         * depend: Regenerated.
6156
6157 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6158
6159         * regex.c (re_match_2_internal): Map internal to external
6160         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6161         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6162
6163 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6164
6165         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6166         to fix a crash.  Also, check the buffer is live and it
6167         really exists in buffer_list.  If the buffer is not in the list,
6168         prepend it.
6169
6170 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6171
6172         Fix shy groups by implementing recording of all groups for
6173         repetition and backtracking.  Backport from 21.5.
6174         
6175         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6176         external_to_internal_register, external_to_internal_register_size,
6177         and update comments for re_nsub.
6178
6179         * regex.c (re_opcode_t): Update comments.
6180         (print_compiled_pattern): Ouput external_to_internal_register,
6181         external_to_internal_register_size, and re_ngroups for debugging.
6182         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6183         (regex_compile): Update header comment.
6184         Ensure that all groups are recorded so that repeat matches and
6185         backtracking work correctly.  Comment related warning for groups >
6186         255.
6187         (re_search_2): Construct map of API indexes (which count only
6188         nonshy groups) to internal register numbers, and keep it updated.
6189
6190 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6191
6192         * frame-gtk.c (gtk_make_frame_visible):
6193         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6194         show/hide.  This is what X uses and is prevents previously hidden
6195         widgets from suddenly reappearing.
6196         * gtk-xemacs.c (gtk_xemacs_paint):
6197         * gtk-xemacs.c (gtk_xemacs_draw):
6198         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6199         drawable.
6200         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6201         size and location changes so that they can be seen before the next
6202         idle event.  Without this rapid changes to scrollbar properties
6203         are not seen.
6204
6205 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6206
6207         * console-gtk.h:
6208         * console-gtk.h (struct gtk_frame):
6209         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6210           Add hash tables track tab_control callback data.
6211           Added #defines for GTK object data names.
6212           Declaration of gtk_widget_to_frame().
6213         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6214         * frame-gtk.c (gtk_widget_to_frame): New.
6215         * frame-gtk.c (gtk_create_widgets):
6216         * frame-gtk.c (allocate_gtk_frame_struct):
6217         * frame-gtk.c (gtk_mark_frame):
6218         Manage frame callbakc hash tables.
6219         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6220         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6221         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6222         of widget size.
6223         * glyphs-gtk.c (gtk_widget_query_geometry): New
6224         * glyphs-gtk.c (gtk_register_gui_item): New
6225         * glyphs-gtk.c (gtk_add_tab_item): New
6226         * glyphs-gtk.c (gtk_tab_control_callback): New
6227         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6228         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6229         Use correct list when loading item.
6230         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6231         Register new methods.
6232         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6233         default size, for widgets.
6234         * gui-x.c:  Improved comment.
6235         * menubar-gtk.c (__generic_button_callback): Use
6236         gtk_widget_to_frame instead of __get_channel.
6237         * scrollbar-gtk.c:
6238         * ui-gtk.c: Use symbolic names for GTK object data.
6239
6240 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6241
6242         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6243
6244 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6245
6246         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6247
6248 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6249
6250         * malloc.c (morecore): siz is a long because in some architectures
6251         (eg ia-64) an int cannot hold the address range.  Additional patch
6252         from the SuSe distribution.
6253
6254 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6255
6256         * emacs.c:
6257         * malloc.c: lim_data is a long because in some architectures
6258         (eg ia-64) an int cannot hold the address range.
6259         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6260         instead of ulimit() because ulimit() always returns -1.
6261
6262 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6263
6264         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6265
6266 2004-06-11  David Kastrup  <dak@gnu.org>
6267
6268         * search.c (match_limit): Don't flag an error if match-data
6269         exceeding the allocated search_regs.num_regs gets requested, just
6270         return Qnil.
6271
6272 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6273
6274         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6275         replace symbolic color entries with the real colors specified in
6276         xpm-color-symbols, before passing the XPM to gtk.
6277         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6278         instead of a GTK specific field, so that it is used in by generic
6279         code.
6280
6281 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6282
6283        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6284         coredump from deref of NULL ptr (ExtData)
6285
6286 2004-04-19  Jerry James  <james@xemacs.org>
6287
6288         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6289         VALBITS to compute the location of the sign bit.
6290         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6291         of VALBITS with EMACS_INT_MAX.
6292         * events.c (Fevent_timestamp): Ditto.
6293         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6294         compute the halfway point to timestamp wraparound.
6295         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6296         EMACS_INT_MIN instead of using VALBITS.
6297         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6298         incorrect number with VALBITS.
6299         * fns.c (Frandom): Correct number of integer bits in docstring.
6300         Use INT_VALBITS instead of VALBITS to compute the denominator.
6301         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6302         build random numbers.
6303
6304 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6305         * event-gtk.c:
6306         * event-gtk.c (gtk_event_to_emacs_event):
6307         * menubar-gtk.c:
6308         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6309         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6310         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6311         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6312         * menubar-gtk.c (__activate_menu):
6313         * menubar-gtk.c (convert_underscores):
6314         * menubar-gtk.c (remove_underscores):
6315         * menubar-gtk.c (menu_convert):
6316         * menubar-gtk.c (menu_descriptor_to_widget_1):
6317         * menubar-gtk.c (menu_descriptor_to_widget):
6318         * menubar-gtk.c (menu_can_reuse_widget):
6319         * menubar-gtk.c (menu_create_menubar):
6320         * menubar-gtk.c (gtk_popup_menu):
6321         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6322         Added support for Gtk menu bar and menu item mnemonics.
6323
6324 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6325
6326         * sysdll.c: (dll_function): Added support for finding symbols in
6327         Darwin shared libraries as well in Darwin bundles.
6328         * sysdll.c (image_for_address): New
6329         * sysdll.c (my_find_image): New
6330         * sysdll.c (search_linked_libs): New
6331
6332 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6333
6334         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6335         return to GTK requires a different API to marshalling data to use
6336         as GTK parameters.
6337         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6338
6339 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6340
6341         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6342
6343 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6344
6345         * glyphs.c (process_image_string_instantiator):
6346         (Fset_console_type_image_conversion_list):
6347         Stop GCC from warning about shadowing of `exp'.
6348
6349         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6350
6351 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6352
6353         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6354
6355 2004-02-03  Vin Shelton  <acs@xemacs.org>
6356
6357         * glyphs.c (image_instance_layout): Remove pointless assertion.
6358         * regex.c (regex_grow_registers): Return type is void.
6359
6360 2004-02-02  Vin Shelton <acs@xemacs.org>
6361
6362         * XEmacs 21.4.15 is released
6363
6364 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6365
6366         * device-x.c (x_error_handler): Don't call stderr_out
6367
6368 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6369
6370         * buffer.c (other-buffer): Clarify documentation of order of
6371         arguments for FSF Emacs.
6372
6373 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6374
6375         * window.c (Fdelete_window): Dirty the mirror structure _before_
6376         marking the window deleted.
6377
6378 2003-09-15  Jerry James  <james@xemacs.org>
6379
6380         * event-msw.c (debug_mswin_messages): Conditionally compile
6381         messages missing from the Cygwin headers.
6382
6383 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6384
6385         * data.c (eq_with_ebola_notice): Fix typo in comment.
6386         (Ftrue_list_p): Improve docstring.
6387
6388 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6389
6390         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6391
6392 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6393
6394         * search.c (trivial_regexp_p): Regexps containing "\{" are
6395         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6396         Stefan Monnier for suggesting a diagnosis.
6397
6398 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6399
6400         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6401
6402 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6403
6404         * search.c (Fsearch_forward):
6405         (Fsearch_backward):
6406         Document negative count.
6407
6408 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6409
6410         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6411
6412 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6413
6414         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6415
6416 2003-09-15  Vin Shelton  <acs@xemacs.org>
6417
6418         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6419         21.5.
6420
6421 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6422
6423         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6424         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6425         (re_match_2_internal): Use TRANSLATE instead of
6426         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6427         non-ASCII char case conversion.
6428
6429 2003-09-08  Mike Sperber  <mike@xemacs.org>
6430
6431         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6432         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6433
6434 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6435
6436        * .gdbinit (pobj): fix printing of symbol name.
6437
6438 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6439
6440         * frame-x.c (x_layout_widgets): When resizing is about to cause
6441         frame size slip, mark it for redisplay.
6442
6443 2003-08-18  Jerry James  <james@xemacs.org>
6444
6445         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6446
6447 2003-09-03  Vin Shelton <acs@xemacs.org>
6448
6449         * XEmacs 21.4.14 is released
6450
6451 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6452
6453         * config.h.in (REGEX_MALLOC): Make it configure'able.
6454
6455 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6456
6457         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6458         linking.
6459         * sysdll.c (dll_init):
6460         * sysdll.c (dll_open):
6461         * sysdll.c (dll_close):
6462         * sysdll.c (dll_function):
6463         * sysdll.c (dll_variable):
6464         * sysdll.c (dll_error):
6465         Add support for loading bundles using Darwin/MacOSX
6466         native API.
6467
6468 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6469
6470         * process.c (start-process-internal): Document coding systems.
6471
6472 2003-07-30  Jerry James  <james@xemacs.org>
6473
6474         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6475
6476 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
6477
6478         * event-msw.c (mswindows_enqueue_mouse_button_event):
6479         * event-msw.c (mswindows_wnd_proc):
6480           enqueue button event when scrollwheel event isn't handled by 
6481           mswindows_handle_mousewheel_event, such as when the scrollbars
6482           are not showing.
6483
6484 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
6485
6486         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
6487
6488 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
6489
6490         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
6491
6492 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
6493
6494         * regex.c (re_match_2_internal): Fix matching degenerate word
6495         boundaries.
6496
6497 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
6498
6499         * XEmacs 21.4.13 is released
6500
6501 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
6502
6503         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
6504         * lisp.h (<inttypes.h>):
6505         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
6506         the definition.
6507
6508 2003-03-15  Martin Buchholz  <martin@xemacs.org>
6509
6510         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
6511         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
6512         Result: "temacs can only be run in -batch mode."
6513         Fix: Check xemacs executable candidate for directory-ness.
6514
6515 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
6516
6517         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
6518           they conflict with <sys/types.h>.
6519
6520 2003-02-14  Martin Buchholz  <martin@xemacs.org>
6521
6522         * database.c: Berkeley DB wants __STDC__ to be defined.
6523
6524 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6525
6526         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
6527
6528 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6529
6530         * process-unix.c (unix_send_process): Fix C++ compile error.
6531
6532 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
6533
6534         * Added .dylib as an acceptable shared library file extension
6535         * to support MacOSX.
6536
6537 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6538
6539         * EmacsFrameP.h (EmacsFramePart):
6540         Kludge to allow compiling with Motif1, but linking with Motif2.
6541
6542 2003-01-28  Martin Buchholz  <martin@xemacs.org>
6543
6544         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
6545
6546
6547 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
6548
6549         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
6550
6551 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
6552
6553         * sysdll.c: Included lisp.h to define needed alloca_array.
6554
6555 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6556
6557         Make XEmacs redisplay 10 times faster.
6558         If, that is, you're using a slow X connection and MoveOpaque.
6559         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
6560         Use compress_motion = TRUE.
6561         * EmacsFrame.c (emacsFrameClassRec): 
6562         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
6563         * EmacsManager.c (emacsManagerClassRec):
6564         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
6565
6566 2003-01-30  Vin Shelton  <acs@xemacs.org>
6567
6568         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
6569
6570 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
6571
6572         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
6573         Patch by Martin Buchholz.
6574
6575 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
6576
6577         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
6578         Thanks to icc for warning and Martin Buchholz for reporting.
6579
6580 2003-01-29  Vin Shelton <acs@xemacs.org>
6581
6582         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
6583
6584         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
6585         remember to multiply by the element size.
6586
6587 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
6588
6589         * XEmacs 21.4.12 "Portable Code" is released.
6590
6591 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
6592
6593         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
6594         * s/cygwin.sc: new linker file.
6595
6596 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
6597
6598         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
6599
6600         * redisplay-x.c (x_output_string): Use X11-specified types.
6601         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
6602         * emacs.c (__free_hook): Use typeof with Intel compiler.
6603         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
6604
6605 2003-01-08  Andy Piper  <andy@xemacs.org>
6606
6607         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
6608         reserve size during unexec().
6609
6610 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
6611
6612         * process-unix.c (unix_create_process): Don't let outchannel block.
6613
6614 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
6615
6616         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
6617         Needed for IsBadReadPtr().
6618
6619 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
6620
6621         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
6622
6623 2002-12-14  Ben Wing  <ben@xemacs.org>
6624
6625         * callint.c: Declaration error.
6626         * dumper.c (pdump):
6627         * dumper.c (pdump_load): Warning fix.
6628         * process.c: GCPRO error.
6629         * glyphs.c (unmap_subwindow):
6630         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
6631         * event-stream.c (maybe_kbd_translate): Wrong argument to
6632         character_to_event().
6633
6634         * alloc.c (garbage_collect_1):
6635         * emacs.c:
6636         * emacs.c (debug_can_access_memory):
6637         * emacs.c (fatal_error_signal):
6638         * emacs.c (mswindows_handle_hardware_exceptions):
6639         * emacs.c (main_1):
6640         * emacs.c (main):
6641         * emacs.c (assert_failed):
6642         * emacs.c (syms_of_emacs):
6643         * lisp.h:
6644         * print.c:
6645         * print.c (std_handle_out_va):
6646         * print.c (write_string_to_stdio_stream):
6647         * print.c (write_fmt_string):
6648         * print.c (printing_badness):
6649         * print.c (printing_major_badness):
6650         * print.c (print_internal):
6651         * print.c (debug_print_no_newline):
6652         * print.c (debug_backtrace):
6653         Be more defensive in handling bad values when printing.  Add code
6654         from trunk involving inhibit_non_essential_printing_operations.
6655         When going down or in debug_print(), don't do external conversion
6656         and such and try really, really hard when printing to avoid core
6657         dumping.  Add force-debugging-signal, debug_break().
6658
6659 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
6660
6661         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
6662         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
6663
6664 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
6665
6666         * database.c: Fix open_database. Berkeley DB API has changed in
6667         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
6668
6669 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
6670
6671         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
6672
6673 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
6674
6675         * event-Xt.c (Xt_timeout):
6676         (Xt_timeout_callback):
6677         (emacs_Xt_add_timeout):
6678         (emacs_Xt_remove_timeout):
6679         (Xt_timeout_to_emacs_event):
6680         Turn completed_timeouts from a stack into a queue.  Fixes
6681         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
6682
6683 2002-11-07  Wolfram Gloger  <wg@malloc.de>
6684
6685         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
6686         * emacs.c (main): Assert that mmap'd allocation is disabled.
6687
6688 2002-10-14  Andy Piper  <andy@xemacs.org>
6689
6690         * glyphs-widget.c (layout_query_geometry): add in fiddle
6691         factor. Include border text in width layout calculation.
6692         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
6693
6694 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
6695
6696         * XEmacs 21.4.10 "Military Intelligence" is released.
6697
6698 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
6699
6700         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
6701         using the NAS private array SoundFileInfo that no longer exists in
6702         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
6703         and earlier.  This is broken for some versions between 1.5a and
6704         1.5f.
6705
6706 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
6707
6708         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
6709
6710         * emacs.c (shut_down_emacs): Improve crash message.
6711
6712 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
6713
6714         * file-coding.c (determine_real_coding_system): Check for coding
6715         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
6716         shebangs and Python PEP 263.
6717
6718 2002-10-08  Andy Piper  <andy@xemacs.org>
6719
6720         * glyphs-widget.c (layout_query_geometry): only resize dynamically
6721         if static sizes haven't been set.
6722
6723 2002-08-30  Mike Alexander  <mta@arbortext.com>
6724
6725         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
6726         to close a socket.
6727
6728 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
6729
6730         * callproc.c (child_setup): 21.4 doesn't have retry_close.
6731
6732 2002-09-20  Mike Sperber <mike@xemacs.org>
6733
6734         (This partially gets back my patch from 2002-07-20 without the
6735         bug.)
6736         * callproc.c (child_setup): Remove Ben's comment noting confusion
6737         over the file descriptors >= 3: close_process_descs() doesn't
6738         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
6739         * process-unix.c (unix_create_process): Call
6740         begin_dont_check_for_quit to inhibit unwanted interaction (and
6741         thus breaking of X event synchronicity) in the child.
6742
6743 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
6744
6745         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
6746         widget.
6747
6748 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
6749
6750         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
6751         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
6752         the xemacs process did not exit, but looped infinitely here.  This
6753         fixes that problem.
6754
6755 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6756
6757         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
6758         (find_context): Improve comments.
6759
6760         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
6761         (re_match_2): An XCHAR_TABLE operation was missing.
6762
6763         Many of the following changes were inspired by Andy Piper's (now
6764         obsolete) patch to make syntax-table text property lookup optional.
6765
6766         [Documentation]
6767
6768         * syntax.h (top level): Document semantics of syntax flags.
6769         * syntax.c (comstr_start, Fforward_comment): Improve comments.
6770         * syntax.c, syntax.h (top level): Document syntax cache better in
6771         comments.
6772
6773         [Instrument syntax caching (temporary change)]
6774
6775         * syntax.h (enum syntax_cache_statistics_functions, struct
6776         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
6777         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
6778         * syntax.c (scan_words, Fforward_comment, scan_lists,
6779         Fbackward_prefix_characters):
6780         * font-lock.c (find_context):
6781         Use them to instrument syntax caching. 
6782         * syntax.c (struct syntax_cache_statistics, scs_statistics,
6783         syntax_cache_statistics_function_names): New type and variables.
6784         * syntax.c (update_syntax_cache): Update and report statistics.
6785
6786         [Major syntax cache optimizations]
6787
6788         syntax.c (lookup_syntax_properties): Default off.
6789
6790         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
6791         * syntax.c (update_syntax_cache):
6792         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
6793
6794         [Minor syntax cache optimizations and code clarifications]
6795
6796         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
6797         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
6798         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
6799         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
6800         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
6801         (Code clarification.)
6802
6803         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
6804         scan_lists): Compute code from syncode, use Boolean macros instead
6805         of redundant masking operations.  (Code clarification; any decent
6806         compiler can do this optimization.)
6807
6808         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
6809         for clarity.
6810
6811         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
6812         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
6813         use F*_single_property_change instead of F*_extent_change.
6814         Currently F*_single_property_change is _much_ less efficient.
6815
6816         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
6817         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
6818         syntax_cache.object properly, don't leave Qt or Qnil.
6819         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
6820         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
6821         tests for Qt or Qnil.
6822
6823 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
6824
6825         * redisplay.c (point_in_line_start_cache): 
6826         * extents.c (print_extent_1):
6827         Fix warnings.
6828
6829         * extents.c (Fset_extent_property): Document `syntax-table' property.
6830
6831         * extents.h (Fnext_single_property_change): EXFUN it.
6832
6833 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6834
6835         * search.c (clear_unused_search_regs): New static function.
6836         (search_buffer): 
6837         (simple_search): 
6838         (boyer_moore):
6839         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
6840         Minor clarifications in comments.
6841
6842         * regex.c (re_match_2_internal): Ensure no stale submatches.
6843
6844 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6845
6846         * event-Xt.c (enqueue_focus_event): Add missing prototype.
6847
6848 2002-08-29  Jerry James  <james@xemacs.org>
6849
6850         * lisp.h: structrures -> structures.
6851
6852 2002-06-03  Andy Piper  <andy@xemacs.org>
6853
6854         * frame.c (frame_conversion_internal): add conversion appropriate
6855         for setting frame dimensions in pixels.
6856
6857         * console.h (struct console_methods): add device-specific widget
6858         layout functions.
6859
6860         * emacs.c (main_1): initialize glyph vars.
6861
6862         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
6863         (handle_focus_event_2): new function. Allow focus to
6864         be set to a particular window and widget.
6865         (enqueue_focus_event): new function. Create a
6866         synthetic focus event.
6867         (emacs_Xt_handle_magic_event): call
6868         handle_focus_event_2.
6869
6870         * frame.c (Fset_frame_pixel_height): new function. Allow
6871         pixel-based sizing. Does the right thing on character-oriented
6872         displays.
6873         (Fset_frame_pixel_width): ditto.
6874         (Fset_frame_pixel_size): ditto.
6875         (syms_of_frame): declare.
6876
6877         * general-slots.h: add :vertically-justify and
6878         :horizontally-justify.
6879
6880         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
6881         (mswindows_widget_border_width): new function.
6882         (mswindows_combo_box_instantiate): set border widths.
6883         (console_type_create_glyphs_mswindows): declare.
6884
6885         * glyphs-widget.c:
6886         (check_valid_justification): allow vertical and horizontal
6887         justification.
6888         (widget_border_width): new function. Call device methods.
6889         (widget_instance_border_width): ditto.
6890         (logical_unit_height): new function. Determine the height of a
6891         logical-unit. Logical units are intended to provide grid-like
6892         layout for subcontrols in a layout. If the layout is
6893         :vertically-justify top then subcontrols will be positioned on
6894         logical-unit boundaries, thus allowing adjacent subcontrols to
6895         line up.
6896         (widget_logical_unit_height): ditto for widgets.
6897         (redisplay_widget): misc cleanup.
6898         (widget_spacing): new function. Call device specific
6899         methods. Intended to be the default gap between adjacent widgets.
6900         (widget_query_geometry): use new spacing functions to determine
6901         appropriate geometry.
6902         (initialize_widget_image_instance): initialize horizontal and
6903         vertical justification.
6904         (widget_instantiate): use logica-units where appropriate for
6905         sizing large widgets.
6906         (button_query_geometry): use widget_instance_border_width.
6907         (tree_view_query_geometry): ditto.
6908         (tab_control_query_geometry): ditto.
6909         (edit_field_query_geometry): new function.
6910         (layout_update): pick up :justify, :horizontally-justify and
6911         :vertically-justify none of which worked previously. :justify is
6912         used as a fallback for both horizontal and vertical justification.
6913         (layout_query_geometry): use logical units to size appropriately.
6914         (layout_layout): ditto.
6915         (Fwidget_logical_to_character_width): new function. Allow users to
6916         convert from logical units to characters so that frame sizes can
6917         be set appropriately.
6918         (Fwidget_logical_to_character_height): ditto.
6919         (syms_of_glyphs_widget): declare.
6920         (image_instantiator_edit_fields): add edit_field_query_geometry.
6921         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
6922         :horizontally-justify.
6923         (specifier_vars_of_glyphs_widget): new function. Declare
6924         Vwidget_border_width which is not yet used.
6925
6926         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
6927         (x_widget_border_width): new function.
6928         (x_widget_instantiate): create a sensible name for widgets.
6929         (console_type_create_glyphs_x): declare x_widget_border_width.
6930
6931         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
6932         (struct Lisp_Image_Instance): add :vertically-justify and
6933         :horizontally-justify.
6934         (LAYOUT_JUSTIFY_TOP): new.
6935         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
6936         (ROUND_UP): new macro. Round argument up to next integral
6937         interval.
6938
6939         * redisplay-output.c (redisplay_output_layout): misc formatting.
6940
6941         * symsinit.h: declare specifier_vars_of_glyphs_widget.
6942
6943 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
6944
6945         * XEmacs 21.4.9 "Informed Management" is released.
6946
6947 2002-08-19  Andy Piper  <andy@xemacs.org>
6948
6949         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6950         win32 format.
6951
6952         * realpath.c (xrealpath): normalize drive spec also so that dir
6953         sep chars are not mixed on cygwin.
6954
6955 2002-08-06  Jerry James  <james@xemacs.org>
6956
6957         * window.c (Fsplit_window): Count only half of the divider width
6958         against the left window when splitting horizontally. 
6959
6960 2002-06-24  Andy Piper  <andy@xemacs.org>
6961
6962         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6963         toolbar was cleared.
6964
6965         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6966         function. Split out from mswindows_output_frame_toolbars.
6967         (mswindows_output_frame_toolbars): move clear pieces to
6968         mswindows_output_frame_toolbars.
6969
6970         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6971         out from gtk_output_frame_toolbars.
6972         (gtk_output_frame_toolbars): move clear pieces to
6973         gtk_clear_frame_toolbars.
6974
6975         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6976         the frame is cleared. How this ever worked before is a mystery.
6977         (x_output_frame_toolbars): Only output toolbars.
6978         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6979
6980         * gutter.c (update_gutter_geometry):
6981         Mark frame layout changed.
6982         (update_frame_gutter_geometry, update_frame_gutters):
6983         Respect frame_layout_changed.
6984
6985         * console.h (struct console_methods): add
6986         clear_frame_toolbars_method.
6987
6988         * redisplay.c (redisplay_frame): call
6989         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6990
6991         * toolbar.h: declare update_frame_toolbars_geometry.
6992
6993         * toolbar.c (update_frame_toolbars_geometry): new function. Split
6994         out from update_frame_toolbars.  Call clear_frame_toolbars.
6995         (update_frame_toolbars): only output, do not change geometry.
6996
6997         * redisplay.c: add frame_layout_changed.
6998
6999         * redisplay.h: add frame_layout_changed.
7000         (CLASS_RESET_CHANGED_FLAGS): set it.
7001         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7002         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7003         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7004
7005         * device.h (struct device): add frame_layout_changed.
7006         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7007
7008         * frame.h (struct frame): add frame_layout_changed.
7009         (MARK_FRAME_LAYOUT_CHANGED): new.
7010
7011 2002-06-30  Mike Alexander  <mta@arbortext.com>
7012
7013         * event-msw.c (mswindows_need_event): Don't wait for a new message
7014         if the queue is not empty.  Suggested by Paul Moore.
7015
7016 2002-06-12  Andy Piper  <andy@xemacs.org>
7017
7018         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7019         for printing on accurately.
7020
7021 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7022
7023         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7024         WM_ACTIVATE message. Make sure that the frame is visible if the
7025         window is visible. This seemss to fix the problem where XEmacs
7026         appears to freeze after switching desktops with certain virtual
7027         window managers.
7028         (debug_output_mswin_message): Added code to output message
7029         parameters for WM_WINDOWPOSCHANGED, 
7030         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7031
7032 2002-05-25  Andy Piper  <andy@xemacs.org>
7033
7034         * select-x.c (vars_of_select_x): Fix docstring of
7035         x-selection-strict-motif-ownership
7036
7037 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7038
7039         * keymap.c (get_keymap):
7040         Add comment about do_autoload GCPROs own args.
7041
7042 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7043
7044         * bytecode.c (execute_optimized_program): check_opcode ifdef
7045         ERROR_CHECK_BYTE_CODE.
7046
7047 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7048
7049         Thanks to Ben Wing and Michael Sperber.
7050
7051         * eval.c (Fcommand_execute):
7052         (Feval):
7053         (Ffuncall):
7054         (Fmacroexpand_internal):
7055         (function_argcount):
7056         callint.c (Fcall_interactively):
7057         Add comment about do_autoload GCPROs own args.
7058
7059         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7060
7061         * eval.c (Ffuncall): Extra braces to placate GCC.
7062
7063 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7064
7065         * backtrace.h (grow_specpdl):
7066         (SPECPDL_RESERVE):
7067         * EmacsFrame.c (EmacsFrameSetValues):
7068         * eval.c (grow_specpdl):
7069         * ExternalShell.c (hack_event_masks_1):
7070         * glyphs-x.c (convert_EImage_to_XImage): 
7071         (x_finalize_image_instance):
7072         * ralloc.c (page_size):
7073         (r_alloc_sbrk):
7074         * xgccache.c (gc_cache_hash):
7075         Fix unsigned comparison warnings.
7076
7077 2002-07-29  Jerry James  <james@xemacs.org>
7078
7079         * lread.c (locate_file): Any nonnegative return value indicates
7080         success if MODE is nonnegative.
7081
7082 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7083
7084         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7085         argument. 
7086
7087 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7088
7089         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7090
7091         * dumper.c (pdump_get_indirect_count):
7092         (pdump_scan_by_alignment):
7093         (pdump_dump_root_struct_ptrs):
7094         (pdump_dump_rtables):
7095         (pdump_dump_root_objects):
7096         (pdump):
7097         * nas.c (WaveOpenDataForReading):
7098         * fns.c (print_bit_vector):
7099         * font-lock.c (SINGLE_SYNTAX_STYLE):
7100         * glyphs.c (check_for_ignored_expose):
7101         (find_matching_subwindow):
7102         * glyphs-eimage.c:
7103         * imgproc.c (get_histogram):
7104         * redisplay.c (point_in_line_start_cache):
7105         * redisplay-output.c (redisplay_unmap_subwindows):
7106         * symbols.c (defsymbol_massage_name_1):
7107         (defkeyword_massage_name):
7108         (deferror_massage_name_and_message):
7109         * redisplay-x.c (x_output_string): 
7110         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7111         * frame.h (struct frame):
7112         * filelock.c (current_lock_owner):
7113         * doprnt.c (emacs_doprnt_1):
7114         * lisp.h (struct Lisp_Bit_Vector):
7115         (DO_REALLOC):
7116         Fix warnings.
7117
7118 2002-02-13  Ben Wing  <ben@xemacs.org>
7119
7120         * event-stream.c (reset_key_echo):
7121         * event-stream.c (reset_this_command_keys):
7122         * event-stream.c (execute_command_event):
7123         If console is dead as a result of C-x 5 0, then post-command stuff
7124         needs to be careful and do only non-console-specific stuff.
7125
7126 2002-07-01  Mike Sperber <mike@xemacs.org>
7127
7128         * process-unix.c (unix_send_process): Mark coding_outstream as
7129         non-open upon SIGPIPE.
7130
7131         * event-stream.c (Fnext_event): Reorder switch cases to something
7132         that makes sense.
7133
7134 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7135
7136         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7137         Don't bogusly reinitialize ascii_character property.
7138
7139 2002-07-08  Mike Sperber <mike@xemacs.org>
7140
7141         * process.c (Fstart_process_internal): Do error checking before we
7142         fork off the child, so the child can't muck with the state of the
7143         parent.
7144
7145 2002-07-08  Mike Sperber <mike@xemacs.org>
7146
7147         * ralloc.c (init_ralloc): Allocate properly for pdump.
7148
7149 2002-06-12  Andy Piper  <andy@xemacs.org>
7150
7151         * glyphs.c (query_string_geometry): check the string.
7152
7153         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7154         widget names.
7155
7156 2002-06-17  Jerry James  <james@xemacs.org>
7157
7158         * sysdll.c: Remove RTLD_GLOBAL initialization.
7159         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7160
7161 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7162
7163         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7164
7165 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7166
7167         * sysdep.c (sys_rename): Make sys_rename work for the case where
7168         Windows rename sets errno to EACCES if target file exists.
7169
7170 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7171
7172         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7173         Fix detection of metric units to work on Win95
7174
7175 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7176
7177         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7178
7179 2002-04-25  Andy Piper  <andy@xemacs.org>
7180
7181         * redisplay.c (create_text_block): Remove extra comment trailer.
7182
7183 2002-04-24  Andy Piper  <andy@xemacs.org>
7184
7185         * redisplay.c (create_text_block): Don't actually add propagation
7186         data if the line ends after we have added a glyph.
7187
7188 2002-04-22  Andy Piper  <andy@xemacs.org>
7189
7190         * extents.c (extent_fragment_update): check for glyphs we have
7191         previously displayed.
7192         * extents.c (print_extent_1): warning removal.
7193         * extents.h: change prototype.
7194         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7195         widths correctly for wide glyphs.
7196         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7197         * redisplay.c (prop_type): add PROP_GLYPH.
7198         * redisplay.c (struct prop_block): add glyph type
7199         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7200         to the propagation data.
7201         * redisplay.c (create_text_block): if there is a glyph in the
7202         propagation data use it to salt extent_fragment_update.
7203         * redisplay.c (create_string_text_block): ditto.
7204
7205 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7206
7207         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7208         * redisplay-output.c (compare_runes): Compare them.
7209         * redisplay.c: Update copyright date.
7210         * redisplay.c (pos_data): Add need_baseline_computation field.
7211         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7212         need_baseline_computation; zero yoffset. Set max_pixmap_height
7213         for all pixmaps, not just automatically positioned ones.
7214         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7215         * redisplay.c (calculate_baseline): New, compute textual baseline.
7216         * redisplay.c (add_glyph_rune): Call them.
7217         * redisplay.c (create_text_block): Likewise.
7218         * redisplay.c (create_overlay_glyph_block): Likewise.
7219         * redisplay.c (add_margin_runes): Likewise.
7220         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7221
7222         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7223         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7224         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7225         * redisplay-msw.c (mswindows_output_string): Likewise.
7226         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7227         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7228         * redisplay-x.c (x_output_display_block): Likewise.
7229
7230 2002-03-28  Ben Wing  <ben@xemacs.org>
7231
7232         * redisplay.c: Fixed bug in redisplay
7233         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7234         and down of the lines, since they're bigger than the line
7235         size. (It was seen most obviously when there's a horizontal scroll
7236         bar, e.g. do C-h a glyph or something like that.) The problem was
7237         that the glyph-contrib-p setting on glyphs was ignored even if it
7238         was set properly, which it wasn't until now.
7239
7240 2002-04-24  Andy Piper  <andy@xemacs.org>
7241
7242         * lisp.h (Dynarr_end): Fix definition.
7243
7244 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7245
7246         * redisplay.c (mark_redisplay): Remove call to
7247         update_frame_window_mirror.
7248
7249 2001-11-15  Andy Piper  <andy@xemacs.org>
7250
7251         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7252         cygwin (again).
7253
7254 2002-02-13  Andy Piper  <andy@xemacs.org>
7255
7256         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7257         we did in fact enqueue the XM_MAPFRAME event.
7258
7259 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7260
7261         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7262         to fix problem switching between virtual desktops under virtuawin
7263         virtual window manager.
7264
7265 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7266
7267         * event-msw.c: Typo fix.
7268         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7269         magic XM_MAPFRAME event has been sent.
7270
7271 2001-11-23  Andy Piper  <andy@xemacs.org>
7272
7273         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7274
7275 2001-11-21  Andy Piper  <andy@xemacs.org>
7276
7277         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7278         mouse events outside the frame.
7279
7280 2002-03-20  Andy Piper  <andy@xemacs.org>
7281
7282         * menubar-msw.c (mswindows_popup_menu): warning removal.
7283         * dialog-msw.c (dialog_popped_down): ditto.
7284
7285 2001-12-11  Andy Piper  <andy@xemacs.org>
7286
7287         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7288         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7289         popup_up_p.
7290         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7291         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7292         * menubar-msw.c (mswindows_popup_menu): ditto.
7293
7294 2001-10-29  Andy Piper  <andy@xemacs.org>
7295
7296         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7297         cancels.
7298
7299 2002-01-03  Andy Piper  <andy@xemacs.org>
7300
7301         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7302         letters.
7303         (xrealpath): ditto.
7304
7305 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7306
7307         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7308         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7309         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7310         Detect and handle case where machine is set up for metric units
7311
7312 2002-04-02  Andy Piper  <andy@xemacs.org>
7313
7314         * dired-msw.c (mswindows_get_files): 
7315         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7316         completely handled by XEmacs. Suggested by Thomas Vogler
7317         <mail@thomas-vogler.de>.
7318
7319 2001-11-14  Andy Piper  <andy@xemacs.org>
7320
7321         * nt.c (REG_ROOT): change registry key to XEmacs.
7322
7323 2002-04-27  Andy Piper  <andy@xemacs.org>
7324
7325         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7326
7327 2002-04-26  Andy Piper  <andy@xemacs.org>
7328
7329         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7330         behavior.
7331
7332 2002-03-14  Mike Alexander  <mta@arbortext.com>
7333
7334         * event-msw.c (mswindows_unwait_process): New, remove process from
7335         wait list
7336         * process-nt.c (nt_finalize_process_data): Call
7337         mswindows_unwait_process
7338         * console-msw.h: Declare mswindows_unwait_process
7339
7340 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7341
7342         * editfns.c (Fdecode_time):
7343         (Fformat_time_string):
7344         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7345         (make_time): Warning elimination (change arg name).
7346
7347 2001-11-24  Andy Piper  <andy@xemacs.org>
7348
7349         * window.c (Fsplit_window): Doc return type.
7350
7351 2002-04-01  Andy Piper  <andy@xemacs.org>
7352
7353         * emacs.c (Fkill_emacs): Only output message box in interactive
7354         mode.
7355
7356 2002-04-26  Andy Piper  <andy@xemacs.org>
7357  
7358         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7359         cygwin.
7360
7361 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7362
7363         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7364         bit platform.
7365
7366 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7367
7368         * XEmacs 21.4.8 "Honest Recruiter" is released.
7369
7370 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7371
7372         Supersedes 2002-04-17 patch.
7373
7374         * process.h (PROCESS_LIVE_P): Use the process status as
7375         evidence of health, not the state of the input stream.
7376         (PROCESS_READABLE_P): Say if the process is readable
7377         from. (It may be dead nonetheless.)
7378         (CHECK_READABLE_PROCESS): Test for that condition.
7379
7380         * process.c (create_process): Use PROCESS_READABLE_P.
7381         (read_process_output, set_process_filter): Likewise.
7382
7383         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7384         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7385
7386         This code is #if 0'd, this is not the time to add new functions:
7387
7388         * process.c (Fprocess_readable_p): Report readability status.
7389         * process.c (Qprocess_readable_p): New, associated symbol...
7390         * process.c (syms_of_process): ... initialize it.
7391
7392 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7393
7394         * XEmacs 21.4.7 "Economic Science" is released.
7395
7396 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7397
7398         * process.h (PROCESS_LIVE_P): Use the process status as
7399         evidence of health, not the state of the input stream.
7400
7401 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7402
7403         * sysdep.c (sys_siglist): change "signum" to "signal"
7404
7405 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7406
7407         * s/darwin.h: New file.
7408         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7409         
7410 2002-04-23  Andreas Jaeger  <aj@suse.de>
7411
7412         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7413         which use lib64 for 64-bit libs.
7414         (START_FILES): Likewise.
7415
7416 2002-02-11  Mike Sperber  <mike@xemacs.org>
7417
7418         * device-x.c: 
7419         (x_IO_error_handler):
7420         (x_init_device): Temporarily keep device in static variable
7421         `device_being_initialized' so we can recover gracefully from
7422         internal XOpenDevice failure.  (XOpenDevice is documented to
7423         return NULL on failure, but sometimes calls the IO error handler
7424         instead.)
7425
7426 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7427
7428         * dired.c (Ffile_name_all_completions): Change documentation --
7429         remove reference to completion-ignored-extensions.
7430         * dired.c (vars_of_dired): Change documentation for
7431         completion-ignored-extensions -- remove reference to
7432         file-name-all-completions.
7433
7434 2002-03-06  Jerry James  <james@xemacs.org>
7435
7436         * emodules.c (emodules_load): Fix multiple loading of same module.
7437
7438 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7439         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7440         RTLD_LAZY to avoid incorrect symbol binding when using nested
7441         shared libraries on Solaris.
7442
7443 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7444
7445         * fileio.c (Ffind_file_name_handler): Improve docstring.
7446
7447 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7448
7449         * fns.c (Fmapconcat): Improve docstring.
7450
7451 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7452
7453         * device-gtk.c: Add prototype for
7454         emacs_gtk_selection_clear_event_handle.
7455         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7456         selection.  Setup signal handler for "selection_clear_event"
7457         (emacs_gtk_selection_clear_event_handle).
7458
7459         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7460         other applications owning the clipboard (based on
7461         x_handle_selection_clear).
7462
7463 2001-12-23  William M. Perry  <wmperry@gnu.org>
7464
7465         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7466         
7467 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7468
7469         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7470
7471 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7472
7473         * XEmacs 21.4.6 "Common Lisp" is released.
7474
7475 2001-12-16  Torsten Duwe  <duwe@caldera.de>
7476
7477         * search.c (Freplace_match): Add missing sub-expression functionality.
7478
7479         * buffer.c (decode_buffer): Add a check for pointer type to
7480         decode_buffer, before gcc's CSE optimization reorders a
7481         dereference in front of the allow_string test.
7482
7483 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
7484
7485         * window.c (window_loop): Fix bug that sometimes prevented
7486         window_loop() from iterating across multiple devices.  Also, at
7487         Ben's request, changed infloop-detecting code to abort() instead
7488         of silently terminating window_loop().
7489
7490 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
7491
7492         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
7493         * editfns.c (make_time): New function.
7494         (Fencode_time): Use it instead of wasteful_word_to_lisp.
7495         * lisp.h (make_time): Prototype and comment it.
7496         * dired.c (wasteful_word_to_lisp): Deprecate.
7497         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
7498
7499 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
7500
7501         * fileio.c (auto_save_1): Use current coding system, not
7502         escape-quoted.
7503
7504 2001-11-13  Ben Wing  <ben@xemacs.org>
7505
7506         * window.c:
7507         * window.c (window_truncation_on):
7508         * window.c (syms_of_window):
7509         truncate-partial-width-windows should respect the buffer being
7510         displayed, like other redisplay vars.
7511
7512 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
7513
7514         * event-stream.c (Fread_key_sequence): save current buffer.
7515
7516 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7517
7518         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
7519
7520 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7521
7522         * alloc.c (lcrecord_stats): Add space for types defined in modules.
7523
7524 2001-10-26  Mike Alexander  <mta@arbortext.com>
7525
7526         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
7527
7528 2001-10-25  Andy Piper  <andy@xemacs.org>
7529
7530         * ChangeLog:
7531         * dialog-msw.c (handle_directory_proc): new function.
7532          (handle_directory_dialog_box): new fucntion.
7533          (handle_file_dialog_box): use new directory dialog support.
7534          (mswindows_make_dialog_box_internal): ditto.
7535         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
7536         handling.
7537         (mswindows_find_frame): make global.
7538         * fileio.c (Fexpand_file_name): build fix.
7539         * general-slots.h: add Qdirectory.
7540         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
7541         handling.
7542         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
7543         cygwin not leaving win32 paths unchanged.
7544         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
7545         cygwin runtime to do path conversion.
7546         (Fmswindows_shell_execute): fix cygwin handling of URLs.
7547         (syms_of_win32): add new function.
7548         * window.c (window_loop): build fix.
7549
7550 2001-10-15  Andy Piper  <andy@xemacs.org>
7551
7552         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
7553
7554 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
7555
7556         * XEmacs 21.4.5 "Civil Service" is released.
7557
7558 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
7559
7560         * glyphs-x.c: Force buffer-tab highlight update when moving the
7561         buffer, avoiding an ugly black border, used for keyboard focus
7562         indication, on a widget that can never have keyboard focus, the
7563         buffer tab.
7564
7565 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
7566
7567         * process-unix.c (unix_open_multicast_group): Remove too much
7568         conversion between host and network byte order.
7569
7570 2001-09-10  Nix  <nix@esperi.demon.co.uk>
7571
7572         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
7573         before replacing them.
7574
7575         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
7576         operation.
7577
7578         * src/window.c (undedicate_windows): Use it.
7579         * src/window.h: Add prototype.
7580
7581 2001-09-17  Ben Wing  <ben@xemacs.org>
7582
7583         * fileio.c (normalize_filename):
7584         * fileio.c (Fexpand_file_name):
7585         Fix various C++ compile errors in Andy's recent code.
7586         
7587         * callint.c (Fcall_interactively):
7588         * editfns.c (Ftemp_directory):
7589         * editfns.c (Fuser_full_name):
7590         * emacs.c (argmatch):
7591         * lread.c (locate_file_map_suffixes):
7592         * redisplay-x.c (x_ring_bell):
7593         Fix sign-compare warnings.
7594         
7595 2001-09-08  Andy Piper  <andy@xemacs.org>
7596
7597         * fileio.c (normalize_filename): copied from nt.c
7598         * (Ffile_name_directory): enable win32 paths under cygwin.
7599         * (Ffile_name_nondirectory): ditto.
7600         * (directory_file_name): ditto.
7601         * (Fexpand_file_name): ditto.
7602         * (Ffile_truename): ditto.
7603         * (Fsubstitute_in_file_name): ditto.
7604         * (Ffile_name_absolute_p): ditto.
7605         * (Ffile_readable_p): ditto.
7606
7607 2001-09-08  Andy Piper  <andy@xemacs.org>
7608
7609         * device-msw.c (mswindows_finish_init_device): remove dde
7610         initialization.
7611         * device-msw.c (mswindows_init_dde): factor out from
7612         mswindows_finish_init_device()
7613         * device-msw.c (init_mswindows_very_early): new function
7614         initialize but don't enable dde.
7615         * emacs.c (main_1): call init_mswindows_very_early.
7616         * event-msw.c:
7617         * event-msw.c (mswindows_dde_callback): only execute when we are
7618         ready.
7619         * symsinit.h: declare init_mswindows_very_early.
7620
7621 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7622
7623         [sjt: This has been in 21.5 for months with no complaints.]
7624
7625         * console.h (struct console_methods): Added flags member.
7626         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
7627         (CONMETH_IMPL_FLAG):
7628         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
7629         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7630
7631         * device.c (window_system_pixelated_geometry): Use the above macros.
7632
7633         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
7634         implememntation flag.
7635         * device.h (DEVICE_DISPLAY_P): Use it.
7636
7637         * frame.c (delete_frame_internal): Use the above macro.
7638
7639         * redisplay.c (redisplay_device): Use it.
7640         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7641         (redisplay_frame): Ditto.
7642
7643         * device-msw.c (mswindows_device_implementation_flags): Removed.
7644         (msprinter_device_implementation_flags): Removed.
7645         (console_type_create_device_mswindows): Removed references to
7646         implementation_flags methods, set implementation flags here.
7647         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
7648
7649         * device-gtk.c (gtk_device_implementation_flags): Removed method.
7650         (console_type_create_device_gtk): Removed method declaration.
7651         Added commented out statement which semantically matches the
7652         commented out statement in the above removed method.
7653
7654 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
7655
7656         The attached patch fixes a few warnings. 
7657
7658         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
7659         * src/frame-gtk.c: guard against GNOME calls in GTK only
7660         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
7661         * src/select-gtk.c: prototype lisp_to_time
7662
7663 2001-06-08  Ben Wing  <ben@xemacs.org>
7664
7665         ------ gc-in-window-procedure fixes ------
7666         
7667         * alloc.c:
7668         * alloc.c (struct post_gc_action):
7669         * alloc.c (register_post_gc_action):
7670         * alloc.c (run_post_gc_actions):
7671         * alloc.c (garbage_collect_1):
7672         Create "post-gc actions", to avoid those dreaded "GC during window
7673         procedure" problems.
7674
7675         * event-msw.c:
7676         Abort, clean and simple, when GC in window procedure.  We want
7677         to flush these puppies out.
7678
7679         * glyphs-msw.c:
7680         * glyphs-msw.c (finalize_destroy_window):
7681         * glyphs-msw.c (mswindows_finalize_image_instance):
7682         Use a post-gc action when destroying subwindows.
7683
7684         * lisp.h:
7685         Declare register_post_gc_action().
7686
7687         * scrollbar-msw.c:
7688         * scrollbar-msw.c (unshow_that_mofo):
7689         Use a post-gc action when unshowing scrollbar windows, if in gc.
7690
7691         * redisplay.c (mark_redisplay):
7692         Add comment about the utter evilness of what's going down here.
7693
7694         ------ cygwin setitimer fixes ------
7695         
7696         * Makefile.in.in (sheap_objs):
7697         * Makefile.in.in (profile_objs):
7698         * Makefile.in.in (objs):
7699         Compile profile.c only when HAVE_SETITIMER.
7700         
7701         * nt.c (mswindows_sigset):
7702         * nt.c (mswindows_sighold):
7703         * nt.c (mswindows_sigrelse):
7704         * nt.c (mswindows_sigpause):
7705         * nt.c (mswindows_raise):
7706         * nt.c (close_file_data):
7707         Style fixes.
7708         
7709         * nt.c:
7710         Move setitimer() emulation to win32.c, because Cygwin needs it too.
7711         
7712         * profile.c:
7713         * profile.c (Fstart_profiling):
7714         * profile.c (Fstop_profiling):
7715         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
7716         instead of just plain setitimer().
7717         
7718         * signal.c:
7719         * signal.c (set_one_shot_timer):
7720         * signal.c (alarm):
7721         Define qxe_setitimer() as an encapsulation around setitimer() --
7722         call setitimer() directly unless Cygwin or MS Win, in which case
7723         we use our simulated version in win32.c.
7724         
7725         * systime.h:
7726         * systime.h (struct itimerval):
7727         * systime.h (ITIMER_REAL):
7728         Prototype mswindows_setitimer() and qxe_setitimer().  Long
7729         comment about "qxe" and the policy regarding encapsulation.
7730
7731         * win32.c:
7732         * win32.c (setitimer_helper_proc):
7733         * win32.c (setitimer_helper_period):
7734         * win32.c (setitimer_helper):
7735         * win32.c (mswindows_setitimer):
7736         Move setitimer() emulation here, so Cygwin can use it.
7737         Rename a couple of functions and variables to be longer and more
7738         descriptive.  In setitimer_helper_proc(), send the signal
7739         using either mswindows_raise() or (on Cygwin) kill().  If for
7740         some reason we are still getting lockups, we'll change the kill()
7741         to directly invoke the signal handlers.
7742
7743         ------ windows shell fixes ------
7744         
7745         * callproc.c:
7746         * ntproc.c:
7747         Comments about how these two files must die.
7748
7749         * callproc.c (init_callproc):
7750         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
7751         not just COMSPEC. (more correct and closer to FSF.) Don't
7752         force a value for SHELL into the environment. (Comments added
7753         to explain why not.)
7754         
7755         * nt.c (init_user_info):
7756         Don't shove a fabricated SHELL into the environment.  See above.
7757
7758 2001-06-01  Ben Wing  <ben@xemacs.org>
7759
7760         * Makefile.in.in (ldflags):
7761         eliminate that pesky "defaulting to 00401000" warning.
7762         * nt.h:
7763         eliminate warnings.
7764
7765 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
7766
7767         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
7768         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
7769
7770 2001-04-24  Jerry James <james@xemacs.org>
7771
7772         * faces.h: pass parameters to Fadd_spec_to_specifier in the
7773         correct order.
7774
7775 2001-06-01  Ben Wing  <ben@xemacs.org>
7776
7777         * event-msw.c (debug_mswin_messages):
7778         conditionalize the messages that were causing compile errors.
7779         (if only macros could generate #ifdef statements ...)
7780
7781 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
7782
7783         * XEmacs 21.4.4 "Artificial Intelligence" is released.
7784
7785 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7786
7787         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
7788
7789 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7790
7791         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
7792         * process-unix.c (unix_canonicalize_host_name):
7793         sysdep.c (init_system_name):
7794         Use it to conditionally support IPv6 canonicalization.
7795
7796 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
7797
7798         * event-msw.c:
7799         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
7800
7801 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
7802
7803         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
7804         attempt is made to scroll when no scroll bar is available.
7805
7806 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7807
7808         * input-method-motif.c (XIM_delete_frame): New callback.
7809         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
7810         got deleted from 21.4.3.)
7811
7812 2001-06-01  Ben Wing  <ben@xemacs.org>
7813
7814         * nt.c (mswindows_utime):
7815         * nt.c (close_file_data):
7816         fix off-by-one-indirection error.
7817
7818 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
7819
7820         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
7821         because set_file_times() now takes Lisp_Object path, instead of
7822         char*.
7823         * nt.c: Include buffer.h.
7824         * nt.c (convert_from_time_t): New.
7825         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
7826         not set mtime correctly.
7827         * nt.h: Declare mswindows_utime().
7828         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
7829         path, instead of char*.
7830         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
7831
7832 2001-05-30  Ben Wing  <ben@xemacs.org>
7833
7834         For 21.4:
7835
7836         (Stephen, just take all event-msw.c patches.  This includes
7837         the "iconify" fix below.)
7838
7839         * event-msw.c:
7840         * event-msw.c (mswindows_dequeue_dispatch_event):
7841         * event-msw.c (assert):
7842         * event-msw.c (emacs_mswindows_quit_p):
7843         * event-msw.c (debug_mswin_messages):
7844         * event-msw.c (debug_output_mswin_message):
7845         * event-msw.c (vars_of_event_mswindows):
7846         Fix yet more problems with C-g handling.
7847         Implement debug-mswindows-events.
7848         
7849 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7850
7851         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
7852         
7853 2001-05-23  Ben Wing  <ben@xemacs.org>
7854
7855         * event-msw.c (winsock_writer):
7856         * event-msw.c (winsock_closer):
7857         prior kludgy code was clobbering the buffer, thinking it was
7858         "unused" space to store an unneeded return value; instead, use
7859         the variable we've already got staring us in the face.
7860
7861 2001-05-17  Andy Piper  <andy@xemacs.org>
7862
7863         * sysfile.h: don't assume that file attributes are boolean
7864
7865 2001-05-23  Ben Wing  <ben@xemacs.org>
7866
7867         * device-msw.c (msprinter_init_device):
7868         signal an error rather than crash with an unavailable network
7869         printer (from Mike Alexander).
7870         
7871         * event-msw.c:
7872         * event-msw.c (struct winsock_stream):
7873         * event-msw.c (winsock_writer):
7874         * event-msw.c (winsock_closer):
7875         * event-msw.c (make_winsock_stream_1):
7876         cleanup headers.  fix (hopefully) an error with data corruption
7877         when sending to a network connection.
7878
7879         * fileio.c (Fexpand_file_name): Fix evil code that attempts
7880         to handle the ~user prefix by (a) always assuming we're referencing
7881         ourselves and not even verifying the user -- hence any file with
7882         a tilde as its first char is invalid! (b) if there wasn't a slash
7883         following the filename, the pointer was set *past* the end of
7884         file and we started reading from uninitialized memory.  Now we
7885         simply treat these as files, always.
7886
7887         * buffer.c (common_init_complex_vars_of_buffer): comment change.
7888         
7889 2001-05-19  Ben Wing  <ben@xemacs.org>
7890
7891         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
7892
7893         * process-nt.c:
7894         * process-nt.c (vars_of_process_nt):
7895         remove unused mswindows-quote-process-args.  rec for 21.4.
7896         
7897 2001-05-12  Ben Wing  <ben@xemacs.org>
7898
7899         * event-msw.c (mswindows_dde_callback):
7900         * event-msw.c (mswindows_wnd_proc):
7901         eliminate cygwin warnings.
7902
7903 2001-05-06  Ben Wing  <ben@xemacs.org>
7904
7905         * console-msw.h:
7906         * device-msw.c:
7907         * device-msw.c (print_dialog_worker):
7908         * device-msw.c (mswindows_handle_print_dialog_box):
7909         * device-msw.c (syms_of_device_mswindows):
7910         * dialog-msw.c (mswindows_make_dialog_box_internal):
7911         * general-slots.h:
7912         implement printing the selection when it's selected.
7913
7914 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
7915
7916         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
7917
7918 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7919
7920         * lisp.h (EMACS_INT_MAX): This should be one bit less since
7921         EMACS_INT is signed.
7922
7923 2001-04-15  Michael Lausch  <mla@1012surf.net>
7924
7925         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
7926         gtk_widget_request_size() to give scrollbar >0 width for
7927         GTK >1.2.8.
7928
7929 2001-05-30  William M. Perry  <wmperry@gnu.org>
7930
7931         * event-gtk.c: Check for buttons as modifier keys.
7932
7933 2001-05-25  Craig Lanning  <CraigL@Knology.net>
7934
7935         * s\mingw32.h:
7936         Properly find MinGW's <process.h> inside Cygwin's restructured
7937         include directories.  Don't try to include <cygwin/version.h>
7938         since we are dropping support for MinGW in versions of Cygwin
7939         earlier than b21.
7940         * nt.c:
7941         Drop support for MinGW in versions of Cygwin before b21.
7942         * sysdep.c:
7943         Properly find MinGW's <process.h> inside Cygwin's restructured
7944         include directories.
7945         * syswindows.h:
7946         Drop support for MinGW in versions of Cygwin before b21.
7947         * unexcw.c:
7948         Even though a.out.h is no longer detected by configure, allow
7949         MinGW to use it until we figure out how to do the job with Win32.
7950
7951 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
7952
7953         * syntax.c (find_start_of_comment):
7954         Fix `unbalanced parentheses' bug when dealing with mixed comment
7955         styles in c++/java/etc. mode
7956
7957 2001-05-29  Mike Alexander  <mta@arbortext.com>
7958
7959         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7960         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7961
7962 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
7963
7964         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7965
7966 2001-03-31  Mike Sperber <mike@xemacs.org>
7967
7968         * search.c (Freplace_match): Support FSF-style specification of
7969         match subexpression when applied to a buffer.
7970
7971 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7972
7973         * event-stream.c (is_scrollbar_event): add missing semicolon
7974
7975 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7976
7977         * Makefile.in.in: Use TAR macro instead of hardcoding
7978           tar.  Allows use of GNU tar instead of system tar
7979
7980 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7981
7982         * event-stream.c (is_scrollbar_event): add missing semicolon
7983
7984 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7985
7986         * XEmacs 21.4.3 "Academic Rigor" is released.
7987
7988 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7989
7990         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7991
7992 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7993
7994         * buffer.c (Vcase_fold_search): Remove obsolete
7995           comment about non ASCII case-fold-search.  This
7996           bug has been fixed by case-table changes.
7997
7998 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
7999
8000         * event-msw.c: Restore include of events-mod.h.
8001
8002 2001-04-22   zhaoway  <zw@debian.org>
8003
8004         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8005         !HAVE_SCROLLBARS.
8006
8007 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8008
8009         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8010
8011 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8012
8013         * mule-charset.c (Fmake_charset): Add missing else.
8014
8015 2001-04-23  Ben Wing  <ben@xemacs.org>
8016
8017         * event-msw.c (FAKE_MOD_QUIT):
8018         * event-msw.c (mswindows_dequeue_dispatch_event):
8019         * event-msw.c (mswindows_wnd_proc):
8020         * event-msw.c (emacs_mswindows_quit_p):
8021         Get critical quit working.
8022
8023 2001-05-05  Ben Wing  <ben@xemacs.org>
8024
8025         * console-msw.h:
8026         * device-msw.c:
8027         * device-msw.c (mswindows_get_default_margin):
8028         * frame-msw.c (mswindows_size_frame_internal):
8029         * frame-msw.c (msprinter_init_frame_1):
8030         * frame-msw.c (vars_of_frame_mswindows):
8031         Change top/bottom margin defaults to 0.5 inches.
8032
8033 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8034
8035         Fix link error with gcc 3.0 on Linux.
8036         * terminfo.c (UP): Remove.
8037         * terminfo.c (BC): Remove.
8038         * terminfo.c (PC): Remove.
8039         They weren't used, and in any case, these symbols should be
8040         defined in the *library*.
8041
8042 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8043
8044         * s/aix4.h: Fix crash with xlc -O3.
8045         Improve comment explaining how -O3 works.
8046
8047 2001-04-15  Ben Wing  <ben@xemacs.org>
8048
8049         * event-stream.c:
8050         * event-stream.c (Fnext_event):
8051         * event-stream.c (is_scrollbar_event):
8052         * event-stream.c (execute_command_event):
8053         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8054         crash' problem.  His fix introduces other problems.  We filter
8055         out scrollbar events specifically, making them somewhat invisible
8056         to command-building, and not appearing in `this-command-keys'.
8057         More work is still needed (see comments in event-stream.c), but
8058         this fixes all the major problems.
8059
8060 2001-04-20  Ben Wing  <ben@xemacs.org>
8061
8062         * .cvsignore: Added stuff for Windows.
8063
8064 2001-04-28  Ben Wing  <ben@xemacs.org>
8065
8066         * buffer.c (Ferase_buffer):
8067         * editfns.c (buffer_insert1):
8068         * editfns.c (Finsert_before_markers):
8069         * editfns.c (Finsert_string):
8070         * editfns.c (Finsert_char):
8071         * editfns.c (Fdelete_region):
8072         * editfns.c (Fwiden):
8073         * editfns.c (Fnarrow_to_region):
8074         remove bogus lines setting zmacs_region_stays to 0.
8075         
8076 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8077
8078         * process-unix.c (unix_open_network_stream): If connect() fails
8079         invalidate file descriptor after closing it.
8080
8081 2001-03-08  Mike Alexander  <mta@arbortext.com>
8082
8083         * event-msw.c (mswindows_need_event_in_modal_loop):
8084         Don't dispatch a message if we didn't get one.
8085         (mswindows_need_event):
8086         Terminate the correct process when one exits instead of the first
8087         one on Vprocess_list and look for process termination when in
8088         mswindows_protect_modal_loop.
8089
8090 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8091
8092         * XEmacs 21.4.1 "Copyleft" is released.
8093
8094 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8095
8096         * input-method-motif.c (XIM_delete_frame): New callback.
8097         (XIM_init_frame): Register it.
8098
8099 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8100
8101         * XEmacs 21.4.0 "Solid Vapor" is released.
8102
8103 2001-04-15  Ben Wing  <ben@xemacs.org>
8104
8105         * cmdloop.c (call_command_loop):
8106         Fix braino in bit-rotting code.
8107         
8108 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8109
8110         * extents.c (Fset_extent_endpoints): Force creation of extent info
8111         in buffer_or_string.
8112
8113         * extents.c (process_extents_for_insertion_mapper): Correctly
8114         check for open-open zero-length extents.
8115
8116 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8117
8118         * lisp.h: New typedefs Memory_count, Element_count.
8119         * regex.c:
8120         * regex.h:
8121         Sign-compare warning elimination: several unsigned -> signed.
8122         Based on work by Ben Wing <ben@xemacs.org>.
8123
8124 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8125
8126         * XEmacs 21.2.47 "Zephir" is released.
8127
8128 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8129
8130         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8131
8132 2001-04-03  Mike Sperber <mike@xemacs.org>
8133
8134         * search.c: Revert previous patch due because of release.
8135
8136 2001-03-30  Ben Wing  <ben@xemacs.org>
8137
8138         * s\cygwin32.h:
8139         Add missing killpg prototype.
8140
8141         * elhash.c:
8142         Add a comment about fixing problems when a new entry is added
8143         while mapping.
8144
8145         * frame-msw.c (mswindows_init_frame_1):
8146         Fix compile warnings.
8147
8148         * menubar.c (vars_of_menubar):
8149         Provide `menu-accelerator-support' to indicate that we properly
8150         support %_ in menu specifications, so that package code can
8151         conditionalize on this (and remove %_ from menu specifications
8152         on older versions).
8153
8154         * event-msw.c:
8155         * scrollbar-msw.c:
8156         * scrollbar-msw.c (can_scroll):
8157         * scrollbar-msw.h:
8158         Fix handling of mouse wheel under Windows to follow standards --
8159         now scrolls window under pointer, not selected window.
8160
8161 2001-03-31  Mike Sperber <mike@xemacs.org>
8162
8163         * search.c (Freplace_match): Support FSF-style specification of
8164         match subexpression when applied to a buffer.
8165
8166 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8167
8168         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8169         function to modify KEYMAP, so map over a copy of the hash table.
8170
8171 2001-03-21  Martin Buchholz <martin@xemacs.org>
8172
8173         * XEmacs 21.2.46 "Urania" is released.
8174
8175 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8176
8177         * realpath.c (xrealpath): Make file-truename work with symlinks to
8178         /cygdrive paths on cygwin. Always lowercase drive-letters on
8179         native windows.
8180         (cygwin_readlink): Don't try to find canonical filename unless
8181         file exists.
8182
8183 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8184
8185         * ChangeLog: Log GTK merge.
8186
8187         * dumper.c:
8188         * select-x.c:
8189         * specifier.c:
8190         * symeval.h:
8191         Revert gratuitous whitespace changes from GTK merge.
8192
8193         * emacs.c: Document end of complex #ifdef @ l. 1495.
8194
8195
8196 2001-03-12  Andy Piper  <andy@xemacs.org>
8197
8198         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8199         have to do likewise.
8200
8201 2001-03-12  Andy Piper  <andy@xemacs.org>
8202
8203         * sysdep.c: we only support mingw now.
8204
8205 2001-03-09  Andy Piper  <andy@xemacs.org>
8206
8207         * unexcw.c (copy_executable_and_dump_data_section): making approx
8208         overrun a warning only.
8209
8210 2001-03-10  William M. Perry  <wmperry@aventail.com>
8211
8212         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8213         satisfy Stephen's identical-after-cpp plea.
8214
8215 2001-03-02  Ben Wing  <ben@xemacs.org>
8216
8217         * cmds.c:
8218         * cmds.c (Fforward_char):
8219         * syntax.c:
8220         * window.c:
8221
8222         Augment documentation of the most common motion commands to make
8223         note of the shifted-motion support.
8224         
8225 2001-03-02  Ben Wing  <ben@xemacs.org>
8226
8227         * nt.c (mswindows_fstat):
8228         * nt.c (mswindows_stat):
8229         * search.c (boyer_moore):
8230         Fix compile warnings under Windows.
8231         
8232         * sysdep.c (sys_readdir):
8233         Fix buggy filename-conversion code under Mule.
8234
8235 2001-03-09  William M. Perry  <wmperry@aventail.com>
8236
8237         * Makefile.in.in:
8238         * config.h.in:
8239         * console.c:
8240         * console.h:
8241         * device.c:
8242         * device.h:
8243         * dragdrop.c:
8244         * emacs.c:
8245         * event-stream.c:
8246         * events.c:
8247         * events.h:
8248         * faces.c:
8249         * frame.h:
8250         * general-slots.h:
8251         * glyphs.c:
8252         * gutter.c:
8253         * inline.c:
8254         * lisp.h:
8255         * lrecord.h:
8256         * make-src-depend:
8257         * redisplay-output.c:
8258         * redisplay.c:
8259         * symsinit.h:
8260         * sysfile.h:
8261         * toolbar.c:
8262         * window.c:
8263         The Great GTK Merge.
8264
8265         * ChangeLog.GTK:
8266         * console-gtk.c:
8267         * console-gtk.h:
8268         * device-gtk.c:
8269         * emacs-marshals.c:
8270         * emacs-widget-accessors.c:
8271         * event-gtk.c:
8272         * frame-gtk.c:
8273         * gccache-gtk.c:
8274         * gccache-gtk.h:
8275         * glade.c:
8276         * glyphs-gtk.c:
8277         * glyphs-gtk.h:
8278         * gtk-glue.c:
8279         * gtk-xemacs.c:
8280         * gtk-xemacs.h:
8281         * gui-gtk.c:
8282         * gui-gtk.h:
8283         * menubar-gtk.c:
8284         * native-gtk-toolbar.c:
8285         * objects-gtk.c:
8286         * objects-gtk.h:
8287         * redisplay-gtk.c:
8288         * scrollbar-gtk.c:
8289         * scrollbar-gtk.h:
8290         * select-gtk.c:
8291         * toolbar-gtk.c:
8292         * ui-byhand.c:
8293         * ui-gtk.c:
8294         * ui-gtk.h:
8295         The Great GTK Merge: new files.
8296
8297 2001-02-26  Ben Wing  <ben@xemacs.org>
8298
8299         Reapplied Lstream change.
8300
8301 2001-02-26  Ben Wing  <ben@xemacs.org>
8302
8303         Undid the last change, since it is more controversial than I
8304         thought.  It should be back in at some point soon.
8305         
8306 2001-02-25  Ben Wing  <ben@xemacs.org>
8307
8308         * buffer.c:
8309         * callproc.c (Fold_call_process_internal):
8310         * event-msw.c (ntpipe_slurp_reader):
8311         * event-msw.c (ntpipe_shove_writer):
8312         * event-msw.c (winsock_reader):
8313         * event-msw.c (winsock_writer):
8314         * file-coding.c:
8315         * file-coding.c (detect_eol_type):
8316         * file-coding.c (detect_coding_type):
8317         * file-coding.c (determine_real_coding_system):
8318         * file-coding.c (Fdetect_coding_region):
8319         * file-coding.c (decoding_reader):
8320         * file-coding.c (decoding_writer):
8321         * file-coding.c (mule_decode):
8322         * file-coding.c (Fdecode_coding_region):
8323         * file-coding.c (encoding_reader):
8324         * file-coding.c (encoding_writer):
8325         * file-coding.c (mule_encode):
8326         * file-coding.c (Fencode_coding_region):
8327         * file-coding.c (detect_coding_sjis):
8328         * file-coding.c (decode_coding_sjis):
8329         * file-coding.c (encode_coding_sjis):
8330         * file-coding.c (detect_coding_big5):
8331         * file-coding.c (decode_coding_big5):
8332         * file-coding.c (encode_coding_big5):
8333         * file-coding.c (detect_coding_ucs4):
8334         * file-coding.c (decode_coding_ucs4):
8335         * file-coding.c (encode_coding_ucs4):
8336         * file-coding.c (detect_coding_utf8):
8337         * file-coding.c (decode_coding_utf8):
8338         * file-coding.c (encode_coding_utf8):
8339         * file-coding.c (detect_coding_iso2022):
8340         * file-coding.c (decode_coding_iso2022):
8341         * file-coding.c (encode_coding_iso2022):
8342         * file-coding.c (decode_coding_no_conversion):
8343         * file-coding.c (encode_coding_no_conversion):
8344         * glyphs-x.c (write_lisp_string_to_temp_file):
8345         * gpmevent.c (tty_get_foreign_selection):
8346         * lisp.h:
8347         * lstream.c:
8348         * lstream.c (Lstream_flush_out):
8349         * lstream.c (Lstream_adding):
8350         * lstream.c (Lstream_write_1):
8351         * lstream.c (Lstream_write):
8352         * lstream.c (Lstream_raw_read):
8353         * lstream.c (Lstream_read_more):
8354         * lstream.c (Lstream_read):
8355         * lstream.c (Lstream_unread):
8356         * lstream.c (Lstream_fputc):
8357         * lstream.c (stdio_reader):
8358         * lstream.c (stdio_writer):
8359         * lstream.c (filedesc_reader):
8360         * lstream.c (filedesc_writer):
8361         * lstream.c (lisp_string_reader):
8362         * lstream.c (struct fixed_buffer_stream):
8363         * lstream.c (make_fixed_buffer_input_stream):
8364         * lstream.c (make_fixed_buffer_output_stream):
8365         * lstream.c (fixed_buffer_reader):
8366         * lstream.c (fixed_buffer_writer):
8367         * lstream.c (struct resizing_buffer_stream):
8368         * lstream.c (resizing_buffer_writer):
8369         * lstream.c (dynarr_writer):
8370         * lstream.c (lisp_buffer_reader):
8371         * lstream.c (lisp_buffer_writer):
8372         * lstream.h:
8373         * lstream.h (lstream_implementation):
8374         * lstream.h (struct lstream):
8375         * md5.c (Fmd5):
8376         * process-nt.c (nt_send_process):
8377         * process-unix.c (unix_send_process):
8378         
8379         Correct Lstream lossage due to mixing of signed and unsigned
8380         quantities.  All Lstream uses of size_t and ssize_t are now a
8381         single signed data type Lstream_data_count.  This fixes problems
8382         under Windows with sending large quantities of data to a process,
8383         and may well fix other subtle bugs.
8384
8385 2001-02-23  Martin Buchholz <martin@xemacs.org>
8386
8387         * XEmacs 21.2.45 "Thelxepeia" is released.
8388
8389 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8390
8391         * lisp-union.h (XSETINT): 
8392         (XSETCHAR):
8393         (XSETOBJ): 
8394         Reverse previous change of 2001-02-06.
8395
8396 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8397
8398         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8399         buffers.
8400         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8401         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8402         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8403         * regex.c (POS_AS_IN_BUFFER): removed
8404         * regex.c (re_search_2):
8405         * regex.c (re_match_2):
8406         Don't use an offset of 1 when calculating buffer positions, since
8407         `BI_BUF_BEGV' does it already.
8408
8409 2001-02-18  Wim Dumon  <wim@easics.be>
8410
8411         * insdel.c (prepare_to_modify_buffer): Also check for
8412         supersession when clash-detection is enabled. 
8413
8414 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8415
8416         * regex.c (re_match_2_internal):
8417         Convert temp characters from 'const unsigned char' to 're_char'.
8418         Fix crashing bug with extended characters under mule.
8419         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8420         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8421         font-lock, pdump, and new syntax-table code.
8422         * syntax.c (find_start_of_comment):
8423         (find_end_of_comment):
8424         (forward-comment):
8425         Fix crashing bugs involving moving beyond end of buffer.
8426         * syntax.c (find_start_of_comment):
8427         Fixed logic to allow proper detection of cases where the same
8428         character is used to end both a two-char comment start and a
8429         two-char comment end sequence. Fixes `(forward-comment -1)'.
8430         * syntax.c (find_start_of_comment):
8431         Return position just past last comment-end character for all cases
8432         (previously was only done for two-char comment-end sequences).
8433         * syntax.c (forward-comment):
8434         Take value returned from `find_end_of_comment', rather than
8435         incrementing it.
8436         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8437         Properly deal with BUFFERP (syntax_cache.object)
8438
8439 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8440
8441         * alloc.c (Fgarbage_collect): 
8442         * alloc.c (make_bit_vector_from_byte_vector):
8443         -Wsign-compare-correctness.
8444
8445 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8446
8447         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8448         (XSETCHAR): Likewise.
8449         (XSETOBJ): Likewise.
8450
8451 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8452
8453         * mule-canna.c (canna-func-delete_previous): 
8454         Rename to canna-func-delete-previous.
8455
8456 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8457
8458         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8459
8460 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8461
8462         * font-lock.c (find_context): Fix C++ compile errors introduced by
8463         recent patch
8464
8465 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8466
8467         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8468         pragma, but earlier ones barf on the same pragma.
8469
8470 2001-02-06  Mike Sperber <mike@xemacs.org>
8471
8472         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8473         `configure-mule-lisp-directory'.
8474
8475 2001-02-12  Martin Buchholz  <martin@xemacs.org>
8476
8477         Make sure dump-id.c is compiled in the same way as other .c's.
8478         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
8479         * dump-id.h: Remove.
8480         * emacs.c: Move dump-id.h into dumper.h.
8481         * dumper.h: Move dump-id.h into dumper.h.
8482         * Makefile.in.in:
8483         Use standard .c.o rule for building dump-id.o.
8484         Remove preprocessor flags from link command.
8485         Add dump-id.o to ${otherobjs} if PDUMP.
8486
8487 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
8488
8489         Port FSF 20.7 syntax table improvements.
8490         * syntax.c.
8491         * syntax.h.
8492
8493         Fixups for new syntax table stuff.
8494         * dired.c: Include syntax.c.
8495         (Fdirectory_files): Initialize regex_match_object and
8496         regex_emacs_buffer.
8497         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
8498         and Fget_char_property.
8499
8500         Use ported FSF 20.7 syntax table improvements.
8501         * font-lock.c.
8502         * regex.c.
8503         * search.c.
8504         
8505 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8506
8507         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
8508         Unixware's enum boolean from sys/types.h.
8509
8510 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8511
8512         Fix support for building with latest Purify.
8513         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
8514         (PURIFY_FLAGS): Likewise.
8515
8516 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8517
8518         * fileio.c (lisp_string_set_file_times): New.
8519         * fileio.c (Fcopy_file): Use it.
8520         Fixes bug:
8521         (copy-file filename non-ascii-filename t t)
8522         ==> No such file or directory, non-ascii-filename
8523
8524 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8525
8526         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
8527         USHRT_MAX seems clearer than ~0 anyways.
8528
8529 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8530
8531         dumper improvements.  Inspired by Olivier.
8532         * dumper.c (pdump_max_align): New.
8533         * dumper.c (pdump_add_entry): Use pdump_max_align.
8534         * dumper.c (pdump_get_entry_list): Likewise.
8535         * dumper.c (pdump_scan_by_alignment): Likewise.
8536         Don't iterate through unnecessary alignments.
8537         * dumper.c (pdump_file_get): No need to align result of malloc().
8538         * dumper.c (pdump_mallocadr): Remove.  
8539         The result of malloc() is guaranteed to be maximally aligned.
8540         * dumper.c: s/elmt/elt/g;
8541         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
8542         * dumper.c (pdump_alert_undump_object): Likewise.
8543         * dumper.c (pdump_align_table): 
8544         Don't support alignments > 64.
8545         Store ALIGNOF's, not shift counts, in table.
8546
8547 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8548
8549         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
8550         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
8551         * systime.h: Use HAVE_UTIME.
8552         * sysdep.c (struct utimbuf): Remove.
8553         * sysdep.c (set_file_times): Prefer utime() to utimes().
8554         * config.h.in (HAVE_UTIME): New.
8555         * config.h.in (HAVE_UTIME_H): Remove.
8556         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
8557
8558 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8559
8560         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
8561
8562 2001-02-08  Martin Buchholz  <martin@xemacs.org>
8563
8564         * s/irix6-0.h: Use the standard system memmove, not bcopy.
8565
8566 2001-02-08  Martin Buchholz <martin@xemacs.org>
8567
8568         * XEmacs 21.2.44 "Thalia" is released.
8569
8570 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8571
8572         Fixes crashes in kill-emacs on some systems.
8573         * process-unix.c (unix_kill_child_process):
8574         It's OK for kill() to fail with ESRCH.
8575
8576 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8577
8578         Contortions to make .gdbinit tricks work on most systems.
8579         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
8580         * alloc.c (dbg_valmask): Make non-const.
8581         * alloc.c (dbg_typemask): Make non-const.
8582         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
8583         * alloc.c (dbg_valbits): Make non-const.
8584         * alloc.c (dbg_gctypebits): Make non-const.
8585         * .gdbinit (decode_object): Make it work with AIX cc.
8586
8587 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8588
8589         * elhash.c (make_general_lisp_hash_table):
8590         Use simpler and more efficient calloc to clear entries.
8591
8592 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8593
8594         * window.c (window_scroll): Work around an AIX C compiler bug.
8595         Fixes 'scroll-up' does nothing problem with xlC.
8596
8597 2001-02-05  Martin Buchholz  <martin@xemacs.org>
8598
8599         * .gdbinit: Remove obsolete comment.
8600
8601 2001-01-31  Mike Alexander  <mta@arbortext.com>
8602
8603         * select.c (Fown_selection_internal): Set owned_p for device
8604         method correctly.
8605
8606 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8607
8608         Port to g++ 2.97.
8609         "not" cannot be used as a macro name as it is an operator in C++
8610         * config.h.in: Stop #defining `not'.
8611         * chartab.c (check_category_char): not ==> not_p
8612         * chartab.h: Likewise.
8613         * regex.c (re_match_2_internal): Likewise.
8614
8615 2001-02-02  Martin Buchholz  <martin@xemacs.org>
8616
8617         * lisp-disunion.h: Fix up comments.
8618
8619 2001-01-31  Martin Buchholz  <martin@xemacs.org>
8620
8621         * keymap.c (define_key_check_and_coerce_keysym):
8622         (syms_of_keymap):
8623         Support mouse-6 and mouse-7 bindings in the obvious way.
8624
8625 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8626
8627         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
8628
8629 2001-01-30  Martin Buchholz  <martin@xemacs.org>
8630
8631         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
8632         Previous patch missed DEFVAR_INT_MAGIC.
8633         Make sure future DEFVAR_foo use correct types.
8634         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
8635         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
8636         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
8637         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
8638         * (DEFVAR_INT): Likewise.
8639         * redisplay.c (vertical_clip): Should be of type Fixnum.
8640         * redisplay.c (horizontal_clip): Likewise.
8641         * lisp.h (dump_add_opaque_int): New.
8642         (dump_add_opaque_fixnum): New.
8643
8644 2001-01-29  Andy Piper  <andy@xemacs.org>
8645
8646         * glyphs-widget.c (check_valid_int_or_function): allow symbols
8647         since they can be eval'ed
8648
8649 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8650
8651         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
8652         Oops, XEmacs redefines `class'.  Use `typename' instead.
8653
8654 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8655
8656         * dumper.c: Fix C++ compile errors.
8657
8658 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8659
8660         * tparam.c: Use correct prototypes.
8661
8662 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8663
8664         * sysproc.h: #include util.h for NetBSD's openpty.
8665
8666 2001-01-27  Martin Buchholz  <martin@xemacs.org>
8667
8668         More 64-bit correctness.
8669         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
8670         Use a typedef `fixnum' for the type used for DEFVAR_INT.
8671         Fix up comments.
8672         This finally finishes the 64-bit SGI port.
8673         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
8674         * symbols.c: Fix up comments and type casts.
8675         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
8676         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
8677         * symeval.h (Fixnum): New type.
8678         * symeval.h (symbol_value_type): Fix up comment.
8679
8680         * commands.h:
8681         * nt.c:
8682         * emacs.c:
8683         * data.c:
8684         * redisplay.c:
8685         * abbrev.c:
8686         * dired-msw.c:
8687         * event-Xt.c:
8688         * eldap.c:
8689         * window.c:
8690         * sound.c:
8691         * event-stream.c:
8692         * eval.c:
8693         * buffer.c:
8694         * mule-canna.c: A million DEFVAR_INTs here...
8695         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
8696         * extents.c:
8697         * cmdloop.c:
8698         * lisp.h:
8699         * select-x.c:
8700         * console-x.h:
8701         * event-msw.c:
8702         * mule-wnnfns.c:
8703         * hpplay.c:
8704         * ralloc.c:
8705         * alloc.c:
8706         * keymap.c:
8707         * profile.c:
8708         s/int/Fixnum/g in DEFVAR_INT declarations.
8709
8710 2001-01-26  Martin Buchholz  <martin@xemacs.org>
8711
8712         Port pdump to SGI alignment-sensitive environment.
8713         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
8714         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
8715         properly aligned.
8716         Define and use aligned reading and writing macros.
8717         Use buffered stdio instead of posix i/o for faster dumping.
8718         Eliminate kludgy 256 byte space for header.
8719         Read and write from dump file using structs for alignment safety.
8720         * dumper.c (pdump_align_stream): New.
8721         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
8722         * dumper.c (PDUMP_READ_ALIGNED): New.
8723         * dumper.c (PDUMP_WRITE_ALIGNED): New.
8724         * dumper.c (pdump_static_Lisp_Object): New struct.
8725         * dumper.c (pdump_static_pointer): New struct.
8726         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
8727         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
8728         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
8729         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
8730
8731         * dumper.c (pdump_backtrace):
8732         * dumper.c (pdump_get_indirect_count):
8733         * dumper.c (pdump_register_object):
8734         * dumper.c (pdump_register_struct):
8735         * dumper.c (pdump_reloc_one):
8736         * dumper.c (pdump_scan_by_alignment):
8737         * dumper.c (pdump_dump_from_root_struct_ptrs):
8738         * dumper.c (pdump_dump_opaques):
8739         * dumper.c (pdump_dump_rtables):
8740         * dumper.c (pdump_dump_from_root_objects):
8741         * dumper.c (pdump):
8742         * dumper.c (pdump_load_finish):
8743         Use aligned reading and writing.
8744
8745         * dumper.c (pdump_free): Make static.
8746         * dumper.c (pdump_hFile): Likewise.
8747         * dumper.c (pdump_hMap): Likewise.
8748
8749 2001-01-26  Martin Buchholz <martin@xemacs.org>
8750
8751         * XEmacs 21.2.43 "Terspichore" is released.
8752
8753 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8754
8755         Type fiddling for window_config.saved_windows_count
8756         * window.c (struct window_config): 
8757         Make saved_windows_count member unsigned.
8758         * window.c (sizeof_window_config_for_n_windows): 
8759         Make parameter unsigned.
8760         * window.c (mark_window_config):
8761         * window.c (window_config_equal):
8762         * window.c (free_window_configuration):
8763         * window.c (Fset_window_configuration):
8764         * window.c (count_windows):
8765         * window.c (Fcurrent_window_configuration):
8766         * window.c (reinit_vars_of_window):
8767         Update all callers and users.
8768
8769 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8770
8771         Alignment correctness for flexible arrays.
8772         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
8773         Make alignment-correct. Add interesting comments.
8774         * alloc.c (size_vector):
8775         * alloc.c (make_vector_internal):
8776         * alloc.c (make_bit_vector_internal):
8777         * alloc.c (sweep_bit_vectors_1):
8778         * fns.c (size_bit_vector):
8779         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
8780         * window.c (sizeof_window_config_for_n_windows): 
8781         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
8782
8783 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8784
8785         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
8786
8787 2001-01-23  Andy Piper  <andy@xemacs.org>
8788
8789         * select.c (Fown_selection_internal): pass owned_p
8790
8791         * select-msw.c (mswindows_own_selection): New Signature.
8792
8793         * console.h (struct console_methods): add owned_p to
8794         _own_selection.
8795
8796         * select-x.c (x_own_selection): pass owned_p
8797         (hack_motif_clipboard_selection): use owned_p
8798         (vars_of_select_x): new variable -
8799         x_selection_strict_motif_ownership.
8800
8801 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8802
8803         * specifier.h (specifier_data_offset): Remove pointless parens.
8804         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
8805
8806 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8807
8808         Make Lisp_Object sizeof methods be alignment-correct.
8809         pdump must restore objects to the same alignment as the C compiler
8810         assumes.  It really matters on SGIs.
8811         * lstream.c (aligned_sizeof_lstream): New.
8812         (sizeof_lstream): Use aligned_sizeof_lstream.
8813         (Lstream_new): Likewise.
8814         * opaque.c (aligned_sizeof_opaque): New.
8815         (sizeof_opaque): Use aligned_sizeof_opaque.
8816         (make_opaque): Likewise.
8817         * specifier.c (aligned_sizeof_specifier): New.
8818         (sizeof_specifier): Use aligned_sizeof_specifier.
8819         (make_specifier_internal): Likewise.
8820
8821 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8822
8823         * lstream.h (struct lstream): Use max_align_t for trailing data.
8824         * specifier.h (struct Lisp_Specifier): Likewise.
8825
8826 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8827
8828         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
8829         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
8830         (CCL_SUSPEND): Likewise.
8831         (CCL_INVALID_CMD): Likewise.
8832         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
8833         (ccl_driver): Likewise.
8834         (CCL_WRITE_CHAR): Macro hygiene.
8835         (CCL_WRITE_STRING): Macro hygiene.
8836
8837 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8838
8839         Port "portable" dumper to SunOS 4 and HP-UX.
8840         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
8841         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
8842         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
8843
8844 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8845
8846         * lisp.h (ALIGNOF): A better definition for C++.
8847
8848 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8849
8850         Macro hygiene.
8851         Fix printf warnings: int format, long int arg.
8852         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
8853         (PUSH_FAILURE_POINT): Use correct printf formats.
8854         (POP_FAILURE_POINT): Use correct printf formats.  
8855         Use do {...} while (0)
8856
8857 2001-01-20  Martin Buchholz <martin@xemacs.org>
8858
8859         * XEmacs 21.2.42 "Poseidon" is released.
8860
8861 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8862
8863         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
8864
8865 2001-01-19  Martin Buchholz  <martin@xemacs.org>
8866
8867         De-kludgify FIXED_TYPE free list frobbing.
8868         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
8869         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
8870         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
8871         * alloc.c (Lisp_Free): New pseudo lisp object definition.
8872         * alloc.c (LRECORD_FREE_P): New.
8873         * alloc.c (MARK_LRECORD_AS_FREE): New.
8874         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
8875         * alloc.c (STRUCT_FREE_P): Deleted.
8876         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
8877         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
8878         * alloc.c (STRING_CHARS_FREE_P): New.
8879         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
8880         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
8881         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
8882         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
8883         * alloc.c (resize_string): Use new definitions.
8884         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
8885         * alloc.c (verify_string_chars_integrity): Use new definitions.
8886         * alloc.c (compact_string_chars): Use new definitions.
8887         * alloc.c: Update monster comments.
8888         * lrecord.h (lrecord_type): Add some new lrecord types for
8889         alloc.c's use.
8890
8891 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8892
8893         Improve alignment hackery.
8894         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
8895         (max_align_t): Moved from opaque.h - general purpose.
8896         (ALIGN_PTR): Use size_t, not long.
8897         * opaque.h (max_align_t): Move to lisp.h.
8898
8899 2001-01-18  Norbert Koch  <nk@LF.net>
8900
8901         * gui.h: Fix and add prototypes to fix build problems.
8902
8903 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8904
8905         temacs is going away, so `dump-temacs' is now a bad name.
8906         * .dbxrc (dump-temacs): Rename to `dmp'.
8907         * .gdbinit (dump-temacs): Rename to `dmp'.
8908
8909 2001-01-17  Andy Piper  <andy@xemacs.org>
8910
8911         * glyphs.c (print_image_instance): comment to make martin happy.
8912
8913         * glyphs-x.c (x_redisplay_widget): update faces after a frame
8914         change.
8915
8916         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
8917         activation.
8918         (mswindows_tab_control_redisplay): warning suppression.
8919
8920         * glyphs-widget.c (widget_update): re-write to cope with updated
8921         items.
8922         (widget_instantiate): use new gui_item functions.
8923         (tab_control_update): deleted.
8924         (progress_gauge_update): deleted.
8925         (image_instantiator_progress_guage): take out update reference.
8926         (image_instantiator_tree_view): ditto.
8927         (image_instantiator_tab_control): ditto.
8928
8929         * gui.c (widget_gui_parse_item_keywords): new function. Do things
8930         Right the new way.
8931         (gui_item_add_keyval_pair): re-write to cope with descriptors and
8932         return whether anything was changed.
8933         (update_gui_item_keywords): as it sounds.
8934
8935         * gui.h: declare widget_gui_parse_item_keywords.
8936
8937         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
8938         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
8939
8940 2001-01-17  Martin Buchholz <martin@xemacs.org>
8941
8942         * XEmacs 21.2.41 "Polyhymnia" is released.
8943
8944 2001-01-16  Didier Verna  <didier@xemacs.org>
8945
8946         * glyphs.c (image_instantiate): don't use fallbacks when
8947         instantiating a face's background pixmap by inheritance.
8948
8949 2001-01-14  Mike Sperber <mike@xemacs.org>
8950
8951         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8952         Conditionalize accordingly.
8953
8954 2001-01-16  Martin Buchholz  <martin@xemacs.org>
8955
8956         * dumper.c (pdump_file_get): Fix a compiler warning.
8957
8958 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8959
8960         Make Purify happy when pdumping.
8961         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8962         iniitalizing all bits of new lisp object memory.
8963         * symbols.c (Fmake_local_variable): Likewise.
8964         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8965         * symbols.c (Fdefvaralias): Likewise.
8966         * mule-charset.c (vars_of_mule_charset): Likewise.
8967
8968 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8969         Add the `-nd' flag when running pre-dump operations under the debugger.
8970         * .dbxrc (run-temacs): Add `-nd'.
8971         * .dbxrc (update-elc): Likewise.
8972         * .dbxrc (dump-temacs): Likewise.
8973         * .gdbinit (run-temacs): Likewise.
8974         * .gdbinit (check-temacs): Likewise.
8975         * .gdbinit (update-elc): Likewise.
8976         * .gdbinit (dump-temacs): Likewise.
8977
8978 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8979
8980         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8981         export OBJECT_MODE=64
8982         configure --pdump --use-union-type=no
8983         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8984         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8985
8986         * miscplay.c (sndcnv8U_2mono):
8987         Avoid two uses of `++' in the same expression.
8988         Suppresses a GCC warning.
8989
8990 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8991
8992         Make sure future compilers don't miscompile alloc.c.
8993         * alloc.c:
8994         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
8995         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
8996
8997 2001-01-12  Martin Buchholz  <martin@xemacs.org>
8998
8999         * dumper.c: A little post-pdump-rename comment fixup.
9000
9001 2001-01-09  Jerry James  <james@eecs.ku.edu>
9002
9003         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9004
9005 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9006
9007         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9008         script:
9009         #!/bin/sh
9010         replace_symbol () {
9011           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9012         }
9013
9014         replace_symbol pdump_wire_lists pdump_weak_object_chains
9015         replace_symbol pdump_wire_list dump_add_weak_object_chain
9016
9017         replace_symbol pdump_wires pdump_root_objects
9018         replace_symbol pdump_wire dump_add_root_object
9019
9020         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9021         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9022
9023         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9024         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9025         replace_symbol dumpstructinfo pdump_root_struct_ptr
9026         replace_symbol dumpstruct dump_add_root_struct_ptr
9027
9028         replace_symbol dumpopaque dump_add_opaque
9029         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9030         replace_symbol dumpopaqueinfos pdump_opaques
9031         replace_symbol dumpopaqueinfo pdump_opaque
9032
9033         replace_symbol nb_structdump nb_root_struct_ptrs
9034         replace_symbol nb_opaquedump nb_opaques
9035
9036         replace_symbol align_table pdump_align_table
9037         replace_symbol dump_header pdump_header
9038
9039         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9040         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9041
9042
9043 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9044
9045         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9046         optimizing bytecount_to_charcount().
9047
9048 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9049
9050         * config.h.in:
9051         (HAVE_DLFCN_H): Removed.
9052         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9053
9054 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9055
9056         Portable dumper maintainability improvements.
9057         * alloc.c (staticpro):
9058         * alloc.c (staticpro_nodump):
9059         * alloc.c (garbage_collect_1):
9060         * alloc.c (reinit_alloc_once_early):
9061         * alloc.c (init_alloc_once_early):
9062         * alloc.c: Move dumper functions to alloc.c.
9063         * dumper.c (pdump_backtrace):
9064         * dumper.c (pdump_dump_structs):
9065         * dumper.c (pdump_dump_opaques):
9066         * dumper.c (pdump_dump_rtables):
9067         * dumper.c (pdump_dump_wired):
9068         * dumper.c (pdump):
9069         * dumper.c (pdump_load_check):
9070         * dumper.c (pdump_load_finish):
9071         * dumper.c (pdump_file_unmap):
9072         * dumper.c (pdump_file_get):
9073         * dumper.c (pdump_resource_free):
9074         * dumper.c (pdump_resource_get):
9075         * dumper.c (pdump_file_free):
9076         * dumper.c (pdump_file_try):
9077         * dumper.c (pdump_load):
9078         Remove fixed size limits on staticpro(), staticpro_nodump(),
9079         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9080         Remove custom code for dumping lrecord_implementations_table - use
9081         dumpopaque instead.
9082         Remove (most of the) custom code for dumping staticpros - dump it
9083         like any other dynarr.
9084
9085         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9086         * dumper.c: Moved functions from alloc.c.
9087         * alloc.c (dumpstruct): Moved to dumper.c.
9088         * alloc.c (dumpopaque): Likewise.
9089         * alloc.c (pdump_wire): Likewise.
9090         * alloc.c (pdump_wire_list): Likewise.
9091
9092         * lisp.h (Dynarr_sizeof): New.
9093         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9094         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9095         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9096
9097         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9098         * lisp.h (dumpopaque): ditto.
9099         * lisp.h (pdump_wire): ditto.
9100         * lisp.h (pdump_wire_list): ditto.
9101
9102 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9103
9104         * make-src-depend (PrintPatternDeps):
9105         Use `sort' to make output independent of perl version.
9106
9107 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9108
9109         Port to Netbsd 1.5.
9110         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9111         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9112
9113 2001-01-03  Didier Verna  <didier@xemacs.org>
9114
9115         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9116         that `focus_frame' is alive before thinking of calling
9117         `redisplay_redraw_cursor' on it.
9118
9119 2001-01-08  Martin Buchholz <martin@xemacs.org>
9120
9121         * XEmacs 21.2.40 is released.
9122
9123 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9124
9125         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9126
9127 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9128
9129         * alloc.c (dbg_valmask): Make const.
9130         * alloc.c (dbg_typemask): Make const.
9131         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9132         * alloc.c (dbg_valbits): Make const.
9133         * alloc.c (dbg_gctypebits): Make const.
9134
9135 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9136
9137         * redisplay-x.c (x_bevel_area):
9138         redisplay.h (struct rune):
9139         Typo fixes in comments.
9140
9141 2001-01-05  Andy Piper  <andy@xemacs.org>
9142
9143         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9144         adjustment.
9145
9146         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9147
9148 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9149
9150         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9151
9152         * mule-ccl.c (stack_idx_of_map_multiple):
9153         Non const global data must not be initialized!
9154         Found by MIYASHITA Hisashi.
9155
9156 2001-01-02  Andy Piper  <andy@xemacs.org>
9157
9158         * frame.c (change_frame_size): make sure frame size is always
9159         marked as changed.
9160
9161         * glyphs.c (image_instance_layout): minor code reuse.
9162
9163         * window.c (Fcurrent_window_configuration): revert previous
9164         change.
9165
9166 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9167
9168         * glyphs.h:
9169         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9170
9171 2000-12-31  Andy Piper  <andy@xemacs.org>
9172
9173         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9174         when widget gets unmapped.
9175
9176         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9177         function. Make sure widgets losing focus don't just drop it.
9178         (handle_focus_event_1): record the widget with focus.
9179
9180 2000-12-31  Andy Piper  <andy@xemacs.org>
9181
9182         * window.c (allocate_window): use
9183         make_image_instance_cache_hash_table.
9184         (make_dummy_parent): ditto.
9185         (Fset_window_configuration): ditto.
9186
9187         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9188
9189         * glyphs.c (process_image_string_instantiator): use
9190         INSTANTIATOR_TYPE.
9191         (get_image_instantiator_governing_domain): ditto.
9192         (normalize_image_instantiator): ditto.
9193         (instantiate_image_instantiator): ditto.
9194         (make_image_instance_1): ditto.
9195         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9196         (instantiator_eq_equal): new function for use with instance hash
9197         tables.
9198         (instantiator_eq_hash): ditto.
9199         (make_image_instance_cache_hash_table): create a suitable hash
9200         table for storing image instances.
9201
9202         * elhash.h (hash_table_weakness): new internal weakness type
9203         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9204         declare new functions.
9205
9206         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9207         another weakness type for glyphs.
9208         (make_standard_lisp_hash_table): new function split out from
9209         make_general_lisp_hash_table.
9210         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9211         (hash_table_instantiate): ditto.
9212         (Fmake_hash_table): ditto.
9213
9214 2000-12-31  Martin Buchholz <martin@xemacs.org>
9215
9216         * XEmacs 21.2.39 is released.
9217
9218 2000-12-29  Andy Piper  <andy@xemacs.org>
9219
9220         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9221
9222         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9223         the frame has changed so that we pick up geometry changes such as
9224         menubar visibility.
9225
9226 2000-12-28  Andy Piper  <andy@xemacs.org>
9227
9228         * lastfile.c (my_ebss): make a char array so we can pad the
9229         bss. Fixes cygwin unexec.
9230
9231         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9232
9233 2000-12-26  Andy Piper  <andy@xemacs.org>
9234
9235         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9236         comments and try and be more precise about a non-/SIGIO world.
9237         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9238         SIGIO.
9239
9240         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9241         we don't normalize to zero width or height.
9242
9243 2000-12-24  Andy Piper  <andy@xemacs.org>
9244
9245         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9246
9247 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9248
9249         * s/sco5.h: SCO 5 has pty support.
9250
9251 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9252
9253         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9254         input-method-xlib.c contains whole contents of input-method-xfs.c,
9255         so we can use input-method-xlib.c's code for USE_XFONTSET
9256         using #ifdefs.
9257         * input-method-xfs.c: removed.
9258
9259 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9260
9261         * file-coding.h (enum coding_category_type): reorder enumerators to
9262         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9263         (now one greater than largest real coding_category_type enumerator).
9264         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9265         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9266         Fcoding_category_list, Fset_coding_priority_list,
9267         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9268         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9269
9270 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9271
9272         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9273         * redisplay-output.c (redisplay_output_window): Clear top of window
9274         when face is changed.
9275         * redisplay-x.c (x_redraw_exposed_window): Call
9276         redisplay_clear_top_of_window.
9277         * redisplay.h: Publish redisplay_clear_top_of_window.
9278
9279 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9280
9281         * buffer.c (Fkill_buffer): Map over all devices.
9282         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9283         (list_windows): New function.
9284         (list_all_windows): Ditto.
9285         (Freplace_buffer_in_windows): Use them.
9286
9287 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9288
9289         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9290         (Fopen_database): Use `db_create' instead of `db_open'.
9291         (syms_of_database): Initialize Qqueue.
9292
9293 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9294
9295         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9296         buffer_local_face_property.
9297         * buffer.h (struct buffer): New member buffer_local_face_property.
9298         * window.c (Fset_window_buffer):  Mark window's face as changed
9299         when buffer has buffer local face.
9300         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9301         * objects.c (color_after_change): Set buffer_local_face_property
9302         when locale of face specifier is buffer.
9303         * objects.c (font_after_change): Ditto.
9304         * objects.c (face_boolean_after_change): Ditto.
9305         * glyphs.c (image_after_change): Ditto.
9306
9307 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9308
9309         * nt.c (mswindows_fstat): Report file permissions, volume serial
9310         number, etc. Code adapted from FSF Emacs 20.7.
9311
9312 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9313
9314         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9315         of stat when we don't have symbolic links, to make sure
9316         mswindows_stat is called on mswindows.
9317
9318 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9319
9320         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9321
9322 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9323
9324         * doprnt.c (emacs_doprnt_1): More printing fixes.
9325         Make printing of numbers compatible with libc and FSF Emacs.
9326         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9327         Use the system printf to do most of the hard work of formatting,
9328         instead of doprnt_1().
9329         Calculate memory to allocate for format string.
9330         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9331         (doprnt_1): Cleaner code and documentation.
9332
9333 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9334
9335         * Makefile.in.in: Use the loop variable to install headers.
9336
9337 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9338
9339         * window.c (Fsplit_window): Don't invalidate face cache.
9340
9341 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9342
9343         * minibuf.c (Fall_completions): Undo the previous change
9344         which removed checking elements start with space.
9345
9346 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9347
9348         * mule-canna.c: Didier suppression.
9349
9350 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9351
9352         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9353         (warning suppression).  Add English comment translations.
9354
9355 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9356
9357         * unexelfsgi.c (unexec): Better test for mmap failure.
9358
9359 2000-12-05  Martin Buchholz <martin@xemacs.org>
9360
9361         * XEmacs 21.2.38 is released.
9362
9363 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9364
9365         * redisplay.c (bar-cursor): Make a user variable.
9366
9367         * symsinit.h: Add init_postgresql_from_environment.
9368
9369 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9370
9371         * regex.c: Convert to clean C.
9372
9373 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9374
9375         * realpath.c:
9376         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9377         initialization.
9378         (sys_readlink): renamed to system_readlink to avoid conflict with
9379         the other sys_readlink.
9380
9381 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9382
9383         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9384
9385 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9386
9387         * postgresql.c (init_postgresql_from_environment): new function.
9388         (vars_of_postgresql): Move code initializing Lisp variables out and
9389         into init_postgresql_from_environment.
9390         emacs.c (main_1): Call init_postgresql_from_environment if and only
9391         if running a dumped XEmacs.
9392
9393 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9394
9395         * buffer.c: Make find-file-compare-truenames default to true on
9396         windows.
9397
9398         * realpath.c (win32_abs_start):
9399         (cygwin_readlink):
9400         (win32_readlink): New functions.
9401         (xrealpath): Return really real filenames on windows.
9402
9403         * fileio.c (Ffile_truename): Make file-truename work on windows.
9404
9405 2000-11-29  Didier Verna  <didier@xemacs.org>
9406
9407         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9408         * faces.c (update_face_cachel_data): use it.
9409         * faces.c (add_face_cachel): use it. Complete background pixmap
9410         frobbing in face cache if `update_face_cachel_data' has not done so.
9411
9412 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9413
9414         * search.c (string_match_1): Don't set last_thing_searched
9415         when search failed.
9416
9417 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9418
9419         * buffer.c: Include casetab.h
9420         (common_init_complex_vars_of_buffer): Use new case-table object.
9421         * buffer.h: Include casetab.h
9422         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9423         (DOWNCASE_TABLE_OF): Ditto.
9424         * bufslots.h: Remove char-tables and add case-table.
9425         * casetab.c: Include casetab.h
9426         (CASE_TABLE_P): Removed.
9427         (mark_case_table): New function.
9428         (allocate_case_table): New function.
9429         (Fcase_table_p): Use new case-table.
9430         (case_table_char): New function.
9431         (Fget_case_table): Ditto.
9432         (Fput_case_table): Ditto.
9433         (Fput_case_table_pair): Ditto.
9434         (Fcopy_case_table): Ditto.
9435         (Fcurrent_case_table): Return case-table.
9436         (Fstandard_case_table): Return case-table.
9437         (Fset_case_table): Fix doc-string.
9438         (set_case_table): Use case-table
9439         (syms_of_casetab): DEFSUBR new functions.
9440         (complex_vars_of_casetab): Set up standard case-table.
9441         * casetab.h: New file.
9442         * editfns.c: Include casetab.h
9443         (Fcompare_buffer_substrings): Use case-table.
9444         * inline.c: Include casetab.h
9445         * lisp.h: Remove bogus extern.
9446         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9447         * search.c: Include casetab.h
9448         (TRANSLATE_ASCII): Removed.
9449         (TRANSLATE): Unconditionally translate character.
9450         (looking_at_1): Use case-table.
9451         (string_match_1): Ditto.
9452         (fast_string_match): Ditto.
9453         (search_command): Ditto.
9454         (search_buffer): Separate boyer_moore.  Check whether
9455         boyer_moore is possible.
9456         (simple_search): New function.
9457         (boyer_moore): Separated from search_buffer. Translate char.
9458
9459 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9460
9461         * regex.c (RE_TR_ASCII): Removed.
9462         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9463         (PATFETCH): Call PATFETCH_RAW.
9464         (PATFETCH_RAW): Fetch Emchar.
9465         (PATUNFETCH): Decrement charptr.
9466         (GET_BUFFER_SPACE): Rename b to buf_end.
9467         (BUF_PUSH): Ditto.
9468         (BUF_PUSH_2): Ditto.
9469         (BUF_PUSH_3): Ditto.
9470         (EXTEND_BUFFER): Ditto.
9471         (SET_LIST_BIT): Ditto.
9472         (regex_compile): Ditto.  Translate non ASCII char.
9473         (compile_range): Ditto.
9474         (re_search_2): Ditto.
9475         (re_match_2_internal): Compare Emchar.
9476         (bcmp_translate): Ditto.
9477
9478 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
9479
9480         * lisp.h (basic char/int typedefs):  comment improvement.
9481
9482 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
9483
9484         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
9485         unstomp inhibit_site_lisp.  Improve comments.
9486
9487 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
9488
9489         * mule-charset.c (Fcharset_property):  improve type checking, comments.
9490
9491 2000-11-28  Andy Piper  <andy@xemacs.org>
9492
9493         * redisplay-output.c (redisplay_output_subwindow): make sure we do
9494         clipped display for windows in the gutter also.
9495         (redisplay_display_boxes_in_window_p): change semantics of return
9496         codes to be more intuitive.
9497
9498         * gutter.h: declare display_boxes_in_gutter_p.
9499
9500         * gutter.c (display_boxes_in_gutter_p): new function for
9501         redisplay.
9502
9503 2000-11-22  Andy Piper  <andy@xemacs.org>
9504
9505         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
9506         autodetect domain.
9507
9508 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
9509
9510         * callproc.c (Fold_call_process_internal):
9511         * gpm.c (Freceive_gpm_event):
9512         (tty_get_foreign_selection): Might be just warning supression.
9513         * fileio.c (Fwrite_region_internal):
9514         (Fset_visited_file_modtime):
9515         * keymap.c (event_matches_key_specifier_p):
9516         Initialize GCPROed variable.
9517
9518         * menubar-x.c (command_builder_find_menu_accelerator):
9519         Initialize before use.
9520
9521 2000-11-23  Andy Piper  <andy@xemacs.org>
9522
9523         * unexcw.c (unexec): make the resulting executable executable.
9524
9525 2000-11-21  Martin Buchholz  <martin@xemacs.org>
9526
9527         * doc.c (get_doc_string):
9528         Use size_t, not int, for result of XSTRING_LENGTH.
9529
9530         * cmds.c (Fdelete_char):
9531         * cmds.c (Fpoint_at_eol):
9532         * cmds.c (Fself_insert_command):
9533         Use EMACS_INT, not int, for result of XINT.
9534         Someday, someone will want to insert more than 2**31 identical characters.
9535
9536         * cmds.c (Fdelete_char):
9537         * cmds.c (Fdelete_backward_char):
9538         * syntax.c (Fforward_word):
9539         * syntax.c (Fforward_comment):
9540         Make COUNT argument optional, for consistency with forward-char et al.
9541
9542 2000-11-22  Martin Buchholz  <martin@xemacs.org>
9543
9544         * lisp.h:
9545         * print.c (long_to_string):
9546         Return a useful value: the pointer at end of data written.
9547
9548         * doprnt.c:
9549         Use `static const char * const' for constant strings.
9550         (union printf_arg): Delete `i', `ui' members.
9551         (get_doprnt_args):
9552         (emacs_doprnt_1):
9553         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
9554         Do all printf-ing via the `l' specifier.
9555         Use EMACS_INT instead of int.
9556         Optimize.
9557
9558 2000-11-20  Didier Verna  <didier@xemacs.org>
9559
9560         * faces.c (update_face_cachel_data): don't frob the background
9561         pixmap when the window is being created. The face is needed but
9562         does not exist yet.
9563
9564 2000-11-20  Andy Piper  <andy@xemacs.org>
9565
9566         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
9567         messing with a debug environment.
9568
9569 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9570
9571         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
9572
9573 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9574
9575         * casetab.c (Fcase_table_p): Fix compile error and crash.
9576
9577 2000-11-18  Philip Aston  <philipa@mail.com>
9578
9579         * s/cygwin32.h: Cygwin has SVR4-like pty support.
9580
9581 2000-11-18  Martin Buchholz  <martin@xemacs.org>
9582
9583         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
9584         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
9585
9586 2000-11-17  Martin Buchholz  <martin@xemacs.org>
9587
9588         * config.h.in: Define HAVE_ELF_H if elf.h exists.
9589         * unexelf.c: Use HAVE_ELF_H.
9590         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
9591         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
9592         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
9593         Greg Harrington <greg_harrington@hotmail.com> provided a machine
9594         for testing.
9595         So this is an unexelfsgi.c from a different line of development.
9596
9597 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9598
9599         * regex.c (RE_TR_ASCII): New function.
9600         (RE_TRANSLATE): Call it.
9601
9602 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9603
9604         * buffer.h (TRT_TABLE_OF): Remove assert.
9605         (IN_TRT_TABLE_DOMAIN): Removed.
9606
9607 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9608
9609         * free-hook.c (log_gcpro):
9610         (show_gcprohist): Add support for GCPRO5.
9611
9612 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
9613
9614         * emacs.c (main_1): Improve -sd error message when --pdump=no.
9615
9616 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
9617
9618         * symeval.h: Declare flush_all_buffer_local_cache.
9619
9620         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
9621         (flush_buffer_local_cache): Added.
9622         (flush_all_buffer_local_cache): Added.
9623
9624         * lrecord.h: Remove unused XD_LO_RESET_NIL.
9625
9626         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
9627         (pdump_dump_data): Ditto.
9628         (pdump_reloc_one): Ditto.
9629         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
9630         before dumping.
9631
9632
9633 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9634
9635         * buffer.c: Remove if 0'ed entry.
9636         * buffer.h: Rewrite TRT to use char-table.
9637         * bufslots.h: Remove mirror tables.
9638         * casetab.c: Remove mirror tables.
9639         (CASE_TABLE_P): New macro.
9640         (Fcase_table_p): Element of a case table is string or char-table.
9641         (make_mirror_trt_table): Removed.
9642         (set_case_table): Setup char-table from strings for backward
9643         compatibility.
9644         * dired.c (Fdirectory_files):
9645         * dired-msw.c: (mswindows_get_files):
9646         * lisp.h: Change prototype of re_pattern_buffer.
9647         * regex.c: (RE_TRANSLATE): New macro.
9648         (TRANSLATE_P): Ditto.
9649         Change translate to type RE_TRANSLATE_TYPE.
9650         * regex.h: Define RE_TRANSLATE_TYPE
9651         * search.c (TRANSLATE): New macro.
9652         (TRANSLATE_ASCII): New macro.
9653         Translate table is changed to Lisp_Object.
9654         (signal_failure): Inhibit return.
9655
9656 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9657
9658         * device-msw.c:
9659         * eldap.c:
9660         * event-Xt.c:
9661         * event-stream.c:
9662         * print.c:
9663         Do UNGCPRO before return.
9664
9665 2000-11-14  Martin Buchholz <martin@xemacs.org>
9666
9667         * XEmacs 21.2.37 is released.
9668
9669 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9670
9671         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
9672         Add comments about discarded return value.
9673
9674 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9675
9676         * callint.c:
9677         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
9678
9679 2000-10-27  Andy Piper  <andy@xemacs.org>
9680
9681         * gutter.c (Fset_default_gutter_position): default left and right
9682         gutters to visible.
9683         (calculate_gutter_size): calculate resonable heuristic for left
9684         and right gutter sizes.
9685         (specifier_vars_of_gutter): change left and right gutter sizes to
9686         autodetect.
9687         (calculate_gutter_size_from_display_lines): new function.
9688         (output_gutter): check for resizing on left and right gutters.
9689         (clear_gutter): don't special case top and left gutters.
9690         (specifier_vars_of_gutter): use new signature for
9691         set_specifier_caching.
9692
9693         * glyphs-x.c (x_redisplay_widget): spelling fix.
9694         * glyphs.c (specifier_vars_of_glyphs):
9695         * menubar.c (specifier_vars_of_menubar):
9696         * redisplay.c (specifier_vars_of_redisplay):
9697         * toolbar.c (specifier_vars_of_toolbar):
9698         * window.c (specifier_vars_of_window):
9699         * scrollbar.c (specifier_vars_of_scrollbar):
9700         (complex_vars_of_scrollbar): use new signature for
9701         set_specifier_caching.
9702
9703         * specifier.c (set_specifier_caching): include recompute flag.
9704         (recompute_one_cached_specifier_in_window): always recompute if
9705         flag set.
9706         (recompute_one_cached_specifier_in_frame): ditto.
9707
9708         * specifier.h (struct specifier_caching): add recompute flag.
9709
9710 2000-10-24  Andy Piper  <andy@xemacs.org>
9711
9712         * unexcw.c (copy_executable_and_dump_data_section): add new
9713         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
9714         5.0 happy.
9715
9716 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9717
9718         * console-x.h (x_device): New member modifier_release_time.
9719         * event-Xt.c (x_handle_sticky_modifiers):
9720         Bound interval modifier keys are sticky.
9721         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
9722         * events.h: extern it.
9723
9724 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9725
9726         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
9727
9728 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9729
9730         * event-stream.c (execute_command_event): Preserve current_events
9731         and the like when event is misc-user-event.
9732         Inhibit quit during the call to maybe_echo_keys.
9733
9734 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9735
9736         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
9737         symlink when buffer is killed.
9738         (inhibit_clash_detection): New variable.
9739
9740 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9741
9742         * console.c (Fset_input_method): Trigger redisplay on tty.
9743
9744 2000-11-07  Martin Buchholz  <martin@xemacs.org>
9745
9746         * process.c (Fprocess_status): Revert to previous behavior:
9747         (process-status "nosuchprocess") ==> nil
9748
9749 2000-11-06  Martin Buchholz  <martin@xemacs.org>
9750
9751         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
9752         Work around another GCC 2.95.2 optimizer bug.
9753
9754 2000-11-02  Martin Buchholz  <martin@xemacs.org>
9755
9756         * process.c (Fget_process): Use LIST_LOOP_2.
9757         (kill_buffer_processes): Use LIST_LOOP_2.
9758
9759         * minibuf.c (Fall_completions):
9760         Delete old non-functional code for FSF fourth argument.
9761
9762         * frame.c (frame_matches_frame_spec):
9763         Renamed from `frame_matches_frametype'.  Update all callers.
9764         (device_matches_device_spec):
9765         Renamed from 'device_matches_console_spec'.  Update all callers.
9766
9767         * doc.c (Fsubstitute_command_keys):
9768         Remove buffer overflow crash.  Small code cleanups.
9769
9770         * casetab.c (check_case_table): Simpler code.
9771
9772         * window.c (Freplace_buffer_in_windows):
9773         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
9774         (and similar implementation) as Fdelete_windows_on.
9775         Update all callers.
9776
9777         * alloc.c (Fmake_list):
9778         * alloc.c (make_vector):
9779         * alloc.c (Fmake_vector):
9780         * alloc.c (make_bit_vector):
9781         * alloc.c (Fmake_bit_vector):
9782         * alloc.c (Fbit_vector):
9783         * alloc.c (Fmake_string):
9784         * alloc.c (Fpurecopy):
9785         * alloc.c (Fmemory_limit):
9786         * buffer.c:
9787         * buffer.c (Fget_buffer):
9788         * buffer.c (Fkill_buffer):
9789         * buffer.c (complex_vars_of_buffer):
9790         * bytecode.c (Fcompiled_function_stack_depth):
9791         * callint.c (Fprefix_numeric_value):
9792         * event-stream.c:
9793         * event-stream.c (Fread_key_sequence):
9794         * casetab.c:
9795         * casetab.c (Fcase_table_p):
9796         * casetab.c (check_case_table):
9797         * casetab.c (Fset_case_table):
9798         * casetab.c (Fset_standard_case_table):
9799         * chartab.c:
9800         * chartab.c (Fchar_table_type):
9801         * chartab.c (Freset_char_table):
9802         * chartab.c (Fget_char_table):
9803         * chartab.c (Fget_range_char_table):
9804         * chartab.c (Fput_char_table):
9805         * chartab.c (Fmap_char_table):
9806         * chartab.c (Fcategory_table_p):
9807         * chartab.c (Fcheck_category_at):
9808         * chartab.c (Fchar_in_category_p):
9809         * chartab.c (Fcategory_table):
9810         * chartab.c (Fcopy_category_table):
9811         * chartab.c (Fset_category_table):
9812         * chartab.c (Fcategory_designator_p):
9813         * chartab.c (Fcategory_table_value_p):
9814         * cmds.c (Fdelete_char):
9815         * cmds.c (Fdelete_backward_char):
9816         * cmds.c (Fself_insert_command):
9817         * cmds.c (Fself_insert_internal):
9818         * console.c (Fvalid_console_type_p):
9819         * console.c (Fcdfw_console):
9820         * console.c (Fconsole_type):
9821         * console.c (Fconsole_name):
9822         * console.c (Fconsole_device_list):
9823         * console.c (Fconsole_on_window_system_p):
9824         * data.c:
9825         * data.c (Feq):
9826         * data.c (Fold_eq):
9827         * data.c (Fsubr_interactive):
9828         * data.c (Fchar_to_int):
9829         * data.c (Fint_to_char):
9830         * data.c (Fsetcar):
9831         * data.c (Fsetcdr):
9832         * data.c (Fnumber_to_string):
9833         * data.c (Fstring_to_number):
9834         * data.c (Frem):
9835         * database.c (mark_database):
9836         * database.c (finalize_database):
9837         * database.c (Fdatabase_live_p):
9838         * database.c (Fdatabasep):
9839         * device-x.c (Fx_get_resource):
9840         * device.c (Fdfw_device):
9841         * dired.c:
9842         * dired.c (Ffile_name_completion):
9843         * dired.c (Ffile_name_all_completions):
9844         * dired.c (Fuser_name_completion):
9845         * dired.c (Fuser_name_completion_1):
9846         * dired.c (Fuser_name_all_completions):
9847         * doc.c (Fdocumentation):
9848         * doc.c (Fdocumentation_property):
9849         * doc.c (Fsubstitute_command_keys):
9850         * editfns.c:
9851         * editfns.c (Fchar_to_string):
9852         * editfns.c (Fstring_to_char):
9853         * editfns.c (Ftemp_directory):
9854         * editfns.c (Finsert_char):
9855         * editfns.c (Fbuffer_substring_no_properties):
9856         * editfns.c (Fnarrow_to_region):
9857         * editfns.c (Fchar_equal):
9858         * editfns.c (Fchar_Equal):
9859         * editfns.c (Ftranspose_regions):
9860         * emacs.c (Fdump_emacs):
9861         * eval.c (Fthrow):
9862         * eval.c (Fcommand_execute):
9863         * eval.c (Fautoload):
9864         * eval.c (Fbacktrace):
9865         * eval.c (Fbacktrace_frame):
9866         * events.c:
9867         * events.c (Fcopy_event):
9868         * events.c (Fcharacter_to_event):
9869         * events.c (Fevent_button):
9870         * events.c (Fevent_process):
9871         * extents.c:
9872         * extents.c (Fnext_extent_change):
9873         * extents.c (Fextent_property):
9874         * faces.c (Ffacep):
9875         * faces.c (Fmake_face):
9876         * file-coding.c:
9877         * file-coding.c (Fencode_shift_jis_char):
9878         * file-coding.c (Fencode_big5_char):
9879         * fileio.c (Ffile_name_directory):
9880         * fileio.c (Ffile_name_nondirectory):
9881         * fileio.c (Ffile_name_as_directory):
9882         * fileio.c (Fdirectory_file_name):
9883         * fileio.c (Ffile_truename):
9884         * fileio.c (Fsubstitute_in_file_name):
9885         * fileio.c (Ffile_modes):
9886         * fileio.c (Fset_file_modes):
9887         * fileio.c (Fset_default_file_modes):
9888         * fileio.c (Fverify_visited_file_modtime):
9889         * floatfns.c (Facos):
9890         * floatfns.c (Fasin):
9891         * floatfns.c (Fatan):
9892         * floatfns.c (Fcos):
9893         * floatfns.c (Fsin):
9894         * floatfns.c (Ftan):
9895         * floatfns.c (Fbessel_j0):
9896         * floatfns.c (Fbessel_j1):
9897         * floatfns.c (Fbessel_jn):
9898         * floatfns.c (Fbessel_y0):
9899         * floatfns.c (Fbessel_y1):
9900         * floatfns.c (Fbessel_yn):
9901         * floatfns.c (Ferf):
9902         * floatfns.c (Ferfc):
9903         * floatfns.c (Flog_gamma):
9904         * floatfns.c (Fexp):
9905         * floatfns.c (Fexpt):
9906         * floatfns.c (Flog):
9907         * floatfns.c (Flog10):
9908         * floatfns.c (Fsqrt):
9909         * floatfns.c (Fcube_root):
9910         * floatfns.c (Facosh):
9911         * floatfns.c (Fasinh):
9912         * floatfns.c (Fatanh):
9913         * floatfns.c (Fcosh):
9914         * floatfns.c (Fsinh):
9915         * floatfns.c (Ftanh):
9916         * floatfns.c (Fabs):
9917         * floatfns.c (Ffloat):
9918         * floatfns.c (Flogb):
9919         * floatfns.c (Fceiling):
9920         * floatfns.c (Ffloor):
9921         * floatfns.c (Fround):
9922         * floatfns.c (Ftruncate):
9923         * floatfns.c (Ffceiling):
9924         * floatfns.c (Fffloor):
9925         * floatfns.c (Ffround):
9926         * floatfns.c (Fftruncate):
9927         * fns.c (Fstring_equal):
9928         * fns.c (Fstring_lessp):
9929         * fns.c (concat2):
9930         * fns.c (concat3):
9931         * fns.c (vconcat2):
9932         * fns.c (vconcat3):
9933         * fns.c (Fsubstring):
9934         * fns.c (Fassoc):
9935         * fns.c (Fold_assoc):
9936         * fns.c (assoc_no_quit):
9937         * fns.c (Fassq):
9938         * fns.c (Fold_assq):
9939         * fns.c (assq_no_quit):
9940         * fns.c (Frassoc):
9941         * fns.c (Fold_rassoc):
9942         * fns.c (Frassq):
9943         * fns.c (Fold_rassq):
9944         * fns.c (rassq_no_quit):
9945         * fns.c (Fremassoc):
9946         * fns.c (remassoc_no_quit):
9947         * fns.c (Fremassq):
9948         * fns.c (remassq_no_quit):
9949         * fns.c (Fremrassoc):
9950         * fns.c (Fremrassq):
9951         * fns.c (remrassq_no_quit):
9952         * fns.c (Fsort):
9953         * fns.c (Fplist_get):
9954         * fns.c (Fplist_put):
9955         * fns.c (Fplist_remprop):
9956         * fns.c (Fplist_member):
9957         * fns.c (Flax_plist_get):
9958         * fns.c (Flax_plist_put):
9959         * fns.c (Flax_plist_remprop):
9960         * fns.c (Flax_plist_member):
9961         * fns.c (Fequal):
9962         * fns.c (Fold_equal):
9963         * fns.c (Frequire):
9964         * fns.c (Fbase64_encode_region):
9965         * fns.c (Fbase64_encode_string):
9966         * fns.c (Fbase64_decode_region):
9967         * frame.c:
9968         * frame.c (frame_matches_frame_spec):
9969         * frame.c (device_matches_device_spec):
9970         * frame.c (next_frame):
9971         * frame.c (previous_frame):
9972         * frame.c (Fnext_frame):
9973         * frame.c (Fprevious_frame):
9974         * frame.c (Fframe_property):
9975         * frame.c (Fset_frame_height):
9976         * frame.c (Fset_frame_size):
9977         * frame.h:
9978         * glyphs.c:
9979         * glyphs.c (if):
9980         * glyphs.c (decode_error_behavior_flag):
9981         * glyphs.c (Fmake_image_instance):
9982         * indent.c (Findent_to):
9983         * intl.c (Fignore_defer_gettext):
9984         * keymap.c (Fkeymapp):
9985         * keymap.c (Flookup_key):
9986         * lread.c:
9987         * lread.c (Fload_internal):
9988         * lread.c (Feval_buffer):
9989         * lread.c (Feval_region):
9990         * macros.c (Fexecute_kbd_macro):
9991         * marker.c (set_marker_internal):
9992         * marker.c (Fset_marker):
9993         * marker.c (set_marker_restricted):
9994         * marker.c (Fcopy_marker):
9995         * marker.c (noseeum_copy_marker):
9996         * menubar.c:
9997         * menubar.c (Fpopup_menu):
9998         * minibuf.c:
9999         * mule-charset.c (Fcharset_name):
10000         * mule-charset.c (Fchar_charset):
10001         * mule-charset.c (Fchar_octet):
10002         * mule-charset.c (Fsplit_char):
10003         * mule-wnnfns.c (Fwnn_open):
10004         * mule-wnnfns.c (Fwnn_dict_comment):
10005         * mule-wnnfns.c (Fwnn_quit_henkan):
10006         * mule-wnnfns.c (Fwnn_word_toroku):
10007         * mule-wnnfns.c (Fwnn_word_sakujo):
10008         * mule-wnnfns.c (Fwnn_word_use):
10009         * mule-wnnfns.c (Fwnn_hindo_set):
10010         * objects.c:
10011         * objects.c (Fmake_color_instance):
10012         * objects.c (Fmake_font_instance):
10013         * print.c (Fwrite_char):
10014         * process.c:
10015         * process.c (mark_process):
10016         * process.c (print_process):
10017         * process.c (get_process_from_usid):
10018         * process.c (Fprocessp):
10019         * process.c (Fprocess_live_p):
10020         * process.c (Fget_process):
10021         * process.c (Fget_buffer_process):
10022         * process.c (get_process):
10023         * process.c (Fprocess_id):
10024         * process.c (Fprocess_name):
10025         * process.c (Fprocess_command):
10026         * process.c (init_process_io_handles):
10027         * process.c (start_process_unwind):
10028         * process.c (Fstart_process_internal):
10029         * process.c (Fopen_multicast_group_internal):
10030         * process.c (Fset_process_window_size):
10031         * process.c (read_process_output):
10032         * process.c (send_process):
10033         * process.c (Fprocess_tty_name):
10034         * process.c (Fset_process_buffer):
10035         * process.c (Fprocess_buffer):
10036         * process.c (Fprocess_mark):
10037         * process.c (set_process_filter):
10038         * process.c (Fset_process_filter):
10039         * process.c (Fprocess_filter):
10040         * process.c (Fprocess_send_region):
10041         * process.c (Fprocess_send_string):
10042         * process.c (exec_sentinel):
10043         * process.c (Fset_process_sentinel):
10044         * process.c (Fprocess_sentinel):
10045         * process.c (status_notify):
10046         * process.c (Fprocess_status):
10047         * process.c (Fprocess_exit_status):
10048         * process.c (process_send_signal):
10049         * process.c (Fprocess_send_eof):
10050         * process.c (deactivate_process):
10051         * process.c (remove_process):
10052         * process.c (Fdelete_process):
10053         * process.c (kill_buffer_processes):
10054         * process.c (Fprocess_kill_without_query):
10055         * process.c (Fprocess_kill_without_query_p):
10056         * rangetab.c:
10057         * rangetab.c (Fget_range_table):
10058         * rangetab.c (Fput_range_table):
10059         * rangetab.c (Fremove_range_table):
10060         * rangetab.c (Fclear_range_table):
10061         * search.c:
10062         * search.c (Fskip_chars_forward):
10063         * search.c (Fskip_chars_backward):
10064         * search.c (Fskip_syntax_forward):
10065         * search.c (Fskip_syntax_backward):
10066         * search.c (search_command):
10067         * search.c (Freplace_match):
10068         * search.c (Fregexp_quote):
10069         * select.c (Fown_selection_internal):
10070         * select.c (Fselection_owner_p):
10071         * select.c (Fselection_exists_p):
10072         * select.c (Fget_selection_internal):
10073         * specifier.c:
10074         * symbols.c:
10075         * symbols.c (Fintern):
10076         * symbols.c (Fintern_soft):
10077         * symbols.c (Funintern):
10078         * symbols.c (Fapropos_internal):
10079         * symbols.c (Fset_default):
10080         * syntax.c:
10081         * syntax.c (Fsyntax_table_p):
10082         * syntax.c (Fcopy_syntax_table):
10083         * syntax.c (Fset_syntax_table):
10084         * syntax.c (Fchar_syntax):
10085         * syntax.c (syntax_match):
10086         * syntax.c (Fmatching_paren):
10087         * syntax.c (Fforward_word):
10088         * syntax.c (scan_lists):
10089         * syntax.c (Fscan_lists):
10090         * syntax.c (Fscan_sexps):
10091         * syntax.c (Fparse_partial_sexp):
10092         * toolbar.c (Fcheck_toolbar_button_syntax):
10093         * tooltalk.doc:
10094         * window.c:
10095         * window.c (Fwindowp):
10096         * window.c (Fwindow_live_p):
10097         * window.c (Fwindow_point):
10098         * window.c (Fdelete_window):
10099         * window.c (Fnext_window):
10100         * window.c (Fprevious_window):
10101         * window.c (Fother_window):
10102         * window.c (window_loop):
10103         * window.c (Fget_lru_window):
10104         * window.c (Fsplit_window):
10105         * window.c (Fenlarge_window):
10106         * window.c (Fenlarge_window_pixels):
10107         * window.c (Fshrink_window):
10108         * window.c (Fshrink_window_pixels):
10109         * window.c (change_window_height):
10110         * window.c (Fwindow_configuration_p):
10111         * window.c (Fcurrent_window_configuration):
10112         * window.h:
10113         * casefiddle.c (casify_object):
10114         * casefiddle.c (Fupcase):
10115         * casefiddle.c (Fdowncase):
10116         * casefiddle.c (Fcapitalize):
10117         * casefiddle.c (Fupcase_initials):
10118         * casefiddle.c (casify_region_internal):
10119         * casefiddle.c (casify_region):
10120         * casefiddle.c (Fupcase_region):
10121         * casefiddle.c (Fdowncase_region):
10122         * casefiddle.c (Fcapitalize_region):
10123         * casefiddle.c (Fupcase_initials_region):
10124         * casefiddle.c (Fupcase_word):
10125         * casefiddle.c (Fdowncase_word):
10126         * casefiddle.c (Fcapitalize_word):
10127         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10128         Replace 0 with '\0' when working with bytes.
10129         Replace initial "(" with "\(" in docstrings.
10130
10131 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10132
10133         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10134
10135         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10136
10137 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10138
10139         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10140
10141 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10142
10143         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10144         correctly.
10145
10146 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10147
10148         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10149         (inhibit_auto_save_session): New variable.
10150         (vars_of_fileio): Declare and initialize them.
10151         * fileio.c (Fdo_auto_save): Don't create session file if
10152         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10153
10154 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10155
10156         * sgiplay.c (play_internal): C++ compilability.
10157         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10158         * callproc.c (Fold_call_process_internal):
10159         Remove unused vars `env', `first'.
10160         * scrollbar.c (update_scrollbar_instance):
10161         #### unused var `current_window'.
10162         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10163         etc. within #ifdef NOT_YET.
10164         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10165         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10166         * specifier.c (specifier_instance):
10167         #### unused var `tag'.
10168         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10169
10170 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10171
10172         * fns.c (Fbutlast):
10173         * fns.c (list_sort):
10174         * fns.c (Ffillarray):
10175         * fns.c (bytecode_nconc2):
10176         * fns.c (Fnconc):
10177         * fns.c (mapcar1):
10178         * fns.c (Fmapconcat):
10179         Be pedantically 64-bit correct.  For the time when someone will
10180         want to have a list with length > 2**32.
10181
10182         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10183         Work around MIPSpro compiler bug.
10184
10185         * process-unix.c (unix_kill_child_process): Add snarky comment.
10186         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10187
10188         * config.h.in: Oops, _getpt ==> _getpty
10189
10190 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10191
10192         * config.h.in:
10193         * regex.c:
10194         Use void*, not char*, as return type of alloca().
10195
10196         * alloc.c (free_marker): Side effect inside assert expression!
10197
10198 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10199
10200         * mule-charset.c (Fset_charset_ccl_program): To check
10201         if the given ccl program is valid, use setup_ccl_program()
10202         instead of CHECK_VECTOR().
10203         (Fmake_charset): Likewise.
10204
10205 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10206
10207         * faces.c (get_extent_fragment_face_cache_index):
10208         Fix cachel.merged_faces memory leak.
10209
10210 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10211
10212         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10213         Reset MSB of octets obtained by DECODE_SJIS
10214         because of the incompatibility with Emacs.
10215         (ccl_driver)<CCL_ENCODE_SJIS>:
10216         Set MSB of octets before passing them to
10217         ENCODE_SJIS because of the incompatibility
10218         with Emacs.
10219
10220 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10221
10222         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10223         (DECLARE_LRECORD): Undo the last change.
10224         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10225
10226 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10227
10228         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10229         the implementation to lrecord_implementations_table.
10230
10231 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10232
10233         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10234         initial value of `lrecord_type_##c_name' and
10235         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10236         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10237         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10238         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10239         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10240
10241 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10242
10243         * miscplay.c (sndcnv8S_2mono):
10244         (sndcnv2monounsigned):
10245         (sndcnvULaw_2linear):
10246         (sndcnv16swap):
10247         Remove implementation-defined behavior.
10248
10249 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10250
10251         * input-method-xlib.c: Warning suppression.
10252
10253 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10254
10255         * mule-ccl.c: Sync up with Emacs 21.0.90.
10256         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10257         Do nothing.
10258         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10259         Likewise.
10260         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10261         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10262         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10263         leading char belongs to official 2-dimensional charset.
10264         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10265         write the given character as is.  Otherwise,
10266         if it is a multibyte char, convert it by
10267         non_ascii_set_charptr_emchar, then write it.
10268         (CCL_WRITE_STRING): Likewise.
10269         (ccl_get_compiled_code): New function.
10270         (setup_ccl_program): When ccl_prog is invalid,
10271         return -1.
10272         (Fregister_code_conversion_map): New function.
10273         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10274
10275         * mule-ccl.h: Sync up with Emacs 21.0.90.
10276         (Fregister_ccl_program): export it.
10277
10278         * redisplay-msw.c (separate_textual_runs):
10279         If ccl program is not valid, don't do ccl conversion.
10280
10281         * redisplay-x.c (separate_textual_runs): Ditto.
10282
10283         * file-coding.c (Fmake_coding_system):
10284         When type is ccl and value is vector, register it
10285         with a proper symbol.  And checks whether the
10286         given ccl program is valid.
10287         (mule_decode): When calling ccl_driver, if src indicates
10288         NULL pointer, set an empty string instead.
10289         (mule_encode): Likewise.
10290
10291 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10292
10293         The following large batch of changes gets us back to a state of
10294         C++ compilability.  Extbyte is now a char, which means that
10295         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10296
10297         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10298
10299         * sound.c (Fplay_sound): Type correctness.
10300
10301         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10302         (x_get_window_property): Type correctness.
10303         (receive_incremental_selection): unsigned char ==> Extbyte
10304         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10305         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10306         (Fx_store_cutbuffer_internal): Type correctness.
10307
10308         * process-unix.c (try_to_initialize_subtty): Type correctness.
10309
10310         * objects-x.c (x_print_color_instance): Type correctness.
10311         (x_print_font_instance): Type correctness.
10312         (x_list_fonts): SExtbyte ==> Extbyte.
10313         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10314         (x_find_charset_font): SExtbyte ==> Extbyte.
10315         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10316         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10317         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10318         Use bufbyte_strcmp.
10319
10320         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10321         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10322         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10323         (BYTE_C0_P): Use bit ops for char-signedness safety.
10324         (BYTE_C1_P): Use bit ops for char-signedness safety.
10325         (CHARSET_BY_LEADING_BYTE):
10326         (CHARSET_BY_ATTRIBUTES):
10327         Always use inline function.
10328         Use type_checking_assert.
10329         Hide chlook.
10330
10331         * mule-charset.c (non_ascii_charptr_copy_char):
10332         Modify to work with both ASCII and non-ASCII characters.
10333         Improve docs and variable names.
10334         Replace over-clever fall-through switch with a simple loop.
10335         (Lstream_get_emchar_1):
10336         Replace over-clever fall-through switch with a simple loop.
10337
10338         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10339         Warning suppression.
10340
10341         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10342         the return value of Lstream_getc, which could be EOF as well.
10343
10344         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10345
10346         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10347         APIs can be used on Extbytes without casts.  Risky!
10348         (SExtbyte): Remove.
10349         (UExtbyte): Remove.
10350
10351         * input-method-xlib.c (XIM_init_device):
10352         Use Xlib.h instead of IntrinsicP.h.
10353         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10354         which will break in X11R7.
10355         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10356         to call XRegisterIMInstantiateCallback with correct types.
10357
10358         * gui-x.c (button_item_to_widget_value): Type correctness.
10359
10360         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10361
10362         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10363         (xbm_instantiate_1): Type correctness.
10364         (BUILD_GLYPH_INST):  Type correctness.
10365
10366         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10367
10368         * file-coding.c:
10369         (decode_coding_sjis):
10370         (decode_coding_big5):
10371         (decode_coding_ucs4):
10372         (decode_coding_utf8):
10373         (decode_coding_iso2022):
10374         (decode_coding_no_conversion):
10375         Make all decoding functions take an Extbyte * arg.
10376         (encode_coding_sjis):
10377         (encode_coding_big5):
10378         (encode_coding_ucs4):
10379         (encode_coding_utf8):
10380         (encode_coding_iso2022):
10381         (encode_coding_no_conversion):
10382         Make all encoding functions take a Bufbyte * arg.
10383         Use size_t instead of unsigned int for memory sizes.
10384         Only cast to unsigned char whenever dereferencing Extbyte *.
10385
10386         * doc.c (unparesseuxify_doc_string): Type correctness.
10387
10388         * console-x.c (split_up_display_spec):
10389         Rewrite without using details of internal string representation.
10390         (x_semi_canonicalize_device_connection): Type correctness.
10391
10392         * config.h.in:
10393         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10394         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10395         (HAVE_XFREE386): Removed.
10396
10397         * buffer.h (DEC_CHARPTR): `const' correctness.
10398         (bufbyte_strcmp): New.
10399         (bufbyte_memcmp): New.
10400
10401         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10402
10403         * buffer.h (XCHAR_OR_CHAR_INT):
10404         Always use inline function.
10405         Remove redundant type checking assert() - XINT will abort quite nicely.
10406
10407 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10408
10409         * search.c (Freplace_match): Set newtext to an empty string.
10410
10411 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10412
10413         * s/decosf1-3.h: Remove #include of stropts.h
10414         * s/ptx.h: Remove #include of stropts.h
10415         * s/usg5-4.h: Remove #include of stropts.h
10416         * sysproc.h:
10417         * config.h.in:
10418         Use stropts.h, not sys/stropts.h.
10419         Use strtio.h, not sys/strtio.h.
10420
10421 2000-10-04  Martin Buchholz <martin@xemacs.org>
10422
10423         * XEmacs 21.2.36 is released.
10424
10425 2000-09-21  Andy Piper  <andy@xemacs.org>
10426
10427         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10428         changes still involve copying the widget tree.
10429         (update_widget_face): make sure a change is register in the widget
10430         tree. Call update_tab_widget_face appropriately.
10431         (update_tab_widget_face): ditto.
10432         (x_tab_control_redisplay): make sure non-structural changes still
10433         involve copying the widget tree.
10434
10435 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10436
10437         * lread.c (locate_file): Check the path element is non-nil.
10438
10439 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10440
10441         * lisp.h: Warning suppression for SCO compilers.
10442
10443         * redisplay-tty.c (reset_tty_modes): Fix crash.
10444         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10445
10446 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10447
10448         Big signal/process handling overhaul.  Bugs fixed:
10449         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10450         M-x comint-kill-subjob should work for both values nil and t of
10451         process-connection-type. It was broken on most platforms.
10452         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10453         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10454         * process-unix.c: Signal/Process handling overhaul.
10455         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10456         (allocate_pty): Use all available modern methods of allocating
10457         ptys, falling back to old style BSD allocation as a last resort.
10458         Use allegedly more secure Unix98 pty allocation by default.
10459         (allocate_pty_the_old_fashioned_way): New. the last resort.
10460         (unix_create_process): Push ptem, ldterm, ttcompat where
10461         available.  Autoconfiscate.
10462         (try_to_initialize_subtty): New.
10463         (unix_kill_child_process): Proper signal handling for ptys on most
10464         platforms, using special knowledge of AIX, BSD, etc...
10465         (unix_create_process): Always disconnect_controlling_terminal() for
10466         subprocesses, whether using ptys or not.
10467         * process.h: Remove old getpt-dependent PTY code.
10468         * process.c (Fprocess_send_signal): New, obvious generic function.
10469         (decode_signal): New.
10470         (Finterrupt_process):
10471         (Fkill_process):
10472         (Fquit_process):
10473         (Fstop_process):
10474         (Fcontinue_process):
10475         (Fsignal_process): Use decode_signal.
10476         (process_send_signal):
10477         Many docstring corrections.
10478         Allow any signal to be sent to a process object.
10479         * config.h.in: Add symbols for big signal/process overhaul.
10480         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
10481         * sysproc.h: Include process-related headers, where available:
10482         sys/stropts.h sys/strtio.h pty.h libutil.h
10483         * s/irix4-0.h:
10484         * s/irix5-0.h:
10485         * s/cygwin32.h:
10486         * s/gnu.h:
10487         * s/linux.h:
10488         * s/hpux.h:
10489         * s/aix3-1.h:
10490         Remove old S&M pty stuff.
10491         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
10492         * systty.h: Simplify cpp hackery, improve comments.
10493         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
10494
10495         * editfns.c (Fformat_time_string):
10496         Be a little more paranoid with the return value of ctime.
10497
10498         * fileio.c (check_executable):
10499         (check_writable):
10500         Use symbolic constants X_OK, W_OK.
10501
10502         * console-x.c (split_up_display_spec): Fix a warning.
10503
10504 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10505
10506         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
10507         * ntproc.c (sys_spawnve): make_string ==> build_string
10508         Small clarity improvements.
10509
10510 2000-09-30  Martin Buchholz  <martin@xemacs.org>
10511
10512         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
10513
10514         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
10515
10516         * config.h.in (HAVE_STRCASECMP): Remove.
10517
10518 2000-09-29  Martin Buchholz  <martin@xemacs.org>
10519
10520         * redisplay-output.c (redisplay_output_pixmap):
10521         Cleaner and possibly more 64-bit correct code.
10522
10523 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
10524
10525         * dumper.c (pdump_load_finish): move restoration of
10526         `noninteractive1' to emacs.c (main_1).
10527         * emacs.c (main_1): protect LISP-visible command-line flags
10528         from pdump_load().
10529
10530 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
10531
10532         * Makefile.in.in (versionclean):  Use EXE_TARGET and
10533         DUMP_TARGET instead of literal program names.
10534
10535 2000-09-20  Martin Buchholz  <martin@xemacs.org>
10536
10537         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
10538
10539 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10540
10541         * *: Spelling mega-patch
10542
10543 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10544
10545         * fns.c (bad_bad_turtle):
10546         Delete "Eek!" comment, since we fixed the bug to which it refers.
10547
10548 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10549
10550         * alloca.c: Replace REGISTER with register.
10551
10552 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
10553
10554         * file-coding.c (ucs_to_char): Use countof.
10555
10556 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10557
10558         * file-coding.c: (ucs_to_char):
10559         (complex_vars_of_file_coding):
10560         Use countof instead of sizeof.
10561         Use CHECK_NATNUM instead of CHECK_INT.
10562
10563         * sysdep.c (strcasecmp): Remove.
10564         * device-x.c (ascii_strcasecmp): New.
10565         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
10566         Avoid using non-standard non-portable strcasecmp.
10567
10568 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10569
10570         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
10571         * font-lock.c: remove reference to emacsfns.h.
10572         * search.c: small doc improvement.
10573         * event-Xt.c: correct file names in comments.
10574         * console-x.h Correct file names in comments.
10575         * frame.c: Correct file names in comments.
10576         * event-stream.c: remove Energize from comments.
10577
10578 2000-09-15  Martin Buchholz  <martin@xemacs.org>
10579
10580         * symeval.h (DEFERROR_STANDARD):
10581         (DEFERROR):
10582         (DEFSYMBOL):
10583         (DEFSYMBOL_NO_DUMP):
10584         (DEFSYMBOL_MULTIWORD_PREDICATE):
10585         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
10586         (DEFKEYWORD):
10587         The construct &##name is not sensible C.
10588         Fixes compilation errors with Unixware native compiler.
10589
10590 2000-09-14  Martin Buchholz  <martin@xemacs.org>
10591
10592         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
10593         (next_frame_internal): Removed.  We now just have next_frame.
10594         (next_frame):
10595         Write a simpler and cleaner one-pass algorithm.
10596         Remove called_from_delete_device arg and #ifdefed-out code.
10597         (previous_frame):
10598         Renamed from prev_frame.  Update callers.
10599         Cleaned up to have an analogous implementation to next_frame.
10600         (other_visible_frames_internal): Remove the
10601         called_from_delete_device bogus arg, and hence, remove this
10602         function.  Just use other_visible_frames().
10603
10604         * window.c (Fnext_window):
10605         Prettify docstring.
10606         Since next_frame() is guaranteed to return a frame, remove check
10607         for nil inserted in previous patch.
10608         (Fprevious_window):
10609         Prettify docstring.
10610         Make code look more like Fnext_window.
10611         (window_loop):
10612         Respect the `console' arg when iterating through windows.
10613         Fixes bug: (get-buffer-window buffer t device) not respecting
10614         the `device' arg.
10615         This function needs more work, as others have pointed out.
10616
10617         * frame.h: Rename prev_frame to previous_frame.
10618         device_matches_console_spec no longer takes a `frame' arg.
10619
10620         * s/gnu.h:
10621         * s/linux.h:
10622         * s/hpux.h:
10623         Use EMACS_BLOCK_SIGNAL instead of sigblock.
10624         From "Golubev I. N." <gin@mo.msk.ru>.
10625
10626         * make-src-depend: Fix typo.
10627
10628 2000-09-13  Martin Buchholz  <martin@xemacs.org>
10629
10630         * window.c (Fnext_window):
10631         next_frame() might return nil, not a frame.
10632         Fixes this crash:
10633         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10634
10635         * frame.c (next_frame_internal):
10636         We've passed a frame if we've passed its device.
10637         Fixes this crash:
10638         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10639 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
10640
10641 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10642
10643         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10644         Allow option to suppress accelerators in menu/dialog items.
10645         (populate_or_checksum_helper): Pass dialog title through above.
10646
10647 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10648
10649         * event-msw.c (mswindows_key_to_emacs_keysym):
10650         Add "pause" key, fix "menu" key.
10651
10652 2000-09-09  Martin Buchholz  <martin@xemacs.org>
10653
10654         * eval.c (reinit_vars_of_eval):
10655         Increase max_lisp_eval_depth to 1000,
10656         required for thai-xtis.el to byte-compile under some circumstances.
10657
10658 2000-09-04  Martin Buchholz  <martin@xemacs.org>
10659
10660         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
10661         From Kenichi Handa.
10662
10663 2000-09-01  Martin Buchholz  <martin@xemacs.org>
10664
10665         * make-src-depend: Make the generated Makefiles smaller.
10666
10667         * s/hpux.h (SETUP_SLAVE_PTY):
10668         Provide a %d in the format string for the errno argument.
10669
10670         * editfns.c (Ftemp_directory):
10671         Warning fix.
10672         Avoid buffer overrun on very long file name.
10673
10674         * input-method-xlib.c (XIM_init_device):
10675         6th parameter of XRegisterIMInstantiateCallback has different
10676         pointer types on different OSes, so simply cast to (void *).
10677
10678         * unexhp9k800.c: Warning fixes.  Fiddly changes.
10679
10680         * sysdll.c (dll_open):
10681         shl_load will hang hard if passed a NULL filename.
10682         Simply return NULL for compatibility with dlopen.
10683         * sysdll.c: Conform to XEmacs coding standards.
10684
10685         * sysdep.c (get_pty_max_bytes):
10686         Support pty input lines longer than 512 bytes on HP-UX 10.20.
10687
10688 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10689
10690         * tooltalk.c: Add #include <syssignal.h>
10691
10692 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
10693
10694         * s/hpux.h: Don't use undefined function sigunblock().
10695
10696 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10697
10698         * config.h.in: Add HAVE_BALLOON_HELP.
10699         * emacs.c: Use HAVE_BALLOON_HELP.
10700         * Makefile.in.in (x_objs):
10701         Make Balloon Help conditional on finding shape.h.
10702
10703 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
10704
10705         * syntax.c (regex_emacs_buffer_p): New variable.
10706         * syntax.h (regex_emacs_buffer_p): extern.
10707         * search.c (looking_at_1):
10708         (string_match_1):
10709         (fast_string_match):
10710         (search_buffer): Set regex_emacs_buffer_p.
10711         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
10712         when before_dot, at_dot, after_dot.
10713
10714 2000-08-23  Andy Piper  <andy@xemacs.org>
10715
10716         * gui-x.c (popup_selection_callback): Only set action_occurred
10717         when we really have an image instance.
10718         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
10719
10720 2000-08-23  Andy Piper  <andy@xemacs.org>
10721
10722         * gui-msw.c (mswindows_handle_gui_wm_command): set
10723         action_occurred.
10724         * gui-x.c (popup_selection_callback): ditto.
10725
10726         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
10727         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
10728         (struct Lisp_Image_Instance): add action_occurred flag.
10729
10730         * glyphs.c (redisplay_subwindow): use action_occurred flag.
10731         (image_instance_changed): ditto.
10732         (reset_frame_subwindow_instance_cache): only unmap windows - do
10733         not remove them from the cache also.
10734
10735         * glyphs-widget.c (tab_control_update): better debug.
10736         (progress_gauge_update): ditto.
10737         (layout_update): ditto.
10738         (layout_instantiate): ditto.
10739         (tab_control_order_only_changed): cope with null pending items.
10740
10741         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
10742         debug. Force selection of an item when an action occurred. Cope
10743         with null pending_items.
10744         (mswindows_progress_gauge_redisplay): better debug.
10745         * glyphs-x.c (x_tab_control_redisplay): ditto.
10746
10747         * redisplay.c (redisplay_frame): reset the frame cache if the
10748         frame is garbaged.
10749
10750         * window.c (Fset_window_configuration): potentially re-enable
10751         frame cache reset.
10752         (window_unmap_subwindows): need to finalize instances here since
10753         it is only used in mark_window_as_deleted.
10754
10755 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
10756
10757         * nas.c (SndOpenDataForReading):
10758         nas.c (WaveOpenDataForReading):
10759         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
10760         Somehow escaped from the 2000-08-14 patch.
10761
10762 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
10763
10764         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
10765         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
10766
10767 2000-08-21  Andy Piper  <andy@xemacs.org>
10768
10769         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
10770         window if it is not already displayed.
10771
10772         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
10773         it is not already displayed.
10774
10775         * window.c (Fset_window_configuration): don't reset the frame
10776         cache.
10777
10778         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
10779         instances from the frame cache if we are actually finalizing them.
10780         (reset_frame_subwindow_instance_cache): reset frame cache only
10781         after unmapping everything.
10782         (map_subwindow): set displayed flag after mapping.
10783
10784 2000-08-21  Martin Buchholz  <martin@xemacs.org>
10785
10786         * data.c (indirect_function):
10787         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
10788
10789         * eval.c (function_argcount):
10790         Use original function when signaling errors.
10791
10792 2000-08-18  Andy Piper  <andy@xemacs.org>
10793
10794         * frame.c (delete_frame_internal): use new
10795         free_frame_subwindow_instances name.
10796
10797         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
10798         (add_tab_item): make return type correct.
10799         (mswindows_tab_control_instantiate): assert index of tab.
10800         (mswindows_tab_control_redisplay): Re-code to use
10801         gui_item_equal_sans_selected and gui_item_list_find_selected.
10802
10803         * glyphs-widget.c (tab_control_update): Correct comment.
10804
10805         * window.c (window_unmap_subwindows): use new
10806         unmap_subwindow_instance_cache_mapper.
10807         (window_unmap_subwindows_cache_mapper): deleted.
10808         (Fset_window_configuration): comparisons should now be with
10809         EQ. Preserve the subwindow instance cache across configuration
10810         changes.
10811         (allocate_window): ditto.
10812         (make_dummy_parent): ditto.
10813
10814         * glyphs.c (free_frame_subwindow_instances): rename from
10815         free_frame_subwindow_instance_cache. finalize all instances rather
10816         than just those in the display cache.
10817         (finalize_all_subwindow_instances): walk windows unmapping and
10818         finalizing subwindows.
10819         (unmap_subwindow_instance_cache_mapper): moved from
10820         window.c. Allow finalization as well as unmapping.
10821
10822         * gui.c (gui_item_list_find_selected): new function.
10823
10824         * gui.h (gui_item_list_find_selected): declare.
10825
10826         * glyphs-x.c (x_tab_control_redisplay): pick tab
10827         explicitly. Re-code to use gui_item_equal_sans_selected and
10828         gui_item_list_find_selected.
10829
10830         * glyphs-x.h: add lwlib-utils.h
10831
10832         * buffer.c (Frecord_buffer): undo previous change.
10833
10834 2000-08-09  Vin Shelton  <acs@xemacs.org>
10835
10836         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
10837         possible.  Create temporary files more securely.  The patch was
10838         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
10839         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
10840         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
10841         for details.
10842
10843 2000-08-07  Ben Wing  <ben@xemacs.org>
10844
10845         * getloadavg.c: remove duplicate (and windows-breaking)
10846         includes of fcntl.h and sys/file.h.
10847
10848         * nt.c: remove duplicate getloadavg() definition.
10849
10850         * sysdll.h (Qdll_filename_encoding): add missing stand-in
10851         encodings.
10852
10853 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10854
10855         * eval.c (function_argcount): If function needs to be autoloaded
10856         actually use the loaded definition.
10857         GCPRO function.
10858
10859 2000-08-05  Ben Wing  <ben@xemacs.org>
10860
10861         * getloadavg.c: add prototype for getloadavg().  remove
10862         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
10863         of the code).  remove duplicate header includes.
10864
10865         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
10866
10867         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
10868         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
10869         useful load average.
10870
10871         * alloc.c (reinit_alloc_once_early): removed references to
10872         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
10873         the lisp vars are the only things referencing the malloc_sbrk_*
10874         vars, and they were already if 0'd out.  these vars only exist
10875         in the older malloc.c, which is basically unused, and they're
10876         only for informational purposes.
10877
10878         * m\*.h: removed useless VIRT_ADDR_VARIES.
10879
10880         * m\powerpc.h: removed stray NO_ARG_ARRAY.
10881
10882 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10883
10884         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
10885         color if the image is a mono pixmap.
10886
10887 2000-07-30  Ben Wing  <ben@xemacs.org>
10888
10889         * Makefile.in.in (release):
10890         Remove stray @.
10891
10892         * buffer.c (directory_is_current_directory):
10893         * dired-msw.c (mswindows_get_files):
10894         * dired.c:
10895         * dired.c (Fdirectory_files):
10896         * dired.c (file_name_completion_stat):
10897         * dired.c (Ffile_attributes):
10898         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
10899         preprocessor tricks, to avoid problems on some machines
10900         (e.g. SCO).
10901
10902         * callproc.c (egetenv): GC docs.
10903
10904         * console-msw.h:
10905         * console-msw.h (struct mswindows_dialog_id):
10906         * lrecord.h (lrecord_type):
10907         New object for use with MSW dialogs.
10908
10909         * console.h (struct console_methods):
10910         New enable/disable frame methods, for proper modal dialogs.
10911
10912         * device-msw.c (msprinter_default_printer): Fix to follow
10913         proper Mule conventions.
10914
10915         * device-msw.c:
10916         * device-msw.c (signal_open_printer_error):
10917         * device-msw.c (msprinter_init_device):
10918         * device-msw.c (ensure_not_printing):
10919         * device-msw.c (plist_get_margin):
10920         * device-msw.c (Fmsprinter_select_settings):
10921         * device-msw.c (finalize_devmode):
10922         * device-msw.c (Fmsprinter_settings_despecialize):
10923         * device-msw.c (signal_enum_priner_error):
10924         * extents.c (decode_extent):
10925         * extents.c (decode_map_extents_flags):
10926         * extents.c (decode_extent_at_flag):
10927         * extents.c (Fextent_at):
10928         * extents.c (Fextents_at):
10929         * extents.c (symbol_to_glyph_layout):
10930         [[[[2]]]] Use structured errors.
10931
10932         * dialog-msw.c:
10933         * dialog-msw.c (mswindows_is_dialog_msg):
10934         * dialog-msw.c (mark_mswindows_dialog_id):
10935         * dialog-msw.c (dialog_proc):
10936         * dialog-msw.c (handle_question_dialog_box):
10937         * dialog-msw.c (syms_of_dialog_mswindows):
10938         Define new object to clean up marking; use it as a dialog identifier.
10939         Call new delete-dialog-box-hook.
10940
10941         * dialog-x.c (dbox_selection_callback):
10942         * dialog-x.c (dbox_descriptor_to_widget_value):
10943         * dialog-x.c (x_make_dialog_box_internal):
10944         Call new delete-dialog-box-hook.
10945         Return an id.
10946
10947         * dialog.c:
10948         * dialog.c (syms_of_dialog):
10949         * dialog.c (vars_of_dialog):
10950         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10951
10952         * eval.c:
10953         * eval.c (signal_call_debugger):
10954         when noninteractive, output stack traces on the console instead
10955         of in a (never-seen) buffer.
10956
10957         * eval.c (signal_type_error):
10958         * eval.c (invalid_argument_2):
10959         * lisp.h:
10960         new funs for use w/structured errors.
10961
10962         * event-Xt.c:
10963         * event-Xt.c (x_to_emacs_keysym):
10964         * event-Xt.c (describe_event):
10965         * event-Xt.c (emacs_Xt_event_handler):
10966         * event-Xt.c (vars_of_event_Xt):
10967         * event-msw.c:
10968         * event-msw.c (mswindows_wnd_proc):
10969         * event-msw.c (vars_of_event_mswindows):
10970         rename {x,mswindows}-debug-events to debug-{}-events for
10971         consistency with other debug-foo variables.
10972
10973         * event-stream.c:
10974         document next-event more clearly.
10975
10976         * fileio.c (Ffile_name_directory):
10977         * fileio.c (Ffile_name_nondirectory):
10978         * fileio.c (Funhandled_file_name_directory):
10979         * fileio.c (file_name_as_directory):
10980         * fileio.c (Ffile_name_as_directory):
10981         * fileio.c (directory_file_name):
10982         * fileio.c (Fdirectory_file_name):
10983         * fileio.c (Fmake_temp_name):
10984         * fileio.c (Ffile_truename):
10985         * fileio.c (Fsubstitute_in_file_name):
10986         * fileio.c (expand_and_dir_to_file):
10987         * fileio.c (barf_or_query_if_file_exists):
10988         * fileio.c (check_executable):
10989         * fileio.c (Ffile_exists_p):
10990         * fileio.c (Ffile_writable_p):
10991         * fileio.c (Ffile_directory_p):
10992         * fileio.c (Ffile_regular_p):
10993         * fileio.c (Ffile_modes):
10994         * fileio.c (Ffile_newer_than_file_p):
10995         * fileio.c (Fverify_visited_file_modtime):
10996         * fileio.c (Fset_visited_file_modtime):
10997         * fileio.c (auto_save_1):
10998         (1). (2).
10999         fix up gcpro's.
11000
11001         * frame-msw.c:
11002         * frame-msw.c (mswindows_init_frame_1):
11003         * frame-msw.c (mswindows_enable_frame):
11004         * frame-msw.c (error_frame_unsizable):
11005         * frame-msw.c (msprinter_init_frame_1):
11006         * frame-msw.c (msprinter_init_frame_3):
11007         * frame-msw.c (console_type_create_frame_mswindows):
11008         (2).
11009         implement new enable/disable frame methods.
11010
11011         * frame-x.c:
11012         * frame-x.c (x_enable_frame):
11013         * frame-x.c (console_type_create_frame_x):
11014         implement new enable/disable frame methods.
11015
11016         * frame.c:
11017         * frame.c (Fdisable_frame):
11018         * frame.c (syms_of_frame):
11019         * frame.h (struct frame):
11020         implement new enable/disable frame methods/functions.
11021
11022         * general-slots.h:
11023         add initial-focus.
11024
11025         * glyphs-msw.c (mswindows_widget_instantiate):
11026         comment that initial-focus should be implemented.
11027
11028         * glyphs-widget.c:
11029         * glyphs-widget.c (check_valid_instantiator):
11030         * glyphs-widget.c (check_valid_orientation):
11031         * glyphs-widget.c (check_valid_tab_orientation):
11032         * glyphs-widget.c (check_valid_justification):
11033         * glyphs-widget.c (check_valid_border):
11034         * glyphs-widget.c (check_valid_callback):
11035         * glyphs-widget.c (check_valid_int_or_function):
11036         * glyphs-widget.c (check_valid_string_or_vector):
11037         * glyphs-widget.c (check_valid_item_list_1):
11038         * glyphs-widget.c (widget_validate):
11039         * glyphs-widget.c (combo_box_validate):
11040         * glyphs-widget.c (widget_instantiate):
11041         * glyphs-widget.c (syms_of_glyphs_widget):
11042         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11043         * glyphs-widget.c (image_instantiator_combo_box):
11044         * glyphs-widget.c (image_instantiator_scrollbar):
11045         * glyphs-widget.c (image_instantiator_tab_control):
11046         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11047         (2).
11048         support (unimplemented) keyword initial-focus.
11049         reindent long macros.
11050
11051         * glyphs-x.c (x_redisplay_widget):
11052         * glyphs-x.c (x_button_instantiate):
11053         * glyphs-x.c (x_button_redisplay):
11054         * glyphs-x.c (x_progress_gauge_instantiate):
11055         * glyphs-x.c (x_edit_field_instantiate):
11056         * glyphs-x.c (x_combo_box_instantiate):
11057         * glyphs-x.c (x_tab_control_instantiate):
11058         * glyphs-x.c (x_label_instantiate):
11059         * gui-x.c:
11060         * gui-x.c (button_item_to_widget_value):
11061         * gui-x.c (gui_items_to_widget_values_1):
11062         * gui-x.c (gui_item_children_to_widget_values):
11063         * gui-x.c (gui_items_to_widget_values):
11064         * gui-x.h:
11065         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11066         add new flag to gui-parsing routines to indicate whether
11067         accelerator specs should be supported.
11068
11069         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11070
11071         * glyphs.h (struct Lisp_Image_Instance):
11072         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11073         add initial-focus flag.
11074
11075         * gui.c:
11076         * gui.c (syms_of_gui):
11077         * gui.c (vars_of_gui):
11078         clean up menu-no-selection-hook.
11079
11080         * gui.h:
11081         support delete-dialog-box-hook.
11082
11083         * lread.c (Fload_internal):
11084         * lread.c (locate_file_in_directory_mapper):
11085         (1).
11086
11087         * lrecord.h:
11088         * lrecord.h (struct toolbar_button):
11089         * lrecord.h (syms_of_toolbar):
11090         document how to create a new object.
11091
11092         * menubar-msw.c (mswindows_char_is_accelerator):
11093         may be called on frames w/o menus.
11094
11095         * menubar.c (vars_of_menubar):
11096         clean up :filter docs.
11097
11098         * nt.c (readdir):
11099         * ntproc.c:
11100         (1).
11101
11102         * process-nt.c:
11103         * process-nt.c (validate_signal_number):
11104         * process-nt.c (signal_cannot_launch):
11105         * process-nt.c (nt_create_process):
11106         * process-nt.c (nt_send_process):
11107         * process-nt.c (nt_kill_child_process):
11108         * process-nt.c (nt_open_network_stream):
11109         * process-nt.c (syms_of_process_nt):
11110         (2).
11111         delete quote-handling.  call new lisp code that does it better.
11112
11113         * process-unix.c (connect_to_file_descriptor):
11114         * process-unix.c (allocate_pty):
11115         * process-unix.c (unix_send_process):
11116         * process-unix.c (unix_kill_child_process):
11117         * process-unix.c (unix_open_network_stream):
11118         * process-unix.c (unix_open_multicast_group):
11119         (1). (2).
11120
11121         * process.c:
11122         * process.c (Fstart_process_internal):
11123         (2).  need to canonicalize process path even if absolute.
11124
11125         * select-msw.c (symbol_to_ms_cf):
11126         * select-msw.c (ms_cf_to_symbol):
11127         * select-msw.c (cf_is_autofreed):
11128         * select-msw.c (mswindows_destroy_selection):
11129         * select.c:
11130         * select.c (syms_of_select):
11131         * select.h:
11132         support dibv5, fix bugs. (from Mike Alexander)
11133
11134         * select.c (Fget_selection_internal):
11135         * select.c (select_convert_out):
11136
11137         * sysdep.c:
11138         * sysdep.c (xemacs_stat):
11139         renamed.
11140
11141         * sysdep.c (mkdir):
11142         * sysdep.c (rmdir):
11143         but keep original stat() here because we provide encapsulation
11144         around these funs.
11145
11146         * sysfile.h:
11147         * sysfile.h (fstat):
11148         remove stat garbage.
11149
11150         * syswindows.h:
11151         fix X/MSW conflict.
11152         don't include tchar.h.  it's inappropriate because it makes
11153         compile-time distinctions when we want runtime distinctions.
11154         (we provide our own tchar replacements)
11155
11156         * toolbar.c:
11157         use default object printer for toolbar-button.
11158
11159         * unexcw.c:
11160         make sure we don't encapsulate.
11161
11162         * window.c (vars_of_window):
11163         emphasize that temp-buffer-show-hook is obsolete.
11164
11165 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11166
11167         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11168         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11169
11170         * events.c (Fevent_timestamp_lessp):
11171         Not 64-bit clean.  Use EMACS_INT, not int.
11172
11173 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11174
11175         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11176         unsigned int and changed the last enum to
11177         lrecord_type_last_built_in_type.
11178         (lrecord_implementations_table): changed prototype to know how
11179         long the array is supposed to be.
11180         (lrecord_type_count): new unsigned int to keep track of the
11181         current number of lisp lrecord types.
11182         (DEFINE_EXTERNAL_LRECORD):
11183         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11184         dynamic-modules to declare new lisp types. They are the same
11185         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11186         int for each new type, and increment lrecord_type_count by 1.
11187
11188         * alloc.c (lrecord_implementations_table): Changed to reference
11189         lrecord_type_last_built_in_type for the size of the array.
11190         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11191
11192 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11193
11194         * glyphs.h (check_valid_item_list): Renamed from
11195         check_valid_item_list_1.
11196
11197 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11198
11199         * select.c (Qselect_coerce): New.
11200         * select.c (Vselection_coercion_alist): New.
11201         * select.c (syms_of_select): Declare.
11202         * select.c (get-selection-internal): Use it.
11203         Use the new select-coerce functionality.
11204
11205         * select.c (select_coerce): New.
11206         * select.h (select_coerce): Declare.
11207         New function to coerce one type of data into another.
11208
11209 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11210
11211         * callproc.c (Fcall_process_internal):
11212         (Fcall_process_internal):
11213         * process-unix.c (unix_create_process):
11214         Save and restore the value of errno, so that error messages are accurate.
11215
11216 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11217
11218         * elhash.c (print_hash_table):
11219         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11220         Prettify docstrings and indentation.
11221
11222 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11223
11224         * window.c (Fwindow_pixel_edges): Subtract frame border and
11225         gutter size.
11226
11227 2000-07-31  Andy Piper  <andy@xemacs.org>
11228
11229         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11230         will acknowledge the change.
11231
11232         * glyphs.h: declare tab_control_order_only_changed.
11233
11234         * glyphs-x.c (x_tab_control_redisplay): use
11235         tab_control_order_only_changed.
11236
11237         * glyphs-widget.c (tab_control_order_only_changed): new function.
11238
11239         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11240         tab_control_order_only_changed.
11241
11242         * gui.c (gui_item_equal_sans_selected): new function.
11243         (gui_item_equal): use it.
11244
11245         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11246         :properties in favor of :items..
11247
11248         * glyphs-widget.c (check_valid_item_list): rename from
11249         check_valid_item_list_1.
11250         (check_valid_item_list_1): renamed.
11251         (combo_box_validate): deprecate :properties in favor of :items.
11252         (widget_instantiate): ditto.
11253         (tab_control_update): ditto.
11254         (image_instantiator_combo_box): ditto.
11255         (image_instantiator_tree_view): ditto.
11256         (image_instantiator_tab_control): ditto.
11257         (layout_post_instantiate): remove dead code.
11258
11259         * print.c (debug_print_no_newline): only write to debugger if in
11260         WIN32_NATIVE.
11261
11262         * elhash.c (Fmake_hash_table): update doc string.
11263
11264         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11265         messages whilst in GC. This at least stops XEmacs crashing but has
11266         the potential for wierd behaviour.
11267
11268 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11269
11270         * config.h.in:
11271         Make existence of s&m files optional.
11272
11273         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11274         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11275         * s/gnu.h: Remove HAVE_GETLOADAVG.
11276         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11277         * s/sol2.h: Remove HAVE_GETLOADAVG.
11278         * lisp.h: Remove getloadavg() declaration.
11279         * fns.c:
11280         Include <sys/loadavg.h> if available.
11281         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11282         * config.h.in:  Group together getloadavg()-related macros.
11283         Use only configure-time tests to detect getloadavg().
11284
11285 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11286
11287         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11288
11289 2000-07-25  Andy Piper  <andy@xemacs.org>
11290
11291         * syswindows.h: add tchar.h for native builds.
11292
11293         * frame.c (syms_of_frame): remove set-glyph-image.
11294
11295         * general-slots.h: add Qset_glyph_image.
11296
11297         * glyphs-widget.c (layout_update): add domain arg to
11298         set-glyph-image.
11299         (syms_of_glyphs_widget): remove set-glyph-image.
11300
11301 2000-07-23  Ben Wing  <ben@xemacs.org>
11302
11303         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11304         Vpopup_frame_list.
11305
11306 2000-07-22  Andy Piper  <andy@xemacs.org>
11307
11308         * symsinit.h: add syms_of_win32().
11309
11310         * gui-msw.c (syms_of_gui_mswindows): remove
11311         Fmswindows_shell_execute.
11312         (Fmswindows_shell_execute): moved to win32.c.
11313
11314         * emacs.c (main_1): add syms_of_win32 ().
11315
11316         * win32.c (init_potentially_nonexistent_functions): rewrite in
11317         compiler-friendly terms.
11318         (Fmswindows_shell_execute): move here from gui-msw.c.
11319         (syms_of_win32): new.
11320
11321         * device-msw.c (Fmswindows_printer_list): clean up args to
11322         EnumPrinters.
11323         Don't include tchar under cygwin or mingw.
11324         (msprinter_default_printer): make cygwin-friendly.
11325
11326 2000-07-21  Andy Piper  <andy@xemacs.org>
11327
11328         * glyphs-widget.c (image_instantiator_tree_view): use tab
11329         control's update function.
11330         (layout_property): new function. Retrieve items.
11331
11332         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11333         function. Re-populate the tree view from the pending items.
11334
11335         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11336         is designated the parent if the domain is an image instance. This
11337         is needed so that dirtiness can be cascade up the hierarchy and
11338         thus for layout children to be redisplayed correctly.
11339         (allocate_image_instance): rename glyph -> parent.
11340
11341         * redisplay.h: change redisplay_output_layout signature.
11342
11343         * redisplay-msw.c (mswindows_output_display_block): use domain
11344         arg.
11345
11346         * redisplay-x.c (x_output_display_block): use domain arg.
11347
11348 2000-07-10  Andy Piper  <andy@xemacs.org>
11349
11350         * window.c (Fset_window_configuration): add comment.
11351
11352         * redisplay-output.c (compare_runes):
11353         (redisplay_output_subwindow): redisplay rather than update subwindow.
11354         (redisplay_output_layout): ditto.
11355
11356         * redisplay-msw.c (mswindows_frame_output_end):
11357         (mswindows_frame_output_end): make defer window pos optional.
11358
11359         * lisp.h: add Flast.
11360
11361         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11362         normalize method. Change update method to be for changed
11363         instantiators. Add redisplay method. Change signature of layout
11364         method.
11365         (struct Lisp_Image_Instance): add instantiator.
11366         (IMAGE_INSTANCE_INSTANTIATOR): new.
11367         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11368         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11369         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11370
11371         * glyphs.c:
11372         (find_instantiator_differences): new function.
11373         (Fset_instantiator_property): new convenience function.
11374         (check_image_instance_structure): strictly check for vector
11375         instantiators.
11376         (normalize_image_instantiator): make non-static.
11377         (instantiate_image_instantiator): pass on dest_mask and use new
11378         signatures for image_instance_layout and friends.
11379         (mark_image_instance): mark the instantiator. Mark the subwindow
11380         face not the widget face.
11381         (image_instance_equal): add instantiator.
11382         (image_instance_hash): ditto.
11383         (allocate_image_instance): ditto.
11384         (Fset_image_instance_property): removed.
11385         (Fimage_instance_file_name): ditto.
11386         (Fcolorize_image_instance): ditto.
11387         (image_instance_layout): add offsets to be set.
11388         (update_image_instance): new function. update an image instance
11389         from its changed instantiator.
11390         (inherit_normalize): add dest_mask.
11391         (xbm_normalize): ditto.
11392         (xface_normalize): ditto.
11393         (xpm_normalize): ditto.
11394         (text_update): set_property -> update.
11395         (image_instantiate): use the glyph identity as a hash key, not the
11396         instantiator.
11397         (glyph_width): use new image_instance_layout signature.
11398         (glyph_ascent): ditto.
11399         (glyph_descent): ditto.
11400         (glyph_height): ditto.
11401         (glyph_query_geometry): ressurrect.
11402         (glyph_layout): ditto.
11403         (redisplay_subwindow): update -> redisplay.
11404         (syms_of_glyphs): add Fset_instantiator_property.
11405         (image_instantiator_format_create): set_property -> update.
11406
11407         * glyphs-x.c:
11408         (autodetect_normalize): add dest_maks to signature.
11409         (x_redisplay_subwindow): update -> redisplay.
11410         (x_redisplay_widget): ditto.
11411         (x_button_redisplay): ditto.
11412         (x_progress_gauge_redisplay): ditto.
11413         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11414         stacking order.
11415         (console_type_create_glyphs_x): update -> redisplay.
11416         (image_instantiator_format_create_glyphs_x): ditto.
11417
11418         * glyphs-widget.c:
11419         (check_valid_instantiator): disallow glyphs in the instantiator,
11420         they must now be vectors.
11421         (check_valid_instantiator_list): ditto.
11422         (glyph_instantiator_to_glyph): use internal symbol rather than
11423         intern.
11424         (widget_update): renamed from widget_set_property. Call cascaded
11425         update methods.
11426         (redisplay_widget): renamed from update_widget.
11427         (widget_layout): image_instance_layout now takes position as well
11428         as size.
11429         (widget_normalize): ditto.
11430         (widget_instantiate): ditto.
11431         (tab_control_query_geometry) ditto.:
11432         (tab_control_update): renamed from tab_control_set_property.
11433         (progress_gauge_update): set_property -> update.
11434         (layout_normalize): rewrite so that child instantiators are
11435         normalized also.
11436         (layout_update): new function. Create glyphs from the normalized
11437         children and cope with any other layout keywords. We do not
11438         instantiate children here that will be take care of by
11439         redisplay_output_layout.
11440         (layout_instantiate): call layout_update and not much else.
11441         (layout_post_instantiate): not sure whether this is needed
11442         anymore.
11443         (layout_query_geometry): query glyph geometry rather than
11444         image_instance geometry.
11445         (layout_layout): set offsets from pass in parameters. Use glyph
11446         geometry and layout functions rather than image instance ones.
11447         (native_layout_layout): ditto.
11448         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11449         (image_instantiator_widget): set_property -> update.
11450         (image_instantiator_buttons): ditto.
11451         (image_instantiator_progress_guage): ditto.
11452         (image_instantiator_tab_control): ditto.
11453         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11454         (image_instantiator_layout): add update method.
11455
11456         * glyphs-msw.c (bmp_normalize):
11457         (mswindows_resource_normalize): add dest_mask so that it can be
11458         proprogated by layout_normalize.
11459         (begin_defer_window_pos): make optional because it may not be the
11460         right thing to do and it introduces differences with X.
11461         (mswindows_unmap_subwindow): ditto.
11462         (mswindows_map_subwindow): ditto.
11463         (mswindows_redisplay_subwindow): renamed from
11464         mswindows_update_subwindow.
11465         (mswindows_redisplay_widget): ditto.
11466         (mswindows_button_redisplay): renamed from
11467         mswindows_button_update. Update is now what the instantiation
11468         function does for a changed instantiator.
11469         (mswindows_progress_gauge_instantiate): set the progress value
11470         here if appropriate.
11471         (mswindows_tab_control_redisplay): cope with re-ordering of the
11472         members of the tab widget by simply selecting the new top
11473         widget. This makes things appear ok if you click on a tab.
11474         (mswindows_combo_box_instantiate): image_instance_layout now takes
11475         position as well as size.
11476         (mswindows_progress_gauge_redisplay): renamed from
11477         mswindows_progress_gauge_update.
11478         (console_type_create_glyphs_mswindows): fix update -> redisplay.
11479         (image_instantiator_format_create_glyphs_mswindows): ditto.
11480
11481         * glyphs-eimage.c (jpeg_normalize):
11482         (gif_normalize):
11483         (png_normalize):
11484         (tiff_normalize): add dest_mask so that it can be proprogated by
11485         layout_normalize.
11486
11487         * elhash.c:
11488         (print_hash_table):
11489         (hash_table_weakness_validate):
11490         (decode_hash_table_weakness):
11491         (Fhash_table_weakness):
11492         (Fhash_table_type):
11493         (syms_of_elhash): use Ben's naming scheme for hashtable types..
11494
11495         * console.h (struct console_methods): move update_* to
11496         redisplay_*.
11497
11498 2000-07-20  Ben Wing  <ben@xemacs.org>
11499
11500         * *.[ch] (XSETOBJ): remove unused middle argument.
11501         lisp-disunion.h: correct wrap_object() to one argument.
11502
11503 2000-07-15  Ben Wing  <ben@xemacs.org>
11504
11505         * s/cygwin32.h:
11506         * s/cygwin32.h (CYGWIN_CONV_PATH):
11507         Add missing logb prototype for v1.1.
11508         Use post-b20 names and alias to pre-b20 names when pre-b20.
11509
11510         * s/windowsnt.h: [5].
11511
11512 2000-07-15  Ben Wing  <ben@xemacs.org>
11513
11514         * Makefile.in.in (x_objs):
11515         * Makefile.in.in (sheap_objs):
11516         * Makefile.in.in (objs):
11517         added win32.o, cosmetic cleanups.
11518
11519         * alloc.c (Fmake_byte_code):
11520         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
11521         etc. macros which declare their own args now.
11522
11523         * alloc.c (syms_of_alloc):
11524         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
11525
11526         * buffer.c:
11527         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
11528
11529         * buffer.c (Fget_file_buffer):
11530         Fixed GCPRO problem.
11531
11532         * buffer.c (get_truename_buffer):
11533         Fixed comment about GC checking.
11534
11535         * buffer.c (syms_of_buffer):
11536         Undeclared those dedicated frame funs.
11537         [2].
11538
11539         * buffer.h:
11540         Define convenience macros for internal/external conversions.
11541         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
11542         and Qenvironment_variable_encoding for cleaner code.
11543
11544         * bufslots.h:
11545         Remove dedicated-frame; in lisp.
11546
11547         * bytecode.c (funcall_compiled_function):
11548         [1].
11549
11550         * bytecode.c (syms_of_bytecode):
11551         [2].
11552
11553         * console-msw.c:
11554         * console-msw.c (mswindows_show_console): Rewrote.
11555
11556         * console-msw.c (Fmswindows_debugging_output): New.
11557         Sends to OutputDebugString (special MSWin debugger interface).
11558
11559         * console-msw.c (Fmswindows_message_box):
11560         Fixed stupid bugs so it works when called from kill-emacs.
11561
11562         * console-msw.c (syms_of_console_mswindows):
11563         Declare Fmswindows_debugging_output.
11564
11565         * console-msw.h:
11566         New MSWin prototypes.
11567
11568         * console-msw.h (struct mswindows_frame):
11569         New entry last-click-mods for improved button-modifier support.
11570
11571         * console-msw.h (FRAME_MSWINDOWS_POPUP):
11572         New struct entry `popup' with corresponding accessor.
11573
11574         * console-x.c:
11575         * console-x.c (split_up_display_spec):
11576         * console-x.c (get_display_arg_connection):
11577         * console-x.c (x_semi_canonicalize_console_connection):
11578         * console-x.c (x_canonicalize_device_connection):
11579         [[[6]]]: Change char to more specific type.
11580         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
11581
11582         * console-x.c (x_semi_canonicalize_console_connection):
11583         * console-x.c (x_canonicalize_device_connection):
11584         [[[9]]]: Fix up error signalling to use new structured error system.
11585
11586         * console-x.h:
11587         [[[4]]]: Define codesys aliases:
11588         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
11589         Qx_color_name_encoding, Qx_display_name_encoding.
11590
11591         * console.h (struct console_methods):
11592         New method make_dialog_box_internal supersedes older
11593         popup_dialog_box method.
11594
11595         * data.c:
11596         Define many new errors, part of new structured errors.
11597
11598         * data.c (init_errors_once_early):
11599         * data.c (syms_of_data):
11600         [2].
11601
11602         * device-msw.c (mswindows_init_device):
11603         [[[5]]]: Cleanup to support NT 3.51.
11604
11605         * device-msw.c (decode_devmode): Cleanup.
11606
11607         * device-msw.c (mswindows_handle_print_setup_dialog_box):
11608         * device-msw.c (mswindows_handle_print_dialog_box):
11609         * device-msw.c (mswindows_handle_page_setup_dialog_box):
11610         * device-msw.c (syms_of_device_mswindows):
11611         Delete the dialog box primitives recently introduced by Kirill and
11612         instead interface to general dialog box interface.
11613
11614         * device-x.c:
11615         * device-x.c (compute_x_app_name):
11616         * device-x.c (x_init_device):
11617         * device-x.c (Fx_valid_keysym_name_p):
11618         * device-x.c (Fx_set_font_path):
11619         [6].
11620         [7].
11621
11622         * device.h (wrap_device): New.
11623         First of its kind; meant to replace XSETDEVICE.
11624
11625         * dialog-msw.c: Many file-dialog symbols.
11626
11627         * dialog-msw.c (mswindows_register_popup_frame): New.
11628         * dialog-msw.c (mswindows_is_dialog_msg): New.
11629         For supporting kbd traversal in dialog boxes.
11630
11631         * dialog-msw.c (dialog_proc):
11632         Support hitting ESC in dialogs.
11633
11634         * dialog-msw.c (struct):
11635         Common dialog box errors.
11636
11637         * dialog-msw.c (handle_file_dialog_box): New.
11638         Add file dialog code.
11639
11640         * dialog-msw.c (handle_question_dialog_box):
11641         Redo existing code to support new question dialog syntax.
11642
11643         * dialog-msw.c (console_type_create_dialog_mswindows):
11644         We support new dialog console method.
11645
11646         * dialog-msw.c (syms_of_dialog_mswindows):
11647         * dialog-msw.c (vars_of_dialog_mswindows):
11648         New file dialog symbols, vars.
11649
11650         * dialog-x.c:
11651         * dialog-x.c (maybe_run_dbox_text_callback):
11652         * dialog-x.c (dbox_descriptor_to_widget_value):
11653         * dialog-x.c (x_make_dialog_box_internal):
11654         * dialog-x.c (console_type_create_dialog_x):
11655         Mule-ize entire file.
11656         Redo to support question dialog syntax.
11657         [6].
11658
11659         * dialog.c:
11660         * dialog.c (Fmake_dialog_box_internal):
11661         * dialog.c (syms_of_dialog):
11662         Kill old popup-dialog-box, replace with new primitive.
11663         Just call device method or signal error.
11664
11665         * eldap.c (Fldap_open):
11666         * eldap.c (Fldap_search_basic):
11667         * eldap.c (Fldap_add):
11668         * eldap.c (Fldap_modify):
11669         [1].
11670         [7].
11671
11672         * emacs.c:
11673         * emacs.c (make_arg_list_1):
11674         * emacs.c (make_arg_list):
11675         Mule-ize call to dll_init().
11676         [6].
11677         [8].
11678
11679         * emacs.c (make_argc_argv):
11680         * emacs.c (free_argc_argv):
11681         * emacs.c (init_cmdargs):
11682         * emacs.c (main_1):
11683         * emacs.c (Fkill_emacs):
11684         * emacs.c (Fdump_emacs):
11685         Update comments about what can be used in syms_* etc.
11686         Call init_win32() when necessary.
11687         Fix up MS Win dialog box in kill-buffer to actually work right.
11688         [7].
11689
11690         * eval.c:
11691         * eval.c (For):
11692         * eval.c (Fand):
11693         * eval.c (Fprogn):
11694         * eval.c (Fprog1):
11695         * eval.c (Fprog2):
11696         * eval.c (FletX):
11697         * eval.c (Flet):
11698         * eval.c (condition_case_3):
11699         * eval.c (Feval):
11700         * eval.c (function_argcount):
11701         * eval.c (funcall_lambda):
11702         [1].
11703
11704         * eval.c (type_error): New.
11705         * eval.c (maybe_type_error): New.
11706         * eval.c (continuable_type_error): New.
11707         * eval.c (maybe_continuable_type_error): New.
11708         * eval.c (type_error_with_frob): New.
11709         * eval.c (maybe_type_error_with_frob): New.
11710         * eval.c (continuable_type_error_with_frob): New.
11711         * eval.c (maybe_continuable_type_error_with_frob): New.
11712         New functions for use with structured errors.
11713
11714         * event-Xt.c:
11715         * event-Xt.c (x_event_to_emacs_event):
11716         Buttons are now modifiers too.
11717
11718         * event-Xt.c (emacs_Xt_current_event_timestamp):
11719         Implement new event method.
11720         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
11721
11722         * event-msw.c:
11723         * event-msw.c (ntpipe_shove_writer): [5].
11724         * event-msw.c (mswindows_enqueue_mouse_button_event):
11725         * event-msw.c (mswindows_drain_windows_queue):
11726         * event-msw.c (mswindows_wnd_proc): [7].
11727         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
11728         * event-msw.c (mswindows_modifier_state):
11729         Throughout: support new button modifiers.
11730
11731         * event-msw.c (emacs_mswindows_current_event_timestamp):
11732         Implement new event method.
11733         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
11734
11735         * event-stream.c:
11736         * event-stream.c (event_stream_current_event_timestamp): New.
11737         * event-stream.c (maybe_kbd_translate): New functionality.
11738         * event-stream.c (vars_of_event_stream):
11739         Document new kbd-translate-table functionality.
11740
11741         * event-stream.c (Fcurrent_event_timestamp): New.
11742         New primitive for use in fabricated events.
11743         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
11744
11745         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
11746
11747         * events.c:
11748         * events.c (Fmake_event):
11749         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
11750         [1].
11751         [9].
11752
11753         * events.c (format_event_object): fix gcc warnings.
11754
11755         * events.c (Fevent_timestamp): Document new primitives.
11756
11757         * events.c (TIMESTAMP_HALFSPACE): New.
11758
11759         * events.c (Fevent_timestamp_lessp): New.  New primitive for
11760         comparing timestamps correctly (half-space algorithm).
11761
11762         * events.c (Fevent_modifier_bits): Doc fix.
11763
11764         * events.c (Fevent_modifiers): Major doc addition.
11765         * events.c (event_x_y_pixel_internal): Typo fix.
11766         * events.c (syms_of_events): Declare new primitives.
11767
11768         * events.h:
11769         Update long comment for button modifiers, timestamps.
11770
11771         * events.h (struct event_stream):
11772         New current_event_timestamp method.
11773
11774         * extents.c:
11775         * extents.c (extent_in_region_p):
11776         * extents.c (decode_extent):
11777         * extents.c (Fset_extent_parent):
11778         * extents.c (decode_map_extents_flags):
11779         Fix gcc warnings.
11780         [9].
11781
11782         * extents.c (struct extent_at_arg):
11783         * extents.c (decode_extent_at_flag):
11784         * extents.c (extent_at_mapper):
11785         * extents.c (extent_at_bytind):
11786         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
11787         * extents.c (Fextents_at): New primitive. [9].
11788         * extents.c (symbol_to_glyph_layout): [9].
11789         Support new primitive `extents-at'.
11790
11791
11792         * extents.c (get_text_property_bytind):
11793         extent_at_bytind has another arg.
11794         [9].
11795
11796         * extents.c (syms_of_extents): New primitive.
11797
11798         * file-coding.c (Fmake_coding_system): [1].
11799         * file-coding.c (subsidiary_coding_system): fix gcc warning
11800         * file-coding.c (syms_of_file_coding): [2].
11801
11802         * fileio.c (Fexpand_file_name):
11803         * fileio.c (Fsysnetunam):
11804         * fileio.c (Ffile_exists_p):
11805         * fileio.c (Ffile_executable_p):
11806         * fileio.c (Fverify_visited_file_modtime):
11807         Clean up GCPROing.
11808
11809         * fileio.c (syms_of_fileio): [2].
11810
11811         * filelock.c (lock_file_1):
11812         * filelock.c (current_lock_owner):
11813         * filelock.c (lock_if_free):
11814         * filelock.c (lock_file):
11815         * filelock.c (unlock_file):
11816         Clean up GCPROing.
11817
11818         * fns.c (concat): Fix gcc warning.
11819
11820         * fns.c (Fmember):
11821         * fns.c (Fold_member):
11822         * fns.c (Fmemq):
11823         * fns.c (Fold_memq):
11824         * fns.c (memq_no_quit):
11825         * fns.c (Fassoc):
11826         * fns.c (Fold_assoc):
11827         * fns.c (Fassq):
11828         * fns.c (Fold_assq):
11829         * fns.c (assq_no_quit):
11830         * fns.c (Frassoc):
11831         * fns.c (Fold_rassoc):
11832         * fns.c (Frassq):
11833         * fns.c (Fold_rassq):
11834         * fns.c (rassq_no_quit):
11835         * fns.c (Fdelete):
11836         * fns.c (Fold_delete):
11837         * fns.c (Fdelq):
11838         * fns.c (Fold_delq):
11839         * fns.c (delq_no_quit):
11840         * fns.c (Fremassoc):
11841         * fns.c (Fremassq):
11842         * fns.c (remassq_no_quit):
11843         * fns.c (Fremrassoc):
11844         * fns.c (Fremrassq):
11845         * fns.c (remrassq_no_quit):
11846         * fns.c (Freverse):
11847         * fns.c (mapcar1):
11848         [1].
11849
11850         * frame-msw.c (mswindows_init_frame_1):
11851         * frame-msw.c (mswindows_delete_frame):
11852         Register popups with dialog code so keyboard traversing works.
11853
11854         * frame-tty.c (tty_raise_frame_no_select): [1].
11855
11856         * frame-x.c:
11857         * frame-x.c (x_set_frame_text_value):
11858         * frame-x.c (x_set_frame_properties):
11859         * frame-x.c (x_create_widgets):
11860         [7].
11861
11862         * frame.c:
11863         * frame.c (Fmouse_pixel_position): Minor doc fixes.
11864
11865         * frame.h (wrap_frame): New.
11866         Macro like wrap_device.
11867
11868         * general.c:
11869         * general.c (SYMBOL):
11870         * general.c (syms_of_general):
11871         Major reorg.  This is now just a wrapper and symbols themselves
11872         are listed in general-slots.h.
11873
11874         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
11875         * glyphs-msw.c (mswindows_resource_instantiate): [5].
11876
11877         * glyphs-msw.c (mswindows_native_layout_instantiate):
11878         Add DS_CONTROL so keyboard traversal will work.
11879
11880         * glyphs-widget.c:
11881         * glyphs-widget.c (syms_of_glyphs_widget):
11882         Move some symbols to general-slots.h.
11883
11884         * glyphs-x.c:
11885         * glyphs-x.c (xbm_instantiate_1):
11886         * glyphs-x.c (x_xbm_instantiate):
11887         * glyphs-x.c (x_xface_instantiate):
11888         * glyphs-x.c (autodetect_instantiate):
11889         * glyphs-x.c (cursor_font_instantiate):
11890         * glyphs-x.c (x_update_widget):
11891         * glyphs-x.c (x_widget_instantiate):
11892         * glyphs.c (bitmap_to_lisp_data):
11893         * glyphs.c (pixmap_to_lisp_data):
11894         [7].
11895
11896         * glyphs.c (syms_of_glyphs):
11897         [2].
11898
11899         * gui-x.c:
11900         * gui-x.c (print_widget_value):
11901         * gui-x.c (menu_separator_style_and_to_external):
11902         * gui-x.c (add_accel_and_to_external):
11903         * gui-x.c (button_item_to_widget_value):
11904         * gui-x.c (gui_items_to_widget_values_1):
11905         * gui-x.c (gui_items_to_widget_values):
11906         * gui-x.c (syms_of_gui_x):
11907         * gui-x.c (vars_of_gui_x):
11908         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
11909         [9].
11910
11911         * gui-x.h:
11912         Muleize, prototype changes matching gui-x.c.
11913
11914         * gui.c:
11915         * gui.c (separator_string_p):
11916         * gui.c (gui_item_add_keyval_pair):
11917         * gui.c (make_gui_item_from_keywords_internal):
11918         * gui.c (signal_too_long_error):
11919         * gui.c (parse_gui_item_tree_item):
11920         * gui.c (syms_of_gui):
11921         * gui.c (vars_of_gui):
11922         * gui.h:
11923         menu-no-selection-hook moved here (used by MSWin).
11924         Move some symbols to general-slots.h.
11925         [6].
11926         [9].
11927
11928         * insdel.c (get_buffer_pos_char):
11929         * insdel.c (get_buffer_range_char):
11930         Add GC comments.
11931
11932         * keymap.c (keymap_lookup_directly):
11933         * keymap.c (keymap_store):
11934         * keymap.c (ensure_meta_prefix_char_keymapp):
11935         * keymap.c (describe_map):
11936         * keymap.h:
11937         Support new button modifiers.
11938
11939         * lisp-disunion.h (wrap_object):
11940         * lisp-disunion.h (XSETOBJ):
11941         Rename make_obj to wrap_object.
11942
11943         * lisp-union.h:
11944         * lisp-union.h (make_int):
11945         * lisp-union.h (make_char):
11946         Support wrap_object.
11947
11948         * lisp.h:
11949         * lisp.h (LIST_LOOP):
11950         * lisp.h (EXTERNAL_LIST_LOOP):
11951         * lisp.h (LIST_LOOP_2):
11952         * lisp.h (EXTERNAL_LIST_LOOP_1):
11953         * lisp.h (EXTERNAL_LIST_LOOP_2):
11954         * lisp.h (EXTERNAL_LIST_LOOP_3):
11955         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11956         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11957         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11958         * lisp.h (EXTERNAL_ALIST_LOOP_5):
11959         * lisp.h (EXTERNAL_ALIST_LOOP_6):
11960         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11961         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11962         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11963         * lisp.h (struct Lisp_Symbol):
11964         * lisp.h (maybe_continuable_error_with_frob):
11965         Fix up section comments.
11966         Add new types for char to indicate usage.
11967         Delete symbols auto-generated from general-slots.h.
11968         Add prototypes for structured error functions.
11969         Add long comments describing looping macros and change interface
11970         so that lvalues are automatically declared.
11971         Add NO_DECLARE macro in case callers want to declare lvalues
11972         themselves.
11973
11974         * lread.c (read_syntax_error):
11975         * lread.c (continuable_read_syntax_error):
11976         * lread.c (read_structure):
11977         * lread.c (sequence_reader):
11978         * lread.c (read_list_conser):
11979         * lread.c (read_compiled_function):
11980         Rename syntax_error and continuable_syntax_error to avoid clash
11981         with same-named structured error functions.
11982
11983         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11984         * menubar-msw.c (populate_menu_add_item):
11985         * menubar-msw.c (populate_or_checksum_helper):
11986         [5].
11987         [9].
11988
11989         * menubar-x.c:
11990         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11991         Mule-ize whole file.
11992
11993         * menubar.c (Fnormalize_menu_item_name): Add optimization.
11994
11995         * mule-charset.c (Fmake_charset):
11996         * mule-wnnfns.c (Fwnn_set_param):
11997         [1].
11998
11999         * ntproc.c (create_child):
12000         * ntproc.c (Fwin32_set_current_locale):
12001         Add comments portending doom.
12002
12003         * objects-msw.c:
12004         * objects-msw.c (old_font_enum_callback_2):
12005         * objects-msw.c (font_enum_callback_1):
12006         * objects-msw.c (mswindows_enumerate_fonts):
12007         [5].
12008
12009         * objects-x.c:
12010         * objects-x.c (allocate_nearest_color):
12011         * objects-x.c (x_parse_nearest_color):
12012         * objects-x.c (x_initialize_color_instance):
12013         * objects-x.c (x_print_color_instance):
12014         * objects-x.c (x_finalize_color_instance):
12015         * objects-x.c (x_valid_color_name_p):
12016         * objects-x.c (x_initialize_font_instance):
12017         * objects-x.c (x_print_font_instance):
12018         * objects-x.c (valid_x_font_name_p):
12019         * objects-x.c (truename_via_FONT_prop):
12020         * objects-x.c (truename_via_random_props):
12021         * objects-x.c (truename_via_XListFonts):
12022         * objects-x.c (x_font_truename):
12023         * objects-x.c (x_font_instance_truename):
12024         * objects-x.c (x_font_instance_properties):
12025         * objects-x.c (x_list_fonts):
12026         * objects-x.c (x_find_charset_font):
12027         Mule-ize entire file.
12028         [7].
12029
12030         * objects-x.h:
12031         Mule-verify.
12032
12033         * print.c:
12034         * print.c (std_handle_out_external):
12035         * print.c (debug_print_no_newline):
12036         * print.c (syms_of_print):
12037         Output to all debugger kinds in debug-print.
12038         Fix console-output code under MSWin to actually work.
12039
12040         * process-nt.c (send_signal):
12041         * process-nt.c (nt_create_process):
12042         Use newer Unicode macros.
12043
12044         * process-unix.c (unix_create_process):
12045         * process-unix.c (unix_canonicalize_host_name):
12046         * process-unix.c (unix_open_network_stream):
12047         [7].
12048
12049         * scrollbar-x.c:
12050         Mule-verify.
12051
12052         * search.c (syms_of_search):
12053         [2].
12054
12055         * select-msw.c (mswindows_destroy_selection):
12056         Use LIST_LOOP_2.
12057
12058         * select-x.c (symbol_to_x_atom):
12059         [7].
12060
12061         * select.c (syms_of_select):
12062         [2].
12063
12064         * sound.c (Fplay_sound_file):
12065         [7].
12066
12067         * specifier.c:
12068         * specifier.c (decode_specifier_type):
12069         * specifier.c (Fvalid_specifier_locale_type_p):
12070         * specifier.c (check_valid_locale_or_locale_type):
12071         * specifier.c (decode_locale):
12072         * specifier.c (decode_locale_type):
12073         * specifier.c (decode_locale_list):
12074         * specifier.c (check_valid_domain):
12075         * specifier.c (decode_specifier_tag_set):
12076         * specifier.c (Fcanonicalize_tag_set):
12077         * specifier.c (Fdefine_specifier_tag):
12078         * specifier.c (Fspecifier_tag_predicate):
12079         * specifier.c (check_valid_inst_list):
12080         * specifier.c (check_valid_spec_list):
12081         * specifier.c (decode_how_to_add_specification):
12082         * specifier.c (check_modifiable_specifier):
12083         * specifier.c (specifier_add_spec):
12084         * specifier.c (boolean_validate):
12085         * specifier.c (display_table_validate):
12086         [9].
12087
12088         * specifier.c (syms_of_specifier):
12089         Move some symbols to general-slots.h.
12090         [2].
12091
12092         * symbols.c:
12093         * symbols.c (Fmapatoms):
12094         * symbols.c (Fapropos_internal):
12095         Add GCPROs.
12096
12097         * symbols.c (set_default_buffer_slot_variable):
12098         * symbols.c (set_default_console_slot_variable):
12099         [1].
12100
12101         * symbols.c (defsymbol_massage_name_1):
12102         * symbols.c (defkeyword_massage_name):
12103         * symbols.c (deferror_1):
12104         * symbols.c (deferror):
12105         * symbols.c (deferror_massage_name_and_message):
12106         * symeval.h:
12107         * symeval.h (DEFSYMBOL):
12108         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12109
12110         * symbols.c (syms_of_symbols):
12111         [2].
12112
12113         * symsinit.h:
12114         * symsinit.h (init_win32): New.
12115         Also new is syms_of_dialog_mswindows.
12116
12117         * syswindows.h:
12118         Add new Unicode macros, missing Cygwin wide-char functions,
12119         convenience conversion macros for Qmswindows_tstr, macros for
12120         encapsulating required MSWin <-> Cygwin filename conversions,
12121         prototype for dynamically-extracted (not in NT 3.51) functions.
12122
12123         * toolbar-x.c:
12124         Mule-verify.
12125
12126         * tooltalk.c (Fadd_tooltalk_message_arg):
12127         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12128         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12129         [7].
12130
12131         * tooltalk.c (syms_of_tooltalk):
12132         [2].
12133
12134         * unexnt.c:
12135         * unexnt.c (unexec):
12136         Fix up headers, declaration of unexec() to be more standard.
12137
12138 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12139
12140         * offix.h: Revert change to guard macros - they're used in offix.c!
12141
12142 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12143
12144         * lisp.h: Defsubred Fdelete.
12145
12146         * console-msw.h:  (msprinter_default_printer): Added.
12147
12148         * console-msw.c (msprinter_canonicalize_console_connection):
12149         (msprinter_canonicalize_device_connection): Added.
12150
12151         * device-msw.c (msprinter_default_printer):
12152         (Fmswingows_get_default_printer):
12153         (signal_enum_priner_error):
12154         (Fmswingows_printer_list): Added.
12155
12156 2000-07-19  Martin Buchholz <martin@xemacs.org>
12157
12158         * XEmacs 21.2.35 is released.
12159
12160 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12161
12162         * select-x.c (x_handle_selection_request):
12163         Text selected in xemacs and pasted into xterm failed to appear.
12164         Spelling fixes and cosmetic changes.
12165
12166 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12167
12168         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12169         XEmacs frame (fix for doubling chars in dialog boxes).
12170
12171 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12172
12173         * select.c (select_convert_in, select_convert_out):
12174         Don't call intern() every time.
12175
12176         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12177         * select.c (vars_of_select): Initialise them.
12178
12179 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12180
12181         * select.c (selection-coercible-types): New.
12182
12183         * select.c (own-selection-internal):
12184         * select.c (get-selection-internal):
12185         MULE bug fix - these should default to COMPOUND_TEXT and not
12186         STRING for MULE. I think.
12187
12188         * select.c (select_convert_out): Use selection-coercible-types
12189         to find types that we can attempt to perform coercions on.
12190
12191 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12192
12193         * mule-wnnfns.c:
12194         * mule-canna.c:
12195         Add coding: cookie to identify encoding.
12196
12197         * mule-canna.c (CANNA_mode_keys): make static.
12198         Use proper prototypes, even for functions of no arguments.
12199         Remove external prototype for Fding().
12200
12201         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12202
12203         * select.c (syms_of_select): Add missing DEFSUBR.
12204
12205 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12206
12207         * select.c (get_selection_internal, own_selection_internal):
12208         Make the type default to STRING, rather than placing a nil type
12209         into Vselection_alist.
12210
12211 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12212
12213         * gpmevent.c (tty_selection_exists_p):
12214         * gpmevent.c (tty_own_selection):
12215         Updated parameter lists.
12216
12217 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12218
12219         * select.h (selection-alist): Removed declaration.
12220
12221         * select.h (get_local_selection):
12222         * select.c (get_local_selection):
12223         Made static.
12224
12225         * select.h (convert_selection): Removed declaration.
12226         * select.c (convert_selection): Removed.
12227         This function belongs in Lisp.
12228
12229         * select.h (select_convert_in): Declare.
12230         * select.h (select_convert_out): Declare.
12231         * select.c (select_convert_in): New.
12232         * select.c (select_convert_out): New.
12233         New conversion functions for other files to call.
12234
12235         * select.h (select_notify_buffer_kill): Declare.
12236         * select.c (select_notify_buffer_kill): New.
12237         New functions that get called from kill-buffer.
12238
12239         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12240         X-specific lisp code.
12241
12242         * select.h: Declare some of the lisp-visible functions for
12243         external use.
12244
12245         * select.c (clean_local_selection_data): Removed. This was
12246         a disgusting function, and previously should have been in
12247         select-x.c in any case. The functionality is now provided
12248         in select-convert-from-integer (select.el).
12249
12250         * select.c (available-selection-types): Fixed stupidity where
12251         INTEGER and ATOM got added twice. Also add STRING when we see an
12252         extent.
12253
12254         * select.c (get-selection-internal): Removed symbol stripping. No
12255         longer causes conversion when data comes from the internal cache.
12256
12257         * select.c (syms_of_select): Added new functions.
12258
12259         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12260         error checking - previously this called abort!
12261
12262         * select-x.c (x_own_selection): Changed comment.
12263
12264         * select-x.c (x_handle_selection_request): Use select_convert_out.
12265         Don't mess with selection-alist; it's an internal variable of select.c.
12266
12267         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12268
12269         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12270         rather than messing with selection-alist.
12271
12272         * select-msw.c (mswindows_get_foreign_selection):
12273         Use TO_INTERNAL_FORMAT rather than hacking.
12274
12275 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12276
12277         * process-unix.c (unix_open_multicast_group):
12278         (unix_open_multicast_group): Remove useless casts.
12279
12280 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12281
12282         * sound.c (Fplay_sound): Fix `unused variable' warning.
12283
12284         * emacs.c (main): Use correct type for _environ on SCO5.
12285
12286 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12287
12288         * console.h (own_selection_method):
12289         * console.h (selection_exists_p_method):
12290         * console.h (available_selection_types_method): New.
12291         * console.h (register_selection_data_type_method): New.
12292         * console.h (selection_data_type_name): New.
12293
12294         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12295         function & alist to track GlobalAlloc()'d handles that need
12296         releasing when the clipboard data gets replaced or emptied.
12297
12298         * event-msw.c (mswindows_wnd_proc): Call it.
12299
12300         * lisp.h, general.c (Qappend): New symbol representing a
12301         `how-to-add' mode.
12302
12303         * select.c (own-selection-internal):
12304         * select.c (selection-exists-p):
12305         * select.c (available-selection-types): New.
12306         * select.c (register-selection-data-type): New.
12307         * select.c (selection-data-type-name): New.  New functions to deal
12308         with device-specific selection data formats.
12309         * select.c (selection-converter-out-alist): Renamed.
12310         * select.c (selection-converter-in-alist): New.
12311         * select.c (selection-appender-alist): New.  Added new alists.
12312         * select.c (syms_of_select, vars_of_select): Added new symbols &
12313         variables.
12314         * select.c (get_local_selection): Split.
12315         * select.c: Removed spurious type checking - selections may now be
12316         of any type, not just strings.
12317         * select.c (own-selection-internal):
12318
12319         * select.h, select.c (convert_selection): New. Created
12320         convert_selection() function based on get_local_selection().
12321         * select.h, select.c (QCF_*): New symbols representing mswindows
12322         clipboard formats.
12323         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12324         symbols representing `how-to-add' modes.
12325
12326         * select-msw.c (x_sym_p): New.
12327         * select-msw.c (symbol_to_ms_cf): New.
12328         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12329         symbols & clipboard formats. Can also handle string names.
12330         * select-msw.c (mswindows_own_selection):
12331         * select-msw.c (mswindows_selection_exists_p):
12332         Added `data-type' parameter. Use it.
12333         * select-msw.c (mswindows_available_selection_types): New.
12334         * select-msw.c (mswindows_register_selection_data_type): New.
12335         * select-msw.c (mswindows_selection_data_type_name): New.
12336         * select-msw.c (mswindows_own_selection):
12337         * select-msw.c (mswindows_get_foreign_selection):
12338         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12339         * select-msw.c (console_create_select_mswindows): Added new methods.
12340         * select-msw.c (mswindows_destroy_selection): New.
12341         * select-msw.c (Vhandle_alist): New list.
12342         * select-msw.c (mswindows_own_selection):
12343
12344         * select-x.c (x_own_selection):
12345         * select-x.c (x_selection_exists_p):
12346         * select-x.c: Added some comments about maybe using new
12347         functionality.
12348         * select-x.c (x_own_selection):
12349
12350         * specifier.c: Remove definition of Qappend (now in general.c)
12351         * specifier.c (syms_of_specifier): Remove Qappend.
12352
12353 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12354
12355         * config.h.in: Add socklen_t.
12356
12357         * s/decosf4-0.h: No special compiler flags needed or desired.
12358         In particular, undefine _BSD for DEC OSF 4.0.
12359
12360 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12361
12362         * redisplay-msw.c (msprinter_frame_output_end): Added.
12363         (console_type_create_redisplay_mswindows): Referred the above.
12364
12365         * frame.c (setup_frame_without_minibuffer): Do not create a
12366         default minibuffer frame on a printer device.
12367
12368         * frame-msw.c (apply_dc_geometry): Added.
12369         (msprinter_start_page):
12370         (msprinter_init_frame_3):
12371         (msprinter_eject_page): Use it.
12372
12373         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12374         and removed residual duplex and orientation properties.
12375
12376 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12377
12378         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12379
12380         * unexalpha.c: Remove system prototypes from C sources!
12381
12382 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12383
12384         * eval.c: Remove references to M-x edit-options in DEFUNs for
12385         `defvar' and `defconst'.
12386
12387 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12388
12389         * config.h.in: Remove SMART_INCLUDE hackery.
12390
12391         PostgreSQL hacking:
12392         * config.h.in: Don't use SMART_INCLUDE.
12393
12394         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12395         * inline.c: Simply #include "postgresql.h"
12396         * postgresql.c:
12397         - Don't use SMART_INCLUDE
12398         - Use simply "const".
12399         - Use standard doc string conventions.
12400         - Use correct type for result of PQstatus.
12401
12402 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12403
12404         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12405
12406         C++ compilation changes.
12407         * config.h.in (EXTERN_C): Define.
12408         * config.h.in (not): This is also a C++ keyword.
12409         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12410         * cm.c: Use EXTERN_C.
12411         * redisplay-tty.c: Use EXTERN_C.
12412         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12413
12414 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12415
12416         * general.c: Remove duplicate definition for Qfunction.
12417
12418 2000-07-08  Ben Wing  <ben@xemacs.org>
12419
12420         * device-msw.c (msprinter_init_device):
12421         * device-msw.c (sync_printer_with_devmode):
12422         * device-msw.c (handle_devmode_changes):
12423         * device-msw.c (print_dialog_worker):
12424         * device-msw.c (Fmsprinter_apply_settings):
12425         * device-msw.c (hash_devmode):
12426         * device-msw.c (Fmsprinter_settings_despecialize):
12427         use Qmswindows_tstr, not Qctext.
12428
12429         * vm-limit.c (check_memory_limits):
12430         avoid infinite loop printing warning messages.
12431
12432 2000-07-05  Craig Lanning  <lanning@scra.org>
12433
12434         * Makefile.in.in: Add support for including the Windows resources
12435         when building with the cygwin and mingw targets.
12436
12437         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12438         not set or not correct.
12439         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12440         (init_initial_directory): Don't try to use $PWD on the
12441         WIN32_NATIVE target.
12442
12443         * s\cygwin32.h:
12444         [[Add -mwindows to eliminate console window.]] not required --ben
12445         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12446         (MAIL_USE_POP): removed; now handled by configure.
12447
12448         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12449         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12450         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12451         (MAIL_USE_POP): removed; now handled by configure.
12452         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12453         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12454         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12455         constant string.
12456         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12457         up from <winsock.h> via systime.h.
12458         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12459         (getpagesize): from Dan Holmsand, added.
12460         Added #endif which was left dangling by Ben's mega patch; added
12461         comment to help prevent this in the future.
12462
12463         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12464
12465 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12466
12467         * console-msw.h (struct mswindows_device): Removed unnecessary
12468         cached device geometry values.
12469         Added update_tick and an accessor macro.
12470         (Lisp_Devmode): Added lrecord declaration.
12471         (struct msprinter_device): Contain devmode as a Lisp object.
12472         Added mswindows_get_selected_frame_hwnd();
12473
12474         * console.h (struct console_methods): Indentation nitpicking.
12475
12476         * device-msw.c (mswindows_init_device): Do not initialize geometry
12477         cache. Initialize update tick.
12478         (mswindows_device_system_metrics): Ask the device for its geometry.
12479         (global_free_2_maybe):
12480         (devmode_to_hglobal):
12481         (handle_printer_changes):
12482         (ensure_not_printing):
12483         (print_dialog_worker):
12484         (Fmsprinter_print_setup_dialog):
12485         (Fmsprinter_print_dialog):
12486         (plist_get_margin):
12487         (plist_set_margin):
12488         (Fmsprinter_page_setup_dialog): Added functions.
12489         (sync_printer_with_devmode):
12490         (handle_devmode_changes):
12491         (Fmsprinter_get_settings):
12492         (Fmsprinter_select_settings):
12493         (Fmsprinter_apply_settings):
12494         (allocate_devmode):
12495         (Fmsprinter_settings_copy):
12496         (Fmsprinter_settings_despecialize):
12497         (print_devmode):
12498         (finalize_devmode):
12499         (equal_devmode):
12500         (hash_devmode): Added functions
12501         (syms_of_device_mswindows): Init devmode lrecord class.
12502
12503         * device.h: Added an exfun for find-device.
12504
12505         * event-msw.c (mswindows_wnd_proc): Do not update the cached
12506         geometry; although, recreate the device compatible DC.
12507
12508         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
12509         (msprinter_init_frame_3):
12510         (msprinter_frame_property):
12511         (msprinter_internal_frame_property_p):
12512         (msprinter_frame_properties):
12513         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
12514         print job properties (will move to device settings).
12515
12516         * lisp.h: Added symbols.
12517
12518         * general.c (syms_of_general): Declared them.
12519
12520         * hash.c (string_hash): Added.
12521
12522         * lrecord.h (lrecord_type): Added devmode lrecord type.
12523
12524 2000-07-02  Mike Sperber <mike@xemacs.org>
12525
12526         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
12527         FreeBSD 4.0.
12528
12529 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
12530
12531         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
12532         integer.
12533
12534 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
12535
12536         * data.c (Fstring_to_number): Don't recognize floating point if
12537         base is not 10.
12538
12539 2000-06-22  Martin Buchholz  <martin@xemacs.org>
12540
12541         * glyphs-widget.c (tab_control_query_geometry):
12542         (widget_query_geometry):
12543         (button_query_geometry):
12544         * glyphs.c (text_query_geometry):
12545         Enforce type correctness.
12546
12547 2000-06-18  Martin Buchholz  <martin@xemacs.org>
12548
12549         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
12550         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
12551
12552 2000-06-17  Martin Buchholz  <martin@xemacs.org>
12553
12554         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
12555         conflicts with gcc's fixincluded version of FOO.h.
12556
12557         * glyphs.h (image_instance_geometry): Remove trailing `,'
12558
12559 2000-06-08  Mike Alexander  <mta@arbortext.com>
12560
12561         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
12562         (shove_thread): Don't write the same output twice
12563         (make_ntpipe_output_stream): Increase priority of shove thread
12564         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
12565         chance to run
12566         (ntpipe_shove_closer): Don't delete the pipe until we're done with
12567         it.
12568
12569 2000-06-12  Ben Wing  <ben@xemacs.org>
12570
12571         * s\mingw32.h (sigset):
12572         * s\windowsnt.h (sigset):
12573         rename msw_ to mswindows_ for consistency with general convention.
12574
12575 2000-06-12  Ben Wing  <ben@xemacs.org>
12576
12577         * console-msw.c:
12578         * console-msw.c (mswindows_get_console_hwnd):
12579         * console-msw.c (mswindows_ensure_console_allocated):
12580         * console-msw.c (mswindows_hide_console):
12581         * console-msw.c (mswindows_show_console):
12582         * console-msw.c (mswindows_ensure_console_buffered):
12583         * console-msw.c (mswindows_output_console_string):
12584         * console-msw.c (mswindows_windows9x_p):
12585         * console-msw.h:
12586         * device-msw.c (mswindows_get_workspace_coords):
12587         * device-msw.c (mswindows_device_system_metrics):
12588         * dialog-msw.c (mswindows_popup_dialog_box):
12589         * event-msw.c (mswindows_wnd_proc):
12590         * frame-msw.c (mswindows_size_frame_internal):
12591         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12592         * menubar-msw.c (displayable_menu_item):
12593         * menubar-msw.c (mswindows_char_is_accelerator):
12594         * nt.c:
12595         * nt.c (mswindows_sigset):
12596         * nt.c (mswindows_sigrelse):
12597         * nt.c (mswindows_sigpause):
12598         * nt.c (mswindows_raise):
12599         * nt.c (timer_proc):
12600         * ntproc.c:
12601         * ntproc.c (find_child_console):
12602         * ntproc.c (sys_kill):
12603         * print.c:
12604         * print.c (std_handle_out_external):
12605         * process-nt.c (find_child_console):
12606         * process-nt.c (send_signal_the_95_way):
12607         * process-nt.c (ensure_console_window_exists):
12608         * process-nt.c (nt_create_process):
12609         * syssignal.h:
12610         rename msw_ to mswindows_ for consistency with general convention.
12611
12612         * emacs.c:
12613         * dumper.c:
12614         include nt.h, not syswindows.h.
12615
12616         * nt.c (mswindows_fstat):
12617         * nt.c (mswindows_stat):
12618         prefix mswindows_ instead of attempting to directly override the
12619         library functions.  fix declarations.
12620
12621         * nt.h:
12622         include syswindows.h.  move some sysdep.h stuff here.
12623
12624         * ntheap.h:
12625         include syswindows.h, not <windows.h>.
12626
12627         * ntplay.c:
12628         clean up headers.
12629
12630         * sysdep.c:
12631         clean up headers.
12632
12633         * sysdep.c (sys_fstat):
12634         * sysdep.c (sys_stat):
12635         call mswindows versions when appropriate.
12636
12637         * sysdep.h:
12638         move mswin decls to nt.h.
12639
12640         * syswindows.h:
12641         add long comment describing appropriate use of the various windows
12642         headers.
12643
12644 2000-06-11  Ben Wing  <ben@xemacs.org>
12645
12646         * device-x.c: Correct doc string for sixth arg of x-get-resource.
12647
12648 2000-06-10  Ben Wing  <ben@xemacs.org>
12649
12650         * Makefile.in.in (release):
12651         Correction to make sure xemacs.exe always dumped when correct.
12652
12653         * alloca.c:
12654         * balloon_help.c:
12655         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
12656
12657         * buffer.c (set_buffer_internal):
12658         [[[[2]]]]: Remove HAVE_FEP code.
12659
12660         * buffer.c (init_initial_directory):
12661         [3].
12662
12663         * bytecode.c:
12664         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
12665         individual files.
12666
12667         * callproc.c:
12668         * callproc.c (call_process_cleanup):
12669         * callproc.c (Fold_call_process_internal):
12670         * callproc.c (child_setup):
12671         * callproc.c (getenv_internal):
12672         * callproc.c (init_callproc):
12673         * callproc.c (vars_of_callproc):
12674         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
12675         __CYGWIN32__ -> CYGWIN.
12676         DOS_NT -> WIN32_NATIVE.
12677         Remove MSDOS support/references, converting to WIN32_NATIVE
12678           where correct.
12679         __MINGW32__ -> MINGW.
12680         Fix windows.h includes.
12681         Remove bogus HAVE_NTGUI.
12682
12683         * config.h.in:
12684         [2].
12685
12686         * console-msw.c:
12687         mswindows_message_outputted added for use in allowing startup
12688         errors on the console to be seen.
12689
12690         * console-msw.c (msw_ensure_console_allocated):
12691         * console-msw.c (msw_output_console_string):
12692         * console-msw.c (DHEADER):
12693         * console-msw.c (DOPAQUE_DATA):
12694         * console-msw.c (DEVENT):
12695         * console-msw.c (DCONS):
12696         * console-msw.c (DCONSCDR):
12697         * console-msw.c (DSTRING):
12698         * console-msw.c (DVECTOR):
12699         * console-msw.c (DSYMBOL):
12700         * console-msw.c (DSYMNAME):
12701         Fix warnings.
12702
12703         * console-stream.c (stream_init_console):
12704         Fix text/binary problems.
12705
12706         * device-msw.c:
12707         * device-msw.c (mswindows_finish_init_device):
12708         * device-msw.c (mswindows_delete_device):
12709         [1].
12710
12711         * device.c (handle_asynch_device_change):
12712         [3].
12713
12714         * dgif_lib.c:
12715         * dgif_lib.c (DGifOpenFileName):
12716         * dgif_lib.c (DGifOpenFileHandle):
12717         * dgif_lib.c (DGifGetLine):
12718         * dgif_lib.c (DGifGetPixel):
12719         Added config.h/lisp.h, fix up includes.
12720         [1].
12721
12722         * dired-msw.c:
12723         [4].
12724
12725         * dired.c:
12726         * dired.c (file_name_completion):
12727         * dired.c (Ffile_attributes):
12728         * dired.c (syms_of_dired):
12729         [1].
12730
12731         * dumper.c:
12732         * dumper.c (pdump_file_unmap):
12733         * dumper.c (pdump_load):
12734         [1].
12735
12736         * editfns.c:
12737         * editfns.c (Ftemp_directory):
12738         * editfns.c (user_login_name):
12739         * editfns.c (Fuser_real_login_name):
12740         * editfns.c (get_home_directory):
12741         [1].
12742
12743         * elhash.c (finish_marking_weak_hash_tables):
12744         [[[[5]]]]: Fix GCC warnings.
12745
12746         * emacs.c:
12747         * emacs.c (mswindows_handle_hardware_exceptions):
12748         * emacs.c (make_arg_list_1):
12749         * emacs.c (main_1):
12750         * emacs.c (Fkill_emacs):
12751         * emacs.c (Fdump_emacs):
12752         [1].
12753         Fix problems with nested crashes, add long comment.
12754
12755         * event-Xt.c (init_event_Xt_late):
12756         [1].
12757
12758         * event-msw.c:
12759         * event-msw.c (mswindows_dde_callback):
12760         * event-msw.c (mswindows_handle_sticky_modifiers):
12761         * event-msw.c (mswindows_wnd_proc):
12762         [1].
12763         [5].
12764
12765         * events.c (character_to_event):
12766         [1].
12767
12768         * fileio.c:
12769         * fileio.c (Ffile_name_directory):
12770         * fileio.c (Ffile_name_nondirectory):
12771         * fileio.c (directory_file_name):
12772         * fileio.c (Fexpand_file_name):
12773         * fileio.c (Fsubstitute_in_file_name):
12774         * fileio.c (Ffile_name_absolute_p):
12775         * fileio.c (check_executable):
12776         * fileio.c (Ffile_readable_p):
12777         * fileio.c (Ffile_accessible_directory_p):
12778         * fileio.c (Ffile_modes):
12779         * fileio.c (Funix_sync):
12780         * fileio.c (vars_of_fileio):
12781         [1]. [4].
12782
12783         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
12784
12785         Expand getdefdir defn.
12786         Fix bogus rename() comment.
12787
12788         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
12789         to use standard XEmacs include files, e.g. sysfile.h, rather
12790         than system-specific includes.
12791
12792         * fns.c:
12793         * fns.c (Fsubseq):
12794         [5]. [6].
12795
12796         * frame.c (vars_of_frame):
12797         [1].
12798
12799         * getloadavg.c:
12800         * getloadavg.c (getloadavg):
12801         [1]. [6].
12802         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
12803         (We don't use it elsewhere in the code; just add a comment.)
12804
12805         * gif_io.c:
12806         [6].
12807         Add config.h.
12808
12809         * glyphs-msw.c:
12810         * glyphs-msw.c (mswindows_resource_instantiate):
12811         [1].
12812
12813         * glyphs-x.c (x_native_layout_instantiate):
12814         [5].
12815
12816         * gui-msw.c (Fmswindows_shell_execute):
12817         [1].
12818
12819         * insdel.c:
12820         [4].
12821
12822         * lisp.h:
12823         [4]. [5].
12824
12825         * lread.c (locate_file_in_directory_mapper):
12826         [1].
12827
12828         * lstream.c:
12829         [4].
12830
12831         * mem-limits.h:
12832         * mem-limits.h (get_lim_data):
12833         [1].
12834
12835         * menubar-msw.c:
12836         [4].
12837
12838         * ndir.h:
12839         [1].
12840
12841         * nt.c:
12842         * nt.c (getwd):
12843         * nt.c (closedir):
12844         * nt.c (rva_to_section):
12845         * nt.c (mswindows_executable_type):
12846         [1]. [6].
12847         Fix closedir() defn.
12848
12849         * nt.h:
12850         [[[[8]]]]: *_OK defs moved to sysfile.h.
12851
12852         * ntproc.c:
12853         [6]. [7].
12854
12855         * objects-x.c:
12856         [4].
12857
12858         * print.c:
12859         * print.c (std_handle_out_external):
12860         [1]. [4].
12861
12862         * process-nt.c:
12863         * process-nt.c (nt_create_process):
12864         [6].
12865         try to fix process quoting somewhat.
12866
12867         * process-unix.c (unix_create_process):
12868         [1].
12869
12870         * process.c:
12871         * process.c (vars_of_process):
12872         Add Vnull_device.
12873
12874         * process.h:
12875         [1].
12876
12877         * realpath.c:
12878         * realpath.c (xrealpath):
12879         [1].
12880
12881         * redisplay-tty.c (init_tty_for_redisplay):
12882         [3].
12883
12884         * redisplay.c:
12885         [4]. [6].
12886
12887         * scrollbar-msw.c:
12888         [4].
12889
12890         * sheap.c:
12891         * sheap.c (more_static_core):
12892         * sheap.c (report_sheap_usage):
12893         [5]. [6].
12894
12895         * signal.c:
12896         * signal.c (alarm_signal):
12897         [1]. [6].
12898
12899         * sound.c:
12900         [6].
12901
12902         * strftime.c:
12903         * strftime.c (zone_name):
12904         [1]. [5].
12905
12906         * symsinit.h (init_sunpro):
12907         [1].
12908
12909         * syscommctrl.h:
12910         commctrl.h not in Cygwin b20.1.
12911
12912         * sysdep.c:
12913         * sysdep.c (endif):
12914         * sysdep.c (sys_subshell):
12915         * sysdep.c (init_baud_rate):
12916         * sysdep.c (emacs_get_tty):
12917         * sysdep.c (emacs_set_tty):
12918         * sysdep.c (tty_init_sys_modes_on_device):
12919         * sysdep.c (init_system_name):
12920         * sysdep.c (sys_open):
12921         * sysdep.c (interruptible_open):
12922         * sysdep.c (sys_fopen):
12923         * sysdep.c (sys_mkdir):
12924         * sysdep.c (sys_rename):
12925         * sysdep.c (get_process_times_1):
12926         [1]. [6].
12927
12928         * sysdep.h:
12929         [1].
12930
12931         * sysdir.h:
12932         * sysdir.h (DIRENTRY_NONEMPTY):
12933         [1]. [6].
12934
12935         * sysdll.c (dll_init):
12936         * sysdll.h:
12937         [1].
12938
12939         * sysfile.h:
12940         [1]. [6]. [8].
12941         added text/binary defs.
12942
12943         * sysfloat.h:
12944         [1].
12945
12946         * sysproc.h:
12947         * sysproc.h (EDESTADDRREQ):
12948         * sysproc.h (poll_fds_for_input):
12949         [1]. [6].
12950
12951         * syspwd.h:
12952         [6].
12953
12954         * syssignal.h:
12955         [1].
12956
12957         * systime.h:
12958         [1]. [6].
12959
12960         * systty.h:
12961         [1].
12962
12963         * syswindows.h:
12964         [1].
12965         Always define WIN32_LEAN_AND_MEAN.
12966
12967         * unexcw.c (unexec):
12968         [5].
12969
12970         * unexec.c:
12971         * unexec.c (copy_text_and_data):
12972         * unexec.c (adjust_lnnoptrs):
12973         [1].
12974
12975         * unexnt.c:
12976         * unexnt.c (_start):
12977         [1].
12978
12979 2000-06-07  Ben Wing  <ben@xemacs.org>
12980
12981         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12982         was used only as a model.  We've long since extracted any useful
12983         logic or code out of this. (I just did an exhaustive search.)
12984
12985         * s\msdos.h: Removed.
12986
12987         * s\windows95.h: Removed.
12988
12989 2000-06-10  Ben Wing  <ben@xemacs.org>
12990
12991         * s\cygwin32.h:
12992         [1]. [5].
12993         Don't use extern with fun defs.
12994
12995         * s\mingw32.h:
12996         [1]. [7].
12997         Remove nt\inc include.
12998         Remove getdisk, getdefdir. (The former is unused, the latter
12999         expanded in fileio.h.)
13000
13001         * s\windowsnt.h:
13002         * s\windowsnt.h (WIN32_NATIVE):
13003         * s\windowsnt.h (HAVE_STRCASECMP):
13004         [1]. [7].
13005         Add long comment about preprocessor changes.
13006         Remove getdisk, getdefdir. (The former is unused, the latter
13007         expanded in fileio.h.)
13008
13009 2000-06-10  Ben Wing  <ben@xemacs.org>
13010
13011         * m\arm.h:
13012         * m\delta.h:
13013         * m\intel386.h:
13014         * m\sequent.h:
13015         * m\template.h:
13016         * m\windowsnt.h:
13017         [1].
13018         Remove bogus/unused NO_SOCK_SIGIO.
13019
13020 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13021
13022         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13023         not an Emchar.
13024
13025 2000-06-04  Mike Sperber <mike@xemacs.org>
13026
13027         * casetab.c (set_case_table): For `set-standard-case-table',
13028         actually deposit the new case tables where the rest of XEmacs can
13029         see them.
13030
13031 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13032
13033         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13034
13035 2000-06-05  Ben Wing  <ben@xemacs.org>
13036
13037         * callproc.c (child_setup): Don't do close_load_descs() under
13038         MS Windows.  Put in a comment explaining why.
13039
13040 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13041
13042         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13043         Toolkit shell" which breaks `kill-compilation' on Windows NT
13044         native, retaining STDERR handling improvements.
13045
13046 2000-06-01  Andreas Jaeger  <aj@suse.de>
13047
13048         * s/s390.h: Support for S390, based on a patch by Martin
13049         Schwidefsky <schwidefsky@de.ibm.com>.
13050
13051 2000-05-30  Andy Piper  <andy@xemacs.org>
13052
13053         * window.c (allocate_window):
13054         (make_dummy_parent):
13055         (Fset_window_configuration): use new hashtable type.
13056
13057         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13058         (struct image_instantiator_methods):
13059         (struct Lisp_Image_Instance): make instance geometry signed.
13060
13061         * glyphs.c (instantiate_image_instantiator):
13062         (image_instance_query_geometry):
13063         (image_instance_layout):
13064         (image_instance_layout):
13065         (query_string_geometry):
13066         (text_query_geometry):
13067         (image_instantiate):
13068         (image_instantiate):
13069         (cache_subwindow_instance_in_frame_maybe):
13070         (subwindow_query_geometry): make instance geometry signed.
13071
13072         * glyphs-widget.c (widget_query_geometry):
13073         (widget_layout):
13074         (button_query_geometry):
13075         (tree_view_query_geometry):
13076         (tab_control_query_geometry):
13077         (layout_query_geometry):
13078         (layout_layout):
13079         (native_layout_layout): make instance geometry signed.
13080
13081 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13082
13083         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13084         constant.
13085
13086         * general.c (syms_of_general): Add Qfull_assoc symbol.
13087
13088         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13089         correctly.
13090         (decode_weak_list_type): Decode full-assoc type.
13091         (encode_weak_list_type): Encode full-assoc type.
13092         (Fmake_weak_list): Update doc string.
13093
13094 2000-05-30  Andy Piper  <andy@xemacs.org>
13095
13096         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13097
13098         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13099         (decode_hash_table_weakness): ditto.
13100         (Fhash_table_weakness): ditto.
13101         (Fhash_table_type): ditto.
13102         (finish_marking_weak_hash_tables): ditto.
13103         (hash_table_weakness_validate): ditto.
13104         (syms_of_elhash): ditto.
13105
13106 2000-05-28  Martin Buchholz <martin@xemacs.org>
13107
13108         * XEmacs 21.2.34 is released.
13109
13110 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13111
13112         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13113         start cache.
13114         (updating_line_start_cache): Gone.
13115         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13116         generic code to force a minimum of 1 line laid out in the
13117         CMOTION_DISP case.
13118
13119 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13120
13121         * glyphs.c (instantiate_image_instantiator): Check for initialized
13122         height & width no longer special cases IMAGE_NOTHING.
13123         (nothing_instantiate): Set height and width of instance.
13124
13125 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13126
13127         * unexelf.c (unexec): Search for ".data" section.
13128         Initialize new_data2_offset from old_data_index.
13129         Remove redundant check for ElfW.
13130
13131 2000-05-23  Andy Piper  <andy@xemacs.org>
13132
13133         * glyphs.c (get_image_instantiator_governing_domain): allow more
13134         specific domains as the governing domain rather than expecting an
13135         exact match. This fixes problems with layouts.
13136
13137 2000-05-22  Andy Piper  <andy@xemacs.org>
13138
13139         * redisplay-output.c (compare_runes): check for non-images
13140
13141         * glyphs.c (set_glyph_dirty_p): ditto.
13142         (update_glyph_cachel_data): ditto.
13143
13144         * glyphs-widget.c (layout_post_instantiate): ditto.
13145         (layout_post_instantiate): ditto.
13146
13147         * event-msw.c (mswindows_wnd_proc): warning removal.
13148
13149 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13150
13151         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13152
13153         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13154
13155         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13156
13157         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13158         (mswindows_executable_type): mingw32 now has enough headers for
13159         this to work.
13160
13161 2000-05-20  Andy Piper  <andy@xemacs.org>
13162
13163         * console-msw.c (mswindows_output_last_error): ; -> ,
13164
13165 2000-05-12  Andy Piper  <andy@xemacs.org>
13166
13167         * console-msw.c (FROB): compare ints with ints.
13168
13169 2000-05-11  Andy Piper  <andy@xemacs.org>
13170
13171         * glyphs-x.c (x_finalize_image_instance): make minimal build
13172         happy.
13173
13174 2000-05-20  Ben Wing  <ben@xemacs.org>
13175
13176         * event-Xt.c:
13177         * event-Xt.c (vars_of_event_Xt):
13178         move modifier-keys-are-sticky to event-stream.c.
13179
13180         * event-msw.c:
13181         * event-msw.c (mswindows_enqueue_mouse_button_event):
13182         * event-msw.c (key_needs_default_processing_p):
13183         * event-msw.c (XEMSW_LCONTROL):
13184         * event-msw.c (mswindows_handle_sticky_modifiers):
13185         * event-msw.c (FROB):
13186         * event-msw.c (clear_sticky_modifiers):
13187         * event-msw.c (output_modifier_keyboard_state):
13188         * event-msw.c (output_alt_keyboard_state):
13189         * event-msw.c (mswindows_wnd_proc):
13190         * event-msw.c (mswindows_modifier_state):
13191         * event-msw.c (emacs_mswindows_handle_magic_event):
13192         implement sticky modifiers.
13193
13194         * event-stream.c:
13195         * event-stream.c (vars_of_event_stream):
13196         move modifier-keys-are-sticky here.
13197
13198         * lisp.h:
13199         add CHECK_FUNCTION.
13200
13201         * rangetab.c:
13202         implement map-range-table.
13203
13204
13205 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13206
13207         * redisplay-tty.c (reset_tty_modes):
13208         (tty_redisplay_shutdown): Adjust argument type to
13209         tty_frame_output_end.
13210
13211 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13212
13213         * eval.c (Fbacktrace): Don't output a line with only right
13214         parenthesis.
13215
13216 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13217
13218         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13219         (Fpq_reset_poll): Ditto.
13220
13221 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13222
13223         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13224
13225 2000-05-16  Ben Wing  <ben@xemacs.org>
13226
13227         * buffer.c:
13228         * buffer.c (dfc_convert_to/from_internal_format):
13229         * buffer.c (reinit_vars_of_buffer):
13230         Fix conversion functions to allow reentrancy.
13231
13232         * console-msw.c:
13233         * console-msw.c (mswindows_output_last_error):
13234         New fun, generally useful -- output a human-readable
13235         version of GetLastError() on the console.
13236
13237         * console-msw.h:
13238         * console-msw.h (struct mswindows_frame):
13239         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13240
13241         * console-stream.c (stream_output_begin):
13242         * console-stream.c (stream_output_end):
13243         * console-stream.c (stream_output_vertical_divider):
13244         * console-stream.c (stream_clear_region):
13245         * console-stream.c (stream_flash):
13246         * console-stream.c (console_type_create_stream):
13247         Delete blank stream methods, not needed.
13248
13249         * console.h (struct console_methods):
13250         Split begin/end methods into window and frame.
13251
13252         * event-msw.c:
13253         * event-msw.c (mswindows_handle_paint):
13254         * event-msw.c (output_alt_keyboard_state):
13255         * event-msw.c (mswindows_wnd_proc):
13256         * event-msw.c (vars_of_event_mswindows):
13257         Comment about problems with ignored-expose.
13258         Define mswindows-debug-events; not really implemented.
13259
13260         * frame-msw.c (mswindows_init_frame_1):
13261         random cleanups.
13262
13263         * glyphs-msw.c:
13264         * glyphs-msw.c (begin_defer_window_pos):
13265         * glyphs-msw.c (mswindows_unmap_subwindow):
13266         * glyphs-msw.c (mswindows_map_subwindow):
13267         * glyphs-msw.c (mswindows_resize_subwindow):
13268         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13269
13270         * glyphs.c (make_image_instance_1):
13271         Fix crash.
13272
13273         * gutter.c (Fredisplay_gutter_area):
13274         Use new begin/end methods.
13275
13276         * lisp.h (Dynarr_new2):
13277         New creation fun.
13278
13279         * redisplay-msw.c:
13280         * redisplay-msw.c (mswindows_frame_output_begin):
13281         * redisplay-msw.c (mswindows_frame_output_end):
13282         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13283         New begin/end methods -- handle DeferWindowPos.
13284
13285         * redisplay-output.c (redisplay_move_cursor):
13286         * redisplay-output.c (redraw_cursor_in_window):
13287         * redisplay-output.c (redisplay_update_line):
13288         * redisplay-output.c (redisplay_output_window):
13289         New begin/end methods.
13290
13291         * redisplay-tty.c:
13292         * redisplay-tty.c (tty_frame_output_begin):
13293         * redisplay-tty.c (tty_frame_output_end):
13294         * redisplay-tty.c (console_type_create_redisplay_tty):
13295         New begin/end methods.
13296
13297         * redisplay-x.c:
13298         * redisplay-x.c (x_window_output_begin):
13299         * redisplay-x.c (x_window_output_end):
13300         * redisplay-x.c (console_type_create_redisplay_x):
13301         New begin/end methods.
13302
13303         * redisplay.c (redisplay_frame):
13304         * redisplay.c (Fredisplay_echo_area):
13305         New begin/end methods.
13306         use MAYBE_DEVMETH for clear_frame; it may not exist.
13307
13308         * window.h (WINDOW_XFRAME):
13309         WINDOW_XFOO macros -- get locale and decode struct pointer.
13310
13311
13312 2000-05-12  Ben Wing  <ben@xemacs.org>
13313
13314         * emacs.c:
13315         * emacs.c (ensure_no_quitting_from_now_on):
13316         * emacs.c (fatal_error_signal):
13317         * emacs.c (mswindows_handle_hardware_exceptions):
13318         * emacs.c (main):
13319         * emacs.c (Fkill_emacs):
13320         * emacs.c (shut_down_emacs):
13321         * emacs.c (assert_failed):
13322         various improvements in fatal error handling.
13323
13324         * eval.c:
13325         move preparing_for_armageddon to emacs.c.
13326
13327         * lisp.h:
13328         declare fatal_error_in_progress.
13329
13330         * print.c:
13331         * print.c (std_handle_out_external):
13332         * print.c (std_handle_out_va):
13333         * print.c (stderr_out):
13334         * print.c (stdout_out):
13335         use console under mswin when no standard output.
13336         don't do code conversion during fatal error.
13337
13338         * scrollbar.c (Fscrollbar_page_up):
13339         * scrollbar.c (Fscrollbar_page_down):
13340         fix missing else.  reindent.
13341
13342 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13343
13344         Emergency fix.
13345
13346         * glyphs.h (GLYPH_CACHEL_DESCENT):
13347         (GLYPH_CACHEL_DESCENT):
13348         (GLYPH_CACHEL_DESCENT):
13349         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13350         used in case these are inline functions.
13351         Use more absurd values to error check.
13352
13353         include window.h for error check functions.
13354
13355 2000-05-11  Ben Wing  <ben@xemacs.org>
13356
13357         * cmdloop.c (Freally_early_error_handler):
13358         Display message box under windows; otherwise, message will disappear
13359         before it can be viewed.
13360
13361         * console-msw.c:
13362         * console-msw.c (Fmswindows_message_box):
13363         * console-msw.c (FROB):
13364         * console-msw.c (syms_of_console_mswindows):
13365         Define new fun `mswindows-message-box'.
13366         #### I will merge this into `popup-dialog-box'; just give me
13367         a bit of time.
13368
13369         * general.c:
13370         * general.c (syms_of_general):
13371         Some new symbols used in `mswindows-message-box'.
13372
13373         * glyphs.c:
13374         * glyphs.c (Fset_image_instance_property):
13375         put warning in this fun.
13376
13377         * glyphs.h:
13378         * glyphs.h (GLYPH_CACHEL_WIDTH):
13379         * glyphs.h (GLYPH_CACHEL_ASCENT):
13380         * glyphs.h (GLYPH_CACHEL):
13381         * glyphs.h (GLYPH_CACHEL_GLYPH):
13382         define error-checking versions to try to catch a bug i've seen --
13383         redisplay gets in an infinite loop because the glyph width of the
13384         continuation glyph is 65535.
13385
13386         * lisp.h:
13387         Extern message-box stuff.
13388
13389         * window.c (allocate_window):
13390         * window.c (make_dummy_parent):
13391         * window.c (Fset_window_configuration):
13392         Use EQUAL not EQ for subwindow caches to make them work a bit
13393         better. (Something is still very broken.)
13394
13395
13396 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13397
13398         * glyphs.c (image_instantiate): Suppress gcc warnings.
13399         (Fmake_image_instance): Fix doc string.
13400         * specifier.c (Fmake_specifier): Ditto.
13401
13402 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13403
13404         * paths.h.in (PATH_LOCK): Removed.
13405         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13406         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13407
13408 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13409
13410         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13411         Document (featurep '(and xemacs 21.02)).
13412
13413 2000-05-09  Ben Wing  <ben@xemacs.org>
13414
13415         * buffer.c (complex_vars_of_buffer):
13416         update modeline-format doc.
13417
13418         * device.h:
13419         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13420
13421         * emacs.c:
13422         timeline of all released versions of Emacs, for use in creating
13423         authorship comments and in synching up.
13424
13425         * glyphs-widget.c (image_instantiator_buttons):
13426         * glyphs-widget.c (image_instantiator_edit_fields):
13427         * glyphs-widget.c (image_instantiator_combo_box):
13428         * glyphs-widget.c (image_instantiator_scrollbar):
13429         * glyphs-widget.c (image_instantiator_progress_guage):
13430         * glyphs-widget.c (image_instantiator_tree_view):
13431         * glyphs-widget.c (image_instantiator_tab_control):
13432         * glyphs-widget.c (image_instantiator_labels):
13433         * glyphs-widget.c (image_instantiator_layout):
13434         * glyphs-widget.c (image_instantiator_native_layout):
13435         rename decode_domain method to governing_domain.
13436
13437         * glyphs.c:
13438         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13439         * glyphs.c (add_entry_to_device_ii_format_list):
13440         make sure we don't put an entry more than once into the list.
13441         * glyphs.c (check_instance_cache_mapper):
13442         *************************************************************
13443         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13444         HAVE BEEN GETTING.
13445         *************************************************************
13446         * glyphs.c (get_image_instantiator_governing_domain):
13447         clean up, expand on new concept of governing domain.
13448         * glyphs.c (instantiate_image_instantiator):
13449         * glyphs.c (allocate_image_instance):
13450         use governing_domain instead of cache_domain in naming.
13451         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13452         * glyphs.c (make_image_instance_1):
13453         * glyphs.c (Fmake_image_instance):
13454         allow for any domain (not just device), and process the
13455         governing domain correctly.  very big doc fix.
13456         * glyphs.c (Fimage_instance_domain):
13457         new primitive, to retrieve the governing domain of an image instance.
13458         * glyphs.c (image_instantiate):
13459         use new governing_domain stuff.  this fixes a crash you could get
13460         by instantiating certain widget glyphs in frame locales. (should
13461         signal an error instead of crashing.)
13462         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13463         * glyphs.c (Fglyphp): clean up doc.
13464         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13465         * glyphs.c (syms_of_glyphs):
13466         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13467         * glyphs.c (image_instantiator_format_create): add some comments about
13468         bogus code.
13469         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13470         for current-display-table. (Apparently Hrjove implemented in 1998 a
13471         design I wrote up in 1996, but didn't update the doc string.)
13472
13473         * glyphs.h: clean up a doc string.
13474         * glyphs.h (governing_domain):
13475         * glyphs.h (struct image_instantiator_methods):
13476         changes for governing_domain stuff.
13477
13478         * gutter.c:
13479         * gutter.c (Fgutter_specifier_p):
13480         * gutter.c (Fgutter_size_specifier_p):
13481         * gutter.c (Fgutter_visible_specifier_p):
13482         * objects.c:
13483         * objects.c (Fcolor_specifier_p):
13484         * objects.c (Ffont_specifier_p):
13485         * objects.c (Fface_boolean_specifier_p):
13486         doc strings moved to make-*-specifier.
13487
13488         * redisplay.c (add_disp_table_entry_runes_1):
13489         * redisplay.c (generate_fstring_runes):
13490         * redisplay.c (screen):
13491         add random comments and doc strings.
13492
13493         * specifier.c:
13494         * specifier.c (Fmake_specifier):
13495         major overhaul of this doc string.
13496
13497         * specifier.c (Fvalid_specifier_domain_p):
13498         comment about the bogosity of image instances being domains.
13499         * specifier.c (decode_domain):
13500         now non-static, used in glyphs.c.
13501         * specifier.c (specifier_instance):
13502         comment about the bogosity of image instances being domains.
13503         * specifier.c (Fgeneric_specifier_p):
13504         move doc string to make-generic-specifier.
13505         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
13506         rebackslashify.
13507
13508         * specifier.h:
13509         * specifier.h (DOMAIN_FRAME):
13510         * specifier.h (DOMAIN_LIVE_P):
13511         * specifier.h (DOMAIN_XDEVICE):
13512         rebackslashify.
13513         add comments about problems with these macros.
13514         prototype for decode_domain.
13515
13516         * toolbar.c:
13517         * toolbar.c (Ftoolbar_specifier_p):
13518         move doc string to `make-toolbar-specifier'.
13519
13520         * window.c (window_unmap_subwindows_cache_mapper):
13521         *************************************************************
13522         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13523         HAVE BEEN GETTING.
13524         *************************************************************
13525
13526 2000-05-09  Andy Piper  <andy@xemacs.org>
13527
13528         * glyphs.h: declare reset_frame_subwindow_instance_cache.
13529
13530         * window.c (Fset_window_configuration): reset the frame subwindow
13531         cache and re-initialize the window subwindow caches.
13532
13533         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
13534
13535 2000-05-09  Ben Wing  <ben@xemacs.org>
13536
13537         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
13538         DWORD.
13539
13540 2000-04-26  Mike Woolley  <mike@bulsara.com>
13541
13542         * ntheap.c: Changed recreate_heap to limit the amount reserved
13543         for the heap to that which is actually available. Also now
13544         displays a message box (with some dignostics) in the event that
13545         it still can't start.
13546
13547 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
13548
13549         * callproc.c (Fold_call_process_internal): GCPRO path
13550
13551 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
13552
13553         Patch by Bill Perry.
13554
13555         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
13556         back data instead of #ifdef.
13557         (Fscrollbar_page_down): ditto.
13558
13559 2000-05-07  Ben Wing  <ben@xemacs.org>
13560
13561         * buffer.h:
13562         Kludge for defining Qmswindows_tstr.
13563
13564         * nt.c:
13565         * nt.c (open_input_file):
13566         * nt.c (open_output_file):
13567         * nt.c (rva_to_section):
13568         * nt.c (mswindows_executable_type):
13569         Move all memory-mapped-file routines here (some were in unexnt.c,
13570         which is bad because they are used by process-nt.c, and unexnt
13571         won't be around when portable dumping).  Synched the above routines
13572         with FSF 20.6.
13573
13574         * nt.h:
13575         Removed ifdef'd out bogus code.
13576         Fixed some prototypes.
13577
13578         * nt.h (file_data):
13579         * nt.h (OFFSET_TO_RVA):
13580         * nt.h (RVA_TO_OFFSET):
13581         * nt.h (RVA_TO_PTR):
13582         Moved the memory-mapped-file structures, macros and prototypes
13583         here, to parallel nt.c.  ntheap.h should really be removed
13584         entirely, and it's a non-portable-dumper specific file.
13585
13586         * ntheap.h (round_to_next):
13587         Moved the memory-mapped-file structures, macros and prototypes
13588         to nt.h.
13589
13590         * ntproc.c (compare_env):
13591         Moved rva_to_section and mswindows_executable_type to nt.c.
13592         Moved compare_env to process-nt.c.
13593         ntproc.c will die, one day.
13594
13595         * ntproc.c (sys_spawnve):
13596         Account for win32_ -> mswindows_.
13597
13598         * process-nt.c:
13599         * process-nt.c (struct nt_process_data):
13600         * process-nt.c (ensure_console_window_exists):
13601         * process-nt.c (compare_env):
13602         * process-nt.c (nt_create_process):
13603         * process-nt.c (nt_kill_process_by_pid):
13604         * process-nt.c (syms_of_process_nt):
13605         * process-nt.c (vars_of_process_nt):
13606         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
13607         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
13608         changes).  Eliminate our old `nt-quote-process-args' mechanism.
13609         Synch up nt_create_process with FSF 20.6 sys_spawnve.
13610         Move compare_env here from ntproc.c.
13611
13612         * process.c (Fprocess_send_region):
13613         Takes an optional fourth argument, BUFFER, which should fix some
13614         problems with call-process.
13615
13616         * syscommctrl.h:
13617         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
13618
13619         * syswindows.h:
13620         Move ICC_BAR_CLASSES to syscommctrl.h.
13621         Add preliminary macros for MSWindows/Mule.  More to come.
13622
13623         * unexnt.c:
13624         * unexnt.c (unexec):
13625         open_output_file moved to nt.c.
13626
13627
13628 2000-05-05  Andy Piper  <andy@xemacs.org>
13629
13630         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
13631         instance from the frame cache also since GC may catch up too late
13632         to make frame deletion sane.
13633
13634 2000-05-04  Andy Piper  <andy@xemacs.org>
13635
13636         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
13637         (x_finalize_image_instance): ungcpro on deletion.
13638
13639         * glyphs.c (image_instantiator_format_create): give pointers a
13640         query geometry method so that the geometry is at least set.
13641
13642         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
13643         initialize layouts if using widgets.
13644
13645 2000-05-03  Andy Piper  <andy@xemacs.org>
13646
13647         * nt.c: remove bogus reference to sysmmsystem.h
13648
13649         * gui-x.c (popup_selection_callback): fix no selection abort.
13650
13651 2000-05-02  Andy Piper  <andy@xemacs.org>
13652
13653         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
13654         (mswindows_widget_instantiate): ditto.
13655
13656         * glyphs-widget.c (initialize_widget_image_instance): initialize
13657         children correctly.
13658         (widget_instantiate): cope with children and items in the same
13659         instance.
13660
13661         * glyphs.c (mark_image_instance): cope with children as a first
13662         class member.
13663         (image_instance_equal): ditto.
13664         (image_instance_hash): ditto.
13665         (image_instance_changed): ditto.
13666
13667 2000-04-30  Andy Piper  <andy@xemacs.org>
13668
13669         * glyphs.c (subwindow_query_geometry): new function. Return some
13670         defaults.
13671         (subwindow_instantiate): don't assign dimensions if none have been
13672         given.
13673         (image_instantiator_format_create): add subwindow_query_geometry.
13674         (print_image_instance): cope with layouts as widgets.
13675
13676 2000-04-29  Andy Piper  <andy@xemacs.org>
13677
13678         * frame.c (delete_frame_internal): call
13679         free_frame_subwindow_instance_cache so that all subwindows are
13680         finalized before their parent.
13681         (mark_frame): remove subwindow_cachels.
13682         (Fmake_frame): remove subwindow_cachel manipulation.
13683         (allocate_frame_core): subwindow_instance_cache is a weak list.
13684         (delete_frame_internal): set subwindow_instance_cache to nil.
13685
13686         * glyphs-msw.c (mswindows_finalize_image_instance): make double
13687         finalization safe.
13688         (mswindows_finalize_image_instance): use the device
13689         not the domain as the domain may have died already.
13690
13691         * glyphs-x.c (x_finalize_image_instance): ditto.
13692         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
13693         HEIGHT.
13694
13695         * redisplay-output.c (redisplay_unmap_subwindows): update for
13696         subwindow instance cache as a weak list.
13697         (redisplay_unmap_subwindows_maybe): ditto.
13698         (redisplay_unmap_subwindows_except_us): ditto.
13699
13700         * glyphs.c (unmap_subwindow): error checking will check the domain
13701         so don't deal with it here. Don't use cachels anymore.
13702         (map_subwindow): ditto.
13703         (update_subwindow_cachel_data): remove old accessor names.
13704         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
13705         (Fresize_subwindow): don't update cachel.
13706         (mark_subwindow_cachels):
13707         (update_subwindow_cachel_data):
13708         (add_subwindow_cachel):
13709         (get_subwindow_cachel_index):
13710         (update_subwindow_cachel):
13711         (reset_subwindow_cachels):
13712         (mark_subwindow_cachels_as_not_updated): deleted.
13713         (cache_subwindow_instance_in_frame_maybe): new function. Add a
13714         subwindow instance to the frame cache.
13715         (find_matching_subwindow): update for subwindow instance cache as
13716         a weak list.
13717         (update_widget_instances): ditto.
13718         (image_instance_type_to_mask):inlined.
13719         (free_frame_subwindow_instance_cache): new function. finalize all
13720         subwindows that are instantiated.
13721
13722         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
13723         of cachel information.
13724         (IMAGE_INSTANCE_DISPLAY_X):
13725         (IMAGE_INSTANCE_DISPLAY_Y):
13726         (IMAGE_INSTANCE_DISPLAY_WIDTH):
13727         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
13728         (XIMAGE_INSTANCE_DISPLAY_X):
13729         (XIMAGE_INSTANCE_DISPLAY_Y):
13730         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
13731         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
13732         remove subwindow_cachel structure and function references.
13733         (image_instance_type_to_mask): inline from glyphs.c
13734
13735         * redisplay.c (redisplay_frame): remove subwindow_cachel
13736         references.
13737
13738         * frame.h (struct frame): remove subwindow_cachels.
13739         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
13740
13741         * frameslots.h: add subwindow_instance_cache.
13742
13743         * window.c (replace_window): check subwindow cache of replacement.
13744         (window_unmap_subwindows_cache_mapper):
13745         (window_unmap_subwindows): new functions. Unmap all subwindows
13746         cached on this window.
13747         (mark_window_as_deleted): unmap all subwindows.
13748
13749 2000-04-27  Andy Piper  <andy@xemacs.org>
13750
13751         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
13752
13753         * glyphs-widget.c (widget_layout): return something.
13754         (layout_layout): return something. Fail if not initialized.
13755         (layout_query_geometry): ditto.
13756         (image_instantiator_native_layout): new function. Initialized the
13757         native layout type.
13758         (widget_instantiate): don't do layout stuff here.
13759
13760         * glyphs.c (instantiate_image_instantiator): reorded calling or
13761         instantiate and post_instantiate with layout in between.
13762         (image_instance_layout): be more selective about deciding whether
13763         the layout has been done or not.
13764
13765         * glyphs.h (struct image_instantiator_methods): return a value
13766         from layout_method.
13767
13768 2000-04-26  Andy Piper  <andy@xemacs.org>
13769
13770         * glyphs.c (allocate_image_instance): make initial width and
13771         height unspecified. Set initialized to 0.
13772
13773         * syscommctrl.h new file. Encapsulates commctrl.h.
13774
13775         * syswindows.h new file. Encapsulates windows.h.
13776
13777         * ntplay.c: use new syswindows.h and syscommctrl.h header.
13778         * nt.c: ditto.
13779         * console-msw.h: ditto.
13780
13781         * redisplay-tty.c (tty_output_display_block): remove layout references.
13782
13783         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
13784         window handle rather than just the frame.
13785
13786         * glyphs.c (mark_image_instance): remove layout references.
13787         (print_image_instance): ditto.
13788         (image_instance_equal): ditto.
13789         (image_instance_hash): ditto.
13790         (decode_image_instance_type): ditto.
13791         (encode_image_instance_type): ditto.
13792         (image_instantiate): ditto.
13793         (allocate_glyph): ditto.
13794         (Fimage_instance_height): ditto.
13795         (Fimage_instance_width): ditto.
13796         (update_subwindow): ditto.
13797
13798         * redisplay-x.c (x_output_display_block): recode for layouts as
13799         widgets.
13800
13801         * redisplay-output.c (redisplay_output_layout): recode for layouts
13802         as widgets.
13803         (compare_runes): remove layout references.
13804
13805         * redisplay-msw.c (mswindows_output_display_block): recode for
13806         layouts as widgets.
13807
13808         * glyphs-widget.c (image_instantiator_layout): remove
13809         layout_possible_dest_types.
13810         (layout_possible_dest_types): deleted.
13811
13812         * glyphs.h (image_instance_type): remove layout references.
13813         (struct Lisp_Image_Instance): ditto. Add initialized flag.
13814         (IMAGE_INSTANCE_INITIALIZED): new accessor.
13815         (XIMAGE_INSTANCE_INITIALIZED): ditto.
13816
13817 2000-04-25  Andy Piper  <andy@xemacs.org>
13818
13819         * glyphs-widget.c (image_instantiator_buttons):
13820         (image_instantiator_edit_fields):
13821         (image_instantiator_combo_box):
13822         (image_instantiator_scrollbar):
13823         (image_instantiator_progress_guage):
13824         (image_instantiator_tree_view):
13825         (image_instantiator_tab_control):
13826         (image_instantiator_labels):
13827         (image_instantiator_layout): call default post_instantiate method.
13828         (widget_post_instantiate): new function. Simply lays out the
13829         widgets.
13830
13831         * glyphs.h (struct image_instantiator_methods): add
13832         post_instantiate method.
13833
13834         * glyphs.c (instantiate_image_instantiator): add post_instantiate
13835         method calls.
13836
13837 2000-04-23  Andy Piper  <andy@xemacs.org>
13838
13839         * glyphs.h (struct image_instantiator_methods): add
13840         decode_domain_method.
13841         (struct Lisp_Image_Instance): remove subwindow frame - it can be
13842         derived from the domain.
13843         (IMAGE_INSTANCE_FRAME): new accessor.
13844         (XIMAGE_INSTANCE_FRAME): ditto.
13845
13846         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
13847         instead of _SUBWINDOW_FRAME.
13848         (finalize_image_instance): ditto.
13849         (Fimage_instance_foreground): ditto.
13850         (Fimage_instance_background): ditto.
13851         (image_instantiate): ditto.
13852         (update_subwindow_cachel): ditto.
13853         (update_subwindow): ditto.
13854         (unmap_subwindow): ditto.
13855         (map_subwindow): ditto
13856         (subwindow_instantiate): ditto.
13857         * glyphs-msw.c (mswindows_update_widget): ditto.
13858         (mswindows_progress_gauge_instantiate): ditto.
13859         (mswindows_tab_control_update): ditto.
13860         * glyphs-x.c (x_update_widget): ditto.
13861         (x_widget_instantiate): ditto.
13862         (x_tab_control_instantiate): ditto.
13863         (x_tab_control_update): ditto.
13864         * event-msw.c (mswindows_wnd_proc): ditto
13865
13866         * glyphs-widget.c (image_instantiator_layout): use
13867         subwindow_decode_domain.
13868         (image_instantiator_buttons): ditto.
13869         (image_instantiator_edit_fields): ditto.
13870         (image_instantiator_combo_box): ditto.
13871         (image_instantiator_scrollbar): ditto.
13872         (image_instantiator_progress_guage): ditto.
13873         (image_instantiator_tree_view): ditto.
13874         (image_instantiator_tab_control): ditto.
13875         (image_instantiator_labels): ditto.
13876         (image_instantiator_layout): ditto.
13877
13878         * glyphs.c: add instance error checking to many functions.
13879         (instantiate_image_instantiator): decode device from cache_domain.
13880         (image_instantiate): partially rewrite by using
13881         decode_image_instantiator_domain to determine what domain the
13882         instance needs to be cached in.
13883         (decode_image_instantiator_domain): new function. Determine what
13884         domain the image needs to be cached in.
13885         (check_window_subwindow_cache): new error checking function.
13886         (check_instance_cache_mapper): ditto.
13887         (check_image_instance_structure): ditto.
13888         (subwindow_decode_domain): new function. Encodes a window as a
13889         subwindow's cache domain.
13890         (image_instantiator_format_create): use it for text and
13891         subwindows.
13892
13893 2000-04-21  Andy Piper  <andy@xemacs.org>
13894
13895         * glyphs.c (image_instance_device): new function.
13896         (image_instance_frame): new function.
13897         (image_instance_window): new function.
13898         (image_instance_live_p): new function.
13899
13900         * window.c (mark_window_as_deleted): reset the subwindow_instance_
13901         cache to nil.
13902
13903         * glyphs.h (struct Lisp_Image_Instance): device->domain.
13904         (IMAGE_INSTANCE_DOMAIN): new accessor.
13905         (XIMAGE_INSTANCE_DOMAIN): ditto.
13906
13907         * glyphs-x.c (x_finalize_image_instance): device->domain.
13908
13909         * glyphs-msw.c (init_image_instance_geometry): device->domain.
13910         (mswindows_finalize_image_instance): ditto.
13911
13912         * glyphs-eimage.c (jpeg_instantiate): device->domain.
13913         (gif_instantiate): ditto.
13914         (png_instantiate): ditto.
13915         (tiff_instantiate): ditto.
13916
13917         * glyphs.c (instantiate_image_instantiator): use domain rather
13918         than device.
13919         (mark_image_instance): device -> domain.
13920         (print_image_instance): ditto.
13921         (finalize_image_instance): ditto.
13922         (image_instance_equal): ditto.
13923         (allocate_image_instance): ditto.
13924         (Fcolorize_image_instance): ditto.
13925         (query_string_geometry): ditto.
13926         (image_instantiate): ditto
13927         (query_string_font): ditto.
13928         (image_instantiate): ditto.
13929         (update_subwindow): ditto.
13930         (unmap_subwindow): ditto.
13931         (map_subwindow): ditto.
13932         (subwindow_instantiate): ditto.
13933
13934         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
13935         (DOMAIN_FRAME): ditto.
13936         (DOMAIN_WINDOW): ditto.
13937         (DOMAIN_LIVE_P): ditto.
13938         (XDOMAIN_DEVICE): ditto.
13939         (XDOMAIN_FRAME): ditto.
13940         (XDOMAIN_WINDOW): ditto.
13941
13942         * specifier.c (Fvalid_specifier_domain_p): add image instances as
13943         a valid specifier domain.
13944
13945 2000-04-19  Andy Piper  <andy@xemacs.org>
13946
13947         * glyphs-widget.c (syms_of_glyphs_widget): remove
13948         widget-callback-current-channel.
13949         (vars_of_glyphs_widget): ditto.
13950         * glyphs.h: ditto
13951
13952         * gui.c (get_gui_callback): revert to previous behaviour.
13953
13954 2000-04-18  Andy Piper  <andy@xemacs.org>
13955
13956         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13957         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13958         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13959
13960         * glyphs.c (image_instance_equal): add margin_width.
13961         (image_instance_hash): ditto.
13962
13963         * glyphs-widget.c (widget_instantiate): deal with margin-width.
13964         (layout_query_geometry): ditto.
13965         (layout_layout): ditto.
13966         (syms_of_glyphs_widget): add margin-width.
13967         (image_instantiator_layout): allow margin-width.
13968
13969         * glyphs.c (update_widget_instances): make a normal function.
13970         (syms_of_glyphs): remove Qupdate_widget_instances.
13971         * glyphs.h: ditto.
13972
13973         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13974         so that we don't corrupt ideas about the last event or
13975         command. Remove widget-callback-current-channel fiddling.
13976         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13977
13978 2000-05-01  Martin Buchholz <martin@xemacs.org>
13979
13980         * XEmacs 21.2.33 is released.
13981
13982 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13983
13984         * make-src-depend: Allow dots in header file name.
13985
13986 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13987
13988         * mule-charset.h (struct charset_lookup): Add
13989         next_allocated_1_byte_leading_byte and
13990         next_allocated_2_byte_leading_byte.
13991         * mule-charset.c: Move above two variables so that those values
13992         will be dumped.
13993
13994 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
13995
13996         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
13997         when string length is zero.
13998         (find_charsets_in_emchar_string): Ditto.
13999
14000 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14001
14002         * lisp.h: extern Qdialog and Qmenubar.
14003
14004         * gui-x.c: added events.h.
14005                 also fixed typo which made the file uncompilable.
14006
14007         * general.c: Added Qmenubar and Qdialog
14008
14009 2000-04-28  Ben Wing  <ben@xemacs.org>
14010
14011         * frame-msw.c (mswindows_init_frame_1):
14012         * frame-msw.c (mswindows_mark_frame):
14013         * event-msw.c (mswindows_enqueue_dispatch_event):
14014         * console-msw.h:
14015         * console-msw.h (struct mswindows_frame):
14016         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14017         there are now three hash tables for callbacks.
14018         mswindows_enqueue_dispatch_event is no longer static.
14019
14020         * dialog-x.c (maybe_run_dbox_text_callback):
14021         * dialog-x.c (dbox_descriptor_to_widget_value):
14022         switch to new cons3 form for callbacks.
14023
14024         * glyphs-msw.c (mswindows_register_gui_item):
14025         * glyphs-msw.c (mswindows_widget_instantiate):
14026         * glyphs-msw.c (add_tree_item):
14027         * glyphs-msw.c (add_tab_item):
14028         new image instance parameter, so it can be passed to callback-ex.
14029         respect :callback-ex as well as :callback.
14030
14031         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14032         add :callback-ex.
14033
14034         * glyphs.c (print_image_instance):
14035         prettify, e.g. now prints widget type.
14036
14037         * gui-x.h:
14038         certain funs have new image instance parameter.
14039
14040         * gui.c:
14041         * gui.c (get_gui_callback):
14042         * gui.c (gui_item_add_keyval_pair):
14043         * gui.c (gui_item_init):
14044         * gui.c (gui_add_item_keywords_to_plist):
14045         * gui.c (mark_gui_item):
14046         * gui.c (gui_item_hash):
14047         * gui.c (gui_item_equal):
14048         * gui.c (copy_gui_item):
14049         * gui.c (syms_of_gui):
14050         recognize callback-ex in a number of places.
14051         also, fix the annoying "can't get out of yes-no dialog" bug.
14052
14053         * gui.h:
14054         * gui.h (struct Lisp_Gui_Item):
14055         recognize callback-ex in a number of places.
14056
14057         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14058         new parameter in button_item_to_widget_value.
14059
14060         * glyphs-x.c (x_update_widget):
14061         * glyphs-x.c (x_button_instantiate):
14062         * glyphs-x.c (x_button_update):
14063         * glyphs-x.c (x_progress_gauge_instantiate):
14064         * glyphs-x.c (x_edit_field_instantiate):
14065         * glyphs-x.c (x_combo_box_instantiate):
14066         * glyphs-x.c (x_tab_control_instantiate):
14067         * glyphs-x.c (x_label_instantiate):
14068         new image instance parameter in various places.
14069
14070         * event-Xt.c:
14071         * event-Xt.c (enqueue_Xt_dispatch_event):
14072         this fun gets exported.
14073
14074         * gui-msw.c:
14075         * gui-msw.c (mswindows_handle_gui_wm_command):
14076         handle both :callback and :callback-ex, and generate our own
14077         event because it's one of the callback-ex arguments.
14078
14079         * gui-x.c:
14080         * gui-x.c (popup_selection_callback):
14081         handle both :callback and :callback-ex, and generate our own
14082         event because it's one of the callback-ex arguments.
14083         * gui-x.c (button_item_to_widget_value):
14084         * gui-x.c (gui_items_to_widget_values_1):
14085         * gui-x.c (gui_item_children_to_widget_values):
14086         * gui-x.c (gui_items_to_widget_values):
14087         new image instance parameter in various places.
14088
14089         * fns.c (Freplace_list):
14090         fix small typo in doc string.
14091
14092         * lisp.h:
14093         declare enqueue_Xt_dispatch_event.
14094
14095 2000-04-28  Ben Wing  <ben@xemacs.org>
14096
14097         * buffer.c:
14098         * buffer.c (Frecord_buffer):
14099         * buffer.c (syms_of_buffer):
14100         delete record-buffer-hook.
14101
14102         * fns.c:
14103         * fns.c (Freplace_list):
14104         * fns.c (syms_of_fns):
14105         new primitive replace-list.
14106
14107         * frameslots.h:
14108         slot for old buffer-alist.
14109
14110         * lisp.h:
14111         exfun replace-list.
14112
14113         * redisplay.c:
14114         * redisplay.c (redisplay_frame):
14115         * redisplay.c (syms_of_redisplay):
14116         * redisplay.c (vars_of_redisplay):
14117         new hook buffer-list-changed-hook.
14118         call it.
14119
14120 2000-04-27  Ben Wing  <ben@xemacs.org>
14121
14122         * extents.h: extern in_modeline_generation.
14123
14124         * redisplay.c (generate_formatted_string_db): set
14125         in_modeline_generation.
14126
14127         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14128         flags if in modeline generation.  otherwise frame-modified-tick
14129         is ticked far too often.
14130         Declare in_modeline_generation.
14131
14132 2000-04-26  Ben Wing  <ben@xemacs.org>
14133
14134         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14135         option.
14136         (vars_of_emacs): add quick-build as an error-checking option.
14137         A bit kludgy, but there doesn't seem much point in creating
14138         a real var for this.
14139
14140         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14141
14142 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14143
14144         * redisplay.h (struct display_line): Add a new variable,
14145         line_continuation.
14146
14147         * redisplay.c (create_text_block): Set dl->line_continuation if
14148         the line continues.
14149         (create_string_text_block): Ditto.
14150         (regenerate_window_incrementally): Use line_continuation instead
14151         of searching continuation glyph.
14152         (add_margin_runes): Call add_glyph_rune.
14153         (add_glyph_rune): Handle margin glyph.
14154
14155 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14156
14157         * filelock.c (fill_in_lock_file_name):
14158         ANSIfy.
14159         Check for IS_ANY_SEP instead of '/'.
14160         (lock_file_1):
14161         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14162         Never check errno without first seeing that system call failed.
14163         (unlock_file): Add GCPRO.
14164         (Flock_buffer): Fix docstring.
14165         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14166
14167 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14168
14169         * sysdep.c (get_pty_max_bytes):
14170         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14171         strings longer than 252 bytes.
14172
14173         * md5.c: Unconditionally include ANSI header <limits.h>
14174
14175         * glyphs-x.c (convert_EImage_to_XImage):
14176         * lisp-union.h (union Lisp_Object):
14177         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14178
14179 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14180
14181         * filelock.c (current_lock_owner): Remove unused variable o, p.
14182
14183 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14184
14185         * callint.c: Remove multiply defined symbol Qlet
14186         (syms_of_callint): ditto.
14187
14188 2000-04-14  Andy Piper  <andy@xemacs.org>
14189
14190         * general.c (syms_of_general): add last-command, this-command, let
14191         and funcall.
14192
14193         * lisp.h: declare various symbols.
14194
14195         * glyphs.h: declare Qwidget_callback_current_channel;
14196
14197         * glyphs-widget.c (syms_of_glyphs_widget): add
14198         Qgui_callback_current_channel.
14199         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14200
14201         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14202         widget-callback-current-channel when invoking the interactive
14203         arg. Also bind last-command and next-command when invoking the
14204         widget updates.
14205         * gui-x.c (popup_selection_callback): ditto.
14206
14207         * gui.c (get_gui_callback): massage args so that we are always
14208         calling eval. This allows us to add our own variable bindings
14209         outside.
14210
14211         * glyphs-x.c (x_button_instantiate): use
14212         gui_items_to_widget_values since this is GC safe.
14213         (x_progress_gauge_instantiate): ditto.
14214         (x_edit_field_instantiate): ditto.
14215         (x_label_instantiate): ditto.
14216
14217         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14218         (emacs_Xt_event_widget_focus_out): new function
14219         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14220         focus.
14221         (emacs_Xt_event_add_widget_actions): new function. add focus
14222         functions as actions.
14223         (init_event_Xt_late): use it.
14224
14225 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14226
14227         * event-stream.c (Fdispatch_event): Doc fix.
14228
14229 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14230
14231         * postgresql.c: Remove all references to PQsetenv*.
14232
14233         * postgresql.h: Remove references to PGsetenvHandler object.
14234         * lrecord.h (lrecord_type): Ditto.
14235
14236 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14237
14238         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14239         real_heigh and real_width members, and accessor macros for these.
14240
14241         * glyphs-msw.c (init_image_instance_geometry): New function.
14242         (init_image_instance_from_dibitmap): Use it.
14243         (mswindows_resource_instantiate): Use it.
14244         (init_image_instance_from_xbm_inline): Use it.
14245         (mswindows_initialize_image_instance_mask): Use real bitmap
14246         geometry.
14247         (mswindows_create_resized_bitmap): Ditto.
14248         (mswindows_create_resized_mask): Ditto.
14249
14250         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14251         and bitmap to their surface size.
14252
14253 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14254
14255         * process-unix.c (unix_send_process): Guard against process MIA
14256         after Faccept_process_output.
14257
14258 2000-04-11  Ben Wing  <ben@xemacs.org>
14259
14260         * eval.c (unbind_to_hairy): fix brokenness introduced by
14261         nanosecond speed improvements.
14262
14263 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14264
14265         * sunplay.c (init_device): To play sounds correctly, the device
14266         apparently needs to be initialized at least once by XEmacs.  Make
14267         it so.
14268
14269 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14270
14271         * redisplay.c (add_margin_runes): Add text image glyph
14272           handling.
14273
14274 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14275
14276         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14277         gcc is newer than 2.5.
14278
14279 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14280
14281         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14282
14283         * fns.c (size_bit_vector):
14284         * alloc.c (size_vector):
14285         (make_vector_internal):
14286         (make_bit_vector_internal):
14287         (sweep_bit_vectors_1):
14288         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14289
14290 2000-04-06  Andy Piper  <andy@xemacs.org>
14291
14292         * gmalloc.c (malloc): undo previous change.
14293         (malloc): ditto.
14294         (free): ditto.
14295         (realloc): ditto.
14296
14297 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14298
14299         * line-number.c (buffer_line_number): Revert to former version.
14300
14301 2000-04-06  Andy Piper  <andy@xemacs.org>
14302
14303         * gmalloc.c (malloc): add error checking.
14304         (malloc): ditto.
14305         (free): ditto.
14306         (realloc): ditto.
14307
14308         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14309         button_item_to_widget_value arg.
14310
14311         * glyphs-x.c (x_button_instantiate): add extra
14312         button_item_to_widget_value arg.
14313         (x_progress_gauge_instantiate): ditto.
14314         (x_edit_field_instantiate): ditto.
14315         (x_label_instantiate): ditto.
14316
14317         * gui-x.c (gui_items_to_widget_values_1): add extra
14318         button_item_to_widget_value arg.
14319         (button_item_to_widget_value): add extra menu_item_p arg.
14320
14321         * gui-x.h: change signature of button_item_to_widget_value.
14322
14323         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14324         button_item_to_widget_value arg.
14325
14326 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14327
14328         * buffer.h (struct buffer): auto_save_modified should be long.
14329
14330 2000-04-05  Andy Piper  <andy@xemacs.org>
14331
14332         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14333         type.
14334         (button_query_geometry): give a little more room so that athena
14335         buttons fit.
14336
14337 2000-04-05  Andy Piper  <andy@xemacs.org>
14338
14339         * faces.c (complex_vars_of_faces): The widget face should inherit
14340         the font of the gui-element face.
14341
14342 2000-04-04  Andy Piper  <andy@xemacs.org>
14343
14344         * glyphs-x.c (x_button_update): new function. unconditionally
14345         update a button's state when the instance is dirty.
14346         (image_instantiator_format_create_glyphs_x): add x_button_update.
14347         (x_widget_instantiate): remove old resize cruft.
14348
14349 2000-04-02  Andy Piper  <andy@xemacs.org>
14350
14351         * frame.c (change_frame_size_1): The introduction of gutters means
14352         that we need to allow 0 as a potential frame dimension.
14353
14354 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14355
14356         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14357         image glyph if allow_cursor.
14358         (add_hscroll_rune): Don't allow cursor to border glyph.
14359         (create_text_block): Ditto.
14360
14361         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14362         text not in buffer.
14363         (redisplay_output_layout): Call ensure_face_cachel_complete for
14364         text image glyph.
14365
14366
14367 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14368
14369         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14370
14371         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14372         not in buffer
14373
14374         * redisplay-tty.c (tty_output_display_block): Delete the routine
14375         for text image glyph
14376         * redisplay-x.c (x_output_display_block): ditto
14377         * redisplay-msw.c (mswindows_output_display_block): ditto
14378
14379 2000-02-02  Mike Alexander  <mta@arbortext.com>
14380
14381         Note: Some of these were committed by accident as part of other
14382         patches.
14383
14384         * regex.c (regex_compile): Avoid compiler warnings.
14385
14386         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14387
14388         * nt.h: Declare term_ntproc correctly.
14389
14390         * nt.c: Remove incorrect declaration of get_home_directory which
14391         is declared correctly in lisp.h.
14392
14393         * keymap.c (get_keyelt): Avoid compiler warnings.
14394         (raw_lookup_key_mapper): Avoid compiler warnings.
14395
14396         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14397
14398         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14399
14400         * filemode.c (mode_string): Avoid compiler warnings.
14401
14402         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14403         avoid warning.
14404
14405         * events-mod.h: Undef some things that winuser.h defines differently.
14406
14407         * data.c (Faset): Avoid compiler warnings.
14408
14409         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14410
14411 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14412
14413         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14414         Fall through to simple beep on error.
14415         Replace "extern" by real header file.
14416
14417         * linuxplay.c: Use nativesound.h
14418         (play_sound_data): Return error code. Be less verbose on error.
14419
14420         * sunplay.c: Use nativesound.h
14421         (play_sound_data): Return error code. Be less verbose on error.
14422
14423         * ntplay.c: Use nativesound.h
14424         (play_sound_data): Return fake error code
14425
14426         * sgiplay.c: Use nativesound.h
14427         (play_sound_data): Return error code
14428
14429         * hpplay.c: Use nativesound.h, partially implement
14430         new error code. Break compilation until finished.
14431         (play_sound_data): error code.
14432
14433         * nativesound.h (play_sound_file):
14434           (play_sound_data): Prototype in new header.
14435
14436 2000-03-31  Andy Piper  <andy@xemacs.org>
14437
14438         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14439         for toggle and radio buttons.
14440         (image_instantiator_buttons): use it.
14441
14442 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14443
14444         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14445         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14446         found. Scrollbar event probably belonged to some old config.
14447
14448 2000-03-31  Andy Piper  <andy@xemacs.org>
14449
14450         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14451         than 1.
14452         (initialize_widget_image_instance): default layout to
14453         LAYOUT_HORIZONTAL rather than 0.
14454         (widget_instantiate): reverse the item list at the end rather than
14455         every iteration.
14456         (layout_layout): re-code for the border text at the front of the
14457         item list rather than at the end.
14458         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14459         provided by the user.
14460         (widget_query_geometry): comment.
14461
14462 2000-03-30  Andy Piper  <andy@xemacs.org>
14463
14464         * glyphs-widget.c (image_instantiator_layout): allow standard
14465         widget keywords in layouts.
14466
14467         * gutter.c (output_gutter): cope with nil gutter contents.
14468
14469         * frame.c (Fset_frame_properties): add gutter docs.
14470
14471 2000-03-29  Andy Piper  <andy@xemacs.org>
14472
14473         * toolbar-msw.c (TBSTYLE_FLAT): add.
14474         (mswindows_output_toolbar): minor fiddling.
14475
14476 2000-03-29  Andy Piper  <andy@xemacs.org>
14477
14478         * gutter.c (output_gutter): force gutter size recalculation if
14479         what we are trying to display won't fit.
14480         (update_gutter_geometry): new function. A per-gutter version of
14481         update_frame_gutter_geometry.
14482         (update_frame_gutter_geometry): use it.
14483         (redraw_exposed_gutter): add extra debugging output.
14484
14485 2000-03-28  Mike Alexander  <mta@arbortext.com>
14486
14487         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
14488         (pdump_file_unmap): Implement it on Windows
14489         (pdump_file_get): Save alocated handles for pdump_file_unmap
14490
14491 2000-03-28  Andy Piper  <andy@xemacs.org>
14492
14493         * gui.c (get_gui_callback): treat Quit specially.
14494
14495 2000-03-27  Andy Piper  <andy@xemacs.org>
14496
14497         * glyphs.c (image_instantiate): be careful to check in the same
14498         way we assigned.
14499
14500 2000-03-27  Didier Verna  <didier@xemacs.org>
14501
14502         * config.h.in: define the proper SMART_INCLUDE macro.
14503         handle renaming of `foo_h_path' to `foo_h_file'.
14504
14505         * database.c: ditto.
14506
14507         * emacs.c: ditto.
14508
14509         * linuxplay.c: ditto.
14510
14511         * terminfo.c: ditto.
14512
14513         * tooltalk.h: ditto.
14514
14515 2000-03-27  Andy Piper  <andy@xemacs.org>
14516
14517         * glyphs-msw.c (mswindows_update_widget): make sure the widget
14518         gets updated whenever the face might have changed.
14519
14520 2000-03-26  Mike Alexander  <mta@arbortext.com>
14521
14522         * dumper.c (pdump_resource_free): Fix the comment.
14523
14524 2000-03-21  Olivier Galibert  <galibert@pobox.com>
14525
14526         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
14527
14528 2000-03-22  Mike Alexander  <mta@arbortext.com>
14529
14530         * dumper.c: Include Windows headers on Windows
14531         (pdump_resource_free): Add a body to the function
14532         (pdump_load): exe_name -> exe_path and add some comments.
14533
14534 2000-03-25  Mike Alexander  <mta@arbortext.com>
14535
14536         * gui.c (copy_gui_item_tree): Return a value in all cases
14537
14538 2000-03-21  Didier Verna  <didier@xemacs.org>
14539
14540         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
14541         lwlib/config.h.in.
14542         (SMART_INCLUDE): new macro.
14543         (POSTGRES_INCLUDE): new macro to include postgresql headers from
14544         the proper location.
14545
14546         * postgresql.c: use it.
14547
14548         * inline.c: ditto.
14549
14550 2000-03-24  Andy Piper  <andy@xemacs.org>
14551
14552         * gutter.c (redraw_exposed_gutters): must be "in display" when we
14553         do this.
14554
14555 2000-03-24  Andy Piper  <andy@xemacs.org>
14556
14557         * redisplay-output.c (compare_runes): use image_instance_changed
14558         to detect changes. Do not depend on glyphs_changed, only depend on
14559         dirtiness.
14560          (redisplay_output_layout): add debug messages.
14561         (compare_runes): ditto.
14562
14563         * glyphs.h: declare new functions.
14564         (struct Lisp_Image_Instance): remove percent and associated
14565         accessors.
14566
14567         * gui.h: declare new copying functions.
14568
14569         * gui.c (copy_gui_item_tree): new function.
14570         (copy_gui_item): new function.
14571         (gui_item_id_hash): revert to standard hash.
14572         (gui_item_hash): ditto.
14573         (gui_item_hash_internal): deleted.
14574         (mark_gui_item): mark value.
14575         (gui_item_add_keyval_pair): add value.
14576         (gui_item_init): ditto.
14577         (gui_add_item_keywords_to_plist): ditto.
14578         (gui_item_equal): ditto.
14579         (syms_of_gui): add Q_value.
14580
14581         * glyphs-x.c (x_progress_gauge_update): use pending items and
14582         value for setting the state.
14583         (x_update_widget): don't set items from pending here.
14584
14585         * glyphs-widget.c (update_widget): update items here.
14586         (progress_gauge_set_property): use items for storing value. Put
14587         new value in pending items.
14588
14589         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
14590         items for new value. Convert percent -> value.
14591         (mswindows_tab_control_update): don't update items here.
14592
14593         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
14594         (update_subwindow): ditto.
14595         (image_instance_changed): new function. Compare hash values and
14596         past and present widget items.
14597         (image_instantiate): We more careful about where we instantiate
14598         things.
14599         (image_instantiate): add error checking.
14600
14601         * gutter.c (syms_of_gutter): use -hook.
14602
14603 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
14604
14605         * console-tty.c (Fset_console_tty_input_coding_system): Use
14606         Qkeyboard.
14607         (Fset_console_tty_output_coding_system): Use Qterminal.
14608         (tty_init_console): Use Qkeyboard and Qterminal.
14609
14610 2000-03-21  Ben Wing  <ben@xemacs.org>
14611
14612         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
14613         From Mike Alexander <mta@arbortext.com>.
14614
14615 2000-03-21  Ben Wing  <ben@xemacs.org>
14616
14617         * event-msw.c (mswindows_need_event): Horrible kludge to fix
14618         process brokenness.  Proper implementation to come.
14619         * callproc.c:
14620         Rename call-process-internal to old-call-process-internal.
14621         New impl. in process.el.
14622
14623 2000-03-21  Martin Buchholz  <martin@xemacs.org>
14624
14625         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
14626
14627 2000-03-20  Andy Piper  <andy@xemacs.org>
14628
14629         * glyphs.c (full_list_hash): make hashes of the same elements in
14630         different orders return different values.
14631
14632 2000-03-20  Martin Buchholz <martin@xemacs.org>
14633
14634         * XEmacs 21.2.32 is released.
14635
14636 2000-03-20  Martin Buchholz  <martin@xemacs.org>
14637
14638         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
14639         (DFC_MALLOC_USE_CONVERTED_DATA):
14640         Add aliasing-safe casts to allow use with char* or unsigned char*
14641         lvalues.
14642
14643         * eldap.c (Fldap_open):
14644         (Fldap_search_basic):
14645         (Fldap_add):
14646         (Fldap_modify):
14647         Make C++-compilable.
14648         Make sure GCPRO'ed variables are initialized.
14649         Use temp variables to avoid repeated calls to Flength.
14650
14651 2000-03-16  Martin Buchholz  <martin@xemacs.org>
14652
14653         * sysfile.h:
14654         Make sure PATH_MAX is always defined.
14655         Include limits.h for PATH_MAX.
14656         Deprecate use of MAXPATHLEN.
14657
14658 2000-03-10  Martin Buchholz  <martin@xemacs.org>
14659
14660         * emacs.c: Add reinit_vars_of_fileio.
14661         * symsinit.h: Add reinit_vars_of_fileio.
14662         * fileio.c (reinit_vars_of_fileio): New.
14663         * fileio.c (Fmake_temp_name):
14664         Initialize temp_name random number from microseconds to make
14665         collisions even less likely.  Initialize always at process startup
14666         time.  (make-temp-name) used to return the same file name twice in
14667         a row when PDUMP.
14668         Random stylistic fiddling.
14669         Comment fixes.
14670
14671 2000-03-20  Andy Piper  <andy@xemacs.org>
14672
14673         * glyphs.c (image_instantiate): allow text glyphs to be
14674         instantiated in the minibuffer window.
14675
14676 2000-03-19  Andy Piper  <andy@xemacs.org>
14677
14678         * glyphs.c (image_instance_hash): be careful about which items we
14679         hash on.
14680
14681         * glyphs-widget.c (tab_control_set_property): record into pending
14682         items rather than the actual items.
14683
14684         * glyphs-x.c (x_update_widget): use pending items to update with.
14685
14686         * glyphs-msw.c (mswindows_tab_control_update): use pending items
14687         to update with.
14688
14689         * glyphs.c (mark_image_instance): mark pending items.
14690
14691         * window.c (Fset_window_configuration): record the buffer.
14692         (Fselect_window): totally revert previous change which breaks many
14693         things.
14694
14695 2000-03-18  Andy Piper  <andy@xemacs.org>
14696
14697         * glyphs-msw.c (mswindows_tab_control_update): force selected
14698         item.
14699
14700         * glyphs.c (image_instantiate): don't allow the minibuffer as a
14701         window domain cache, otherwise we get inconsistencies at
14702         startup. There is something fishy at startup which can lead to the
14703         minibuffer being the selected window when the gutter content is
14704         instantiated.
14705
14706         * gui.c (parse_gui_item_tree_list): add probably unnecessary
14707         gcpros.
14708         (parse_gui_item_tree_children): ditto.
14709         (parse_gui_item_tree_item): ditto.
14710
14711         * glyphs.c (Fupdate_widget_instances): return something.
14712
14713 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
14714
14715         * window.c (Fselect_window): Undo 2000-03-17 change.
14716
14717 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
14718
14719         * postgresql.c (Fpq_setenv): Remove this turkey when linking
14720         against v7.0 libraries.  Insta-coredump city until the postgres
14721         folks fix it.
14722
14723 2000-03-17  Andy Piper  <andy@xemacs.org>
14724
14725         * faces.c (complex_vars_of_faces): don't give the widget face an
14726         inherited background pixmap.
14727
14728         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
14729         selected item.
14730
14731         * event-stream.c (Fdispatch_non_command_events): return something.
14732
14733         * gutter.c (output_gutter): use widget face.
14734         (clear_gutter): ditto.
14735
14736         * NEWS: adjust again.
14737
14738         * window.c (Fselect_window): make sure this runs to completion to
14739         avoid oddities with Fset_window_configuration.
14740         (Fcurrent_window_configuration): in general do not save the
14741         minibuffer as the selected window.
14742
14743         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
14744
14745 2000-03-16  Olivier Galibert  <galibert@pobox.com>
14746
14747         * emacs.c (Frunning_temacs_p): Revert previous patch.
14748         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
14749
14750 2000-03-16  Andy Piper  <andy@xemacs.org>
14751
14752         * glyphs-x.c (x_tab_control_update): if no widget values then
14753         return.
14754
14755         * NEWS: update for new features.
14756
14757         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
14758         synthetic event to the native system.
14759         (reinit_vars_of_event_Xt): set force_event_pending to
14760         emacs_Xt_force_event_pending.
14761
14762         * events.h (struct event_stream): add force_event_pending.
14763
14764         * specifier.c (recompute_one_cached_specifier_in_window): add
14765         comment.
14766
14767         * redisplay.c (redisplay_frame): don't call
14768         update_frame_subwindows. Reset subwindow cachels when
14769         subwindows_changed, removing this was an optimization too far.
14770
14771         * redisplay-output.c (compare_runes): reorganize so that we catch
14772         glyph changes when we want them. Set optimize_output when this
14773         would help layouts.
14774         (redisplay_output_layout): remove frame_really_changed, use
14775         optimize_output instead.
14776
14777         * redisplay-msw.c (mswindows_output_display_block): reset
14778         optimize_output after outputting a glyph.
14779         * redisplay-x.c (x_output_display_block): ditto.
14780         * redisplay-tty.c (tty_output_display_block): ditto.
14781
14782         * gutter.c: (specifier_vars_of_gutter): use new spec changed
14783         functions.
14784         (gutter_specs_changed): do specific gutter positions.
14785         (top_gutter_specs_changed): new function. Only update the
14786         specified gutter specs.
14787         (bottom_gutter_specs_changed): ditto.
14788         (left_gutter_specs_changed): ditto.
14789         (right_gutter_specs_changed): ditto.
14790
14791         * gui.c (gui_item_hash_internal): new function, does a real hash.
14792         (gui_item_id_hash): use it.
14793         (gui_item_hash): hash the eval'ed gui_item.
14794
14795         * gui-x.c (popup_selection_callback): send an eval event to call
14796         Fupdate_widget_instances.
14797
14798         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
14799         to call Fupdate_widget_instances.
14800
14801         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
14802         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
14803
14804         * glyphs.c: (update_frame_subwindows): deleted.
14805         (Fupdate_widget_instances): new function for updating the dirty
14806         state of widgets that might have changed.
14807         (syms_of_glyphs): add Qupdate_widget_instances.
14808         (full_list_hash): hash a list completely.
14809         (image_instance_hash): use it for items and properties.
14810
14811         * frame-msw.c (mswindows_size_frame_internal): remove unused
14812         variable.
14813
14814         * faces.h (struct face_cachel): fix comment.
14815
14816         * event-stream.c (Fdispatch_non_command_events): new
14817         function. Process non-command events, forcing an event cycle
14818         beforehand.
14819         (syms_of_event_stream): declare.
14820         (event_stream_force_event_pending): new function. Force an event
14821         on the native event queue so that an event cycle will occur next
14822         time we check.
14823
14824         * event-msw.c:
14825         (struct ntpipe_shove_stream):
14826         (mswindows_enqueue_dispatch_event):
14827         (mswindows_dequeue_dispatch_event):
14828         (mswindows_cancel_dispatch_event):
14829         (mswindows_pump_outstanding_events):
14830         (mswindows_drain_windows_queue):
14831         (mswindows_handle_paint):
14832         (mswindows_wnd_proc):
14833         (mswindows_key_to_emacs_keysym):
14834         (get_process_input_waitable):
14835         (emacs_mswindows_delete_stream_pair): re-indent file.
14836         (mswindows_need_event): do not process further fds if the windows
14837         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
14838         fixes the 100% cpu problem.
14839         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
14840
14841 2000-03-15  Olivier Galibert  <galibert@pobox.com>
14842
14843         * alloc.h: New.
14844         * dumper.h: New.
14845         * dumper.c: New.
14846
14847         * emacs.c: Moved dump file searching to dumper.c.
14848         (Frunning_temacs_p): Fixed.
14849
14850         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
14851         last_lrecord_type_index_assigned.
14852
14853 2000-02-20  Olivier Galibert  <galibert@pobox.com>
14854
14855         * symsinit.h: Added reinit parameter to init_console_stream
14856         declaration.
14857
14858         * lisp.h: Added file parameter to pdump_load declaration.
14859
14860         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
14861         support.  Added dump file searching.
14862
14863         * config.h.in: Added EMACS_PROGNAME.
14864
14865         * console-stream.c (init_console_stream): Fix reinitialisation
14866         when running from temacs.
14867
14868         * alloc.c (pdump): Add id support.
14869         (pdump_load): Add file parameter and signature/id support.
14870
14871         * Makefile.in.in: Add full pdump support.
14872
14873 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
14874
14875         * postgresql.c: Update documentation to reflect latest code
14876         status.
14877         (print_result): Show tuple counts in printed representation when
14878         appropriate.
14879         (Fpq_put_nbytes): MULE-ize.
14880         (Fpq_get_line_async): Ditto.
14881
14882 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14883
14884         * postgresql.c (Fpq_lo_import): Fix return value.
14885         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
14886
14887 2000-03-13  Ben Wing  <ben@xemacs.org>
14888
14889         * alloc.c (pdump_load):
14890         Fix compile warning under mswin.
14891
14892 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14893
14894         * postgresql.c: Mule-ization, bug fixes.
14895         Use PG_CODING to encapsulate coding system name changes.
14896         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
14897         (pg-coding-system): Create.
14898
14899         (Fpq_conn_defaults): Mule-ize.
14900         (Fpq_connectdb): Mule-ize & bug fix.
14901         (Fpq_connect_start): Mule-ize.
14902         (Fpq_set_client_encoding): Mule-ize.
14903         (Fpq_finish): Document `DEAD' connection status.
14904         (Fpq_clear): Ditto.
14905         (Fpq_pgconn): Mule-ize.
14906         (Fpq_exec): Mule-ize & bug fix.
14907         (Fpq_send_query): Ditto.
14908         (Fpq_get_result): Ditto.
14909         (Fpq_res_status): Mule-ize.
14910         (Fpq_result_error_message): Mule-ize.
14911         (Fpq_ntuples): fix comments.
14912         (Fpq_fname): Mule-ize.
14913         (Fpq_fnumber): Mule-ize.
14914         (Fpq_ftype): fix comments.
14915         (Fpq_get_value): Mule-ize.
14916         (Fpq_cmd_status): Ditto.
14917         (Fpq_cmd_tuples): Ditto.
14918         (Fpq_oid_value): Ditto.
14919         (Fpq_notifies): Ditto.
14920         (Fpq_lo_import): Ditto.
14921         (Fpq_lo_export): Ditto.
14922         (Fpq_get_line): Ditto.
14923         (Fpq_put_line): Mule-ize and bug fix.
14924         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
14925
14926 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14927
14928         * postgresql.c (vars_of_postgresql): Mule-ize.
14929         (Fpq_conn_defaults): Ditto.
14930
14931 2000-03-12  Ben Wing  <ben@xemacs.org>
14932
14933         * alloc.c (Fmake_byte_code):
14934         * alloc.c (debug_string_purity_print):
14935         * alloc.c (pdump_backtrace):
14936         * alloc.c (pdump_get_indirect_count):
14937         * alloc.c (pdump_register_sub):
14938         * alloc.c (pdump_register_object):
14939         * alloc.c (pdump_register_struct):
14940         * alloc.c (pdump_dump_data):
14941         * alloc.c (pdump_reloc_one):
14942         Minor cleanups.
14943
14944         * console-msw.c:
14945         * console-msw.c (GetConsoleHwnd):
14946         * console-msw.c (msw_hide_console):
14947         * console-msw.c (msw_show_console):
14948         * console-msw.c (msw_ensure_console_buffered):
14949         * console-msw.c (msw_output_console_string):
14950         * console-msw.c (console_type_create_mswindows):
14951
14952         a) Added functions to manipulate the console window for use with
14953         shell support.
14954
14955         b) Added support for writing text to the console, which is now
14956         used under Windows when xemacs is not being run non-interactively,
14957         to write text that would otherwise be destined for stdout because
14958         under these circumstances, text written to stdout tends to
14959         disappear and not be seen.
14960
14961         * console-msw.h:
14962         * event-Xt.c:
14963         * event-Xt.c (x_event_to_emacs_event):
14964         * event-Xt.c (describe_event_window):
14965         * events-mod.h (XEMACS_MOD_CONTROL):
14966         * events.c:
14967         * events.c (Fmake_event):
14968         * events.c (character_to_event):
14969         * events.c (event_to_character):
14970         * events.c (format_event_object):
14971         * events.c (Fevent_modifiers):
14972         * events.h:
14973         * events.h (struct key_data):
14974         * events.h (struct button_data):
14975         * events.h (struct misc_user_data):
14976         * frame-x.c (Fcde_start_drag_internal):
14977         * frame-x.c (Foffix_start_drag_internal):
14978         * gpmevent.c (Freceive_gpm_event):
14979         * keymap.c:
14980         * keymap.c (bucky_sym_to_bucky_bit):
14981         * keymap.c (control_meta_superify):
14982         * keymap.c (make_key_description):
14983         * keymap.c (keymap_lookup_directly):
14984         * keymap.c (create_bucky_submap):
14985         * keymap.c (keymap_store):
14986         * keymap.c (define_key_check_and_coerce_keysym):
14987         * keymap.c (define_key_parser):
14988         * keymap.c (define_key_alternate_name):
14989         * keymap.c (Fdefine_key):
14990         * keymap.c (raw_lookup_key_mapper):
14991         * keymap.c (struct map_keymap_unsorted_closure):
14992         * keymap.c (map_keymap_unsorted_mapper):
14993         * keymap.c (map_keymap_sort_predicate):
14994         * keymap.c (map_keymap_sorted):
14995         * keymap.c (accessible_keymaps_mapper_1):
14996         * keymap.c (where_is_recursive_mapper):
14997         * keymap.c (describe_map_mapper):
14998         * keymap.c (describe_map_sort_predicate):
14999         * keymap.c (describe_map):
15000         * keymap.c (complex_vars_of_keymap):
15001         And a number of other files, the key modifier preprocessor
15002         constants that xemacs uses have names that conflict with constants
15003         defined under MS Windows for other purposes, so they were renamed
15004         to begin with the prefix XEMACS_. The variables that hold such
15005         modifiers were changed to consistently be of type int to fix
15006         various compile warnings.
15007
15008         * console.c (complex_vars_of_console):
15009         * device.c:
15010         * device-msw.c:
15011         * device-msw.c (mswindows_finish_init_device):
15012         * device-msw.c (msw_get_workspace_coords):
15013         * device-msw.c (mswindows_device_system_metrics):
15014         and various other files, added support for a new
15015         device property called offset-workspace which returns the position
15016         of the upper left corner of the workspace area and goes along with
15017         the existing size-workspace property.
15018
15019         * dialog-msw.c:
15020         * dialog-msw.c (push_bufbyte_string_as_unicode):
15021         * dialog-msw.c (mswindows_popup_dialog_box):
15022         Added support for XEmacs-style accelerator specifications in
15023         button text.  Note: I didn't add support for this under X Windows,
15024         and somebody needs to do this.
15025
15026         * dialog.c:
15027         * dialog.c (Fpopup_dialog_box):
15028         Documented the support for accelerators that was just mentioned.
15029
15030         editfns.c (get_home_directory): Changed behavior under Windows
15031         when HOME not defined; former behavior was irretrievably broken.
15032
15033         * emacs.c:
15034         * emacs.c (main_1):
15035         * emacs.c (main):
15036         * minibuf.c (clear_echo_area_internal):
15037         * minibuf.c (echo_area_append):
15038         * print.c:
15039         * print.c (std_handle_out_external):
15040         * print.c (std_handle_out_va):
15041         * print.c (fatal):
15042         * print.c (write_string_to_stdio_stream):
15043         * print.c (output_string):
15044         * print.c (debug_print):
15045         * print.c (debug_backtrace):
15046         * print.c (debug_short_backtrace):
15047         Cleaned up the code that prints text to stdout so that this can be
15048         changed to output into a console window instead under MS Windows,
15049         as described above.
15050
15051         * eval.c:
15052         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15053         * eval.c (internal_catch):
15054         * eval.c (unwind_to_catch):
15055         * eval.c (throw_or_bomb_out):
15056         * eval.c (condition_case_1):
15057         * eval.c (signal_1):
15058         * eval.c (check_error_state_sanity):
15059         * eval.c (call_with_suspended_errors_1):
15060         * eval.c (call_with_suspended_errors):
15061         * eval.c (reinit_vars_of_eval):
15062         Added code to catch throw loops and check for a pesky bug that may
15063         be gone now.
15064
15065         * event-msw.c:
15066         * event-msw.c (key_needs_default_processing_p):
15067         * event-msw.c (mswindows_wnd_proc):
15068         * event-msw.c (mswindows_modifier_state):
15069         * event-msw.c (emacs_mswindows_quit_p):
15070         * event-msw.c (vars_of_event_mswindows):
15071         a) Added support for using the alt key to select menu items as is
15072         standard under MS Windows.  This is controlled using the variable
15073         menu-accelerator-enabled, just like under X Windows.  There is an
15074         option on the options menu to turn this support on.  I really
15075         think that it should be on by default under Windows, but I'm not
15076         going to make this change yet.
15077
15078         b)  Added support for dynamic display size changes under Windows.
15079
15080         * event-stream.c:
15081         * event-stream.c (maybe_echo_keys):
15082         * event-stream.c (Fnext_event):
15083         * event-stream.c (command_builder_find_leaf):
15084         * event-stream.c (lookup_command_event):
15085         * event-stream.c (execute_command_event):
15086         * event-stream.c (pre_command_hook):
15087         * event-stream.c (post_command_hook):
15088         * event-stream.c (syms_of_event_stream):
15089         * event-stream.c (vars_of_event_stream):
15090         * event-stream.c (complex_vars_of_event_stream):
15091         * events.h (struct command_builder):
15092
15093         a) Tried to clean up a little bit the horribly written x-specific
15094         accelerator code that crept into this file.  I moved this code
15095         into menubar-x.c where it belongs. I also needed to move the
15096         command builder structure into the file events.h because it is
15097         accessed directly by this accelerator code.  What I didn't do, but
15098         which should be done at some point, is to properly abstract this
15099         code using device methods instead of the kludgy way that it
15100         currently hooks into the event code.
15101
15102         b) Added the lisp variables this-command-properties and
15103         last-command- properties, which should be used to synchronize two
15104         adjacent commands in preference to playing games with the variable
15105         this-command, which is typically what happens.
15106
15107         c) Added some slightly nasty code to hook into the lisp support
15108         for shifted- motion-key selection.  This is actually necessary for
15109         somewhat complicated reasons, which are described in
15110         simple.el. (NB: I think the proper thing would be to have the code
15111         that calls the pre and post command hooks also call out to generic
15112         lisp functions in simple.el, where all built-in stuff could be
15113         added.  I will think about this more.)
15114
15115         * event-unixoid.c (poll_fds_for_input):
15116         * lread.c (readchar):
15117         * redisplay-tty.c (tty_clear_frame):
15118         * redisplay-x.c (x_get_gc):
15119         * signal.c (interrupt_signal):
15120         And a whole bunch of other files: fixed up places that printed
15121         directly to stderr to instead call the function stderr_out so that
15122         the changes I made under Windows work correctly.
15123
15124         * filemode.c (mode_string):
15125         Warning fixes.
15126
15127         * frame-msw.c:
15128         * frame-msw.c (mswindows_size_frame_internal):
15129         Fixed the computation of frame size and position to keep the frame
15130         within the workspace area, rather than within the physical
15131         dimensions of the screen, so that the frame doesn't overlap window
15132         manager decorations, such as the start menu and toolbar, typically
15133         at the bottom of the screen.
15134
15135         * frame.c (vars_of_frame):
15136         Changed the default frame title format under MS Windows to consist
15137         of buffername-XEmacs, which is standard under MS Windows.  I think
15138         it might be a good idea to change this everywhere because I think
15139         it is superior to the current frame title format, but this is the
15140         kind of change that is likely to cause some people to get annoyed,
15141         so I'm not making it.
15142
15143         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15144
15145         * gui-msw.c (mswindows_handle_gui_wm_command):
15146         Fixed compile warnings.
15147
15148         * gui-x.c:
15149         * gui-x.c (strdup_and_add_accel):
15150         * gui-x.c (button_item_to_widget_value):
15151         * gui-x.h:
15152         Added code to automatically put an accelerator onto the beginning
15153         of menu items that don't have one as is now the standard, and is
15154         described more later.  Also fixed things so that the menu item
15155         name can be an evaluated expression, again a new standard.
15156
15157         * gui.c:
15158         * gui.c (gui_item_add_keyval_pair):
15159         * gui.c (make_gui_item_from_keywords_internal):
15160         * gui.c (gui_add_item_keywords_to_plist):
15161         * gui.c (gui_item_accelerator):
15162         * gui.c (gui_name_accelerator):
15163         * gui.c (gui_item_included_p):
15164         * gui.c (gui_item_display_flush_left):
15165         * gui.c (gui_item_display_flush_right):
15166         * gui.c (parse_gui_item_tree_item):
15167         * gui.c (parse_gui_item_tree_children):
15168         * gui.c (parse_gui_item_tree_list):
15169         Mule-ized.  Cleanup.  GCPRO addition.
15170
15171         * line-number.c (buffer_line_number):
15172         * lisp.h:
15173         * lisp.h (EMACS_INT_MAX):
15174         Added the manifest constant EMACS_INT_MIN corresponding to the
15175         existing constant EMACS_INT_MAX.  This is partially to fix compile
15176         warnings under Windows, and partly for cleanliness.
15177
15178         * menubar-msw.c:
15179         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15180         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15181         * menubar-msw.c (displayable_menu_item):
15182         * menubar-msw.c (populate_menu_add_item):
15183         * menubar-msw.c (populate_or_checksum_helper):
15184         * menubar-msw.c (populate_menu):
15185         * menubar-msw.c (update_frame_menubar_maybe):
15186         * menubar-msw.c (prune_menubar):
15187         * menubar-msw.c (msw_char_is_accelerator):
15188         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15189         * menubar-msw.c (mswindows_handle_wm_command):
15190         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15191         * menubar-msw.c (mswindows_handle_wm_initmenu):
15192         * menubar-msw.c (mswindows_update_frame_menubars):
15193         * menubar-msw.c (mswindows_free_frame_menubars):
15194         * menubar-msw.c (mswindows_popup_menu):
15195         Fixed a bug in handling accelerators where an extra character
15196         would be displayed in the menu item.  Also generalized the
15197         function displayable_menu_item because it is now used by the
15198         dialog box code as well.  And finally, added code in the functions
15199         that create the menubar to extract a list of accelerators for the
15200         top level menubar, which is used in the event code to determine
15201         whether a particular alt-key combination should be used to invoke
15202         a menu item, or should be passed through to access the standard
15203         XEmacs keymap binding for this key combination.
15204
15205         Much needed GCPROing.
15206
15207         * menubar-x.c:
15208         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15209         * menubar-x.c (menu_item_descriptor_to_widget_value):
15210         * menubar-x.c (restore_in_menu_callback):
15211         * menubar-x.c (x_popup_menu):
15212         * menubar-x.c (menu_move_up):
15213         * menubar-x.c (menu_move_down):
15214         * menubar-x.c (menu_move_left):
15215         * menubar-x.c (menu_move_right):
15216         * menubar-x.c (menu_select_item):
15217         * menubar-x.c (command_builder_operate_menu_accelerator):
15218         * menubar-x.c (menu_accelerator_junk_on_error):
15219         * menubar-x.c (command_builder_find_menu_accelerator):
15220         * menubar-x.c (Faccelerate_menu):
15221         * menubar.h:
15222         Moved a whole bunch of code here that was previously in
15223         event-stream.c as described above.  There is also code connected
15224         to the new standard of adding an accelerator to the beginning of
15225         menu items that don't have one as described above and below.
15226
15227         * menubar.c:
15228         * menubar.c (menu_parse_submenu_keywords):
15229         * menubar.c (Fmenu_find_real_submenu):
15230         * menubar.c (Fnormalize_menu_item_name):
15231         * menubar.c (syms_of_menubar):
15232         * menubar.c (vars_of_menubar):
15233         * menubar.c (complex_vars_of_menubar):
15234
15235         a) Cleaned up a bunch of documentation and improved it.
15236
15237         b) XEmacs now automatically adds an accelerator onto the beginning
15238         of any menu items that don't have one.  I did this because there
15239         will inevitably be some menu items on the main menubar that don't
15240         have accelerators on them because the package that adds that
15241         particular menu item hasn't yet been fixed up to have accelerators
15242         in them and it looked rather strange to have some items with and
15243         some items without accelerators, especially since even in items
15244         without accelerators, you can, at least under windows, still
15245         access the item through an accelerator corresponding to the first
15246         character in the item's name.  If people don't like this behavior,
15247         I can add a variable to turn it off optionally, but I'm not sure
15248         this is a good idea because we really do need to have accelerators
15249         on all of the menu items, and if a package doesn't like the
15250         accelerators being put on the first character, then it should put
15251         the accelerators where they belong.
15252
15253         c) I made a behavior change, which is that the descriptor that
15254         specifies the text of the menu item, which formerly was just a
15255         string, can now also be an evaluated expression.  This makes this
15256         descriptor parallel with all of the others, which could also be
15257         evaluated expressions.  This also obviates the need for the
15258         keyword :label, which was previously listed in the documentation
15259         as unimplemented, and which was for the same purpose.
15260
15261         d) GCPROing.
15262
15263         * ntproc.c:
15264         * ntproc.c (new_child):
15265         * ntproc.c (sys_spawnve):
15266         * ntproc.c (find_child_console):
15267         * ntproc.c (sys_kill):
15268         Fixed compile warnings.  By the way, this file should really go
15269         away entirely, and this will happen as soon as Kirill makes his
15270         final round of process cleanups, which affect the function
15271         call-process.
15272
15273         * process-nt.c:
15274         * process-nt.c (struct nt_process_data):
15275         * process-nt.c (find_process_from_pid):
15276         * process-nt.c (send_signal_the_nt_way):
15277         * process-nt.c (enable_child_signals):
15278         * process-nt.c (find_child_console):
15279         * process-nt.c (send_signal_the_95_way):
15280         * process-nt.c (nt_finalize_process_data):
15281         * process-nt.c (ensure_console_window_exists):
15282         * process-nt.c (nt_create_process):
15283         * process-nt.c (nt_kill_child_process):
15284         * process-nt.c (nt_kill_process_by_pid):
15285         * process-nt.c (nt_open_network_stream):
15286         * process-nt.c (vars_of_process_nt):
15287         Copied over code from Emacs 20.5 to correctly send signals to sub-
15288         processes under Windows 95.  Also added code to automatically
15289         create and hide console window when a sub-process is created under
15290         Windows 95, which obviates the need for the separate runemacs.exe
15291         executable, and finally implemented some variables that were
15292         implemented in Emacs 20.5, but previously not in XEmacs.  These
15293         include mswindows- start-process-share-console and
15294         mswindows-start-process-inherit-error-mode. (Both of these only
15295         apply to Windows 95.)
15296
15297         * regex.c (regex_compile): Fixed a compile warning.
15298
15299         * select-msw.c:
15300         * select-msw.c (mswindows_own_selection):
15301         * select-msw.c (mswindows_get_foreign_selection):
15302         * select-msw.c (mswindows_disown_selection):
15303         * select-msw.c (console_type_create_select_mswindows):
15304         * select-msw.c (syms_of_select_mswindows):
15305         Cleaned up the file and implemented the device method
15306         selection_exists_p, which had accidentally been left out.  Also
15307         removed four lisp functions that were remnants from before the
15308         time when the selection code was properly device abstracted.
15309         These functions are no longer needed because there are generic
15310         equivalents, and because they were added recently and don't exist
15311         in FSF Emacs, I don't think there's any problem with just deleting
15312         them.
15313
15314         * sysdep.c:
15315         * sysdep.c (sys_subshell):
15316         Fixed a compile warning, although in this case there's probably
15317         something wrong with this code, and it ought to be looked into
15318         more thoroughly by somebody who understands it.
15319
15320         * window.c:
15321         * window.c (Fwindow_text_area_height):
15322         * window.c (Fwindow_width):
15323         * window.c (Fwindow_full_width):
15324         * window.c (Fwindow_pixel_width):
15325         * window.c (debug_print_window):
15326         * window.c (syms_of_window):
15327         Added functions window-text-area-height and window-full-width,
15328         which are functions for returning various width and height
15329         characteristics of a window. (One of these functions is necessary
15330         for making the file dialog box work correctly, and the other one
15331         was added for completeness.)  Also added a table to the
15332         documentation for window-height which describes the entire scheme
15333         for accessing width and height characteristics of a window.
15334
15335 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15336
15337         * nt.c (fstat): Added a comment for another problem with
15338         non-encapsulated [f]stat(), reported by Adrian Aichner
15339         <aichner@ecf.teradyne.com>.
15340
15341 2000-03-11  Andy Piper  <andy@xemacs.org>
15342
15343         * window.c (make_dummy_parent): initialize subwindow instance
15344         cache.
15345         (Fset_window_configuration): zero extent_modiff.
15346
15347 2000-03-10  Andy Piper  <andy@xemacs.org>
15348
15349         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15350         more changes can be triggered.
15351         (Fredisplay_frame): ditto.
15352         (Fredraw_device): ditto.
15353         (Fredisplay_device): ditto.
15354         (redisplay_frame): make non-static.
15355         (redisplay_frame): call update_frame_gutter_geometry outside of
15356         display proper.
15357
15358         * gutter.h: declare update_frame_gutter_geometry.
15359
15360         * redisplay.h: declare redisplay_frame.
15361
15362         * gutter.c (update_frame_gutter_geometry): move geometry changes
15363         in update_frame_gutters here. Geometry changes can only occur
15364         outside of redisplay.
15365         (update_frame_gutters): remove geometry change code.
15366         (Fredisplay_gutter_area): make sure that we are in display when we
15367         update and that we have flushed any size changes.
15368
15369 2000-03-11  Andy Piper  <andy@xemacs.org>
15370
15371         * alloc.c (pdump_dump_data): remove i & count shadows.
15372
15373 2000-02-27  Mike Alexander  <mta@arbortext.com>
15374
15375         * sysdep.h: Declare pdump_read_file
15376
15377         * sysdep.c (pdump_read_file): New function
15378
15379         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15380         dump data
15381
15382 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15383
15384         * lrecord.h: add `lrecord_type_pgsetenv'.
15385
15386 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15387
15388         * symsinit.h: declare (vars|syms)_of* functions.
15389         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15390
15391 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15392
15393         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15394
15395         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15396         GCCs.
15397
15398         * emacs.c (main_1): Call postgres initialization code.
15399
15400         * postgresql.h: New file.  PostgreSQL RDBMS support.
15401         * postgresql.c: New file.
15402
15403 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15404
15405         * redisplay-output.c (redisplay_output_display_block): Disable
15406         redundant code.
15407
15408 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15409
15410         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15411         (Fcanna_henkan_next): Ditto.
15412         (Fcanna_bunsetu_henkou): Ditto.
15413         (Fcanna_henkan_kakutei): Ditto.
15414         (Fcanna_henkan_end): Ditto.
15415         (Fcanna_henkan_quit): Ditto.
15416         (Fcanna_henkan_next): Set retun value correctly.
15417         (c2mu): Use unsigned char instead of signed char.
15418
15419 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15420
15421         * emacs.c (main_1): Always call syms_of_gui.
15422         * inline.c: include gui.h
15423
15424 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15425
15426         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15427         converted to Lisp_Object.
15428         (Qtop_bottom): New variable.
15429         (syms_of_redisplay): Initialize it.
15430         * redisplay.h (Vvisible_bell): Ditto.
15431         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15432         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15433         only flash top and bottom.
15434
15435 2000-03-08  Andy Piper  <andy@xemacs.org>
15436
15437         * buffer.c (Frename_buffer): record new buffer name the right way.
15438
15439 2000-03-08  Andy Piper  <andy@xemacs.org>
15440
15441         * glyphs.c (update_subwindow): increase hash depth so that widget
15442         items get picked up properly.
15443
15444         * redisplay-output.c (compare_runes): increase hash depth so that
15445         widget items get picked up properly.
15446
15447 2000-03-08  Andy Piper  <andy@xemacs.org>
15448
15449         * gutter.c (output_gutter): add some debug.
15450
15451         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15452         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15453         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15454
15455         * redisplay-output.c (compare_runes): use display_hash to
15456         determine if glyphs really are not the same.
15457
15458         * glyphs.c (update_subwindow): check display_hash to see if
15459         anything really needs to be updated. If not then do
15460         nothing. Record the display_hash after updating.
15461         (image_instance_equal): compare the image_instance face also.
15462
15463 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15464
15465         * redisplay.h: Fix comment style.
15466
15467 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15468
15469         * consle-msw.h (struct mswindows_frame):
15470         Added new member paint_pending to indicate whether a WM_PAINT
15471         magic event has been queued for this frame.
15472
15473         * event-msw.c (mswindows_drain_windows_queue):
15474         Don't queue a WM_PAINT magic event if one is already queued.
15475         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15476
15477         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15478
15479 2000-03-07  Didier Verna  <didier@xemacs.org>
15480
15481         * dired.c: #include `regex.h' after `sysfile.h'.
15482
15483 2000-03-06  Martin Buchholz  <martin@xemacs.org>
15484
15485         * sound.c (init_nas_sound): Fix compiler warning.
15486
15487         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
15488         (FREE_STRUCT_P):
15489         (MARK_STRUCT_AS_FREE):
15490         (MARK_STRUCT_AS_NOT_FREE):
15491         Make `gcc -fstrict-aliasing' work properly.
15492
15493 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15494
15495         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
15496         (mswindows_delete_device): Call CoUnnitialize().
15497
15498         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
15499
15500 2000-02-25    <CraigL@DyCon.com>
15501
15502         * process-nt.c: MinGW now has <shellapi.h>, but still needs
15503         <errno.h>.
15504
15505         * sysdep.c: This extern declaration for environ prevents MinGW
15506         from finding the variable in CRTDLL.DLL.
15507
15508         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
15509         windows headers.
15510         (SHGFI_EXETYPE): ..
15511         (WM_MOUSEWHEEL): ..
15512         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
15513         definitions.
15514         (MMRESULT): Removed, now defined in cygwin's windows headers.
15515         (TIMECAPS): ..
15516         (uid_t,gid_t,pid_t,ssize_t): ..
15517         (_timeb): Removed, MinGW defines both _timeb and timeb.
15518         (HAVE_H_ERRNO): Added.
15519         (HAVE_TZNAME): Added, configure is not detecting this.
15520
15521 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
15522
15523         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
15524         * syntax.c (syntax_match): Use it.
15525
15526         * cmds.c: Import auto-fill-chars from FSF Emacs.
15527         (Vauto_fill_chars): New variables.
15528         (internal_self_insert): Check Vauto_fill_chars.
15529         (vars_of_cmds):
15530         Declare auto-fill-chars as a Lisp variable and initialize it.
15531
15532 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15533
15534         * fileio.c (Fmake_symbolic_link):
15535         (Ffile_symlink_p):
15536         Run handlers even if local machine doesn't have symlinks.
15537
15538 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15539
15540         * event-msw.c (mswindows_drain_windows_queue):
15541         Don't generate paint magic events for non-XEmacs frames.
15542
15543 2000-03-05  Andy Piper  <andy@xemacs.org>
15544
15545         * redisplay.c (redisplay_frame): generate_displayable_area and
15546         friends assumes that we are not in GC, we therefore have to make
15547         sure that this doesn't happen.
15548
15549         * gutter.c (calculate_gutter_size): generate_displayable_area
15550         assumes that we are not in GC, we therefore have to make sure that
15551         this doesn't happen.
15552
15553 2000-03-05  Martin Buchholz  <martin@xemacs.org>
15554
15555         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
15556
15557 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15558
15559         * redisplay.c (regenerate_window): Make sure we set a sane value
15560         for end_pos even if we jump out of the loop.
15561         (regenerate_window): Answer Ben's question :-).
15562         (start_end_of_last_line): Add may_error argument.
15563         (start_of_last_line):
15564         (end_of_last_line): Pass may_error = 0.
15565         (end_of_last_line_may_error): New function.
15566         (pixel_to_glyph_translation): Use it, so we don't crash in
15567         event_to_glyph.
15568
15569 2000-03-04  Andy Piper  <andy@xemacs.org>
15570
15571         * window.h (struct window): add gutter_extent_modiff.
15572
15573         * window.c (allocate_window): zero out gutter_extent_modiff.
15574
15575         * redisplay.h: declare sync_display_line_structs.
15576
15577         * redisplay.c (add_glyph_rune): add a better comment.
15578
15579         * redisplay-output.c (sync_display_line_structs): made non-static.
15580         (compare_runes): remove unneccesary glyph cachel access.
15581
15582         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
15583
15584         * gutter.c (output_gutter): don't output the gutter if extent
15585         changes only involve extents in buffers. use 4 sets of display
15586         lines.
15587         (gutter_extent_signal_changed_region_maybe): new function. Mark
15588         extents in gutters as changed.
15589         (update_frame_gutters): use 4 sets of display lines.
15590         (reset_gutter_display_lines): ditto.
15591         (free_frame_gutters): ditto.
15592         (redraw_exposed_gutter): force output of gutters.
15593
15594         * frame.h (struct frame): add 4 sets of gutter display lines.
15595
15596         * extents.c: (extent_changed_for_redisplay): signal changes to
15597         extents in strings in the gutter as well as extents in buffers.
15598
15599 2000-03-02  Andy Piper  <andy@xemacs.org>
15600
15601         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
15602
15603         * frame.c (Fmake_frame): make sure the gutters get initialized
15604         after the frame is visible.
15605         (set_frame_selected_window): re-arrange compilation macros a
15606         little.
15607         (change_frame_size_1): mark gutters changed.
15608
15609         * device.c (Fset_device_class): mark gutters changed.
15610
15611 2000-03-01  Andy Piper  <andy@xemacs.org>
15612
15613         * window.c (window_top_frame_gutter_height): deleted.
15614         (window_bottom_frame_gutter_height): ditto.
15615         (window_left_frame_gutter_height): ditto.
15616         (window_right_frame_gutter_height): ditto.
15617         (window_top_gutter_height): don't use them.
15618         (window_bottom_gutter_height): ditto.
15619         (window_left_gutter_width): ditto.
15620         (window_right_gutter_width): ditto.
15621         (Fsplit_window): ditto.
15622         (Fwindow_pixel_edges): don't use border dimensions here.
15623
15624         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
15625         (update_scrollbar_instance): ditto.
15626
15627         * redisplay.c (generate_modeline): don't take gutters into account.
15628         (generate_modeline): ditto.
15629         (redisplay_frame): small gutter display optimization.
15630
15631         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
15632
15633         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
15634         gutters into account.
15635
15636         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
15637         for window position and type.
15638
15639         * gutter.c (get_gutter_coords): fix for frame gutters.
15640         (update_frame_gutters): update frame geometry if the gutters have
15641         changed.
15642         (init_frame_gutters): record current gutter geometries.
15643
15644         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
15645         var.
15646         (mswindows_widget_instantiate): ditto.
15647
15648         * frame.h (struct frame): add current_gutter_bounds.
15649
15650         * frame.c (change_frame_size_1): position window and minibuffer
15651         appropriately taking into account the frame gutters.
15652
15653         * frame-x.c: (x_initialize_frame_size): take into account the
15654         frame gutters.
15655
15656 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15657
15658         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
15659
15660 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15661
15662         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
15663
15664 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15665
15666         * file-coding.c (reset_decoding_stream): Clear previous
15667         detection state when autodetect.
15668
15669 2000-02-29  Didier Verna  <didier@xemacs.org>
15670
15671         * extents.c (set_extent_glyph_1): don't require extents to be
15672         attached.
15673
15674 2000-02-27  Andy Piper  <andy@xemacs.org>
15675
15676         * gutter.c (Fset_default_gutter_position): don't default left and
15677         right gutter visibility to t.
15678         (Fset_default_gutter_position): run
15679         default-gutter-position-changed-hook.
15680         (syms_of_gutter): add default-gutter-position-changed-hook.
15681
15682 2000-02-26  Andy Piper  <andy@xemacs.org>
15683
15684         * specifier.c (Fmake_specifier): add gutter references.
15685
15686         * gutter.h (RAW_WINDOW_GUTTER): new macro.
15687
15688         * lisp.h: declare Fvalid_plist_p.
15689
15690         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
15691         as changed.
15692         (default_gutter_visible_p_changed_in_window): invalidate gutter as
15693         well as its visibility so that it gets reconstructed.
15694         (construct_window_gutter_spec): new function. Construct a string
15695         to be displayed in the gutter from a plist of strings. Take care
15696         to only use elements that are declared as visible.
15697         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
15698         WINDOW_GUTTER.
15699         (gutter_validate): allow plists of strings in the specifier.
15700         (gutter_specs_changed): construct the real_gutter from the gutter
15701         specs using construct_window_gutter_spec.
15702         (gutter_visible_validate): gutter-visible is a new specifier type.
15703         (Fgutter_visible_specifier_p): new function for the new specifier.
15704         (syms_of_gutter): declare gutter-visible and
15705         Fgutter_visible_specifier_p.
15706         (specifier_type_create_gutter): intitalize new gutter-visible
15707         specifier.
15708         (reinit_specifier_type_create_gutter): ditto.
15709         (specifier_vars_of_gutter): use new specifier type for gutter
15710         visibility.
15711         (init_frame_gutters): construct real_gutter correctly.
15712         (Fgutter_specifier_p): beef up documentation.
15713         (Fgutter_size_specifier_p): ditto.
15714
15715         * winslots.h: add real_gutter slots.
15716
15717 2000-02-25  Andy Piper  <andy@xemacs.org>
15718
15719         * device-msw.c: Be kind to older cygwin versions. From Raymond
15720         Toy <toy@rtp.ericsson.se>.
15721
15722         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
15723         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
15724
15725 2000-02-25  Martin Buchholz  <martin@xemacs.org>
15726
15727         * elhash.c (MARK_OBJ): Practice macro hygiene.
15728
15729 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15730
15731         * miscplay.c: s/__inline__/inline/g;
15732         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
15733         (get_device_compdc): INLINE ==> static inline
15734         * *.[ch]: Change INLINE to INLINE_HEADER globally.
15735         find -name '*.h' | \
15736         xargs global-replace \
15737         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
15738
15739 2000-02-25  Andy Piper  <andy@xemacs.org>
15740
15741         * window.c (window_top_frame_gutter_height): new function.
15742         (window_top_window_gutter_height): ditto.
15743         (window_top_gutter_height): use them.
15744         (window_bottom_frame_gutter_height): new function.
15745         (window_bottom_window_gutter_height): ditto.
15746         (window_bottom_gutter_height): use them.
15747         (window_left_window_gutter_width): new function.
15748         (window_left_frame_gutter_width): ditto.
15749         (window_left_gutter_width): use them.
15750         (window_right_window_gutter_width): new function.
15751         (window_right_frame_gutter_width): ditto.
15752         (window_right_gutter_width): use them.
15753         (window_pixel_height): new function. calulate window pixel height
15754         with frame gutter involvement.
15755         (Fsplit_window): calculate new sizes taking frame gutters into
15756         account.
15757         (window_char_height_to_pixel_height): don't include frame gutters.
15758         (window_char_height): use window_pixel_height.
15759         (window_pixheight): rename from window_pixel_height.
15760         (change_window_height): use it.
15761         (window_pixel_height_to_char_height): don't include frame gutters.
15762         (window_char_width_to_pixel_width): ditto.
15763
15764 2000-02-25  Andy Piper  <andy@xemacs.org>
15765
15766         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
15767         if it is.
15768
15769 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15770
15771         * alloc.c (staticpro):
15772         (staticpro_nodump):
15773         (dumpstruct):
15774         (dumpopaque):
15775         (pdump_wire):
15776         (pdump_wire_list):
15777         (compact_string_chars):
15778         (pdump_dump_wired):
15779         Convert:  if (foo) abort();  ==>  assert (! foo);
15780
15781         * eldap.c (Fldap_search_basic):
15782         (Fldap_add):
15783         (Fldap_modify):
15784         (Fldap_delete):
15785         Fix compiler warnings, and possible crashes if (random) return
15786         value were to be used.
15787
15788 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15789
15790         * device-msw.c: Workaround ResetDC failure.
15791
15792         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
15793         applying a devmode.
15794
15795         * redisplay-msw.c (get_frame_dc): Added start_page_p.
15796         (mswindows_text_width): Do not start printer page.
15797
15798         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
15799
15800         * glyphs-msw.c: Added image methods to msprinter console and
15801         msprinter-specific image instantiation.
15802
15803 2000-02-20  Mike Alexander  <mta@arbortext.com>
15804
15805         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
15806         to avoid crashes when selection-sets-clipboard is on
15807         (mswindows_own_selection): ditto
15808
15809 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15810
15811         * glyphs-msw.c:
15812         * redisplay-msw.c (get_frame_dc):
15813         (get_frame_compdc):
15814         * console-msw.h:
15815         * device-msw.c (mswindows_init_device):
15816         (mswindows_delete_device):
15817         (msprinter_init_device):
15818         (msprinter_delete_device):
15819         * frame-msw.c (mswindows_init_frame_1):
15820         (mswindows_delete_frame):
15821         (msprinter_init_frame_3):
15822         (msprinter_delete_frame): Move compatible DC to device object from
15823         frame object, for both mswindows and msprinter. Only one at a time
15824         is needed, it is a real waste to have one per frame!
15825
15826 2000-02-23  Andy Piper  <andy@xemacs.org>
15827
15828         * glyphs.c: add dynamic width and height elements.
15829         (image_instance_equal): ditto.
15830
15831         * glyphs-widget.c (widget_query_geometry): calculate width and
15832         height dynamically if required.
15833         (initialize_widget_image_instance): initialize dynamic dimensions.
15834         (widget_instantiate): pick-up dynamic dimensions.
15835
15836         * glyphs.h (struct Lisp_Image_Instance): add width and height for
15837         dynamic determination. Add appropriate macros.
15838
15839         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
15840         dimensions safe.
15841         (WINDOW_GUTTER_SIZE): ditto.
15842         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
15843
15844         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
15845         inline.
15846         (get_frame_dc): ditto.
15847
15848         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
15849         here.
15850
15851 2000-02-23  Martin Buchholz <martin@xemacs.org>
15852
15853         * XEmacs 21.2.31 is released.
15854
15855 2000-02-22  Ben Wing <ben@xemacs.org>
15856
15857         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
15858
15859 2000-02-22  Andy Piper  <andy@xemacs.org>
15860
15861         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
15862
15863 2000-02-21  Mike Sperber <mike@xemacs.org>
15864
15865         * .dbxrc:
15866         * .gdbinit:
15867         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
15868         variables.
15869
15870 2000-02-21  Mike Sperber <mike@xemacs.org>
15871
15872         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
15873
15874 2000-02-21  Martin Buchholz <martin@xemacs.org>
15875
15876         * XEmacs 21.2.30 is released.
15877
15878 2000-02-20  Martin Buchholz  <martin@xemacs.org>
15879
15880         Performance hacking.
15881         * *.c (syms_of_*):
15882         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
15883         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
15884         * emacs.c (main_1):
15885         * lisp.h (DEFUN):
15886         * console.c (DEFVAR_CONSOLE_LOCAL_1):
15887         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
15888         * symeval.h (DEFVAR_SYMVAL_FWD):
15889         * symbols.c (guts_of_unbound_marker):
15890         Make all c_readonly objects also lisp_readonly and marked for life.
15891         * lrecord.h (struct lrecord_implementation):
15892         Document flags better.
15893         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
15894         * lrecord.h (DECLARE_LRECORD):
15895         * lrecord.h (XSETRECORD):
15896         * lrecord.h (RECORDP):
15897         * lrecord.h (RECORD_TYPEP):
15898         * lrecord.h (RECORD_MARKER): New.
15899         * lrecord.h (error_check_*):
15900         * lrecord.h (CONCHECK_NONRECORD):
15901         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
15902         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
15903         * lrecord.h (set_lheader_implementation):
15904         * lrecord.h (enum lrecord_type): New.
15905         * symeval.h (SYMBOL_VALUE_MAGIC_P):
15906         * alloc.c (disksave_object_finalization_1):
15907         * alloc.c (mark_object):
15908         * alloc.c (lrecord_type_index):
15909         * alloc.c (tick_lcrecord_stats):
15910         * alloc.c (Fgarbage_collect):
15911         * alloc.c (init_alloc_once_early):
15912         * alloc.c (pdump_load):
15913         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
15914         * alloc.c (lrecord_type_index): Delete.
15915         Make lisp object type indexes be constant.
15916           Makes (byte-compile) 5% faster.
15917         Put all marker functions into their own array.
15918           Makes (garbage-collect) 5% faster.
15919         Optimize SYMBOL_VALUE_MAGIC_P.
15920           Makes (byte-compile) 2-3% faster.
15921         * config.h.in (gc_checking_assert): New.
15922         * alloc.c: Use gc_checking_assert().
15923         * .dbxrc: Make compatible with new object type implementation.
15924         * .gdbinit: Make compatible with new object type implementation.
15925         * alloc.c: Delete all symbols defined only for debugging, such as
15926         Lisp_Type_Vector and lrecord_charset.
15927
15928 2000-02-21  Andy Piper  <andy@xemacs.org>
15929
15930         * gui-msw.c (Fmswindows_shell_execute): fix file location
15931         problems.
15932
15933         * buffer.c (Fkill_buffer): remove buffer from alist buffer
15934         unshowing so that set_window_buffer doesn't undo
15935         kill_buffer_hook's hard work.
15936
15937         * glyphs-widget.c (tab_control_query_geometry): don't count the
15938         first item when calculating geometry.
15939
15940         * glyphs.c (map_subwindow): remove redundant code.
15941         (update_frame_subwindows): be more circumspect about when to
15942         update subwindows.
15943
15944         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
15945         when items haven't changed. Update faces if faces have changed as
15946         well as just the widget face.
15947         (x_tab_control_update): Update faces if faces have changed as well
15948         as just the widget face.
15949
15950 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15951
15952         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15953         registration.
15954         (build_syscolor_string): Use mswindows_color_to_string to try to
15955         get a named color.
15956         (mswindows_device_system_metrics): Reverse the foreground and
15957         background colors so that they match the documentation.
15958
15959         * objects-msw.c: (mswindows_X_color_map): tweak some values so
15960         they match the default Windows palette.
15961         (mswindows_color_to_string): New function.
15962
15963 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15964
15965         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15966
15967 2000-02-18  Olivier Galibert  <galibert@pobox.com>
15968
15969         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15970         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15971
15972         * symbols.c (init_symbols_once_early): Removed obsolete
15973         DATA_SEG_BITS related kludge.
15974         (defvar_magic): Ditto.
15975
15976         * malloc.c: Removed obsolete DATA_SEG_BITS
15977         * ralloc.c: Ditto.
15978         * mem-limits.h: Ditto.
15979
15980         * Makefile.in.in: Removed obsolete HAVE_SHM
15981         * emacs.c: Ditto.
15982
15983 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15984
15985         *  device-msw.c (mswindows_delete_device): Free DDE string
15986         handles.
15987
15988 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15989
15990         * keymap.c (get_keyelt):
15991         * unexnt.c (unexec):
15992         * vm-limit.c (memory_warnings):
15993         * ntheap.c (recreate_heap):
15994         * ntheap.h (UNINIT_PTR):
15995         * select-msw.c (Fmswindows_get_clipboard):
15996         (Fmswindows_set_clipboard):
15997         * objects-msw.h (MSWINDOWS_BAD_HFONT):
15998         * objects-msw.c:
15999         * menubar-msw.c (displayable_menu_item):
16000         * glyphs-msw.c:
16001         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16002         * sysdep.c (sys_subshell):
16003         * process-nt.c (nt_create_process):
16004         * nt.c (normalize_filename):
16005         (dostounix_filename):
16006         (unixtodos_filename):
16007         * ntproc.c (win32_executable_type):
16008         * ntplay.c (play_sound_data_1):
16009         (play_sound_file):
16010         * editfns.c (get_home_directory):
16011         * event-msw.c (struct winsock_stream):
16012         (mswindows_dde_callback):
16013         * device-msw.c (msprinter_init_device):
16014         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16015
16016         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16017         mswindows_clear_toolbar were swapped!
16018
16019         * objects-msw.c:(colormap_t):
16020         (fontmap_t):
16021         * emacs.c (struct standard_args): Fixed const jumble.
16022
16023         * glyphs-widget.c (update_widget): Fixed comparison notation.
16024
16025         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16026
16027         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16028         __declspec(noreturn) syntax.
16029
16030 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16031
16032         * eldap.c (Fldap_open):
16033         (Fldap_search_basic):
16034         (Fldap_add):
16035         (Fldap_modify):
16036         Use new coding system conversion macros.
16037
16038 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16039
16040         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16041
16042 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16043
16044         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16045         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16046
16047         * eldap.c (Qadd, Qreplace): New constant symbols
16048         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16049         interruptions by XEmacs signals
16050         Remove unnecessary calls to slow_down_interrupts and
16051         speed_up_interrupts
16052         (Fldap_search_basic): Renamed from Fldap_search_internal
16053         Added new optional parameter VERBOSE that triggers the
16054         display of progress messages
16055         Remove unnecessary calls to slow_down_interrupts and
16056         speed_up_interrupts
16057         LDAP result code analysis rewritten
16058         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16059         (syms_of_eldap): Define the new symbols and functions
16060
16061
16062 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16063
16064         * realpath.c: Determine PATH_MAX maximally portably.
16065
16066         * insdel.c (bytecount_to_charcount): Optimize.
16067         The function used to be optimized for entirely ASCII sequences.
16068         Now it is optimized for successive characters from the same
16069         charset.  This also wins big for _mostly_ ASCII sequences.
16070
16071         * fileio.c (Ffile_truename): convert return from realpath() using
16072         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16073         - Rewrite GCPROing slightly.
16074
16075         * sysdep.c (sys_open): Do filename conversion, like all other
16076         sys_* functions.  Fixes bug:
16077         (let ((file-name-coding-system 'iso-8859-2))
16078            (write-region x y latin2-name))
16079         ==> writes filename using internal encoding.
16080
16081 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16082
16083         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16084         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16085         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16086         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16087         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16088         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16089         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16090         (CONST_IF_NOT_DEBUG): Delete.
16091         * alloc.c (this_one_is_unmarkable): Delete.
16092         (mark_object): Don't check for this_one_is_unmarkable. Use the
16093         c_readonly flag instead.
16094         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16095
16096 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16097
16098         * event-msw.c (mswindows_drain_windows_queue):
16099         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16100         away redundant repaint events.
16101
16102 2000-02-17  Andy Piper  <andy@xemacs.org>
16103
16104         * redisplay.h: declare mark_redisplay_structs.
16105
16106         * redisplay.c (redisplay_window):
16107         (redisplay_frame): don't check subwindows_state_changed.
16108         (mark_redisplay): mark gutters here.
16109
16110         * glyphs.c: (instantiate_image_instantiator): always layout if we
16111         haven't done so already.
16112         (allocate_image_instance): don't mark as dirty.
16113         (update_subwindow): bind inhibit_quit.
16114
16115         * gutter.c (mark_gutters): new function.
16116
16117         * glyphs-x.c (x_update_widget): Always resize to get round a
16118         widget bug.
16119
16120         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16121         breaking absolutely everything.
16122
16123         * gutter.h: declare mark_gutters.
16124
16125 2000-02-16  Martin Buchholz <martin@xemacs.org>
16126
16127         * XEmacs 21.2.29 is released.
16128
16129 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16130
16131         * fns.c (size_bit_vector): Fix computation of the size.
16132
16133 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16134
16135         * *.[ch]: Change CONST to const globally.
16136         find -name '*.[ch]' | \
16137         xargs global-replace \
16138         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16139         - Remove vestigial references to CONST_IS_LOSING
16140
16141 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16142
16143         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16144         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16145         events instead of dispatching them directly.
16146         (mswindows_handle_paint): New function to do repainting.
16147         (mswindows_wnd_proc):
16148         (emacs_mswindows_handle_magic_event): Call above function.
16149
16150 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16151
16152         * objects-msw.c (mswindows_create_font_variant): Return the new
16153         font handle.
16154         (initialize_font_instance): Get font metrics from the underlined
16155         variant of the font to cope with the case where the underlined
16156         font has a bigger descent.
16157
16158 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16159
16160         * gui.c (gui_item_accelerator): Return the first underlined
16161         character in item name.
16162
16163 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16164
16165         * lisp.h: Added Qprinter.
16166
16167         * general.c (syms_of_general): Initialized it.
16168
16169         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16170         (get_frame_dc):
16171         (get_frame_compdc): Made inline.
16172
16173         * console.h (struct console_methods): Added eject_page method.
16174
16175         * frame.h: Added FRAME_DISPLAY_P and friends.
16176         Aligned backslahes in many macros in more readable fashion.
16177         Added page_number to struct frame, and an accessor macro
16178         for it.
16179
16180         * defice.h: Added DEVICE_DISPLAY_P and friends.
16181
16182         * device.c (Fdevice_printer_p): Used these.
16183
16184         * frame.c (allocate_frame_core): Initialize page number.
16185         (Fprint_job_page_number):
16186         (Fprint_job_eject_page): Implemented.
16187
16188         * frame-msw.c (msprinter_eject_page): Added method.
16189         (msprinter_start_page): Added.
16190
16191         * window.c (Fwindow_truncated_p): Fixed docstring.
16192         (Fwindow_last_line_visible_height): Implemented.
16193
16194 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16195
16196         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16197
16198 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16199
16200         * syntax.c (scan_words): Always advance at least one character.
16201
16202 2000-02-13  Andy Piper  <andy@xemacs.org>
16203
16204         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16205         to make sure the glyph is in the cachels.
16206
16207         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16208         global image instance flag.
16209         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16210         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16211
16212         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16213         (Fset_image_instance_property): mark layout as changed.
16214         (invalidate_glyph_geometry_maybe): mark layout as changed.
16215         (glyph_width): use new NEEDS_LAYOUT macro.
16216         (glyph_ascent): ditto.
16217         (glyph_descent): ditto.
16218         (glyph_height): ditto.
16219         (image_instance_layout): mark layout as clean after laying out.
16220         (update_subwindow): don't mark layout as clean here.
16221
16222         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16223         should no longer be needed.
16224
16225         * glyphs-x.c (x_update_widget): sanitize asserts.
16226         (x_finalize_image_instance): sanitize assignment to widgets.
16227
16228         * glyphs-widget.c (widget_instantiate): don't need to clear the
16229         layout flag here.
16230
16231 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16232
16233         * sysdep.c (getcwd): Use standard prototype.
16234         * sysdep.h (getcwd): Use standard prototype.
16235
16236         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16237         (sequence, start, end).
16238         Remove redundant type checking.
16239         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16240         view of `caller-protects') to avoid a crash where the real fix was
16241         found elsewhere.
16242
16243 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16244
16245         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16246
16247         * s/sol2.h: Remove feature macro initialization.
16248
16249         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16250         (vector_hash): New.  Code from internal_hash.
16251         * lrecord.h:
16252         Fix up allocation subsystem comments.
16253
16254         * config.h.in: Add __EXTENSIONS__ for Solaris.
16255
16256         * systime.h (EMACS_GETTIMEOFDAY): New.
16257         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16258         Remove Solaris-specific code.
16259         Use void* for the (ignored) second arg for gettimeofday().
16260
16261         * elhash.c (hash_table_hash): Implement it, finally.
16262         * elhash.c:  Use hashcode_t.
16263
16264         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16265         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16266
16267         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16268         * fns.c (size_bit_vector):
16269         * alloc.c (size_vector):
16270         (make_vector_internal):
16271         (make_bit_vector_internal):
16272         (sweep_bit_vectors_1):
16273         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16274
16275 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16276
16277         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16278         Include strings.h to avoid warnings for bzero and strcasecmp.
16279
16280 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16281
16282         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16283         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16284
16285         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16286         sequence.
16287
16288 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16289
16290         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16291         use a value field instead.
16292         (symbol_value_forward_forward): Use value field.
16293         (DEFVAR_SYMVAL_FWD): Use value field.
16294         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16295         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16296         (DEFVAR_CONST_INT): Ditto.
16297         (DEFVAR_BOOL): Ditto.
16298         (DEFVAR_CONST_BOOL): Ditto.
16299         (DEFVAR_INT_MAGIC): Ditto.
16300         (DEFVAR_BOOL_MAGIC): Ditto.
16301
16302         * symbols.c (guts_of_unbound_marker): Use value field.
16303         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16304         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16305
16306         * lisp.h: Declare dumpopaque and noninteractive1.
16307
16308         * alloc.c (dumpopaque): Added.
16309         (pdump_dump_opaquevec): Added.
16310         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16311         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16312         noninteractive.
16313
16314 2000-02-10  Andy Piper  <andy@xemacs.org>
16315
16316         * glyphs.c (image_instance_layout): if the size changes, mark it
16317         as such.
16318
16319         * redisplay-output.c (redisplay_output_layout): Update the
16320         subwindow here.
16321         (redisplay_output_subwindow): ditto.
16322
16323         * glyphs.c (update_subwindow): make sure we reset flags for
16324         layouts as well as everything else.
16325
16326         * glyphs-widget.c (layout_layout): don't need to set the instances
16327         dimensions here.
16328
16329 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16330
16331         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16332         not HAVE_DLOPEN, which is a lower-level thing.
16333
16334         * .cvsignore: Ignore gmon.out
16335
16336 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16337
16338         * .cvsignore: Ignore portable dumper xemacs.dmp file
16339
16340 2000-02-09  Andy Piper  <andy@xemacs.org>
16341
16342         * redisplay-output.c (redisplay_output_layout): be more clever
16343         about when we output based on the changed flags.
16344
16345         * glyphs.h (struct image_instantiator_methods): add update_method.
16346         (struct Lisp_Image_Instance): add changed flags. Declare new
16347         macros for manipulating them.
16348
16349         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16350         (image_instance_parent_glyph): find an image_instance's parent
16351         glyph or image_instance.
16352         (image_instance_layout): mark the size as changed.
16353         (set_image_instance_dirty_p): new function. mark an image
16354         instance, plus all of its parents, as dirty.
16355         (Fset_image_instance_property): use it.
16356         (Fglyph_animated_timeout_handler): use it.
16357         (update_subwindow): call update_widget and device methods for
16358         update_subwindow. Mark all changed flags as clean.
16359         (Fresize_subwindow): mark size as changed.
16360
16361         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16362         failures.
16363         (x_update_subwindow): only resize subwindows here.
16364         (x_update_widget): new function. Update all changed properties of
16365         a widget.
16366         (x_resize_subwindow): deleted.
16367         (x_widget_set_property): deleted.
16368         (x_progress_gauge_set_property): deleted.
16369         (x_progress_gauge_update): new function. Implement recorded
16370         changes.
16371         (x_tab_control_update): ditto.
16372         (x_tab_control_set_property): deleted.
16373         (console_type_create_glyphs_x): declare new functions.
16374         (image_instantiator_format_create_glyphs_x): ditto.
16375
16376         * glyphs-widget.c (widget_set_property): mark text changed.
16377         (update_widget): new function. Update properties of a widget.
16378         (widget_instantiate): for layouts make sure we set their
16379         children's parent correctly.
16380         (tab_control_set_property): new function. Record changes that will
16381         take place under redisplay's control.
16382         (progress_gauge_set_property): ditto.
16383         (image_instantiator_progress_guage): declare new functions.
16384         (image_instantiator_tab_control): ditto.
16385
16386         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16387         now.
16388         (mswindows_update_widget): new function. Update all properties on
16389         a widget that have changed.
16390         (mswindows_button_update): new function. Update a button's set
16391         state.
16392         (mswindows_tab_control_update): new function. Update the items in
16393         a tab.
16394         (mswindows_tab_control_set_property): deleted.
16395         (mswindows_progress_gauge_update): new function. Update the
16396         progress gauge's progress.
16397         (mswindows_widget_set_property): deleted. This is all done
16398         asynchronously now.
16399         (mswindows_progress_gauge_set_property): ditto.
16400         (console_type_create_glyphs_mswindows): declare new methods.
16401         (image_instantiator_format_create_glyphs_mswindows): ditto.
16402
16403         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16404         (msprinter_set_frame_properties): ditto.
16405
16406         * console.h (struct console_methods): Add update_widget_method.
16407
16408 2000-02-09  Andy Piper  <andy@xemacs.org>
16409
16410         * gui-msw.c (Fmswindows_shell_execute): Make
16411         mswindows-shell-execute industrial strength.
16412
16413 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16414
16415         * lrecord.h: Make macro argument `props' match member function `plist'.
16416         * fns.c (Fget):
16417         * fns.c (Fput):
16418         * fns.c (Fremprop):
16419         * fns.c (Fobject_plist):
16420         * alloc.c:
16421         * symbols.c:
16422         Object property list frobbing cleanup.
16423         - Allow any lisp object (compared with `eq'), not just symbols, as
16424           keys in object plists.
16425         - Move symbol plist frobbing into symbols.c, where it belongs.
16426         - Move string plist frobbing into alloc.c, where it belongs.
16427         - Everything's an lrecord now, so no need to test for symbolp, etc.
16428         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16429
16430         * extents.c: Reorder code to remove declarations.
16431
16432         * frame.h (store_in_alist): Remove useless declaration.
16433
16434 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16435
16436         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16437         * config.h.in: Add HAVE_XCONVERTCASE.
16438
16439 2000-02-07  Andy Piper  <andy@xemacs.org>
16440
16441         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16442         it breaks many things.
16443
16444 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16445
16446         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16447         actually can start a common comment type.
16448         * src/syntax.h (SYNTAX_END_P): ditto for end.
16449
16450 2000-02-07  Martin Buchholz <martin@xemacs.org>
16451
16452         * XEmacs 21.2.28 is released.
16453
16454 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16455
16456         * event-Xt.c (x_keysym_to_character): New.
16457         (maybe_define_x_key_as_self_inserting_character): New.
16458         (x_has_keysym): New.
16459         Auto-define all keys on the keyboard as self-insert-key.
16460
16461 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16462
16463         * menubar.c (vars_of_menubar): A small code simplification.
16464
16465         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16466
16467         * ExternalShell.c:
16468         * ExternalClient.c:
16469         * EmacsShell-sub.c:
16470         * EmacsManager.c:
16471         * EmacsFrame.c:
16472         Use consistent style for specifying X resources.
16473
16474         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16475         This makes (dontusethis-set-symbol-value-handler) actually usable.
16476
16477         * lrecord.h (lrecord_decription_type):
16478         * alloc.c (pdump_register_sub):
16479         (pdump_dump_data):
16480         (pdump_reloc_one):
16481         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
16482         Comply with XEmacs coding style.
16483         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
16484         args, and XD_LISP_OBJECT_ARRAY with 3 args.
16485
16486         * keymap.c (Faccessible_keymaps):
16487         Make (accessible-keymaps map "\C-h") do the Right Thing.
16488         Make (accessible-keymaps map []) do the Right Thing.
16489         Make (accessible-keymaps map "") do the Right Thing.
16490         (check_keymap_definition_loop): New function.
16491         (keymap_store_internal): Keep luser from shooting self in foot,
16492           via (define-key ctl-x-4-map "p" global-map).
16493         Remove fullness slot from struct Lisp_Keymap, since hash tables
16494         are now reliable.
16495         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
16496
16497 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16498
16499         * redisplay.c (init_redisplay): Fix small memory leak.
16500         * elhash.h:
16501         * elhash.c (pdump_reorganize_hash_table):
16502         Rename from reorganize_hash_table. Change prototype.
16503         Reuse the original memory for hentries.  Save 100k.
16504         * alloc.c (PDUMP_READ): new macro.
16505         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
16506         * alloc.c: No need to #ifndef before #undef.
16507
16508         * print.c: Allow debug_print() to print readably by modifying
16509         debug_print_readably.  Use consistent variable names.
16510
16511         * .dbxrc: Try to get things to work even if stopped in a function
16512         without source available by explicitly specifying source files.
16513 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16514
16515         * unexnt.c (_start): Removed bogus code which caused loading heap
16516         from differrent executable file.
16517         Removed bogus assignment to _fmode, which caused inconsistencies.
16518
16519 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16520
16521         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
16522         Have spawnve encapsulation regard DONT_ENCAPSULATE.
16523         Do not preliminary `#define signal sigset'.
16524
16525         * systime.h: Do not prototype environ on windows nt and cygwin,
16526         this conflicts with system header.
16527
16528         * syssignal.h: Use correct define for WINDOWSNT
16529
16530         * sysdep.h: Do not prototype environ on windows nt, this conflicts
16531         with system header.
16532
16533         * sysdep.c (near start of file): Fixed commentary and rearranged
16534         ifdefs in readable order.
16535         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
16536         (start_of_text):
16537         (end_of_text):
16538         (end_of_data): Do not compile in if using PDUMP.
16539
16540         * symsinit.h: Prototyped vars_of_nt().
16541
16542         * ntproc.c (windows9x_p): Added, instead of os_subtype.
16543         (find_child_console): Use it.
16544         (sys_kill): Use it.
16545
16546         * ntheap.h: Do not extern os_subtype.
16547
16548         * ntheap.c (cache_system_info): Do not cache unneeded:
16549         nt_major_version, nt_minor_version and os_subtype.
16550         (recreate_heap): Do not compile in when PDUMPing.
16551
16552         * nt.c (geteuid and friends): Use the new varibale
16553         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
16554         (init_user_info): Removed the above mentioned hackery.
16555         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
16556         stat has been fixed in the C runtime.
16557         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
16558
16559         * file-coding.c (struct file_coding_dump): Do not define
16560         ucs_to_mule_table in the struct if not MULE.
16561         (struct struct lrecord_description fcd_description_1): Do not dump
16562         the above.
16563
16564         * emacs.c (main_1): Call vars_of_nt().
16565         (right before Fdump_emacs_data): Don't need lastfile if using both
16566         portabe dumper and system malloc.
16567
16568         * alloc.c (Fmemory_limit): Conditionalized out.
16569         (pdump): Use OPEN_BINARY for the portable dump file.
16570         (pdump_load): Ditto.
16571
16572 2000-02-02  Mike Alexander  <mta@arbortext.com>
16573
16574         * nt.c (convert_time): Set tm_isdst before calling mktime and
16575         avoid calling it at all if the compiler supports 64 bit integers.
16576         Also initialize utc_base_ft before using it.
16577
16578 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16579
16580         * frame.c (change_frame_size_1): Take f->internal_border_width
16581         into consideration when calculating the width of the frame.
16582
16583 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16584
16585         * window.c (frame_min_height):
16586         (frame_size_valid_p):
16587         (frame_pixsize_valid_p): Added.
16588         (check_frame_size): Generalized.
16589
16590         * window.h: Prototyped the above.
16591
16592         * lisp.h:
16593         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
16594         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
16595         Deleted Vwin32_* and Vbinary_process_* unused variables.
16596
16597         * device-msw.c (msprinter_init_device): Do not get printer font
16598         list; Added DEVMODE functions.
16599
16600         * frame-msw.c: Added lots of printer code.
16601
16602         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
16603         general.c.
16604
16605         * console-msw.h: Added more msprinter device private slots.
16606
16607 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16608
16609         * event-msw.c (key_needs_default_processing_p): Added.
16610         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
16611
16612 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16613
16614         * glyphs.c (image_instance_layout): Mark image instance as clean
16615         after layout.
16616         (glyph_dirty_p): Removed redundant function.
16617         (invalidate_glyph_geometry_maybe): Added.
16618         (update_glyph_cachel_data): Call it.
16619
16620         * glyphs.h: Prototyped it.
16621
16622         * redisplay.c (add_glyph_rune): Call it.
16623         (redisplay_window): Reset glyphs cachels when frame faces have
16624         changed, thus forcing recomputation of built-in border glyphs.
16625
16626 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16627
16628         * Makefile.in.in: Make portable dumper and purify play well together.
16629         Add imperfect, but better than nothing, support for pdump.
16630         Remove xemacs.dmp when temacs is re-generated.
16631         Don't ignore errors when dumping xemacs.
16632
16633         * symbols.c (maybe_call_magic_handler): Remove one magic number.
16634
16635 2000-01-28  Andy Piper  <andy@xemacs.org>
16636
16637         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
16638         (setup_normal_frame): ditto.
16639         (setup_frame_without_minibuffer): ditto.
16640         (setup_minibuffer_frame): ditto.
16641         (delete_frame_internal): ditto.
16642         (Fmake_frame_invisible): ditto.
16643         (Ficonify_frame): ditto.
16644
16645         * window.h: change Fset_window_buffer signature.
16646
16647         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
16648         (Fset_window_buffer): allow recording of buffer if the window is
16649         the selected window.
16650         (window_loop): Use new Fset_window signature.
16651
16652 2000-01-23  Daniel Pittman  <daniel@danann.net>
16653
16654         * config.h.in: Added template for `HAVE_ATHENA_3D'
16655
16656 2000-01-29  Andy Piper  <andy@xemacs.org>
16657
16658         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
16659
16660         * gutter.c (output_gutter): Don't output if the window isn't live.
16661
16662 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16663
16664         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
16665         of 01/12/00: Moved SetFocus back here where it belongs.
16666
16667 2000-01-23  Andy Piper  <andy@xemacs.org>
16668
16669         * s/cygwin32.h: declare printer things.
16670
16671 2000-01-26  Andy Piper  <andy@xemacs.org>
16672
16673         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
16674         Alexander.
16675
16676 2000-01-24  Andy Piper  <andy@xemacs.org>
16677
16678         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
16679         (mswindows_button_instantiate): Make sure glyph is a pixmap.
16680
16681         * glyphs-widget.c (widget_instantiate): Avoid shadows.
16682
16683         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
16684
16685         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
16686
16687         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
16688         (mswindows_output_display_block): Avoid local shadows.
16689
16690         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
16691         (mswindows_enqueue_mouse_button_event): ditto.
16692         (mswindows_handle_gui_wm_command): remove declaration.
16693
16694         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
16695         warnings.
16696
16697         * console-msw.h: Avoid shadows.
16698         (mswindows_get_toolbar_button_text):
16699         (emacs_mswindows_create_stream_pair):
16700         (emacs_mswindows_delete_stream_pair):
16701         (mswindows_handle_toolbar_wm_command): declare.
16702
16703         * device-msw.c (build_syscolor_string): Avoid shadows.
16704
16705 2000-01-23  Andy Piper  <andy@xemacs.org>
16706
16707         * glyphs-widget.c (widget_instantiate): reverse the items for
16708         layouts so that children are in the expected order.
16709
16710 2000-01-28  Martin Buchholz  <martin@xemacs.org>
16711
16712         * ralloc.c: safe_bcopy ==> memmove
16713         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
16714         * s/msdos.h: Remove BCOPY macros.
16715         * insdel.c (gap_right): Remove BCOPY conditional code.
16716         * insdel.c (gap_left): Remove BCOPY conditional code.
16717         XEmacs demands a working ANSI C compiler - hence memmove.
16718
16719         * regex.c (regex_compile): Remove accidental use of trigraphs.
16720
16721 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16722
16723         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
16724         event timestamp.
16725
16726 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16727
16728         * event-msw.c (mswindows_drain_windows_queue): Added the
16729         parameter.
16730         (mswindows_need_event): Commented the call to
16731         mswindows_drain_windows_queue().
16732         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
16733         only.
16734
16735         * console-msw.h: Moved a few function prototypes here from
16736         event-msw.c.
16737
16738         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
16739         parameter from unsigned short to unsigned long.
16740         (Fmswindows_shell_execute): Added return value.
16741
16742 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16743
16744         * sysdep.c (init_system_name):
16745           process-unix.c (unix_canonicalized_host_name):
16746         Don't call freeaddrinfo() if getaddrinfo() fails.
16747
16748         * process-unix.c (unix_open_unix_network_stream):
16749         Moved the code to get a port # into address loop.
16750
16751 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16752
16753         * buffer.c (reinit_vars_of_buffer):
16754         The right place to initialize conversion_in_dynarr and
16755         conversion_out_dynarr.
16756
16757         * alloc.c (pdump): Use the real open() till sys_open() is functional.
16758
16759         * process-unix.c (unix_canonicalize_host_name): Muleize.
16760         (unix_open_network_stream): Muleize.
16761
16762         * buffer.h: Fix up prototypes for ralloc.c functions.
16763
16764 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16765         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
16766         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
16767                 instead of gethostbyname()
16768         * process-unix.c: In unix_canonicalize_host_name() and
16769                 unix_open_network_stream(), add code to use getaddrinfo()
16770                 instead of gethostbyname().
16771
16772 2000-01-27  Daniel Pittman <daniel@danann.net>
16773
16774         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
16775         libs when built with flat Athena.
16776
16777 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16778
16779         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
16780         Use coding standards for function prototypes.
16781
16782 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16783
16784         * dialog-msw.c (push_lisp_string_as_unicode):
16785         * doc.c (unparesseuxify_doc_string):
16786         * dired.c (Fuser_name_completion_1):
16787         * dired.c (Fuser_name_all_completions):
16788         * dired.c (free_user_cache):
16789         * dired.c (user_name_completion):
16790         * console-x.c (get_display_arg_connection):
16791         * minibuf.c (clear_echo_area_internal):
16792         * minibuf.c (echo_area_append):
16793         * eldap.c (Fldap_open):
16794         * eldap.c (Fldap_search_internal):
16795         * frame-x.c (x_set_frame_text_value):
16796         * frame-x.c (x_set_frame_properties):
16797         * frame-x.c (x_create_widgets):
16798         * redisplay-tty.c (term_get_fkeys_1):
16799         * objects-x.c (x_parse_nearest_color):
16800         * objects-x.c (x_valid_color_name_p):
16801         * objects-x.c (x_initialize_font_instance):
16802         * objects-x.c (x_list_fonts):
16803         * objects-x.c (x_find_charset_font):
16804         * tooltalk.c (Fadd_tooltalk_message_arg):
16805         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
16806         * tooltalk.c (Fadd_tooltalk_pattern_arg):
16807         * process-unix.c (unix_create_process):
16808         * ntproc.c (sys_spawnve):
16809         * sound.c (Fplay_sound_file):
16810         * sound.c (Fplay_sound):
16811         * buffer.c (init_initial_directory):
16812         * buffer.c (init_buffer):
16813         * editfns.c (init_editfns):
16814         * editfns.c (Ftemp_directory):
16815         * editfns.c (Fuser_full_name):
16816         * editfns.c (uncache_home_directory):
16817         * editfns.c (get_home_directory):
16818         * editfns.c (Fuser_home_directory):
16819         * editfns.c (Fformat_time_string):
16820         * editfns.c (Fcurrent_time_string):
16821         * gui-x.c (button_item_to_widget_value):
16822         * database.c (Fopen_database):
16823         * event-Xt.c (x_to_emacs_keysym):
16824         * event-Xt.c (x_event_to_emacs_event):
16825         * event-Xt.c (describe_event_window):
16826         * event-msw.c (mswindows_wnd_proc):
16827         * glyphs-eimage.c (jpeg_instantiate):
16828         * glyphs-eimage.c (gif_instantiate):
16829         * glyphs-eimage.c (png_instantiate):
16830         * glyphs-eimage.c (tiff_instantiate):
16831         * glyphs-x.c (xbm_instantiate_1):
16832         * glyphs-x.c (x_xbm_instantiate):
16833         * glyphs-x.c (x_xface_instantiate):
16834         * glyphs-x.c (autodetect_instantiate):
16835         * glyphs-x.c (cursor_font_instantiate):
16836         * glyphs-x.c (x_widget_instantiate):
16837         * glyphs-x.c (x_widget_set_property):
16838         * glyphs-x.c (x_widget_property):
16839         * glyphs-x.c (BUILD_GLYPH_INST):
16840         * print.c (write_string_to_stdio_stream):
16841         * print.c (output_string):
16842         * print.c (Falternate_debugging_output):
16843         * print.c (Fexternal_debugging_output):
16844         * glyphs-msw.c (extract_xpm_color_names):
16845         * glyphs-msw.c (mswindows_xpm_instantiate):
16846         * glyphs-msw.c (bmp_instantiate):
16847         * glyphs-msw.c (resource_name_to_resource):
16848         * glyphs-msw.c (mswindows_resource_instantiate):
16849         * glyphs-msw.c (xbm_instantiate_1):
16850         * glyphs-msw.c (mswindows_xbm_instantiate):
16851         * glyphs-msw.c (mswindows_xface_instantiate):
16852         * glyphs-msw.c (mswindows_widget_instantiate):
16853         * glyphs-msw.c (add_tree_item):
16854         * glyphs-msw.c (add_tab_item):
16855         * glyphs-msw.c (mswindows_combo_box_instantiate):
16856         * glyphs-msw.c (mswindows_widget_property):
16857         * glyphs-msw.c (mswindows_combo_box_property):
16858         * glyphs-msw.c (mswindows_widget_set_property):
16859         * console.c (stuff_buffered_input):
16860         * objects-msw.c (mswindows_initialize_color_instance):
16861         * objects-msw.c (mswindows_valid_color_name_p):
16862         * objects-msw.c (mswindows_list_fonts):
16863         * objects-msw.c (mswindows_font_instance_truename):
16864         * bytecode.c (optimize_compiled_function):
16865         * select-x.c (symbol_to_x_atom):
16866         * select-x.c (x_atom_to_symbol):
16867         * select-x.c (hack_motif_clipboard_selection):
16868         * select-x.c (selection_data_to_lisp_data):
16869         * select-x.c (lisp_data_to_selection_data):
16870         * select-x.c (Fx_get_cutbuffer_internal):
16871         * select-x.c (Fx_store_cutbuffer_internal):
16872         * buffer.h (TO_EXTERNAL_FORMAT): New function.
16873         * buffer.h (TO_INTERNAL_FORMAT): New function.
16874         * emacs.c (make_arg_list_1):
16875         * emacs.c (make_argc_argv):
16876         * emacs.c (main_1):
16877         * emacs.c (Fdump_emacs):
16878         * emacs.c (split_string_by_emchar_1):
16879         * file-coding.h:
16880         * lisp.h:
16881         * lstream.h:
16882         * symsinit.h:
16883         * device-x.c (x_init_device):
16884         * device-x.c (Fx_valid_keysym_name_p):
16885         * device-x.c (Fx_get_font_path):
16886         * device-x.c (Fx_set_font_path):
16887         * glyphs.c (bitmap_to_lisp_data):
16888         * glyphs.c (pixmap_to_lisp_data):
16889         * alloc.c (make_ext_string): Use coding system arguments.  Update
16890         all callers.
16891         * alloc.c (build_string):
16892         * callproc.c (child_setup):
16893         * callproc.c (init_callproc):
16894         * fileio.c (lisp_strerror):
16895         * fileio.c (directory_file_name):
16896         * fileio.c (Fexpand_file_name):
16897         * fileio.c (Ffile_truename):
16898         * fileio.c (Fsysnetunam):
16899         * fileio.c (Fdo_auto_save):
16900         * sysdep.c (sys_readdir):
16901         * tests.c: New file.  Allow adding C tests.
16902         Replace GET_* macros with a more comprehensible and flexible
16903         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
16904         Modify all calls.
16905         Any coding system can be used to do format conversion.
16906         Eliminate enum external_data_format.
16907         Eliminate convert_to_external_format.
16908         Eliminate convert_to_internal_format.
16909         Make sure file-name, keyboard, terminal, and ctext are always
16910         defined as coding systems or aliases.  Make
16911         file-name-coding-system, terminal-coding-system, and
16912         keyboard-coding-system magical variables that are equivalent to
16913         defining the corresponding coding system aliases.
16914
16915         * file-coding.c (Fcoding_system_canonical_name_p): New function.
16916         * file-coding.c (Fcoding_system_alias_p): New function.
16917         * file-coding.c (Fcoding_system_aliasee): New function.
16918         * file-coding.c (append_suffix_to_symbol): New function.
16919         * file-coding.c (dangling_coding_system_alias_p): New function.
16920         * file-coding.c (Ffind_coding_system):
16921         * file-coding.c (Fcopy_coding_system):
16922         * file-coding.c (encode_coding_no_conversion):
16923         * file-coding.c (syms_of_file_coding):
16924         * file-coding.c (vars_of_file_coding):
16925         Rewrite coding system alias code.
16926         Allow nested aliases, like symbolic links.
16927         Allow redefinition of coding system aliases.
16928         Prevent existence of dangling coding system aliases.
16929
16930         * dired.c (Fuser_name_completion_1):
16931         * dired.c (Fuser_name_all_completions):
16932         A crash would happen if user did QUIT in the middle of building
16933         user_name_cache.  Remove redundant code in mainline and unwind_protect.
16934
16935         * lisp.h:
16936         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
16937
16938         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
16939         an unsigned char *.  Update all callers.
16940
16941 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16942
16943         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
16944
16945 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16946
16947         * elhash.c (hentry_description): Use more portable definition.
16948         (resize_hash_table): Initialize new hentries using
16949         xnew_array_and_zero, thereby simplifying the code.
16950
16951         * mule-charset.c (make_charset): Make sure entire object is
16952         initialized, to avoid Purify warnings.
16953
16954         * alloc.c (resize_string): Fix unlikely crash with big strings.
16955
16956 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16957
16958         * realpath.c (xrealpath):
16959         Don't call getwd().
16960
16961 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16962
16963         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16964
16965 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
16966
16967         * unexelfsgi.c (unexec): Change the way we decide which segment
16968         should be extended.
16969
16970         Assumption that .bss section should be outside the PT_LOADable
16971         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16972         it's present) is inside the 'data' segment. This would fail the
16973         test which was used to find a segment to grow and cover new
16974         heap. Instead of this assumption, I created another one - on IRIX
16975         the segment to grow should start below .bss and it's address
16976         should extent above the end of .bss. Once this segment is
16977         identified, it's grown to accommodate the new heap and new
16978         zero-length .bss section is added at the end of .data2.
16979
16980 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16981
16982         * eval.c (Feval): Wrong number of arguments should use original
16983         function, not the indirect_function version of it.
16984
16985 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16986
16987         * glyphs-x.c (x_button_instantiate): Don't add image if
16988         it is not a pixmap.
16989         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16990         is relative.
16991
16992 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16993
16994         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
16995         declaration.
16996         (DEFVAR_INT_MAGIC): Ditto.
16997         (DEFVAR_BOOL_MAGIC): Ditto.
16998         * glyphs.h: Reindent backslash.
16999
17000 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17001
17002         * glyphs-widget.c (layout_query_geometry):
17003         (layout_layout): Use correct types for gheight, gwidth.
17004
17005 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17006
17007         * EmacsManager.c (QueryGeometry): Purified.
17008
17009 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17010
17011         * alloc.c (make_float): Make sure entire object is initialized, to
17012         avoid Purify warnings.
17013         (pdump_register_sub): Remove useless assignment.
17014         (pdump): Use xmalloc, not malloc.
17015         (pdump_load): Use xmalloc, not malloc.
17016
17017 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17018
17019         * callproc.c:
17020         * dired-msw.c:
17021         * fileio.c:
17022         * process-nt.c:
17023         * redisplay-msw.c:
17024         * sysdep.c: Removed redundant #include <windows.h>
17025
17026 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17027
17028         * frame.c (delete_frame_internal): Do not delete device when its
17029         implementation so declares.
17030         (delete_frame_internal): Set device selected frame to nil when
17031         last frame goes away.
17032
17033         * device-msw.c (msprinter_device_system_metrics): Implemented.
17034         (mswindows_device_system_metrics): Added 'device-dpi property.
17035
17036         * device.c: (Fdevice_printer_p): Added.
17037         Added 'offset-workspace device metric.
17038
17039         * console.h (device_metrics): Declared DM_offset_workspace.
17040
17041 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17042
17043         * fileio.c (Ffile_truename): Remove pointless and confusing
17044         initialization of elen.
17045
17046         * glyphs-widget.c: Compiler warning fixes.
17047
17048 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17049
17050         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17051         instead of a Lisp_Object as argument to make it consistent with
17052         the other LIVE_P macros.
17053         (CHECK_LIVE_PROCESS): New macro.
17054
17055         * process.c: Declare Qprocess_live_p.
17056         (Fprocess_live_p): New function.
17057         (create_process): Use PROCESS_LIVE_P.
17058         (read_process_output): Ditto.
17059         (set_process_filter): Ditto.
17060         (Fdelete_process): Ditto.
17061         (kill_buffer_processes): Ditto
17062         (process_send_signal): Use CHECK_LIVE_PROCESS.
17063         (Fprocess_input_coding_system): Check whether process is still
17064         alive (fix PR#1061).
17065         (Fprocess_output_coding_system): Ditto.
17066         (Fprocess_coding_system): Ditto.
17067         (Fset_process_input_coding_system): Ditto.
17068         (Fset_process_output_coding_system): Ditto.
17069
17070 2000-01-23  Andy Piper  <andy@xemacs.org>
17071
17072         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17073         layout and widget.
17074
17075         * glyphs.c (mark_image_instance): take into account changed
17076         image_instance format.
17077         (image_instance_equal): ditto.
17078         (image_instance_hash): ditto.
17079
17080         * glyphs-widget.c (widget_instantiate): Incorporate layout
17081         instantiation here. Delay layout of the layout until later.
17082         (layout_instantiate): deleted.
17083         (layout_query_geometry): new function. get the geometry of a
17084         layout.
17085         (layout_layout): layout a layout dynamically.
17086         (image_instantiator_widget): New function - splitting up
17087         image_instantiator_format_create_glyphs_widget for netwinder
17088         compilation.
17089         (image_instantiator_buttons):
17090         (image_instantiator_edit_fields):
17091         (image_instantiator_combo_box):
17092         (image_instantiator_scrollbar):
17093         (image_instantiator_progress_guage):
17094         (image_instantiator_tree_view):
17095         (image_instantiator_tab_control):
17096         (image_instantiator_labels):
17097         (image_instantiator_layout): ditto.
17098         (image_instantiator_format_create_glyphs_widget): Call preceding
17099         functions.
17100
17101 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17102
17103         * process.c (Fset_process_coding_system):
17104         * device-x.c (Fx_keysym_hash_table):
17105         Docstring fixes.
17106
17107         * lstream.c (Lstream_write): Return documented value, not 0.
17108
17109         * fileio.c (directory_file_name):
17110         (Fsubstitute_in_file_name):
17111         (Fsubstitute_insert_file_contents_internal):
17112         (Fwrite_region_internal):
17113         * emacs.c:
17114         * sysdep.c:
17115         * getloadavg.c:
17116         * systty.h:
17117         Remove vestigial APOLLO-conditional code.
17118
17119 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17120
17121         * getpagesize.h: Add guard macros.
17122         * libsst.h: Add guard macros.
17123         * libst.h: Add guard macros.
17124         * line-number.h: Add guard macros.
17125         * ndir.h: Add guard macros.
17126         * sysfloat.h: Add guard macros.
17127         * sysfile.h: Add guard macros.
17128         * sysproc.h: Add guard macros.
17129         * syswait.h: Add guard macros.
17130         * xintrinsic.h: Add guard macros.
17131         * xintrinsicp.h: Add guard macros.
17132         * xmmanager.h: Add guard macros.
17133         * xmmanagerp.h: Add guard macros.
17134         * xmprimitive.h: Add guard macros.
17135         * xmu.h: Add guard macros.
17136         * gpmevent.h: Add copyright statement. Add guard macros.
17137         * miscplay.h: Add guard macros.
17138         * *.h: Use consistent C-standards-approved guard macro names.
17139
17140         * opaque.c (make_opaque): Switch parameter order.
17141         * opaque.h (make_opaque): Switch parameter order.
17142         Update all callers.
17143         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17144
17145         * config.h.in (type_checking_assert): Added.
17146         (bufpos_checking_assert): Added.
17147
17148 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17149
17150         * alloc.c: Harmless pdump changes.
17151         - Use countof().
17152         - spell alignment correctly.
17153         * sysdep.c: Use countof()
17154
17155 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17156
17157         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17158         initially_selected_for_input() console method, default to 0.
17159         (semi_canonicalize_console_connection): Try to delegate to
17160         canonicalize_console_connection if no such console method.
17161         (canonicalize_console_connection): Vice versa.
17162         (print_console): Do not print nil connection.
17163
17164         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17165         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17166         (XDEVIMPF_FRAMELESS_OK): Added.
17167         (CONSOLE_INHERITS_METHOD): Added.
17168
17169         * console-msw.c (mswindows_canonicalize_console_connection):
17170         Added.
17171         (mswindows_canonicalize_device_connection): Added.
17172
17173         * console-msw.h (struct msprinter_device): Added this struct and
17174         accessor macros.
17175         (mswindows_device): Made fontlist a lisp object.
17176
17177         * device.c (semi_canonicalize_device_connection):  Try to delegate
17178         to canonicalize_device_connection if no such console method.
17179         (canonicalize_device_connection): Vice versa.
17180         (print_device): Do not print nil connection.
17181
17182         * device-msw.c (mswindows_init_device): Call InitCommonControls
17183         when have widgets.
17184         (mswindows_delete_device): Removed fontlist deallocation.
17185         (mswindows_mark_device): Added.
17186
17187         * events.c (event_equal): Added abort() at unreached code.
17188         (event_hash): Ditto.
17189
17190         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17191         fallback tags of Windows devices.
17192
17193         * general.c (syms_of_general): Initialized Qmsprinter.
17194
17195         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17196         of fallback tags of Windows devices.
17197
17198         * lisp.h: Declared Qmsprinter.
17199
17200         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17201         of strings.
17202         (mswindows_list_fonts): Ditto.
17203         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17204         that it can be used by both mswindows and msprinter devices.
17205         (initialize_font_instance): Added.
17206         (mswindows_initialize_font_instance): Use it.
17207         (msprinter_initialize_font_instance): Added.
17208
17209         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17210         and implementation flags check.
17211         (redisplay_without_hooks): Changed the call to the above.
17212         (Fredraw_device): Ditto.
17213         (Fredisplay_device): Ditto.
17214
17215         * redisplay-msw.c (get_frame_dc): Implemented.
17216         (get_frame_compdc): Implemented.
17217         (many functions): Use the two functions above to get device
17218         contexts, ether for a window or a printer.
17219
17220 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17221
17222         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17223         initialization here.
17224         (init_symbols_once_early): Call it.
17225         * emacs.c (main_1): Call it.
17226         * symsinit.h: Declare it.
17227
17228 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17229
17230         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17231         Lisp_Object.
17232         (pdump_backtrace): Ditto.
17233         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17234         (pdump_get_entry): Abort if trying to register a null pointer.
17235         (pdump_dump_data): Cleanup types when relocating.
17236         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17237         (pdump_dump_rtables): Remove bad casts.
17238         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17239         Lisp_Object instead of a EMACS_INT for the hashtable
17240         reorganization.
17241
17242 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17243
17244         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17245
17246         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17247
17248         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17249
17250         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17251
17252 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17253
17254         * faces.h (FACE_STRIKETHRU_P): Added.
17255
17256         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17257         of font variants.
17258
17259         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17260         (mswindows_set_dc_font): New function, aware of font variants,
17261         separated from mswindows_update_dc.
17262
17263         * objects-msw.h (struct mswindows_font_instance_data): Added
17264         definition.
17265
17266         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17267         cached fonts and the data structure.
17268         (mswindows_initialize_font_instance): Added creation of font data
17269         structure.
17270         (mswindows_print_font_instance): Print at least something.
17271         (mswindows_create_font_variant): Implemented.
17272         (mswindows_get_hfont): Implemented.
17273
17274 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17275
17276         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17277         prototyping problem with msvc.
17278
17279         * emacs.c (main_1): added syms_of_gui_mswindows() call
17280
17281         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17282         syms_of_gui_mswindows() function
17283
17284         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17285
17286 2000-01-18  Martin Buchholz <martin@xemacs.org>
17287
17288         * XEmacs 21.2.27 is released.
17289
17290 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17291
17292         * glyphs-eimage.c (struct tiff_error_struct):
17293         (tiff_error_func):
17294         (tiff_warning_func):
17295         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17296
17297         * unexmips.c:
17298         * unexhp9k3.c:
17299         * unexfreebsd.c:
17300         * unexec.c: Remove vestigial Lucid C code.
17301         * unexalpha.c:
17302         * unexaix.c:
17303         * termcap.c:
17304         * libsst.c: Ansify.
17305         Remove declarations of errno and strerror().
17306
17307         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17308
17309         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17310
17311 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17312
17313         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17314         Optimize.
17315
17316 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17317
17318         * md5.c:
17319         * file-coding.c:
17320         * file-coding.h:
17321         Change enum eol_type to eol_type_t.
17322
17323 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17324
17325         * gui.c (get_gui_callback): Check cons before accessing car.
17326
17327 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17328
17329         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17330         (XSETSPECIFIER_TYPE): Ditto.
17331
17332 2000-01-17  Didier Verna  <didier@xemacs.org>
17333
17334         * redisplay.c (generate_fstring_runes): compute string size in
17335         characters, not bytes.
17336
17337 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17338
17339         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17340
17341 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17342
17343         * print.c (print_error_message): Call print_prepare().
17344
17345 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17346
17347         * .dbxrc: Renamed from dbxrc.
17348
17349         * events.c (event_to_character):
17350         Use `assert (foo)' instead of `if (!foo) abort()'
17351
17352         * .gdbinit (xtype): Add documentation.
17353         * .gdbinit (check-temacs): New function.
17354         * .gdbinit (check-xemacs): New function.
17355         * dbxrc (check-xemacs): New function.
17356         * dbxrc (check-xemacs): New function.
17357
17358 2000-01-14  Andy Piper  <andy@xemacs.org>
17359
17360         * glyphs-widget.c (widget_query_geometry): Make sure that we
17361         calculate default dimensions correctly.
17362
17363 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17364
17365         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17366
17367         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17368         pdump_wire'd variable.
17369
17370         * emacs.c: (main_1): Conditionalized calls to
17371         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17372
17373 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17374
17375         * window.c (Fset_window_configuration):
17376         * sysdep.c (_start):
17377         * input-method-motif.c (res):
17378         * event-Xt.c (Xt_process_to_emacs_event):
17379         Simple compiler warning fixes.
17380
17381         * bytecode.c (funcall_compiled_function): Use the original
17382         function symbol on the backtrace list in preference to the
17383         compiled_function object in error messages.
17384
17385 2000-01-13  Andy Piper  <andy@xemacs.org>
17386
17387         * glyphs-x.c (update_widget_face): Make sure we update the widget
17388         background as well as foreground.
17389
17390 2000-01-13  Andy Piper  <andy@xemacs.org>
17391
17392         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17393         fields to subwindow.
17394         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17395         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17396         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17397         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17398
17399         * glyphs-widget.c (check_valid_tab_orientation): new function.
17400         (initialize_widget_image_instance): zero orientation and
17401         justification.
17402         (widget_instantiate): pick up orientation.
17403         (tab_control_query_geometry): return appropriate values for
17404         vertical tabs.
17405
17406         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17407         appropriate creation flags for left, right and bottom tabs.
17408
17409         * s/cygwin32.h: add tab definitions.
17410
17411 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17412
17413         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17414         frame upon hiding a subwindow.
17415         (mswindows_button_instantiate): Changed the push button style to
17416         BS_PUSHBUTTON.
17417         (mswindows_button_instantiate): Removed button BS_NOTIFY
17418         style.
17419         (mswindows_button_instantiate): Removed redundant check for
17420         a disabled gui item.
17421         (mswindows_button_instantiate): Made use of WS_TABSTOP
17422         consistent: "operable" controls (edit, button, tree, scroll) have
17423         this style, "display-only" ones (static, progress gauge) do
17424         not. This style is currently ignored by XEmacs though. Also,
17425         removed the WS_EX_CONTROLPARENT style - it is not for children,
17426         it is for their parents!
17427         (mswindows_edit_field_instantiate): Ditto.
17428         (mswindows_progress_gauge_instantiate): Ditto.
17429         (mswindows_tree_view_instantiate): Ditto.
17430         (mswindows_tab_control_instantiate): Ditto.
17431         (mswindows_scrollbar_instantiate): Ditto.
17432         (mswindows_combo_box_instantiate): Ditto.
17433         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17434         style to the "clip" window.
17435         (mswindows_button_instantiate): Removed compilation warning by
17436         equally typing terms of the ?: operator.
17437
17438 2000-01-12  Didier Verna  <didier@xemacs.org>
17439
17440         * redisplay.c (generate_fstring_runes): new parameter holding the
17441         last modeline-format extent.
17442         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17443         extent, fill the glyph block with it.
17444         (generate_fstring_runes): handle these parameters.
17445         (generate_formatted_string_db): ditto.
17446
17447         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17448         glyphs'extents in the modeline.
17449
17450 1999-01-11  Mike Woolley  <mike@bulsara.com>
17451
17452         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17453         256Mb, as a workaround for the non-starting problem many people
17454         have experienced.
17455
17456 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17457
17458         * console-tty.c (Fset_console_tty_output_coding_system):
17459         Force redrawing tty frame.
17460
17461 2000-01-10  Didier Verna  <didier@xemacs.org>
17462
17463         * redisplay.c (generate_fstring_runes): fix size computation bug.
17464
17465 2000-01-09  William M. Perry <wmperry@aventail.com>
17466
17467         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17468
17469 2000-01-09  Andy Piper  <andy@xemacs.org>
17470
17471         * glyphs-msw.c: index -> i to avoid shadows.
17472         (xbm_create_bitmap_from_data): make static.
17473         (check_valid_string_or_int): deleted.
17474         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17475
17476         * glyphs-x.c (x_update_subwindow): remove unused args.
17477
17478         * glyphs.c (glyph_image_instance): return the thing. Don't set the
17479         back pointer - this is done in allocate_image_instance.
17480         (query_string_font): return Qnil to make the compiler happy.
17481         (unmap_subwindow): set to ~0 to make the compiler happy.
17482         (glyph_query_geometry): comment out until used.
17483         (glyph_layout): ditto.
17484
17485 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17486
17487         * insdel.c (signal_after_change): Remove extraneous unbind_to().