(U-00023D11): Use `->subsumptive'.
[chise/xemacs-chise.git.1] / src / ChangeLog
1 2005-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2
3         * chartab.c (Fput_char_attribute): Use
4         `Fchar_refs_simplify_char_specs' for `=>decomposition' before
5         calling `put_char_composition'.
6
7 2005-08-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
8
9         * chartab.c (Q_halfwidth_of): New variable.
10         (put_char_composition): Return `<-halfwidth' instead of
11         `=decomposition' for compatibility mapping to single character
12         tagged `narrow'.
13         (Fput_char_attribute): Convert char-specs in value of
14         `{<-|->}halfwidth[^*]*' to characters and put reverse links.
15         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
16         for `<-halfwidth'.
17         (syms_of_chartab): Add new symbol `<-halfwidth'.
18
19 2005-08-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
20
21         * chartab.c (put_char_composition): Return
22         `<-formed@{isolated|initial|medial|final}' for compatibility
23         mapping to single character tagged
24         `{isolated|initial|medial|final}'.
25
26 2005-08-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
27
28         * chartab.c (Q_compat_of): Deleted.
29         (put_char_composition): Return `<-FOO' for compatibility mapping
30         to single character tagged `FOO'; use `Fsymbol_name (...)' instead
31         of `symbol_name (XSYMBOL(...))'.
32         (Fput_char_attribute): Convert char-specs in value of
33         `{<-|->}font[^*]*' to characters and put reverse links.
34         (Fsave_char_attribute_table): Don't refer Q_compat_of.
35         (syms_of_chartab): Delete builtin symbol `<-compat'.
36
37 2005-08-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
38
39         * chartab.c (Q_circled_of): New variable.
40         (put_char_composition): Return `<-circled' instead of
41         `=decomposition' for compatibility mapping to single character
42         tagged `circle'.
43         (Fput_char_attribute): Convert char-specs in value of
44         `{<-|->}circled[^*]*' to characters and put reverse links.
45         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
46         for `<-circled'.
47         (syms_of_chartab): Add new symbol `<-circled'.
48
49 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
50
51         * chartab.c (Qto_decomposition_at_circled): New variable.
52         (put_char_composition): Return `=>decomposition@circled' instead
53         of `=decomposition' for compatibility decomposition mapping tagged
54         `circle'.
55         (syms_of_chartab): Add new symbol `=>decomposition@circled'.
56
57 2005-08-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
58
59         * chartab.c (Q_subscript_of): New variable.
60         (put_char_composition): Return `<-subscript' instead of
61         `=decomposition' for compatibility mapping to single character
62         tagged `sub'.
63         (Fput_char_attribute): Convert char-specs in value of
64         `{<-|->}subscript[^*]*' to characters and put reverse links.
65         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
66         for `<-subscript'.
67         (syms_of_chartab): Add new symbol `<-subscript'.
68
69 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
70
71         * chartab.c (Q_superscript_of): New variable.
72         (put_char_composition): Return `<-superscript' instead of
73         `=decomposition' for compatibility mapping to single character
74         tagged `super'.
75         (Fput_char_attribute): Convert char-specs in value of
76         `{<-|->}superscript[^*]*' to characters and put reverse links.
77         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
78         for `<-superscript'.
79         (syms_of_chartab): Add new symbol `<-superscript'.
80
81 2005-08-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
82
83         * chartab.c (Qto_decomposition_at_compat): Deleted.
84         (Qto_decomposition_at_superscript): New variable.
85         (put_char_composition): Use `=>decomposition@superscript' instead
86         of `=decomposition' for compatibility decomposition mapping tagged
87         `super'.
88         (Fput_char_attribute): Fix condition about `put_char_composition'.
89         (syms_of_chartab): Delete builtin symbol `=>decomposition@compat';
90         add news symbol `=>decomposition@superscript'.
91
92 2005-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
93
94         * chartab.c (put_char_composition): Return `=>decomposition@FOO'
95         for compatibility decomposition mapping tagged FOO.
96         (Fput_char_attribute): Modify for `put_char_composition'.
97
98 2005-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
99
100         * chartab.c (Qto_decomposition_at_compat): New variable.
101         (Q_compat_of): Renamed from `Q_compatibility_of'.
102         (put_char_composition): Rename `Q_compatibility_of' to
103         `Q_compat_of'; return `=>decomposition@compat' for compatibility
104         decomposition mapping.
105         (Fsave_char_attribute_table): Rename `Q_compatibility_of' to
106         `Q_compat_of'.
107         (syms_of_chartab): Add new symbol `=>decomposition@compat'; rename
108         `<-compatibility' to `<-compat'.
109
110 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
111
112         * chartab.c (Q_compatibility_of): New variable.
113         (put_char_composition): Use XCAR/XCDR instead of Fcar/Fcdr if an
114         object is proved to be a cons cell; return `<-compatibility' if
115         the first element of argument `value' is `compat'.
116         (Fput_char_attribute): Eliminate the first value if
117         `put_char_composition' returns `<-compatibility'.
118         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
119         for `<-compatibility'.
120         (syms_of_chartab): Add new symbol `<-compatibility'.
121
122 2005-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
123
124         * chartab.c (Q_canonical): New variable.
125         (put_char_composition): Return a feature name: return
126         `->canonical' if argument `value' specifies single character.
127         (Fput_char_attribute): Use `put_char_composition' to determine
128         feature name for `=decomposition' or `->denotational'.
129         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
130         for `->canonical'.
131         (syms_of_chartab): Add new symbol `->canonical'.
132
133 2005-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
134
135         * chartab.c (Qmap_decomposition): New variable.
136         (Fput_char_attribute): Convert `->decomposition' to
137         `=decomposition'.
138         (syms_of_chartab): Add new symbol `=decomposition'.
139
140 2005-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
141
142         * chartab.c (Fget_range_char_table): Fix serious problem when
143         `range' is nil.
144
145 2005-06-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
146
147         * chartab.c (char_table_get_db): Use `read_from_c_string'.
148
149 2005-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
150
151         * lread.c (read_from_c_string): New function.
152
153         * lisp.h (read_from_c_string): New prototype.
154
155 2005-05-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
156
157         * chartab.c (Fput_char_attribute): Convert char-specs in value of
158         `{<-|->}Oracle-Bones[^*]*' to characters and put reverse links.
159         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
160         for `{<-|->}Oracle-Bones[^*]*'.
161
162 2005-05-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
163
164         * mule.c (vars_of_mule): Update `xemacs-chise-version' to 0.22
165         (Kizu).
166
167 2005-02-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
168
169         * text-coding.c (Qccs_priority_list): New variable in XEmacs
170         CHISE.
171         (Fmake_coding_system): Support new property `ccs-priority-list' in
172         XEmacs CHISE.
173         (Fcoding_system_property): Likewise.
174         (char_encode_iso2022): Prefer CODING_SYSTEM_CCS_PRIORITY_LIST than
175         Vdefault_coded_charset_priority_list in XEmacs CHISE.
176         (syms_of_file_coding): Add builtin symbol `ccs-priority-list' in
177         XEmacs CHISE.
178         (complex_vars_of_file_coding): Define new coding-system-property
179         `ccs-priority-list' in XEmacs CHISE.
180
181         * file-coding.h (XCODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
182
183 2004-12-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
184
185         * char-ucs.h (decoding_table_put_char): Moved to mule-charset.c;
186         changed to normal function.
187         (encode_char_2): Likewise.
188
189         * mule-charset.c (decoding_table_put_char): Copied from
190         char-ucs.h; changed to normal function.
191         (encode_char_2): Likewise.
192
193 2004-12-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
194
195         * char-ucs.h (Vdisplay_coded_charset_priority_use_inheritance):
196         New extern.
197         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
198         (encode_char_2_search_children): New inline function.
199         (encode_char_2): Refer
200         `Vdisplay_coded_charset_priority_use_{inheritance|hierarchy_order}'
201         and use `encode_char_2_search_children'.
202
203 2004-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
204
205         * mule-charset.c
206         (Vdisplay_coded_charset_priority_use_inheritance): New variable.
207         (Vdisplay_coded_charset_priority_use_hierarchy_order): Likewise.
208         (vars_of_mule_charset): Add new variable
209         `display-coded-charset-priority-use-inheritance' and
210         `display-coded-charset-priority-use-hierarchy-order'.
211
212 2004-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
213
214         * char-ucs.h (Q_subsumptive): New extern.
215         (Q_denotational): Likewise.
216         (encode_char_2): Search children specified by `->subsumptive' and
217         `->denotational'.
218
219 2004-11-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
220
221         * mule-charset.c (complex_vars_of_mule_charset): Modify the
222         X-registry of `ucs-bmp'.
223
224 2004-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
225
226         * chartab.c (char-variants): Refer `->subsumptive',
227         `->denotational' and `->identical' as same as `->ucs-unified'.
228
229 2004-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
230
231         * chartab.c (Fput_char_attribute): Convert char-specs in value of
232         `{<-|->}{fullwidth|halfwidth}[^*]*' to characters and put reverse
233         links.
234
235 2004-09-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
236
237         * text-coding.c: Add EXFUN for `Fregexp_quote'.
238         (decode_add_er_char): Fix problem about infinite loop when a CCS
239         specified in `coded-charset-entity-reference-alist' is not
240         existed.
241
242 2004-09-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
243
244         * mule-charset.c (syms_of_mule_charset): Rename
245         `=jis-x0208-{1978|1983|1990}' to `=jis-x0208@{1978|1983|1990}'.
246
247 2004-08-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
248
249         * fns.c (simplify_char_spec): Don't allocate new character-object
250         if specified char_spec does not have any CCS-features.
251
252         * chartab.h: Add EXFUN for Fdefine_char.
253
254         * chartab.c: Delete EXFUN for Fdefine_char.
255
256 2004-08-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
257
258         * fns.c (simplify_char_spec): Use Fdefine_char instead of
259         Ffind_char for char-spec.
260
261 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
262
263         * lisp-disunion.h (XCHARVAL): Fix condition about
264         SIZEOF_EMACS_INT.
265
266 2004-07-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
267
268         * mule-charset.c (decode_builtin_char): Use <EMACS_INT> instead of
269         <int> for `code'.
270         (Fdecode_builtin_char): Use <EMACS_INT> instead of <int> for code
271         point; use <Emchar> instead of <int> for character-id.
272
273 2004-07-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
274
275         * lisp-disunion.h (make_int): Cast the argument into <EMACS_INT>.
276         (make_char): Likewise.
277         (XCHARVAL): Don't use the inline function for UTF-2000 in 64 bit
278         environment.
279         (XCHARVAL[for UTF-2000 in 32 bit environment]): Use <Emchar>
280         instead of <int> as the type of return value; use <Lisp_Object>
281         instead of <Emchar> as the type of argument.
282         (XCHARVAL[macro version]): Cast the result into <Emchar>.
283
284         * syntax.h (SYNTAX_CODE_UNSAFE): Use <Lisp_Object> and <enum
285         syntaxcode> instead of <int>.
286
287 2004-07-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
288
289         * chartab.c (put_char_composition): Use DECODE_CHAR to get
290         character corresponding with UCS code point.
291         (Fput_char_attribute): Likewise.
292
293         * mule-charset.c (put_char_ccs_code_point): Don't omit a UCS
294         character in the UCS decoding-table if the char-id is not equal to
295         the UCS code point.
296
297 2004-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
298
299         * mule-charset.c (Fsave_charset_properties): Use `true-name' only
300         for aliases; write `description'; write
301         `mother-code-{min|max|offset|conversion}' if CHARSET_MAX_CODE is
302         not 0.
303
304 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
305
306         * chartab.c (Fsave_char_attribute_table): Don't use
307         `save_charset_properties'.
308
309         * mule-charset.c (Fsave_charset_properties): Renamed from
310         `save_charset_properties' and changed to Lisp function again;
311         write property `type' as `CCS'; write properties `final-byte' and
312         `mother' if they exists.
313         (syms_of_mule_charset): Revive builtin function
314         `save-charset-properties' when HAVE_LIBCHISE is defined.
315
316 2004-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
317
318         * chartab.c (open_chise_data_source_maybe): Use Vdata_directory
319         instead of Vexec_directory.
320         (char_attribute_system_db_file): Likewise.
321
322 2004-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
323
324         * chartab.c (Fsave_char_attribute_table): Use
325         `save_charset_properties' for CCS features when HAVE_LIBCHISE is
326         defined.
327
328         * mule-charset.c (save_charset_properties): Renamed from
329         `Fsave_charset_properties'; changed to non-Lisp function.
330         (syms_of_mule_charset): Abolish builtin function
331         `save-charset-properties'.
332
333 2004-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
334
335         * mule-charset.c (Fsave_charset_properties): New function when
336         HAVE_LIBCHISE is defined.
337         (syms_of_mule_charset): Add new builtin function
338         `save-charset-properties' when HAVE_LIBCHISE is defined.
339
340 2004-06-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
341
342         * chartab.c (Fput_char_attribute): Convert char-specs in value of
343         `{<-|->}ancient[^*]*' to characters and put reverse links.
344         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
345         for `{<-|->}ancient[^*]*'.
346
347 2004-06-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
348
349         * chartab.c (Fput_char_attribute): Convert char-specs in value of
350         `{<-|->}original[^*]*' to characters and put reverse links.
351         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
352         for `{<-|->}original[^*]*'.
353
354 2004-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
355
356         * mule-canna.c (m2c): Fix problem with XEmacs CHISE.
357
358 2004-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
359
360         * mule-charset.c (Qsystem_char_id): New variable.
361
362         * chartab.c (Qsystem_char_id): Deleted even if HAVE_CHISE is
363         defined and HAVE_LIBCHISE_LIBCHISE is not defined.
364
365 2004-05-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
366
367         * chartab.c (Fput_char_attribute): When processing a reference of
368         a character, put into the end of the reversed reference of each
369         target character.
370
371 2004-05-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
372
373         * chartab.c (Q_same): Deleted.
374         (Q_same_of): Deleted.
375         (Fput_char_attribute): Use Fstring_match to find `{<-|->}same'.
376         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
377         for `{<-|->}same'.
378         (syms_of_chartab): Delete builtin symbol `{<-|->}same'.
379
380 2004-05-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
381
382         * chartab.c (Q_vulgar): Deleted.
383         (Q_vulgar_of): Deleted.
384         (Fput_char_attribute): Use Fstring_match to find `{<-|->}vulgar'.
385         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
386         for `{<-|->}vulgar'.
387         (syms_of_chartab): Don't define `{<-|->}vulgar'.
388
389 2004-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
390
391         * chartab.c (Fput_char_attribute): Convert char-specs in value of
392         `{<-|->}wrong[^*]*' to characters and put reverse links.
393         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
394         for `{<-|->}wrong[^*]*'.
395
396 2004-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
397
398         * chartab.c (Q_vulgar): New variable.
399         (Q_vulgar_of): New variable.
400         (Fput_char_attribute): Convert char-specs in value of
401         `{->|<-}vulgar' to characters and put reverse links.
402         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
403         for `{->|<-}vulgar'.
404         (syms_of_chartab): Add new symbols `{->|<-}vulgar'.
405
406 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
407
408         * text-coding.c (decode_add_er_char): Must to quote prefix string
409         as regexp.
410
411 2004-04-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
412
413         * mule-charset.c (put_char_ccs_code_point): Store characters of
414         =ucs whose code_points >= 0xF0000.
415
416 2004-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
417
418         * mule-charset.c (Vcharset_system_char_id): New variable in XEmacs
419         CHISE.
420         (syms_of_mule_charset): Add new symbol `system-char-id' in XEmacs
421         CHISE.
422         (complex_vars_of_mule_charset): Add new coded-charset
423         `system-char-id' in XEmacs CHISE; modify `=ucs' to eliminate
424         builtin characters over 0xEFFFF.
425
426         * chartab.c (syms_of_chartab): Don't define symbol
427         `system-char-id' in every case.
428
429         * char-ucs.h (Qsystem_char_id): New extern variable.
430         (LEADING_BYTE_SYSTEM_CHAR_ID): New macro.
431
432 2004-04-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
433
434         * text-coding.c (char_encode_utf8): Try to use entity-references
435         for U-000F0000 ...  U-0010FFFF.
436
437 2004-04-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
438
439         * text-coding.c (ER_BUF_SIZE): New macro.
440         (struct decoding_stream): Use `ER_BUF_SIZE' to specify size of
441         `er_buf'.
442         (decode_add_er_char): Use `ER_BUF_SIZE' instead of 16.
443         (char_encode_as_entity_reference): Use `ER_BUF_SIZE'.
444
445 2004-03-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
446
447         * chartab.c (find_char_feature_in_family): New function.
448         (Fchar_feature): Use `find_char_feature_in_family' with
449         `->identical', `<-subsumptive' and `<-denotational'.
450
451 2004-03-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
452
453         * text-coding.c (char_encode_as_entity_reference): Allow prefix
454         within 8 characters; fix infinite loop.
455
456 2004-03-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
457
458         * chartab.c (Q_same): New variable.
459         (Q_same_of): New variable.
460         (Fput_char_attribute): Convert char-specs in value of
461         `{->|<-}same' to characters and put reverse links.
462         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
463         for `{->|<-}same'.
464         (syms_of_chartab): Add new symbols `{->|<-}same'.
465
466 2004-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
467
468         * chartab.c (Q_component): New variable.
469         (Q_component_of): Likewise.
470         (Fput_char_attribute): Convert char-specs in value of
471         `{->|<-}ideographic-component-forms' to characters and put reverse
472         links.
473         (syms_of_chartab): Add new symbols
474         `{->|<-}ideographic-component-forms'.
475
476 2004-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
477
478         * chartab.c (Q_identical): New variable.
479         (Q_identical_from): New variable.
480         (Fchar_feature): Regard `->identical' as a feature to find
481         ancestors.
482         (Fput_char_attribute): Add reversed link for `{->|<-}identical'.
483         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
484         for `{->|<-}identical'.
485         (syms_of_chartab): Add new symbols `{->|<-}identical'.
486
487 2004-02-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
488
489         * char-ucs.h (encode_char_2): New inline function.
490         (CHAR_TO_CHARC): Use `encode_char_2' instead of `encode_char_1'.
491
492 2004-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
493
494         * chartab.c (Fput_char_attribute): Convert char-specs to
495         characters in value of `ideographic-structure'.
496         (Fsave_char_attribute_table): Use `Fchar_refs_simplify_char_specs'
497         for `{<-|->}simplified(@...)'.
498         (Fdefine_char): Try to use predefined character's id.
499
500 2004-02-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
501
502         * fns.c (simplify_char_spec): Try to convert builtin chars to
503         defined chars.
504
505 2004-02-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
506
507         * chartab.c (Fput_char_attribute): Convert char-specs in value of
508         `<-simplified[^*]*' to characters and put reverse links.
509
510 2004-02-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
511
512         * chartab.c (Q_subsumptive): Renamed from Q_unified.
513         (Q_subsumptive_from): Renamed from Q_unified_from.
514         (Fchar_feature): Use `Q_subsumptive_from' instead of
515         `Q_unified_from'.
516         (Fput_char_attribute): Likewise; Use `Q_subsumptive' instead of
517         `Q_unified'.
518         (syms_of_chartab): Rename `->unified' to `->subsumptive' and
519         `<-unified' to `<-subsumptive'.
520
521 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
522
523         * chartab.c (Fchar_feature): Check `<-denotational' to avoid
524         inheritance itself; fix typo; stop recursive search if cyclic
525         inheritance is found.
526
527 2004-02-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
528
529         * chartab.c (Q_denotational): New variable.
530         (Q_denotational_from): New variable.
531         (Fchar_feature): Refer `<-denotational' as same as `<-unified'.
532         (put_char_attribute): New function.
533         (Fput_char_attribute): Use `put_char_attribute'; regard
534         `->denotational' and `<-denotational' as same as `->unified' and
535         `<-unified'.
536         (syms_of_chartab): Add new symbols `->denotational' and
537         `<-denotational'.
538
539 2004-02-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
540
541         * chartab.c (Fget_composite_char): Use `Fchar_feature' instead of
542         `Fget_char_attribute'.
543         (Fchar_variants): Likewise.
544         (get_char_table): Likewise.
545         (Fchar_feature): New function.
546         (put_char_composition): Use `Fchar_feature' instead of
547         `Fget_char_attribute'.
548         (Fput_char_attribute): Likewise; don't put the target character
549         into its `->unified' value.
550         (syms_of_chartab): Add new builtin function `char-feature'.
551
552 2004-01-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
553
554         * text-coding.c (COMPOSE_ADD_CHAR): Use `Fchar_feature' instead of
555         `Fget_char_attribute'.
556         (char_encode_utf8): Likewise.
557
558         * chartab.h: Add an EXFUN for `Fchar_feature'.
559
560 2004-01-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
561
562         * chartab.c (Vnext_defined_char_id): New variable.
563         (Fput_char_attribute): Accept characters in `->unified'.
564         (Fdefine_char): Refer and update Vnext_defined_char_id to allocate
565         new characters which are not related with builtin char-id ranges.
566         (vars_of_chartab): Add new variable `next-defined-char-id'.
567
568 2004-01-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
569
570         * chartab.c (Q_unified): New variable.
571         (Q_unified_from): New variable.
572         (Fput_char_attribute): Add code for `->unified'.
573         (syms_of_chartab): Add new symbols `->unified' and `<-unified' in
574         XEmacs CHISE.
575
576 2003-11-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
577
578         * mule-charset.c (decode_ccs_conversion): New function.
579         (decode_defined_char): Use `decode_ccs_conversion'.
580         (decode_builtin_char): Likewise.
581
582 2003-11-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
583
584         * char-ucs.h: Change some charset-ids of private coded-charsets.
585
586 2003-11-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
587
588         * text-coding.c (decode_add_er_char): Modify for `DECODE_CHAR'.
589         (char_encode_as_entity_reference): Likewise.
590         (decode_coding_big5): Modify for `decode_defined_char' and
591         `DECODE_CHAR'.
592         (decode_coding_utf8): Modify for `decode_defined_char'; modify to
593         avoid compiler warning.
594         (decode_coding_iso2022): Modify for `DECODE_CHAR'.
595
596         * mule-charset.c (decode_defined_char): Add new argument
597         `without_inheritance'.
598         (Fdecode_char): Add new optional argument `without_inheritance'.
599         (Fdecode_builtin_char): Modify for `Fdecode_char'.
600
601         * fns.c (ids_format_unit): Modify for `Fdecode_char'.
602         (simplify_char_spec): Likewise.
603
604         * chartab.h (Fdecode_char): Modify number of arguments of EXFUN
605         setting.
606
607         * chartab.c (put_char_table): Modify for `DECODE_CHAR'.
608         (map_char_table): Likewise.
609         (Fdefine_char): Use `Fdecode_char' without inheritance.
610         (Ffind_char): Modify for `Fdecode_char'.
611
612         * character.h (CHARC_TO_CHAR): Modify for `DECODE_CHAR'.
613
614         * char-ucs.h (decode_defined_char): Add new argument
615         `without_inheritance'.
616         (DECODE_CHAR): Likewise.
617         (MAKE_CHAR): Modify for `DECODE_CHAR'.
618
619 2003-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
620
621         * chartab.c (Vchise_system_db_directory): New variable.
622         (vars_of_chartab): Add new variable `chise-system-db-directory'.
623
624 2003-10-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
625
626         * chartab.c: EXFUN `Fmount_char_attribute_table'.
627         (print_chartab_range): Don't define when `UTF2000' is defined.
628         (open_chise_data_source_maybe): Specify 0 instead of DB_HASH for
629         `CHISE_DS_open'.
630
631 2003-10-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
632
633         * chartab.c (Fchar_attribute_list): When HAVE_LIBCHISE is defined
634         and optional argument `rehash' is specified, call
635         `open_chise_data_source_maybe' before
636         `chise_ds_foreach_char_feature_name' is called.
637
638 2003-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
639
640         * chartab.c (char_attribute_list_reset_map_func): New function
641         when HAVE_LIBCHISE is defined.
642         (Fchar_attribute_list): Add new optional argument `rehash' when
643         HAVE_LIBCHISE is defined.
644         (open_chise_data_source_maybe): Use "chise-db" instead of
645         "char-db".
646         (char_attribute_system_db_file): Likewise.
647         (Fload_char_attribute_table): Use
648         `chise_feature_foreach_char_with_value' instead of
649         `chise_char_feature_value_iterate'.
650
651 2003-10-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
652
653         * chartab.c (Vchise_db_directory): New variable.
654         (vars_of_chartab): Add new built-in variable `chise-db-directory'.
655
656 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
657
658         * mule-charset.c (Freset_charset_mapping_table): Use HAVE_LIBCHISE
659         instead of HAVE_CHISE to specify using with libchise.
660
661         * config.h.in (HAVE_CHISE_CLIENT): Deleted.
662
663         * chartab.h: Don't use HAVE_CHISE_CLIENT.
664
665         * chartab.c (Qsystem_char_id): Don't define when HAVE_CHISE is not
666         defined or HAVE_LIBCHISE_LIBCHISE is defined.
667         (char_attribute_system_db_file): Don't define when HAVE_LIBCHISE
668         is defined.
669         (Freset_char_attribute_table): Use HAVE_LIBCHISE instead of
670         HAVE_CHISE to specify using with libchise.
671         (syms_of_chartab): Don't define symbol `system-char-id' when
672         HAVE_CHISE is not defined or HAVE_LIBCHISE_LIBCHISE is defined.
673
674 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
675
676         * mule-charset.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
677         specify CHISE DB support.
678         (Freset_charset_mapping_table): Use `chise_ccs_setup_db' instead
679         of `char_attribute_system_db_file' to check feature DB file.
680
681         * chartab.h, casetab.c, char-ucs.h: Use HAVE_CHISE instead of
682         HAVE_CHISE_CLIENT to specify CHISE DB support.
683
684         * chartab.c: Use HAVE_CHISE instead of HAVE_CHISE_CLIENT to
685         specify CHISE DB support.
686         (open_chise_data_source_maybe): Don't define when HAVE_LIBCHISE is
687         not defined.
688         (Freset_char_attribute_table): Use `chise_feature_setup_db'
689         instead of `char_attribute_system_db_file' to check feature DB
690         file.
691
692 2003-10-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
693
694         * mule.c (vars_of_mule): Use `HAVE_CHISE' instead of `CHISE' and
695         `HAVE_CHISE_CLIENT'.
696
697 2003-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
698
699         * mule-charset.c: Use HAVE_LIBCHISE instead of CHISE.
700         (Fsave_charset_mapping_table): Don't use
701         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
702
703         * config.h.in (HAVE_CHISE): Renamed from `CHISE'.
704         (HAVE_LIBCHISE): New macro.
705
706         * chartab.h: Use HAVE_LIBCHISE instead of CHISE.
707
708         * chartab.c: Use HAVE_LIBCHISE instead of CHISE.
709         (Fsave_char_attribute_table): Don't use
710         `char_attribute_system_db_file' when HAVE_LIBCHISE is defined.
711
712 2003-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
713
714         * chartab.c (save_uint8_byte_table): Use libchise when CHISE is
715         defined.
716         (save_uint16_byte_table): Likewise.
717         (save_byte_table): Likewise.
718         (char_table_get_db): Use `chise_ds_load_char_feature_value'
719         instead of `chise_char_load_feature_value'.
720         (Fsave_char_attribute_table): Use libchise when CHISE is defined.
721
722 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
723
724         * chartab.h (struct Lisp_Char_Table): Delete member
725         `feature_table' if CHISE is defined.
726
727         * chartab.c (Fmake_char_table): Don't refer `ct->feature_table'.
728         (Fcopy_char_table): Likewise.
729         (char_table_open_db_maybe): Likewise.
730         (char_table_close_db_maybe): Likewise.
731         (char_table_get_db): Likewise.
732         (Fmount_char_attribute_table): Likewise.
733         (Fload_char_attribute_table): Likewise.
734
735 2003-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
736
737         * mule-charset.c (load_char_decoding_entry_maybe): Use
738         `chise_ds_decode_char' instead of `chise_ds_get_ccs' and
739         `chise_ccs_decode'.
740
741 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
742
743         * chartab.c (open_chise_data_source_maybe): Use `CHISE_DS_open'
744         instead of `chise_open_data_source'.
745         (Fclose_char_data_source): Use `CHISE_DS_close' instead of
746         `chise_ds_close'.
747
748 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
749
750         * chartab.c (char_table_open_db_maybe): Use `chise_ds_get_feature'
751         instead of `chise_ds_open_feature_table'.
752         (char_table_close_db_maybe): Don't use `chise_ft_close'.
753
754 2003-10-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
755
756         * mule-charset.c (Fsave_charset_mapping_table): Use
757         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; use
758         `chise_ccs_set_decoded_char' instead of `chise_ccst_put_char'; use
759         `chise_ccs_sync' instead of `chise_ccst_close'.
760         (load_char_decoding_entry_maybe): Modify for `chise_ds_get_ccs'.
761
762         * chartab.c (open_chise_data_source_maybe): Modify for
763         `chise_open_data_source'.
764         (char_table_open_db_maybe): Modify for
765         `chise_ds_open_feature_table'.
766
767 2003-08-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
768
769         * mule-charset.c (load_char_decoding_entry_maybe): Use
770         `chise_ds_get_ccs' instead of `chise_ds_open_ccs_table'; don't use
771         `chise_ccst_close'.
772
773 2003-08-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
774
775         * mule-charset.c (Fsave_charset_mapping_table): Use
776         `chise_ds_open_ccs_table', `chise_ccst_put_char' and
777         `chise_ccst_close' instead of `chise_ds_open_decoding_table',
778         `chise_dt_put_char' and `chise_dt_close'.
779         (load_char_decoding_entry_maybe): Use `chise_ds_open_ccs_table',
780         `chise_ccs_decode' and `chise_ccst_close' instead of
781         `chise_ds_open_decoding_table', `chise_dt_get_char' and
782         `chise_dt_close'.
783
784         * chartab.c (char_table_get_db): Use
785         `chise_char_load_feature_value' instead of `chise_ft_get_value'.
786         (load_char_attribute_table_map_func): Modify for
787         `chise_char_feature_value_iterate'.
788         (Fload_char_attribute_table): Use
789         `chise_char_feature_value_iterate' instead of `chise_ft_iterate'.
790
791 2003-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
792
793         * text-coding.c (COMPOSE_ADD_CHAR): Fixed.
794
795 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
796
797         * chartab.c (put_char_table): Modify for inherited coded-charsets
798         in XEmacs CHISE.
799
800 2003-08-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
801
802         * chartab.c (Fput_char_table_map_function): Fixed.
803         (word_boundary_p): Don't check charset in XEmacs CHISE.
804
805 2003-08-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
806
807         * mule-charset.c (Fsave_charset_mapping_table): Use
808         `open_chise_data_source_maybe'; use `chise_ds_open_decoding_table'
809         instead of `chise_open_decoding_table'; refer
810         `default_chise_data_source'; use `chise_dt_close' instead of
811         `chise_close_decoding_table'.
812         (load_char_decoding_entry_maybe): Likewise.
813
814         * chartab.c (default_chise_data_source): New variable when `CHISE'
815         is defined.
816         (Fcopy_char_table): `ct->ds' is deleted.
817         (open_chise_data_source_maybe): New function.
818         (Fclose_char_data_source): New function.
819         (char_table_open_db_maybe): Use `open_chise_data_source_maybe';
820         use `chise_ds_open_feature_table' instead of
821         `chise_open_feature_table'.
822         (char_table_close_db_maybe): Use `chise_ft_close' instead of
823         `chise_close_feature_table'; `cit->ds' is deleted.
824         (syms_of_chartab): Add new builtin function
825         `close-char-data-source' when `HAVE_CHISE_CLIENT' is defined.
826
827         * chartab.h (default_chise_data_source): New extern variable.
828         (open_chise_data_source_maybe): New prototype.
829         (struct Lisp_Char_Table): Delete `ds'.
830
831 2003-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
832
833         * mule-charset.c (Fsave_charset_mapping_table): Use libchise when
834         `CHISE' is defined.
835
836 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
837
838         * chartab.c (char_table_open_db_maybe): Defined even if `CHISE' is
839         not defined; add code for non-libchise setting.
840         (char_table_close_db_maybe): Likewise.
841         (char_table_get_db): New function when `HAVE_CHISE_CLIENT' is
842         defined.
843         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'
844         even if `CHISE' is not defined.
845         (Freset_char_attribute_table): Likewise.
846         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
847         `char_table_close_db_maybe' even if `CHISE' is not defined; use
848         `char_table_get_db'.
849         (Fload_char_attribute_table): Use `char_table_open_db_maybe' and
850         `char_table_close_db_maybe' even if `CHISE' is not defined.
851
852 2003-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
853
854         * chartab.c (char_table_open_db_maybe): New function.
855         (char_table_close_db_maybe): New function.
856         (Fclose_char_attribute_table): Use `char_table_close_db_maybe'.
857         (Freset_char_attribute_table): Likewise.
858         (load_char_attribute_maybe): Use `char_table_open_db_maybe' and
859         `char_table_close_db_maybe'.
860         (Fload_char_attribute_table): Likewise.
861
862 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
863
864         * chartab.c: Don't include <chise.h> because it is included in
865         chartab.h.
866         (Fmake_char_table): Initialize `ct->feature_table' when `CHISE' is
867         defined.
868         (Fcopy_char_table): Copy `ct->ds' and `ct->feature_table' when
869         `CHISE' is defined.
870         (Fmount_char_attribute_table): Initialize `ct->feature_table' when
871         `CHISE' is defined.
872         (Fclose_char_attribute_table): Close `ct->feature_table' and
873         `ct->ds' when `CHISE' is defined.
874         (Freset_char_attribute_table): Likewise.
875         (load_char_attribute_maybe): Use `cit->ds' and
876         `cit->feature_table' when `CHISE' is defined.
877         (Fload_char_attribute_table): Likewise.
878
879         * chartab.h: Include <chise.h> when `CHISE' is defined.
880         (struct Lisp_Char_Table): Add new member `ds' and `feature_table'
881         when `CHISE' is defined.
882
883 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
884
885         * chartab.c (mark_char_table): Member `db' is deleted when `CHISE'
886         is defined.
887         (char_table_description): Likewise.
888         (Fmake_char_table): Likewise.
889         (Fcopy_char_table): Likewise.
890         (Fmount_char_attribute_table): Likewise.
891         (Fclose_char_attribute_table): Likewise.
892         (Freset_char_attribute_table): Likewise.
893         (load_char_attribute_maybe): Likewise.
894         (Fload_char_attribute_table): Likewise.
895
896         * chartab.h (struct Lisp_Char_Table): Delete `db' when `CHISE' is
897         defined.
898
899 2003-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
900
901         * chartab.c (load_char_attribute_table_map_func): New function
902         when CHISE is defined.
903         (Qload_char_attribute_table_map_function): Don't define when CHISE
904         is defined.
905         (Fload_char_attribute_table_map_function): Likewise.
906         (Fload_char_attribute_table): Use libchise when `CHISE' is
907         defined.
908         (syms_of_chartab): Don't define
909         `load-char-attribute-table-map-function' when CHISE is defined.
910
911 2003-08-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
912
913         * chartab.c: Include <chise.h> when `CHISE' is defined.
914         (load_char_attribute_maybe): Use libchise when `CHISE' is defined.
915
916 2003-07-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
917
918         * mule-charset.c (charset_code_point): Fix problem when searching
919         in mother CCS fails with `defined_only' mode.
920
921 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
922
923         * chartab.c (Q_ucs_unified): Renamed from `Q_ucs_variants'.
924         (Fchar_variants): Rename `Q_ucs_variants' to `Q_ucs_unified'.
925         (put_char_composition): Likewise.
926         (Fput_char_attribute): Likewise.
927         (syms_of_chartab): Rename `->ucs-variants' to `->ucs-unified'.
928
929 2003-06-29  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
930
931         * chartab.c (Q_ucs): Deleted.
932         (Fput_char_attribute): Don't refer `->ucs'.
933         (Fdefine_char): Likewise.
934         (Ffind_char): Likewise.
935         (syms_of_chartab): Delete `->ucs'.
936
937 2003-04-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
938
939         * mule-charset.c (Qmap_cns11643_2): Renamed from
940         `Qchinese_cns11643_2'.
941         (syms_of_mule_charset): Add new symbol `=cns11643-2' instead of
942         `chinese-cns11643-2'.
943         (complex_vars_of_mule_charset): Rename `chinese-cns11643-2' to
944         `=cns11643-2'.
945
946 2003-04-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
947
948         * mule-charset.c (Qmap_cns11643_1): Renamed from
949         `Qchinese_cns11643_1'.
950         (syms_of_mule_charset): Add new symbol `=cns11643-1' instead of
951         `chinese-cns11643-1'.
952         (complex_vars_of_mule_charset): Rename `chinese-cns11643-1' to
953         `=cns11643-1'.
954
955 2003-04-24  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
956
957         * mule-charset.c (Qmap_gb12345): Renamed from `Qchinese_gb12345'.
958         (syms_of_mule_charset): Add new symbol `=gb12345' instead of
959         `chinese-gb12345'.
960         (complex_vars_of_mule_charset): Rename `chinese-gb12345' to
961         `=gb12345'.
962
963 2003-04-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
964
965         * mule-charset.c (Qmap_gb2312): Renamed from `Qchinese_gb2312'.
966         (syms_of_mule_charset): Add new symbol `=gb2312' instead of
967         `chinese-gb2312'.
968         (complex_vars_of_mule_charset): Rename `chinese-gb2312' to
969         `=gb2312'.
970
971 2003-04-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
972
973         * mule-charset.c (Qmap_big5): Renamed from `Qchinese_big5'.
974         (syms_of_mule_charset): Add new symbol `=big5' instead of
975         `chinese-big5'.
976         (complex_vars_of_mule_charset): Rename `chinese-big5' to `=big5'.
977
978 2003-04-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
979
980         * mule-charset.c (Qmap_ks_x1001): Renamed from `Qkorean_ksc5601'.
981         (syms_of_mule_charset): Add new symbol `=ks-x1001' instead of
982         `korean-ksc5601'.
983         (complex_vars_of_mule_charset): Rename `korean-ksc5601' to
984         `=ks-x1001'.
985
986 2003-04-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
987
988         * mule-charset.c (Qmap_jis_x0212): Renamed from
989         `Qjapanese_jisx0212'.
990         (syms_of_mule_charset): Add new symbol `=jis-x0212' instead of
991         `japanese-jisx0212'.
992         (complex_vars_of_mule_charset): Rename `japanese-jisx0212' to
993         `=jis-x0212'.
994
995 2003-04-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
996
997         * mule-charset.c (Qmap_jis_x0208_1983): Renamed from
998         `Qjapanese_jisx0208'.
999         (syms_of_mule_charset): Add new symbol `=jis-x0208-1983' instead
1000         of `japanese-jisx0208'.
1001         (complex_vars_of_mule_charset): Rename `japanese-jisx0208' to
1002         `=jis-x0208-1983'.
1003
1004 2003-04-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1005
1006         * mule-charset.c (Qmap_jis_x0208_1978): Renamed from
1007         `Qjapanese_jisx0208_1978'.
1008         (syms_of_mule_charset): Add new symbol `=jis-x0208-1978' instead
1009         of `japanese-jisx0208-1978'.
1010         (complex_vars_of_mule_charset): Rename `japanese-jisx0208-1978' to
1011         `=jis-x0208-1978'.
1012
1013 2003-04-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1014
1015         * chartab.c (decode_char_table_range): CHARTAB_RANGE_DEFAULT is
1016         only for XEmacs CHISE.
1017
1018 2003-04-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1019
1020         * char-ucs.h: Compact non-ISO-IR charset-ids.
1021         (LEADING_BYTE_UCS): Changed to -177.
1022         (LEADING_BYTE_CONTROL_1): Changed to -77.
1023         (LEADING_BYTE_UCS_BMP): Changed to -176.
1024         (LEADING_BYTE_JAPANESE_JISX0208_1990): Changed to -168.
1025
1026 2003-04-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1027
1028         * mule-charset.c (Qiso_ir): New variable.
1029         (Fmake_charset): Recognise new property `iso-ir'.
1030         (syms_of_mule_charset): Add new symbol `iso-ir'.
1031
1032 2003-04-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1033
1034         * char-ucs.h: Change charset-id of ISO-IR sets from ISO-IR-number
1035         n to -n; charset-id of non ISO-IR sets are changed to positive
1036         numbers.
1037
1038 2003-03-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1039
1040         * text-coding.c (decode_add_er_char): Use XUINT instead of XINT
1041         for &MCS-XXXXXXXX; values.
1042
1043 2003-03-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1044
1045         * mule.c (Vxemacs_chise_version): Renamed from
1046         `Vutf_2000_version'.
1047         (vars_of_mule): Add new variable `xemacs-chise-version'; define
1048         `utf-2000-version' as an alias for `xemacs-chise-version'.
1049
1050 2003-03-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1051
1052         * mule-charset.c: Include <chise.h> when `CHISE' is defined.
1053         (load_char_decoding_entry_maybe): Use libchise when `CHISE' is
1054         defined.
1055
1056         * config.h.in (CHISE): New macro.
1057
1058 2003-03-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1059
1060         * mule-charset.c (put_char_ccs_code_point): Refer `=ucs' instead
1061         of `ucs'.
1062         (Qmap_ucs): New variable.
1063         (syms_of_mule_charset): Add new symbol `=ucs'.
1064         (complex_vars_of_mule_charset): Rename `ucs' to `=ucs'.
1065
1066         * fns.c (ids_format_unit): Refer `=ucs' instead of `ucs'.
1067         (simplify_char_spec): Likewise.
1068
1069         * chartab.c (Fdefine_char): Refer `=ucs' as same as `ucs'.
1070
1071         * char-ucs.h (Qmap_ucs): New extern variable.
1072
1073 2003-03-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1074
1075         * mule-charset.c (Qmap_jis_x0208): Renamed from `Qjis_x0208'.
1076         (Qmap_jis_x0208_1990): Renamed from `Qjapanese_jisx0208_1990';
1077         don't define it when UTF2000 is not defined.
1078         (syms_of_mule_charset): Modify for `Qmap_jis_x0208'; rename
1079         `japanese-jisx0208-1990' to `=jis-x0208-1990'; don't define it
1080         when UTF2000 is not defined.
1081         (complex_vars_of_mule_charset): Modify for `Qmap_jis_x0208';
1082         rename `japanese-jisx0208-1990' to `=jis-x0208-1990'.
1083
1084 2003-03-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1085
1086         * char-ucs.h (LEADING_BYTE_UCS_GB): Deleted.
1087
1088         * mule-charset.c (Vcharset_ucs_gb): Deleted.
1089         (Qucs_gb): Deleted.
1090         (syms_of_mule_charset): Delete `ucs-gb'.
1091         (complex_vars_of_mule_charset): Likewise.
1092
1093 2003-03-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1094
1095         * char-ucs.h (LEADING_BYTE_UCS_CNS): Deleted.
1096
1097         * mule-charset.c (Vcharset_ucs_cns): Deleted.
1098         (Qucs_cns): Deleted.
1099         (syms_of_mule_charset): Delete `ucs-cns'.
1100         (complex_vars_of_mule_charset): Likewise.
1101
1102 2003-03-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1103
1104         * char-ucs.h (LEADING_BYTE_UCS_JIS): Deleted.
1105
1106         * mule-charset.c (Vcharset_ucs_jis): Deleted.
1107         (Qucs_jis): Deleted.
1108         (syms_of_mule_charset): Delete `ucs-jis'.
1109         (complex_vars_of_mule_charset): Likewise.
1110
1111 2003-03-02  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1112
1113         * char-ucs.h (LEADING_BYTE_UCS_KS): Deleted.
1114
1115         * mule-charset.c (Vcharset_ucs_ks): Deleted.
1116         (Qucs_ks): Deleted.
1117         (syms_of_mule_charset): Delete `ucs-ks'.
1118         (complex_vars_of_mule_charset): Likewise.
1119
1120 2003-03-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1121
1122         * mule-charset.c (Vcharset_ideograph_daikanwa_2): Deleted.
1123         (Qideograph_daikanwa_2): Deleted.
1124         (syms_of_mule_charset): Delete `ideograph-daikanwa-2'.
1125         (complex_vars_of_mule_charset): Likewise.
1126
1127         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): Deleted.
1128         (LEADING_BYTE_DAIKANWA_1): Deleted.
1129         (LEADING_BYTE_DAIKANWA_2): Deleted.
1130         (MIN_CHAR_DAIKANWA): Deleted.
1131         (MAX_CHAR_DAIKANWA): Deleted.
1132
1133 2003-02-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1134
1135         * char-ucs.h (LEADING_BYTE_DAIKANWA_3): Deleted.
1136         (LEADING_BYTE_HANZIKU_{1..12}): Deleted.
1137         ({MIN|MAX}_CHAR_HANZIKU_{1..12}): Deleted.
1138
1139         * mule-charset.c (Vcharset_ideograph_hanziku_{1..12}): Deleted.
1140         (Vcharset_ideograph_daikanwa): Deleted.
1141         (Qideograph_hanziku_{1..12}): Deleted.
1142         (Qideograph_daikanwa): Deleted.
1143         (encode_builtin_char_1): Don't use {MIN|MAX}_CHAR_DAIKANWA and
1144         Vcharset_ideograph_daikanwa.
1145         (syms_of_mule_charset): Delete `ideograph-daikanwa' and
1146         `ideograph-hanziku-{1..12}'.
1147         (complex_vars_of_mule_charset): Likewise.
1148
1149 2003-02-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1150
1151         * char-ucs.h (LEADING_BYTE_GT_PJ_{1..11}): Deleted.
1152
1153         * mule-charset.c (Vcharset_ideograph_gt_pj_{1..11}): Deleted.
1154         (Qideograph_gt_pj_{1..11}): Deleted.
1155         (syms_of_mule_charset): Delete `ideograph-gt-pj-{1..11}'.
1156         (complex_vars_of_mule_charset): Likewise.
1157
1158 2003-02-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1159
1160         * mule-charset.c (Vcharset_ucs_big5): Deleted.
1161         (Vcharset_ideograph_gt): Deleted.
1162         (Qucs_big5): Deleted.
1163         (Qideograph_gt): Deleted.
1164         (syms_of_mule_charset): Delete symbol `ucs-big5' and
1165         `ideograph-gt'.
1166         (complex_vars_of_mule_charset): Delete coded-charset `ucs-big5'
1167         and `ideograph-gt'.
1168
1169         * char-ucs.h (LEADING_BYTE_UCS_BIG5): Deleted.
1170         (LEADING_BYTE_GT): Deleted.
1171         (MIN_CHAR_GT): Deleted.
1172         (MAX_CHAR_GT): Deleted.
1173
1174 2003-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1175
1176         * chartab.c (Fput_char_attribute): Canonicalise charset-aliases.
1177
1178 2003-01-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1179
1180         * chartab.c (save_uint8_byte_table): Add new argument `filter'.
1181         (save_uint16_byte_table): Likewise.
1182         (save_byte_table): Likewise; convert values by it.
1183         (Fput_char_attribute): Don't use `char-refs-simplify-char-specs'
1184         for `ideographic-structure'.
1185         (Fsave_char_attribute_table): Use `char-refs-simplify-char-specs'
1186         as the filter for `ideographic-structure'.
1187
1188 2003-01-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1189
1190         * chartab.c (put_char_composition): New function.
1191         (Fput_char_attribute): Use `put_char_composition'; use
1192         `Fchar_refs_simplify_char_specs' for `ideographic-structure'.
1193
1194         * fns.c (simplify_char_spec): New function.
1195         (char_ref_simplify_spec): New function.
1196         (Fchar_refs_simplify_char_specs): New function.
1197         (syms_of_fns): Add new builtin function
1198         `char-refs-simplify-char-specs'.
1199
1200 2003-01-05  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1201
1202         * mule-charset.c (Vcharset_ideograph_cbeta): Deleted.
1203         (Qideograph_cbeta): Deleted.
1204         (syms_of_mule_charset): Don't define `ideograph-cbeta'.
1205         (complex_vars_of_mule_charset): Likewise.
1206
1207         * char-ucs.h (LEADING_BYTE_CBETA): Deleted.
1208         (MIN_CHAR_CBETA): Comment out.
1209         (MAX_CHAR_CBETA): Likewise.
1210
1211 2002-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1212
1213         * mule-charset.c, chartab.h, casetab.c, char-ucs.h, chartab.c: Use
1214         `HAVE_CHISE_CLIENT' instead of `HAVE_DATABASE' to indicate the
1215         CHISE client feature.
1216
1217 2002-12-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1218
1219         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.20.
1220
1221 2002-12-19  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1222
1223         * mule-charset.c (charset_lookup_description_1): Use
1224         `NUM_LEADING_BYTES' in UTF-2000.
1225
1226 2002-12-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1227
1228         * char-ucs.h (GC_CHARSETP): Deleted.
1229
1230 2002-12-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1231
1232         * char-ucs.h (MAX_CHAR_GT): Updated.
1233
1234 2002-12-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1235
1236         * text-coding.c: Sync with XEmacs 21.4.10.
1237
1238 2002-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1239
1240         * mule-charset.c (Vcharset_china3_jef): Deleted.
1241         (Qchina3_jef): Deleted.
1242         (syms_of_mule_charset): Don't define `china3-jef'.
1243         (complex_vars_of_mule_charset): Likewise.
1244
1245         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Deleted.
1246         (MIN_CHAR_CHINA3_JEF): Comment out.
1247         (MAX_CHAR_CHINA3_JEF): Comment out.
1248
1249 2002-11-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1250
1251         * mule-charset.c (Vcharset_ucs_gb): New variable.
1252         (Qucs_gb): New variable.
1253         (syms_of_mule_charset): Add new symbol `ucs-gb'.
1254         (complex_vars_of_mule_charset): Add new coded-charset `ucs-gb'.
1255
1256         * char-ucs.h (LEADING_BYTE_UCS_GB): New macro.
1257
1258 2002-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1259
1260         * mule-charset.c (charset_code_point): if a coded-charset has a
1261         final-byte, don't inherit the builtin range of the mother CCS.
1262
1263 2002-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1264
1265         * mule-charset.c (charset_code_point): Fix problem about
1266         inheritance.
1267
1268 2002-11-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1269
1270         * mule-charset.c (decode_builtin_char): Reorganized.
1271
1272 2002-10-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1273
1274         * text-coding.c (char_encode_as_entity_reference): Modify for
1275         `charset_code_point'.
1276         (char_encode_shift_jis): Likewise.
1277         (char_encode_big5): Likewise.
1278         (char_encode_utf8): Likewise.
1279         (char_encode_iso2022): Likewise.
1280
1281         * mule-charset.c (charset_code_point): Add new argument
1282         `defined_only'.
1283         (Fencode_char): Add new optional argument `defined_only'.
1284
1285         * chartab.c (put_char_table): Modify for `charset_code_point'.
1286
1287         * char-ucs.h (charset_code_point): Add new argument
1288         `defined_only'.
1289         (encode_char_1): Modify for `charset_code_point'.
1290
1291 2002-10-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1292
1293         * mule-charset.c (complex_vars_of_mule_charset): Don't specify
1294         `MIN_CHAR_THAI' and `MAX_CHAR_THAI' for `thai-tis620'.
1295
1296 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1297
1298         * mule-charset.c (Vcharset_jis_x0208): New variable in UTF-2000.
1299         (Qjis_x0208): Likewise.
1300         (decode_builtin_char): Prefer XCHARSET_MAX_CODE(charset) than
1301         XCHARSET_FINAL(charset).
1302         (charset_code_point): Modify condition for final-byte based
1303         builtin-chars.
1304         (syms_of_mule_charset): Add new symbol `=jis-x0208' in UTF-2000.
1305         (complex_vars_of_mule_charset): Add new coded-charset `=jis-x0208'
1306         in UTF-2000; specify `=jis-x0208' as the mother of
1307         `japanese-jisx0208-1978', `japanese-jisx0208' and
1308         `japanese-jisx0208-1990' in UTF-2000.
1309
1310 2002-10-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1311
1312         * char-ucs.h (LEADING_BYTE_JIS_X0208): New macro.
1313
1314 2002-10-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1315
1316         * text-coding.c (decode_coding_utf16): Support UTF-16.
1317         (char_encode_utf16): Fixed.
1318
1319 2002-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1320
1321         * text-coding.c (Qutf16): New variable in MULE.
1322         (Fmake_coding_system): Accept `utf-16' as `type' in MULE.
1323         (Fcoding_system_type): Add `utf-16' in MULE.
1324         (struct detection_state): Add a structure for utf16 in MULE.
1325         (detect_coding_type): Setup st->utf16.mask in MULE.
1326         (mule_decode): Use `decode_coding_utf16' for `CODESYS_UTF16' in
1327         MULE.
1328         (reset_encoding_stream): Use `char_encode_utf16' and
1329         `char_finish_utf16' for `CODESYS_UTF16' in MULE.
1330         (detect_coding_utf16): New function [incomplete].
1331         (decode_coding_utf16): New function [support only UCS-2].
1332         (char_encode_utf16): New function.
1333         (char_finish_utf16): New function.
1334         (syms_of_file_coding): Add new symbol `utf-16'; setup
1335         `coding_category_symbol[CODING_CATEGORY_UTF16]'.
1336
1337         * file-coding.h (enum coding_system_type): Add `CODESYS_UTF16' in
1338         UTF-2000.
1339         (enum coding_category_type): Add `CODING_CATEGORY_UTF16' in MULE.
1340         (CODING_CATEGORY_UTF16_MASK): New macro in MULE.
1341
1342 2002-10-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1343
1344         * chartab.c (put_char_table): When a charset is specified as a
1345         range in UTF-2000, don't support builtin characters.
1346
1347 2002-09-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1348
1349         * mule-charset.c (decode_defined_char): Don't refer external
1350         database if Qunbound or Qnil are found.
1351         (Fsave_charset_mapping_table): Don't define it if
1352         HAVE_CHISE_CLIENT is not defined.
1353         (Freset_charset_mapping_table): New function.
1354         (load_char_decoding_entry_maybe): Store Qnil if a character is not
1355         found in external database.
1356         (syms_of_mule_charset): Don't define `save-charset-mapping-table'
1357         if HAVE_CHISE_CLIENT is not defined; add new builtin function
1358         `reset-charset-mapping-table' if HAVE_CHISE_CLIENT is defined.
1359
1360 2002-09-18  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1361
1362         * text-coding.c (decode_coding_utf8): Check CCS is specified or
1363         not.
1364
1365 2002-08-26  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1366
1367         * chartab.h: Add extern declarations for Qdowncase, Qflippedcase,
1368         Q_lowercase, Q_uppercase in UTF-2000.
1369
1370         * chartab.c (get_char_table): Add special code for the standard
1371         case table to use character attribute `->downcase' and
1372         `->uppercase' for case operations in UTF-2000.
1373
1374         * casetab.c (Qflippedcase): New variable in UTF-2000.
1375         (Q_lowercase): Likewise.
1376         (Q_uppercase): Likewise.
1377         (syms_of_casetab): Add new symbols `flippedcase', `->lowercase'
1378         and `->uppercase' in UTF-2000.
1379         (complex_vars_of_casetab): Assign attribute name `downcase' to
1380         downcase and CANON table of Vstandard_case_table in UTF-2000;
1381         assign attribute name `flippedcase' to upcase and EQV table of
1382         Vstandard_case_table in UTF-2000.
1383
1384 2002-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1385
1386         * text-coding.c (decode_add_er_char): Support isolated-chars.
1387         (char_encode_as_entity_reference): Likewise.
1388
1389 2002-08-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1390
1391         * emacs.c (Vutf_2000_lisp_directory): New variable.
1392         (Vconfigure_utf_2000_lisp_directory): Likewise.
1393         (complex_vars_of_emacs): Add new variable
1394         `utf-2000-lisp-directory' and `configure-utf-2000-lisp-directory'.
1395
1396 2002-08-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1397
1398         * char-ucs.h (DECODE_CHAR): Delete special code for
1399         `chinese-big5-1' and `chinese-big5-2'.
1400
1401         * mule-charset.c (Qbig5_1): New variable in UTF-2000.
1402         (Qbig5_2): Likewise.
1403         (decode_defined_char): Support CONVERSION_BIG5_1 and
1404         CONVERSION_BIG5_2.
1405         (decode_builtin_char): Likewise.
1406         (charset_code_point): Likewise.
1407         (Fmake_charset): Accept `big5-1' and `big5-2' as a value of
1408         'conversion in UTF-2000.
1409         (syms_of_mule_charset): Add new symbol `big5-1' and `big5-2'.
1410         (complex_vars_of_mule_charset): Define `chinese-big5-1' and
1411         `chinese-big5-2' as children of `chinese-big5'.
1412
1413         * char-ucs.h (CONVERSION_BIG5_1): New macro.
1414         (CONVERSION_BIG5_2): New macro.
1415
1416 2002-08-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1417
1418         * text-coding.c (char_encode_big5): Support entity-reference.
1419
1420 2002-08-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1421
1422         * text-coding.c (char_encode_as_entity_reference): New function.
1423         (char_encode_utf8): Use `char_encode_as_entity_reference'.
1424
1425 2002-08-09  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1426
1427         * text-coding.c (decode_coding_big5): Support entity-reference
1428         decoding feature.
1429
1430 2002-08-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1431
1432         * text-coding.c (allocate_coding_system): Initialize initial
1433         charsets for CODESYS_UTF8.
1434         (Fmake_coding_system): Accept charset-g0, charset-g1 and
1435         charset-g2 for CODESYS_UTF8.
1436         (decode_coding_utf8): Use charset-g0.
1437         (char_encode_utf8): Use charset-g0; use charset-g1 and charset-g2
1438         to force variants to map to UCS.
1439
1440 2002-07-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1441
1442         * text-coding.c (Qutf_8_mcs): New variable.
1443         (syms_of_file_coding): Add new symbol `utf-8-mcs' in UTF-2000.
1444         (complex_vars_of_file_coding): Define coding-system `utf-8-mcs'
1445         instead of `utf-8' in UTF-2000.
1446
1447 2002-07-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1448
1449         * mule-charset.c (charset_code_point): If CHARSET_CONVERSION is
1450         CONVERSION_IDENTICAL, identical conversion is used even if a CCS
1451         is ISO-2022 style; instead of it, CONVERSION_94, CONVERSION_96,
1452         CONVERSION_94x94, CONVERSION_96x96, CONVERSION_94x94x94,
1453         CONVERSION_96x96x96, CONVERSION_94x94x94x94 and
1454         CONVERSION_96x96x96x96 are introduced.
1455         (complex_vars_of_mule_charset): Specify CONVERSION_96 instead of
1456         CONVERSION_IDENTICAL for thai-tis620; Specify CONVERSION_94x94
1457         instead of CONVERSION_IDENTICAL for japanese-jisx0208-1990.
1458
1459         * char-ucs.h (CONVERSION_94): New macro.
1460         (CONVERSION_96): New macro.
1461         (CONVERSION_94x94): New macro.
1462         (CONVERSION_96x96): New macro.
1463         (CONVERSION_94x94x94): New macro.
1464         (CONVERSION_96x96x96): New macro.
1465         (CONVERSION_94x94x94x60): New macro.
1466         (CONVERSION_94x94x94x94): New macro.
1467         (CONVERSION_96x96x96x96): New macro.
1468
1469 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1470
1471         * chartab.c (Vcharacter_variant_table): Deleted.
1472         (Fchar_variants): Use character-attribute `->ucs-variants' instead
1473         of `Vcharacter_variant_table'.
1474         (Fput_char_attribute): Likewise.
1475         (vars_of_chartab): Don't setup `Vcharacter_variant_table'.
1476         (complex_vars_of_chartab): Likewise.
1477
1478 2002-07-17  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1479
1480         * lisp.h: Add an EXFUN for `Fchar_ref_p'.
1481
1482         * fns.c (Qideographic_structure): New variable.
1483         (Qkeyword_char): New variable.
1484         (ids_format_unit): New function.
1485         (Fideographic_structure_to_ids): New function.
1486         (syms_of_fns): Add new symbols `ideographic-structure' and
1487         `:char'; add new builtin function `ideographic-structure-to-ids'.
1488
1489         * data.c (Fchar_ref_p): New function.
1490         (syms_of_data): Add new builtin function `char-ref-p'.
1491
1492         * chartab.h: Add an EXFUN for `Ffind_char'.
1493
1494 2002-07-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1495
1496         * text-coding.c (Vcharacter_composition_table): Deleted.
1497         (COMPOSE_ADD_CHAR): Use the implementation for external-DB support
1498         in every UTF-2000.
1499
1500         * chartab.c: Add EXFUN for `Fmap_char_attribute' in every
1501         UTF-2000.
1502         (Vcharacter_composition_table): Deleted.
1503         (Fget_composite_char): Use the implementation for external-DB
1504         support in every UTF-2000.
1505         (Fput_char_attribute): Likewise.
1506         (char_attribute_system_db_file): Don't define if external-DB
1507         feature is not available.
1508         (Fsave_char_attribute_table): Likewise.
1509         (Fmount_char_attribute_table): Likewise.
1510         (Fclose_char_attribute_table): Likewise.
1511         (Freset_char_attribute_table): Likewise.
1512         (Fload_char_attribute_table): Likewise.
1513         (syms_of_chartab): Don't define `save-char-attribute-table',
1514         `mount-char-attribute-table', `reset-char-attribute-table',
1515         `close-char-attribute-table' and `load-char-attribute-table' if
1516         external-DB feature is not available.
1517         (vars_of_chartab): Don't setup `Vcharacter_composition_table'.
1518
1519 2002-07-15  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1520
1521         * text-coding.c (Qcomposition): Add extern if external-DB feature
1522         is supported.
1523         (Vcharacter_composition_table): Don't add extern if external-DB
1524         feature is supported.
1525         (COMPOSE_ADD_CHAR): Modify for new data-representation of
1526         character composition rule if external-DB feature is supported.
1527
1528         * chartab.c (Vcharacter_composition_table): Don't define if
1529         external-DB feature is supported.
1530         (Qcomposition): New variable.
1531         (Fget_composite_char): New implementation for external-DB support.
1532         (Fput_char_attribute): Use `composition' property of each
1533         character instead of `Vcharacter_composition_table' to store
1534         character-composition rules if external-DB feature is supported.
1535         (syms_of_chartab): Add new symbol `composition'.
1536         (vars_of_chartab): Don't setup `Vcharacter_composition_table' if
1537         external-DB feature is supported.
1538
1539 2002-07-14  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1540
1541         * chartab.c (Vchar_db_stingy_mode): New variable.
1542         (load_char_attribute_maybe): Close database if
1543         Vchar_db_stingy_mode is not NIL.
1544         (Fload_char_attribute_table_map_function): Use
1545         `get_char_id_table_0' instead of `get_char_id_table'.
1546         (vars_of_chartab): Add new variable `char-db-stingy-mode'.
1547
1548         * chartab.h (get_char_id_table_0): New inline function.
1549         (get_char_id_table): Use `get_char_id_table_0'.
1550
1551 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1552
1553         * text-coding.c (decode_coding_utf8): Use `COMPOSE_FLUSH_CHARS'
1554         and `COMPOSE_ADD_CHAR'.
1555         (decode_coding_iso2022): Use `decode_flush_er_chars'.
1556
1557 2002-07-07  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1558
1559         * text-coding.c (COMPOSE_FLUSH_CHARS): Use `decode_add_er_char'
1560         instead of `DECODE_ADD_UCS_CHAR'.
1561         (COMPOSE_ADD_CHAR): Likewise.
1562
1563 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1564
1565         * text-coding.c (decode_flush_er_chars): New inline function.
1566         (decode_add_er_char): New function.
1567         (decode_coding_utf8): Use `decode_flush_er_chars' and
1568         `decode_add_er_char'.
1569
1570 2002-07-06  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1571
1572         * text-coding.c (decode_coding_utf8): Flush for er_buf must be
1573         done before `decode_output_utf8_partial_char'.
1574
1575         * mule-charset.c (complex_vars_of_mule_charset): Specify
1576         `Vcharset_ucs' as the mother of `Vcharset_ucs_cns',
1577         `Vcharset_ucs_ks' and `Vcharset_ucs_big5'.
1578
1579 2002-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1580
1581         * mule-charset.c (decode_defined_char): New function; search
1582         mother.
1583         (decode_builtin_char): Don't search mother if
1584         XCHARSET_MAX_CODE(charset) == 0.
1585         (charset_code_point): Search mother if XCHARSET_MAX_CODE(charset)
1586         == 0 even if code >= XCHARSET_MAX_CODE(charset).
1587         (Fdecode_char): Use `decode_defined_char' instead of
1588         `DECODE_DEFINED_CHAR'.
1589         (complex_vars_of_mule_charset): Specify `Vcharset_ucs' as the
1590         mother of `Vcharset_ucs_jis'.
1591
1592         * text-coding.c (decode_coding_big5): Use `decode_defined_char'
1593         instead of `DECODE_DEFINED_CHAR'.
1594
1595         * char-ucs.h (decode_defined_char): Renamed from
1596         `DECODE_DEFINED_CHAR'; changed to normal function.
1597         (DECODE_CHAR): Use `decode_defined_char' instead of
1598         `DECODE_DEFINED_CHAR'.
1599
1600         * lisp.h: Add `EXFUN' for `Fstring_to_number'.
1601
1602 2002-07-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1603
1604         * char-ucs.h: Add `extern' for `Vcharset_ucs'.
1605
1606         * text-coding.c (Vcoded_charset_entity_reference_alist): New
1607         variable.
1608         (Quse_entity_reference): New variable.
1609         (Qd): New variable.
1610         (Qx): New variable.
1611         (QX): New variable.
1612         (coding_system_description): Add description for
1613         `ccs_priority_list'.
1614         (mark_coding_system): Mark `ccs_priority_list' in UTF-2000.
1615         (allocate_coding_system): Initialize `ccs_priority_list' in
1616         UTF-2000.
1617         (Fmake_coding_system): Add description about
1618         'use-entity-reference; setup CODING_SYSTEM_USE_ENTITY_REFERENCE
1619         (codesys).
1620         (Fcoding_system_property): Accept `disable-composition' and
1621         `use-entity-reference' in UTF-2000.
1622         (struct decoding_stream): Add new member `er_counter' and `er_buf'
1623         in UTF-2000.
1624         (reset_decoding_stream): Initialize `str->er_counter' in UTF-2000.
1625         (decode_coding_utf8): Decode entity-reference if
1626         CODING_SYSTEM_USE_ENTITY_REFERENCE (str->codesys).
1627         (char_encode_utf8): Encode non-Unicode characters as
1628         entity-references if CODING_SYSTEM_USE_ENTITY_REFERENCE
1629         (str->codesys).
1630         (syms_of_file_coding): Add new symbols `use-entity-reference',
1631         `d', `x', `X'.
1632         (vars_of_file_coding): Add new variable
1633         `coded-charset-entity-reference-alist'.
1634         (complex_vars_of_file_coding): Declare `disable-composition' and
1635         `use-entity-reference' to be coding-system-properties in UTF-2000.
1636
1637         * file-coding.h (struct Lisp_Coding_System): Add new member
1638         `use_entity_reference' and `ccs_priority_list'.
1639         (CODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1640         (CODING_SYSTEM_CCS_PRIORITY_LIST): New macro.
1641         (XCODING_SYSTEM_USE_ENTITY_REFERENCE): New macro.
1642
1643 2002-07-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1644
1645         * chartab.c (save_uint8_byte_table): Don't clear the table.
1646         (save_uint16_byte_table): Likewise.
1647         (save_byte_table): Likewise.
1648         (Fmount_char_attribute_table): New function.
1649         (syms_of_chartab): Add new builtin function
1650         `mount-char-attribute-table'.
1651
1652 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1653
1654         * mule-charset.c (Fsave_charset_mapping_table): Open database as
1655         "w+" mode.
1656         (load_char_decoding_entry_maybe): Open database as read-only mode.
1657
1658         * chartab.c (Fsave_char_attribute_table): Don't share `ct->db';
1659         open database as "w+" mode.
1660         (load_char_attribute_maybe): Open database as read-only mode.
1661         (Fload_char_attribute_table): Likewise.
1662
1663 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1664
1665         * chartab.c (mark_char_table): Don't refer `ct->db_file'.
1666         (char_table_description): Delete member `db_file'.
1667         (Fmake_char_table): Don't refer `ct->db_file'.
1668         (Fcopy_char_table): Likewise.
1669         (Fsave_char_attribute_table): Likewise.
1670         (Fclose_char_attribute_table): Likewise.
1671         (Freset_char_attribute_table): Likewise.
1672         (load_char_attribute_maybe): Likewise.
1673         (Fload_char_attribute_table): Likewise.
1674
1675         * chartab.h (struct Lisp_Char_Table): Delete member `db_file'.
1676
1677 2002-07-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1678
1679         * chartab.c: Add an EXFUN for `Fmap_char_attribute'.
1680         (Fsave_char_attribute_table): Don't check `ct->db_file' if
1681         `ct->db' is living.
1682         (load_char_attribute_maybe): Likewise.
1683         (Fload_char_attribute_table): Likewise.
1684
1685 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1686
1687         * chartab.c (Fclose_char_attribute_table): Set Qnil on
1688         `ct->db_file' unconditionally.
1689
1690 2002-07-01  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1691
1692         * chartab.c (mark_char_table): Mark `ct->db_file' and `ct->db' in
1693         UTF-2000.
1694         (char_table_description): Add description for `db_file' and `db'
1695         in UTF-2000.
1696         (Fmake_char_table): Initialize `ct->db_file' and `ct->db' in
1697         UTF-2000.
1698         (Fcopy_char_table): Copy `ct->db_file' and `ct->db' in UTF-2000.
1699         (Fsave_char_attribute_table): Use `ct->db_file' and `ct->db'.
1700         (Fclose_char_attribute_table): New function.
1701         (Freset_char_attribute_table): Reset `ct->db_file' and `ct->db'.
1702         (load_char_attribute_maybe): Change interface; use `cit->db_file'
1703         and `cit->db'.
1704         (Fload_char_attribute_table): Use `ct->db_file' and `ct->db'.
1705         (syms_of_chartab): Add new builtin function
1706         `Fclose_char_attribute_table'.
1707
1708 2002-06-28  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1709
1710         * chartab.h (struct Lisp_Char_Table): Add new member `db_file' and
1711         `db' in UTF-2000.
1712         (load_char_attribute_maybe): Change interface.
1713         (get_char_id_table): Modify for `load_char_attribute_maybe'.
1714
1715 2002-06-27  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1716
1717         * database.h: Add an EXFUN for `Fdatabase_live_p'.
1718
1719 2002-04-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1720
1721         * mule-charset.c (decode_builtin_char): Use `decode_builtin_char'
1722         instead of `DECODE_CHAR' for mother; don't use special code for
1723         chinese-big5 to use code space of chinese-big5-1 and
1724         chinese-big5-2.
1725         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' and
1726         `MAX_CHAR_BIG5_CDP' for chinese-big5.
1727
1728         * char-ucs.h (MIN_CHAR_BIG5_CDP): Revival.
1729         (MAX_CHAR_BIG5_CDP): Revival.
1730
1731 2002-04-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1732
1733         * mule-charset.c (complex_vars_of_mule_charset): Use "big5-0" as
1734         the XLFD registry-encoding name of `chinese-big5'.
1735
1736 2002-04-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1737
1738         * mule-charset.c (Vcharset_chinese_big5_cdp): Deleted.
1739         (Qchinese_big5_cdp): Deleted.
1740         (syms_of_mule_charset): Delete symbol `chinese-big5-cdp'.
1741         (complex_vars_of_mule_charset): Delete coded-charset
1742         `chinese-big5-cdp'.
1743
1744         * char-ucs.h (CHARSET_ID_OFFSET): Deleted.
1745         (LEADING_BYTE_*): Use `MIN_LEADING_BYTE + n' instead of
1746         `CHARSET_ID_OFFSET - n' for private CCS.
1747         (LEADING_BYTE_CHINESE_BIG5_CDP): Deleted.
1748         (MIN_LEADING_BYTE_PRIVATE): Use `(MIN_LEADING_BYTE + 97)' instead
1749         of `MIN_LEADING_BYTE'.
1750         (MAX_LEADING_BYTE_PRIVATE): Use `-1' instead of
1751         `(CHARSET_ID_OFFSET - 97)'.
1752         (MIN_CHAR_BIG5_CDP): Deleted.
1753         (MAX_CHAR_BIG5_CDP): Deleted.
1754
1755 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1756
1757         * mule.c (vars_of_mule): Update `utf-2000-version' to 0.19.
1758
1759 2002-03-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1760
1761         * mule.c (Vutf_2000_version): New variable [moved from chartab.c].
1762         (vars_of_mule): Add new variable `utf-2000-version' [moved from
1763         chartab.c].
1764
1765         * chartab.c (Vutf_2000_version): Moved to mule.c.
1766         (vars_of_chartab): Move code about `utf-2000-version' into mule.c.
1767
1768 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1769
1770         * mule-charset.c (load_char_decoding_entry_maybe): Don't define it
1771         when HAVE_CHISE_CLIENT is not defined.
1772
1773         * mule.c (vars_of_mule): Provide feature `chise' when
1774         HAVE_CHISE_CLIENT is defined.
1775
1776 2002-03-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1777
1778         * config.h.in (UTF2000): Add comment.
1779         (HAVE_CHISE_CLIENT): New macro.
1780
1781 2002-02-25  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1782
1783         * chartab.c (Fchar_variants): Check Vcharacter_variant_table is
1784         CONSP.
1785         (Fput_char_attribute): Likewise.
1786         (char_attribute_system_db_file): Encode file-name of attribute.
1787         (vars_of_chartab): Set Qunbound into Vcharacter_variant_table as
1788         the initial value.
1789
1790 2002-02-13  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1791
1792         * mule-charset.c (put_char_ccs_code_point): Delete unused codes.
1793         (Fsave_charset_mapping_table): Use
1794         `char_attribute_system_db_file'.
1795         (load_char_decoding_entry_maybe): Likewise.
1796
1797         * chartab.h (Qsystem_char_id): New external variable.
1798         (char_attribute_system_db_file): New prototype.
1799
1800         * chartab.c (Qsystem_char_id): New variable in UTF-2000.
1801         (char_attribute_system_db_file): New function.
1802         (Fsave_char_attribute_table): Use `char_attribute_system_db_file'.
1803         (Freset_char_attribute_table): Likewise.
1804         (load_char_attribute_maybe): Likewise.
1805         (Fload_char_attribute_table): Likewise.
1806         (syms_of_chartab): Add new symbol `system-char-id'.
1807
1808 2002-02-12  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1809
1810         * char-ucs.h (DECODE_DEFINED_CHAR): Don't check
1811         `XCHARSET_GRAPHIC(ccs)'.
1812
1813 2002-02-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1814
1815         * mule-charset.c (Fsave_charset_mapping_table): Fixed.
1816
1817 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1818
1819         * chartab.c (Q_ucs_variants): New variable.
1820         (syms_of_chartab): Add new symbol `->ucs-variants'.
1821         (complex_vars_of_chartab): Set `Vcharacter_variant_table' on
1822         `Vchar_attribute_hash_table' as the value of `->ucs-variants'; set
1823         `->ucs-variants' on `XCHAR_TABLE_NAME (Vcharacter_variant_table)'.
1824
1825         * mule-charset.c (load_char_decoding_entry_maybe): New function.
1826
1827         * char-ucs.h (load_char_decoding_entry_maybe): New prototype when
1828         `HAVE_DATABASE' is defined.
1829         (DECODE_DEFINED_CHAR): Use `load_char_decoding_entry_maybe' when
1830         `HAVE_DATABASE' is defined.
1831
1832 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1833
1834         * chartab.c (Fsave_char_attribute_table): Don't clear internal
1835         attribute-table.
1836         (Freset_char_attribute_table): New function.
1837         (syms_of_chartab): Add new builtin function
1838         `reset-char-attribute-table'.
1839
1840 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1841
1842         * chartab.c (load_char_attribute_maybe): Don't make directories.
1843
1844 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1845
1846         * char-ucs.h: Add EXFUN for `Fmake_directory_internal'.
1847
1848         * mule-charset.c (put_char_ccs_code_point): Don't prepare a vector
1849         for decoding-table.
1850
1851 2002-02-11  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1852
1853         * mule-charset.c (Fsave_charset_mapping_table): Use
1854         `XCHARSET_BYTE_SIZE' instead of `XCHARSET_CHARS'.
1855
1856         * char-ucs.h (put_ccs_octet_table): Use `XCHARSET_BYTE_SIZE'
1857         instead of `XCHARSET_CHARS'.
1858
1859 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1860
1861         * mule-charset.c (CHARSET_BYTE_SIZE): Moved to char-ucs.h.
1862         (XCHARSET_BYTE_SIZE): Likewise.
1863
1864         * char-ucs.h (CHARSET_BYTE_SIZE): New inline function [moved from
1865         mule-charset.c].
1866         (XCHARSET_BYTE_SIZE): Likewise.
1867
1868 2002-02-10  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1869
1870         * chartab.c (Fput_char_attribute): Use exec-directory instead of
1871         data-directory to store database.
1872         (Fsave_char_attribute_table): Likewise.
1873         (load_char_attribute_maybe): Likewise.
1874         (Fload_char_attribute_table): Likewise.
1875
1876 2002-02-08  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1877
1878         * mule-charset.c (Fsave_charset_mapping_table): New function.
1879         (syms_of_mule_charset): Add new builtin function
1880         `save-charset-mapping-table'.
1881
1882 2002-02-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1883
1884         * char-ucs.h (decoding_table_check_elements): Delete prototype.
1885         (get_ccs_octet_table): New inline function.
1886         (put_ccs_octet_table): Likewise.
1887         (decoding_table_put_char): Use `get_ccs_octet_table' and
1888         `put_ccs_octet_table'.
1889         (decoding_table_remove_char): Use `decoding_table_put_char'.
1890         (DECODE_DEFINED_CHAR): Use `get_ccs_octet_table'.
1891
1892         * mule-charset.c (remove_char_ccs): Store Qunbound instead of Qnil
1893         into encoding_table.
1894         (make_charset): Use Qunbound instead Qnil as initial value of
1895         decoding_table.
1896
1897 2002-02-04  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1898
1899         * chartab.c (map_over_uint8_byte_table): Set Qunbound if an
1900         element is Qunloaded.
1901         (map_over_uint16_byte_table): Likewise.
1902         (map_over_byte_table): Likewise.
1903         (map_char_table): Likewise for CHARTAB_RANGE_ALL in UTF-2000; when
1904         CHARTAB_RANGE_CHARSET is specified in UTF-2000 with external
1905         database support, load encoding-table of the specified
1906         coded-charset if it is not loaded yet.
1907         (save_uint8_byte_table): New function of UTF-2000 with external
1908         database support.
1909         (save_uint16_byte_table): Likewise.
1910         (save_byte_table): Likewise.
1911         (Fput_char_attribute): Don't store value into external database
1912         even if the external database feature is supported in UTF-2000;
1913         set `attribute' as name of char-table if the external database
1914         feature is supported.
1915         (Fsave_char_attribute_table): New function in UTF-2000.
1916         (syms_of_chartab): Add new builtin function
1917         `save-char-attribute-table' in UTF-2000.
1918
1919 2002-02-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1920
1921         * chartab.c (char_attribute_table_to_put): New variable in
1922         UTF-2000.
1923         (Qput_char_table_map_function): Likewise.
1924         (value_to_put): Likewise.
1925         (Fput_char_table_map_function): New function in UTF-2000.
1926         (put_char_table): Use `Fmap_char_attribute' for
1927         CHARTAB_RANGE_CHARSET in UTF-2000.
1928         (Fput_char_attribute): Store symbol instead of string in
1929         `XCHAR_TABLE_NAME (table)'.
1930         (load_char_attribute_maybe): Likewise.
1931         (syms_of_chartab): Add new symbol/function
1932         `put-char-table-map-function'.
1933
1934 2002-01-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1935
1936         * database.h: Add new EXFUN for `Fmap_database'.
1937
1938         * database.c (Fmap_database): Renamed from `Fmapdatabase'.
1939         (syms_of_database): Likewise.
1940
1941         * chartab.h (struct Lisp_Char_Table): Add new member `unloaded' in
1942         UTF-2000.
1943         (CHAR_TABLE_UNLOADED): New macro of UTF-2000.
1944         (XCHAR_TABLE_UNLOADED): Likewise.
1945
1946         * chartab.c (fill_char_table): Initialize `ct->unloaded'.
1947         (Fput_char_attribute): Set XCHAR_TABLE_UNLOADED(table) if
1948         HAVE_DATABASE is defined.
1949         (char_attribute_table_to_load): New variable of UTF-2000 with
1950         external database support.
1951         (Qload_char_attribute_table_map_function): Likewise.
1952         (Fload_char_attribute_table_map_function): New function of
1953         UTF-2000 with external database support.
1954         (Fload_char_attribute_table): New function of UTF-2000.
1955         (Fmap_char_attribute): Call Fload_char_attribute_table if
1956         CHAR_TABLE_UNLOADED(ct) is set when HAVE_DATABASE is defined.
1957         (syms_of_chartab): Add new symbol and function
1958         `load-char-attribute-table-map-function' in UTF-2000 with external
1959         database support; add new function `load-char-attribute-table' in
1960         UTF-2000.
1961
1962 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1963
1964         * chartab.h (load_char_attribute_maybe): New prototype for
1965         UTF-2000 with DATABASE support.
1966         (get_char_id_table): Use `load_char_attribute_maybe' if
1967         HAVE_DATABASE is defined.
1968
1969         * chartab.c (load_char_attribute_maybe): New function in UTF-2000
1970         with DATABASE support.
1971
1972 2002-01-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1973
1974         * chartab.c (Fput_char_attribute): Use S-expression as key of
1975         external database.
1976
1977         * chartab.h (get_char_id_table): Use S-expression as key of
1978         external database.
1979
1980 2002-01-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
1981
1982         * chartab.c (map_over_uint8_byte_table): Add new argument `root';
1983         if an element is not loaded, load the corresponding attributes
1984         from an external database.
1985         (map_over_uint16_byte_table): Likewise.
1986         (map_over_byte_table): Likewise.
1987         (map_char_table): Modify for `map_over_uint8_byte_table',
1988         `map_over_uint16_byte_table' and `map_over_byte_table'; if an
1989         element is not loaded, load the corresponding attributes from an
1990         external database.
1991         (Fput_char_attribute): Change initial values to Qunloaded.
1992
1993         * chartab.h (get_char_id_table): If a character attribute is not
1994         loaded and the attribute value is not found in an external
1995         database, store Qunbound as the attribute value.
1996
1997 2002-01-22  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
1998
1999         * chartab.c (BT_UINT8_unloaded): New macro.
2000         (UINT8_VALUE_P): Accept Qunloaded.
2001         (UINT8_ENCODE): Likewise.
2002         (UINT8_DECODE): Likewise.
2003         (BT_UINT16_unloaded): New macro.
2004         (UINT16_VALUE_P): Accept Qunloaded.
2005         (UINT16_ENCODE): Likewise.
2006         (UINT16_DECODE): Likewise.
2007         (UINT8_TO_UINT16): Convert BT_UINT8_unloaded into
2008         BT_UINT16_unloaded.
2009         (mark_char_table): Mark `ct->name' in UTF-2000.
2010         (char_table_description): Add `name' in UTF-2000.
2011         (Fmake_char_table): Initialize `ct->name'.
2012         (Fcopy_char_table): Copy `ct->name'.
2013         (Fput_char_attribute): Store value into an external database if
2014         HAVE_DATABASE is defined.
2015
2016         * chartab.h (struct Lisp_Char_Table): Add new member `name' in
2017         UTF-2000.
2018         (CHAR_TABLE_NAME): New macro in UTF-2000.
2019         (XCHAR_TABLE_NAME): New macro in UTF-2000.
2020         (get_char_id_table): Try to read an external database if Qunloaded
2021         is stored in a table.
2022
2023         * symbols.c (init_symbols_once_early): Assign '#<unloaded> into
2024         Qunloaded.
2025
2026 2002-01-21  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2027
2028         * database.h: Add EXFUN definitions for Fopen_database,
2029         Fput_database, Fget_database and Fclose_database.
2030
2031         * data.c (Qunloaded): New variable in UTF-2000.
2032
2033         * lisp.h (Qunloaded): New variable in UTF-2000.
2034
2035 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2036
2037         * mule-charset.c (put_char_ccs_code_point): Modify for
2038         `decoding_table_remove_char' and `decoding_table_put_char'.
2039         (remove_char_ccs): Modify for `decoding_table_remove_char'.
2040
2041         * char-ucs.h (decoding_table_remove_char): Change arguments to
2042         hide decoding_table vector.
2043         (decoding_table_put_char): Likewise.
2044
2045 2002-01-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2046
2047         * mule-charset.c (decoding_table_remove_char): Moved to
2048         char-ucs.h.
2049         (decoding_table_put_char): Likewise.
2050
2051         * char-ucs.h (decoding_table_check_elements): New prototype [moved
2052         from mule-charset.c].
2053         (decoding_table_remove_char): New inline function [moved from
2054         mule-charset.c].
2055         (decoding_table_put_char): Likewise.
2056
2057 2002-01-03  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2058
2059         * mule-charset.c (Fmake_charset): Modify DOC-string for UTF-2000
2060         extension.
2061
2062 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2063
2064         * mule-charset.c (decode_builtin_char): Support mother charsets.
2065
2066 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2067
2068         * mule-charset.c (Q94x94x60): New variable.
2069         (charset_code_point): Support conversion `94x94x60'.
2070         (Fmake_charset): Likewise.
2071         (syms_of_mule_charset): Add new symbol `94x94x60'.
2072
2073         * char-ucs.h (CONVERSION_94x94x60): New macro.
2074
2075 2001-12-31  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2076
2077         * mule-charset.c (charset_code_point): Unify code about
2078         `code-offset'.
2079
2080 2001-12-30  MORIOKA Tomohiko  <tomo@mousai.as.wakwak.ne.jp>
2081
2082         * mule-charset.c (charset_code_point): Merge code about builtin
2083         characters into code about mother charsets; don't use
2084         `range_charset_code_point'.
2085         (range_charset_code_point): Deleted.
2086
2087 2001-12-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2088
2089         * mule-charset.c (Qcode_offset): New variable.
2090         (Fmake_charset): Use `XUINT' to get value of `min-code' and
2091         `max-code'; accept new property `code-offset'.
2092         (syms_of_mule_charset): Add new symbol `code-offset'.
2093
2094 2001-12-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2095
2096         * mule-charset.c (range_charset_code_point): Fixed.
2097
2098 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2099
2100         * mule-charset.c (decode_builtin_char): Change semantics of
2101         code-offset of coded-charset.
2102         (charset_code_point): Likewise.
2103         (range_charset_code_point): Likewise.
2104         (complex_vars_of_mule_charset): Modify for the change.
2105
2106 2001-12-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2107
2108         * mule-charset.c (Fencode_char): Reverse arguments.
2109
2110         * mule-charset.c (charset_code_point): Fixed.
2111
2112 2001-12-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2113
2114         * mule-charset.c (Vcharset_mojikyo): Deleted.
2115         (Vcharset_mojikyo_2022_1): Deleted.
2116         (Vcharset_mojikyo_pj_{1..21}): Deleted.
2117         (Qmin_code): New variable in UTF-2000.
2118         (Qmax_code): Likewise.
2119         (Qmother): Likewise.
2120         (Qconversion): Likewise.
2121         (Q94x60): Likewise.
2122         (Qmojikyo): Deleted.
2123         (Qmojikyo_2022_1): Deleted.
2124         (Qmojikyo_pj_{1..22}): Deleted.
2125         (mark_charset): Mark `cs->mother'.
2126         (charset_description): Add description for `mother'.
2127         (make_charset): Rename `ucs_{min|max}' to `{min|max}_code'; add
2128         new arguments `mother' and `conversion'; use
2129         `CHARSET_{MIN|MAX}_CODE' instead of `CHARSET_UCS_{MIN|MAX}'.
2130         (charset_code_point): Moved from char-ucs.h; support `mother'
2131         charset feature.
2132         (range_charset_code_point): use `CHARSET_{MIN|MAX}_CODE' instead
2133         of `CHARSET_UCS_{MIN|MAX}'; delete hard code for `mojikyo-2022-1'.
2134         (Fmake_charset): Allow 3 and 4 as the value of `dimension' in
2135         UTF-2000; allow 128 and 256 as the value of `chars' in UTF-2000;
2136         allow 2 as the value of `graphic' in UTF-2000; add new properties
2137         `min-code', `max-code', `mother', `conversion' in UTF-2000; don't
2138         require `final' in UTF-2000; modify for `make_charset'.
2139         (Fmake_reverse_direction_charset): use `CHARSET_{MIN|MAX}_CODE'
2140         instead of `CHARSET_UCS_{MIN|MAX}'; modify for `make_charset'.
2141         (Fcharset_property): Support `mother', `min-code' and `max-code'.
2142         (Fencode_char): New function.
2143         (syms_of_mule_charset): Add new builtin function `encode-char' in
2144         UTF-2000; add new symbols `min-code', `max-code', `mother',
2145         `conversion' and `94x60'; delete symbols `mojikyo',
2146         `mojikyo-2022-1' and `mojikyo-pj-{1..21}'.
2147         (complex_vars_of_mule_charset): Modify for `make_charset' change;
2148         delete coded-charsets `mojikyo', `mojikyo-2022-1' and
2149         `mojikyo-pj-{1..21}'; delete `DEF_MOJIKYO_PJ'.
2150
2151         * chartab.c (Fdefine_char): Use `XCHARSET_MAX_CODE' instead of
2152         `XCHARSET_UCS_MAX'; regard `chinese-big5' as a base CCS.
2153
2154         * char-ucs.h (Vcharset_mojikyo): Deleted.
2155         (Vcharset_mojikyo_2022_1): Deleted.
2156         (LEADING_BYTE_MOJIKYO): Deleted.
2157         (LEADING_BYTE_MOJIKYO_2022_1): Deleted.
2158         (LEADING_BYTE_MOJIKYO_2022_2): Deleted.
2159         (LEADING_BYTE_MOJIKYO_PJ_{1 .. 21}): Deleted.
2160         (struct Lisp_Charset): Rename `ucs_{min|max}' to `{min|max}_code';
2161         add new member `mother'; add new member `conversion'.
2162         (CHARSET_MIN_CODE): Renamed from `CHARSET_UCS_MIN'.
2163         (CHARSET_MAX_CODE): Renamed from `CHARSET_UCS_MAX'.
2164         (CHARSET_MOTHER): New macro.
2165         (CHARSET_CONVERSION): New macro.
2166         (CONVERSION_IDENTICAL): New macro.
2167         (CONVERSION_94x60): New macro.
2168         (XCHARSET_MIN_CODE): Renamed from `CHARSET_MIN_CODE'.
2169         (XCHARSET_MAX_CODE): Renamed from `CHARSET_MAX_CODE'.
2170         (XCHARSET_MOTHER): New macro.
2171         (XCHARSET_CONVERSION): New macro.
2172         (MIN_CHAR_MOJIKYO): Deleted.
2173         (MAX_CHAR_MOJIKYO): Deleted.
2174         (DECODE_MOJIKYO_2022): Deleted.
2175         (DECODE_CHAR): Delete hard code for builtin Mojikyo characters.
2176         (charset_code_point): Changed to non-inline function.
2177         (encode_char_1): Use `charset_code_point'.
2178         (CHAR_TO_CHARC): Delete hard code for Mojikyo characters.
2179
2180 2001-12-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2181
2182         * lread.c (read_compiled_function): Fix prototype.
2183         (read_vector): Likewise.
2184
2185 2001-12-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2186
2187         * lrecord.h (struct lrecord_header): Delete `older'.
2188         (set_lheader_implementation): Delete code for `older'.
2189         (set_lheader_older_implementation): Deleted.
2190         (enum lrecord_type): Delete `lrecord_type_char_id_table'.
2191         (OLDER_RECORD_P): Deleted.
2192         (OLDER_RECORD_HEADER_P): Deleted.
2193         (alloc_older_lcrecord): Deleted.
2194         (alloc_older_lcrecord_type): Deleted.
2195
2196         * alloc.c (all_older_lcrecords): Deleted.
2197         (alloc_older_lcrecord): Deleted.
2198         (disksave_object_finalization_1): Delete code for older objects.
2199         (mark_object): Don't use `OLDER_RECORD_HEADER_P'.
2200         (reinit_alloc_once_early): Don't initialize `all_older_lcrecords'.
2201
2202 2001-12-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2203
2204         * mule-charset.c (decoding_table_put_char): Use `make_vector'
2205         instead of `make_older_vector'.
2206         (put_char_ccs_code_point): Likewise.
2207         (mark_charset): Mark `cs->decoding_table'.
2208         (Fset_charset_mapping_table): Don't use `make_vector_newer'.
2209
2210         * lisp.h (make_older_vector): Deleted.
2211         (make_vector_newer): Deleted.
2212
2213         * config.h.in (HAVE_GGC): Deleted.
2214
2215         * alloc.c (make_older_vector): Deleted.
2216         (make_vector_newer_1): Deleted.
2217         (make_vector_newer): Deleted.
2218
2219 2001-12-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2220
2221         * mule-charset.c (Vcharset_ideograph_daikanwa_2): New variable.
2222         (Qideograph_daikanwa_2): New variable.
2223         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa-2'.
2224         (complex_vars_of_mule_charset): Add new coded-charset
2225         `ideograph-daikanwa-2'; use `LEADING_BYTE_DAIKANWA_3' instead of
2226         `LEADING_BYTE_DAIKANWA'.
2227
2228         * char-ucs.h (LEADING_BYTE_DAIKANWA_0): New macro.
2229         (LEADING_BYTE_DAIKANWA_1): New macro.
2230         (LEADING_BYTE_DAIKANWA_2): New macro.
2231         (LEADING_BYTE_DAIKANWA_3): Renamed from `LEADING_BYTE_DAIKANWA'.
2232
2233 2001-12-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2234
2235         * mule-charset.c (complex_vars_of_mule_charset): Change
2236         DOC-strings and registry of `ideograph-daikanwa'; now it indicates
2237         the second revised version.
2238
2239 2001-12-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2240
2241         * mule-charset.c (Vcharset_ucs_smp): New variable.
2242         (Vcharset_ucs_sip): New variable.
2243         (Qucs_smp): New variable.
2244         (Qucs_sip): New variable.
2245         (encode_builtin_char_1): Treat MIN_CHAR_{SMP|SIP} to
2246         MAX_CHAR_{SMP|SIP} as `ucs-{smp|sip}'.
2247         (syms_of_mule_charset): Add new symbols `ucs-smp' and `ucs-sip'.
2248         (complex_vars_of_mule_charset): Modify middle-DOC and registry of
2249         `ucs-bmp'; add new coded-charset `ucs-smp' and `ucs-sip'; change
2250         charset width of `ucs-cns', `ucs-jis', `ucs-ks' and `ucs-big5'.
2251
2252         * char-ucs.h (LEADING_BYTE_UCS_SMP): New macro.
2253         (LEADING_BYTE_UCS_SIP): New macro.
2254         (MIN_CHAR_SMP): New macro.
2255         (MAX_CHAR_SMP): New macro.
2256         (MIN_CHAR_SIP): New macro.
2257         (MAX_CHAR_SIP): New macro.
2258
2259 2001-11-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
2260
2261         * dumper.c (PDUMP_HASH_SIZE): Increase the size of hash table when
2262         utf-2000.
2263
2264 2001-11-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2265
2266         * mule-charset.c (put_char_ccs_code_point): Return canonicalized
2267         value; don't store value into `encoding_table' of `Lisp_Charset'.
2268         (mark_charset): `encoding_table' was deleted.
2269         (charset_description): Likewise.
2270         (make_charset): Likewise.
2271         (Fset_charset_mapping_table): Use `Fput_char_attribute' instead of
2272         `put_char_ccs_code_point'.
2273
2274         * chartab.h (Fput_char_attribute): New EXFUN.
2275
2276         * chartab.c (Fchar_attribute_alist): Name space of CCS-attributes
2277         is unified with normal symbol space.
2278         (Fget_char_attribute): Likewise.
2279         (Fput_char_attribute): Likewise; behavior of
2280         `put_char_ccs_code_point' is changed.
2281
2282         * char-ucs.h: Include "elhash.h".
2283         (Vchar_attribute_hash_table): New external variable.
2284         (struct Lisp_Charset): Delete `encoding_table'.
2285         (CHARSET_ENCODING_TABLE): New implementation; refer
2286         `Vchar_attribute_hash_table' instead of `encoding_table' of struct
2287         `Lisp_Charset'.
2288
2289 2001-11-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2290
2291         * mule-charset.c (Fcharset_property): Return Qnil if CHARSET_FINAL
2292         (cs) == 0.
2293
2294 2001-11-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2295
2296         * text-coding.c (char_encode_big5): Prefer charset-g1 than
2297         `chinese-big5'.
2298
2299 2001-11-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2300
2301         * chartab.c (uint8_byte_table_description): New constant.
2302         (uint8-byte-table): Use `uint8_byte_table_description'.
2303         (uint16_byte_table_description): New constant.
2304         (uint16-byte-table): Use `uint16_byte_table_description'.
2305
2306 2001-10-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2307
2308         * mule-charset.c (complex_vars_of_mule_charset): Don't use builtin
2309         range MIN_CHAR_BIG5_CDP .. MAX_CHAR_BIG5_CDP.
2310
2311 2001-10-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2312
2313         * mule-charset.c (Vcharset_ucs_ks): New variable.
2314         (Qucs_ks): New variable.
2315         (syms_of_mule_charset): Add new symbol `ucs-ks'.
2316         (complex_vars_of_mule_charset): Add new coded-charset `ucs-ks'.
2317
2318         * char-ucs.h (LEADING_BYTE_UCS_KS): New macro.
2319
2320 2001-10-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2321
2322         * chartab.h (Fmake_char): New EXFUN; moved from chartab.c.
2323         (Fdecode_char): Likewise.
2324
2325         * chartab.c: Move EXFUN for Fmake_char and Fdecode_char into
2326         chartab.h.
2327         (Fdefine_char): Modify for Fdecode_char.
2328         (Ffind_char): Likewise.
2329
2330         * mule-charset.c (Fdecode_char): Add new optional argument
2331         `defined-only'.
2332         (Fdecode_builtin_char): Modify for `Fdecode_char'.
2333
2334 2001-10-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2335
2336         * text-coding.c (mark_coding_system): Mark initial-charset-g0 and
2337         -g1 of CODESYS_BIG5 in XEmacs UTF-2000.
2338         (allocate_coding_system): Initialize initial-charsets of
2339         CODESYS_BIG5 in XEmacs UTF-2000.
2340         (Fmake_coding_system): Accept `charset-g0' and `charset-g1' for
2341         CODESYS_BIG5 in XEmacs UTF-2000.
2342         (decode_coding_big5): Use initial-charset-g0 and -g1 of
2343         CODESYS_BIG5 in XEmacs UTF-2000; use `DECODE_DEFINED_CHAR'.
2344
2345         * mule-charset.c (Vcharset_ideograph_hanziku_{1 .. 12}): New
2346         variables.
2347         (Qideograph_hanziku_{1 .. 12}): Likewise.
2348         (syms_of_mule_charset): Add new symbols `ideograph-hanziku-{1
2349         .. 12}'.
2350         (complex_vars_of_mule_charset): Use `MIN_CHAR_BIG5_CDP' to
2351         `MAX_CHAR_BIG5_CDP' for `chinese-big5'; add news coded-charsets
2352         `ideograph-hanziku-{1 .. 12}'.
2353
2354         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x200.
2355         (LEADING_BYTE_HANZIKU_{1 .. 12}): New macros.
2356         ({MIN|MAX}_CHAR_BIG5_CDP): New macros.
2357         ({MIN|MAX}_CHAR_HANZIKU_{1 .. 12}): New macros.
2358         (DECODE_DEFINED_CHAR): New inline function.
2359         (DECODE_CHAR): Use `DECODE_DEFINED_CHAR'.
2360
2361 2001-10-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2362
2363         * mule-charset.c (Vcharset_china3_jef): Renamed from
2364         `Vcharset_japanese_jef_china3'.
2365         (Qchina3_jef): Renamed from `Qjapanese_jef_china3'.
2366         (encode_builtin_char_1): Rename `{MIN|MAX}_CHAR_CHINA3_JEF' from
2367         `{MIN|MAX}_CHAR_JEF_CHINA3'..
2368         (syms_of_mule_charset): Rename `china3-jef' from
2369         `japanese-jef-china3'.
2370         (complex_vars_of_mule_charset): Likewise; rename
2371         `LEADING_BYTE_CHINA3_JEF' from `LEADING_BYTE_JEF_CHINA3'.
2372
2373         * char-ucs.h (LEADING_BYTE_CHINA3_JEF): Renamed from
2374         `LEADING_BYTE_JEF_CHINA3'.
2375         (MIN_CHAR_CHINA3_JEF): Renamed from `MIN_CHAR_JEF_CHINA3'.
2376         (MAX_CHAR_CHINA3_JEF): Renamed from `MAX_CHAR_JEF_CHINA3'.
2377
2378 2001-10-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2379
2380         * mule-charset.c (encode_builtin_char_1): Comment out special code
2381         for MIN_CHAR_MOJIKYO_0 ... MAX_CHAR_MOJIKYO_0.
2382
2383         * char-ucs.h (MIN_CHAR_MOJIKYO_0): Comment out.
2384         (MAX_CHAR_MOJIKYO_0): Comment out.
2385         (MIN_CHAR_CBETA): Changed to 0x00E20000.
2386         (MAX_CHAR_CBETA): Changed to 0x00E2FFFF.
2387         (MIN_CHAR_JEF_CHINA3): Changed to 0x00E80000.
2388         (MAX_CHAR_JEF_CHINA3): Changed to 0x00E8FFFF.
2389
2390 2001-10-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2391
2392         * mule-charset.c (Vcharset_ideograph_cbeta): New variable.
2393         (Qideograph_cbeta): New variable.
2394         (encode_builtin_char_1): Comment out special code for
2395         coded-charset `mojikyo' and `japanese-jef-china3'.
2396         (syms_of_mule_charset): Add new symbol `ideograph-cbeta'.
2397         (complex_vars_of_mule_charset): Add new coded-charset
2398         `ideograph-cbeta'.
2399
2400         * char-ucs.h (LEADING_BYTE_CBETA): New macro.
2401         (MIN_CHAR_CBETA): New macro.
2402         (MAX_CHAR_CBETA): New macro.
2403
2404 2001-10-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2405
2406         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x100.
2407         (LEADING_BYTE_JEF_CHINA3): New macro.
2408         (MIN_CHAR_JEF_CHINA3): New macro.
2409         (MAX_CHAR_JEF_CHINA3): Likewise.
2410         (DECODE_CHAR): Fixed.
2411
2412 2001-10-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2413
2414         * mule-charset.c (Vcharset_japanese_jef_china3): New variable.
2415         (Qjapanese_jef_china3): New variable.
2416         (encode_builtin_char_1): Support `japanese-jef-china3'.
2417         (syms_of_mule_charset): Add new symbol `japanese-jef-china3'.
2418         (complex_vars_of_mule_charset): Add new coded-charset
2419         `japanese-jef-china3'.
2420
2421 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2422
2423         * chartab.c (XCHARSET_CELL_RANGE): New inline function.
2424         (decode_char_table_range): Use `XCHARSET_CELL_RANGE'; accept 94^3,
2425         94^4, 96^3, 96^4, 128^n and 256^n set.
2426         (put_char_table): Use `XCHARSET_CELL_RANGE'.
2427         (map_char_table): Likewise.
2428
2429 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2430
2431         * chartab.c (get_char_table): Use `get_char_id_table' in XEmacs
2432         UTF-2000.
2433
2434 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2435
2436         * chartab.h (get_char_id_table): New inline function.
2437
2438         * chartab.c (get_char_id_table): Moved to chartab.h as an inline
2439         function.
2440
2441 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2442
2443         * chartab.h (decode_char_table_range): New prototype in XEmacs
2444         UTF-2000.
2445         (put_char_id_table): New inline function in XEmacs UTF-2000.
2446
2447         * chartab.c (put_char_id_table): Moved to chartab.h as an inline
2448         function.
2449         (decode_char_table_range): Delete static declaration in XEmacs
2450         UTF-2000.
2451
2452 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2453
2454         * chartab.c (put_char_id_table): Use `put_char_table'.
2455
2456 2001-09-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2457
2458         * chartab.c (map_over_uint8_byte_table): Delete argument `ccs'.
2459         (map_over_uint16_byte_table): Likewise.
2460         (map_over_byte_table): Likewise.
2461         (map_char_table): Modify for `map_over_uint8_byte_table',
2462         `map_over_uint16_byte_table' and `map_over_byte_table' in XEmacs
2463         UTF-2000.
2464
2465 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2466
2467         * chartab.c (struct map_char_table_for_charset_arg): New
2468         structure.
2469         (map_char_table_for_charset_fun): New function.
2470         (map_char_table): Use `map_char_table' for encoding_table of
2471         `range->charset'.
2472
2473 2001-09-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2474
2475         * chartab.c (map_char_table): Check a character is found in
2476         range->charset instead of non default value is defined in
2477         char-table when range is CHARTAB_RANGE_ROW.
2478
2479 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2480
2481         * chartab.c (map_char_id_table): Deleted.
2482         (Fmap_char_attribute): Use `map_char_table' instead of
2483         `map_char_id_table'.
2484
2485 2001-09-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2486
2487         * syntax.h (SYNTAX_CODE_UNSAFE): New implementation in XEmacs
2488         UTF-2000.
2489         (update_syntax_table): Deleted in XEmacs UTF-2000.
2490
2491         * syntax.c (find_defun_start): Use `syntax_table' instead of
2492         `mirror_syntax_table' in XEmacs UTF-2000.
2493         (Fset_syntax_table): Don't use `mirror_syntax_table' in XEmacs
2494         UTF-2000.
2495         (Fchar_syntax): Use `syntax_table' instead of `mirror_table' in
2496         XEmacs UTF-2000.
2497         (Fmatching_paren): Likewise.
2498         (scan_words): Use `syntax_table' instead of `mirror_syntax_table'
2499         in XEmacs UTF-2000.
2500         (find_start_of_comment): Likewise.
2501         (find_end_of_comment): Likewise.
2502         (Fforward_comment): Likewise.
2503         (scan_lists): Likewise.
2504         (char_quoted): Likewise.
2505         (Fbackward_prefix_chars): Likewise.
2506         (scan_sexps_forward): Likewise.
2507         (update_just_this_syntax_table): Deleted in XEmacs UTF-2000.
2508         (update_syntax_table): Likewise.
2509
2510         * search.c (skip_chars): Use `syntax_table' instead of
2511         `mirror_syntax_table' in XEmacs UTF-2000.
2512         (wordify): Likewise.
2513         (Freplace_match): Likewise.
2514
2515         * regex.c (re_compile_fastmap): Use `syntax_table' instead of
2516         `mirror_syntax_table' in XEmacs UTF-2000.
2517         (WORDCHAR_P_UNSAFE): Likewise.
2518         (re_match_2_internal): Likewise.
2519
2520         * font-lock.c (find_context): Use `buf->syntax_table' instead of
2521         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2522
2523         * cmds.c (internal_self_insert): Use `buf->syntax_table' instead
2524         of `buf->mirror_syntax_table' in XEmacs UTF-2000.
2525
2526         * chartab.h (struct Lisp_Char_Table): Delete `mirror_table' in
2527         XEmacs UTF-2000.
2528
2529         * chartab.c (mark_char_table): Don't mark `mirror_table' in XEmacs
2530         UTF-2000.
2531         (print_char_table): Print `default_value' in XEmacs UTF-2000.
2532         (char_table_description): Delete `mirror_table' in XEmacs
2533         UTF-2000.
2534         (fill_char_table): Don't call `update_syntax_table' in XEmacs
2535         UTF-2000.
2536         (Fmake_char_table): Don't use `mirror_table' in XEmacs UTF-2000.
2537         (Fcopy_char_table): Likewise.
2538         (put_char_table): Don't call `update_syntax_table' in XEmacs
2539         UTF-2000.
2540
2541         * casefiddle.c (casify_object): Use `buf->syntax_table' instead of
2542         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2543         (casify_region_internal): Likewise.
2544
2545         * bufslots.h: Delete `mirror_syntax_table' in XEmacs UTF-2000.
2546
2547         * buffer.c (common_init_complex_vars_of_buffer): Don't use
2548         `mirror_syntax_table' in XEmacs UTF-2000.
2549
2550         * abbrev.c (abbrev_match): Use `buf->syntax_table' instead of
2551         `buf->mirror_syntax_table' in XEmacs UTF-2000.
2552         (Fexpand_abbrev): Likewise.
2553
2554 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2555
2556         * chartab.c (vars_of_chartab): Update `utf-2000-version' to 0.18.
2557
2558 2001-09-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2559
2560         * chartab.c (map_over_uint8_byte_table): Cancel temporary hack.
2561         (map_over_uint16_byte_table): Likewise.
2562         (map_over_byte_table): Likewise.
2563         (get_char_id_table): Refer `cit->default_value'.
2564         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2565         (map_char_id_table): Use `1 << 30' instead of `1 << 24' as number
2566         of character-id ranges.
2567         (mark_char_table): Mark `ct->default_value'.
2568         (char_table_description): Add `default_value'.
2569         (fill_char_table): Use `default_value'.
2570         (decode_char_table_range): Decode `nil' as
2571         `CHARTAB_RANGE_DEFAULT'.
2572         (get_char_id_table): Refer `cit->default_value'.
2573         (put_char_id_table): Support `CHARTAB_RANGE_DEFAULT'.
2574         (map_char_table): Support `CHARTAB_RANGE_DEFAULT'; cancel
2575         temporary hack; check value of char-table is bound or not.
2576         (slow_map_char_table_fun): Support `CHARTAB_RANGE_DEFAULT'.
2577
2578         * chartab.h (struct Lisp_Char_Table): Add new member
2579         `default_value' in XEmacs UTF-2000.
2580         (CHAR_TABLE_VALUE_UNSAFE): Use `default_value'.
2581         (enum chartab_range_type): Add `CHARTAB_RANGE_DEFAULT' in XEmacs
2582         UTF-2000.
2583
2584 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2585
2586         * chartab.h (Lisp_Char_ID_Table): Deleted.
2587
2588         * chartab.c (char_table_description): Fix typo.
2589         (Fmap_char_attribute): Use `Lisp_Char_Table' instead of
2590         `Lisp_Char_ID_Table'.
2591
2592 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2593
2594         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_TABLEP' instead of
2595         `CHAR_ID_TABLE_P'.
2596
2597         * mule-charset.c (remove_char_ccs): Use `CHAR_TABLEP' instead of
2598         `CHAR_ID_TABLE_P'.
2599
2600         * chartab.h (XCHAR_ID_TABLE): Deleted.
2601         (XSETCHAR_ID_TABLE): Deleted.
2602         (CHAR_ID_TABLE_P): Deleted.
2603
2604         * chartab.c (put_char_id_table): Use `CHAR_TABLEP' instead of
2605         `CHAR_ID_TABLE_P'.
2606         (Fget_composite_char): Likewise.
2607         (put_char_table): Likewise.
2608         (add_char_attribute_alist_mapper): Fixed.
2609         (Fchar_attribute_alist): Use `CHAR_TABLEP' instead of
2610         `CHAR_ID_TABLE_P'.
2611         (Fget_char_attribute): Likewise.
2612         (Fget_char_attribute): Likewise.
2613         (Fmap_char_attribute): Likewise.
2614
2615         * char-ucs.h (charset_code_point): Use `CHAR_TABLEP' instead of
2616         `CHAR_ID_TABLE_P'.
2617         (encode_char_1): Likewise.
2618
2619 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2620
2621         * text-coding.c (COMPOSE_ADD_CHAR): Use `XCHAR_TABLE' instead of
2622         `XCHAR_ID_TABLE'.
2623
2624         * mule-charset.c (put_char_ccs_code_point): Use `XCHAR_TABLE'
2625         instead of `XCHAR_ID_TABLE'.
2626         (remove_char_ccs): Likewise.
2627
2628         * chartab.c (put_char_id_table): Use `XCHAR_TABLE' instead of
2629         `XCHAR_ID_TABLE'.
2630         (Fget_composite_char): Likewise.
2631         (Fchar_variants): Likewise.
2632         (put_char_table): Likewise.
2633         (add_char_attribute_alist_mapper): Likewise.
2634         (Fchar_attribute_alist): Likewise.
2635         (Fget_char_attribute): Likewise.
2636         (Fput_char_attribute): Likewise.
2637         (Fmap_char_attribute): Likewise.
2638         (Fmap_char_attribute): Likewise.
2639
2640         * char-ucs.h (charset_code_point): Use `XCHAR_TABLE' instead of
2641         `XCHAR_ID_TABLE'.
2642         (encode_char_1): Likewise.
2643
2644 2001-09-03  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2645
2646         * chartab.c (map_char_id_table): Use `Lisp_Char_Table' instead of
2647         `Lisp_Char_ID_Table'.
2648         (mark_char_id_table): Deleted.
2649         (print_char_id_table): Likewise.
2650         (char_id_table_equal): Likewise.
2651         (char_id_table_hash): Likewise.
2652         (char_id_table_description): Likewise.
2653         (char_id_table): Likewise.
2654         (make_char_id_table): Use `Fmake_char_table' and
2655         `fill_char_table'.
2656         (get_char_id_table): Use `Lisp_Char_Table' instead of
2657         `Lisp_Char_ID_Table'.
2658         (put_char_id_table): Likewise.
2659         (Fput_char_attribute): Use `XCHAR_TABLE' instead of
2660         `XCHAR_ID_TABLE'.
2661         (Fremove_char_attribute): Likewise.
2662         (syms_of_chartab): Don't define type `char-id-table'.
2663
2664         * chartab.h (struct Lisp_Char_ID_Table): Deleted.
2665         (char_id_table): Likewise.
2666         (GC_CHAR_ID_TABLE_P): Likewise.
2667         (Lisp_Char_ID_Table): Use structure `Lisp_Char_Table'.
2668         (XCHAR_ID_TABLE): Use `XCHAR_TABLE'.
2669         (XSETCHAR_ID_TABLE): Use `XSETCHAR_TABLE'.
2670         (CHAR_ID_TABLE_P): Use `CHAR_TABLEP'.
2671         (get_char_id_table): Use `Lisp_Char_Table' instead of
2672         `Lisp_Char_ID_Table'.
2673         (put_char_id_table_0): Likewise.
2674         (put_char_id_table): Likewise.
2675
2676 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2677
2678         * chartab.h: Lisp_Byte_Table related codes are moved from
2679         chartab.h.
2680
2681         * char-ucs.h: Move Lisp_Byte_Table related codes to chartab.h.
2682
2683 2001-09-02  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2684
2685         * chartab.h: Don't include "chartab.h".
2686         (struct Lisp_Char_ID_Table): Moved from char-ucs.h.
2687         (Lisp_Char_ID_Table): Likewise.
2688         (char_id_table): Likewise.
2689         (XCHAR_ID_TABLE): Likewise.
2690         (XSETCHAR_ID_TABLE): Likewise.
2691         (CHAR_ID_TABLE_P): Likewise.
2692         (GC_CHAR_ID_TABLE_P): Likewise.
2693         (get_char_id_table): Likewise.
2694
2695         * char-ucs.h: Include "chartab.h".
2696         (struct Lisp_Char_ID_Table): Moved to chartab.h.
2697         (Lisp_Char_ID_Table): Likewise.
2698         (char_id_table): Likewise.
2699         (XCHAR_ID_TABLE): Likewise.
2700         (XSETCHAR_ID_TABLE): Likewise.
2701         (CHAR_ID_TABLE_P): Likewise.
2702         (GC_CHAR_ID_TABLE_P): Likewise.
2703         (get_char_id_table): Likewise.
2704
2705 2001-09-01  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2706
2707         * chartab.c (copy_uint8_byte_table): New function.
2708         (copy_uint16_byte_table): New function.
2709         (copy_byte_table): New function.
2710         (map_over_uint8_byte_table): Modify to avoid huge numbers of
2711         characters to call.
2712         (map_over_uint16_byte_table): Likewise.
2713         (map_over_byte_table): Likewise.
2714         (get_byte_table): Move prototype to chartab.h.
2715         (put_byte_table): Likewise.
2716         (put_char_id_table_0): Moved to chartab.h.
2717         (mark_char_table_entry): Don't define in XEmacs UTF-2000.
2718         (char_table_entry_equal): Likewise.
2719         (char_table_entry_hash): Likewise.
2720         (char_table_entry_description): Likewise.
2721         (char_table_entry): Likewise.
2722         (make_char_table_entry): Likewise.
2723         (copy_char_table_entry): Likewise.
2724         (get_non_ascii_char_table_value): Likewise.
2725         (map_over_charset_ascii): Likewise.
2726         (map_over_charset_control_1): Likewise.
2727         (map_over_charset_row): Likewise.
2728         (map_over_other_charset): Likewise.
2729         (mark_char_table): Modify for new structure in XEmacs UTF-2000.
2730         (print_char_table): Likewise.
2731         (char_table_equal): Likewise.
2732         (char_table_hash): Likewise.
2733         (char_table_description): Likewise.
2734         (fill_char_table): Likewise.
2735         (Fcopy_char_table): Likewise.
2736         (get_char_table): Likewise.
2737         (Fget_range_char_table): Likewise.
2738         (put_char_table): Likewise.
2739         (map_char_table): Likewise.
2740         (syms_of_chartab): Don't define `char_table_entry' in XEmacs
2741         UTF-2000.
2742
2743 2001-08-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2744
2745         * cmds.c (vars_of_cmds): Use `put_char_id_table_0' for
2746         `Vauto_fill_chars' in XEmacs UTF-2000.
2747
2748         * chartab.h (get_byte_table): New prototype [moved from
2749         chartab.c].
2750         (put_byte_table): Likewise [moved from chartab.c].
2751         (put_char_id_table_0): New inline function [moved from chartab.c].
2752         (struct Lisp_Char_Table_Entry): Don't define in XEmacs UTF-2000.
2753         (Lisp_Char_Table_Entry): Likewise.
2754         (char_table_entry): Likewise.
2755         (XCHAR_TABLE_ENTRY): Likewise.
2756         (XSETCHAR_TABLE_ENTRY): Likewise.
2757         (CHAR_TABLE_ENTRYP): Likewise.
2758         (CHECK_CHAR_TABLE_ENTRY): Likewise.
2759         (NUM_ASCII_CHARS): Likewise.
2760         (struct Lisp_Char_Table): New implementation in XEmacs UTF-2000.
2761         (CHAR_TABLE_VALUE_UNSAFE): Likewise.
2762
2763 2001-08-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2764
2765         * chartab.c (get_char_id_table): Change interface.
2766         (put_char_id_table_0): New function.
2767         (put_char_id_table): Change interface; new implementation.
2768         (Fget_composite_char): Modify for interface change of
2769         `get_char_id_table'.
2770         (Fchar_variants): Likewise.
2771         (add_char_attribute_alist_mapper): Likewise.
2772         (Fchar_attribute_alist): Likewise.
2773         (Fget_char_attribute): Likewise.
2774         (Fput_char_attribute): Allow coded-charset or [CODED-CHARSET ROW]
2775         as same as character as the first argument like `put-char-table';
2776         modify for interface change of `put_char_id_table'.
2777         (Fremove_char_attribute): Modify for interface change of
2778         `put_char_id_table'.
2779
2780 2001-08-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2781
2782         * text-coding.c: Sync up with XEmacs 21.2.41.
2783         (COMPOSE_ADD_CHAR): Modify for interface change of
2784         `get_char_id_table'.
2785
2786         * mule-charset.c (put_char_ccs_code_point): Modify for interface
2787         change of `put_char_id_table'.
2788         (remove_char_ccs): Likewise.
2789
2790         * chartab.h (put_char_id_table): Change interface.
2791
2792         * char-ucs.h (get_char_id_table): Change interface.
2793         (charset_code_point): Modify for interface change of
2794         `get_char_id_table'.
2795         (encode_char_1): Likewise.
2796
2797 2001-08-19  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2798
2799         * chartab.c (map_over_uint8_byte_table): Change arguments; add new
2800         argument `ccs'.
2801         (map_over_uint16_byte_table): Likewise.
2802         (map_over_byte_table): Likewise.
2803         (map_char_id_table): Add new argument `range' like
2804         `map_char_table'.
2805         (Fmap_char_attribute): Add new argument `range' like
2806         `Fmap_char_table'.
2807
2808 2001-08-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2809
2810         * chartab.c (map_over_uint8_byte_table): Change interface of
2811         mapping function to use struct chartab_range instead of Emchar.
2812         (map_over_uint16_byte_table): Likewise.
2813         (map_over_byte_table): Likewise.
2814         (map_char_id_table): Likewise.
2815         (struct slow_map_char_id_table_arg): Deleted.
2816         (slow_map_char_id_table_fun): Deleted.
2817         (Fmap_char_attribute): Use struct `slow_map_char_table_arg' and
2818         function `slow_map_char_table_fun' instead of struct
2819         `slow_map_char_id_table_arg' and function
2820         `slow_map_char_id_table_fun'.
2821
2822 2001-08-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2823
2824         * mule-charset.c: Move char-it-table related codes to chartab.c.
2825         (Vutf_2000_version): Moved to chartab.c.
2826         (Fdefine_char): Likewise.
2827         (Ffind_char): Likewise.
2828         (syms_of_mule_charset): Move types `uint8-byte-table',
2829         `uint16-byte-table', `byte-table' and `char-id-table' to
2830         chartab.c; move functions `char_attribute_list,
2831         `find_char_attribute_table, `char_attribute_alist,
2832         `get_char_attribute, `put_char_attribute, `remove_char_attribute,
2833         `map_char_attribute, `define_char, `find_char, `char_variants and
2834         `get_composite_char to chartab.c; move symbols `=>ucs',
2835         `->decomposition', `compat', `isolated', `initial', `medial',
2836         `final', `vertical', `noBreak', `fraction', `super', `sub',
2837         `circle', `square', `wide', `narrow', `small' and `font' to
2838         chartab.c.
2839         (vars_of_mule_charset): Move `utf-2000-version' to chartab.c; move
2840         setting codes for `Vcharacter_composition_table' and
2841         `Vcharacter_variant_table' to chartab.c.
2842         (complex_vars_of_mule_charset): Move setting code for
2843         `Vchar_attribute_hash_table' to chartab.c.
2844
2845         * chartab.h: Include "char-ucs.h" if --with-utf-2000 is specified.
2846         (make_char_id_table): New prototype.
2847         (put_char_id_table): Likewise.
2848         (Fget_char_attribute): Likewise.
2849
2850         * chartab.c: Move char-id-table related code from mule-charset.c.
2851         (Vutf_2000_version): Moved from mule-charset.c.
2852
2853         * char-ucs.h (Qucs): New external variable.
2854         (put_char_ccs_code_point): New prototype.
2855         (remove_char_ccs): Likewise.
2856
2857 2001-08-14  MORIOKA Tomohiko  <tomo@mousai.mahoroba.ne.jp>
2858
2859         * mule-charset.c (Vcharset_ucs_jis): New variable.
2860         (Qucs_jis): Likewise.
2861         (syms_of_mule_charset): Add new symbol `ucs-jis'.
2862         (complex_vars_of_mule_charset): Add new coded-charset `ucs-jis'.
2863
2864         * char-ucs.h (LEADING_BYTE_UCS_JIS): New macro.
2865
2866 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2867
2868         * mule-charset.c (map_over_uint8_byte_table): New function.
2869         (map_over_uint16_byte_table): Likewise.
2870         (map_over_byte_table): Likewise.
2871         (map_char_id_table): Likewise.
2872         (slow_map_char_id_table_fun): Likewise.
2873         (Fmap_char_attribute): Likewise.
2874         (syms_of_mule_charset): Add new function `map-char-attribute'.
2875
2876 2001-08-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2877
2878         * mule-charset.c (Ffind_char): New function in XEmacs UTF-2000.
2879         (syms_of_mule_charset): Add new function `find-char'.
2880
2881 2001-08-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2882
2883         * mule-charset.c (Vcharset_chinese_big5_cdp): New variable in
2884         XEmacs UTF-2000.
2885         (Qchinese_big5_cdp): New variable in XEmacs UTF-2000.
2886         (syms_of_mule_charset): Add new symbol `chinese-big5-cdp' in
2887         XEmacs UTF-2000.
2888         (complex_vars_of_mule_charset): Add new coded-charset
2889         `chinese-big5-cdp' in XEmacs UTF-2000; change registry of
2890         `ideograph-gt-pj-*'.
2891
2892         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5_CDP): New macro.
2893
2894 2001-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2895
2896         * mule-charset.c (encode_builtin_char_1): Purge codes about
2897         {MIN|MAX}_CHAR_{GREEK|CYRILLIC}; comment out code about
2898         {MIN|MAX}_CHAR_HEBREW.
2899         (complex_vars_of_mule_charset): Comment out {MIN|MAX}_CHAR_HEBREW;
2900         don't use {MIN|MAX}_CHAR_HEBREW to define `hebrew-iso8859-8'.
2901
2902         * char-ucs.h (MIN_CHAR_GREEK): Purged.
2903         (MAX_CHAR_GREEK): Purged.
2904         (MIN_CHAR_CYRILLIC): Purged.
2905         (MAX_CHAR_CYRILLIC): Purged.
2906         (MIN_CHAR_HEBREW): Commented out.
2907         (MAX_CHAR_HEBREW): Likewise.
2908
2909 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2910
2911         * mule-charset.c (Qto_ucs): New variable.
2912         (Fput_char_attribute): Treat `=>ucs' as same as `->ucs'.
2913         (Fdefine_char): Likewise.
2914         (syms_of_mule_charset): Add new symbol `=>ucs'.
2915
2916 2001-07-23  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2917
2918         * mule-charset.c (Fdecode_char): Fixed.
2919
2920 2001-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2921
2922         * mule-charset.c (complex_vars_of_mule_charset): Modify registry
2923         of latin-tcvn5712 to accept "tcvn5712.1993-1" as same as
2924         "tcvn5712-1".
2925
2926 2001-07-21  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2927
2928         * mule-charset.c (Vcharset_ucs_big5): New variable.
2929         (Qucs_big5): Likewise.
2930         (syms_of_mule_charset): Add new symbol `ucs-big5'.
2931         (complex_vars_of_mule_charset): Add new coded-charset `ucs-big5'.
2932
2933         * char-ucs.h (LEADING_BYTE_UCS_BIG5): New macro.
2934
2935 2001-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2936
2937         * mule-charset.c (decode_builtin_char): Check Big5 code range
2938         which can be mapped to `chinese-big5-1' and `chinese-big5-2'.
2939
2940 2001-07-15  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2941
2942         * mule-charset.c (Vcharset_chinese_gb12345): New variable.
2943         (Qchinese_gb12345): Likewise.
2944         (Fdecode_builtin_char): Fixed.
2945         (syms_of_mule_charset): Add `chinese-gb12345'.
2946         (complex_vars_of_mule_charset): Add coded-charset
2947         `chinese-gb12345'.
2948
2949         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x70.
2950         (LEADING_BYTE_CHINESE_GB12345): New macro.
2951
2952 2001-07-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2953
2954         * mule-charset.c (Fdecode_builtin_char): Use `latin-viscii-lower'
2955         and `latin-viscii-upper' for `latin-viscii'.
2956
2957 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2958
2959         * mule-charset.c (Fdecode_builtin_char): Comment out
2960         regularization code for ISO-IR GR representation.
2961
2962 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2963
2964         * mule-charset.c (decode_builtin_char): New function; renamed from
2965         `make_builtin_char'; return -1 instead of signal.
2966         (Fdecode_builtin_char): Use `decode_builtin_char'.
2967
2968         * char-ucs.h (decode_builtin_char): New prototype; renamed from
2969         `make_builtin_char'.
2970         (DECODE_CHAR): Use `decode_builtin_char' instead of
2971         `make_builtin_char'; use mapping table of `chinese-big5' for
2972         `chinese-big5-{1,2}'.
2973
2974 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2975
2976         * text-coding.c (char_encode_big5): New function.
2977         (char_finish_big5): Likewise.
2978         (reset_encoding_stream): Use `char_encode_big5' and
2979         `char_finish_big5' for CODESYS_BIG5.
2980         (mule_encode): Don't use `encode_coding_big5'.
2981         (encode_coding_big5): Deleted.
2982
2983 2001-07-11  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2984
2985         * text-coding.c (BYTE_BIG5_TWO_BYTE_1_P): Support private area
2986         0x81- in XEmacs UTF-2000.
2987         (detect_coding_big5): Likewise.
2988
2989 2001-07-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
2990
2991         * mule-charset.c (Fdefine_char): Don't use a CCS property to
2992         generate character-id if the CCS property does not have
2993         corresponding predefined character.
2994         (make_builtin_char): Return -1 if corresponding predefined
2995         character is not found.
2996         (Fdecode_char): Return nil if corresponding character is not
2997         found.
2998         (complex_vars_of_mule_charset): Change `ucs-cns' to 256^3-set and
2999         don't map to builtin ucs space.
3000
3001 2001-07-06  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3002
3003         * char-ucs.h (MAX_LEADING_BYTE_PRIVATE): Fixed.
3004         (MAX_CHAR_GT): Changed to `(MIN_CHAR_GT + 66773)'.
3005
3006 2001-07-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3007
3008         * mule-charset.c (Vcharset_ideograph_gt): New variable.
3009         (Vcharset_ideograph_gt_pj_{1..11}): Likewise.
3010         (Qideograph_gt): Likewise.
3011         (Qideograph_gt_pj_{1..11}): Likewise.
3012         (syms_of_mule_charset): Add `ideograph-gt', `ideograph-gt-pj-1',
3013         `ideograph-gt-pj-2', ..., `ideograph-gt-pj-10' and
3014         `ideograph-gt-pj-11'.
3015         (complex_vars_of_mule_charset): Add coded-charset `ideograph-gt',
3016         `ideograph-gt-pj-1', `ideograph-gt-pj-2', ...,
3017         `ideograph-gt-pj-10' and `ideograph-gt-pj-11'.
3018
3019         * char-ucs.h (LEADING_BYTE_GT): New macro.
3020         (LEADING_BYTE_GT_PJ_{1..11}): Likewise.
3021         (MIN_CHAR_GT): Likewise.
3022         (MAX_CHAR_GT): Likewise.
3023
3024 2001-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3025
3026         * lisp-disunion.h (XCHARVAL): New implementation for UTF-2000 to
3027         support U-60000000 .. U-7FFFFFFF with 32 bits architecture.
3028
3029         * doprnt.c (unsigned_int_converters): Add `c'.
3030         (emacs_doprnt_1): Use `XUINT' for unsigned integers.
3031
3032         * char-ucs.h (MIN_CHAR_DAIKANWA): Don't refer `MIN_CHAR_MOJIKYO'.
3033         (MAX_CHAR_DAIKANWA): Refer `MIN_CHAR_DAIKANWA' instead of
3034         `MIN_CHAR_MOJIKYO'.
3035         (MIN_CHAR_MOJIKYO_0): New macro; refer `MIN_CHAR_DAIKANWA'.
3036         (MAX_CHAR_MOJIKYO_0): New macro.
3037         (MIN_CHAR_MOJIKYO): Changed to 0x60000000.
3038
3039 2001-06-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3040
3041         * mule-charset.c (Fdefine_char): Delete cemented out code.
3042         (encode_builtin_char_1): Modify for new allocation of builtin
3043         Mojikyo characters.
3044
3045         * lisp-disunion.h (XCHARVAL): Cast the argument into EMACS_UINT.
3046
3047 2001-06-04  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3048
3049         * mule-charset.c (Vcharset_ucs_cns): New variable.
3050         (Qucs_cns): New variable.
3051         (syms_of_mule_charset): Add new symbol `ucs-cns'.
3052         (complex_vars_of_mule_charset): Add new coded-charset `ucs-cns'.
3053
3054 2001-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3055
3056         * char-ucs.h (LEADING_BYTE_UCS_CNS): New macro.
3057
3058 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3059
3060         * search.c (search_buffer): Make `charset_base_code' as
3061         character-id >> 6 to eliminate the corresponding last byte in
3062         UTF-8 representation [I'm not sure it is right thing].
3063         (boyer_moore): Likewise.
3064
3065 2000-12-09  MORIOKA Tomohiko  <tomo@m17n.org>
3066
3067         * emacs.c (vars_of_emacs): Convert XEMACS_CODENAME to internal
3068         representation in MULE.
3069
3070 2000-11-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3071
3072         * text-coding.c (Fmake_coding_system): Use
3073         `EXTERNAL_PROPERTY_LIST_LOOP_3' instead of
3074         `EXTERNAL_PROPERTY_LIST_LOOP'.
3075
3076 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3077
3078         * text-coding.c (decode_output_utf8_partial_char): New function.
3079         (decode_coding_utf8): Use `decode_output_utf8_partial_char'.
3080
3081 2000-11-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3082
3083         * text-coding.c (decode_coding_utf8): Output original byte
3084         sequence if it is broken; change order of conditions.
3085
3086         * mb-utf-8.h (REP_BYTES_BY_FIRST_BYTE): Use Bufbyte; reverse order
3087         of conditions.
3088
3089         * mb-multibyte.h (BYTE_ASCII_P):
3090         Use bit ops for char-signedness safety.
3091         (BYTE_C0_P): Use bit ops for char-signedness safety.
3092         (BYTE_C1_P): Use bit ops for char-signedness safety.
3093
3094         * character.h: (XCHAR_OR_CHAR_INT):
3095         Always use inline function.
3096         Remove redundant type checking assert() - XINT will abort quite
3097         nicely.
3098
3099 2000-11-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3100
3101         * text-coding.c: (Fencode_shift_jis_char):
3102         (Fencode_big5_char):
3103         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
3104         Replace 0 with '\0' when working with bytes.
3105         Replace initial "(" with "\(" in docstrings.
3106
3107         (Fmake_coding_system):
3108         When type is ccl and value is vector, register it with a proper
3109         symbol.  And checks whether the given ccl program is valid.
3110         (mule_decode): When calling ccl_driver, if src indicates
3111         NULL pointer, set an empty string instead.
3112         (mule_encode): Likewise.
3113
3114         (detect_eol_type):
3115         (detect_coding_sjis):
3116         (decode_coding_sjis):
3117         (detect_coding_big5):
3118         (decode_coding_big5):
3119         (detect_coding_ucs4):
3120         (decode_coding_ucs4):
3121         (detect_coding_utf8):
3122         (decode_coding_utf8):
3123         (detect_coding_iso2022):
3124         (decode_coding_iso2022):
3125         (decode_coding_no_conversion):
3126         (mule_decode):
3127         Make all detecting and decoding functions take an Extbyte * arg.
3128         (text_encode_generic):
3129         (encode_coding_big5):
3130         (encode_coding_no_conversion):
3131         (mule_encode):
3132         Make all encoding functions take a Bufbyte * arg.
3133         Use size_t instead of unsigned int for memory sizes.
3134         Only cast to unsigned char whenever dereferencing Extbyte *.
3135
3136         (struct lrecord_description fcd_description_1): Use countof.
3137         (complex_vars_of_file_coding):
3138         Use countof instead of sizeof.
3139         Use CHECK_NATNUM instead of CHECK_INT.
3140
3141 2000-11-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3142
3143         * mule-charset.c (Fget_char_attribute): Add new optional argument
3144         `default-value'.
3145         (put_char_ccs_code_point): Modify for `Fget_char_attribute'.
3146         (remove_char_ccs): Likewise.
3147
3148 2000-10-05  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3149
3150         * text-coding.c (char_encode_shift_jis): New implementation in
3151         UTF-2000.
3152         (decode_coding_big5): Use `DECODE_CHAR (Vcharset_chinese_big5,
3153         ...)'.
3154
3155         * mule-charset.c (Vcharset_chinese_big5): New variable in
3156         UTF-2000.
3157         (Qchinese_big5): New variable in UTF-2000.
3158         (BIG5_SAME_ROW): New macro in UTF-2000.
3159         (make_builtin_char): Use builtin characters of
3160         `Vcharset_chinese_big5_1' and `Vcharset_chinese_big5_2' as builtin
3161         characters of `Vcharset_chinese_big5'.
3162         (syms_of_mule_charset): Add new symbol `chinese-big5' in UTF-2000.
3163         (complex_vars_of_mule_charset): Add new coded-charset
3164         `chinese-big5' in UTF-2000.
3165
3166         * char-ucs.h (LEADING_BYTE_CHINESE_BIG5): New macro.
3167         (Vcharset_chinese_big5): New external variable declaration.
3168         (Vcharset_japanese_jisx0208_1990): Likewise.
3169
3170 2000-07-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3171
3172         * mule-charset.c (expand_uint8_byte_table_to_uint16): New
3173         function.
3174         (put_byte_table): Use `expand_uint8_byte_table_to_uint16'.
3175
3176 2000-07-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3177
3178         * mule-charset.c (complex_vars_of_mule_charset): Define new macro
3179         `DEF_MOJIKYO_PJ' in UTF-2000; use `DEF_MOJIKYO_PJ' to define
3180         `mojikyo-pj-*'; add "MojikyoPJ-*" to charset-registry of
3181         `mojikyo-pj-*'.
3182
3183 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3184
3185         * text-coding.c (decode_coding_big5): Modify for UTF-2000.
3186
3187 2000-07-24  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3188
3189         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3190         to 0.17.
3191
3192 2000-07-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3193
3194         * file-coding.c (ucs_to_char): Don't use `CHARSET_TYPE_*'; modify
3195         for `CHARSET_BY_ATTRIBUTES'.
3196         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3197         `CHARSET_BY_ATTRIBUTES'.
3198
3199         * text-coding.c (struct decoding_stream): Rename member `CH' to
3200         `CPOS'.
3201         (reset_decoding_stream): Use `str->cpos' instead of `str->ch'.
3202         (decode_coding_sjis): Likewise.
3203         (decode_coding_big5): Likewise.
3204         (decode_coding_ucs4): Likewise.
3205         (decode_coding_utf8): Likewise.
3206         (parse_iso2022_esc): Don't use `CHARSET_TYPE_*'; modify for
3207         `CHARSET_BY_ATTRIBUTES'.
3208         (decode_coding_iso2022): Use `str->cpos' instead of `str->ch'; use
3209         `str->counter'; decode 3, 4 bytes sets.
3210         (char_encode_iso2022): Don't use `BREAKUP_CHAR'; encode 3, 4 bytes
3211         sets.
3212         (decode_coding_no_conversion): Use `str->cpos' instead of
3213         `str->ch'.
3214
3215         * mule-charset.c (Vcharset_mojikyo_2022_1): New variable.
3216         (Qmojikyo_2022_1): New variable.
3217         (make_charset): Don't use `CHARSET_TYPE_*'.
3218         (range_charset_code_point): Support coded-charset
3219         `mojikyo-2022-1'.
3220         (encode_builtin_char_1): Modify for `CHARSET_BY_ATTRIBUTES'.
3221         (Fmake_charset): Don't use `CHARSET_TYPE_*'; modify for
3222         `CHARSET_BY_ATTRIBUTES'.
3223         (Fcharset_from_attributes): Don't use `CHARSET_TYPE_*'; modify for
3224         `CHARSET_BY_ATTRIBUTES'.
3225         (syms_of_mule_charset): Add new symbol `mojikyo-2022-1'.
3226         (complex_vars_of_mule_charset): Add new coded-charset
3227         `mojikyo-2022-1'.
3228
3229         * mule-charset.h (CHARSET_BY_ATTRIBUTES): New implementation and
3230         interface; changed to inline function.
3231
3232         * char-ucs.h (Vcharset_mojikyo_2022_1): New variable.
3233         (LEADING_BYTE_MOJIKYO_2022_1): New macro.
3234         (LEADING_BYTE_MOJIKYO_2022_2): New macro.
3235         (CHARSET_TYPE_94): Deleted.
3236         (CHARSET_TYPE_94X94): Deleted.
3237         (CHARSET_TYPE_96): Deleted.
3238         (CHARSET_TYPE_96X96): Deleted.
3239         (CHARSET_TYPE_128): Deleted.
3240         (CHARSET_TYPE_128X128): Deleted.
3241         (CHARSET_TYPE_256): Deleted.
3242         (CHARSET_TYPE_256X256): Deleted.
3243         (CHARSET_BY_ATTRIBUTES): New implementation and interface; changed
3244         to inline function.
3245         (DECODE_MOJIKYO_2022): New inline function.
3246         (DECODE_CHAR): Use `DECODE_MOJIKYO_2022'; decode
3247         `Vcharset_mojikyo_2022_1'.
3248
3249 2000-07-18  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3250
3251         * mule-charset.c (byte_table_same_value_p): Use `internal_equal'
3252         instead of `EQ'.
3253         (put_byte_table): Likewise.
3254         (char_id_table_equal): Use `get_byte_table' [new implementation].
3255
3256 2000-07-17  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3257
3258         * mule-charset.c: Include <limits.h> in UTF-2000.
3259         (BT_UINT8_MIN): New macro in UTF-2000.
3260         (BT_UINT8_MAX): New macro in UTF-2000.
3261         (BT_UINT8_t): New macro in UTF-2000.
3262         (BT_UINT8_nil): New macro in UTF-2000.
3263         (BT_UINT8_unbound): New macro in UTF-2000.
3264         (INT_UINT8_P): New inline function in UTF-2000.
3265         (UINT8_VALUE_P): New inline function in UTF-2000.
3266         (UINT8_ENCODE): New inline function in UTF-2000.
3267         (UINT8_DECODE): New inline function in UTF-2000.
3268         (mark_uint8_byte_table): New function in UTF-2000.
3269         (print_uint8_byte_table): New function in UTF-2000.
3270         (uint8_byte_table_equal): New function in UTF-2000.
3271         (uint8_byte_table_hash): New function in UTF-2000.
3272         (make_uint8_byte_table): New function in UTF-2000.
3273         (uint8_byte_table_same_value_p): New function in UTF-2000.
3274         (BT_UINT16_MIN): New macro in UTF-2000.
3275         (BT_UINT16_MAX): New macro in UTF-2000.
3276         (BT_UINT16_t): New macro in UTF-2000.
3277         (BT_UINT16_nil): New macro in UTF-2000.
3278         (BT_UINT16_unbound): New macro in UTF-2000.
3279         (INT_UINT16_P): New inline function in UTF-2000.
3280         (UINT16_VALUE_P): New inline function in UTF-2000.
3281         (UINT16_ENCODE): New inline function in UTF-2000.
3282         (UINT16_DECODE): New inline function in UTF-2000.
3283         (UINT8_TO_UINT16): New inline function in UTF-2000.
3284         (mark_uint16_byte_table): New function in UTF-2000.
3285         (print_uint16_byte_table): New function in UTF-2000.
3286         (uint16_byte_table_equal): New function in UTF-2000.
3287         (uint16_byte_table_hash): New function in UTF-2000.
3288         (make_uint16_byte_table): New function in UTF-2000.
3289         (uint16_byte_table_same_value_p): New function in UTF-2000.
3290         (print_byte_table): New function in UTF-2000.
3291         (byte-table): Use `print_byte_table' as printer.
3292         (make_byte_table): Delete second argument `older'.
3293         (byte_table_same_value_p): New function in UTF-2000.
3294         (copy_byte_table): Deleted.
3295         (get_byte_table): New function in UTF-2000.
3296         (put_byte_table): New function in UTF-2000.
3297         (print_char_id_table): New function in UTF-2000.
3298         (char-id-table): Use `print_char_id_table' as printer.
3299         (make_char_id_table): Delete second argument `older'.
3300         (get_char_id_table): Use `get_byte_table [new implementation].
3301         (put_char_id_table): Use `get_byte_table and `put_byte_table' [new
3302         implementation].
3303         (Ffind_char_attribute_table): New function in UTF-2000.
3304         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
3305         (syms_of_mule_charset): Add LRECORD_IMPLEMENTATION
3306         `uint8_byte_table' and `uint16_byte_table' in UTF-2000.
3307         (syms_of_mule_charset): Add new function
3308         `find-char-attribute-table' in UTF-2000.
3309
3310         * lrecord.h (enum lrecord_type): Add
3311         `lrecord_type_uint16_byte_table' and
3312         `lrecord_type_uint8_byte_table'.
3313
3314         * char-ucs.h (struct Lisp_Uint8_Byte_Table): New structure.
3315         (Lisp_Uint8_Byte_Table): New type.
3316         (XUINT8_BYTE_TABLE): New macro.
3317         (XSETUINT8_BYTE_TABLE): New macro.
3318         (UINT8_BYTE_TABLE_P): New macro.
3319         (GC_UINT8_BYTE_TABLE_P): New macro.
3320         (struct Lisp_Uint16_Byte_Table): New structure.
3321         (Lisp_Uint16_Byte_Table): New type.
3322         (XUINT16_BYTE_TABLE): New macro.
3323         (XSETUINT16_BYTE_TABLE): New macro.
3324         (UINT16_BYTE_TABLE_P): New macro.
3325         (GC_UINT16_BYTE_TABLE_P): New macro.
3326
3327 2000-07-13  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3328
3329         * mule-charset.c (Vcharacter_ideographic_radical_table): Deleted.
3330         (Vcharacter_ideographic_strokes_table): Deleted.
3331         (Vcharacter_total_strokes_table): Deleted.
3332         (Vcharacter_morohashi_daikanwa_table): Deleted.
3333         (Vcharacter_decomposition_table): Deleted.
3334         (Qname): Deleted because it is duplicated.
3335         (Qideographic_radical): Deleted.
3336         (Qideographic_strokes): Deleted.
3337         (Qtotal_strokes): Deleted.
3338         (Qmorohashi_daikanwa): Deleted.
3339         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' for
3340         `ideographic-radical', `ideographic-strokes', `total-strokes',
3341         `morohashi-daikanwa' and `->decomposition'.
3342         (Fget_char_attribute): Likewise.
3343         (Fput_char_attribute): Likewise; use `make-vector' instead of
3344         `make_older_vector' for `->decomposition' value.
3345         (Fdefine_char): Comment out code to check `morohashi-daikanwa' and
3346         `ideograph-daikanwa'.
3347         (syms_of_mule_charset): Delete builtin symbols `name',
3348         `ideographic-radical', `ideographic-strokes', `total-strokes' and
3349         `morohashi-daikanwa'.
3350         (vars_of_mule_charset): Don't setup
3351         `Vcharacter_ideographic_radical_table',
3352         `Vcharacter_ideographic_strokes_table',
3353         `Vcharacter_total_strokes_table',
3354         `Vcharacter_morohashi_daikanwa_table' and
3355         `Vcharacter_decomposition_table'.
3356
3357 2000-06-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3358
3359         * alloc.c: Use `HAVE_GGC' instead of `UTF2000' for
3360         `make_older_vector', `make_vector_newer_1' and
3361         `make_vector_newer'.
3362
3363         * lisp.h: Use `HAVE_GGC' instead of `UTF2000' for
3364         `make_older_vector' and `make_vector_newer'.
3365
3366         * config.h.in (HAVE_GGC): New macro.
3367
3368 2000-06-16  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3369
3370         * mule-charset.c (struct char_attribute_list_closure): New
3371         structure in UTF-2000.
3372         (add_char_attribute_to_list_mapper): New function in UTF-2000.
3373         (Fchar_attribute_list): Likewise.
3374         (Fset_charset_mapping_table): Use `make_vector_newer'.
3375         (Fdecode_builtin_char): New function in UTF-2000.
3376         (syms_of_mule_charset): Add new function `char-attribute-list' and
3377         `decode-builtin-char' in UTF-2000.
3378
3379         * lisp.h (make_vector_newer): New prototype.
3380
3381         * alloc.c (make_vector_newer_1): New function.
3382         (make_vector_newer): New function.
3383
3384 2000-06-14  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3385
3386         * char-ucs.h (MAX_CHAR_DAIKANWA): Changed to `(MIN_CHAR_MOJIKYO +
3387         50100)'.
3388
3389 2000-06-12  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3390
3391         * mule-charset.c (Vchar_attribute_hash_table): New variable.
3392         (Vcharacter_attribute_table): Deleted.
3393         (Vcharacter_name_table): Deleted.
3394         (put_char_attribute): Deleted.
3395         (remove_char_attribute): Deleted.
3396         (struct char_attribute_alist_closure): New structure.
3397         (add_char_attribute_alist_mapper): New function.
3398         (Fchar_attribute_alist): Use `Vchar_attribute_hash_table' instead
3399         of `Vcharacter_attribute_table' and `Vcharacter_name_table'.
3400         (Fget_char_attribute): Likewise.
3401         (Fput_char_attribute): Likewise.
3402         (Fremove_char_attribute): Use `Vchar_attribute_hash_table' instead
3403         of `remove_char_attribute'.
3404         (Fdefine_char): Return character.
3405         (vars_of_mule_charset): Don't setup `Vcharacter_attribute_table'
3406         and `Vcharacter_name_table'.
3407         (complex_vars_of_mule_charset): Likewise
3408         `Vchar_attribute_hash_table'.
3409
3410 2000-06-10  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3411
3412         * character.h (CHARC_CHARSET): New macro.
3413         (CHARC_CHARSET_ID): New macro.
3414         (CHARC_CODE_POINT): New macro.
3415         (CHARC_COLUMNS): New macro.
3416         (CHARC_TO_CHAR): New inline function.
3417         (CHARC_EQ): New inline function.
3418         (CHARC_ASCII_EQ): New inline function.
3419         (CHARC_IS_SPACE): New inline function.
3420         (ASCII_TO_CHARC): New inline function.
3421
3422         * char-ucs.h (encode_char_2): Deleted.
3423         (ENCODE_CHAR): Use `encode_char_1' again.
3424         (breakup_char_1): Likewise.
3425         (CHAR_TO_CHARC): New inline function.
3426
3427         * char-lb.h, char-1byte.h (CHAR_TO_CHARC): New inline function.
3428
3429 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3430
3431         * redisplay.c (add_emchar_rune): Use `ASCII_TO_CHARC',
3432         `CHAR_TO_CHARC' and `CHARC_CHARSET'.
3433         (create_text_block): Use `CHARC_ASCII_EQ' and `CHARC_IS_SPACE'.
3434         (generate_formatted_string_db): Use `CHARC_TO_CHAR'.
3435         (create_string_text_block): Use `CHARC_ASCII_EQ' and
3436         `CHARC_IS_SPACE'.
3437         (pixel_to_glyph_translation): Use `CHARC_ASCII_EQ'.
3438
3439         * redisplay-x.c (separate_textual_runs): Use `CHARC_CHARSET' and
3440         `CHARC_CODE_POINT'.
3441         (x_output_display_block): Use `CHARC_CHARSET' and
3442         `CHARC_ASCII_EQ'.
3443
3444         * redisplay-tty.c (tty_output_display_block): Use
3445         `CHARC_ASCII_EQ'.
3446         (tty_output_display_block): Likewise; use `ASCII_TO_CHARC'.
3447
3448         * redisplay-output.c (compare_runes): Use `CHARC_EQ'.
3449
3450         * insdel.c (find_charsets_in_charc_string): Use
3451         `CHARC_CHARSET_ID'.
3452         (charc_string_displayed_columns): Use `CHARC_COLUMNS'.
3453         (convert_bufbyte_string_into_charc_dynarr): Use `CHAR_TO_CHARC'.
3454         (convert_charc_string_into_bufbyte_dynarr): Use `CHARC_TO_CHAR'.
3455         (convert_charc_string_into_malloced_string): Likewise.
3456
3457 2000-06-09  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3458
3459         * toolbar-x.c (x_output_toolbar_button): Use <Charc_dynarr *>
3460         instead of <Emchar_dynarr *> for buf; use
3461         `convert_bufbyte_string_into_charc_dynarr' instead of
3462         `convert_bufbyte_string_into_emchar_dynarr'; use
3463         `find_charsets_in_charc_string' instead of
3464         `find_charsets_in_emchar_string'.
3465
3466         * redisplay.h:
3467         - Include "character.h".
3468         (struct rune): New member `cglyph'; delete member `chr'.
3469
3470         * redisplay.c (redisplay_text_width_charc_string): New function;
3471         delete `redisplay_text_width_emchar_string'.
3472         (rtw_charc_dynarr): New variable; renamed from
3473         `rtw_emchar_dynarr'.
3474         (redisplay_text_width_string): Use `rtw_charc_dynarr' instead of
3475         `rtw_emchar_dynarr'; use
3476         `convert_bufbyte_string_into_charc_dynarr' instead of
3477         `convert_bufbyte_string_into_emchar_dynarr'; use
3478         `redisplay_text_width_charc_string' instead of
3479         `redisplay_text_width_emchar_string'.
3480         (redisplay_frame_text_width_string): Use `rtw_charc_dynarr'
3481         instead of `rtw_emchar_dynarr'; use
3482         `convert_bufbyte_string_into_charc_dynarr' instead of
3483         `convert_bufbyte_string_into_emchar_dynarr'.
3484         (add_emchar_rune): Add <Charc> instead of <Emchar>; use
3485         `redisplay_text_width_charc_string' instead of
3486         `redisplay_text_width_emchar_string'.
3487         (create_text_block): Modify for <struct rune> change.
3488         (generate_formatted_string_db): Likewise.
3489         (create_string_text_block): Likewise.
3490         (pixel_to_glyph_translation): Likewise.
3491
3492         * redisplay-x.c (separate_textual_runs): Use <const Charc *>
3493         instead of <const Emchar *>.
3494         (x_text_width): Likewise.
3495         (x_output_display_block): Use <Charc_dynarr *> instead
3496         <Emchar_dynarr *>; modify for <structure rune> change.
3497         (x_output_string): Use <Charc_dynarr *> instead of <Emchar_dynarr
3498         *>.
3499
3500         * redisplay-tty.c (tty_text_width): Use <const Charc *> instead of
3501         <const Emchar *>; use `charc_string_displayed_columns' instead of
3502         `emchar_string_displayed_columns'.
3503         (tty_output_display_block): Use <Charc_dynarr *> instead of
3504         <Emchar_dynarr *> for buf; modify for <structure rune> change; use
3505         `tty_output_charc_dynarr' instead of `tty_output_emchar_dynarr'.
3506         (tty_output_charc_dynarr_dynarr): New variable; renamed from
3507         `tty_output_emchar_dynarr_dynarr'.
3508         (tty_output_charc_dynarr): New function; delete
3509         `tty_output_charc_dynarr'.
3510
3511         * redisplay-output.c (compare_runes): Modify for `struct rune'.
3512         (redisplay_output_layout): Use <Charc_dynarr *> instead of
3513         <Emchar_dynarr *> for buf; use
3514         `convert_bufbyte_string_into_charc_dynarr' instead of
3515         `convert_bufbyte_string_into_emchar_dynarr'.
3516
3517         * frame.c (title_string_charc_dynarr): New variable; renamed from
3518         `title_string_emchar_dynarr'.
3519         (generate_title_string): Use `title_string_charc_dynarr' instead
3520         of `title_string_emchar_dynarr'; use
3521         `convert_charc_string_into_malloced_string' instead of
3522         `convert_emchar_string_into_malloced_string'.
3523         (init_frame): Use `title_string_charc_dynarr' instead of
3524         `title_string_emchar_dynarr'.
3525
3526         * console.h:
3527         - Include "character.h".
3528         (struct console_methods): Use <const Charc *> instead of <const
3529         Emchar *> in `text_width_method'; use <Charc_dynarr *> instead of
3530         <Emchar_dynarr *> in output_string_method.
3531
3532         * console-x.h (x_output_string): Use <Charc_dynarr *> instead of
3533         <Emchar_dynarr *>.
3534
3535         * console-stream.c (stream_text_width): Use <const Charc *>
3536         instead of <const Emchar *>.
3537
3538         * character.h (Charc_dynarr): New type.
3539
3540         * char-ucs.h (structure Charc): New structure; define new type
3541         `Charc'.
3542
3543         * char-lb.h (DECODE_CHAR): New inline function.
3544         (encode_char_1): New inline function.
3545         (ENCODE_CHAR): New macro.
3546         (structure Charc): New structure; define new type `Charc'.
3547
3548         * char-1byte.h (Vcharset_control_1): New macro.
3549         (Vcharset_latin_iso8859_1): New macro.
3550         (DECODE_CHAR): New inline function.
3551         (encode_char_1): New inline function.
3552         (ENCODE_CHAR): New macro.
3553         (structure Charc): New structure; define new type `Charc'.
3554
3555         * insdel.c (find_charsets_in_charc_string): New function; delete
3556         `find_charsets_in_emchar_string'.
3557         (charc_string_displayed_columns): New function; delete
3558         `emchar_string_displayed_columns'.
3559         (convert_bufbyte_string_into_charc_dynarr): New function; delete
3560         `convert_bufbyte_string_into_emchar_dynarr'.
3561         (convert_charc_string_into_bufbyte_dynarr): New function; delete
3562         `convert_charc_string_into_bufbyte_dynarr'.
3563         (convert_charc_string_into_malloced_string): New function; delete
3564         `convert_charc_string_into_malloced_string'.
3565
3566         * buffer.h (find_charsets_in_charc_string): New prototype; delete
3567         `find_charsets_in_emchar_string'.
3568         (charc_string_displayed_columns): New prototype; delete
3569         `emchar_string_displayed_columns'.
3570         (convert_charc_string_into_bufbyte_dynarr): New prototype; delete
3571         `convert_charc_string_into_bufbyte_dynarr'.
3572         (convert_charc_string_into_malloced_string): New prototype; delete
3573         `convert_charc_string_into_malloced_string'.
3574
3575 2000-06-08  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3576
3577         * select-x.c (Fx_store_cutbuffer_internal): Modify for UTF-2000.
3578
3579 2000-06-07  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3580
3581         * chartab.h (get_non_ascii_char_table_value): Use <Charset_ID>.
3582
3583         * char-ucs.h: Use <short> for <Charset_ID>.
3584
3585         * mule-charset.h, char-1byte.h: Use <unsigned char> for
3586         <Charset_ID>.
3587
3588 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3589
3590         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3591         to 0.16.
3592
3593 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3594
3595         * mule-charset.c (Vcharacter_morohashi_daikanwa_table): New
3596         variable.
3597         (Qmorohashi_daikanwa): New variable.
3598         (Fchar_attribute_alist): Use `Vcharacter_morohashi_daikanwa_table'
3599         for `morohashi-daikanwa' attribute.
3600         (Fget_char_attribute): Likewise.
3601         (Fput_char_attribute): Likewise.
3602         (Fdefine_char): Don't setup `morohashi-daikanwa' attribute if it
3603         has the same value of `ideograph-daikanwa'.
3604         (syms_of_mule_charset): Add new symbol `morohashi-daikanwa'.
3605         (vars_of_mule_charset): Setup
3606         `Vcharacter_morohashi_daikanwa_table'.
3607
3608 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3609
3610         * mule-charset.c (Fchar_attribute_alist): Add coded-charset
3611         attributes.
3612         (add_charset_to_list_mapper): Add `key' instead of
3613         `XCHARSET_NAME (value)' to return aliases.
3614
3615 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3616
3617         * mule-charset.c (Vcharacter_ideographic_radical_table): New
3618         variable.
3619         (Vcharacter_ideographic_strokes_table): New variable.
3620         (Qideographic_radical): New variable.
3621         (Qideographic_strokes): New variable.
3622         (Fchar_attribute_alist): Use
3623         `Vcharacter_ideographic_radical_table' for `ideographic-radical'
3624         attribute; use `Vcharacter_ideographic_strokes_table' for
3625         `ideographic-strokes' attribute.
3626         (Fget_char_attribute): Likewise.
3627         (Fput_char_attribute): Likewise.
3628         (syms_of_mule_charset): Add new symbol `ideographic-radical' and
3629         `ideographic-strokes'.
3630         (vars_of_mule_charset): Setup
3631         `Vcharacter_ideographic_radical_table' and
3632         `Vcharacter_ideographic_strokes_table'.
3633
3634 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3635
3636         * mule-charset.c (Vcharacter_total_strokes_table): New variable.
3637         (Qtotal_strokes): New variable.
3638         (Fchar_attribute_alist): Use `Vcharacter_total_strokes_table' for
3639         `total-strokes' attribute.
3640         (Fget_char_attribute): Likewise.
3641         (Fput_char_attribute): Likewise.
3642         (syms_of_mule_charset): Add new symbol `total-strokes'.
3643         (vars_of_mule_charset): Setup `Vcharacter_total_strokes_table'.
3644
3645 2000-06-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3646
3647         * mule-charset.c (Vcharacter_decomposition_table): New variable.
3648         (Fchar_attribute_alist): Add `name' and `->decomposition' if they
3649         are found.
3650         (Fget_char_attribute): Use `Vcharacter_decomposition_table' for
3651         `->decomposition' attribute.
3652         (Fput_char_attribute): Likewise.
3653         (vars_of_mule_charset): Setup `Vcharacter_decomposition_table'.
3654
3655 2000-06-01  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3656
3657         * mule-charset.c (decoding_table_check_elements): New function.
3658         (Fset_charset_mapping_table): Use `decoding_table_check_elements'.
3659
3660 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3661
3662         * mule-charset.c (Fset_charset_mapping_table): Use
3663         `put_char_ccs_code_point'.
3664
3665 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3666
3667         * mule-charset.c (decoding_table_put_char): New inline function.
3668         (put_char_ccs_code_point): Use `decoding_table_put_char'.
3669
3670 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3671
3672         * mule-charset.c (CHARSET_BYTE_SIZE): New inline function.
3673         (XCHARSET_BYTE_SIZE): New macro.
3674         (decoding_table_remove_char): New inline function.
3675         (put_char_ccs_code_point): Use `XCHARSET_BYTE_SIZE'; use
3676         `decoding_table_remove_char'.
3677         (remove_char_ccs): Use `decoding_table_remove_char'.
3678         (Fset_charset_mapping_table): Use `CHARSET_BYTE_SIZE'.
3679
3680 2000-05-31  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3681
3682         * mule-charset.c (Vcharacter_name_table): New variable.
3683         (Qname): New variable.
3684         (Fget_char_attribute): Use `Vcharacter_name_table' for `name'
3685         attribute.
3686         (Fput_char_attribute): Use function `put_char_ccs_code_point'; use
3687         `Vcharacter_name_table' for `name' attribute.
3688         (Fremove_char_attribute): Use function `remove_char_ccs'.
3689         (put_char_ccs_code_point): New function.
3690         (remove_char_ccs): New function.
3691         (syms_of_mule_charset): Add new symbol `name'.
3692         (vars_of_mule_charset): Setup `Vcharacter_name_table'.
3693
3694 2000-05-30  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3695
3696         * mule-charset.c (make_byte_table): Add new argument `older'.
3697         (make_char_id_table): Likewise.
3698         (copy_char_id_table): Comment out because it is not used.
3699         (put_char_id_table): Modify for `make_byte_table'.
3700         (Fput_char_attribute): Make encoding_table as older object;
3701         inherit older bit of `Vcharacter_composition_table'.
3702         (mark_charset): Don't mark `cs->encoding_table'.
3703         (vars_of_mule_charset): Make `Vcharacter_attribute_table' as a
3704         normal object; make `Vcharacter_composition_table' as an older
3705         object; delete staticpro for `Vcharacter_composition_table'; make
3706         `Vcharacter_variant_table' as a normal object.
3707
3708         * alloc.c (alloc_older_lcrecord): New function in UTF-2000.
3709         (mark_object): Don't check older object in UTF-2000.
3710
3711         * lrecord.h (struct lrecord_header): Add new member `older' in
3712         UTF-2000.
3713         (set_lheader_implementation): Setup `SLI_header->older' in
3714         UTF-2000.
3715         (set_lheader_older_implementation): New macro in UTF-2000.
3716         (OLDER_RECORD_P): New macro in UTF-2000.
3717         (OLDER_RECORD_HEADER_P): New macro in UTF-2000.
3718         (alloc_older_lcrecord): New prototype in UTF-2000.
3719         (alloc_older_lcrecord_type): New macro in UTF-2000.
3720
3721 2000-05-29  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3722
3723         * mule-charset.c (byte_table_description): Use
3724         `XD_LISP_OBJECT_ARRAY' instead of `XD_LISP_OBJECT'.
3725         (char_id_table_description): Delete bogus `, 1'.
3726         (Fget_char_attribute): Refer encoding_table of each coded-charset
3727         to get value of coded-charset attribute of a character.
3728         (Fput_char_attribute): Use `make_older_vector' instead of
3729         `make_vector'; use encoding_table of each coded-charset to store
3730         value of coded-charset attribute of a character.
3731         (Fremove_char_attribute): Use encoding_table of each coded-charset
3732         to store value of coded-charset attribute of a character.
3733         (mark_charset): Mark `cs->encoding_table'; don't mark
3734         `cs->decoding_table'.
3735         (charset_description): Add description of new member
3736         `encoding_table'.
3737         (make_charset): Initialize `encoding_table'.
3738
3739         * char-ucs.h (struct Lisp_Charset): Add new member
3740         `encoding_table'.
3741         (CHARSET_ENCODING_TABLE): New macro.
3742         (XCHARSET_ENCODING_TABLE): New macro.
3743         (charset_code_point): New implementation.
3744         (encode_char_1): Likewise.
3745
3746         * alloc.c (all_older_lcrecords): New variable in UTF-2000.
3747         (disksave_object_finalization_1): Call finalizers of
3748         `all_older_lcrecords' in UTF-2000.
3749         (make_older_vector): New function in UTF-2000.
3750         (reinit_alloc_once_early): Initialize `all_older_lcrecords' in
3751         UTF-2000.
3752
3753         * lisp.h (make_older_vector): New prototype in UTF-2000.
3754
3755 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3756
3757         * lrecord.h (enum lrecord_type): Rename
3758         `lrecord_type_char_code_table' to `lrecord_type_char_id_table'.
3759
3760         * text-coding.c (COMPOSE_ADD_CHAR): Use `CHAR_ID_TABLE_P' and
3761         `get_char_id_table' instead of `CHAR_CODE_TABLE_P' and
3762         `get_char_code_table'.
3763
3764         * mule-charset.c (mark_char_id_table): Renamed from
3765         `mark_char_code_table'.
3766         (char_id_table_equal): Renamed from `char_code_table_equal'.
3767         (char_id_table_hash): Renamed from `char_code_table_hash'.
3768         (make_char_id_table): Renamed from `make_char_code_table'.
3769         (copy_char_id_table): Renamed from `copy_char_code_table'.
3770         (get_char_id_table): Renamed from `get_char_code_table'.
3771         (put_char_id_table): Renamed from `put_char_code_table'.
3772         (to_char_id): Renamed from `to_char_code'.
3773
3774         * char-ucs.h (struct Lisp_Char_ID_Table): Renamed from
3775         `Lisp_Char_Code_Table'.
3776         (char_id_table): Renamed from `char_code_table'.
3777         (XCHAR_ID_TABLE): Renamed from `XCHAR_CODE_TABLE'.
3778         (XSETCHAR_ID_TABLE): Renamed from `XSETCHAR_CODE_TABLE'.
3779         (CHAR_ID_TABLE_P): Renamed from `CHAR_CODE_TABLE_P'.
3780         (GC_CHAR_ID_TABLE_P): Renamed from `GC_CHAR_CODE_TABLE_P'.
3781         (get_char_id_table): Renamed from `get_char_code_table'.
3782
3783 2000-05-22  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3784
3785         * lrecord.h (enum lrecord_type): Rename
3786         `lrecord_type_char_byte_table' to `lrecord_type_byte_table'.
3787
3788         * mule-charset.c (mark_byte_table): Renamed from
3789         `mark_char_byte_table'.
3790         (byte_table_equal): Renamed from `char_byte_table_equal'.
3791         (byte_table_hash): Renamed from `byte_table_hash'.
3792         (make_byte_table): Renamed from `make_byte_table'.
3793         (copy_byte_table): Renamed from `copy_char_byte_table'.
3794
3795         * char-ucs.h (struct Lisp_Byte_Table): Renamed from
3796         `Lisp_Char_Byte_Table'.
3797         (byte_table): Renamed from `char_byte_table'.
3798         (XBYTE_TABLE): Renamed from `XCHAR_BYTE_TABLE'.
3799         (XSETBYTE_TABLE): Renamed from `XSET_CHAR_BYTE_TABLE'.
3800         (BYTE_TABLE_P): Renamed from `XBYTE_TABLE_P'.
3801         (GC_BYTE_TABLE_P): Renamed from `GC_CHAR_BYTE_TABLE_P'.
3802
3803 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3804
3805         * buffer.c (dfc_convert_to_external_format): Modify for UTF-2000.
3806         (dfc_convert_to_internal_format): Likewise.
3807         
3808         * text-coding.c (Fcoding_system_canonical_name_p): New function.
3809         * text-coding.c (Fcoding_system_alias_p): New function.
3810         * text-coding.c (Fcoding_system_aliasee): New function.
3811         * text-coding.c (append_suffix_to_symbol): New function.
3812         * text-coding.c (dangling_coding_system_alias_p): New function.
3813         * text-coding.c (Ffind_coding_system):
3814         * text-coding.c (Fcopy_coding_system):
3815         * text-coding.c (encode_coding_no_conversion):
3816         * text-coding.c (syms_of_file_coding):
3817         * text-coding.c (vars_of_file_coding):
3818         Rewrite coding system alias code.
3819         Allow nested aliases, like symbolic links.
3820         Allow redefinition of coding system aliases.
3821         Prevent existence of dangling coding system aliases.
3822         Eliminate convert_to_external_format.
3823         Eliminate convert_to_internal_format.
3824         
3825         * text-coding.c: Change enum eol_type to eol_type_t.
3826
3827 2000-05-02  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3828
3829         * mule-charset.c (encode_builtin_char_1): Limit builtin-code-range
3830         of `mojikyo' to MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3831
3832         * char-ucs.h (MAX_CHAR_MOJIKYO): Limit builtin-code-range to
3833         MIN_CHAR_MOJIKYO + 94 * 60 * 22.
3834
3835 2000-04-28  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3836
3837         * mule-charset.c (encode_builtin_char_1): Use `mojikyo' instead of
3838         `ideograph-daikanwa'.
3839
3840         * char-ucs.h (Vcharset_ucs): Deleted because it is not used.
3841         (Vcharset_ucs_bmp): Likewise.
3842         (Vcharset_mojikyo): Add new extern variable definition.
3843         (Vcharset_latin_iso8859_2): Deleted because it is not used.
3844         (Vcharset_latin_iso8859_3): Likewise.
3845         (Vcharset_latin_iso8859_4): Likewise.
3846         (Vcharset_latin_iso8859_9): Likewise.
3847         (Vcharset_latin_viscii_lower): Likewise.
3848         (Vcharset_latin_viscii_upper): Likewise.
3849         (DECODE_CHAR): If charset is `mojikyo-pj-N', corresponding
3850         `mojikyo' code-point is used to decode.
3851         (encode_char_2): New function [to convert `mojikyo' code-point to
3852         Mojikyo font encoding].
3853         (ENCODE_CHAR): Use `encode_char_2' instead of `encode_code_1'.
3854         (breakup_char_1): Likewise.
3855         (CHAR_CHARSET): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR'.
3856
3857 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3858
3859         * text-coding.c (Fmake_coding_system): Add document about
3860         `disable-composition' property.
3861
3862 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3863
3864         * text-coding.c (Qdisable_composition): New variable; delete
3865         `Qcomposite'.
3866         (Fmake_coding_system): Add new property `disable-composite';
3867         delete property `composite'.
3868         (COMPOSE_ADD_CHAR): Use `CODING_SYSTEM_DISABLE_COMPOSITION'
3869         instead of `!CODING_SYSTEM_COMPOSITE'.
3870         (syms_of_file_coding): Add new symbol `disable-composition';
3871         delete symbol `composite'.
3872
3873         * file-coding.h (struct Lisp_Coding_System): Add
3874         `disable_composition'; delete `enable_composition'.
3875         (CODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3876         `CODING_SYSTEM_COMPOSITE'.
3877         (XCODING_SYSTEM_DISABLE_COMPOSITION): New macro; delete
3878         `XCODING_SYSTEM_COMPOSITE'.
3879
3880 2000-04-27  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3881
3882         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
3883         to 0.15.
3884
3885 2000-04-26  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3886
3887         * text-coding.c (Qcomposite): New variable.
3888         (Fmake_coding_system): Add new property `composite'.
3889         (struct decoding_stream): Add `combined_char_count',
3890         `combined_chars' and `combining_table' in UTF-2000.
3891         (COMPOSE_FLUSH_CHARS): New macro.
3892         (COMPOSE_ADD_CHAR): New macro.
3893         (reset_decoding_stream): Reset `str->combined_char_count' and
3894         `str->combining_table' in UTF-2000.
3895         (decode_coding_iso2022): Modify for character-decomposition.
3896         (syms_of_file_coding): Add new symbol `composite'.
3897
3898 2000-04-25  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3899
3900         * mule-charset.c (Vcharset_latin_tcvn5712): New variable.
3901         (Fput_char_attribute): Set up `Vcharacter_variant_table' instead
3902         of `Vcharacter_composition_table' if `->decomposition' property
3903         has only 1 element.
3904         (Qlatin_tcvn5712): New variable.
3905         (syms_of_mule_charset): Add new symbol `latin-tcvn5712'.
3906         (complex_vars_of_mule_charset): Add new coded-charset
3907         `latin-tcvn5712'.
3908
3909         * char-ucs.h (LEADING_BYTE_LATIN_TCVN5712): New macro.
3910
3911 2000-04-20  MORIOKA Tomohiko  <tomo@kanji.zinbun.kyoto-u.ac.jp>
3912
3913         * file-coding.h (struct Lisp_Coding_System): Add
3914         `enable_composition'.
3915         (CODING_SYSTEM_COMPOSITE): New macro.
3916         (XCODING_SYSTEM_COMPOSITE): New macro.
3917
3918 2000-03-17  MORIOKA Tomohiko  <tomo@m17n.org>
3919
3920         * mule-canna.c (c2mu): Fix problem with UTF-2000.
3921
3922 2000-03-16  MORIOKA Tomohiko  <tomo@m17n.org>
3923
3924         * mule-charset.c (Fput_char_attribute): Don't make mapping-table
3925         if ATTRIBUTE is `ucs' and character-id of CHARACTER = VALUE.
3926
3927 2000-02-24  MORIOKA Tomohiko  <tomo@m17n.org>
3928
3929         * mule-charset.c (Vcharset_mojikyo): New variable.
3930         (Fdefine_char): Don't use coded-charset which does not have
3931         non-builtin character range to allocate character-id.
3932         (Qmojikyo): New variable.
3933         (syms_of_mule_charset): Add new symbol `mojikyo'.
3934         (complex_vars_of_mule_charset): Add new coded-charset `mojikyo'.
3935
3936         * char-ucs.h (LEADING_BYTE_DAIKANWA_EKANJI): New macro.
3937         (LEADING_BYTE_MOJIKYO): New macro.
3938         (MIN_CHAR_MOJIKYO): New macro.
3939         (MIN_CHAR_DAIKANWA): Use `MIN_CHAR_MOJIKYO'.
3940         (MAX_CHAR_MOJIKYO): New macro.
3941
3942 2000-02-12  MORIOKA Tomohiko  <tomo@m17n.org>
3943
3944         * mule-charset.c (remove_char_attribute): Fixed.
3945
3946 2000-02-08  MORIOKA Tomohiko  <tomo@m17n.org>
3947
3948         * mule-charset.c (remove_char_attribute): New function.
3949         (Fremove_char_attribute): New function.
3950         (encode_builtin_char_1): Comment out builtin-support for
3951         greek-iso8859-7 and cyrillic-iso8859-5.
3952         (Fdecode_char): Check `code' is an integer.
3953         (syms_of_mule_charset): Add `remove-char-attribute'.
3954         (MIN_CHAR_GREEK): Deleted.
3955         (MAX_CHAR_GREEK): Likewise.
3956         (MIN_CHAR_CYRILLIC): Likewise.
3957         (MAX_CHAR_CYRILLIC): Likewise.
3958         (complex_vars_of_mule_charset): Don't use MIN_CHAR_GREEK and
3959         MAX_CHAR_GREEK for `greek-iso8859-7'.
3960
3961         * char-ucs.h (MIN_CHAR_GREEK): Comment out.
3962         (MAX_CHAR_GREEK): Likewise.
3963         (MIN_CHAR_CYRILLIC): Likewise.
3964         (MAX_CHAR_CYRILLIC): Likewise.
3965
3966 2000-02-02  MORIOKA Tomohiko  <tomo@m17n.org>
3967
3968         * mule-charset.c (Fdefine_char): Fix problem when new code-point
3969         format is used without `ucs' property.
3970         (Fdecode_char): Fix problem with GR representation.
3971         (complex_vars_of_mule_charset): Don't use `MIN_CHAR_CYRILLIC' and
3972         `MAX_CHAR_CYRILLIC' as range of builtin `cyrillic-iso8859-5'.
3973
3974 2000-01-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
3975
3976         * mule-charset.c (make_builtin_char): New function.
3977         (encode_builtin_char_1): Check ISO-2022-charset is defined or not.
3978         (Fset_charset_mapping_table): Modify for new representation of
3979         code-point.
3980         (Fdecode_char): New function.
3981         (syms_of_mule_charset): Add new builtin function `decode-char' in
3982         UTF-2000.
3983
3984         * char-ucs.h (make_builtin_char): New prototype.
3985         (DECODE_CHAR): New inline function.
3986         (MAKE_CHAR): Use `DECODE_CHAR'.
3987
3988 2000-01-28  MORIOKA Tomohiko  <tomo@m17n.org>
3989
3990         * text-coding.c (parse_charset_conversion_specs): Use
3991         `XCHARSET_CHARS' and `XCHARSET_DIMENSION' instead of
3992         `XCHARSET_TYPE'.
3993         (iso2022_designate): Likewise.
3994
3995         * chartab.c (decode_char_table_range): Use `XCHARSET_CHARS' and
3996         `XCHARSET_DIMENSION' instead of `XCHARSET_TYPE'.
3997
3998         * mule-charset.c (Vcharset_ucs): New variable.
3999         (print_charset): Change design; use `CHARSET_CHARS' and
4000         `CHARSET_DIMENSION' instead of `CHARSET_TYPE'.
4001         (make_charset): Change signature to specify `chars' and
4002         `dimension' instead of `type'.
4003         (range_charset_code_point): Modify for 256^n-set.
4004         (encode_builtin_char_1): Encode as `ucs' in default.
4005         (Fmake_charset): Modify for `make_charset'.
4006         (Fmake_reverse_direction_charset): Likewise.
4007         (Fsplit_char): Use `ENCODE_CHAR' instead of `BREAKUP_CHAR' in
4008         UTF-2000.
4009         (complex_vars_of_mule_charset): Add coded-charset `ucs'; modify
4010         for `make_charset'.
4011
4012         * char-ucs.h (Vcharset_ucs): New variable.
4013         (LEADING_BYTE_UCS): New macro.
4014         (struct Lisp_Charset): Delete `type'; change type of `dimension'
4015         and `chars' to `unsigned short' from `unsigned int'.
4016         (CHARSET_TYPE): Deleted.
4017         (XCHARSET_TYPE): Deleted.
4018
4019 2000-01-27  MORIOKA Tomohiko  <tomo@m17n.org>
4020
4021         * mule-charset.c (charset_code_point): Moved to char-ucs.h.
4022
4023         * char-ucs.h (charset_code_point): Moved from mule-charset.c.
4024         (ENCODE_CHAR): New macro.
4025
4026 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4027
4028         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4029         to 0.14 (Kawachi-Katakami).
4030
4031 2000-01-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
4032
4033         * text-coding.c (char_encode_shift_jis): Modify for
4034         `charset_code_point'.
4035         (char_encode_iso2022): Likewise.
4036
4037         * mule-charset.c (Fput_char_attribute): Use <Lisp_Object>
4038         (integer) instead of list of <Lisp_Object>s (integers) as the
4039         format of code-point of a coded-charset.
4040         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4041         (encode_builtin_char_1): New function; delete
4042         `split_builtin_char'.
4043         (charset_code_point): Return <int> instead of <Lisp_Object>.
4044         (Fsplit_char): Don't use `SPLIT_CHAR'.
4045
4046         * char-ucs.h (encode_builtin_char_1): New prototype; delete
4047         prototype for `split_builtin_char'.
4048         (range_charset_code_point): Return <int> instead of <Lisp_Object>.
4049         (charset_code_point): Likewise.
4050         (encode_char_1): New inline function; delete `SPLIT_CHAR'.
4051         (breakup_char_1): Use `encode_char_1' instead of `SPLIT_CHAR'.
4052
4053 2000-01-20  MORIOKA Tomohiko  <tomo@m17n.org>
4054
4055         * mule-charset.c (complex_vars_of_mule_charset): Don't define
4056         `japanese-jisx0208-1990' in non-UTF-2000 Mule.
4057
4058 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4059
4060         * mule-charset.c (split_builtin_char): Don't support OBS_94x94.
4061
4062         * char-ucs.h (MIN_CHAR_OBS_94x94): Deleted.
4063         (MAX_CHAR_OBS_94x94): Deleted.
4064
4065 2000-01-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4066
4067         * mule-charset.c (split_builtin_char): Use `MAX_CHAR_BMP'.
4068
4069         * char-ucs.h (MAX_CHAR_BMP): New macro.
4070
4071 2000-01-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4072
4073         * text-coding.c: Sync with r21-2-24.
4074
4075 2000-01-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
4076
4077         * file-coding.c: Modify for UTF-2000.
4078
4079 2000-01-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4080
4081         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4082         to 0.13 (Takaida).
4083
4084 2000-01-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
4085
4086         * mule-charset.c (split_builtin_char): Delete builtin support for
4087         `katakana-jisx0201'.
4088         (complex_vars_of_mule_charset): Don't map `katakana-jisx0201' to
4089         BMP area in builtin representation.
4090
4091         * char-ucs.h (MAKE_CHAR): Delete builtin support for
4092         `Vcharset_katakana_jisx0201'.
4093
4094 1999-12-24  MORIOKA Tomohiko  <tomo@etl.go.jp>
4095
4096         * mule-charset.c (Vcharset_mojikyo_pj_[1 .. 21]): New variable.
4097         (Qisolated): New variable.
4098         (Qinitial): New variable.
4099         (Qmedial): New variable.
4100         (Qfinal): New variable.
4101         (Qvertical): New variable.
4102         (Qsmall): New variable.
4103         (to_char_code): Use `Qisolated', `Qinitial', `Qmedial', `Qfinal',
4104         `Qvertical' and `Qsmall'.
4105         (Qmojikyo_pj_[1 .. 21]): New variable.
4106         (syms_of_mule_charset): Add new symbols `isolated', `initial',
4107         `medial', `final', `vertical', `small' and `mojikyo-pj-[1 .. 21]'.
4108         (complex_vars_of_mule_charset): Add new charset `mojikyo-pj-[1
4109         .. 21]'.
4110
4111 1999-11-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4112
4113         * char-ucs.h (MIN_LEADING_BYTE): Changed to -0x60.
4114         (LEADING_BYTE_MOJIKYO_PJ_[1 .. 21]): New macros.
4115         (MAX_LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 32)'.
4116
4117 1999-11-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4118
4119         * mule-charset.c (Vcharset_japanese_jisx0208_1990): New variable.
4120         (Fdefine_char): Use Group 00 Plane 10 for non-coded variants of
4121         BMP.
4122         (Qjapanese_jisx0208_1990): New variable.
4123         (syms_of_mule_charset): Add new symbol `Qjapanese_jisx0208_1990'.
4124         (complex_vars_of_mule_charset): Add new coded-charset
4125         `japanese-jisx0208-1990'.
4126
4127         * char-ucs.h (LEADING_BYTE_JAPANESE_JISX0208_1990): New macro.
4128         (MIN_CHAR_JIS_X0208_1990): New macro.
4129         (MAX_CHAR_JIS_X0208_1990): New macro.
4130
4131 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4132
4133         * text-coding.c (char_encode_iso2022): Output `~' if ISO 2022
4134         coded-charset is not found.
4135
4136 1999-11-16  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4137
4138         * mule-charset.c (Fget_char_attribute): Forgot to `CHECK_CHAR'.
4139         (Fdefine_char): Use `Fmake_char'.
4140
4141 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4142
4143         * mule-charset.c (Vcharset_ideograph_daikanwa): New variable.
4144         (Vcharset_hiragana_jisx0208): Deleted.
4145         (Vcharset_katakana_jisx0208): Deleted.
4146         (Qideograph_daikanwa): New variable.
4147         (Qhiragana_jisx0208): Deleted.
4148         (Qkatakana_jisx0208): Deleted.
4149         (split_builtin_char): Split `ideograph-daikanwa'.
4150         (Fsplit_char): New implementation for UTF-2000.
4151         (syms_of_mule_charset): Add new symbol `ideograph-daikanwa';
4152         delete symbol `hiragana-jisx0208' and `katakana-jisx0208'.
4153         (complex_vars_of_mule_charset): Add new coded-charset
4154         `ideograph-daikanwa'; delete coded-charset `hiragana-jisx0208' and
4155         `katakana-jisx0208'.
4156
4157         * char-ucs.h (LEADING_BYTE_DAIKANWA): New macro.
4158         (LEADING_BYTE_HIRAGANA_JISX0208): Deleted.
4159         (LEADING_BYTE_KATAKANA_JISX0208): Deleted.
4160         (MIN_CHAR_DAIKANWA): New macro.
4161         (MAX_CHAR_DAIKANWA): New macro.
4162
4163 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4164
4165         * data.c (Fstring_to_number): Don't recognize floating point if
4166         base is not 10.
4167
4168 1999-11-15  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4169
4170         * mule-charset.c (Fput_char_attribute): Forgot to `CHECK_CHAR'.
4171
4172 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4173
4174         * mule-charset.c (Qsquare): New variable.
4175         (to_char_code): Add `Qsquare'.
4176         (syms_of_mule_charset): Add new symbol `square'.
4177
4178 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4179
4180         * mule-charset.c (Qcircle): New variable.
4181         (to_char_code): Add `Qcircle'.
4182         (syms_of_mule_charset): Add new symbol `circle'.
4183
4184 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4185
4186         * mule-charset.c (Qfont): New variable.
4187         (to_char_code): Add `Qfont'.
4188         (syms_of_mule_charset): Add new symbol `font'.
4189
4190 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4191
4192         * mule-charset.c (Qsub): New variable.
4193         (to_char_code): Add `Qsub'.
4194         (syms_of_mule_charset): Add new symbol `sub'.
4195
4196 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4197
4198         * mule-charset.c (Fput_char_attribute): Convert each element of
4199         VALUE to GL position if ATTRIBUTE is a GR-set,
4200
4201 1999-11-14  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4202
4203         * mule-charset.c (Fput_char_attribute): Allow GR code-point if a
4204         coded-charset is a GR-set.
4205
4206 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4207
4208         * mule-charset.c (Fput_char_attribute): Check each element of
4209         VALUE is a byte if ATTRIBUTE is a coded-charset or its name.
4210
4211 1999-11-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4212
4213         * mule-charset.c (Vcharset_ethiopic_ucs): New variable in
4214         UTF-2000.
4215         (Qethiopic_ucs): New variable in UTF-2000.
4216         (syms_of_mule_charset): Add new symbol `ethiopic-ucs' in UTF-2000.
4217         (complex_vars_of_mule_charset): Add new coded-charset
4218         `ethiopic-ucs' in UTF-2000.
4219
4220         * char-ucs.h (LEADING_BYTE_ETHIOPIC_UCS): New macro.
4221         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4222         9)'.
4223         (LEADING_BYTE_KATAKANA_JISX0208): Changed to `(CHARSET_ID_OFFSET -
4224         10)'.
4225         (LEADING_BYTE_PRIVATE): Changed to `(CHARSET_ID_OFFSET - 11)'.
4226
4227 1999-11-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4228
4229         * mule-charset.c (Fset_charset_mapping_table): Fix problem with
4230         `ascii'.
4231
4232 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4233
4234         * mule-charset.c (Vcharacter_variant_table): New variable.
4235         (Q_ucs): New variable.
4236         (Fchar_variants): New function.
4237         (Fput_char_attribute): Register `->ucs' value to
4238         `Vcharacter_variant_table'.
4239         (syms_of_mule_charset): Add new function `char-variants' and new
4240         symbol `->ucs'.
4241         (vars_of_mule_charset): Setup `Vcharacter_variant_table'.
4242
4243 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4244
4245         * mule-charset.c (get_char_code_table): Allow negative character
4246         code.
4247         (put_char_code_table): Likewise.
4248         (Vcharacter_composition_table): New variable.
4249         (Q_decomposition): New variable.
4250         (Qwide): New variable.
4251         (Qnarrow): New variable.
4252         (Qcompat): New variable.
4253         (QnoBreak): New variable.
4254         (Qsuper): New variable.
4255         (Qfraction): New variable.
4256         (to_char_code): New function.
4257         (Fget_composite_char): New function.
4258         (Fput_char_attribute): Register `->decomposition' value to
4259         `Vcharacter_composition_table'.
4260         (syms_of_mule_charset): Add new function `get-composite-char', new
4261         symbol `->decomposition', `wide', `narrow', `compat', `noBreak',
4262         `super' and `fraction'.
4263         (vars_of_mule_charset): Setup `Vcharacter_composition_table'.
4264
4265 1999-11-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4266
4267         * mule-charset.c (Fchar_attribute_alist): Check the argument is a
4268         character; copy the return value.
4269
4270 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4271
4272         * char-ucs.h (SPLIT_CHAR): Use `split_builtin_char'.
4273
4274         * mule-charset.c (range_charset_code_point): Must use make_int.
4275         (split_builtin_char): New function.
4276
4277 1999-11-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4278
4279         * mule-charset.c (char_byte_table): Change name from
4280         "char-code-table" to "char-byte-table".
4281         (mark_char_code_table): New function.
4282         (char_code_table_equal): New function.
4283         (char_code_table_hash): New function.
4284         (char_code_table_description): New constant.
4285         (char_code_table): New type.
4286         (make_char_code_table): New function.
4287         (copy_char_code_table): New function.
4288         (get_char_code_table): Modify for `char_code_table' type.
4289         (put_char_code_table): Likewise.
4290         (vars_of_mule_charset): Update `utf-2000-version' to 0.12
4291         (Kashiwara).
4292
4293         * char-ucs.h (char_code_table): New type.
4294         (XCHAR_CODE_TABLE): New macro.
4295         (XSETCHAR_CODE_TABLE): New macro.
4296         (CHAR_CODE_TABLE_P): New macro.
4297         (GC_CHAR_CODE_TABLE_P): New macro.
4298         (struct Lisp_Char_Code_Table): New structure.
4299
4300 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4301
4302         * mule-charset.c (Fmake_charset): Setup byte_offset for
4303         {94|96}^n-set.
4304
4305 1999-11-09  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4306
4307         * mule-charset.c (Fdefine_char): Fix problem with non-UCS
4308         character.
4309
4310 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4311
4312         * char-ucs.h (SPLIT_CHAR): Don't make new cell if a charset slot
4313         is found.
4314
4315 1999-11-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4316
4317         * mule-charset.c (Fget_char_attribute): If ATTRIBUTE is a name of
4318         charset, it is regarded as a charset.
4319         (put_char_attribute): New function in UTF-2000.
4320         (Fput_char_attribute): If ATTRIBUTE is a charset or a name of
4321         charset, mapping-table of the charset is modified.
4322         (Fdefine_char): New function in UTF-2000.
4323         (Fset_charset_mapping_table): Use `put_char_attribute' instead of
4324         `Fput_char_attribute'.
4325         (syms_of_mule_charset): Add new function `define-char' and new
4326         symbol `ucs' in UTF-2000.
4327         (vars_of_mule_charset): Update `utf-2000-version' to 0.11 (Shiki).
4328
4329 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4330
4331         * mule-charset.c (Fcharset_name): Define `byte_offset' in
4332         non-UTF-2000 configuration.
4333
4334 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4335
4336         * text-coding.c (char_encode_shift_jis): Use `charset_code_point'
4337         not to use `XCHARSET_ENCODING_TABLE (Vcharset_latin_jisx0201)'.
4338
4339         * mule-charset.c (mark_charset): `cs->encoding_table' has been
4340         deleted.
4341         (make_charset): Don't use `CHARSET_ENCODING_TABLE(cs)'.
4342         (Fset_charset_mapping_table): Likewise.
4343
4344         * char-ucs.h (struct Lisp_Charset): Delete `encoding_table'.
4345         (CHARSET_ENCODING_TABLE): Delete.
4346         (XCHARSET_ENCODING_TABLE): Delete.
4347         (charset_code_point): New interface.
4348
4349 1999-10-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
4350
4351         * text-coding.c (char_encode_iso2022): Use `charset_code_point'
4352         instead of `charset_get_byte1' and `charset_get_byte2'.
4353
4354         * mule-charset.c, char-ucs.h (charset_get_byte1): Deleted.
4355         (charset_get_byte2): Deleted.
4356
4357 1999-10-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
4358
4359         * char-ucs.h (SPLIT_CHAR): New inline function.
4360         (breakup_char_1): Use `SPLIT_CHAR'.
4361
4362         * mule-charset.c (range_charset_code_point): New function.
4363         (charset_code_point): New function.
4364
4365         * char-ucs.h (range_charset_code_point): New interface.
4366         (breakup_char_1): Use `range_charset_code_point'.
4367
4368 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4369
4370         * mule-charset.c (Fmake_charset): Delete unused local variable
4371         `code_offset'.
4372
4373         * char-ucs.h (Vcharacter_attribute_table): New extern variable.
4374         (breakup_char_1): Find a charset and code-point in
4375         `Vcharacter_attribute_table'.
4376
4377 1999-10-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4378
4379         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4380         to 0.10 (Yao).
4381
4382 1999-10-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
4383
4384         * mule-charset.c (Vcharacter_attribute_table): New variable.
4385         (Fchar_attribute_alist): New function.
4386         (Fget_char_attribute): New function.
4387         (Fput_char_attribute): New function.
4388         (Fset_charset_mapping_table): Setup `Vcharacter_attribute_table'
4389         too.
4390         (syms_of_mule_charset): Add new function `char-attribute-alist',
4391         `get-char-attribute' and `put-char-attribute'.
4392         (vars_of_mule_charset): Setup `Vcharacter_attribute_table'.
4393
4394 1999-10-19  MORIOKA Tomohiko  <tomo@etl.go.jp>
4395
4396         * mule-charset.c (Fmake_charset): Just use
4397         `get_unallocated_leading_byte'.
4398
4399         * char-ucs.h (LEADING_BYTE_*): Use ISO-IR numbers for official
4400         sets; don't use final-byte based number for private sets.
4401
4402 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4403
4404         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
4405         integer.
4406
4407 1999-10-12  MORIOKA Tomohiko  <tomo@etl.go.jp>
4408
4409         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4410         to 0.9.
4411
4412 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4413
4414         * regex.c (compile_extended_range): Use `CHAR_CHARSET_ID' instead
4415         of `CHAR_LEADING_BYTE' in UTF-2000.
4416
4417         * insdel.c (find_charsets_in_bufbyte_string): Use
4418         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4419         (find_charsets_in_emchar_string): Likewise.
4420
4421         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use
4422         `CHAR_CHARSET_ID' instead of `CHAR_LEADING_BYTE' in UTF-2000.
4423
4424         * char-ucs.h (CHAR_LEADING_BYTE): Deleted.
4425         (CHAR_CHARSET_ID): New macro.
4426
4427 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4428
4429         * chartab.c (get_char_table): Don't use type `Charset_ID' for
4430         charset-id - MIN_LEADING_BYTE.
4431         (put_char_table): Likewise.
4432
4433 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4434
4435         * char-ucs.h (MIN_LEADING_BYTE): Changed to `-0x40'.
4436         (NUM_LEADING_BYTES): Changed to (80 * 3 - MIN_LEADING_BYTE).
4437         (CHARSET_LEADING_BYTE): Don't cast by `Bufbyte'.
4438         (CHARSET_ID_OFFSET): New macro.
4439         (LEADING_BYTE_CONTROL_1): Changed to (CHARSET_ID_OFFSET - 1).
4440         (LEADING_BYTE_UCS_BMP): Changed to (CHARSET_ID_OFFSET - 2).
4441         (LEADING_BYTE_LATIN_VISCII): Changed to (CHARSET_ID_OFFSET - 3).
4442         (LEADING_BYTE_HIRAGANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4443         4).
4444         (LEADING_BYTE_KATAKANA_JISX0208): Changed to (CHARSET_ID_OFFSET -
4445         5).
4446         (MIN_LEADING_BYTE_PRIVATE): Changed to `MIN_LEADING_BYTE'.
4447         (MAX_LEADING_BYTE_PRIVATE): Changed to (CHARSET_ID_OFFSET - 6).
4448         (CHARSET_ID_OFFSET_94): Changed to (CHARSET_ID_OFFSET - '0').
4449         (CHARSET_ID_OFFSET_96): Changed to (CHARSET_ID_OFFSET_94 + 80).
4450         (CHARSET_ID_OFFSET_94x94): Changed to (CHARSET_ID_OFFSET_96 + 80).
4451
4452 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4453
4454         * mule-charset.c (next_allocated_leading_byte): New variable in
4455         UTF-2000.
4456         (next_allocated_1_byte_leading_byte): Don't define in UTF-2000.
4457         (next_allocated_2_byte_leading_byte): Don't define in UTF-2000.
4458         (get_unallocated_leading_byte): Simply use
4459         `next_allocated_leading_byte' [ignore dimension] in UTF-2000.
4460         (vars_of_mule_charset): Setup `next_allocated_leading_byte' in
4461         UTF-2000.
4462
4463         * char-ucs.h (MIN_LEADING_BYTE_PRIVATE): New macro.
4464         (MAX_LEADING_BYTE_PRIVATE): New macro.
4465         (MIN_LEADING_BYTE_OFFICIAL_2): Deleted.
4466         (MAX_LEADING_BYTE_OFFICIAL_2): Deleted.
4467
4468 1999-10-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4469
4470         * mule-charset.c (Fmake_charset): Allocate final-byte based
4471         charset-id for 94-set, 96-set and 94x94-set.
4472
4473 1999-10-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4474
4475         * mule-charset.c (char_byte_table_equal): Fill braces to avoid
4476         ambiguous `else'.
4477         (Fmake_charset): Likewise.
4478         (complex_vars_of_mule_charset): Modify the font registry of
4479         `ucs-bmp' not to match `Ethiopic-Unicode'.
4480
4481 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4482
4483         * mule-charset.c (complex_vars_of_mule_charset): Add font
4484         registory of `ucs-bmp'.
4485
4486 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4487
4488         * text-coding.c (char_encode_iso2022): Ignore non-ISO-2022
4489         coded-charsets in `default-coded-charset-priority-list' when
4490         breaking up a character.
4491
4492         * mule-charset.c (Vcharset_latin_viscii): New variable.
4493         (Qlatin_viscii): New variable.
4494         (make_charset): Don't use `decoding_table'.
4495         (Fmake_charset): Regard graphic = 2 as 256^n-set; setup
4496         byte_offset.
4497         (Fset_charset_mapping_table): New implementation.
4498         (syms_of_mule_charset): Add new symbol `latin-viscii'.
4499         (complex_vars_of_mule_charset): Set `graphic' attribute of charset
4500         `ucs-bmp' and `latin_viscii' to 2; change font registry of charset
4501         `latin-viscii-lower' to "MULEVISCII-LOWER"; change font registry
4502         of charset `latin-viscii-upper' to "MULEVISCII-UPPER"; add new
4503         charset `latin_viscii'.
4504
4505         * char-ucs.h (LEADING_BYTE_LATIN_VISCII): New macro.
4506         (CHARSET_TYPE_94X94): Change to 1 from 2.
4507         (CHARSET_TYPE_96): Change to 2 from 1.
4508         (CHARSET_TYPE_128): New macro.
4509         (CHARSET_TYPE_128X128): Change to 5 from 4.
4510         (CHARSET_TYPE_256): New macro.
4511         (CHARSET_TYPE_256X256): Change to 7 from 5.
4512         (MAKE_CHAR): Use `XCHARSET_BYTE_OFFSET(charset)'.
4513
4514 1999-10-10  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4515
4516         * text-coding.c (char_encode_shift_jis): Refer
4517         `XCHARSET_ENCODING_TABLE(Vcharset_latin_jisx0201)' instead of
4518         `XCHARSET_TO_BYTE1_TABLE(Vcharset_latin_jisx0201)'.
4519
4520         * mule-charset.c (mark_char_byte_table): New function in UTF-2000.
4521         (char_byte_table_equal): New function in UTF-2000.
4522         (char_byte_table_hash): New function in UTF-2000.
4523         (char_byte_table_description): New constant in UTF-2000.
4524         (char_byte_table): New type in UTF-2000.
4525         (make_char_byte_table): New function in UTF-2000.
4526         (copy_char_byte_table): New function in UTF-2000.
4527         (make_char_code_table): New macro in UTF-2000.
4528         (get_char_code_table): New function in UTF-2000.
4529         (put_char_code_table): New function in UTF-2000.
4530         (mark_charset): Mark `cs->encoding_table' in UTF-2000.
4531         (charset_description): Add setting in UTF-2000.
4532         (make_charset): Setup `CHARSET_ENCODING_TABLE(cs)' instead of
4533         `CHARSET_TO_BYTE1_TABLE(cs)'.
4534         (charset_get_byte1): Refer `XCHARSET_ENCODING_TABLE(charset)'
4535         instead of `XCHARSET_TO_BYTE1_TABLE(charset)'.
4536         (charset_get_byte2): Refer `XCHARSET_ENCODING_TABLE(charset)'
4537         instead of `XCHARSET_TO_BYTE2_TABLE(charset)'.
4538         (Fset_charset_mapping_table): Setup `CHARSET_ENCODING_TABLE(cs)'
4539         instead of `CHARSET_TO_BYTE1_TABLE(cs)' and
4540         `CHARSET_TO_BYTE2_TABLE(cs)'.
4541
4542         * char-ucs.h (char_byte_table): New type.
4543         (XCHAR_BYTE_TABLE): New macro.
4544         (XSETCHAR_BYTE_TABLE): New macro.
4545         (CHAR_BYTE_TABLE_P): New macro.
4546         (GC_CHAR_BYTE_TABLE_P): New macro.
4547         (struct Lisp_Char_Byte_Table): New structure.
4548         (get_char_code_table): New interface.
4549         (Emchar_to_byte_table): Deleted.
4550         (get_byte_from_character_table): Deleted.
4551         (struct Lisp_Charset): Add `encoding_table'; delete
4552         `to_byte1_table' and `to_byte2_table'.
4553         (CHARSET_ENCODING_TABLE): New macro.
4554         (CHARSET_TO_BYTE1_TABLE): Deleted.
4555         (CHARSET_TO_BYTE2_TABLE): Deleted.
4556         (XCHARSET_ENCODING_TABLE): New macro.
4557         (XCHARSET_TO_BYTE1_TABLE): Deleted.
4558         (XCHARSET_TO_BYTE2_TABLE): Deleted.
4559
4560 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4561
4562         * mule-charset.c (syms_of_mule_charset): Delete charset alias
4563         `vietnamese-viscii-*'.
4564
4565 1999-10-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
4566
4567         * mule-charset.c (Qvietnamese_viscii_lower): New variable.
4568         (Qvietnamese_viscii_upper): New variable.
4569         (Fdefine_charset_alias): New function.
4570         (syms_of_mule_charset): Add new function `define-charset-alias'.
4571         (syms_of_mule_charset): Rename charset `vietnamese-viscii-*' to
4572         `latin-viscii-*'; define `vietnamese-viscii-*' as aliases for
4573         `latin-viscii-*'.
4574
4575 1999-10-04  MORIOKA Tomohiko  <tomo@etl.go.jp>
4576
4577         * char-ucs.h (MIN_CHAR_OBS_94x94): New macro.
4578         (MAX_CHAR_OBS_94x94): New macro.
4579         (breakup_char_1): Support obsolete XEmacs-UCS private code space
4580         for 94x94 sets.
4581
4582         * mule-charset.c (put_byte_from_character_table): Change unit size
4583         from 128 to 256.
4584         (mark_charset): Don't mark `cs->decoding_table' if `UTF2000' is
4585         not defined.
4586         (Fmake_reverse_direction_charset): Modify dummy argument of
4587         `make_charset' for non-UTF-2000 environment.
4588
4589 1999-10-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4590
4591         * char-ucs.h (MAKE_CHAR): Allow nested decoding-table.
4592
4593         * mule-charset.c (destroy_byte_from_character_table): New macro.
4594         (latin_jisx0201_to_ucs): Deleted.
4595         (latin_iso8859_2_to_ucs): Deleted.
4596         (latin_iso8859_3_to_ucs): Deleted.
4597         (latin_iso8859_4_to_ucs): Deleted.
4598         (latin_iso8859_9_to_ucs): Deleted.
4599         (latin_viscii_lower_to_ucs): Deleted.
4600         (latin_viscii_upper_to_ucs): Deleted.
4601         (mark_charset): Mark `cs->decoding_table'.
4602         (Fcharset_mapping_table): Fix DOC-string.
4603         (Fset_charset_mapping_table): New function.
4604         (syms_of_mule_charset): Add nwe function
4605         `set-charset-mapping-table'.
4606         (complex_vars_of_mule_charset): Don't setup and use
4607         `latin_*_to_ucs'.
4608
4609 1999-10-01  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4610
4611         * char-ucs.h (MAKE_CHAR): Check the result for range-represented
4612         charset.
4613
4614 1999-09-30  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4615
4616         * mule-charset.c (Vcharset_hiragana_jisx0208): New variable.
4617         (Vcharset_katakana_jisx0208): New variable.
4618         (Qhiragana_jisx0208): New variable.
4619         (Qkatakana_jisx0208): New variable.
4620         (make_charset): Add new argument `byte_offset'.
4621         (charset_get_byte1): Modify for new coded-charset definition; use
4622         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4623         `XCHARSET_BYTE_OFFSET'.
4624         (Fmake_charset): Modify for `make_charset'.
4625         (Fmake_reverse_direction_charset): Likewise.
4626         (syms_of_mule_charset): Add new symbols `hiragana-jisx0208' and
4627         `katakana-jisx0208'.
4628         (complex_vars_of_mule_charset): Modify for `make_charset'; quote
4629         `.'  in font registry of charset `katakana-jisx0201',
4630         `latin-jisx0201', `vietnamese-viscii-lower' and
4631         `vietnamese-viscii-upper'; modify DOC-string of charset
4632         `japanese-jisx0208-1978' and `japanese-jisx0208'; modify font
4633         registry of charset `japanese-jisx0208' not to use font for JIS
4634         X0208:1990; add new charset `hiragana-jisx0208' and
4635         `katakana-jisx0208'.
4636
4637         * char-ucs.h (LEADING_BYTE_HIRAGANA_JISX0208): New macro.
4638         (LEADING_BYTE_KATAKANA_JISX0208): New macro.
4639         (struct Lisp_Charset): Add `byte_offset'.
4640         (CHARSET_BYTE_OFFSET): New macro.
4641         (XCHARSET_UCS_MIN): New macro.
4642         (XCHARSET_UCS_MAX): New macro.
4643         (XCHARSET_CODE_OFFSET): New macro.
4644         (XCHARSET_BYTE_OFFSET): New macro.
4645         (MIN_CHAR_HIRAGANA): New macro.
4646         (MAX_CHAR_HIRAGANA): New macro.
4647         (MIN_CHAR_KATAKANA): New macro.
4648         (MAX_CHAR_KATAKANA): New macro.
4649         (MAKE_CHAR): Modify for new coded-charset definition; use
4650         `XCHARSET_UCS_MIN', `XCHARSET_UCS_MAX', `XCHARSET_CODE_OFFSET' and
4651         `XCHARSET_BYTE_OFFSET'.
4652
4653 1999-09-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
4654
4655         * mule-charset.c (CHAR96): Deleted.
4656         (latin_jisx0201_to_ucs): Type is changed from array of <Emchar> to
4657         <Lisp_Object>.
4658         (latin_iso8859_2_to_ucs): Likewise.
4659         (latin_iso8859_3_to_ucs): Likewise.
4660         (latin_iso8859_4_to_ucs): Likewise.
4661         (latin_iso8859_9_to_ucs): Likewise.
4662         (latin_viscii_lower_to_ucs): Likewise.
4663         (latin_viscii_upper_to_ucs): Likewise.
4664         (latin_tcvn5712_to_ucs): Commented out.
4665         (make_charset): Change type of argument `decoding_table' from
4666         <Emchar*> to <Lisp_Object> [vector of characters].
4667         (Fmake_charset): Modify for `make_charset'.
4668         (Fmake_reverse_direction_charset): Likewise.
4669         (Fcharset_mapping_table): New function in UTF-2000.
4670         (syms_of_mule_charset): Setup `Fcharset_mapping_table' in
4671         UTF-2000.
4672         (complex_vars_of_mule_charset): Modify for type change of
4673         `*_to_ucs'; modify for `make_charset'.
4674
4675         * char-ucs.h (struct Lisp_Charset): Change type of
4676         `decoding_table' from <Emchar*> to <Lisp_Object>.
4677         (MAKE_CHAR): Modify for new specification of `decoding_table'.
4678
4679 1999-09-23  MORIOKA Tomohiko  <tomo@etl.go.jp>
4680
4681         * mule-charset.c (Fmake_reverse_direction_charset): Fix compile
4682         error with non-UTF-2000-Mule.
4683
4684 1999-09-21  MORIOKA Tomohiko  <tomo@etl.go.jp>
4685
4686         * mule-charset.c (Vcharset_chinese_cns11643_3): Deleted [defined
4687         in lisp again].
4688         (Vcharset_chinese_cns11643_4): Likewise.
4689         (Vcharset_chinese_cns11643_5): Likewise.
4690         (Vcharset_chinese_cns11643_6): Likewise.
4691         (Vcharset_chinese_cns11643_7): Likewise.
4692         (Qchinese_cns11643_3): Likewise.
4693         (Qchinese_cns11643_4): Likewise.
4694         (Qchinese_cns11643_5): Likewise.
4695         (Qchinese_cns11643_6): Likewise.
4696         (Qchinese_cns11643_7): Likewise.
4697         (syms_of_mule_charset): Move definitions for `chinese-cns11643-3',
4698         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
4699         and `chinese-cns11643-7' to lisp/mule/chinese.el.
4700         (complex_vars_of_mule_charset): Likewise.
4701
4702 1999-09-18  MORIOKA Tomohiko  <tomo@etl.go.jp>
4703
4704         * mule-charset.c (charset_get_byte1): Fix bug about 94- and
4705         96-set.
4706         (Fmake_reverse_direction_charset): Inherit CHARSET_DECODING_TABLE,
4707         CHARSET_UCS_MIN, CHARSET_UCS_MAX and CHARSET_CODE_OFFSET.
4708
4709 1999-09-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
4710
4711         * char-ucs.h (MIN_CHAR_HALFWIDTH_KATAKANA): Changed to 0xFF61 from
4712         0xFF60.
4713         (MAKE_CHAR): Change offset for katakana-jisx0201 to 33 from 0x20.
4714         (breakup_char_1): Likewise.
4715
4716         * text-coding.c (char_encode_iso2022): Keep designated charsets if
4717         one of them includes the specified character.
4718
4719 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4720
4721         * mule-charset.c: Update `utf-2000-version' to 0.8 (Kami).
4722
4723 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4724
4725         * char-ucs.h (MAKE_CHAR): Fix problem in 2-dimension charset.
4726
4727 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4728
4729         * mule-charset.c (latin_iso8859_2_to_ucs NULL): Add pseudo
4730         definition for non-UTF-2000 Mule.
4731         (latin_iso8859_3_to_ucs): Likewise.
4732         (latin_iso8859_4_to_ucs): Likewise.
4733         (latin_iso8859_9_to_ucs): Likewise.
4734         (latin_jisx0201_to_ucs): Likewise.
4735         (MIN_CHAR_THAI): Likewise.
4736         (MAX_CHAR_THAI): Likewise.
4737         (MIN_CHAR_GREEK): Likewise.
4738         (MAX_CHAR_GREEK): Likewise.
4739         (MIN_CHAR_HEBREW): Likewise.
4740         (MAX_CHAR_HEBREW): Likewise.
4741         (MIN_CHAR_HALFWIDTH_KATAKANA): Likewise.
4742         (MAX_CHAR_HALFWIDTH_KATAKANA): Likewise.
4743         (MIN_CHAR_CYRILLIC): Likewise.
4744         (MAX_CHAR_CYRILLIC): Likewise.
4745
4746 1999-09-14  MORIOKA Tomohiko  <tomo@etl.go.jp>
4747
4748         * char-ucs.h (breakup_char_1): Use
4749         `Vdefault_coded_charset_priority_list' for hebrew-iso8859-8,
4750         thai-tis620 and katakana-jisx0201 area.
4751
4752 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4753
4754         * char-ucs.h (breakup_char_1): Use
4755         `Vdefault_coded_charset_priority_list' for cyrillic-iso8859-5
4756         area.
4757
4758         * text-coding.c (reset_encoding_stream): Fixed.
4759         (char_encode_ucs4): Delete `& 255'.
4760
4761         * char-ucs.h (breakup_char_1): Use
4762         `Vdefault_coded_charset_priority_list' for greek-iso8859-7 area.
4763
4764 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4765
4766         * file-coding.c (Fmake_coding_system): Don't set up
4767         `codesys->fixed.size'.
4768         (encode_coding_no_conversion): Don't refer
4769         `str->codesys->fixed.size'.
4770
4771 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4772
4773         * mule-charset.c, char-ucs.h (latin_a_char_to_charset): Deleted.
4774         (latin_a_char_to_byte1): Deleted.
4775         (latin_a_char_to_byte2): Deleted.
4776
4777 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4778
4779         * mule-charset.c (make_charset): Add new argument `ucs_min',
4780         `ucs_max' and `code_offset'.
4781         (charset_get_byte1): New implementation [delete specific charset
4782         depended implementations].
4783         (Fmake_charset): Modify for `make_charset'.
4784         (Fmake_reverse_direction_charset): Likewise.
4785         (complex_vars_of_mule_charset): Likewise.
4786
4787         * char-ucs.h (struct Lisp_Charset): Add `ucs_min', `ucs_max' and
4788         `code_offset'.
4789         (CHARSET_UCS_MIN): New macro.
4790         (CHARSET_UCS_MAX): New macro.
4791         (CHARSET_CODE_OFFSET): New macro.
4792         (MAKE_CHAR): Delete charset depended definitions [except
4793         katakana-jisx0201].
4794
4795 1999-09-13  MORIOKA Tomohiko  <tomo@etl.go.jp>
4796
4797         * char-ucs.h (breakup_char_1): Use
4798         `Vdefault_coded_charset_priority_list' for C0-Controls,
4799         Basic-Latin, C1-Controls and Latin-1-Supplement area.
4800
4801 1999-09-13  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4802
4803         * char-ucs.h (charset_get_byte1): New function.
4804         (XCHARSET_GET_BYTE1): Deleted.
4805         (charset_get_byte2): New function.
4806         (XCHARSET_GET_BYTE2): Deleted.
4807         (Vdefault_coded_charset_priority_list): New external variable.
4808         (breakup_char_1): Use `charset_get_byte1', `charset_get_byte2' and
4809         `Vdefault_preferred_coded_charset_list'.
4810
4811         * mule-charset.c (charset_get_byte1): New function.
4812         (charset_get_byte2): New function.
4813         (Vdefault_coded_charset_priority_list): New variable.
4814         (vars_of_mule_charset): Add new variable
4815         `default-coded-charset-priority-list'.
4816
4817 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4818
4819         * char-ucs.h (XCHARSET_GET_BYTE1): New inline function.
4820         (XCHARSET_GET_BYTE2): New inline function.
4821         (breakup_char_1): Use `XCHARSET_GET_BYTE1' and
4822         `XCHARSET_GET_BYTE2'.
4823
4824 1999-09-12  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4825
4826         * mule-charset.c (make_charset): Initialize
4827         `CHARSET_TO_BYTE1_TABLE(cs)' and `CHARSET_TO_BYTE2_TABLE(cs)' by
4828         NULL if table is not defined.
4829
4830 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4831
4832         * text-coding.c (char_encode_shift_jis): Use
4833         `XCHARSET_TO_BYTE1_TABLE' for `Vcharset_latin_jisx0201' instead of
4834         `ucs_to_latin_jisx0201'.
4835
4836         * mule-charset.c (ucs_to_latin_jisx0201): Deleted.
4837         (ucs_to_latin_iso8859_2): Deleted.
4838         (ucs_to_latin_iso8859_3): Deleted.
4839         (ucs_to_latin_iso8859_4): Deleted.
4840         (ucs_to_latin_iso8859_9): Deleted.
4841         (ucs_to_latin_viscii_lower): Deleted.
4842         (ucs_to_latin_viscii_upper): Deleted.
4843         (ucs_to_latin_tcvn5712): Deleted.
4844         (make_charset): Add new argument `decoding_table'; set up
4845         `CHARSET_DECODING_TABLE(cs)' in UTF-2000; set up
4846         `CHARSET_TO_BYTE1_TABLE(cs)' for 94-set and 96-set if
4847         `decoding_table' is defined in UTF-2000.
4848         (Fmake_charset): Modify for `make_charset'.
4849         (Fmake_reverse_direction_charset): Likewise.
4850         (complex_vars_of_mule_charset): Likewise; delete `GENERATE_94_SET'
4851         and `GENERATE_96_SET'.
4852
4853         * char-ucs.h (latin_jisx0201_to_ucs): Deleted.
4854         (ucs_to_latin_jisx0201): Deleted.
4855         (latin_iso8859_2_to_ucs): Deleted.
4856         (ucs_to_latin_iso8859_2): Deleted.
4857         (latin_iso8859_3_to_ucs): Deleted.
4858         (ucs_to_latin_iso8859_3): Deleted.
4859         (latin_iso8859_4_to_ucs): Deleted.
4860         (ucs_to_latin_iso8859_4): Deleted.
4861         (latin_iso8859_9_to_ucs): Deleted.
4862         (ucs_to_latin_iso8859_9): Deleted.
4863         (latin_viscii_lower_to_ucs): Deleted.
4864         (ucs_to_latin_viscii_lower): Deleted.
4865         (latin_viscii_upper_to_ucs): Deleted.
4866         (ucs_to_latin_viscii_upper): Deleted.
4867         (struct Lisp_Charset): Renamed `encoding_table' to
4868         `to_byte1_table'; add `to_byte2_table'.
4869         (CHARSET_DECODING_TABLE): New macro.
4870         (CHARSET_TO_BYTE1_TABLE): New macro.
4871         (CHARSET_TO_BYTE2_TABLE): New macro.
4872         (XCHARSET_DECODING_TABLE): New macro.
4873         (XCHARSET_TO_BYTE1_TABLE): New macro.
4874         (XCHARSET_TO_BYTE2_TABLE): New macro.
4875         (MAKE_CHAR): Use `XCHARSET_DECODING_TABLE'; don't use `*_to_ucs'
4876         tables.
4877         (breakup_char_1): Use `XCHARSET_TO_BYTE1_TABLE' if it is defined;
4878         don't use `ucs_to_*' tables.
4879
4880 1999-09-11  MORIOKA Tomohiko  <tomo@urania.m17n.org>
4881
4882         * text-coding.c (Fmake_coding_system): Don't set up
4883         `codesys->fixed.size'.
4884         (encode_coding_no_conversion): Use `if' instead of `switch'.
4885
4886         * file-coding.h (struct Lisp_Coding_System): Delete `fixed.size'.
4887
4888 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4889
4890         * mule-charset.c (make_charset): Delete argument `rep_bytes'.
4891         (Fmake_charset): Modify for `make_charset'.
4892         (Fmake_reverse_direction_charset): Likewise.
4893         (complex_vars_of_mule_charset): Likewise.
4894
4895 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4896
4897         * text-coding.c (char_encode_shift_jis): Use table
4898         `ucs_to_latin_jisx0201' and BREAKUP_CHAR.
4899
4900 1999-09-11  MORIOKA Tomohiko  <tomo@etl.go.jp>
4901
4902         * text-coding.c (text_encode_generic): Use `if' instead of
4903         `switch'.
4904         (decode_coding_sjis): Use `MAKE_CHAR' and `DECODE_ADD_UCS_CHAR' to
4905         decode JIS-Latin.
4906
4907 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4908
4909         * text-coding.c (encode_coding_sjis): Deleted.
4910         (char_encode_shift_jis): New function.
4911         (char_finish_shift_jis): New function.
4912         (reset_encoding_stream): Set up `encode_char' and `finish' for
4913         `CODESYS_UCS4' and `CODESYS_SHIFT_JIS'.
4914         (mule_encode): Use generic encoder for `CODESYS_SHIFT_JIS'.
4915         (char_encode_utf8): Treat `eol_type'.
4916
4917 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4918
4919         * file-coding.c (decode_coding_iso2022): Use
4920         `DECODE_ADD_UCS_CHAR'; don't use `XCHARSET_REP_BYTES'.
4921
4922 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4923
4924         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
4925         to 0.7 (Hirano).
4926
4927 1999-09-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
4928
4929         * char-lb.h (CHAR_COLUMNS): New macro.
4930
4931 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4932
4933         * text-coding.c (char_encode_ucs4): New function.
4934         (char_finish_ucs4): New function.
4935         (encode_coding_ucs4): Deleted.
4936         (mule_encode): Use generic encoder for `CODESYS_UCS4'.
4937         (text_encode_generic): Delete local variable `charset' and `half'.
4938         (ucs_to_mule_table): Deleted.
4939         (mule_to_ucs_table): Deleted.
4940         (Fset_ucs_char): Deleted.
4941         (ucs_to_char): Deleted.
4942         (Fucs_char): Deleted.
4943         (Fset_char_ucs): Deleted.
4944         (Fchar_ucs): Deleted.
4945         (decode_ucs4): Deleted.
4946         (mule_char_to_ucs4): Deleted.
4947         (encode_ucs4): Deleted.
4948         (decode_coding_ucs4): Use `DECODE_ADD_UCS_CHAR'.
4949         (decode_coding_utf8): Likewise.
4950         (decode_coding_iso2022): Likewise; don't use `XCHARSET_REP_BYTES'.
4951         (char_encode_iso2022): Fixed.
4952         (syms_of_file_coding): Delete `Fset_ucs_char', `Fucs_char',
4953         `Fset_char_ucs' and `Fchar_ucs'.
4954         (complex_vars_of_file_coding): Don't initialize
4955         `ucs_to_mule_table'.
4956
4957         * objects-tty.c (tty_initialize_font_instance): Don't use
4958         `XCHARSET_COLUMNS'.
4959
4960         * mule-charset.c (make_charset): Don't set up CHARSET_REP_BYTES in
4961         UTF-2000.
4962
4963         * redisplay-tty.c (tty_output_display_block): Use `CHAR_COLUMNS'
4964         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4965
4966         * insdel.c (bufbyte_string_displayed_columns): Use `CHAR_COLUMNS'
4967         instead of `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4968         (emchar_string_displayed_columns): Likewise.
4969
4970         * indent.c (column_at_point): Use `CHAR_COLUMNS' instead of
4971         `XCHARSET_COLUMNS' and `CHAR_CHARSET'.
4972         (string_column_at_point): Likewise.
4973         (Fmove_to_column): Likewise.
4974
4975         * char-ucs.h (struct Lisp_Charset): Delete `rep_bytes'; add
4976         `encoding_table' and `decoding_table'.
4977         (CHARSET_REP_BYTES): Deleted.
4978         (XCHARSET_REP_BYTES): Deleted.
4979         (XCHARSET_COLUMNS): Deleted.
4980         (CHAR_COLUMNS): New macro.
4981         (lookup_composite_char): Deleted unconditionally.
4982         (composite_char_string): Likewise.
4983
4984 1999-09-09  MORIOKA Tomohiko  <tomo@etl.go.jp>
4985
4986         * char-ucs.h (Emchar_to_byte_table): New type.
4987         (get_byte_from_character_table): New function interface.
4988         (Vcharset_latin_jisx0201): New variable.
4989         (latin_jisx0201_to_ucs): New variable.
4990         (ucs_to_latin_jisx0201): New variable.
4991         (Vcharset_latin_iso8859_2): New variable.
4992         (latin_iso8859_2_to_ucs): New variable.
4993         (ucs_to_latin_iso8859_2): New variable.
4994         (Vcharset_latin_iso8859_3): New variable.
4995         (latin_iso8859_3_to_ucs): New variable.
4996         (ucs_to_latin_iso8859_3): New variable.
4997         (Vcharset_latin_iso8859_4): New variable.
4998         (latin_iso8859_4_to_ucs): New variable.
4999         (ucs_to_latin_iso8859_4): New variable.
5000         (Vcharset_latin_iso8859_9): New variable.
5001         (latin_iso8859_9_to_ucs): New variable.
5002         (ucs_to_latin_iso8859_9): New variable.
5003         (Vcharset_latin_viscii_lower): New variable.
5004         (latin_viscii_lower_to_ucs): New variable.
5005         (ucs_to_latin_viscii_lower): New variable.
5006         (Vcharset_latin_viscii_upper): New variable.
5007         (latin_viscii_upper_to_ucs): New variable.
5008         (ucs_to_latin_viscii_upper): New variable.
5009         (CHARSET_ID_OFFSET_94): Changed from 0x60 to 0x55.
5010         (LEADING_BYTE_LATIN_VISCII_LOWER): New macro.
5011         (LEADING_BYTE_LATIN_VISCII_UPPER): New macro.
5012         (MAKE_CHAR): Map `latin-iso8859-2', `latin-iso8859-3',
5013         `latin-iso8859-4', `latin-iso8859-9', `latin-jisx0201',
5014         `vietnamese-viscii-lower' and `vietnamese-viscii-upper' to BMP.
5015         (breakup_char_1): Use `ucs_to_latin_iso8859_2',
5016         `ucs_to_latin_iso8859_3', `ucs_to_latin_iso8859_4',
5017         `ucs_to_latin_iso8859_9', `ucs_to_latin_viscii_lower',
5018         `ucs_to_latin_viscii_upper' and `ucs_to_latin_jisx0201' tables.
5019
5020         * mule-charset.c (Vcharset_latin_viscii_lower): New variable.
5021         (Vcharset_latin_viscii_upper): New variable.
5022         (make_byte_from_character_table): New function.
5023         (put_byte_from_character_table): New function.
5024         (get_byte_from_character_table): New function.
5025         (CHAR96): New macro.
5026         (ucs_to_latin_jisx0201): New variable.
5027         (latin_jisx0201_to_ucs): New variable.
5028         (ucs_to_latin_iso8859_2): New variable.
5029         (latin_iso8859_2_to_ucs): New variable.
5030         (ucs_to_latin_iso8859_3): New variable.
5031         (latin_iso8859_3_to_ucs): New variable.
5032         (ucs_to_latin_iso8859_4): New variable.
5033         (latin_iso8859_4_to_ucs): New variable.
5034         (ucs_to_latin_iso8859_9): New variable.
5035         (latin_iso8859_9_to_ucs): New variable.
5036         (ucs_to_latin_viscii_lower): New variable.
5037         (latin_viscii_lower_to_ucs): New variable.
5038         (ucs_to_latin_viscii_upper): New variable.
5039         (latin_viscii_upper_to_ucs): New variable.
5040         (ucs_to_latin_tcvn5712): New variable.
5041         (latin_tcvn5712_to_ucs): New variable.
5042         (Qlatin_viscii_lower): New variable.
5043         (Qlatin_viscii_upper): New variable.
5044         (syms_of_mule_charset): Set up new symbol
5045         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'.
5046         (complex_vars_of_mule_charset): Set up new charset
5047         `vietnamese-viscii-lower' and `vietnamese-viscii-upper'; new macro
5048         `GENERATE_94_SET' and `GENERATE_96_SET'; use them to generate
5049         `ucs_to_<CHARSET>' tables.
5050
5051 1999-09-08  MORIOKA Tomohiko  <tomo@etl.go.jp>
5052
5053         * text-coding.c: New file.
5054
5055 1999-09-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
5056
5057         * mule-charset.c (Fmake_char): Fix problem of 256-set.
5058
5059         * char-ucs.h (Vcharset_ucs_bmp): New variable.
5060         (MAKE_CHAR): Modify for `ucs-bmp'.
5061         (breakup_char_1): Return `ucs-bmp' and code point of BMP for
5062         non-MULE characters of BMP.
5063
5064 1999-09-06  MORIOKA Tomohiko  <tomo@etl.go.jp>
5065
5066         * mule-charset.c (vars_of_mule_charset): Update `utf-2000-version'
5067         to 0.6.
5068
5069 1999-09-05  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5070
5071         * lstream.h:
5072         - Include multibyte.h instead of character.h for `BYTE_ASCII_P'.
5073         - Include character.h for `CHAR_ASCII_P'.
5074
5075         * mb-multibyte.h (CHAR_MULTIBYTE_P): Moved from mule-charset.h.
5076
5077         * mule-charset.h (CHAR_MULTIBYTE_P): Moved to mb-multibyte.h.
5078         (CHAR_ASCII_P): Don't use `CHAR_MULTIBYTE_P'.
5079
5080         * mb-multibyte.h (BYTE_ASCII_P): Moved from char-ucs.h.
5081         (BYTE_C0_P): Likewise.
5082         (BYTE_C1_P): Likewise.
5083         (Lstream_get_emchar_1): Likewise.
5084         (Lstream_fput_emchar): Likewise.
5085         (Lstream_funget_emchar): Likewise.
5086         (copy_internal_to_external): Likewise.
5087         (copy_external_to_internal): Likewise.
5088
5089         * char-ucs.h (BYTE_ASCII_P): Moved to mb-multibyte.h.
5090         (BYTE_C0_P): Likewise.
5091         (BYTE_C1_P): Likewise.
5092         (Lstream_get_emchar_1): Likewise.
5093         (Lstream_fput_emchar): Likewise.
5094         (Lstream_funget_emchar): Likewise.
5095         (copy_internal_to_external): Likewise.
5096         (copy_external_to_internal): Likewise.
5097
5098         * mb-1byte.h (BYTE_ASCII_P): Moved from buffer.h.
5099         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5100
5101         * buffer.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-1byte.h.
5102         (BYTE_ASCII_P): Moved to mb-1byte.h.
5103
5104 1999-09-04  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5105
5106         * mb-utf-8.h, mb-lb.h: Include mb-multibyte.h.
5107
5108         * multibyte.h: Include mb-1byte.h in unibyte-XEmacs.
5109         (MAX_EMCHAR_LEN): Moved to mb-1byte.h.
5110         (VALID_CHARPTR_P): Moved to mb-*byte.h.
5111         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5112         (VALIDATE_CHARPTR_FORWARD): Likewise.
5113         (simple_charptr_emchar): Moved to mb-multibyte.h.
5114         (simple_set_charptr_emchar): Likewise.
5115         (simple_charptr_copy_char): Likewise.
5116         (non_ascii_charptr_emchar): Likewise.
5117         (non_ascii_set_charptr_emchar): Likewise.
5118         (non_ascii_charptr_copy_char): Likewise.
5119         (charptr_emchar): Moved to mb-*byte.h.
5120         (set_charptr_emchar): Likewise.
5121         (charptr_copy_char): Likewise.
5122
5123         * mb-1byte.h, mb-multibyte.h: New files.
5124
5125 1999-09-03  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5126
5127         * mb-utf-8.h (MULTIBYTE): New macro.
5128         (MAX_EMCHAR_LEN): Moved from buffer.h.
5129         (REP_BYTES_BY_FIRST_BYTE): Moved from char-ucs.h.
5130
5131         * char-ucs.h (REP_BYTES_BY_FIRST_BYTE): Moved to mb-utf-8.h.
5132
5133         * mb-lb.h, multibyte.h: New files.
5134
5135         * char-1byte.h (Charset_ID): Moved from buffer.h.
5136         (MIN_LEADING_BYTE): Likewise.
5137         (LEADING_BYTE_ASCII): Likewise.
5138         (NUM_LEADING_BYTES): Likewise.
5139         (CHARSETP): Likewise.
5140         (CHARSET_BY_LEADING_BYTE): Likewise.
5141         (XCHARSET_LEADING_BYTE): Likewise.
5142         (XCHARSET_GRAPHIC): Likewise.
5143         (XCHARSET_COLUMNS): Likewise.
5144         (XCHARSET_DIMENSION): Likewise.
5145         (CHAR_CHARSET): Likewise.
5146         (CHAR_LEADING_BYTE): Likewise.
5147         (BREAKUP_CHAR): Likewise.
5148         (Vcharset_ascii): Likewise.
5149
5150         * buffer.h: Include multibyte.h unconditionally.
5151         (VALID_CHARPTR_P): Moved to multibyte.h.
5152         (ASSERT_VALID_CHARPTR): Likewise.
5153         (REAL_INC_CHARPTR): Likewise.
5154         (REAL_INC_CHARBYTIND): Likewise.
5155         (REAL_DEC_CHARPTR): Likewise.
5156         (INC_CHARPTR): Likewise.
5157         (INC_CHARBYTIND): Likewise.
5158         (DEC_CHARPTR): Likewise.
5159         (VALIDATE_CHARPTR_BACKWARD): Likewise.
5160         (VALIDATE_CHARPTR_FORWARD): Likewise.
5161         (charptr_n_addr): Likewise.
5162         (MAX_EMCHAR_LEN): Moved to mb-*.h.
5163         (simple_charptr_emchar): Moved to multibyte.h.
5164         (simple_set_charptr_emchar): Likewise.
5165         (simple_charptr_copy_char): Likewise.
5166         (non_ascii_charptr_emchar): Likewise.
5167         (non_ascii_set_charptr_emchar): Likewise.
5168         (non_ascii_charptr_copy_char): Likewise.
5169         (charptr_emchar): Likewise.
5170         (set_charptr_emchar): Likewise.
5171         (charptr_copy_char): Likewise.
5172         (charptr_emchar_n): Likewise.
5173         (Charset_ID): Moved to char-1byte.h.
5174         (Vcharset_ascii): Likewise.
5175         (CHAR_CHARSET): Likewise.
5176         (CHAR_LEADING_BYTE): Likewise.
5177         (LEADING_BYTE_ASCII): Likewise.
5178         (NUM_LEADING_BYTES): Likewise.
5179         (MIN_LEADING_BYTE): Likewise.
5180         (CHARSETP): Likewise.
5181         (CHARSET_BY_LEADING_BYTE): Likewise.
5182         (XCHARSET_LEADING_BYTE): Likewise.
5183         (XCHARSET_GRAPHIC): Likewise.
5184         (XCHARSET_COLUMNS): Likewise.
5185         (XCHARSET_DIMENSION): Likewise.
5186         (BREAKUP_CHAR): Likewise.
5187
5188 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5189
5190         * character.h: Add document about interface for characters.
5191
5192         * char-ucs.h (CHAR_ASCII_P): Modify name of argument.
5193         (MAKE_CHAR): Delete comment about
5194         `FIELD2_TO_OFFICIAL_LEADING_BYTE' and
5195         `FIELD2_TO_PRIVATE_LEADING_BYTE'.
5196         (BREAKUP_CHAR): Modify name of arguments.
5197         (CHAR_CHARSET): Modify name of argument.
5198
5199         * buffer.h: Delete document about Emchar accessors.
5200
5201 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5202
5203         * character.h (CHAR_INTP): Moved from buffer.h
5204         (CHAR_OR_CHAR_INTP): Likewise.
5205         (XCHAR_OR_CHAR_INT): Likewise.
5206         (CHECK_CHAR_COERCE_INT): Likewise.
5207
5208         * buffer.h (CHAR_INTP): Moved to character.h
5209         (CHAR_OR_CHAR_INTP): Likewise.
5210         (XCHAR_OR_CHAR_INT): Likewise.
5211         (CHECK_CHAR_COERCE_INT): Likewise.
5212
5213 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5214
5215         * character.h:
5216         - Move definitions about UCS-2000 (UCS-4) to char-ucs.h.
5217         - Include char-1byte.h, char-lb.h or char-ucs.h.
5218
5219         * mb-utf-8.h (CHAR_ASCII_P): Moved to char-ucs.h.
5220
5221         * buffer.h: Include character unconditionally.
5222         (valid_char_p): Moved to char-*.h.
5223         (non_ascii_valid_char_p): Moved to char-lb.h.
5224
5225         * char-1byte.h, char-lb.h, char-ucs.h: New files.
5226
5227 1999-09-02  MORIOKA Tomohiko  <tomo@urania.m17n.org>
5228
5229         * mule-ccl.c (ccl_driver): Don't define `CCL_WriteMultibyteChar2'
5230         in UTF-2000 because it is not ported yet and not to use
5231         `FIELD2_TO_OFFICIAL_LEADING_BYTE', `MIN_LEADING_BYTE_OFFICIAL_2',
5232         `FIELD1_TO_OFFICIAL_LEADING_BYTE' and
5233         `FIELD1_TO_PRIVATE_LEADING_BYTE'.
5234
5235         * mb-utf-8.h (CHAR_MULTIBYTE_P): Moved from character.h.
5236         (CHAR_ASCII_P): Moved from character.h.
5237
5238         * character.h (CHAR_MULTIBYTE_P): Moved to mb-utf-8.h.
5239         (CHAR_ASCII_P): Likewise.
5240         (CHAR_FIELD1_MASK): Deleted.
5241         (CHAR_FIELD2_MASK): Deleted.
5242         (CHAR_FIELD3_MASK): Deleted.
5243         (MAX_CHAR_BASIC_LATIN): New macro.
5244         (CHAR_FIELD1): Deleted.
5245         (CHAR_FIELD2_INTERNAL): Deleted.
5246         (CHAR_FIELD3_INTERNAL): Deleted.
5247         (FIELD1_TO_PRIVATE_LEADING_BYTE): Deleted.
5248         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Deleted.
5249         (FIELD2_TO_PRIVATE_LEADING_BYTE): Deleted.
5250         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Deleted.
5251         (MIN_CHAR_FIELD1_OFFICIAL): Deleted.
5252         (MAX_CHAR_FIELD1_OFFICIAL): Deleted.
5253         (MIN_CHAR_FIELD2_PRIVATE): Deleted.
5254         (MAX_CHAR_FIELD2_PRIVATE): Deleted.
5255         (MIN_CHAR_FIELD1_PRIVATE): Deleted.
5256         (MAX_CHAR_FIELD1_PRIVATE): Deleted.
5257         (MULE_CHAR_PRIVATE_OFFSET): Deleted.
5258         (MIN_CHAR_PRIVATE_TYPE9N): Deleted.
5259         (MAX_CHAR_PRIVATE_TYPE9N): Deleted.
5260         (MIN_CHAR_PRIVATE_TYPE9NX9N): Deleted.
5261         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Deleted.
5262         (MIN_CHAR_COMPOSITION): Deleted.
5263         (breakup_char_1): Use `MAX_CHAR_BASIC_LATIN' instead of
5264         `CHAR_ASCII_P'; use `0x7f' instead of `CHAR_FIELD3_INTERNAL'.
5265
5266 1999-09-02  MORIOKA Tomohiko  <tomo@m17n.org>
5267
5268         * buffer.h: Include mb-utf-8.h in UTF-2000.
5269
5270         * character.h (BUFBYTE_FIRST_BYTE_P): Moved to mb-utf-8.h.
5271
5272         * mb-utf-8.h: New file.
5273
5274 1999-09-02  MORIOKA Tomohiko  <tomo@etl.go.jp>
5275
5276         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use `Charset_ID'
5277         instead of `int'.
5278
5279         * mule-charset.h, buffer.h (Charset_ID): New type.
5280
5281 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5282
5283         * mule-canna.c (c2mu): Use `MAKE_CHAR',
5284         `Vcharset_japanese_jisx0212' and `Vcharset_japanese_jisx0208'
5285         instead of `MULE_CHAR_PRIVATE_OFFSET',
5286         `LEADING_BYTE_JAPANESE_JISX0212', `LEADING_BYTE_JAPANESE_JISX0208'
5287         and `FIELD1_TO_OFFICIAL_LEADING_BYTE'.
5288         (m2c): Use `BREAKUP_CHAR' and `XCHARSET_FINAL'.
5289
5290         * character.h (Vcharset_japanese_jisx0212): New variable
5291         definition.
5292
5293 1999-09-01  MORIOKA Tomohiko  <tomo@etl.go.jp>
5294
5295         * mule-charset.c (Vcharset_ucs_bmp): New variable in UTF-2000.
5296         (charset_by_attributes): Delete array about direction.
5297         (latin_a_char_to_charset): New variable in UTF-2000.
5298         (latin_a_char_to_byte1): New variable in UTF-2000.
5299         (latin_a_char_to_byte2): New variable in UTF-2000.
5300         (Qucs_bmp): New variable.
5301         (next_allocated_1_byte_leading_byte): Use `Charset_ID' instead of
5302         `Bufbyte'.
5303         (next_allocated_2_byte_leading_byte): Likewise.
5304         (non_ascii_set_charptr_emchar): Likewise.
5305         (make_charset): Likewise; add `CHARSET_TYPE_128X128' and
5306         `CHARSET_TYPE_256X256' in UTF-2000; modify for
5307         `charset_by_attributes'.
5308         (get_unallocated_leading_byte): Use `Charset_ID' instead of `int'.
5309         (char-charset): Use `CHAR_CHARSET' instead of `CHAR_LEADING_BYTE'
5310         and `CHARSET_BY_LEADING_BYTE'.
5311         (syms_of_mule_charset): Set up `ucs-bmp'; move setting of
5312         `utf-2000-version' to `vars_of_mule_charset'.
5313         (vars_of_mule_charset): Modify for `charset_by_attributes'; don't
5314         define `leading-code-private-11' in UTF-2000; move setting of
5315         `utf-2000-version' from `syms_of_mule_charset'.
5316         (complex_vars_of_mule_charset): Set up charset `ucs-bmp' in
5317         UTF-2000.
5318
5319         * character.h (Charset_ID): New type.
5320         (LEADING_BYTE_UCS_BMP): New macro.
5321         (LEADING_BYTE_CONTROL_1): Changed from 0x8F to 0x81.
5322         (CHARSET_ID_OFFSET_94): New macro.
5323         (MIN_CHARSET_ID_PRIVATE_94): New macro.
5324         (MAX_CHARSET_ID_PRIVATE_94): New macro.
5325         (LEADING_BYTE_ASCII): Changed to use CHARSET_ID_OFFSET_94 and
5326         final-byte.
5327         (LEADING_BYTE_KATAKANA_JISX0201): Likewise.
5328         (LEADING_BYTE_LATIN_JISX0201): Likewise.
5329         (CHARSET_ID_OFFSET_96): New macro.
5330         (LEADING_BYTE_LATIN_ISO8859_1): Changed to use
5331         CHARSET_ID_OFFSET_96 and final-byte.
5332         (LEADING_BYTE_LATIN_ISO8859_2): Likewise.
5333         (LEADING_BYTE_LATIN_ISO8859_3): Likewise.
5334         (LEADING_BYTE_LATIN_ISO8859_4): Likewise.
5335         (LEADING_BYTE_GREEK_ISO8859_7): Likewise.
5336         (LEADING_BYTE_ARABIC_ISO8859_6): Likewise.
5337         (LEADING_BYTE_HEBREW_ISO8859_8): Likewise.
5338         (LEADING_BYTE_CYRILLIC_ISO8859_5): Likewise.
5339         (LEADING_BYTE_LATIN_ISO8859_9): Likewise.
5340         (LEADING_BYTE_THAI_TIS620): Likewise.
5341         (MIN_LEADING_BYTE_PRIVATE_1): Changed from 0x0D0 to 0xD0.
5342         (MAX_LEADING_BYTE_PRIVATE_1): Changed from 0x11f to 0xDF.
5343         (CHARSET_ID_OFFSET_94x94): New macro.
5344         (LEADING_BYTE_CHINESE_BIG5_1): Changed to use
5345         CHARSET_ID_OFFSET_94x94 and final-byte.
5346         (LEADING_BYTE_CHINESE_BIG5_2): Likewise.
5347         (MIN_LEADING_BYTE_PRIVATE_2): Likewise.
5348         (MAX_LEADING_BYTE_PRIVATE_2): Likewise.
5349         (LEADING_BYTE_JAPANESE_JISX0208_1978): Likewise.
5350         (LEADING_BYTE_CHINESE_GB2312): Likewise.
5351         (LEADING_BYTE_JAPANESE_JISX0208): Likewise.
5352         (LEADING_BYTE_KOREAN_KSC5601): Likewise.
5353         (LEADING_BYTE_JAPANESE_JISX0212): Likewise.
5354         (LEADING_BYTE_CHINESE_CCITT_GB): Likewise.
5355         (LEADING_BYTE_CHINESE_CNS11643_*): Likewise.
5356         (LEADING_BYTE_KOREAN_KPS9566): Likewise.
5357         (CHARSET_TYPE_128X128): New macro.
5358         (CHARSET_TYPE_256X256): New macro.
5359         (XCHARSET_PRIVATE_P): Delete unconditionally.
5360         (charset_by_attributes): Delete array about direction.
5361         (CHARSET_BY_LEADING_BYTE): Use `Charset_ID' instead of `int'.
5362         (CHARSET_BY_ATTRIBUTES): Modify for `charset_by_attributes'.
5363         (MIN_CHAR_94): New macro.
5364         (MAX_CHAR_94): New macro.
5365         (MIN_CHAR_96): New macro.
5366         (MAX_CHAR_96): New macro.
5367         (MIN_CHAR_94x94): New macro.
5368         (MAX_CHAR_94x94): New macro.
5369         (MIN_CHAR_96x96): New macro.
5370         (MAX_CHAR_96x96): New macro.
5371         (FIELD1_TO_PRIVATE_LEADING_BYTE): Use `CHARSET_ID_OFFSET_94x94'.
5372         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5373         (FIELD2_TO_PRIVATE_LEADING_BYTE): Use `(MIN_LEADING_BYTE_PRIVATE_1
5374         - 32)'.
5375         (FIELD2_TO_OFFICIAL_LEADING_BYTE): Use `LEADING_BYTE_ASCII'.
5376         (MIN_CHAR_FIELD2_OFFICIAL): Deleted.
5377         (MAX_CHAR_FIELD2_OFFICIAL): Deleted.
5378         (MIN_CHAR_OFFICIAL_TYPE9N): Deleted.
5379         (MAX_CHAR_PRIVATE_TYPE9N): Changed.
5380         (MAKE_CHAR): Use `XCHARSET_FINAL' instead of
5381         `XCHARSET_LEADING_BYTE' to make code-point.
5382         (latin_a_char_to_charset): New variable.
5383         (latin_a_char_to_byte1): New variable.
5384         (latin_a_char_to_byte2): New variable.
5385         (breakup_char_1): Use `latin_a_char_to_{charset|byte1|byte2}' for
5386         Latin Extended-A; use `CHARSET_BY_ATTRIBUTES' instead of
5387         `CHARSET_BY_LEADING_BYTE' to get charset for ISO-2022 characters.
5388
5389         * insdel.c (find_charsets_in_bufbyte_string): Use `Charset_ID'
5390         instead of `unsigned char'; use `MIN_LEADING_BYTE' instead of 128.
5391         (find_charsets_in_emchar_string): Likewise.
5392         (vars_of_insdel): Don't define local variable `i' in UTF-2000.
5393
5394         * file-coding.c (Fdecode_big5_char): Use `Charset_ID' instead of
5395         `int'.
5396         (decode_coding_iso2022): Likewise.
5397
5398         * toolbar-x.c (x_output_toolbar_button): Use `Charset_ID' instead
5399         of `unsigned char'.
5400
5401         * redisplay.c (redisplay_text_width_emchar_string): Use
5402         `Charset_ID' instead of `unsigned char'.
5403         (redisplay_frame_text_width_string): Likewise.
5404
5405         * glyphs.c (glyph_height_internal): Use `Charset_ID' instead of
5406         `unsigned char'.
5407
5408         * faces.h, faces.c (ensure_face_cachel_complete): Use `Charset_ID'
5409         instead of `unsigned char'.
5410         (face_cachel_charset_font_metric_info): Likewise.
5411
5412         * chartab.c (print_char_table): Use `Charset_ID' instead of `int'.
5413         (get_non_ascii_char_table_value): Likewise.
5414         (get_char_table): Likewise.
5415         (put_char_table): Likewise.
5416         (map_over_other_charset): Likewise.
5417         (map_char_table): Likewise.
5418
5419         * buffer.h (find_charsets_in_bufbyte_string): Use `Charset_ID'
5420         instead of `unsigned char'.
5421
5422 1999-08-31  MORIOKA Tomohiko  <tomo@etl.go.jp>
5423
5424         * character.h (PRE_LEADING_BYTE_PRIVATE_1): Deleted.
5425         (PRE_LEADING_BYTE_PRIVATE_2): Deleted.
5426
5427         * mule-charset.c (leading_code_private_11): Don't define in
5428         UTF-2000.
5429
5430         * mule-ccl.c (ccl_driver): Don't define `CCL_ReadMultibyteChar2'
5431         in UTF-2000 because it is not ported yet and not to use
5432         `PRE_LEADING_BYTE_PRIVATE_1' and `PRE_LEADING_BYTE_PRIVATE_2'.
5433
5434 1999-08-30  MORIOKA Tomohiko  <tomo@etl.go.jp>
5435
5436         * character.h (LEADING_BYTE_COMPOSITE): Deleted.
5437
5438 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5439
5440         * regex.c (re_compile_fastmap): Don't use `LEADING_BYTE_PREFIX_P'
5441         in UTF-2000.
5442
5443         * chartab.h (CHAR_TABLE_NON_ASCII_VALUE_UNSAFE): Use int instead
5444         of unsigned char to store leading-byte.
5445
5446         * chartab.c (get_non_ascii_char_table_value): Don't use
5447         `BREAKUP_CHAR_1_UNSAFE' in UTF-2000.
5448
5449         * file-coding.c (encode_coding_big5): Delete bogus implementation
5450         in UTF2000.
5451
5452         * character.h (LEADING_BYTE_*): Delete definition for
5453         non-UTF-2000.
5454         (LEADING_BYTE_PRIVATE_P): Deleted unconditionally.
5455         (LEADING_BYTE_PREFIX_P): Deleted.
5456         (PRIVATE_LEADING_BYTE_PREFIX): Deleted.
5457         (BUFBYTE_FIRST_BYTE_P): Delete definition for non-UTF-2000.
5458         (BUFBYTE_LEADING_BYTE_P): Deleted.
5459         (CHARSET_PRIVATE_P): Deleted unconditionally.
5460         (rep_bytes_by_first_byte): Deleted unconditionally.
5461         (REP_BYTES_BY_FIRST_BYTE): Delete definition for non-UTF-2000.
5462         (FIELD1_TO_PRIVATE_LEADING_BYTE): Likewise.
5463         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Likewise.
5464         (FIELD2_TO_PRIVATE_LEADING_BYTE): Likewise.
5465         (CHAR_FIELD2): Deleted.
5466         (CHAR_FIELD3): Deleted.
5467         (MAKE_CHAR): Delete definition for non-UTF-2000.
5468         (BREAKUP_CHAR_1_UNSAFE): Deleted.
5469         (breakup_char_1): New implementation.
5470         (CHAR_CHARSET): Use `BREAKUP_CHAR'.
5471         (CHAR_LEADING_BYTE): Use `CHAR_CHARSET'.
5472
5473 1999-08-29  MORIOKA Tomohiko  <tomo@etl.go.jp>
5474
5475         * character.h (REP_BYTES_BY_FIRST_BYTE): Change order of
5476         condition.
5477
5478 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5479
5480         * character.h (LEADING_BYTE_PRIVATE_P): Don't define in UTF2000.
5481         (CHARSET_PRIVATE_P): Likewise.
5482         (XCHARSET_PRIVATE_P): Likewise.
5483         (MAKE_CHAR): Don't use XCHARSET_PRIVATE_P in UTF2000.
5484
5485         * file-coding.c (encode_coding_ucs4): Delete bogus implement in
5486         UTF2000.
5487         (decode_coding_iso2022): Don't use XCHARSET_PRIVATE_P in UTF2000.
5488
5489 1999-08-28  MORIOKA Tomohiko  <tomo@etl.go.jp>
5490
5491         * character.h (LEADING_BYTE_*): Changed in UTF2000.
5492         (NUM_LEADING_BYTES): Changed from 128 to 256.
5493         (FIELD1_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5494         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Change value to 0x80 in
5495         UTF2000.
5496         (FIELD2_TO_PRIVATE_LEADING_BYTE): Change value to 0x80 in UTF2000.
5497
5498         * mule-charset.c (Vcharset_chinese_cns11643_3): New variable in
5499         UTF2000.
5500         (Vcharset_chinese_cns11643_4): New variable in UTF2000.
5501         (Vcharset_chinese_cns11643_5): New variable in UTF2000.
5502         (Vcharset_chinese_cns11643_6): New variable in UTF2000.
5503         (Vcharset_chinese_cns11643_7): New variable in UTF2000.
5504         (Qchinese_cns11643_3): New variable in UTF2000.
5505         (Qchinese_cns11643_4): New variable in UTF2000.
5506         (Qchinese_cns11643_5): New variable in UTF2000.
5507         (Qchinese_cns11643_6): New variable in UTF2000.
5508         (Qchinese_cns11643_7): New variable in UTF2000.
5509         (syms_of_mule_charset): Define `chinese-cns11643-3',
5510         `chinese-cns11643-4', `chinese-cns11643-5', `chinese-cns11643-6'
5511         and `chinese-cns11643-7' in UTF2000.
5512         (vars_of_mule_charset): Initialize
5513         next_allocated_2_byte_leading_byte by LEADING_BYTE_CHINESE_BIG5_2
5514         + 1 in UTF2000.
5515         (complex_vars_of_mule_charset): Setup charset
5516         `chinese-cns11643-3', `chinese-cns11643-4', `chinese-cns11643-5',
5517         `chinese-cns11643-6' and `chinese-cns11643-7' in UTF2000.
5518
5519 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5520
5521         * mule-charset.c: Move setting for `leading-code-private-11' from
5522         `syms_of_mule_charset' to `vars_of_mule_charset'.
5523
5524 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5525
5526         * mule-charset.h (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE'
5527         and `NUM_LEADING_BYTES' in assert.
5528
5529 1999-08-27  MORIOKA Tomohiko  <tomo@etl.go.jp>
5530
5531         * character.h (charset_by_leading_byte): Use `NUM_LEADING_BYTES'
5532         instead of 128.
5533         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' and
5534         `NUM_LEADING_BYTES' instead of 128.
5535
5536 1999-08-26  MORIOKA Tomohiko  <tomo@etl.go.jp>
5537
5538         * mule-charset.h (charset_by_leading_byte): Use
5539         `NUM_LEADING_BYTES' instead of 128.
5540         (CHARSET_BY_LEADING_BYTE): Use `MIN_LEADING_BYTE' instead of 128.
5541
5542         * mule-charset.c (charset_by_leading_byte): Use
5543         `NUM_LEADING_BYTES' instead of 128.
5544         (make_charset): Use `MIN_LEADING_BYTE' instead of 128.
5545
5546         * faces.h (FACE_CACHEL_FONT): Use `MIN_LEADING_BYTE' instead of
5547         128.
5548
5549 1999-08-25  MORIOKA Tomohiko  <tomo@etl.go.jp>
5550
5551         * mule-charset.c (syms_of_mule_charset): Update to
5552         0.4 (Shin-Imamiya).
5553
5554 1999-07-13 Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
5555
5556         * file-coding.c (encode_coding_sjis): New implementation for
5557         UTF2000.  (decode_coding_sjis): Ditto.
5558
5559 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5560
5561         * mule-charset.c, character.h (Bytecount rep_bytes_by_first_byte):
5562         Don't define in UTF2000.
5563
5564         * character.h: Include mule-charset.h if CHAR_IS_UCS4 is not
5565         defined.
5566
5567         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5568         mule-ccl.c, lstream.h, buffer.h: Include character.h in every
5569         MULE.
5570
5571 1999-06-17  MORIOKA Tomohiko  <tomo@etl.go.jp>
5572
5573         * config.h.in (CHAR_IS_UCS4): New macro.
5574
5575         * mule-charset.c (rep_bytes_by_first_byte): Modify for
5576         conventional MULE representation.
5577         (syms_of_mule_charset): Update to 0.3 (Imamiya).
5578
5579         * mule-charset.h: Reverted to original.
5580
5581         * redisplay-msw.c, objects-tty.c, objects-msw.c, mule-wnnfns.c,
5582         mule-ccl.c, lstream.h, buffer.h: Use "character.h" instead of
5583         "mule-charset.h" if CHAR_IS_UCS4 is defined.
5584
5585         * character.h: New file.
5586
5587         * file-coding.c (Fmake_coding_system): Set 1 to
5588         `codesys->fixed.size' if TYPE is `no-conversion' and UTF2000 is
5589         defined.
5590         (encode_coding_no_conversion): New implementation for UTF2000.
5591
5592         * file-coding.h (struct Lisp_Coding_System): Add new member
5593         `fixed.size'.
5594
5595 1999-06-16  MORIOKA Tomohiko  <tomo@etl.go.jp>
5596
5597         * file-coding.c (decode_coding_iso2022): Code-point arguments of
5598         `MAKE_CHAR' must be smaller than 0x80 in UTF2000.
5599         (encode_coding_iso2022): New implementation for UTF2000.
5600
5601 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5602
5603         * mule-canna.c (c2mu): New implementation for UTF2000.
5604         (m2c): Likewise.
5605
5606 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5607
5608         * file-coding.c (encode_coding_no_conversion): Modify for UTF2000.
5609
5610 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5611
5612         * file-coding.c (reset_encoding_stream): Set 0 to
5613         `str->iso2022.current_char_boundary' in UTF2000.
5614         (encode_utf8): Don't define in UTF2000.
5615         (encode_coding_utf8): New implementation for UTF-8 representation
5616         of UTF2000.
5617         (complex_vars_of_file_coding): Define coding-system `utf-8'.
5618
5619 1999-06-15  MORIOKA Tomohiko  <tomo@etl.go.jp>
5620
5621         * mule.c (vars_of_mule): Provide `utf-2000' in UTF2000.
5622
5623         * mule-charset.h (BUFBYTE_FIRST_BYTE_P): Modify for UTF-8 in
5624         UTF2000.
5625         (REP_BYTES_BY_FIRST_BYTE): Likewise.
5626
5627         * buffer.h (non_ascii_valid_char_p): Don't define in UTF2000.
5628
5629         * mule-charset.c (non_ascii_set_charptr_emchar): Don't define
5630         local variables `lb', `c1', `c2' and `charset' in UTF2000; encode
5631         as UTF-8 in UTF2000.
5632         (non_ascii_charptr_emchar): Decode as UTF-8 in UTF2000.
5633         (non_ascii_valid_char_p): Don't define in UTF2000.
5634         (non_ascii_charptr_copy_char): Add case 5 and 6 in UTF2000.
5635         (Lstream_get_emchar_1): Likewise.
5636         (utf-2000-version): New variable in UTF2000.
5637
5638         * lread.c (read_escape): Add new reader `u'.
5639
5640         * insdel.c (three_to_one_table): Don't define in UTF2000.
5641         (bufpos_to_bytind_func): Use `buf->text->mule_size' instead of
5642         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5643         UTF2000.
5644         (bytind_to_bufpos_func): Likewise.
5645         (buffer_mule_signal_inserted_region): Likewise.
5646         (vars_of_insdel): Don't initialize `three_to_one_table'.
5647         (init_buffer_text): Use `buf->text->mule_size' instead of
5648         `buf->text->mule_shifter' and `buf->text->mule_three_p' in
5649         UTF2000.
5650
5651         * file-coding.c (DECODE_ADD_BINARY_CHAR): New implementation for
5652         UTF-8 representation in UTF2000.
5653         (DECODE_ADD_UCS_CHAR): New macro in UTF2000.
5654         (decode_ucs4): Use `DECODE_ADD_UCS_CHAR' in UTF2000.
5655         (decode_coding_iso2022): Don't define local variable `lb' in
5656         UTF2000; don't use LEADING_BYTE in UTF2000; use
5657         `DECODE_ADD_UCS_CHAR' in UTF2000.
5658         (convert_to_external_format): Decode as UTF-8 in UTF2000.
5659
5660         * config.h.in (UTF2000): New macro.
5661
5662         * buffer.h (struct buffer_text): Add new member `mule_size' and
5663         don't add `mule_shifter' and `mule_three_p' in UTF2000.
5664         (valid_char_p): Return always 1 in UTF2000.
5665         (MAX_EMCHAR_LEN): 6 in UTF2000.
5666         (three_to_one_table): Don't define in UTF2000.
5667         (real_bufpos_to_bytind): Modify for UTF-8 representation in
5668         UTF2000.
5669         (real_bytind_to_bufpos): Likewise.
5670
5671         * alloc.c (Fmake_string): Add case 5 and 6 for UTF2000.
5672
5673 1999-06-10  MORIOKA Tomohiko  <tomo@etl.go.jp>
5674
5675         * mule-charset.c (rep_bytes_by_first_byte): Modified for character
5676         representation change.
5677         (Vutf_2000_version): New variable.
5678         (leading_code_private_11): New variable.
5679         (syms_of_mule_charset): Add new variables `utf-2000-version' and
5680         `leading-code-private-11'.
5681
5682         * mule-charset.h (LEADING_BYTE_CHINESE_CCITT_GB): New macro.
5683         (LEADING_BYTE_CHINESE_BIG5_1): Changed to 0x96 temporally.
5684         (LEADING_BYTE_CHINESE_CNS11643_1): Changed to 0x97.
5685         (LEADING_BYTE_CHINESE_CNS11643_2): Changed to 0x98.
5686         (LEADING_BYTE_CHINESE_CNS11643_3): New macro.
5687         (LEADING_BYTE_CHINESE_CNS11643_4): Likewise.
5688         (LEADING_BYTE_CHINESE_CNS11643_5): Likewise.
5689         (LEADING_BYTE_CHINESE_CNS11643_6): Likewise.
5690         (LEADING_BYTE_CHINESE_CNS11643_7): Likewise [but not used].
5691         (LEADING_BYTE_CHINESE_BIG5_2): Changed to 0x9D temporally.
5692         (LEADING_BYTE_KOREAN_KPS9566): New macro [but not used].
5693         (CHAR_FIELD1_MASK): Changed to (0x7F << 14).
5694         (MIN_CHAR_GREEK): New macro.
5695         (MAX_CHAR_GREEK): New macro.
5696         (MIN_CHAR_CYRILLIC): New macro.
5697         (MAX_CHAR_CYRILLIC): New macro.
5698         (MIN_CHAR_HEBREW): New macro.
5699         (MAX_CHAR_HEBREW): New macro.
5700         (MIN_CHAR_THAI): New macro.
5701         (MAX_CHAR_THAI): New macro.
5702         (MIN_CHAR_HALFWIDTH_KATAKANA): New macro.
5703         (MAX_CHAR_HALFWIDTH_KATAKANA): New macro.
5704         (CHAR_FIELD2_INTERNAL): New macro [renamed from `CHAR_FIELD2'.
5705         (CHAR_FIELD3_INTERNAL): New macro [renamed from `CHAR_FIELD3'.
5706         (FIELD1_TO_PRIVATE_LEADING_BYTE): Changed to 0xc0.
5707         (FIELD1_TO_OFFICIAL_LEADING_BYTE): Changed to 0x50.
5708         (CHAR_FIELD2): New inline function.
5709         (CHAR_FIELD3): New inline function.
5710         (MULE_CHAR_PRIVATE_OFFSET): New macro.
5711         (MIN_CHAR_OFFICIAL_TYPE9N): Shifted to `MULE_CHAR_PRIVATE_OFFSET'.
5712         (MIN_CHAR_PRIVATE_TYPE9N): Likewise.
5713         (MIN_CHAR_PRIVATE_TYPE9NX9N): Likewise.
5714         (MIN_CHAR_OFFICIAL_TYPE9NX9N): Likewise.
5715         (MIN_CHAR_COMPOSITION): Likewise.
5716         (CHAR_LEADING_BYTE): Modified for character representation change.
5717         (MAKE_CHAR): Likewise.
5718
5719         * lisp.h (Vcharset_latin_iso8859_1): New variable.
5720         (Vcharset_greek_iso8859_7): Likewise.
5721         (Vcharset_cyrillic_iso8859_5): Likewise.
5722         (Vcharset_hebrew_iso8859_8): Likewise.
5723         (Vcharset_thai_tis620): Likewise.
5724         (Vcharset_katakana_jisx0201): Likewise.
5725
5726 2005-02-06  Vin Shelton <acs@xemacs.org>
5727
5728         * XEmacs 21.4.17 is released
5729
5730 2005-01-31  Ben Wing  <ben@xemacs.org>
5731
5732         * emacs.c:
5733         Define assert_failed() always.
5734         * lisp.h:
5735         Always define ABORT().
5736
5737 2005-01-25  Ben Wing  <ben@xemacs.org>
5738
5739         * Makefile.in.in:
5740         * Makefile.in.in (%.o):
5741         Don't compile executable as Windows (-mwindows) under Cygwin.
5742         Semi-recent changes to Cygwin's executable-startup handling make
5743         it impossible to access the TTY this way.
5744
5745         Don't use special linker file under Cygwin (cygwin.sc) except
5746         when non-PDUMP (even in this case it is highly questionable); you
5747         get errors like
5748
5749       1 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening input console handle after exec, errno 13, Win32 error 5
5750    5820 [main] temacs 1364 fhandler_console::fixup_after_exec: error opening output console handle after exec, errno 13, Win32 error 5
5751
5752 2005-01-29  Ben Wing  <ben@xemacs.org>
5753
5754         Port this: 2003-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
5755
5756         * mule-charset.c (get_unallocated_leading_byte): Compiler quietus.
5757
5758 2005-01-29  Ben Wing  <ben@xemacs.org>
5759
5760         * bytecode.c (optimize_compiled_function):
5761         * print.c (FROB):
5762         * print.c (long_to_string):
5763         Add casts to avoid warning.
5764         
5765         * glyphs-eimage.c:
5766         Some really nasty hacks to allow TIFF and JPEG to both be compiled.
5767         #### The better solution is to move the TIFF and JPEG code to
5768         different files.
5769         
5770         * glyphs-msw.c (mswindows_xbm_instantiate):
5771         Define __STDC__ to avoid problems with compface.h.
5772         
5773         * EmacsFrame.c (EmacsFrameRecomputeCellSize):
5774         * EmacsShell-sub.c:
5775         * EmacsShell-sub.c (ABORT):
5776         * EmacsShell-sub.c (SuperClassRootGeometryManager):
5777         * EmacsShell-sub.c (RootGeometryManager):
5778         * EmacsShell.c:
5779         * EmacsShell.c (ABORT):
5780         * EmacsShell.c (EmacsShellUpdateSizeHints):
5781         * alloc.c (free_lcrecord):
5782         * alloca.c (i00afunc):
5783         * buffer.c (delete_from_buffer_alist):
5784         * buffer.c (MARKED_SLOT):
5785         * bytecode.c (execute_rare_opcode):
5786         * bytecode.c (optimize_byte_code):
5787         * bytecode.c (Ffetch_bytecode):
5788         * chartab.c (char_table_type_to_symbol):
5789         * chartab.c (Freset_char_table):
5790         * chartab.c (decode_char_table_range):
5791         * chartab.c (Fget_range_char_table):
5792         * chartab.c (check_valid_char_table_value):
5793         * chartab.c (map_char_table):
5794         * chartab.c (slow_map_char_table_fun):
5795         * chartab.c (chartab_instantiate):
5796         * cm.c (cmcheckmagic):
5797         * console-msw.c (DHEADER):
5798         * console.c (MARKED_SLOT):
5799         * data.c (finish_marking_weak_lists):
5800         * data.c (encode_weak_list_type):
5801         * debug.h (DASSERT):
5802         * device-gtk.c (gtk_init_device):
5803         * device-msw.c (mswindows_get_default_margin):
5804         * device-tty.c (tty_init_device):
5805         * device-x.c (get_device_from_display):
5806         * device-x.c (x_get_visual_depth):
5807         * doprnt.c (parse_doprnt_spec):
5808         * doprnt.c (get_doprnt_args):
5809         * dumper.c (pdump_get_indirect_count):
5810         * dumper.c (pdump_register_sub):
5811         * dumper.c (pdump_register_object):
5812         * dumper.c (pdump_register_struct):
5813         * dumper.c (pdump_dump_data):
5814         * dumper.c (pdump_reloc_one):
5815         * elhash.c (print_hash_table):
5816         * elhash.c (make_standard_lisp_hash_table):
5817         * elhash.c (hash_table_instantiate):
5818         * emacs.c:
5819         * emacs.c (Fforce_debugging_signal):
5820         * emacs.c (sort_args):
5821         * emacs.c (main):
5822         * emacs.c (assert_failed):
5823         * eval.c (throw_or_bomb_out):
5824         * eval.c (signal_1):
5825         * eval.c (Fsignal):
5826         * event-Xt.c:
5827         * event-Xt.c (emacs_Xt_mapping_action):
5828         * event-Xt.c (Xt_process_to_emacs_event):
5829         * event-msw.c:
5830         * event-stream.c (check_event_stream_ok):
5831         * event-stream.c (Fadd_timeout):
5832         * event-stream.c (Fadd_async_timeout):
5833         * event-stream.c (Fdiscard_input):
5834         * event-stream.c (execute_internal_event):
5835         * event-stream.c (Frecent_keys):
5836         * event-stream.c (extract_this_command_keys_nth_mouse_event):
5837         * event-stream.c (lookup_command_event):
5838         * event-unixoid.c (poll_fds_for_input):
5839         * events.c:
5840         * events.c (mark_event):
5841         * events.c (event_equal):
5842         * events.c (event_hash):
5843         * events.c (Fmake_event):
5844         * events.c (Fdeallocate_event):
5845         * events.c (event_chain_find_previous):
5846         * events.c (event_to_character):
5847         * events.c (format_event_object):
5848         * events.c (Fevent_type):
5849         * events.c (event_pixel_translation):
5850         * events.c (Fevent_properties):
5851         * extents.c (extent_in_region_p):
5852         * extents.c (print_extent):
5853         * extents.c (process_extents_for_insertion_mapper):
5854         * extents.c (report_extent_modification_mapper):
5855         * extents.c (glyph_layout_to_symbol):
5856         * faces.c (face_validate):
5857         * file-coding.c (eol_type_to_symbol):
5858         * file-coding.c (subsidiary_coding_system):
5859         * file-coding.c (Fcoding_system_type):
5860         * file-coding.c (Fcoding_system_property):
5861         * file-coding.c (mule_decode):
5862         * file-coding.c (mule_encode):
5863         * file-coding.c (encode_coding_ucs4):
5864         * file-coding.c (encode_coding_utf8):
5865         * file-coding.c (parse_iso2022_esc):
5866         * file-coding.c (encode_coding_iso2022):
5867         * fileio.c:
5868         * fns.c (concat):
5869         * fns.c (Fsubseq):
5870         * fns.c (mapcar1):
5871         * fns.c (Fbase64_encode_region):
5872         * fns.c (Fbase64_encode_string):
5873         * fns.c (Fbase64_decode_region):
5874         * fns.c (Fbase64_decode_string):
5875         * font-lock.c (find_context):
5876         * font-lock.c (context_to_symbol):
5877         * frame-gtk.c (gtk_set_frame_pointer):
5878         * frame-gtk.c (gtk_update_frame_external_traits):
5879         * frame-x.c (x_wm_mark_shell_size_user_specified):
5880         * frame-x.c (x_wm_mark_shell_position_user_specified):
5881         * frame-x.c (x_wm_set_shell_iconic_p):
5882         * frame-x.c (x_wm_set_cell_size):
5883         * frame-x.c (x_wm_set_variable_size):
5884         * frame-x.c (x_wm_store_class_hints):
5885         * frame-x.c (x_wm_maybe_store_wm_command):
5886         * frame-x.c (x_initialize_frame_size):
5887         * frame-x.c (x_update_frame_external_traits):
5888         * frame.c:
5889         * frame.c (delete_frame_internal):
5890         * frame.c (mouse_pixel_position_1):
5891         * frame.c (change_frame_size_1):
5892         * free-hook.c (check_free):
5893         * free-hook.c (check_realloc):
5894         * free-hook.c (note_block_input):
5895         * free-hook.c (log_gcpro):
5896         * gccache-gtk.c (gc_cache_lookup):
5897         * glyphs-eimage.c (tiff_memory_write):
5898         * glyphs-gtk.c (gtk_finalize_image_instance):
5899         * glyphs-gtk.c (init_image_instance_from_gdk_pixmap):
5900         * glyphs-gtk.c (init_image_instance_from_xbm_inline):
5901         * glyphs-gtk.c (gtk_xpm_instantiate):
5902         * glyphs-gtk.c (gtk_unmap_subwindow):
5903         * glyphs-gtk.c (gtk_map_subwindow):
5904         * glyphs-gtk.c (gtk_button_redisplay):
5905         * glyphs-msw.c:
5906         * glyphs-msw.c (init_image_instance_from_xbm_inline):
5907         * glyphs-x.c (init_image_instance_from_xbm_inline):
5908         * glyphs-x.c (extract_xpm_color_names):
5909         * glyphs-x.c (x_xpm_instantiate):
5910         * glyphs.c (get_image_instantiator_governing_domain):
5911         * glyphs.c (print_image_instance):
5912         * glyphs.c (image_instance_equal):
5913         * glyphs.c (image_instance_hash):
5914         * glyphs.c (encode_image_instance_type):
5915         * glyphs.c (make_image_instance_1):
5916         * glyphs.c (inherit_instantiate):
5917         * glyphs.c (image_instantiate):
5918         * glyphs.c (allocate_glyph):
5919         * glyphs.c (Fglyph_type):
5920         * glyphs.c (redisplay_subwindow):
5921         * glyphs.c (display_table_entry):
5922         * gtk-glue.c (xemacs_list_to_gtklist):
5923         * gtk-glue.c (xemacs_gtklist_to_list):
5924         * gtk-glue.c (xemacs_list_to_array):
5925         * gutter.c (SET_GUTTER_WAS_VISIBLE_FLAG):
5926         * gutter.c (gutter_was_visible):
5927         * gutter.c (get_gutter_coords):
5928         * input-method-xlib.c (get_XIM_input):
5929         * insdel.c (bufpos_to_bytind_func):
5930         * insdel.c (bytind_to_bufpos_func):
5931         * insdel.c (move_gap):
5932         * intl.c (x_get_composed_input):
5933         * keymap.c (keymap_lookup_directly):
5934         * keymap.c (keymap_delete_inverse_internal):
5935         * keymap.c (ensure_meta_prefix_char_keymapp):
5936         * keymap.c (accessible_keymaps_mapper_1):
5937         * keymap.c (where_is_recursive_mapper):
5938         * lisp.h:
5939         * lisp.h (ABORT):
5940         * lread.c (read_atom):
5941         * lstream.c (Lstream_delete):
5942         * lstream.c (make_lisp_buffer_stream_1):
5943         * macros.c (pop_kbd_macro_event):
5944         * malloc.c (malloc):
5945         * malloc.c (free):
5946         * marker.c (bi_marker_position):
5947         * marker.c (set_bi_marker_position):
5948         * menubar-gtk.c (menu_descriptor_to_widget_1):
5949         * menubar-msw.c (prune_menubar):
5950         * menubar-x.c (set_frame_menubar):
5951         * mule-charset.c (get_unallocated_leading_byte):
5952         * mule-charset.h (CHAR_LEADING_BYTE):
5953         * native-gtk-toolbar.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
5954         * nt.c (init_environment):
5955         * nt.c (generate_inode_val):
5956         * ntproc.c (delete_child):
5957         * ntproc.c (_sys_read_ahead):
5958         * ntproc.c (create_child):
5959         * objects.c (color_instantiate):
5960         * objects.c (font_instantiate):
5961         * objects.c (face_boolean_instantiate):
5962         * print.c (printing_major_badness):
5963         * process-nt.c (nt_send_process):
5964         * process-unix.c (unix_send_process):
5965         * process.c (get_process):
5966         * ralloc.c (obtain):
5967         * ralloc.c (relinquish):
5968         * ralloc.c (relocate_blocs):
5969         * ralloc.c (resize_bloc):
5970         * ralloc.c (r_alloc_free):
5971         * ralloc.c (r_re_alloc):
5972         * ralloc.c (r_alloc_thaw):
5973         * ralloc.c (init_ralloc):
5974         * ralloc.c (Free_Addr_Block):
5975         * ralloc.c (r_alloc):
5976         * redisplay-gtk.c (gtk_output_display_block):
5977         * redisplay-msw.c (mswindows_output_display_block):
5978         * redisplay-output.c (get_next_display_block):
5979         * redisplay-output.c (get_cursor_size_and_location):
5980         * redisplay-output.c (redisplay_output_layout):
5981         * redisplay-output.c (redisplay_clear_region):
5982         * redisplay-tty.c (tty_output_display_block):
5983         * redisplay-x.c (x_output_display_block):
5984         * redisplay.c (add_propagation_runes):
5985         * redisplay.c (add_glyph_rune):
5986         * redisplay.c (create_text_block):
5987         * redisplay.c (add_margin_runes):
5988         * redisplay.c (create_left_glyph_block):
5989         * redisplay.c (create_right_glyph_block):
5990         * redisplay.c (create_string_text_block):
5991         * redisplay.c (regenerate_window):
5992         * redisplay.c (REGEN_INC_FIND_START_END):
5993         * redisplay.c (redisplay_frame):
5994         * redisplay.c (point_in_line_start_cache):
5995         * regex.c:
5996         * regex.c (ABORT):
5997         * regex.c (re_compile_fastmap):
5998         * regex.c (re_match_2_internal):
5999         * regex.c (regerror):
6000         * scrollbar-gtk.c (gtk_scrollbar_loop):
6001         * scrollbar-gtk.c (scrollbar_cb):
6002         * scrollbar-gtk.c (gtk_update_frame_scrollbars):
6003         * scrollbar-msw.c (mswindows_handle_scrollbar_event):
6004         * scrollbar-x.c (x_update_scrollbar_instance_status):
6005         * scrollbar-x.c (x_scrollbar_loop):
6006         * scrollbar-x.c (x_update_frame_scrollbars):
6007         * search.c (search_command):
6008         * search.c (Fmatch_data):
6009         * select-x.c (motif_clipboard_cb):
6010         * signal.c (interrupt_signal):
6011         * specifier.c (specifier_add_spec):
6012         * specifier.c (specifier_instance_from_inst_list):
6013         * specifier.c (specifier_instance):
6014         * specifier.h:
6015         * specifier.h (struct specifier_methods):
6016         * strftime.c (add_num_time_t):
6017         * sunplay.c (init_device):
6018         * symbols.c (Fsetplist):
6019         * symbols.c (do_symval_forwarding):
6020         * symbols.c (store_symval_forwarding):
6021         * symbols.c (Fset):
6022         * symbols.c (Fbuilt_in_variable_type):
6023         * symbols.c (decode_magic_handler_type):
6024         * symbols.c (handler_type_from_function_symbol):
6025         * syntax.c (update_syntax_cache):
6026         * sysdep.c (init_baud_rate):
6027         * toolbar-gtk.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6028         * toolbar-msw.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6029         * toolbar-x.c (SET_TOOLBAR_WAS_VISIBLE_FLAG):
6030         * toolbar.c (get_toolbar_coords):
6031         * ui-gtk.c (build_gtk_boxed):
6032         * ui-gtk.c (describe_gtk_arg):
6033         * ui-gtk.c (gtk_type_to_lisp):
6034         * ui-gtk.c (lisp_to_gtk_type):
6035         * ui-gtk.c (lisp_to_gtk_ret_type):
6036         * ui-gtk.c (lisp_to_flag):
6037         * unexnt.c (read_in_bss):
6038         * unexnt.c (map_in_heap):
6039         * window.c (real_window):
6040         * window.c (window_display_lines):
6041         * window.c (window_display_buffer):
6042         * window.c (set_window_display_buffer):
6043         * window.c (window_modeline_height):
6044         * window.c (unshow_buffer):
6045         * window.c (window_loop):
6046         * window.c (Fget_lru_window):
6047         * window.c (Fsplit_window):
6048         * window.c (Fset_window_configuration):
6049         * window.c (saved_window_index):
6050         * xgccache.c (gc_cache_lookup):
6051         abort() -> ABORT().  Eliminate preprocessor games with abort()
6052         since it creates huge problems in VC7, solvable only by including
6053         massive amounts of files in every compile (and not worth it).
6054
6055         * sysdep.c:
6056         * sysproc.h:
6057         Inclusion of process.h does not need to be before lisp.h any more.
6058         Move later and remove comment about abort().
6059
6060 2005-01-26  Arnaud Giersch  <arnaud.giersch@free.fr>
6061
6062         * regex.c (re_match_2_internal):
6063         Correctly initialize loop which clears uninitialized registers.
6064
6065 2005-01-28  Vin Shelton  <acs@xemacs.org>
6066
6067         * sheap.c (more_static_core): Applied Ben's version of the long
6068         string patch.
6069
6070 2005-01-24  Vin Shelton  <acs@xemacs.org>
6071
6072         * sheap.c (more_static_core): Reformatted printf string so
6073         gcc-3.3.3 will compile this on Cygwin.
6074
6075 2004-02-22  Stephen J. Turnbull  <stephen@xemacs.org>
6076
6077         * console.c (function_key_map): Reference `key-binding'.
6078
6079         * keymap.c (Vkey_translation_map): Improve docstring.
6080
6081 2004-03-30  Zajcev Evgeny  <zevlg@yandex.ru>
6082
6083         * window.c: Declare `allow_deletion_of_last_visible_frame' extern.
6084         * window.c (window_loop): [fix] Take into account
6085         `allow-deletion-of-last-visible-frame' variable.
6086         * window.c (replace-buffer-in-windows): Ditto.
6087
6088 2004-12-15  Stephen J. Turnbull  <stephen@xemacs.org>
6089
6090         * EmacsManager.c (EmacsManagerChangeSize): Respect XtGeometryNo.
6091
6092 2005-01-20  Malcolm Purvis  <malcolmp@xemacs.org>
6093
6094         * event-gtk.c: Recognise AltGr as a valid modifier.
6095
6096 2005-01-12  Ville Skyttä  <scop@xemacs.org>
6097
6098         * console-x.h: #include X11/keysym.h before xintrinsic.h.
6099
6100 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6101
6102         Fix backreference bug caught by test suite.
6103
6104         * regex.c (regex_compile):
6105         Make backref duplicate internal register.
6106
6107 2005-01-13  Stephen J. Turnbull  <stephen@xemacs.org>
6108
6109         Documentation, code clarification, and warning suppression.
6110         
6111         * regex.c (regex_compile):
6112         Improve comments.
6113         (re_match_2_internal):
6114         Improve comments and avoid redundant braces.  [Most of the big hunk
6115         at l. 4710 is indentation; use diff -w to see the real changes.]
6116         (alt_match_null_string_p):
6117         (common_op_match_null_string_p):
6118         Avoid shadowing global on Mac OS X 10.4, at least.
6119
6120 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6121
6122         * regex.c (regcomp): Fix "unsigned comparison" warning (maybe
6123         introduced with shy groups fix).  [Already applied, probably
6124         with the second "fix shy groups" patch of 2004-10-07.] 
6125
6126 2005-01-10  Steve Youngs  <steve@sxemacs.org>
6127
6128         From Andrey Slusar <anrays@gmail.com>:
6129
6130         * unexelf.c: define `Elfw(type)' for FreeBSD alpha and amd64.
6131
6132 2004-11-21  Malcolm Purvis  <malcolmp@xemacs.org>
6133
6134         * Makefile (RECURSIVE_MAKE): Removed.
6135         * Makefile (RECURSIVE_MAKE_ARGS): New.  The new method for
6136         handling parallel builds.
6137
6138 2004-09-08  Malcolm Purvis  <malcolmp@xemacs.org>
6139
6140         * Makefile.in.in: Enable support for parallel builds.
6141
6142 2005-01-09  Steve Youngs  <steve@sxemacs.org>
6143
6144         From Andrey Slusar <anrays@gmail.com>:
6145
6146         * s/freebsd.h (LIBS_SYSTEM): Only set to "-lutil -lxpg4" if
6147         FreeBSD version is >= 199701 _and_ < 600006.
6148
6149 2005-01-06  Zajcev Evgeny <zevlg@yandex.ru>
6150
6151         * scrollbar.c (compute_scrollbar_instance_usage):
6152         Only call device method compute_scrollbar_instance_usage() if it
6153         is defined.
6154
6155 2004-12-05  Vin Shelton <acs@xemacs.org>
6156
6157         * XEmacs 21.4.16 is released
6158
6159 2004-12-04  Vin Shelton  <acs@xemacs.org>
6160
6161         * depend: Regenerated.
6162
6163 2004-10-07  Stephen J. Turnbull  <stephen@xemacs.org>
6164
6165         * regex.c (re_match_2_internal): Map internal to external
6166         registers.  Fixes bug identified by Steve Youngs 2004-09-30
6167         <microsoft-free.87ekkjhj7t.fsf@youngs.au.com>.
6168
6169 2004-09-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
6170
6171         * buffer.c (Frecord_buffer): Make sure the argument is buffer
6172         to fix a crash.  Also, check the buffer is live and it
6173         really exists in buffer_list.  If the buffer is not in the list,
6174         prepend it.
6175
6176 2004-09-08  Stephen J. Turnbull  <stephen@xemacs.org>
6177
6178         Fix shy groups by implementing recording of all groups for
6179         repetition and backtracking.  Backport from 21.5.
6180         
6181         * regex.h (struct re_pattern_buffer): Add members re_ngroups,
6182         external_to_internal_register, external_to_internal_register_size,
6183         and update comments for re_nsub.
6184
6185         * regex.c (re_opcode_t): Update comments.
6186         (print_compiled_pattern): Ouput external_to_internal_register,
6187         external_to_internal_register_size, and re_ngroups for debugging.
6188         (INIT_REG_TRANSLATE_SIZE): New manifest constant.
6189         (regex_compile): Update header comment.
6190         Ensure that all groups are recorded so that repeat matches and
6191         backtracking work correctly.  Comment related warning for groups >
6192         255.
6193         (re_search_2): Construct map of API indexes (which count only
6194         nonshy groups) to internal register numbers, and keep it updated.
6195
6196 2004-07-27  Malcolm Purvis  <malcolmp@xemacs.org>
6197
6198         * frame-gtk.c (gtk_make_frame_visible):
6199         * frame-gtk.c (gtk_make_frame_invisible): Use map/unmap instead of
6200         show/hide.  This is what X uses and is prevents previously hidden
6201         widgets from suddenly reappearing.
6202         * gtk-xemacs.c (gtk_xemacs_paint):
6203         * gtk-xemacs.c (gtk_xemacs_draw):
6204         * gtk-xemacs.c (gtk_xemacs_expose): Only operate if the widget is
6205         drawable.
6206         * scrollbar-gtk.c (gtk_update_scrollbar_instance_status): Force
6207         size and location changes so that they can be seen before the next
6208         idle event.  Without this rapid changes to scrollbar properties
6209         are not seen.
6210
6211 2004-07-02  Malcolm Purvis  <malcolmp@xemacs.org>
6212
6213         * console-gtk.h:
6214         * console-gtk.h (struct gtk_frame):
6215         * console-gtk.h (FRAME_GTK_WIDGET_INSTANCE_HASH_TABLE):
6216           Add hash tables track tab_control callback data.
6217           Added #defines for GTK object data names.
6218           Declaration of gtk_widget_to_frame().
6219         * event-gtk.c (enqueue_gtk_dispatch_event) No longer static:
6220         * frame-gtk.c (gtk_widget_to_frame): New.
6221         * frame-gtk.c (gtk_create_widgets):
6222         * frame-gtk.c (allocate_gtk_frame_struct):
6223         * frame-gtk.c (gtk_mark_frame):
6224         Manage frame callbakc hash tables.
6225         * glyphs-gtk.c (gtk_map_subwindow): Fix size and moving bugs.
6226         * glyphs-gtk.c (gtk_redisplay_widget): Use correct size for widgets.
6227         * glyphs-gtk.c (gtk_widget_instantiate_1): Force reconsideration
6228         of widget size.
6229         * glyphs-gtk.c (gtk_widget_query_geometry): New
6230         * glyphs-gtk.c (gtk_register_gui_item): New
6231         * glyphs-gtk.c (gtk_add_tab_item): New
6232         * glyphs-gtk.c (gtk_tab_control_callback): New
6233         * glyphs-gtk.c (gtk_tab_control_instantiate): New
6234         * glyphs-gtk.c (gtk_tab_control_redisplay): Set notebook page.
6235         Use correct list when loading item.
6236         * glyphs-gtk.c (image_instantiator_format_create_glyphs_gtk):
6237         Register new methods.
6238         * gtk-xemacs.c (gtk_xemacs_size_allocate): Use XEmacs size, not
6239         default size, for widgets.
6240         * gui-x.c:  Improved comment.
6241         * menubar-gtk.c (__generic_button_callback): Use
6242         gtk_widget_to_frame instead of __get_channel.
6243         * scrollbar-gtk.c:
6244         * ui-gtk.c: Use symbolic names for GTK object data.
6245
6246 2004-06-23  Ilya N. Golubev <gin@mo.msk.ru>
6247
6248         * s/usg5-4.h (NSIG): Define only inside emacs binary.
6249
6250 2002-03-04  Stephen J. Turnbull  <stephen@xemacs.org>
6251
6252         * fileio.c (Fwrite_region_internal): Document use of start == Qnil.
6253
6254 2004-06-16  Malcolm Purvis  <malcolmp@xemacs.org>
6255
6256         * malloc.c (morecore): siz is a long because in some architectures
6257         (eg ia-64) an int cannot hold the address range.  Additional patch
6258         from the SuSe distribution.
6259
6260 2004-06-13  Malcolm Purvis  <malcolmp@xemacs.org>
6261
6262         * emacs.c:
6263         * malloc.c: lim_data is a long because in some architectures
6264         (eg ia-64) an int cannot hold the address range.
6265         * mem-limits.h: lim-data is a long.  Linux uses getrlimit()
6266         instead of ulimit() because ulimit() always returns -1.
6267
6268 2004-06-09  Stephen J. Turnbull  <stephen@xemacs.org>
6269
6270         * search.c: Reenable an ansync semaphore.  Remove bogus comments.
6271
6272 2004-06-11  David Kastrup  <dak@gnu.org>
6273
6274         * search.c (match_limit): Don't flag an error if match-data
6275         exceeding the allocated search_regs.num_regs gets requested, just
6276         return Qnil.
6277
6278 2003-07-21  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6279
6280         * glyphs-gtk.c (gtk_xpm_instantiate): Rewrite the XPM data to
6281         replace symbolic color entries with the real colors specified in
6282         xpm-color-symbols, before passing the XPM to gtk.
6283         * glyphs-gtk.h: Use the generic pixmap_image_instance.mask for masks,
6284         instead of a GTK specific field, so that it is used in by generic
6285         code.
6286
6287 2004-05-05  Chuck Hines <chuck.hines@baesystems.com>
6288
6289        * dgif_lib.c (DGifSlurp): Changed do-while to while to stop
6290         coredump from deref of NULL ptr (ExtData)
6291
6292 2004-04-19  Jerry James  <james@xemacs.org>
6293
6294         * data.c (sign_extend_lisp_int): Use INT_VALBITS instead of
6295         VALBITS to compute the location of the sign bit.
6296         * event-stream.c (Fcurrent_event_timestamp): Replace incorrect use
6297         of VALBITS with EMACS_INT_MAX.
6298         * events.c (Fevent_timestamp): Ditto.
6299         * events.c (TIMESTAMP_HALFSPACE): Change VALBITS to INT_VALBITS to
6300         compute the halfway point to timestamp wraparound.
6301         * floatfns.c (float_to_int): Compare against EMACS_INT_MAX and
6302         EMACS_INT_MIN instead of using VALBITS.
6303         * floatfns.c (Flogb): Use EMACS_INT_MIN instead of building an
6304         incorrect number with VALBITS.
6305         * fns.c (Frandom): Correct number of integer bits in docstring.
6306         Use INT_VALBITS instead of VALBITS to compute the denominator.
6307         * sysdep.c (get_random): Use INT_VALBITS instead of VALBITS to
6308         build random numbers.
6309
6310 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6311         * event-gtk.c:
6312         * event-gtk.c (gtk_event_to_emacs_event):
6313         * menubar-gtk.c:
6314         * menubar-gtk.c (gtk_xemacs_menubar_class_init):
6315         * menubar-gtk.c (gtk_xemacs_menubar_size_request):
6316         * menubar-gtk.c (gtk_xemacs_accel_label_get_type):
6317         * menubar-gtk.c (gtk_xemacs_set_accel_keys):
6318         * menubar-gtk.c (__activate_menu):
6319         * menubar-gtk.c (convert_underscores):
6320         * menubar-gtk.c (remove_underscores):
6321         * menubar-gtk.c (menu_convert):
6322         * menubar-gtk.c (menu_descriptor_to_widget_1):
6323         * menubar-gtk.c (menu_descriptor_to_widget):
6324         * menubar-gtk.c (menu_can_reuse_widget):
6325         * menubar-gtk.c (menu_create_menubar):
6326         * menubar-gtk.c (gtk_popup_menu):
6327         * menubar-gtk.c (Fgtk_build_xemacs_menu):
6328         Added support for Gtk menu bar and menu item mnemonics.
6329
6330 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6331
6332         * sysdll.c: (dll_function): Added support for finding symbols in
6333         Darwin shared libraries as well in Darwin bundles.
6334         * sysdll.c (image_for_address): New
6335         * sysdll.c (my_find_image): New
6336         * sysdll.c (search_linked_libs): New
6337
6338 2004-03-23  Malcolm Purvis  <malcolmpurvis@optushome.com.au>
6339
6340         * ui-gtk.c (__internal_callback_marshal): Marshalling data to
6341         return to GTK requires a different API to marshalling data to use
6342         as GTK parameters.
6343         * ui-gtk.c (lisp_to_gtk_ret_type): New.
6344
6345 2004-03-08  Lutz Euler  <lutz.euler@freenet.de>
6346
6347         * lstream.c (Lstream_pseudo_close): Fix test for LSTREAM_FL_IS_OPEN.
6348
6349 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6350
6351         * glyphs.c (process_image_string_instantiator):
6352         (Fset_console_type_image_conversion_list):
6353         Stop GCC from warning about shadowing of `exp'.
6354
6355         * redisplay-x.c (x_output_string): Fix unsigned lossage.
6356
6357 2004-02-19  Stephen J. Turnbull  <stephen@xemacs.org>
6358
6359         * regex.c (re_match_2_internal): Shut up GCC about syn1, syn2.
6360
6361 2004-02-03  Vin Shelton  <acs@xemacs.org>
6362
6363         * glyphs.c (image_instance_layout): Remove pointless assertion.
6364         * regex.c (regex_grow_registers): Return type is void.
6365
6366 2004-02-02  Vin Shelton <acs@xemacs.org>
6367
6368         * XEmacs 21.4.15 is released
6369
6370 2004-01-30  Glynn Clements  <glynn.clements@virgin.net>
6371
6372         * device-x.c (x_error_handler): Don't call stderr_out
6373
6374 2003-11-07  Katsumi Yamaoka <yamaoka@jpl.org>
6375
6376         * buffer.c (other-buffer): Clarify documentation of order of
6377         arguments for FSF Emacs.
6378
6379 2003-10-11  Olivier Galibert  <galibert@pobox.com>
6380
6381         * window.c (Fdelete_window): Dirty the mirror structure _before_
6382         marking the window deleted.
6383
6384 2003-09-15  Jerry James  <james@xemacs.org>
6385
6386         * event-msw.c (debug_mswin_messages): Conditionally compile
6387         messages missing from the Cygwin headers.
6388
6389 2003-06-16  Stephen J. Turnbull  <stephen@xemacs.org>
6390
6391         * data.c (eq_with_ebola_notice): Fix typo in comment.
6392         (Ftrue_list_p): Improve docstring.
6393
6394 2003-10-13  Stephen J. Turnbull  <stephen@xemacs.org>
6395
6396         * frame-x.c (x_update_frame_external_traits): Fix XtSetArg idiom.
6397
6398 2003-09-27  Stephen J. Turnbull  <stephen@xemacs.org>
6399
6400         * search.c (trivial_regexp_p): Regexps containing "\{" are
6401         nontrivial.  Thanks to Manfred Bartz for reporting the bug and
6402         Stefan Monnier for suggesting a diagnosis.
6403
6404 2003-09-25  Stephen J. Turnbull  <stephen@xemacs.org>
6405
6406         * elhash.c (make-hash-table): Clarify use of :test #'equal.
6407
6408 2003-09-12  Stephen J. Turnbull  <stephen@xemacs.org>
6409
6410         * search.c (Fsearch_forward):
6411         (Fsearch_backward):
6412         Document negative count.
6413
6414 2003-09-13  Stephen J. Turnbull  <stephen@xemacs.org>
6415
6416         * regex.c (re_max_failures): Bump to 20000 for REGEX_MALLOC, too.
6417
6418 2003-09-13  Martin Buchholz  <martin@xemacs.org>
6419
6420         * s/sol2.h: Use OS_RELEASE=os_release_major*100+os_release_minor
6421
6422 2003-09-15  Vin Shelton  <acs@xemacs.org>
6423
6424         * .gdbinit (pobj): Remove Ilya's fix that was only intended for
6425         21.5.
6426
6427 2003-09-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
6428
6429         * regex.c (TRANSLATE_EXTENDED_UNSAFE): Remove.
6430         (re_search_2): Match the first byte of Bufbyte, not Emchar.
6431         (re_match_2_internal): Use TRANSLATE instead of
6432         TRANSLATE_EXTENDED_UNSAFE.  The latter was a hack to bypass
6433         non-ASCII char case conversion.
6434
6435 2003-09-08  Mike Sperber  <mike@xemacs.org>
6436
6437         * symbols.c (Fvariable_binding_locus): Add, as per suggestion from
6438         RMS at: http://article.gmane.org/gmane.emacs.pretest.bugs/1010
6439
6440 2003-06-14  Ilya N. Golubev  <gin@mo.msk.ru>
6441
6442        * .gdbinit (pobj): fix printing of symbol name.
6443
6444 2003-08-01  Ilya N. Golubev  <gin@mo.msk.ru>
6445
6446         * frame-x.c (x_layout_widgets): When resizing is about to cause
6447         frame size slip, mark it for redisplay.
6448
6449 2003-08-18  Jerry James  <james@xemacs.org>
6450
6451         * opaque.h: Remove unused (X)OPAQUE_MARKFUN definitions.
6452
6453 2003-09-03  Vin Shelton <acs@xemacs.org>
6454
6455         * XEmacs 21.4.14 is released
6456
6457 2003-08-15  Stephen J. Turnbull  <stephen@xemacs.org>
6458
6459         * config.h.in (REGEX_MALLOC): Make it configure'able.
6460
6461 2003-08-14  Andrew Begel  <abegel@CS.Berkeley.EDU>
6462
6463         * config.h.in: Add HAVE_DYLD to indicate Darwin/MacOSX dynamic
6464         linking.
6465         * sysdll.c (dll_init):
6466         * sysdll.c (dll_open):
6467         * sysdll.c (dll_close):
6468         * sysdll.c (dll_function):
6469         * sysdll.c (dll_variable):
6470         * sysdll.c (dll_error):
6471         Add support for loading bundles using Darwin/MacOSX
6472         native API.
6473
6474 2003-08-12  Stephen J. Turnbull  <stephen@xemacs.org>
6475
6476         * process.c (start-process-internal): Document coding systems.
6477
6478 2003-07-30  Jerry James  <james@xemacs.org>
6479
6480         * sysdll.c: configure sets HAVE_DLD_INIT, not HAVE_INIT_DLD.
6481
6482 2003-07-31  René Kyllingstad  <listmailxemacs@kyllingstad.com>
6483
6484         * event-msw.c (mswindows_enqueue_mouse_button_event):
6485         * event-msw.c (mswindows_wnd_proc):
6486           enqueue button event when scrollwheel event isn't handled by 
6487           mswindows_handle_mousewheel_event, such as when the scrollbars
6488           are not showing.
6489
6490 2003-07-29  Stephen J. Turnbull  <stephen@xemacs.org>
6491
6492         * EmacsFrame.c (emacsFrameClassRec): Motif groks not XtCompress*.
6493
6494 2003-03-24  Stephen J. Turnbull  <stephen@xemacs.org>
6495
6496         * database.c (Fopen_database): Don't use DB_AUTO_COMMIT.
6497
6498 2003-03-21  Stephen J. Turnbull  <stephen@xemacs.org>
6499
6500         * regex.c (re_match_2_internal): Fix matching degenerate word
6501         boundaries.
6502
6503 2003-05-25  XEmacs Build Bot <builds@cvs.xemacs.org>
6504
6505         * XEmacs 21.4.13 is released
6506
6507 2003-03-20  Stephen J. Turnbull  <stephen@xemacs.org>
6508
6509         * config.h.in (INTPTR_T_IN_CYGWIN_TYPES_H): 
6510         * lisp.h (<inttypes.h>):
6511         Cygwin defines these types in <cygwin/types.h>.  Don't duplicate
6512         the definition.
6513
6514 2003-03-15  Martin Buchholz  <martin@xemacs.org>
6515
6516         * dumper.c (pdump_load): Pdump'ed XEmacs can't find its .dmp file.
6517         Scenario: Prepend ~/bin to PATH; then `mkdir ~/bin/xemacs'
6518         Result: "temacs can only be run in -batch mode."
6519         Fix: Check xemacs executable candidate for directory-ness.
6520
6521 2003-03-03  Robert Pluim  <rpluim@bigfoot.com>
6522
6523         * database.c: Don't use the u_int8_t etc typedefs on FreeBSD,
6524           they conflict with <sys/types.h>.
6525
6526 2003-02-14  Martin Buchholz  <martin@xemacs.org>
6527
6528         * database.c: Berkeley DB wants __STDC__ to be defined.
6529
6530 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6531
6532         * EmacsFrame.c: Use symbolic name `NotUseful' in lieu of `0'.
6533
6534 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6535
6536         * process-unix.c (unix_send_process): Fix C++ compile error.
6537
6538 2003-02-25  Andrew Begel  <abegel@cs.berkeley.edu>
6539
6540         * Added .dylib as an acceptable shared library file extension
6541         * to support MacOSX.
6542
6543 2003-02-01  Martin Buchholz  <martin@xemacs.org>
6544
6545         * EmacsFrameP.h (EmacsFramePart):
6546         Kludge to allow compiling with Motif1, but linking with Motif2.
6547
6548 2003-01-28  Martin Buchholz  <martin@xemacs.org>
6549
6550         * config.h.in (_ALL_SOURCE): Guard against multiple definition.
6551
6552
6553 2003-02-23  Stephen J. Turnbull  <stephen@xemacs.org>
6554
6555         * config.h.in (DLSYM_NEEDS_UNDERSCORE): Define on darwin.
6556
6557 2003-02-06  Andrew Begel  <abegel@CS.Berkeley.EDU>
6558
6559         * sysdll.c: Included lisp.h to define needed alloca_array.
6560
6561 2003-02-13  Martin Buchholz  <martin@xemacs.org>
6562
6563         Make XEmacs redisplay 10 times faster.
6564         If, that is, you're using a slow X connection and MoveOpaque.
6565         Use compress_exposure = XtExposeCompressMaximal | XtExposeNoRegion.
6566         Use compress_motion = TRUE.
6567         * EmacsFrame.c (emacsFrameClassRec): 
6568         * EmacsShell-sub.c (EMACS_SHELL_CLASS_REC):
6569         * EmacsManager.c (emacsManagerClassRec):
6570         * xintrinsicp.h: Make sure XtExposeNoRegion is defined.
6571
6572 2003-01-30  Vin Shelton  <acs@xemacs.org>
6573
6574         * s/linux.h (ORDINARY_LINK): define ORDINARY_LINK for linux.
6575
6576 2003-01-17  Stephen J. Turnbull  <stephen@xemacs.org>
6577
6578         * glyphs-eimage.c (tiff_memory_seek): Lobotomize unsigned typedef.
6579         Patch by Martin Buchholz.
6580
6581 2003-01-16  Stephen J. Turnbull  <stephen@xemacs.org>
6582
6583         * glyphs-eimage.c (tiff_instantiate): Fix unsigned comparison.
6584         Thanks to icc for warning and Martin Buchholz for reporting.
6585
6586 2003-01-29  Vin Shelton <acs@xemacs.org>
6587
6588         Patch courtesy of Andrew Begel <abegel@cs.berkeley.edu>
6589
6590         * dynarr.c (Dynarr_realloc): memcpy copies number of bytes, so
6591         remember to multiply by the element size.
6592
6593 2003-01-15  Stephen J. Turnbull  <stephen@xemacs.org>
6594
6595         * XEmacs 21.4.12 "Portable Code" is released.
6596
6597 2003-01-14  Sergey Okhapkin <sos@prospect.com.ru>
6598
6599         * Makefile.in.in (ldflags): re-order sections for gcc 3.2.
6600         * s/cygwin.sc: new linker file.
6601
6602 2003-01-14  Stephen J. Turnbull  <stephen@xemacs.org>
6603
6604         Build fixes courtesy Martin Buchholz <martin@xemacs.org>:
6605
6606         * redisplay-x.c (x_output_string): Use X11-specified types.
6607         * syntax.c, syntax.h (SYNTAX_CODE): Use enum syntaxcode, not int.
6608         * emacs.c (__free_hook): Use typeof with Intel compiler.
6609         * config.h.in (alloca.h): Quick safe hack to please Intel compiler.
6610
6611 2003-01-08  Andy Piper  <andy@xemacs.org>
6612
6613         * unexcw.c (copy_executable_and_dump_data_section): Set the stack
6614         reserve size during unexec().
6615
6616 2003-01-07  Daiki Ueno  <daiki@xemacs.org>
6617
6618         * process-unix.c (unix_create_process): Don't let outchannel block.
6619
6620 2003-01-05  Rick Rankin  <rick_rankin@yahoo.com>
6621
6622         * emacs.c: Include "syswindows.h" when compiling under Cygwin.
6623         Needed for IsBadReadPtr().
6624
6625 2003-01-03  Stephen J. Turnbull  <stephen@xemacs.org>
6626
6627         * XEmacs 21.4.11 "Native Windows TTY Support" is released.
6628
6629 2002-12-14  Ben Wing  <ben@xemacs.org>
6630
6631         * callint.c: Declaration error.
6632         * dumper.c (pdump):
6633         * dumper.c (pdump_load): Warning fix.
6634         * process.c: GCPRO error.
6635         * glyphs.c (unmap_subwindow):
6636         * glyphs.c (map_subwindow): Parenthesizing errors with ! and &&.
6637         * event-stream.c (maybe_kbd_translate): Wrong argument to
6638         character_to_event().
6639
6640         * alloc.c (garbage_collect_1):
6641         * emacs.c:
6642         * emacs.c (debug_can_access_memory):
6643         * emacs.c (fatal_error_signal):
6644         * emacs.c (mswindows_handle_hardware_exceptions):
6645         * emacs.c (main_1):
6646         * emacs.c (main):
6647         * emacs.c (assert_failed):
6648         * emacs.c (syms_of_emacs):
6649         * lisp.h:
6650         * print.c:
6651         * print.c (std_handle_out_va):
6652         * print.c (write_string_to_stdio_stream):
6653         * print.c (write_fmt_string):
6654         * print.c (printing_badness):
6655         * print.c (printing_major_badness):
6656         * print.c (print_internal):
6657         * print.c (debug_print_no_newline):
6658         * print.c (debug_backtrace):
6659         Be more defensive in handling bad values when printing.  Add code
6660         from trunk involving inhibit_non_essential_printing_operations.
6661         When going down or in debug_print(), don't do external conversion
6662         and such and try really, really hard when printing to avoid core
6663         dumping.  Add force-debugging-signal, debug_break().
6664
6665 2002-12-12  Stephen J. Turnbull  <stephen@xemacs.org>
6666
6667         * dumper.c (pdump_load): Include sysdep.h; retry with truename.
6668         Analysis and original patch by Vin Shelton <acs@xemacs.org>.
6669
6670 2002-12-02  Greg Allen  <greg_allen@westlb-systems.co.uk>
6671
6672         * database.c: Fix open_database. Berkeley DB API has changed in
6673         4.1. see: http://www.sleepycat.com/docs/ref/upgrade.4.1/fop.html
6674
6675 2002-11-26  Stephen J. Turnbull  <stephen@xemacs.org>
6676
6677         * specifier.c (Fvalid_specifier_type_p): Typo in comment.
6678
6679 2002-11-13  Stephen J. Turnbull  <stephen@xemacs.org>
6680
6681         * event-Xt.c (Xt_timeout):
6682         (Xt_timeout_callback):
6683         (emacs_Xt_add_timeout):
6684         (emacs_Xt_remove_timeout):
6685         (Xt_timeout_to_emacs_event):
6686         Turn completed_timeouts from a stack into a queue.  Fixes
6687         deadlocks <15829.21626.171573.994716@sinisa.nasamreza.org>.
6688
6689 2002-11-07  Wolfram Gloger  <wg@malloc.de>
6690
6691         * alloc.c (reinit_alloc_once_early): Disable mmap in Doug Lea malloc.
6692         * emacs.c (main): Assert that mmap'd allocation is disabled.
6693
6694 2002-10-14  Andy Piper  <andy@xemacs.org>
6695
6696         * glyphs-widget.c (layout_query_geometry): add in fiddle
6697         factor. Include border text in width layout calculation.
6698         (layout_layout): use BORDER_FIDDLE_FACTOR instead of 10.
6699
6700 2002-11-02  Stephen J. Turnbull  <stephen@xemacs.org>
6701
6702         * XEmacs 21.4.10 "Military Intelligence" is released.
6703
6704 2002-10-17  Raymond Toy  <toy@rtp.ericsson.se>
6705
6706         * nas.c: Update for NAS 1.6 and later, from Jon Trulson.  Was
6707         using the NAS private array SoundFileInfo that no longer exists in
6708         NAS 1.6 and later.  Preserve backward compatibility with NAS 1.5a
6709         and earlier.  This is broken for some versions between 1.5a and
6710         1.5f.
6711
6712 2002-10-10  Stephen J. Turnbull  <stephen@xemacs.org>
6713
6714         * realpath.c (win32_readlink): Try to fix truename of wildcard bug.
6715
6716         * emacs.c (shut_down_emacs): Improve crash message.
6717
6718 2002-10-09  Stephen J. Turnbull  <stephen@xemacs.org>
6719
6720         * file-coding.c (determine_real_coding_system): Check for coding
6721         cookie in first LINES_TO_CHECK lines (currently 2).  Cater to
6722         shebangs and Python PEP 263.
6723
6724 2002-10-08  Andy Piper  <andy@xemacs.org>
6725
6726         * glyphs-widget.c (layout_query_geometry): only resize dynamically
6727         if static sizes haven't been set.
6728
6729 2002-08-30  Mike Alexander  <mta@arbortext.com>
6730
6731         * event-msw.c (winsock_closer): Use closesocket, not CloseHandle
6732         to close a socket.
6733
6734 2002-10-03  Stephen J. Turnbull  <stephen@xemacs.org>
6735
6736         * callproc.c (child_setup): 21.4 doesn't have retry_close.
6737
6738 2002-09-20  Mike Sperber <mike@xemacs.org>
6739
6740         (This partially gets back my patch from 2002-07-20 without the
6741         bug.)
6742         * callproc.c (child_setup): Remove Ben's comment noting confusion
6743         over the file descriptors >= 3: close_process_descs() doesn't
6744         close those.  Fix fd range to go up to MAXDESC-1 instead of 64.
6745         * process-unix.c (unix_create_process): Call
6746         begin_dont_check_for_quit to inhibit unwanted interaction (and
6747         thus breaking of X event synchronicity) in the child.
6748
6749 2002-09-26  Golubev I. N.  <gin@mo.msk.ru>
6750
6751         * frame-x.c (x_delete_frame): do not call XtDisplay on a destroyed
6752         widget.
6753
6754 2002-08-20  Ben Sigelman  <bhsigelm@cs.brown.edu>
6755
6756         * event-Xt.c (drain_X_queue): loop over while(XEventsQueued())
6757         instead of while(XtAppPending()&XtIMXEvent).  Upon a gdm logout,
6758         the xemacs process did not exit, but looped infinitely here.  This
6759         fixes that problem.
6760
6761 2002-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
6762
6763         * font-lock.c (SYNTAX_START_STYLE, SYNTAX_END_STYLE): Quiet GCC.
6764         (find_context): Improve comments.
6765
6766         * regex.c (re_compile_fastmap):  Gratuitous #ifdef comment fixes.
6767         (re_match_2): An XCHAR_TABLE operation was missing.
6768
6769         Many of the following changes were inspired by Andy Piper's (now
6770         obsolete) patch to make syntax-table text property lookup optional.
6771
6772         [Documentation]
6773
6774         * syntax.h (top level): Document semantics of syntax flags.
6775         * syntax.c (comstr_start, Fforward_comment): Improve comments.
6776         * syntax.c, syntax.h (top level): Document syntax cache better in
6777         comments.
6778
6779         [Instrument syntax caching (temporary change)]
6780
6781         * syntax.h (enum syntax_cache_statistics_functions, struct
6782         syntax_cache_statistics, SCS_STATISTICS_SET_FUNCTION,
6783         SYNTAX_CACHE_STATISTICS_COUNT_INIT): New types and macros.
6784         * syntax.c (scan_words, Fforward_comment, scan_lists,
6785         Fbackward_prefix_characters):
6786         * font-lock.c (find_context):
6787         Use them to instrument syntax caching. 
6788         * syntax.c (struct syntax_cache_statistics, scs_statistics,
6789         syntax_cache_statistics_function_names): New type and variables.
6790         * syntax.c (update_syntax_cache): Update and report statistics.
6791
6792         [Major syntax cache optimizations]
6793
6794         syntax.c (lookup_syntax_properties): Default off.
6795
6796         * syntax.h (UPDATE_SYNTAX_INTERNAL): New, implements UPDATE_SYNTAX*.
6797         * syntax.c (update_syntax_cache):
6798         Move init test from update_syntax_cache to UPDATE_SYNTAX_INTERNAL.
6799
6800         [Minor syntax cache optimizations and code clarifications]
6801
6802         * syntax.h (SYNTAX_COMMENT_BITS, SYNTAX_START_P, SYNTAX_END_P,
6803         SYNTAX_STYLES_MATCH_START_P, SYNTAX_STYLES_MATCH_1CHAR_P,
6804         SYNTAX_STYLES_MATCH_END_P, STYLE_FOUND_1CHAR_P, STYLE_FOUND_P,
6805         SYNTAX_COMMENT_MASK_END, SYNTAX_COMMENT_MASK_START,
6806         SYNTAX_COMMENT_1CHAR_MASK): Remove redundant argument `table'.
6807         (Code clarification.)
6808
6809         * syntax.c (scan_words, find_end_of_comment, scan_sexps_forward,
6810         scan_lists): Compute code from syncode, use Boolean macros instead
6811         of redundant masking operations.  (Code clarification; any decent
6812         compiler can do this optimization.)
6813
6814         * syntax.c (scan_lists): Rearrange switches (case Sstring_fence)
6815         for clarity.
6816
6817         * syntax.h, syntax.c (NEXT_SINGLE_PROPERTY_CHANGE,
6818         PREVIOUS_SINGLE_PROPERTY_CHANGE, update_syntax_cache): Conditionally
6819         use F*_single_property_change instead of F*_extent_change.
6820         Currently F*_single_property_change is _much_ less efficient.
6821
6822         * dired.c (Fdirectory_files): Qt not valid in syntax_cache.object.
6823         * syntax.h (SETUP_SYNTAX_CACHE_FOR_OBJECT):  Initialize
6824         syntax_cache.object properly, don't leave Qt or Qnil.
6825         (SYNTAX_CACHE_BYTE_TO_CHAR): Use SETUP_SYNTAX_CACHE_FOR_OBJECT.
6826         * syntax.c (update_syntax_cache): Use BUFFERP and STRINGP, not
6827         tests for Qt or Qnil.
6828
6829 2002-09-21  Stephen J. Turnbull  <stephen@xemacs.org>
6830
6831         * redisplay.c (point_in_line_start_cache): 
6832         * extents.c (print_extent_1):
6833         Fix warnings.
6834
6835         * extents.c (Fset_extent_property): Document `syntax-table' property.
6836
6837         * extents.h (Fnext_single_property_change): EXFUN it.
6838
6839 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6840
6841         * search.c (clear_unused_search_regs): New static function.
6842         (search_buffer): 
6843         (simple_search): 
6844         (boyer_moore):
6845         Use it.  Fixes "stale match data" bug reported by Martin Stjernholm.
6846         Minor clarifications in comments.
6847
6848         * regex.c (re_match_2_internal): Ensure no stale submatches.
6849
6850 2002-09-09  Stephen J. Turnbull  <stephen@xemacs.org>
6851
6852         * event-Xt.c (enqueue_focus_event): Add missing prototype.
6853
6854 2002-08-29  Jerry James  <james@xemacs.org>
6855
6856         * lisp.h: structrures -> structures.
6857
6858 2002-06-03  Andy Piper  <andy@xemacs.org>
6859
6860         * frame.c (frame_conversion_internal): add conversion appropriate
6861         for setting frame dimensions in pixels.
6862
6863         * console.h (struct console_methods): add device-specific widget
6864         layout functions.
6865
6866         * emacs.c (main_1): initialize glyph vars.
6867
6868         * event-Xt.c (handle_focus_event_1): call handle_focus_event_2
6869         (handle_focus_event_2): new function. Allow focus to
6870         be set to a particular window and widget.
6871         (enqueue_focus_event): new function. Create a
6872         synthetic focus event.
6873         (emacs_Xt_handle_magic_event): call
6874         handle_focus_event_2.
6875
6876         * frame.c (Fset_frame_pixel_height): new function. Allow
6877         pixel-based sizing. Does the right thing on character-oriented
6878         displays.
6879         (Fset_frame_pixel_width): ditto.
6880         (Fset_frame_pixel_size): ditto.
6881         (syms_of_frame): declare.
6882
6883         * general-slots.h: add :vertically-justify and
6884         :horizontally-justify.
6885
6886         * glyphs-msw.c (xbm_create_bitmap_from_data): warning fix.
6887         (mswindows_widget_border_width): new function.
6888         (mswindows_combo_box_instantiate): set border widths.
6889         (console_type_create_glyphs_mswindows): declare.
6890
6891         * glyphs-widget.c:
6892         (check_valid_justification): allow vertical and horizontal
6893         justification.
6894         (widget_border_width): new function. Call device methods.
6895         (widget_instance_border_width): ditto.
6896         (logical_unit_height): new function. Determine the height of a
6897         logical-unit. Logical units are intended to provide grid-like
6898         layout for subcontrols in a layout. If the layout is
6899         :vertically-justify top then subcontrols will be positioned on
6900         logical-unit boundaries, thus allowing adjacent subcontrols to
6901         line up.
6902         (widget_logical_unit_height): ditto for widgets.
6903         (redisplay_widget): misc cleanup.
6904         (widget_spacing): new function. Call device specific
6905         methods. Intended to be the default gap between adjacent widgets.
6906         (widget_query_geometry): use new spacing functions to determine
6907         appropriate geometry.
6908         (initialize_widget_image_instance): initialize horizontal and
6909         vertical justification.
6910         (widget_instantiate): use logica-units where appropriate for
6911         sizing large widgets.
6912         (button_query_geometry): use widget_instance_border_width.
6913         (tree_view_query_geometry): ditto.
6914         (tab_control_query_geometry): ditto.
6915         (edit_field_query_geometry): new function.
6916         (layout_update): pick up :justify, :horizontally-justify and
6917         :vertically-justify none of which worked previously. :justify is
6918         used as a fallback for both horizontal and vertical justification.
6919         (layout_query_geometry): use logical units to size appropriately.
6920         (layout_layout): ditto.
6921         (Fwidget_logical_to_character_width): new function. Allow users to
6922         convert from logical units to characters so that frame sizes can
6923         be set appropriately.
6924         (Fwidget_logical_to_character_height): ditto.
6925         (syms_of_glyphs_widget): declare.
6926         (image_instantiator_edit_fields): add edit_field_query_geometry.
6927         (VALID_LAYOUT_KEYWORDS): declare :vertically-justify and
6928         :horizontally-justify.
6929         (specifier_vars_of_glyphs_widget): new function. Declare
6930         Vwidget_border_width which is not yet used.
6931
6932         * glyphs-x.c (x_map_subwindow): enqueue appropriate focus events.
6933         (x_widget_border_width): new function.
6934         (x_widget_instantiate): create a sensible name for widgets.
6935         (console_type_create_glyphs_x): declare x_widget_border_width.
6936
6937         * glyphs.h (DEFAULT_WIDGET_BORDER_WIDTH): new macro.
6938         (struct Lisp_Image_Instance): add :vertically-justify and
6939         :horizontally-justify.
6940         (LAYOUT_JUSTIFY_TOP): new.
6941         (IMAGE_INSTANCE_SUBWINDOW_H_JUSTIFY): new.
6942         (ROUND_UP): new macro. Round argument up to next integral
6943         interval.
6944
6945         * redisplay-output.c (redisplay_output_layout): misc formatting.
6946
6947         * symsinit.h: declare specifier_vars_of_glyphs_widget.
6948
6949 2002-08-23  Stephen J. Turnbull  <stephen@xemacs.org>
6950
6951         * XEmacs 21.4.9 "Informed Management" is released.
6952
6953 2002-08-19  Andy Piper  <andy@xemacs.org>
6954
6955         * fileio.c (Ffile_truename): on cygwin using win32 normalize to
6956         win32 format.
6957
6958         * realpath.c (xrealpath): normalize drive spec also so that dir
6959         sep chars are not mixed on cygwin.
6960
6961 2002-08-06  Jerry James  <james@xemacs.org>
6962
6963         * window.c (Fsplit_window): Count only half of the divider width
6964         against the left window when splitting horizontally. 
6965
6966 2002-06-24  Andy Piper  <andy@xemacs.org>
6967
6968         * toolbar-gtk.c (GTK_OUTPUT_BUTTONS_LOOP): output button if whole
6969         toolbar was cleared.
6970
6971         * toolbar-msw.c (mswindows_clear_frame_toolbars): new
6972         function. Split out from mswindows_output_frame_toolbars.
6973         (mswindows_output_frame_toolbars): move clear pieces to
6974         mswindows_output_frame_toolbars.
6975
6976         * toolbar-gtk.c (gtk_clear_frame_toolbars): new function. Split
6977         out from gtk_output_frame_toolbars.
6978         (gtk_output_frame_toolbars): move clear pieces to
6979         gtk_clear_frame_toolbars.
6980
6981         * toolbar-x.c (X_OUTPUT_BUTTONS_LOOP): always output buttons when
6982         the frame is cleared. How this ever worked before is a mystery.
6983         (x_output_frame_toolbars): Only output toolbars.
6984         (x_clear_frame_toolbars): new. Clear previous toolbar locations.
6985
6986         * gutter.c (update_gutter_geometry):
6987         Mark frame layout changed.
6988         (update_frame_gutter_geometry, update_frame_gutters):
6989         Respect frame_layout_changed.
6990
6991         * console.h (struct console_methods): add
6992         clear_frame_toolbars_method.
6993
6994         * redisplay.c (redisplay_frame): call
6995         update_frame_toolbars_geometry and re-order update_frame_toolbars.
6996
6997         * toolbar.h: declare update_frame_toolbars_geometry.
6998
6999         * toolbar.c (update_frame_toolbars_geometry): new function. Split
7000         out from update_frame_toolbars.  Call clear_frame_toolbars.
7001         (update_frame_toolbars): only output, do not change geometry.
7002
7003         * redisplay.c: add frame_layout_changed.
7004
7005         * redisplay.h: add frame_layout_changed.
7006         (CLASS_RESET_CHANGED_FLAGS): set it.
7007         (GLOBAL_RESET_CHANGED_FLAGS): ditto.
7008         (CLASS_REDISPLAY_FLAGS_CHANGEDP): test it.
7009         (GLOBAL_REDISPLAY_FLAGS_CHANGEDP): ditto.
7010
7011         * device.h (struct device): add frame_layout_changed.
7012         (MARK_DEVICE_FRAME_LAYOUT_CHANGED): new.
7013
7014         * frame.h (struct frame): add frame_layout_changed.
7015         (MARK_FRAME_LAYOUT_CHANGED): new.
7016
7017 2002-06-30  Mike Alexander  <mta@arbortext.com>
7018
7019         * event-msw.c (mswindows_need_event): Don't wait for a new message
7020         if the queue is not empty.  Suggested by Paul Moore.
7021
7022 2002-06-12  Andy Piper  <andy@xemacs.org>
7023
7024         * frame-msw.c (msprinter_init_frame_3): calculate the frame size
7025         for printing on accurately.
7026
7027 2002-06-09  Rick Rankin <rick_rankin@yahoo.com>
7028
7029         * event-msw.c (mswindows_wnd_proc): Add a handler for the
7030         WM_ACTIVATE message. Make sure that the frame is visible if the
7031         window is visible. This seemss to fix the problem where XEmacs
7032         appears to freeze after switching desktops with certain virtual
7033         window managers.
7034         (debug_output_mswin_message): Added code to output message
7035         parameters for WM_WINDOWPOSCHANGED, 
7036         WM_WINDOWPOSCHANGING, WM_MOVE, and WM_SIZE messages.
7037
7038 2002-05-25  Andy Piper  <andy@xemacs.org>
7039
7040         * select-x.c (vars_of_select_x): Fix docstring of
7041         x-selection-strict-motif-ownership
7042
7043 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7044
7045         * keymap.c (get_keymap):
7046         Add comment about do_autoload GCPROs own args.
7047
7048 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7049
7050         * bytecode.c (execute_optimized_program): check_opcode ifdef
7051         ERROR_CHECK_BYTE_CODE.
7052
7053 2002-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
7054
7055         Thanks to Ben Wing and Michael Sperber.
7056
7057         * eval.c (Fcommand_execute):
7058         (Feval):
7059         (Ffuncall):
7060         (Fmacroexpand_internal):
7061         (function_argcount):
7062         callint.c (Fcall_interactively):
7063         Add comment about do_autoload GCPROs own args.
7064
7065         * (do_autoload): GCPRO both args as well as local Lisp_Object.
7066
7067         * eval.c (Ffuncall): Extra braces to placate GCC.
7068
7069 2002-08-10  Stephen J. Turnbull  <stephen@xemacs.org>
7070
7071         * backtrace.h (grow_specpdl):
7072         (SPECPDL_RESERVE):
7073         * EmacsFrame.c (EmacsFrameSetValues):
7074         * eval.c (grow_specpdl):
7075         * ExternalShell.c (hack_event_masks_1):
7076         * glyphs-x.c (convert_EImage_to_XImage): 
7077         (x_finalize_image_instance):
7078         * ralloc.c (page_size):
7079         (r_alloc_sbrk):
7080         * xgccache.c (gc_cache_hash):
7081         Fix unsigned comparison warnings.
7082
7083 2002-07-29  Jerry James  <james@xemacs.org>
7084
7085         * lread.c (locate_file): Any nonnegative return value indicates
7086         success if MODE is nonnegative.
7087
7088 2002-08-03  Brian A Palmer  <bpalmer@rescomp.Stanford.EDU>
7089
7090         * emacs.c (Fsplit_string_by_char): Make 2nd arg SEPCHAR a required
7091         argument. 
7092
7093 2002-07-17  Stephen J. Turnbull  <stephen@xemacs.org>
7094
7095         * process-unix.c (unix_send_process): #ifdef the coding_stream member.
7096
7097         * dumper.c (pdump_get_indirect_count):
7098         (pdump_scan_by_alignment):
7099         (pdump_dump_root_struct_ptrs):
7100         (pdump_dump_rtables):
7101         (pdump_dump_root_objects):
7102         (pdump):
7103         * nas.c (WaveOpenDataForReading):
7104         * fns.c (print_bit_vector):
7105         * font-lock.c (SINGLE_SYNTAX_STYLE):
7106         * glyphs.c (check_for_ignored_expose):
7107         (find_matching_subwindow):
7108         * glyphs-eimage.c:
7109         * imgproc.c (get_histogram):
7110         * redisplay.c (point_in_line_start_cache):
7111         * redisplay-output.c (redisplay_unmap_subwindows):
7112         * symbols.c (defsymbol_massage_name_1):
7113         (defkeyword_massage_name):
7114         (deferror_massage_name_and_message):
7115         * redisplay-x.c (x_output_string): 
7116         * emacs.c (run_temacs_argv_size, run_temacs_args_size):
7117         * frame.h (struct frame):
7118         * filelock.c (current_lock_owner):
7119         * doprnt.c (emacs_doprnt_1):
7120         * lisp.h (struct Lisp_Bit_Vector):
7121         (DO_REALLOC):
7122         Fix warnings.
7123
7124 2002-02-13  Ben Wing  <ben@xemacs.org>
7125
7126         * event-stream.c (reset_key_echo):
7127         * event-stream.c (reset_this_command_keys):
7128         * event-stream.c (execute_command_event):
7129         If console is dead as a result of C-x 5 0, then post-command stuff
7130         needs to be careful and do only non-console-specific stuff.
7131
7132 2002-07-01  Mike Sperber <mike@xemacs.org>
7133
7134         * process-unix.c (unix_send_process): Mark coding_outstream as
7135         non-open upon SIGPIPE.
7136
7137         * event-stream.c (Fnext_event): Reorder switch cases to something
7138         that makes sense.
7139
7140 2001-08-13  Dmitry Astapov  <adept@umc.com.ua>
7141
7142         * event-Xt.c (maybe_define_x_key_as_self_inserting_character):
7143         Don't bogusly reinitialize ascii_character property.
7144
7145 2002-07-08  Mike Sperber <mike@xemacs.org>
7146
7147         * process.c (Fstart_process_internal): Do error checking before we
7148         fork off the child, so the child can't muck with the state of the
7149         parent.
7150
7151 2002-07-08  Mike Sperber <mike@xemacs.org>
7152
7153         * ralloc.c (init_ralloc): Allocate properly for pdump.
7154
7155 2002-06-12  Andy Piper  <andy@xemacs.org>
7156
7157         * glyphs.c (query_string_geometry): check the string.
7158
7159         * glyphs-widget.c (widget_logical_unit_height): cope with nil
7160         widget names.
7161
7162 2002-06-17  Jerry James  <james@xemacs.org>
7163
7164         * sysdll.c: Remove RTLD_GLOBAL initialization.
7165         * sysdll.c (dll_open): Do not use RTLD_GLOBAL.
7166
7167 2002-06-25  Stephen J. Turnbull  <stephen@xemacs.org>
7168
7169         * search.c (skip_chars): Port Ben's crash fix and efficiency patch.
7170
7171 2002-05-16  Mathias Grimmberger  <mgri@zaphod.sax.de>
7172
7173         * sysdep.c (sys_rename): Make sys_rename work for the case where
7174         Windows rename sets errno to EACCES if target file exists.
7175
7176 2002-05-21  Jonathan Harris  <jonathan@xemacs.org>
7177
7178         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7179         Fix detection of metric units to work on Win95
7180
7181 2002-05-21  Stephen J. Turnbull  <stephen@xemacs.org>
7182
7183         * syswindows.h: #define LOCALE_RETURN_NUMBER.  Why, I don't know.
7184
7185 2002-04-25  Andy Piper  <andy@xemacs.org>
7186
7187         * redisplay.c (create_text_block): Remove extra comment trailer.
7188
7189 2002-04-24  Andy Piper  <andy@xemacs.org>
7190
7191         * redisplay.c (create_text_block): Don't actually add propagation
7192         data if the line ends after we have added a glyph.
7193
7194 2002-04-22  Andy Piper  <andy@xemacs.org>
7195
7196         * extents.c (extent_fragment_update): check for glyphs we have
7197         previously displayed.
7198         * extents.c (print_extent_1): warning removal.
7199         * extents.h: change prototype.
7200         * redisplay-output.c (redisplay_normalize_glyph_area): calculate
7201         widths correctly for wide glyphs.
7202         * redisplay.c (position_redisplay_data_type): add end_glyph_width.
7203         * redisplay.c (prop_type): add PROP_GLYPH.
7204         * redisplay.c (struct prop_block): add glyph type
7205         * redisplay.c (add_glyph_rune): when adding part of a glyph add it
7206         to the propagation data.
7207         * redisplay.c (create_text_block): if there is a glyph in the
7208         propagation data use it to salt extent_fragment_update.
7209         * redisplay.c (create_string_text_block): ditto.
7210
7211 2002-04-13  Nix  <nix@esperi.demon.co.uk>
7212
7213         * redisplay.h (struct rune): Add ascent, descent, and yoffset fields.
7214         * redisplay-output.c (compare_runes): Compare them.
7215         * redisplay.c: Update copyright date.
7216         * redisplay.c (pos_data): Add need_baseline_computation field.
7217         * redisplay.c (add_glyph_rune): Update ascent, descent, and
7218         need_baseline_computation; zero yoffset. Set max_pixmap_height
7219         for all pixmaps, not just automatically positioned ones.
7220         * redisplay.c (calculate_yoffset): New, compute yoffset values.
7221         * redisplay.c (calculate_baseline): New, compute textual baseline.
7222         * redisplay.c (add_glyph_rune): Call them.
7223         * redisplay.c (create_text_block): Likewise.
7224         * redisplay.c (create_overlay_glyph_block): Likewise.
7225         * redisplay.c (add_margin_runes): Likewise.
7226         * redisplay.c (create_string_text_block): Likewise. Fix tabdamage.
7227
7228         * redisplay.h: (redisplay_calculate_display_boxes): Change prototype.
7229         * redisplay-output.c (redisplay_calculate_display_boxes): Use yoffset.
7230         * redisplay-msw.c (mswindows_output_blank): Pass 0 as yoffset.
7231         * redisplay-msw.c (mswindows_output_string): Likewise.
7232         * redisplay-msw.c (mswindows_output_display_block): Pass yoffset.
7233         * redisplay-gtk.c (gtk_output_display_block): Likewise.
7234         * redisplay-x.c (x_output_display_block): Likewise.
7235
7236 2002-03-28  Ben Wing  <ben@xemacs.org>
7237
7238         * redisplay.c: Fixed bug in redisplay
7239         w.r.t. hscroll/truncation/continuation glyphs causing jumping up
7240         and down of the lines, since they're bigger than the line
7241         size. (It was seen most obviously when there's a horizontal scroll
7242         bar, e.g. do C-h a glyph or something like that.) The problem was
7243         that the glyph-contrib-p setting on glyphs was ignored even if it
7244         was set properly, which it wasn't until now.
7245
7246 2002-04-24  Andy Piper  <andy@xemacs.org>
7247
7248         * lisp.h (Dynarr_end): Fix definition.
7249
7250 2002-02-06  Adrian Aichner  <adrian@xemacs.org>
7251
7252         * redisplay.c (mark_redisplay): Remove call to
7253         update_frame_window_mirror.
7254
7255 2001-11-15  Andy Piper  <andy@xemacs.org>
7256
7257         * win32.c (Fmswindows_shell_execute): fix handling of URL's under
7258         cygwin (again).
7259
7260 2002-02-13  Andy Piper  <andy@xemacs.org>
7261
7262         * event-msw.c (mswindows_wnd_proc): only mark the frame visible if
7263         we did in fact enqueue the XM_MAPFRAME event.
7264
7265 2002-01-15  Adrian Aichner  <adrian@xemacs.org>
7266
7267         * event-msw.c (mswindows_wnd_proc): Add handling of WM_SHOWWINDOW
7268         to fix problem switching between virtual desktops under virtuawin
7269         virtual window manager.
7270
7271 2001-07-30  Adrian Aichner  <adrian@xemacs.org>
7272
7273         * event-msw.c: Typo fix.
7274         * event-msw.c (mswindows_wnd_proc): Set FRAME_VISIBLE_P after
7275         magic XM_MAPFRAME event has been sent.
7276
7277 2001-11-23  Andy Piper  <andy@xemacs.org>
7278
7279         * event-msw.c (mswindows_wnd_proc): Don't pump mousewheel events.
7280
7281 2001-11-21  Andy Piper  <andy@xemacs.org>
7282
7283         * scrollbar-msw.c (mswindows_handle_mousewheel_event): cope with
7284         mouse events outside the frame.
7285
7286 2002-03-20  Andy Piper  <andy@xemacs.org>
7287
7288         * menubar-msw.c (mswindows_popup_menu): warning removal.
7289         * dialog-msw.c (dialog_popped_down): ditto.
7290
7291 2001-12-11  Andy Piper  <andy@xemacs.org>
7292
7293         * dialog-msw.c (dialog_popped_down): new function. unset popup_up_p.
7294         * dialog-msw.c (mswindows_make_dialog_box_internal): set
7295         popup_up_p.
7296         * menubar-msw.c (unsafe_handle_wm_initmenupopup_1): ditto.
7297         * menubar-msw.c (mswindows_handle_wm_command): ditto.
7298         * menubar-msw.c (mswindows_popup_menu): ditto.
7299
7300 2001-10-29  Andy Piper  <andy@xemacs.org>
7301
7302         * dialog-msw.c (handle_directory_dialog_box): quit if the user
7303         cancels.
7304
7305 2002-01-03  Andy Piper  <andy@xemacs.org>
7306
7307         * realpath.c (ABS_LENGTH): dtrt for cygwin systems using drive
7308         letters.
7309         (xrealpath): ditto.
7310
7311 2002-03-29  Jonathan Harris  <jonathan@xemacs.org>
7312
7313         * device-msw.c (plist_get_margin): Add arg specifying mm or inches
7314         * device-msw.c (plist_set_margin): Fix multiplicand used for mm
7315         * device-msw.c (mswindows_handle_page_setup_dialog_box):
7316         Detect and handle case where machine is set up for metric units
7317
7318 2002-04-02  Andy Piper  <andy@xemacs.org>
7319
7320         * dired-msw.c (mswindows_get_files): 
7321         * nt.c (mswindows_stat): SetErrorMode() so that file errors are
7322         completely handled by XEmacs. Suggested by Thomas Vogler
7323         <mail@thomas-vogler.de>.
7324
7325 2001-11-14  Andy Piper  <andy@xemacs.org>
7326
7327         * nt.c (REG_ROOT): change registry key to XEmacs.
7328
7329 2002-04-27  Andy Piper  <andy@xemacs.org>
7330
7331         * glyphs-msw.c (mswindows_widget_instantiate): remove dead-code.
7332
7333 2002-04-26  Andy Piper  <andy@xemacs.org>
7334
7335         * glyphs-msw.c (mswindows_map_subwindow): observe :initial-focus
7336         behavior.
7337
7338 2002-03-14  Mike Alexander  <mta@arbortext.com>
7339
7340         * event-msw.c (mswindows_unwait_process): New, remove process from
7341         wait list
7342         * process-nt.c (nt_finalize_process_data): Call
7343         mswindows_unwait_process
7344         * console-msw.h: Declare mswindows_unwait_process
7345
7346 2002-05-14  Stephen J. Turnbull  <stephen@xemacs.org>
7347
7348         * editfns.c (Fdecode_time):
7349         (Fformat_time_string):
7350         Check for invalid time.  Thanks to Nick Pakoulin <npak@ispras.ru>.
7351         (make_time): Warning elimination (change arg name).
7352
7353 2001-11-24  Andy Piper  <andy@xemacs.org>
7354
7355         * window.c (Fsplit_window): Doc return type.
7356
7357 2002-04-01  Andy Piper  <andy@xemacs.org>
7358
7359         * emacs.c (Fkill_emacs): Only output message box in interactive
7360         mode.
7361
7362 2002-04-26  Andy Piper  <andy@xemacs.org>
7363  
7364         * config.h.in: pull in 21.5.x change to stop alloca warnings under
7365         cygwin.
7366
7367 2002-03-18  Gregory Steuck  <greg-xemacs-patch@nest.cx>
7368
7369         * unexelf.c:  Use ELFSIZE or define from _LP64 to indicate a 64
7370         bit platform.
7371
7372 2002-05-09  Stephen J. Turnbull  <stephen@xemacs.org>
7373
7374         * XEmacs 21.4.8 "Honest Recruiter" is released.
7375
7376 2002-05-07  Nix  <nix@esperi.demon.co.uk>
7377
7378         Supersedes 2002-04-17 patch.
7379
7380         * process.h (PROCESS_LIVE_P): Use the process status as
7381         evidence of health, not the state of the input stream.
7382         (PROCESS_READABLE_P): Say if the process is readable
7383         from. (It may be dead nonetheless.)
7384         (CHECK_READABLE_PROCESS): Test for that condition.
7385
7386         * process.c (create_process): Use PROCESS_READABLE_P.
7387         (read_process_output, set_process_filter): Likewise.
7388
7389         * process.c (Fprocess_input_coding_system): Use CHECK_READABLE_PROCESS.
7390         (Fset_process_input_coding_system, Fprocess_coding_system): Likewise.
7391
7392         This code is #if 0'd, this is not the time to add new functions:
7393
7394         * process.c (Fprocess_readable_p): Report readability status.
7395         * process.c (Qprocess_readable_p): New, associated symbol...
7396         * process.c (syms_of_process): ... initialize it.
7397
7398 2002-05-04  Stephen J. Turnbull  <stephen@xemacs.org>
7399
7400         * XEmacs 21.4.7 "Economic Science" is released.
7401
7402 2002-04-17  Nix  <nix@esperi.demon.co.uk>
7403
7404         * process.h (PROCESS_LIVE_P): Use the process status as
7405         evidence of health, not the state of the input stream.
7406
7407 2002-04-30  Charles G. Waldman <cgw@xemacs.org>
7408
7409         * sysdep.c (sys_siglist): change "signum" to "signal"
7410
7411 2001-04-21  Martin Buchholz  <martin@xemacs.org>
7412
7413         * s/darwin.h: New file.
7414         Thanks to Greg Parker <gparker@cs.stanford.edu>.
7415         
7416 2002-04-23  Andreas Jaeger  <aj@suse.de>
7417
7418         * s/linux.h (LIB_STANDARD): Define correctly for x86-64 and s390x
7419         which use lib64 for 64-bit libs.
7420         (START_FILES): Likewise.
7421
7422 2002-02-11  Mike Sperber  <mike@xemacs.org>
7423
7424         * device-x.c: 
7425         (x_IO_error_handler):
7426         (x_init_device): Temporarily keep device in static variable
7427         `device_being_initialized' so we can recover gracefully from
7428         internal XOpenDevice failure.  (XOpenDevice is documented to
7429         return NULL on failure, but sometimes calls the IO error handler
7430         instead.)
7431
7432 2002-01-31  John H. Palmieri  <palmieri@math.washington.edu>
7433
7434         * dired.c (Ffile_name_all_completions): Change documentation --
7435         remove reference to completion-ignored-extensions.
7436         * dired.c (vars_of_dired): Change documentation for
7437         completion-ignored-extensions -- remove reference to
7438         file-name-all-completions.
7439
7440 2002-03-06  Jerry James  <james@xemacs.org>
7441
7442         * emodules.c (emodules_load): Fix multiple loading of same module.
7443
7444 2002-01-25  Andrew Begel <abegel@cs.berkeley.edu>
7445         * sysdll.c (dll_open): Changed to use RTLD_NOW instead of
7446         RTLD_LAZY to avoid incorrect symbol binding when using nested
7447         shared libraries on Solaris.
7448
7449 2002-02-12  Stephen J. Turnbull  <stephen@xemacs.org>
7450
7451         * fileio.c (Ffind_file_name_handler): Improve docstring.
7452
7453 2002-01-20  Stephen J. Turnbull  <stephen@xemacs.org>
7454
7455         * fns.c (Fmapconcat): Improve docstring.
7456
7457 2002-01-03  Eric Gillespie, Jr.  <epg@pretzelnet.org>
7458
7459         * device-gtk.c: Add prototype for
7460         emacs_gtk_selection_clear_event_handle.
7461         (gtk_init_device): Call gtk_selection_add_target for CLIPBOARD
7462         selection.  Setup signal handler for "selection_clear_event"
7463         (emacs_gtk_selection_clear_event_handle).
7464
7465         * select-gtk.c (emacs_gtk_selection_clear_event_handle): Handle
7466         other applications owning the clipboard (based on
7467         x_handle_selection_clear).
7468
7469 2001-12-23  William M. Perry  <wmperry@gnu.org>
7470
7471         * menubar-gtk.c (gtk_popup_menu)  Add sanity checks, fix crash.
7472         
7473 2002-01-04  Martin Buchholz  <martin@xemacs.org>
7474
7475         * keymap.c (define_key_alternate_name): Parenthesize EQ.
7476
7477 2001-12-17  Stephen J. Turnbull  <stephen@xemacs.org>
7478
7479         * XEmacs 21.4.6 "Common Lisp" is released.
7480
7481 2001-12-16  Torsten Duwe  <duwe@caldera.de>
7482
7483         * search.c (Freplace_match): Add missing sub-expression functionality.
7484
7485         * buffer.c (decode_buffer): Add a check for pointer type to
7486         decode_buffer, before gcc's CSE optimization reorders a
7487         dereference in front of the allow_string test.
7488
7489 2001-11-16  Darryl Okahata  <darrylo@xemacs.org>
7490
7491         * window.c (window_loop): Fix bug that sometimes prevented
7492         window_loop() from iterating across multiple devices.  Also, at
7493         Ben's request, changed infloop-detecting code to abort() instead
7494         of silently terminating window_loop().
7495
7496 2001-11-21  Stephen J. Turnbull  <stephen@xemacs.org>
7497
7498         Based on analysis and patch by Simon Josefson <jas@extundo.com>.
7499         * editfns.c (make_time): New function.
7500         (Fencode_time): Use it instead of wasteful_word_to_lisp.
7501         * lisp.h (make_time): Prototype and comment it.
7502         * dired.c (wasteful_word_to_lisp): Deprecate.
7503         (Ffile_attributes): Use make_time() instead of wasteful_word_to_lisp().
7504
7505 2001-10-31  Kyle Jones  <kyle_jones@wonderworks.com>
7506
7507         * fileio.c (auto_save_1): Use current coding system, not
7508         escape-quoted.
7509
7510 2001-11-13  Ben Wing  <ben@xemacs.org>
7511
7512         * window.c:
7513         * window.c (window_truncation_on):
7514         * window.c (syms_of_window):
7515         truncate-partial-width-windows should respect the buffer being
7516         displayed, like other redisplay vars.
7517
7518 2001-11-13  Hirokazu FUKUI  <hfukui@sannet.ne.jp>
7519
7520         * event-stream.c (Fread_key_sequence): save current buffer.
7521
7522 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7523
7524         * ntheap.c (_heap_init): Don't redefine in VS.NET (MSC >= 1300).
7525
7526 2001-10-29  Andrew Begel  <abegel@eecs.berkeley.edu>
7527
7528         * alloc.c (lcrecord_stats): Add space for types defined in modules.
7529
7530 2001-10-26  Mike Alexander  <mta@arbortext.com>
7531
7532         * event-msw.c (slurper_free_shared_data_maybe): Free the pipe handle.
7533
7534 2001-10-25  Andy Piper  <andy@xemacs.org>
7535
7536         * ChangeLog:
7537         * dialog-msw.c (handle_directory_proc): new function.
7538          (handle_directory_dialog_box): new fucntion.
7539          (handle_file_dialog_box): use new directory dialog support.
7540          (mswindows_make_dialog_box_internal): ditto.
7541         * event-msw.c (mswindows_wnd_proc): minor fix to scrollbar event
7542         handling.
7543         (mswindows_find_frame): make global.
7544         * fileio.c (Fexpand_file_name): build fix.
7545         * general-slots.h: add Qdirectory.
7546         * scrollbar-msw.c (mswindows_handle_scrollbar_event): fix focus
7547         handling.
7548         * syswindows.h (LOCAL_TO_WIN32_FILE_FORMAT): fix problem with
7549         cygwin not leaving win32 paths unchanged.
7550         * win32.c (Fmswindows_cygwin_to_win32_path): new function. Use the
7551         cygwin runtime to do path conversion.
7552         (Fmswindows_shell_execute): fix cygwin handling of URLs.
7553         (syms_of_win32): add new function.
7554         * window.c (window_loop): build fix.
7555
7556 2001-10-15  Andy Piper  <andy@xemacs.org>
7557
7558         (Fmswindows_shell_execute): fix handling of URL's under cygwin.
7559
7560 2001-10-23  Stephen J. Turnbull  <stephen@xemacs.org>
7561
7562         * XEmacs 21.4.5 "Civil Service" is released.
7563
7564 2001-04-08  Danny Colascione  <qtmstr@optonline.net>
7565
7566         * glyphs-x.c: Force buffer-tab highlight update when moving the
7567         buffer, avoiding an ugly black border, used for keyboard focus
7568         indication, on a widget that can never have keyboard focus, the
7569         buffer tab.
7570
7571 2001-08-30  Daiki Ueno  <ueno@unixuser.org>
7572
7573         * process-unix.c (unix_open_multicast_group): Remove too much
7574         conversion between host and network byte order.
7575
7576 2001-09-10  Nix  <nix@esperi.demon.co.uk>
7577
7578         * src/buffer.c (kill_buffer): Undedicate windows showing BUF
7579         before replacing them.
7580
7581         * src/window.c (window_loop): Implement new UNDEDICATE_BUFFER
7582         operation.
7583
7584         * src/window.c (undedicate_windows): Use it.
7585         * src/window.h: Add prototype.
7586
7587 2001-09-17  Ben Wing  <ben@xemacs.org>
7588
7589         * fileio.c (normalize_filename):
7590         * fileio.c (Fexpand_file_name):
7591         Fix various C++ compile errors in Andy's recent code.
7592         
7593         * callint.c (Fcall_interactively):
7594         * editfns.c (Ftemp_directory):
7595         * editfns.c (Fuser_full_name):
7596         * emacs.c (argmatch):
7597         * lread.c (locate_file_map_suffixes):
7598         * redisplay-x.c (x_ring_bell):
7599         Fix sign-compare warnings.
7600         
7601 2001-09-08  Andy Piper  <andy@xemacs.org>
7602
7603         * fileio.c (normalize_filename): copied from nt.c
7604         * (Ffile_name_directory): enable win32 paths under cygwin.
7605         * (Ffile_name_nondirectory): ditto.
7606         * (directory_file_name): ditto.
7607         * (Fexpand_file_name): ditto.
7608         * (Ffile_truename): ditto.
7609         * (Fsubstitute_in_file_name): ditto.
7610         * (Ffile_name_absolute_p): ditto.
7611         * (Ffile_readable_p): ditto.
7612
7613 2001-09-08  Andy Piper  <andy@xemacs.org>
7614
7615         * device-msw.c (mswindows_finish_init_device): remove dde
7616         initialization.
7617         * device-msw.c (mswindows_init_dde): factor out from
7618         mswindows_finish_init_device()
7619         * device-msw.c (init_mswindows_very_early): new function
7620         initialize but don't enable dde.
7621         * emacs.c (main_1): call init_mswindows_very_early.
7622         * event-msw.c:
7623         * event-msw.c (mswindows_dde_callback): only execute when we are
7624         ready.
7625         * symsinit.h: declare init_mswindows_very_early.
7626
7627 2001-05-02  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7628
7629         [sjt: This has been in 21.5 for months with no complaints.]
7630
7631         * console.h (struct console_methods): Added flags member.
7632         (CONSOLE_IMPLEMENTATION_FLAGS): Defined.
7633         (CONMETH_IMPL_FLAG):
7634         (CONSOLE_IMPL_FLAG): Macro to check implememntation flags.
7635         Defined XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7636
7637         * device.c (window_system_pixelated_geometry): Use the above macros.
7638
7639         * device.h (DEVICE_IMPL_FLAG): Macro to check a device
7640         implememntation flag.
7641         * device.h (DEVICE_DISPLAY_P): Use it.
7642
7643         * frame.c (delete_frame_internal): Use the above macro.
7644
7645         * redisplay.c (redisplay_device): Use it.
7646         (redisplay_device): Obey XDEVIMPF_DONT_PREEMPT_REDISPLAY.
7647         (redisplay_frame): Ditto.
7648
7649         * device-msw.c (mswindows_device_implementation_flags): Removed.
7650         (msprinter_device_implementation_flags): Removed.
7651         (console_type_create_device_mswindows): Removed references to
7652         implementation_flags methods, set implementation flags here.
7653         (console_type_create_device_mswindows): Added XDEVIMPF_DONT_PREEMPT.
7654
7655         * device-gtk.c (gtk_device_implementation_flags): Removed method.
7656         (console_type_create_device_gtk): Removed method declaration.
7657         Added commented out statement which semantically matches the
7658         commented out statement in the above removed method.
7659
7660 2001-04-14  Gordon Sadler  <gbsadler1@lcisp.com>
7661
7662         The attached patch fixes a few warnings. 
7663
7664         * src/emacs.c: prototype console_type_create_select_gtk for GTK only
7665         * src/frame-gtk.c: guard against GNOME calls in GTK only
7666         * src/redisplay-gtk.c: include <sys/poll.h> #ifdef HAVE_POLL
7667         * src/select-gtk.c: prototype lisp_to_time
7668
7669 2001-06-08  Ben Wing  <ben@xemacs.org>
7670
7671         ------ gc-in-window-procedure fixes ------
7672         
7673         * alloc.c:
7674         * alloc.c (struct post_gc_action):
7675         * alloc.c (register_post_gc_action):
7676         * alloc.c (run_post_gc_actions):
7677         * alloc.c (garbage_collect_1):
7678         Create "post-gc actions", to avoid those dreaded "GC during window
7679         procedure" problems.
7680
7681         * event-msw.c:
7682         Abort, clean and simple, when GC in window procedure.  We want
7683         to flush these puppies out.
7684
7685         * glyphs-msw.c:
7686         * glyphs-msw.c (finalize_destroy_window):
7687         * glyphs-msw.c (mswindows_finalize_image_instance):
7688         Use a post-gc action when destroying subwindows.
7689
7690         * lisp.h:
7691         Declare register_post_gc_action().
7692
7693         * scrollbar-msw.c:
7694         * scrollbar-msw.c (unshow_that_mofo):
7695         Use a post-gc action when unshowing scrollbar windows, if in gc.
7696
7697         * redisplay.c (mark_redisplay):
7698         Add comment about the utter evilness of what's going down here.
7699
7700         ------ cygwin setitimer fixes ------
7701         
7702         * Makefile.in.in (sheap_objs):
7703         * Makefile.in.in (profile_objs):
7704         * Makefile.in.in (objs):
7705         Compile profile.c only when HAVE_SETITIMER.
7706         
7707         * nt.c (mswindows_sigset):
7708         * nt.c (mswindows_sighold):
7709         * nt.c (mswindows_sigrelse):
7710         * nt.c (mswindows_sigpause):
7711         * nt.c (mswindows_raise):
7712         * nt.c (close_file_data):
7713         Style fixes.
7714         
7715         * nt.c:
7716         Move setitimer() emulation to win32.c, because Cygwin needs it too.
7717         
7718         * profile.c:
7719         * profile.c (Fstart_profiling):
7720         * profile.c (Fstop_profiling):
7721         Make sure we don't compile if no setitimer().  Use qxe_setitimer()
7722         instead of just plain setitimer().
7723         
7724         * signal.c:
7725         * signal.c (set_one_shot_timer):
7726         * signal.c (alarm):
7727         Define qxe_setitimer() as an encapsulation around setitimer() --
7728         call setitimer() directly unless Cygwin or MS Win, in which case
7729         we use our simulated version in win32.c.
7730         
7731         * systime.h:
7732         * systime.h (struct itimerval):
7733         * systime.h (ITIMER_REAL):
7734         Prototype mswindows_setitimer() and qxe_setitimer().  Long
7735         comment about "qxe" and the policy regarding encapsulation.
7736
7737         * win32.c:
7738         * win32.c (setitimer_helper_proc):
7739         * win32.c (setitimer_helper_period):
7740         * win32.c (setitimer_helper):
7741         * win32.c (mswindows_setitimer):
7742         Move setitimer() emulation here, so Cygwin can use it.
7743         Rename a couple of functions and variables to be longer and more
7744         descriptive.  In setitimer_helper_proc(), send the signal
7745         using either mswindows_raise() or (on Cygwin) kill().  If for
7746         some reason we are still getting lockups, we'll change the kill()
7747         to directly invoke the signal handlers.
7748
7749         ------ windows shell fixes ------
7750         
7751         * callproc.c:
7752         * ntproc.c:
7753         Comments about how these two files must die.
7754
7755         * callproc.c (init_callproc):
7756         On MS Windows, init shell-file-name from SHELL, then COMSPEC,
7757         not just COMSPEC. (more correct and closer to FSF.) Don't
7758         force a value for SHELL into the environment. (Comments added
7759         to explain why not.)
7760         
7761         * nt.c (init_user_info):
7762         Don't shove a fabricated SHELL into the environment.  See above.
7763
7764 2001-06-01  Ben Wing  <ben@xemacs.org>
7765
7766         * Makefile.in.in (ldflags):
7767         eliminate that pesky "defaulting to 00401000" warning.
7768         * nt.h:
7769         eliminate warnings.
7770
7771 2001-06-15  Golubev I. N.  <gin@mo.msk.ru>
7772
7773         * s/sco5.h (FORCE_ALLOCATE_PTY_THE_OLD_FASHIONED_WAY): #define.
7774         * process-unix.c (allocate_pty): #ifndef "modern" pty allocation.
7775
7776 2001-04-24  Jerry James <james@xemacs.org>
7777
7778         * faces.h: pass parameters to Fadd_spec_to_specifier in the
7779         correct order.
7780
7781 2001-06-01  Ben Wing  <ben@xemacs.org>
7782
7783         * event-msw.c (debug_mswin_messages):
7784         conditionalize the messages that were causing compile errors.
7785         (if only macros could generate #ifdef statements ...)
7786
7787 2001-07-28  Stephen J. Turnbull  <stephen@xemacs.org>
7788
7789         * XEmacs 21.4.4 "Artificial Intelligence" is released.
7790
7791 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7792
7793         * event-msw.c (mswindows_wnd_proc): Add GC debugging assert.
7794
7795 2001-07-22  Stephen J. Turnbull  <stephen@xemacs.org>
7796
7797         * config.h.in (IPV6_CANONICALIZE): New #define for --with-ipv6-lookup.
7798         * process-unix.c (unix_canonicalize_host_name):
7799         sysdep.c (init_system_name):
7800         Use it to conditionally support IPv6 canonicalization.
7801
7802 2001-05-31  Paul Stodghill  <stodghil@cs.cornell.edu>
7803
7804         * event-msw.c:
7805         Cygwin does not define WM_IME_xxx. Modify the #if's accordingly.
7806
7807 2001-05-19  Paul Krause  <paulkrause1@mediaone.net>
7808
7809         * scrollbar-msw.c: Fixes a crash that occurs on Windows when an
7810         attempt is made to scroll when no scroll bar is available.
7811
7812 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
7813
7814         * input-method-motif.c (XIM_delete_frame): New callback.
7815         (XIM_init_frame): Register it.  (Reapplied by SJT, it somehow
7816         got deleted from 21.4.3.)
7817
7818 2001-06-01  Ben Wing  <ben@xemacs.org>
7819
7820         * nt.c (mswindows_utime):
7821         * nt.c (close_file_data):
7822         fix off-by-one-indirection error.
7823
7824 2001-05-29  Adrian Aichner  <adrian@xemacs.org>
7825
7826         * fileio.c: Include nt.h.  Remove lisp_string_set_file_times()
7827         because set_file_times() now takes Lisp_Object path, instead of
7828         char*.
7829         * nt.c: Include buffer.h.
7830         * nt.c (convert_from_time_t): New.
7831         * nt.c (mswindows_utime): New.  Use utime, since SetFileTime does
7832         not set mtime correctly.
7833         * nt.h: Declare mswindows_utime().
7834         * sysdep.c (set_file_times): set_file_times() now takes Lisp_Object
7835         path, instead of char*.
7836         * systime.h: Include <sys/utime.h> on WIN32_NATIVE.
7837
7838 2001-05-30  Ben Wing  <ben@xemacs.org>
7839
7840         For 21.4:
7841
7842         (Stephen, just take all event-msw.c patches.  This includes
7843         the "iconify" fix below.)
7844
7845         * event-msw.c:
7846         * event-msw.c (mswindows_dequeue_dispatch_event):
7847         * event-msw.c (assert):
7848         * event-msw.c (emacs_mswindows_quit_p):
7849         * event-msw.c (debug_mswin_messages):
7850         * event-msw.c (debug_output_mswin_message):
7851         * event-msw.c (vars_of_event_mswindows):
7852         Fix yet more problems with C-g handling.
7853         Implement debug-mswindows-events.
7854         
7855 2001-05-24  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
7856
7857         * event-msw.c (WM_DROPFILES): Use correct type for OLE characters.
7858         
7859 2001-05-23  Ben Wing  <ben@xemacs.org>
7860
7861         * event-msw.c (winsock_writer):
7862         * event-msw.c (winsock_closer):
7863         prior kludgy code was clobbering the buffer, thinking it was
7864         "unused" space to store an unneeded return value; instead, use
7865         the variable we've already got staring us in the face.
7866
7867 2001-05-17  Andy Piper  <andy@xemacs.org>
7868
7869         * sysfile.h: don't assume that file attributes are boolean
7870
7871 2001-05-23  Ben Wing  <ben@xemacs.org>
7872
7873         * device-msw.c (msprinter_init_device):
7874         signal an error rather than crash with an unavailable network
7875         printer (from Mike Alexander).
7876         
7877         * event-msw.c:
7878         * event-msw.c (struct winsock_stream):
7879         * event-msw.c (winsock_writer):
7880         * event-msw.c (winsock_closer):
7881         * event-msw.c (make_winsock_stream_1):
7882         cleanup headers.  fix (hopefully) an error with data corruption
7883         when sending to a network connection.
7884
7885         * fileio.c (Fexpand_file_name): Fix evil code that attempts
7886         to handle the ~user prefix by (a) always assuming we're referencing
7887         ourselves and not even verifying the user -- hence any file with
7888         a tilde as its first char is invalid! (b) if there wasn't a slash
7889         following the filename, the pointer was set *past* the end of
7890         file and we started reading from uninitialized memory.  Now we
7891         simply treat these as files, always.
7892
7893         * buffer.c (common_init_complex_vars_of_buffer): comment change.
7894         
7895 2001-05-19  Ben Wing  <ben@xemacs.org>
7896
7897         * eval.c: doc comment about gcpro'ing in record_unwind_protect.
7898
7899         * process-nt.c:
7900         * process-nt.c (vars_of_process_nt):
7901         remove unused mswindows-quote-process-args.  rec for 21.4.
7902         
7903 2001-05-12  Ben Wing  <ben@xemacs.org>
7904
7905         * event-msw.c (mswindows_dde_callback):
7906         * event-msw.c (mswindows_wnd_proc):
7907         eliminate cygwin warnings.
7908
7909 2001-05-06  Ben Wing  <ben@xemacs.org>
7910
7911         * console-msw.h:
7912         * device-msw.c:
7913         * device-msw.c (print_dialog_worker):
7914         * device-msw.c (mswindows_handle_print_dialog_box):
7915         * device-msw.c (syms_of_device_mswindows):
7916         * dialog-msw.c (mswindows_make_dialog_box_internal):
7917         * general-slots.h:
7918         implement printing the selection when it's selected.
7919
7920 2001-05-20  Drazen Kacar  <dave@arsdigita.com>
7921
7922         * glyphs-gtk.c (gtk_resource_instantiate): C++ comment -> #if 0
7923
7924 2001-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
7925
7926         * lisp.h (EMACS_INT_MAX): This should be one bit less since
7927         EMACS_INT is signed.
7928
7929 2001-04-15  Michael Lausch  <mla@1012surf.net>
7930
7931         * scrollbar-gtk.c (gtk_create_scrollbar_instance): Call
7932         gtk_widget_request_size() to give scrollbar >0 width for
7933         GTK >1.2.8.
7934
7935 2001-05-30  William M. Perry  <wmperry@gnu.org>
7936
7937         * event-gtk.c: Check for buttons as modifier keys.
7938
7939 2001-05-25  Craig Lanning  <CraigL@Knology.net>
7940
7941         * s\mingw32.h:
7942         Properly find MinGW's <process.h> inside Cygwin's restructured
7943         include directories.  Don't try to include <cygwin/version.h>
7944         since we are dropping support for MinGW in versions of Cygwin
7945         earlier than b21.
7946         * nt.c:
7947         Drop support for MinGW in versions of Cygwin before b21.
7948         * sysdep.c:
7949         Properly find MinGW's <process.h> inside Cygwin's restructured
7950         include directories.
7951         * syswindows.h:
7952         Drop support for MinGW in versions of Cygwin before b21.
7953         * unexcw.c:
7954         Even though a.out.h is no longer detected by configure, allow
7955         MinGW to use it until we figure out how to do the job with Win32.
7956
7957 2001-07-11  Matt Tucker  <tuck@whistlingfish.net>
7958
7959         * syntax.c (find_start_of_comment):
7960         Fix `unbalanced parentheses' bug when dealing with mixed comment
7961         styles in c++/java/etc. mode
7962
7963 2001-05-29  Mike Alexander  <mta@arbortext.com>
7964
7965         * console-msw.h (FRAME_MSPRINTER_CHARHEIGHT): Unswap
7966         FRAME_MSPRINTER_CHARWIDTH and FRAME_MSPRINTER_CHARHEIGHT
7967
7968 2001-05-17  Andrew Begel  <abegel@eecs.berkeley.edu>
7969
7970         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Add needed cast.
7971
7972 2001-03-31  Mike Sperber <mike@xemacs.org>
7973
7974         * search.c (Freplace_match): Support FSF-style specification of
7975         match subexpression when applied to a buffer.
7976
7977 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7978
7979         * event-stream.c (is_scrollbar_event): add missing semicolon
7980
7981 2001-05-22  Isaac Hollander  <ysh@mindspring.com>
7982
7983         * Makefile.in.in: Use TAR macro instead of hardcoding
7984           tar.  Allows use of GNU tar instead of system tar
7985
7986 2001-05-27  Karl M. Hegbloom  <karlheg@hegbloom.net>
7987
7988         * event-stream.c (is_scrollbar_event): add missing semicolon
7989
7990 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7991
7992         * XEmacs 21.4.3 "Academic Rigor" is released.
7993
7994 2001-05-17  Stephen J. Turnbull  <stephen@xemacs.org>
7995
7996         * regex.c: Define DECLARE_NOTHING when "lisp.h" is not included.
7997
7998 2001-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
7999
8000         * buffer.c (Vcase_fold_search): Remove obsolete
8001           comment about non ASCII case-fold-search.  This
8002           bug has been fixed by case-table changes.
8003
8004 2001-05-11  Stephen J. Turnbull  <stephen@xemacs.org>
8005
8006         * event-msw.c: Restore include of events-mod.h.
8007
8008 2001-04-22   zhaoway  <zw@debian.org>
8009
8010         * event-stream.c (is_scrollbar_event): Noop returning 0 if
8011         !HAVE_SCROLLBARS.
8012
8013 2001-05-10  Stephen J. Turnbull  <stephen@xemacs.org>
8014
8015         * XEmacs 21.4.2 "Developer-Friendly Unix APIs" is released.
8016
8017 2001-05-08  Yoshiaki Kasahara  <kasahara@nc.kyushu-u.ac.jp>
8018
8019         * mule-charset.c (Fmake_charset): Add missing else.
8020
8021 2001-04-23  Ben Wing  <ben@xemacs.org>
8022
8023         * event-msw.c (FAKE_MOD_QUIT):
8024         * event-msw.c (mswindows_dequeue_dispatch_event):
8025         * event-msw.c (mswindows_wnd_proc):
8026         * event-msw.c (emacs_mswindows_quit_p):
8027         Get critical quit working.
8028
8029 2001-05-05  Ben Wing  <ben@xemacs.org>
8030
8031         * console-msw.h:
8032         * device-msw.c:
8033         * device-msw.c (mswindows_get_default_margin):
8034         * frame-msw.c (mswindows_size_frame_internal):
8035         * frame-msw.c (msprinter_init_frame_1):
8036         * frame-msw.c (vars_of_frame_mswindows):
8037         Change top/bottom margin defaults to 0.5 inches.
8038
8039 2001-05-01  Martin Buchholz  <martin@xemacs.org>
8040
8041         Fix link error with gcc 3.0 on Linux.
8042         * terminfo.c (UP): Remove.
8043         * terminfo.c (BC): Remove.
8044         * terminfo.c (PC): Remove.
8045         They weren't used, and in any case, these symbols should be
8046         defined in the *library*.
8047
8048 2001-05-03  Martin Buchholz  <martin@xemacs.org>
8049
8050         * s/aix4.h: Fix crash with xlc -O3.
8051         Improve comment explaining how -O3 works.
8052
8053 2001-04-15  Ben Wing  <ben@xemacs.org>
8054
8055         * event-stream.c:
8056         * event-stream.c (Fnext_event):
8057         * event-stream.c (is_scrollbar_event):
8058         * event-stream.c (execute_command_event):
8059         Better fix for Yoshiki's `C-x @ h <scrollbar-drag> x causes a
8060         crash' problem.  His fix introduces other problems.  We filter
8061         out scrollbar events specifically, making them somewhat invisible
8062         to command-building, and not appearing in `this-command-keys'.
8063         More work is still needed (see comments in event-stream.c), but
8064         this fixes all the major problems.
8065
8066 2001-04-20  Ben Wing  <ben@xemacs.org>
8067
8068         * .cvsignore: Added stuff for Windows.
8069
8070 2001-04-28  Ben Wing  <ben@xemacs.org>
8071
8072         * buffer.c (Ferase_buffer):
8073         * editfns.c (buffer_insert1):
8074         * editfns.c (Finsert_before_markers):
8075         * editfns.c (Finsert_string):
8076         * editfns.c (Finsert_char):
8077         * editfns.c (Fdelete_region):
8078         * editfns.c (Fwiden):
8079         * editfns.c (Fnarrow_to_region):
8080         remove bogus lines setting zmacs_region_stays to 0.
8081         
8082 2001-04-15  Gunnar Evermann  <ge204@eng.cam.ac.uk>
8083
8084         * process-unix.c (unix_open_network_stream): If connect() fails
8085         invalidate file descriptor after closing it.
8086
8087 2001-03-08  Mike Alexander  <mta@arbortext.com>
8088
8089         * event-msw.c (mswindows_need_event_in_modal_loop):
8090         Don't dispatch a message if we didn't get one.
8091         (mswindows_need_event):
8092         Terminate the correct process when one exits instead of the first
8093         one on Vprocess_list and look for process termination when in
8094         mswindows_protect_modal_loop.
8095
8096 2001-04-19  Stephen J. Turnbull  <stephen@xemacs.org>
8097
8098         * XEmacs 21.4.1 "Copyleft" is released.
8099
8100 2001-04-19  Glynn Clements  <glynn.clements@virgin.net>
8101
8102         * input-method-motif.c (XIM_delete_frame): New callback.
8103         (XIM_init_frame): Register it.
8104
8105 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8106
8107         * XEmacs 21.4.0 "Solid Vapor" is released.
8108
8109 2001-04-15  Ben Wing  <ben@xemacs.org>
8110
8111         * cmdloop.c (call_command_loop):
8112         Fix braino in bit-rotting code.
8113         
8114 2001-04-07  Hrvoje Niksic  <hniksic@arsdigita.com>
8115
8116         * extents.c (Fset_extent_endpoints): Force creation of extent info
8117         in buffer_or_string.
8118
8119         * extents.c (process_extents_for_insertion_mapper): Correctly
8120         check for open-open zero-length extents.
8121
8122 2001-04-16  Stephen J. Turnbull  <stephen@xemacs.org>
8123
8124         * lisp.h: New typedefs Memory_count, Element_count.
8125         * regex.c:
8126         * regex.h:
8127         Sign-compare warning elimination: several unsigned -> signed.
8128         Based on work by Ben Wing <ben@xemacs.org>.
8129
8130 2001-04-14  Stephen J. Turnbull  <stephen@xemacs.org>
8131
8132         * XEmacs 21.2.47 "Zephir" is released.
8133
8134 2001-04-02  Jan Vroonhof  <jan@xemacs.org>
8135
8136         * redisplay.c (add_bufbyte_string_runes): Update data->bytepos
8137
8138 2001-04-03  Mike Sperber <mike@xemacs.org>
8139
8140         * search.c: Revert previous patch due because of release.
8141
8142 2001-03-30  Ben Wing  <ben@xemacs.org>
8143
8144         * s\cygwin32.h:
8145         Add missing killpg prototype.
8146
8147         * elhash.c:
8148         Add a comment about fixing problems when a new entry is added
8149         while mapping.
8150
8151         * frame-msw.c (mswindows_init_frame_1):
8152         Fix compile warnings.
8153
8154         * menubar.c (vars_of_menubar):
8155         Provide `menu-accelerator-support' to indicate that we properly
8156         support %_ in menu specifications, so that package code can
8157         conditionalize on this (and remove %_ from menu specifications
8158         on older versions).
8159
8160         * event-msw.c:
8161         * scrollbar-msw.c:
8162         * scrollbar-msw.c (can_scroll):
8163         * scrollbar-msw.h:
8164         Fix handling of mouse wheel under Windows to follow standards --
8165         now scrolls window under pointer, not selected window.
8166
8167 2001-03-31  Mike Sperber <mike@xemacs.org>
8168
8169         * search.c (Freplace_match): Support FSF-style specification of
8170         match subexpression when applied to a buffer.
8171
8172 2001-03-15  Martin Buchholz  <martin@xemacs.org>
8173
8174         * keymap.c (Fmap_keymap): map-keymap explicitly allows a mapping
8175         function to modify KEYMAP, so map over a copy of the hash table.
8176
8177 2001-03-21  Martin Buchholz <martin@xemacs.org>
8178
8179         * XEmacs 21.2.46 "Urania" is released.
8180
8181 2001-03-20  Dan Holmsand  <dan@eyebee.com>
8182
8183         * realpath.c (xrealpath): Make file-truename work with symlinks to
8184         /cygdrive paths on cygwin. Always lowercase drive-letters on
8185         native windows.
8186         (cygwin_readlink): Don't try to find canonical filename unless
8187         file exists.
8188
8189 2001-03-15  Stephen J. Turnbull  <stephen@xemacs.org>
8190
8191         * ChangeLog: Log GTK merge.
8192
8193         * dumper.c:
8194         * select-x.c:
8195         * specifier.c:
8196         * symeval.h:
8197         Revert gratuitous whitespace changes from GTK merge.
8198
8199         * emacs.c: Document end of complex #ifdef @ l. 1495.
8200
8201
8202 2001-03-12  Andy Piper  <andy@xemacs.org>
8203
8204         * mingw32.h: unfortunately cygnus changed mingw32 -> mingw so we
8205         have to do likewise.
8206
8207 2001-03-12  Andy Piper  <andy@xemacs.org>
8208
8209         * sysdep.c: we only support mingw now.
8210
8211 2001-03-09  Andy Piper  <andy@xemacs.org>
8212
8213         * unexcw.c (copy_executable_and_dump_data_section): making approx
8214         overrun a warning only.
8215
8216 2001-03-10  William M. Perry  <wmperry@aventail.com>
8217
8218         * faces.c (complex_vars_of_faces): Rewrote the font mucking to
8219         satisfy Stephen's identical-after-cpp plea.
8220
8221 2001-03-02  Ben Wing  <ben@xemacs.org>
8222
8223         * cmds.c:
8224         * cmds.c (Fforward_char):
8225         * syntax.c:
8226         * window.c:
8227
8228         Augment documentation of the most common motion commands to make
8229         note of the shifted-motion support.
8230         
8231 2001-03-02  Ben Wing  <ben@xemacs.org>
8232
8233         * nt.c (mswindows_fstat):
8234         * nt.c (mswindows_stat):
8235         * search.c (boyer_moore):
8236         Fix compile warnings under Windows.
8237         
8238         * sysdep.c (sys_readdir):
8239         Fix buggy filename-conversion code under Mule.
8240
8241 2001-03-09  William M. Perry  <wmperry@aventail.com>
8242
8243         * Makefile.in.in:
8244         * config.h.in:
8245         * console.c:
8246         * console.h:
8247         * device.c:
8248         * device.h:
8249         * dragdrop.c:
8250         * emacs.c:
8251         * event-stream.c:
8252         * events.c:
8253         * events.h:
8254         * faces.c:
8255         * frame.h:
8256         * general-slots.h:
8257         * glyphs.c:
8258         * gutter.c:
8259         * inline.c:
8260         * lisp.h:
8261         * lrecord.h:
8262         * make-src-depend:
8263         * redisplay-output.c:
8264         * redisplay.c:
8265         * symsinit.h:
8266         * sysfile.h:
8267         * toolbar.c:
8268         * window.c:
8269         The Great GTK Merge.
8270
8271         * ChangeLog.GTK:
8272         * console-gtk.c:
8273         * console-gtk.h:
8274         * device-gtk.c:
8275         * emacs-marshals.c:
8276         * emacs-widget-accessors.c:
8277         * event-gtk.c:
8278         * frame-gtk.c:
8279         * gccache-gtk.c:
8280         * gccache-gtk.h:
8281         * glade.c:
8282         * glyphs-gtk.c:
8283         * glyphs-gtk.h:
8284         * gtk-glue.c:
8285         * gtk-xemacs.c:
8286         * gtk-xemacs.h:
8287         * gui-gtk.c:
8288         * gui-gtk.h:
8289         * menubar-gtk.c:
8290         * native-gtk-toolbar.c:
8291         * objects-gtk.c:
8292         * objects-gtk.h:
8293         * redisplay-gtk.c:
8294         * scrollbar-gtk.c:
8295         * scrollbar-gtk.h:
8296         * select-gtk.c:
8297         * toolbar-gtk.c:
8298         * ui-byhand.c:
8299         * ui-gtk.c:
8300         * ui-gtk.h:
8301         The Great GTK Merge: new files.
8302
8303 2001-02-26  Ben Wing  <ben@xemacs.org>
8304
8305         Reapplied Lstream change.
8306
8307 2001-02-26  Ben Wing  <ben@xemacs.org>
8308
8309         Undid the last change, since it is more controversial than I
8310         thought.  It should be back in at some point soon.
8311         
8312 2001-02-25  Ben Wing  <ben@xemacs.org>
8313
8314         * buffer.c:
8315         * callproc.c (Fold_call_process_internal):
8316         * event-msw.c (ntpipe_slurp_reader):
8317         * event-msw.c (ntpipe_shove_writer):
8318         * event-msw.c (winsock_reader):
8319         * event-msw.c (winsock_writer):
8320         * file-coding.c:
8321         * file-coding.c (detect_eol_type):
8322         * file-coding.c (detect_coding_type):
8323         * file-coding.c (determine_real_coding_system):
8324         * file-coding.c (Fdetect_coding_region):
8325         * file-coding.c (decoding_reader):
8326         * file-coding.c (decoding_writer):
8327         * file-coding.c (mule_decode):
8328         * file-coding.c (Fdecode_coding_region):
8329         * file-coding.c (encoding_reader):
8330         * file-coding.c (encoding_writer):
8331         * file-coding.c (mule_encode):
8332         * file-coding.c (Fencode_coding_region):
8333         * file-coding.c (detect_coding_sjis):
8334         * file-coding.c (decode_coding_sjis):
8335         * file-coding.c (encode_coding_sjis):
8336         * file-coding.c (detect_coding_big5):
8337         * file-coding.c (decode_coding_big5):
8338         * file-coding.c (encode_coding_big5):
8339         * file-coding.c (detect_coding_ucs4):
8340         * file-coding.c (decode_coding_ucs4):
8341         * file-coding.c (encode_coding_ucs4):
8342         * file-coding.c (detect_coding_utf8):
8343         * file-coding.c (decode_coding_utf8):
8344         * file-coding.c (encode_coding_utf8):
8345         * file-coding.c (detect_coding_iso2022):
8346         * file-coding.c (decode_coding_iso2022):
8347         * file-coding.c (encode_coding_iso2022):
8348         * file-coding.c (decode_coding_no_conversion):
8349         * file-coding.c (encode_coding_no_conversion):
8350         * glyphs-x.c (write_lisp_string_to_temp_file):
8351         * gpmevent.c (tty_get_foreign_selection):
8352         * lisp.h:
8353         * lstream.c:
8354         * lstream.c (Lstream_flush_out):
8355         * lstream.c (Lstream_adding):
8356         * lstream.c (Lstream_write_1):
8357         * lstream.c (Lstream_write):
8358         * lstream.c (Lstream_raw_read):
8359         * lstream.c (Lstream_read_more):
8360         * lstream.c (Lstream_read):
8361         * lstream.c (Lstream_unread):
8362         * lstream.c (Lstream_fputc):
8363         * lstream.c (stdio_reader):
8364         * lstream.c (stdio_writer):
8365         * lstream.c (filedesc_reader):
8366         * lstream.c (filedesc_writer):
8367         * lstream.c (lisp_string_reader):
8368         * lstream.c (struct fixed_buffer_stream):
8369         * lstream.c (make_fixed_buffer_input_stream):
8370         * lstream.c (make_fixed_buffer_output_stream):
8371         * lstream.c (fixed_buffer_reader):
8372         * lstream.c (fixed_buffer_writer):
8373         * lstream.c (struct resizing_buffer_stream):
8374         * lstream.c (resizing_buffer_writer):
8375         * lstream.c (dynarr_writer):
8376         * lstream.c (lisp_buffer_reader):
8377         * lstream.c (lisp_buffer_writer):
8378         * lstream.h:
8379         * lstream.h (lstream_implementation):
8380         * lstream.h (struct lstream):
8381         * md5.c (Fmd5):
8382         * process-nt.c (nt_send_process):
8383         * process-unix.c (unix_send_process):
8384         
8385         Correct Lstream lossage due to mixing of signed and unsigned
8386         quantities.  All Lstream uses of size_t and ssize_t are now a
8387         single signed data type Lstream_data_count.  This fixes problems
8388         under Windows with sending large quantities of data to a process,
8389         and may well fix other subtle bugs.
8390
8391 2001-02-23  Martin Buchholz <martin@xemacs.org>
8392
8393         * XEmacs 21.2.45 "Thelxepeia" is released.
8394
8395 2001-02-21  Martin Buchholz  <martin@xemacs.org>
8396
8397         * lisp-union.h (XSETINT): 
8398         (XSETCHAR):
8399         (XSETOBJ): 
8400         Reverse previous change of 2001-02-06.
8401
8402 2001-02-20  Matt Tucker  <tuck@whistlingfish.net>
8403
8404         Fix `VALID_BYTIND_P' crashes in regex.c when using narrowed
8405         buffers.
8406         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8407         * syntax.h (SYNTAX_CACHE_OBJECT_BYTE_TO_CHAR):
8408         Add `BI_BUF_BEGV' to bytepos before calculating bufpos.
8409         * regex.c (POS_AS_IN_BUFFER): removed
8410         * regex.c (re_search_2):
8411         * regex.c (re_match_2):
8412         Don't use an offset of 1 when calculating buffer positions, since
8413         `BI_BUF_BEGV' does it already.
8414
8415 2001-02-18  Wim Dumon  <wim@easics.be>
8416
8417         * insdel.c (prepare_to_modify_buffer): Also check for
8418         supersession when clash-detection is enabled. 
8419
8420 2001-02-17  Matt Tucker  <tuck@whistlingfish.net>
8421
8422         * regex.c (re_match_2_internal):
8423         Convert temp characters from 'const unsigned char' to 're_char'.
8424         Fix crashing bug with extended characters under mule.
8425         * syntax.c (Qsyntax_table): Moved from vars_of_syntax to
8426         syms_of_syntax. Use defsymbol to define. Fixes hanging bug with
8427         font-lock, pdump, and new syntax-table code.
8428         * syntax.c (find_start_of_comment):
8429         (find_end_of_comment):
8430         (forward-comment):
8431         Fix crashing bugs involving moving beyond end of buffer.
8432         * syntax.c (find_start_of_comment):
8433         Fixed logic to allow proper detection of cases where the same
8434         character is used to end both a two-char comment start and a
8435         two-char comment end sequence. Fixes `(forward-comment -1)'.
8436         * syntax.c (find_start_of_comment):
8437         Return position just past last comment-end character for all cases
8438         (previously was only done for two-char comment-end sequences).
8439         * syntax.c (forward-comment):
8440         Take value returned from `find_end_of_comment', rather than
8441         incrementing it.
8442         * syntax.h (SYNTAX_CACHE_BYTE_TO_CHAR):
8443         Properly deal with BUFFERP (syntax_cache.object)
8444
8445 2001-02-17  Martin Buchholz  <martin@xemacs.org>
8446
8447         * alloc.c (Fgarbage_collect): 
8448         * alloc.c (make_bit_vector_from_byte_vector):
8449         -Wsign-compare-correctness.
8450
8451 2001-02-16  Martin Buchholz  <martin@xemacs.org>
8452
8453         * lisp-union.h (XSETINT): Eliminate unnecessary temp var.
8454         (XSETCHAR): Likewise.
8455         (XSETOBJ): Likewise.
8456
8457 2001-02-15  Martin Buchholz  <martin@xemacs.org>
8458
8459         * mule-canna.c (canna-func-delete_previous): 
8460         Rename to canna-func-delete-previous.
8461
8462 2001-02-14  Martin Buchholz  <martin@xemacs.org>
8463
8464         * mule-ccl.c (ccl_driver): Warning suppression.  Use countof.
8465
8466 2001-02-13  Matt Tucker  <tuck@whistlingfish.net>
8467
8468         * font-lock.c (find_context): Fix C++ compile errors introduced by
8469         recent patch
8470
8471 2001-02-13  Martin Buchholz  <martin@xemacs.org>
8472
8473         * s/aix4.h: Later versions of IBM C compiler need a bug workaround
8474         pragma, but earlier ones barf on the same pragma.
8475
8476 2001-02-06  Mike Sperber <mike@xemacs.org>
8477
8478         * emacs.c (complex_vars_of_emacs): Add `mule-lisp-directory' and
8479         `configure-mule-lisp-directory'.
8480
8481 2001-02-12  Martin Buchholz  <martin@xemacs.org>
8482
8483         Make sure dump-id.c is compiled in the same way as other .c's.
8484         Fixes pdump compilation failure with HP's cc, which defaults to K&R.
8485         * dump-id.h: Remove.
8486         * emacs.c: Move dump-id.h into dumper.h.
8487         * dumper.h: Move dump-id.h into dumper.h.
8488         * Makefile.in.in:
8489         Use standard .c.o rule for building dump-id.o.
8490         Remove preprocessor flags from link command.
8491         Add dump-id.o to ${otherobjs} if PDUMP.
8492
8493 2001-02-07  Matt Tucker  <tuck@whistlingfish.net>
8494
8495         Port FSF 20.7 syntax table improvements.
8496         * syntax.c.
8497         * syntax.h.
8498
8499         Fixups for new syntax table stuff.
8500         * dired.c: Include syntax.c.
8501         (Fdirectory_files): Initialize regex_match_object and
8502         regex_emacs_buffer.
8503         * extents.h: EXFUN Fnext_extent_change, Fprevious_extent_change,
8504         and Fget_char_property.
8505
8506         Use ported FSF 20.7 syntax table improvements.
8507         * font-lock.c.
8508         * regex.c.
8509         * search.c.
8510         
8511 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8512
8513         * regex.c (Boolean): Renamed to `re_bool', to avoid conflict with
8514         Unixware's enum boolean from sys/types.h.
8515
8516 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8517
8518         Fix support for building with latest Purify.
8519         * Makefile.in.in (PURIFY_LIBS): Remove thread flags.
8520         (PURIFY_FLAGS): Likewise.
8521
8522 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8523
8524         * fileio.c (lisp_string_set_file_times): New.
8525         * fileio.c (Fcopy_file): Use it.
8526         Fixes bug:
8527         (copy-file filename non-ascii-filename t t)
8528         ==> No such file or directory, non-ascii-filename
8529
8530 2001-02-10  Martin Buchholz  <martin@xemacs.org>
8531
8532         * glyphs-x.c (generate_cursor_fg_bg): Avoid a warning.
8533         USHRT_MAX seems clearer than ~0 anyways.
8534
8535 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8536
8537         dumper improvements.  Inspired by Olivier.
8538         * dumper.c (pdump_max_align): New.
8539         * dumper.c (pdump_add_entry): Use pdump_max_align.
8540         * dumper.c (pdump_get_entry_list): Likewise.
8541         * dumper.c (pdump_scan_by_alignment): Likewise.
8542         Don't iterate through unnecessary alignments.
8543         * dumper.c (pdump_file_get): No need to align result of malloc().
8544         * dumper.c (pdump_mallocadr): Remove.  
8545         The result of malloc() is guaranteed to be maximally aligned.
8546         * dumper.c: s/elmt/elt/g;
8547         * dumper.c (pdump_object_table): Allocate dynamically, not statically.
8548         * dumper.c (pdump_alert_undump_object): Likewise.
8549         * dumper.c (pdump_align_table): 
8550         Don't support alignments > 64.
8551         Store ALIGNOF's, not shift counts, in table.
8552
8553 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8554
8555         * s/mingw32.h (HAVE_STRUCT_UTIMBUF): Remove.
8556         * s/windowsnt.h (HAVE_STRUCT_UTIMBUF): Remove.
8557         * systime.h: Use HAVE_UTIME.
8558         * sysdep.c (struct utimbuf): Remove.
8559         * sysdep.c (set_file_times): Prefer utime() to utimes().
8560         * config.h.in (HAVE_UTIME): New.
8561         * config.h.in (HAVE_UTIME_H): Remove.
8562         * config.h.in (HAVE_STRUCT_UTIMBUF): Remove.
8563
8564 2001-02-09  Martin Buchholz  <martin@xemacs.org>
8565
8566         * s/aix4.h: Hide #pragmas inside #ifndef NOT_C_CODE.
8567
8568 2001-02-08  Martin Buchholz  <martin@xemacs.org>
8569
8570         * s/irix6-0.h: Use the standard system memmove, not bcopy.
8571
8572 2001-02-08  Martin Buchholz <martin@xemacs.org>
8573
8574         * XEmacs 21.2.44 "Thalia" is released.
8575
8576 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8577
8578         Fixes crashes in kill-emacs on some systems.
8579         * process-unix.c (unix_kill_child_process):
8580         It's OK for kill() to fail with ESRCH.
8581
8582 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8583
8584         Contortions to make .gdbinit tricks work on most systems.
8585         * alloc.c (dbg_inhibit_dbg_symbol_deletion): Keep debugger info.
8586         * alloc.c (dbg_valmask): Make non-const.
8587         * alloc.c (dbg_typemask): Make non-const.
8588         * alloc.c (dbg_USE_UNION_TYPE): Make non-const.
8589         * alloc.c (dbg_valbits): Make non-const.
8590         * alloc.c (dbg_gctypebits): Make non-const.
8591         * .gdbinit (decode_object): Make it work with AIX cc.
8592
8593 2001-02-06  Martin Buchholz  <martin@xemacs.org>
8594
8595         * elhash.c (make_general_lisp_hash_table):
8596         Use simpler and more efficient calloc to clear entries.
8597
8598 2001-02-07  Martin Buchholz  <martin@xemacs.org>
8599
8600         * window.c (window_scroll): Work around an AIX C compiler bug.
8601         Fixes 'scroll-up' does nothing problem with xlC.
8602
8603 2001-02-05  Martin Buchholz  <martin@xemacs.org>
8604
8605         * .gdbinit: Remove obsolete comment.
8606
8607 2001-01-31  Mike Alexander  <mta@arbortext.com>
8608
8609         * select.c (Fown_selection_internal): Set owned_p for device
8610         method correctly.
8611
8612 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8613
8614         Port to g++ 2.97.
8615         "not" cannot be used as a macro name as it is an operator in C++
8616         * config.h.in: Stop #defining `not'.
8617         * chartab.c (check_category_char): not ==> not_p
8618         * chartab.h: Likewise.
8619         * regex.c (re_match_2_internal): Likewise.
8620
8621 2001-02-02  Martin Buchholz  <martin@xemacs.org>
8622
8623         * lisp-disunion.h: Fix up comments.
8624
8625 2001-01-31  Martin Buchholz  <martin@xemacs.org>
8626
8627         * keymap.c (define_key_check_and_coerce_keysym):
8628         (syms_of_keymap):
8629         Support mouse-6 and mouse-7 bindings in the obvious way.
8630
8631 2001-02-01  Martin Buchholz  <martin@xemacs.org>
8632
8633         * m/hp9000s300.h (UNEXEC): Check for HPUX, not !BSD.
8634
8635 2001-01-30  Martin Buchholz  <martin@xemacs.org>
8636
8637         Previous patch changing DEFVAR_INT to use EMACS_INT was incomplete.
8638         Previous patch missed DEFVAR_INT_MAGIC.
8639         Make sure future DEFVAR_foo use correct types.
8640         * symeval.h (DEFVAR_SYMVAL_FWD_FIXNUM): New.
8641         * (DEFVAR_SYMVAL_FWD_INT): Add type checking.
8642         * (DEFVAR_SYMVAL_FWD_OBJECT): Add type checking.
8643         * (DEFVAR_INT_MAGIC): Use DEFVAR_SYMVAL_FWD_FIXNUM.
8644         * (DEFVAR_INT): Likewise.
8645         * redisplay.c (vertical_clip): Should be of type Fixnum.
8646         * redisplay.c (horizontal_clip): Likewise.
8647         * lisp.h (dump_add_opaque_int): New.
8648         (dump_add_opaque_fixnum): New.
8649
8650 2001-01-29  Andy Piper  <andy@xemacs.org>
8651
8652         * glyphs-widget.c (check_valid_int_or_function): allow symbols
8653         since they can be eval'ed
8654
8655 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8656
8657         * lisp.h (ALIGNOF): Make it work on non-gcc C++ compilers.
8658         Oops, XEmacs redefines `class'.  Use `typename' instead.
8659
8660 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8661
8662         * dumper.c: Fix C++ compile errors.
8663
8664 2001-01-29  Martin Buchholz  <martin@xemacs.org>
8665
8666         * tparam.c: Use correct prototypes.
8667
8668 2001-01-28  Martin Buchholz  <martin@xemacs.org>
8669
8670         * sysproc.h: #include util.h for NetBSD's openpty.
8671
8672 2001-01-27  Martin Buchholz  <martin@xemacs.org>
8673
8674         More 64-bit correctness.
8675         The C value of a DEFVAR_INT should be of type EMACS_INT, not int.
8676         Use a typedef `fixnum' for the type used for DEFVAR_INT.
8677         Fix up comments.
8678         This finally finishes the 64-bit SGI port.
8679         Fixes things like (let ((gc-cons-threshold most-positive-fixnum)) ...).
8680         * symbols.c: Fix up comments and type casts.
8681         * symbols.c (do_symval_forwarding): s/int/Fixnum/g
8682         * symbols.c (store_symval_forwarding): s/int/Fixnum/g
8683         * symeval.h (Fixnum): New type.
8684         * symeval.h (symbol_value_type): Fix up comment.
8685
8686         * commands.h:
8687         * nt.c:
8688         * emacs.c:
8689         * data.c:
8690         * redisplay.c:
8691         * abbrev.c:
8692         * dired-msw.c:
8693         * event-Xt.c:
8694         * eldap.c:
8695         * window.c:
8696         * sound.c:
8697         * event-stream.c:
8698         * eval.c:
8699         * buffer.c:
8700         * mule-canna.c: A million DEFVAR_INTs here...
8701         * mule-canna.c (count_char): s/int */Fixnum */g in arglist.
8702         * extents.c:
8703         * cmdloop.c:
8704         * lisp.h:
8705         * select-x.c:
8706         * console-x.h:
8707         * event-msw.c:
8708         * mule-wnnfns.c:
8709         * hpplay.c:
8710         * ralloc.c:
8711         * alloc.c:
8712         * keymap.c:
8713         * profile.c:
8714         s/int/Fixnum/g in DEFVAR_INT declarations.
8715
8716 2001-01-26  Martin Buchholz  <martin@xemacs.org>
8717
8718         Port pdump to SGI alignment-sensitive environment.
8719         Lisp Object sizeof methods now return aligned sizes.  Rely on that.
8720         Eliminate is_lrecord since Lisp_Objects sizeof methods are now all
8721         properly aligned.
8722         Define and use aligned reading and writing macros.
8723         Use buffered stdio instead of posix i/o for faster dumping.
8724         Eliminate kludgy 256 byte space for header.
8725         Read and write from dump file using structs for alignment safety.
8726         * dumper.c (pdump_align_stream): New.
8727         * dumper.c (PDUMP_ALIGN_OUTPUT): New.
8728         * dumper.c (PDUMP_READ_ALIGNED): New.
8729         * dumper.c (PDUMP_WRITE_ALIGNED): New.
8730         * dumper.c (pdump_static_Lisp_Object): New struct.
8731         * dumper.c (pdump_static_pointer): New struct.
8732         * dumper.c (pdump_entry_list_element): Remove is_lrecord member.
8733         * dumper.c (pdump_add_entry): Remove is_lrecord parameter.
8734         * dumper.c (pdump_dump_data): Rely on sizeof method alignment.
8735         * dumper.c (pdump_allocate_offset): Rely on sizeof method alignment.
8736
8737         * dumper.c (pdump_backtrace):
8738         * dumper.c (pdump_get_indirect_count):
8739         * dumper.c (pdump_register_object):
8740         * dumper.c (pdump_register_struct):
8741         * dumper.c (pdump_reloc_one):
8742         * dumper.c (pdump_scan_by_alignment):
8743         * dumper.c (pdump_dump_from_root_struct_ptrs):
8744         * dumper.c (pdump_dump_opaques):
8745         * dumper.c (pdump_dump_rtables):
8746         * dumper.c (pdump_dump_from_root_objects):
8747         * dumper.c (pdump):
8748         * dumper.c (pdump_load_finish):
8749         Use aligned reading and writing.
8750
8751         * dumper.c (pdump_free): Make static.
8752         * dumper.c (pdump_hFile): Likewise.
8753         * dumper.c (pdump_hMap): Likewise.
8754
8755 2001-01-26  Martin Buchholz <martin@xemacs.org>
8756
8757         * XEmacs 21.2.43 "Terspichore" is released.
8758
8759 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8760
8761         Type fiddling for window_config.saved_windows_count
8762         * window.c (struct window_config): 
8763         Make saved_windows_count member unsigned.
8764         * window.c (sizeof_window_config_for_n_windows): 
8765         Make parameter unsigned.
8766         * window.c (mark_window_config):
8767         * window.c (window_config_equal):
8768         * window.c (free_window_configuration):
8769         * window.c (Fset_window_configuration):
8770         * window.c (count_windows):
8771         * window.c (Fcurrent_window_configuration):
8772         * window.c (reinit_vars_of_window):
8773         Update all callers and users.
8774
8775 2001-01-25  Martin Buchholz  <martin@xemacs.org>
8776
8777         Alignment correctness for flexible arrays.
8778         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF):
8779         Make alignment-correct. Add interesting comments.
8780         * alloc.c (size_vector):
8781         * alloc.c (make_vector_internal):
8782         * alloc.c (make_bit_vector_internal):
8783         * alloc.c (sweep_bit_vectors_1):
8784         * fns.c (size_bit_vector):
8785         Update all callers of FLEXIBLE_ARRAY_STRUCT_SIZEOF to add new arg.
8786         * window.c (sizeof_window_config_for_n_windows): 
8787         Use FLEXIBLE_ARRAY_STRUCT_SIZEOF.
8788
8789 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8790
8791         * lread.c (read1): Rename `fexp', which is #defined in SGI's math.h
8792
8793 2001-01-23  Andy Piper  <andy@xemacs.org>
8794
8795         * select.c (Fown_selection_internal): pass owned_p
8796
8797         * select-msw.c (mswindows_own_selection): New Signature.
8798
8799         * console.h (struct console_methods): add owned_p to
8800         _own_selection.
8801
8802         * select-x.c (x_own_selection): pass owned_p
8803         (hack_motif_clipboard_selection): use owned_p
8804         (vars_of_select_x): new variable -
8805         x_selection_strict_motif_ownership.
8806
8807 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8808
8809         * specifier.h (specifier_data_offset): Remove pointless parens.
8810         * glyphs.h (IMAGE_SPECIFIER_DATA): Likewise.
8811
8812 2001-01-24  Martin Buchholz  <martin@xemacs.org>
8813
8814         Make Lisp_Object sizeof methods be alignment-correct.
8815         pdump must restore objects to the same alignment as the C compiler
8816         assumes.  It really matters on SGIs.
8817         * lstream.c (aligned_sizeof_lstream): New.
8818         (sizeof_lstream): Use aligned_sizeof_lstream.
8819         (Lstream_new): Likewise.
8820         * opaque.c (aligned_sizeof_opaque): New.
8821         (sizeof_opaque): Use aligned_sizeof_opaque.
8822         (make_opaque): Likewise.
8823         * specifier.c (aligned_sizeof_specifier): New.
8824         (sizeof_specifier): Use aligned_sizeof_specifier.
8825         (make_specifier_internal): Likewise.
8826
8827 2001-01-23  Martin Buchholz  <martin@xemacs.org>
8828
8829         * lstream.h (struct lstream): Use max_align_t for trailing data.
8830         * specifier.h (struct Lisp_Specifier): Likewise.
8831
8832 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8833
8834         * mule-ccl.c (CCL_Extension): Renamed from CCL_Extention.
8835         (CCL_SUCCESS): Kludge to prevent Sun cc compiler warnings.
8836         (CCL_SUSPEND): Likewise.
8837         (CCL_INVALID_CMD): Likewise.
8838         (CCL_CALL_FOR_MAP_INSTRUCTION): Likewise.
8839         (ccl_driver): Likewise.
8840         (CCL_WRITE_CHAR): Macro hygiene.
8841         (CCL_WRITE_STRING): Macro hygiene.
8842
8843 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8844
8845         Port "portable" dumper to SunOS 4 and HP-UX.
8846         * s/aix4.h (AIX4): Move MAP_FAILED definition elsewhere.
8847         * emacs.c (main): PDUMP implies no RUN_TIME_REMAP.
8848         * dumper.c (pdump_file_get): Define MAP_FAILED if not already defined.
8849
8850 2001-01-22  Martin Buchholz  <martin@xemacs.org>
8851
8852         * lisp.h (ALIGNOF): A better definition for C++.
8853
8854 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8855
8856         Macro hygiene.
8857         Fix printf warnings: int format, long int arg.
8858         * regex.c (DECLARE_DESTINATION): Use DECLARE_NOTHING.
8859         (PUSH_FAILURE_POINT): Use correct printf formats.
8860         (POP_FAILURE_POINT): Use correct printf formats.  
8861         Use do {...} while (0)
8862
8863 2001-01-20  Martin Buchholz <martin@xemacs.org>
8864
8865         * XEmacs 21.2.42 "Poseidon" is released.
8866
8867 2001-01-20  Martin Buchholz  <martin@xemacs.org>
8868
8869         * console-x.h: typo fix du jour.  Remove #if 0'ed code.
8870
8871 2001-01-19  Martin Buchholz  <martin@xemacs.org>
8872
8873         De-kludgify FIXED_TYPE free list frobbing.
8874         Fix crashes on 64-bit platforms introduced by my patch of 2001-01-13.
8875         * alloc.c (DECLARE_FIXED_TYPE_ALLOC): Use Lisp_Free.
8876         * alloc.c (ALLOCATE_FIXED_TYPE_1): Use new definitions.
8877         * alloc.c (Lisp_Free): New pseudo lisp object definition.
8878         * alloc.c (LRECORD_FREE_P): New.
8879         * alloc.c (MARK_LRECORD_AS_FREE): New.
8880         * alloc.c (MARK_LRECORD_AS_NOT_FREE): New.
8881         * alloc.c (STRUCT_FREE_P): Deleted.
8882         * alloc.c (MARK_STRUCT_AS_FREE): Deleted.
8883         * alloc.c (MARK_STRUCT_AS_NOT_FREE): Deleted.
8884         * alloc.c (STRING_CHARS_FREE_P): New.
8885         * alloc.c (MARK_STRING_CHARS_AS_FREE): New.
8886         * alloc.c (PUT_FIXED_TYPE_ON_FREE_LIST): Use new definitions.
8887         * alloc.c (FREE_FIXED_TYPE): Use new definitions.
8888         * alloc.c (STRING_CHARS_FREE_P): Use new definitions.
8889         * alloc.c (resize_string): Use new definitions.
8890         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Use new definitions.
8891         * alloc.c (verify_string_chars_integrity): Use new definitions.
8892         * alloc.c (compact_string_chars): Use new definitions.
8893         * alloc.c: Update monster comments.
8894         * lrecord.h (lrecord_type): Add some new lrecord types for
8895         alloc.c's use.
8896
8897 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8898
8899         Improve alignment hackery.
8900         * lisp.h (ALIGNOF): Better definition for the non-gcc case.
8901         (max_align_t): Moved from opaque.h - general purpose.
8902         (ALIGN_PTR): Use size_t, not long.
8903         * opaque.h (max_align_t): Move to lisp.h.
8904
8905 2001-01-18  Norbert Koch  <nk@LF.net>
8906
8907         * gui.h: Fix and add prototypes to fix build problems.
8908
8909 2001-01-18  Martin Buchholz  <martin@xemacs.org>
8910
8911         temacs is going away, so `dump-temacs' is now a bad name.
8912         * .dbxrc (dump-temacs): Rename to `dmp'.
8913         * .gdbinit (dump-temacs): Rename to `dmp'.
8914
8915 2001-01-17  Andy Piper  <andy@xemacs.org>
8916
8917         * glyphs.c (print_image_instance): comment to make martin happy.
8918
8919         * glyphs-x.c (x_redisplay_widget): update faces after a frame
8920         change.
8921
8922         * glyphs-msw.c (mswindows_redisplay_widget): add code to cope with
8923         activation.
8924         (mswindows_tab_control_redisplay): warning suppression.
8925
8926         * glyphs-widget.c (widget_update): re-write to cope with updated
8927         items.
8928         (widget_instantiate): use new gui_item functions.
8929         (tab_control_update): deleted.
8930         (progress_gauge_update): deleted.
8931         (image_instantiator_progress_guage): take out update reference.
8932         (image_instantiator_tree_view): ditto.
8933         (image_instantiator_tab_control): ditto.
8934
8935         * gui.c (widget_gui_parse_item_keywords): new function. Do things
8936         Right the new way.
8937         (gui_item_add_keyval_pair): re-write to cope with descriptors and
8938         return whether anything was changed.
8939         (update_gui_item_keywords): as it sounds.
8940
8941         * gui.h: declare widget_gui_parse_item_keywords.
8942
8943         * fns.c (safe_copy_tree): new function taken from Fcopy_tree.
8944         (Fcopy_tree): use it. Stops infloop death in bogus instantiators.
8945
8946 2001-01-17  Martin Buchholz <martin@xemacs.org>
8947
8948         * XEmacs 21.2.41 "Polyhymnia" is released.
8949
8950 2001-01-16  Didier Verna  <didier@xemacs.org>
8951
8952         * glyphs.c (image_instantiate): don't use fallbacks when
8953         instantiating a face's background pixmap by inheritance.
8954
8955 2001-01-14  Mike Sperber <mike@xemacs.org>
8956
8957         * sysdep.c (start_of_data): PDUMP implies ORDINARY_LINK.
8958         Conditionalize accordingly.
8959
8960 2001-01-16  Martin Buchholz  <martin@xemacs.org>
8961
8962         * dumper.c (pdump_file_get): Fix a compiler warning.
8963
8964 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8965
8966         Make Purify happy when pdumping.
8967         * symbols.c (Fmake_variable_buffer_local): Make Purify happy, by
8968         iniitalizing all bits of new lisp object memory.
8969         * symbols.c (Fmake_local_variable): Likewise.
8970         * symbols.c (Fdontusethis_set_symbol_value_handler): Likewise.
8971         * symbols.c (Fdefvaralias): Likewise.
8972         * mule-charset.c (vars_of_mule_charset): Likewise.
8973
8974 2001-01-15  Martin Buchholz  <martin@xemacs.org>
8975         Add the `-nd' flag when running pre-dump operations under the debugger.
8976         * .dbxrc (run-temacs): Add `-nd'.
8977         * .dbxrc (update-elc): Likewise.
8978         * .dbxrc (dump-temacs): Likewise.
8979         * .gdbinit (run-temacs): Likewise.
8980         * .gdbinit (check-temacs): Likewise.
8981         * .gdbinit (update-elc): Likewise.
8982         * .gdbinit (dump-temacs): Likewise.
8983
8984 2001-01-14  Martin Buchholz  <martin@xemacs.org>
8985
8986         Allow building 64-bit executables on AIX with GNU malloc, e.g.
8987         export OBJECT_MODE=64
8988         configure --pdump --use-union-type=no
8989         * m/ibmrs6000.h (DATA_START): Define for 64-bit world.
8990         * gmalloc.c (__default_morecore): Remove pre-ANSI cruft.
8991
8992         * miscplay.c (sndcnv8U_2mono):
8993         Avoid two uses of `++' in the same expression.
8994         Suppresses a GCC warning.
8995
8996 2001-01-13  Martin Buchholz  <martin@xemacs.org>
8997
8998         Make sure future compilers don't miscompile alloc.c.
8999         * alloc.c:
9000         (MARK_STRUCT_AS_FREE): Make aliasing-optimization-resistant.
9001         (MARK_STRUCT_AS_NOT_FREE): Make aliasing-optimization-resistant.
9002
9003 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9004
9005         * dumper.c: A little post-pdump-rename comment fixup.
9006
9007 2001-01-09  Jerry James  <james@eecs.ku.edu>
9008
9009         * lisp-disunion.h: Change LISP_TO_CVOID arg to match its use.
9010
9011 2001-01-13  Martin Buchholz  <martin@xemacs.org>
9012
9013         * *.[ch]: Globally rename symbols using the following `pdump-rename'
9014         script:
9015         #!/bin/sh
9016         replace_symbol () {
9017           (findn texi$; findn [ch]$) | xargs g -lw "$1" | xargs global-replace 's/(?<!_)\b'$1'\b(?!_)/'$2'/g'
9018         }
9019
9020         replace_symbol pdump_wire_lists pdump_weak_object_chains
9021         replace_symbol pdump_wire_list dump_add_weak_object_chain
9022
9023         replace_symbol pdump_wires pdump_root_objects
9024         replace_symbol pdump_wire dump_add_root_object
9025
9026         replace_symbol pdump_dump_wired pdump_dump_from_root_objects
9027         replace_symbol pdump_dump_structs pdump_dump_from_root_struct_ptrs
9028
9029         replace_symbol dumpstructinfos pdump_root_struct_ptrs
9030         replace_symbol dumpstructinfo_dynarr pdump_root_struct_ptr_dynarr
9031         replace_symbol dumpstructinfo pdump_root_struct_ptr
9032         replace_symbol dumpstruct dump_add_root_struct_ptr
9033
9034         replace_symbol dumpopaque dump_add_opaque
9035         replace_symbol dumpopaqueinfo_dynarr pdump_opaque_dynarr
9036         replace_symbol dumpopaqueinfos pdump_opaques
9037         replace_symbol dumpopaqueinfo pdump_opaque
9038
9039         replace_symbol nb_structdump nb_root_struct_ptrs
9040         replace_symbol nb_opaquedump nb_opaques
9041
9042         replace_symbol align_table pdump_align_table
9043         replace_symbol dump_header pdump_header
9044
9045         replace_symbol DUMP_SIGNATURE_LEN PDUMP_SIGNATURE_LEN
9046         replace_symbol DUMP_SIGNATURE PDUMP_SIGNATURE
9047
9048
9049 2001-01-12  Martin Buchholz  <martin@xemacs.org>
9050
9051         * s/aix4.h: Keep the C for AIX compiler from overaggressively
9052         optimizing bytecount_to_charcount().
9053
9054 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9055
9056         * config.h.in:
9057         (HAVE_DLFCN_H): Removed.
9058         * sysdll.c: Remove HAVE__DLOPEN, HAVE_DLFCN_H.
9059
9060 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9061
9062         Portable dumper maintainability improvements.
9063         * alloc.c (staticpro):
9064         * alloc.c (staticpro_nodump):
9065         * alloc.c (garbage_collect_1):
9066         * alloc.c (reinit_alloc_once_early):
9067         * alloc.c (init_alloc_once_early):
9068         * alloc.c: Move dumper functions to alloc.c.
9069         * dumper.c (pdump_backtrace):
9070         * dumper.c (pdump_dump_structs):
9071         * dumper.c (pdump_dump_opaques):
9072         * dumper.c (pdump_dump_rtables):
9073         * dumper.c (pdump_dump_wired):
9074         * dumper.c (pdump):
9075         * dumper.c (pdump_load_check):
9076         * dumper.c (pdump_load_finish):
9077         * dumper.c (pdump_file_unmap):
9078         * dumper.c (pdump_file_get):
9079         * dumper.c (pdump_resource_free):
9080         * dumper.c (pdump_resource_get):
9081         * dumper.c (pdump_file_free):
9082         * dumper.c (pdump_file_try):
9083         * dumper.c (pdump_load):
9084         Remove fixed size limits on staticpro(), staticpro_nodump(),
9085         dumpopaque(), dumpstruct() by using Dynarrs instead of static C arrays.
9086         Remove custom code for dumping lrecord_implementations_table - use
9087         dumpopaque instead.
9088         Remove (most of the) custom code for dumping staticpros - dump it
9089         like any other dynarr.
9090
9091         * alloc.h: Removed.  No longer useful, since dumper now more self-contained.
9092         * dumper.c: Moved functions from alloc.c.
9093         * alloc.c (dumpstruct): Moved to dumper.c.
9094         * alloc.c (dumpopaque): Likewise.
9095         * alloc.c (pdump_wire): Likewise.
9096         * alloc.c (pdump_wire_list): Likewise.
9097
9098         * lisp.h (Dynarr_sizeof): New.
9099         * lisp.h (Dynarr_begin): New.  Very slightly C++oid.
9100         * lisp.h (Dynarr_end): New.  Very slightly C++oid.
9101         * lisp.h (Lisp_Object_ptr_dynarr): New.  For staticpros.
9102
9103         * lisp.h (dumpstruct): Define to nothing if not PDUMPing.
9104         * lisp.h (dumpopaque): ditto.
9105         * lisp.h (pdump_wire): ditto.
9106         * lisp.h (pdump_wire_list): ditto.
9107
9108 2001-01-09  Martin Buchholz  <martin@xemacs.org>
9109
9110         * make-src-depend (PrintPatternDeps):
9111         Use `sort' to make output independent of perl version.
9112
9113 2001-01-08  Martin Buchholz  <martin@xemacs.org>
9114
9115         Port to Netbsd 1.5.
9116         * unexelf.c: Remove (never used) bogus Netbsd-specific cruft.
9117         * s/netbsd.c: Use unexelf.o if __ELF__ is defined.
9118
9119 2001-01-03  Didier Verna  <didier@xemacs.org>
9120
9121         * event-stream.c (emacs_handle_focus_change_preliminary): ensure
9122         that `focus_frame' is alive before thinking of calling
9123         `redisplay_redraw_cursor' on it.
9124
9125 2001-01-08  Martin Buchholz <martin@xemacs.org>
9126
9127         * XEmacs 21.2.40 is released.
9128
9129 2001-01-06  Golubev I. N.  <gin@mo.msk.ru>
9130
9131         * regex.c: Replace PREFETCH with REGEX_PREFETCH.
9132
9133 2001-01-06  Martin Buchholz  <martin@xemacs.org>
9134
9135         * alloc.c (dbg_valmask): Make const.
9136         * alloc.c (dbg_typemask): Make const.
9137         * alloc.c (dbg_USE_UNION_TYPE): Make const.
9138         * alloc.c (dbg_valbits): Make const.
9139         * alloc.c (dbg_gctypebits): Make const.
9140
9141 2001-01-06  Stephen J. Turnbull  <stephen@xemacs.org>
9142
9143         * redisplay-x.c (x_bevel_area):
9144         redisplay.h (struct rune):
9145         Typo fixes in comments.
9146
9147 2001-01-05  Andy Piper  <andy@xemacs.org>
9148
9149         * glyphs-x.c (x_redisplay_widget): use size changed for offset
9150         adjustment.
9151
9152         * menubar.c (menubar_visible_p_changed): don't mark frame changed.
9153
9154 2001-01-05  Martin Buchholz  <martin@xemacs.org>
9155
9156         * alloc.c (pure-bytes-used): Remove unused mendacious variable.
9157
9158         * mule-ccl.c (stack_idx_of_map_multiple):
9159         Non const global data must not be initialized!
9160         Found by MIYASHITA Hisashi.
9161
9162 2001-01-02  Andy Piper  <andy@xemacs.org>
9163
9164         * frame.c (change_frame_size): make sure frame size is always
9165         marked as changed.
9166
9167         * glyphs.c (image_instance_layout): minor code reuse.
9168
9169         * window.c (Fcurrent_window_configuration): revert previous
9170         change.
9171
9172 2001-01-02  Martin Buchholz  <martin@xemacs.org>
9173
9174         * glyphs.h:
9175         * glyphs.c (make_image_instance_cache_hash_table): Use ANSI prototypes.
9176
9177 2000-12-31  Andy Piper  <andy@xemacs.org>
9178
9179         * glyphs-x.c (x_unmap_subwindow): return focus to enclosing frame
9180         when widget gets unmapped.
9181
9182         * event-Xt.c (emacs_Xt_handle_widget_losing_focus): new
9183         function. Make sure widgets losing focus don't just drop it.
9184         (handle_focus_event_1): record the widget with focus.
9185
9186 2000-12-31  Andy Piper  <andy@xemacs.org>
9187
9188         * window.c (allocate_window): use
9189         make_image_instance_cache_hash_table.
9190         (make_dummy_parent): ditto.
9191         (Fset_window_configuration): ditto.
9192
9193         * glyphs.h (INSTANTIATOR_TYPE): new macro.  declare new functions.
9194
9195         * glyphs.c (process_image_string_instantiator): use
9196         INSTANTIATOR_TYPE.
9197         (get_image_instantiator_governing_domain): ditto.
9198         (normalize_image_instantiator): ditto.
9199         (instantiate_image_instantiator): ditto.
9200         (make_image_instance_1): ditto.
9201         (image_instantiate): ditto. Key on glyph *and* instantiator type.
9202         (instantiator_eq_equal): new function for use with instance hash
9203         tables.
9204         (instantiator_eq_hash): ditto.
9205         (make_image_instance_cache_hash_table): create a suitable hash
9206         table for storing image instances.
9207
9208         * elhash.h (hash_table_weakness): new internal weakness type
9209         HASH_TABLE_KEY_CAR_VALUE_WEAK.
9210         declare new functions.
9211
9212         * elhash.c (finish_marking_weak_hash_tables): introduce yet
9213         another weakness type for glyphs.
9214         (make_standard_lisp_hash_table): new function split out from
9215         make_general_lisp_hash_table.
9216         (make_lisp_hash_table): call make_standard_lisp_hash_table.
9217         (hash_table_instantiate): ditto.
9218         (Fmake_hash_table): ditto.
9219
9220 2000-12-31  Martin Buchholz <martin@xemacs.org>
9221
9222         * XEmacs 21.2.39 is released.
9223
9224 2000-12-29  Andy Piper  <andy@xemacs.org>
9225
9226         * menubar.c (menubar_visible_p_changed): signal the frame changed.
9227
9228         * glyphs-x.c (x_redisplay_widget): Re-calculate widget offsets if
9229         the frame has changed so that we pick up geometry changes such as
9230         menubar visibility.
9231
9232 2000-12-28  Andy Piper  <andy@xemacs.org>
9233
9234         * lastfile.c (my_ebss): make a char array so we can pad the
9235         bss. Fixes cygwin unexec.
9236
9237         * unexcw.c: invert BROKEN_GDB to NO_DEBUG.
9238
9239 2000-12-26  Andy Piper  <andy@xemacs.org>
9240
9241         * event-Xt.c (emacs_Xt_force_event_pending): add some verbose
9242         comments and try and be more precise about a non-/SIGIO world.
9243         (emacs_Xt_event_pending_p): use XtAppPending under cygwin and non
9244         SIGIO.
9245
9246         * redisplay-output.c (redisplay_normalize_glyph_area): make sure
9247         we don't normalize to zero width or height.
9248
9249 2000-12-24  Andy Piper  <andy@xemacs.org>
9250
9251         * Makefile.in.in (ldflags): add -mwindows when appropriate.
9252
9253 2000-08-18  Golubev I. N.  <gin@mo.msk.ru>
9254
9255         * s/sco5.h: SCO 5 has pty support.
9256
9257 2000-07-20  Kazuyuki IENAGA <ienaga@xemacs.org>
9258
9259         * input-method-xlib.c: supports both XIM_XLIB and USE_XFONTSET.
9260         input-method-xlib.c contains whole contents of input-method-xfs.c,
9261         so we can use input-method-xlib.c's code for USE_XFONTSET
9262         using #ifdefs.
9263         * input-method-xfs.c: removed.
9264
9265 2000-12-20  Stephen Turnbull  <stephen@xemacs.org>
9266
9267         * file-coding.h (enum coding_category_type): reorder enumerators to
9268         make autodetection safer.  Make CODING_CATEGORY_LAST an enumerator
9269         (now one greater than largest real coding_category_type enumerator).
9270         * file-coding.c (coding_category_symbol, coding_category_by_priority,
9271         coding_category_system, fcd_descriptihon_1, decode_coding_category,
9272         Fcoding_category_list, Fset_coding_priority_list,
9273         Fcoding_priority_list, coding_system_from_mask, Fdetect_coding_region,
9274         vars_of_file_coding): adjust for change in CODING_CATEGORY_LAST.
9275
9276 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9277
9278         * redisplay-output.c (redisplay_clear_top_of_window): Remove static.
9279         * redisplay-output.c (redisplay_output_window): Clear top of window
9280         when face is changed.
9281         * redisplay-x.c (x_redraw_exposed_window): Call
9282         redisplay_clear_top_of_window.
9283         * redisplay.h: Publish redisplay_clear_top_of_window.
9284
9285 2000-12-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
9286
9287         * buffer.c (Fkill_buffer): Map over all devices.
9288         * window.c (window_loop): Remove UNSHOW_BUFFER code.
9289         (list_windows): New function.
9290         (list_all_windows): Ditto.
9291         (Freplace_buffer_in_windows): Use them.
9292
9293 2000-02-02   Daiki Ueno <ueno@ueda.info.waseda.ac.jp>
9294
9295         * database.c (berkdb_subtype): Recognize new subtype `queue'.
9296         (Fopen_database): Use `db_create' instead of `db_open'.
9297         (syms_of_database): Initialize Qqueue.
9298
9299 2000-12-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9300
9301         * buffer.c (common_init_complex_vars_of_buffer): Initialize
9302         buffer_local_face_property.
9303         * buffer.h (struct buffer): New member buffer_local_face_property.
9304         * window.c (Fset_window_buffer):  Mark window's face as changed
9305         when buffer has buffer local face.
9306         * window.h (MARK_WINDOW_FACES_CHANGED): New macro.
9307         * objects.c (color_after_change): Set buffer_local_face_property
9308         when locale of face specifier is buffer.
9309         * objects.c (font_after_change): Ditto.
9310         * objects.c (face_boolean_after_change): Ditto.
9311         * glyphs.c (image_after_change): Ditto.
9312
9313 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9314
9315         * nt.c (mswindows_fstat): Report file permissions, volume serial
9316         number, etc. Code adapted from FSF Emacs 20.7.
9317
9318 2000-12-09  Dan Holmsand  <dan@eyebee.com>
9319
9320         * sysfile.h (lstat): Make lstat an alias for xemacs_stat instead
9321         of stat when we don't have symbolic links, to make sure
9322         mswindows_stat is called on mswindows.
9323
9324 2000-12-12  Yoshiki Hayashi  <yoshiki@xemacs.org>
9325
9326         * alloca.c: Define malloc to xmalloc only when built with XEmacs.
9327
9328 2000-12-12  Martin Buchholz  <martin@xemacs.org>
9329
9330         * doprnt.c (emacs_doprnt_1): More printing fixes.
9331         Make printing of numbers compatible with libc and FSF Emacs.
9332         BUG was: (format "%6.3f" 1.2) ==>"1.200000"
9333         Use the system printf to do most of the hard work of formatting,
9334         instead of doprnt_1().
9335         Calculate memory to allocate for format string.
9336         Remove arbitrary limit on precision, e.g. (format "%.1000f" 3.14)
9337         (doprnt_1): Cleaner code and documentation.
9338
9339 2000-12-01  Jerry James  <james@eecs.ukans.edu>
9340
9341         * Makefile.in.in: Use the loop variable to install headers.
9342
9343 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9344
9345         * window.c (Fsplit_window): Don't invalidate face cache.
9346
9347 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9348
9349         * minibuf.c (Fall_completions): Undo the previous change
9350         which removed checking elements start with space.
9351
9352 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9353
9354         * mule-canna.c: Didier suppression.
9355
9356 2000-12-06  Stephen Turnbull  <stephen@xemacs.org>
9357
9358         * mule-canna.c: rename static unsigned char buf[] to key_buffer
9359         (warning suppression).  Add English comment translations.
9360
9361 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9362
9363         * unexelfsgi.c (unexec): Better test for mmap failure.
9364
9365 2000-12-05  Martin Buchholz <martin@xemacs.org>
9366
9367         * XEmacs 21.2.38 is released.
9368
9369 2000-12-05  Martin Buchholz  <martin@xemacs.org>
9370
9371         * redisplay.c (bar-cursor): Make a user variable.
9372
9373         * symsinit.h: Add init_postgresql_from_environment.
9374
9375 2000-12-04  Yoshiki Hayashi  <yoshiki@xemacs.org>
9376
9377         * regex.c: Convert to clean C.
9378
9379 2000-12-05  Dan Holmsand  <dan@eyebee.com>
9380
9381         * realpath.c:
9382         Don't #include sysfile.h. Revert to duplicating PATH_MAX
9383         initialization.
9384         (sys_readlink): renamed to system_readlink to avoid conflict with
9385         the other sys_readlink.
9386
9387 2000-12-04  Hiroaki Abe  <h-abe@pc.highway.ne.jp>
9388
9389         * dumper.c (pdump_file_get): Correct uses of pdump_fd.
9390
9391 2000-12-04  Stephen J. Turnbull  <stephen@xemacs.org>
9392
9393         * postgresql.c (init_postgresql_from_environment): new function.
9394         (vars_of_postgresql): Move code initializing Lisp variables out and
9395         into init_postgresql_from_environment.
9396         emacs.c (main_1): Call init_postgresql_from_environment if and only
9397         if running a dumped XEmacs.
9398
9399 2000-08-31  Dan Holmsand  <dan@eyebee.com>
9400
9401         * buffer.c: Make find-file-compare-truenames default to true on
9402         windows.
9403
9404         * realpath.c (win32_abs_start):
9405         (cygwin_readlink):
9406         (win32_readlink): New functions.
9407         (xrealpath): Return really real filenames on windows.
9408
9409         * fileio.c (Ffile_truename): Make file-truename work on windows.
9410
9411 2000-11-29  Didier Verna  <didier@xemacs.org>
9412
9413         * faces.c (MAYBE_UNFROB_BACKGROUND_PIXMAP): new macro.
9414         * faces.c (update_face_cachel_data): use it.
9415         * faces.c (add_face_cachel): use it. Complete background pixmap
9416         frobbing in face cache if `update_face_cachel_data' has not done so.
9417
9418 2000-11-29  Yoshiki Hayashi  <yoshiki@xemacs.org>
9419
9420         * search.c (string_match_1): Don't set last_thing_searched
9421         when search failed.
9422
9423 2000-11-27  Yoshiki Hayashi  <yoshiki@xemacs.org>
9424
9425         * buffer.c: Include casetab.h
9426         (common_init_complex_vars_of_buffer): Use new case-table object.
9427         * buffer.h: Include casetab.h
9428         * buffer.h (MAKE_TRT_TABLE): Use generic char-table.
9429         (DOWNCASE_TABLE_OF): Ditto.
9430         * bufslots.h: Remove char-tables and add case-table.
9431         * casetab.c: Include casetab.h
9432         (CASE_TABLE_P): Removed.
9433         (mark_case_table): New function.
9434         (allocate_case_table): New function.
9435         (Fcase_table_p): Use new case-table.
9436         (case_table_char): New function.
9437         (Fget_case_table): Ditto.
9438         (Fput_case_table): Ditto.
9439         (Fput_case_table_pair): Ditto.
9440         (Fcopy_case_table): Ditto.
9441         (Fcurrent_case_table): Return case-table.
9442         (Fstandard_case_table): Return case-table.
9443         (Fset_case_table): Fix doc-string.
9444         (set_case_table): Use case-table
9445         (syms_of_casetab): DEFSUBR new functions.
9446         (complex_vars_of_casetab): Set up standard case-table.
9447         * casetab.h: New file.
9448         * editfns.c: Include casetab.h
9449         (Fcompare_buffer_substrings): Use case-table.
9450         * inline.c: Include casetab.h
9451         * lisp.h: Remove bogus extern.
9452         * lrecord.h (lrecord_type): Add lrecord_type_case_table.
9453         * search.c: Include casetab.h
9454         (TRANSLATE_ASCII): Removed.
9455         (TRANSLATE): Unconditionally translate character.
9456         (looking_at_1): Use case-table.
9457         (string_match_1): Ditto.
9458         (fast_string_match): Ditto.
9459         (search_command): Ditto.
9460         (search_buffer): Separate boyer_moore.  Check whether
9461         boyer_moore is possible.
9462         (simple_search): New function.
9463         (boyer_moore): Separated from search_buffer. Translate char.
9464
9465 2000-11-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
9466
9467         * regex.c (RE_TR_ASCII): Removed.
9468         (RE_TRANSLATE): Unconditionally use TRT_TABLE.
9469         (PATFETCH): Call PATFETCH_RAW.
9470         (PATFETCH_RAW): Fetch Emchar.
9471         (PATUNFETCH): Decrement charptr.
9472         (GET_BUFFER_SPACE): Rename b to buf_end.
9473         (BUF_PUSH): Ditto.
9474         (BUF_PUSH_2): Ditto.
9475         (BUF_PUSH_3): Ditto.
9476         (EXTEND_BUFFER): Ditto.
9477         (SET_LIST_BIT): Ditto.
9478         (regex_compile): Ditto.  Translate non ASCII char.
9479         (compile_range): Ditto.
9480         (re_search_2): Ditto.
9481         (re_match_2_internal): Compare Emchar.
9482         (bcmp_translate): Ditto.
9483
9484 2000-11-29  Stephen J. Turnbull  <turnbull@xemacs.org>
9485
9486         * lisp.h (basic char/int typedefs):  comment improvement.
9487
9488 2000-11-24  Stephen J. Turnbull  <turnbull@xemacs.org>
9489
9490         * emacs.c (main_1):  unconditional pdump unstomping; don't save and
9491         unstomp inhibit_site_lisp.  Improve comments.
9492
9493 2000-11-22  Stephen J. Turnbull  <turnbull@xemacs.org>
9494
9495         * mule-charset.c (Fcharset_property):  improve type checking, comments.
9496
9497 2000-11-28  Andy Piper  <andy@xemacs.org>
9498
9499         * redisplay-output.c (redisplay_output_subwindow): make sure we do
9500         clipped display for windows in the gutter also.
9501         (redisplay_display_boxes_in_window_p): change semantics of return
9502         codes to be more intuitive.
9503
9504         * gutter.h: declare display_boxes_in_gutter_p.
9505
9506         * gutter.c (display_boxes_in_gutter_p): new function for
9507         redisplay.
9508
9509 2000-11-22  Andy Piper  <andy@xemacs.org>
9510
9511         * glyphs-x.c (image_instantiator_format_create_glyphs_x): change
9512         autodetect domain.
9513
9514 2000-11-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
9515
9516         * callproc.c (Fold_call_process_internal):
9517         * gpm.c (Freceive_gpm_event):
9518         (tty_get_foreign_selection): Might be just warning supression.
9519         * fileio.c (Fwrite_region_internal):
9520         (Fset_visited_file_modtime):
9521         * keymap.c (event_matches_key_specifier_p):
9522         Initialize GCPROed variable.
9523
9524         * menubar-x.c (command_builder_find_menu_accelerator):
9525         Initialize before use.
9526
9527 2000-11-23  Andy Piper  <andy@xemacs.org>
9528
9529         * unexcw.c (unexec): make the resulting executable executable.
9530
9531 2000-11-21  Martin Buchholz  <martin@xemacs.org>
9532
9533         * doc.c (get_doc_string):
9534         Use size_t, not int, for result of XSTRING_LENGTH.
9535
9536         * cmds.c (Fdelete_char):
9537         * cmds.c (Fpoint_at_eol):
9538         * cmds.c (Fself_insert_command):
9539         Use EMACS_INT, not int, for result of XINT.
9540         Someday, someone will want to insert more than 2**31 identical characters.
9541
9542         * cmds.c (Fdelete_char):
9543         * cmds.c (Fdelete_backward_char):
9544         * syntax.c (Fforward_word):
9545         * syntax.c (Fforward_comment):
9546         Make COUNT argument optional, for consistency with forward-char et al.
9547
9548 2000-11-22  Martin Buchholz  <martin@xemacs.org>
9549
9550         * lisp.h:
9551         * print.c (long_to_string):
9552         Return a useful value: the pointer at end of data written.
9553
9554         * doprnt.c:
9555         Use `static const char * const' for constant strings.
9556         (union printf_arg): Delete `i', `ui' members.
9557         (get_doprnt_args):
9558         (emacs_doprnt_1):
9559         Fix LP64 platform bug: (format "%d" most-positive-fixnum) ==> "-1"
9560         Do all printf-ing via the `l' specifier.
9561         Use EMACS_INT instead of int.
9562         Optimize.
9563
9564 2000-11-20  Didier Verna  <didier@xemacs.org>
9565
9566         * faces.c (update_face_cachel_data): don't frob the background
9567         pixmap when the window is being created. The face is needed but
9568         does not exist yet.
9569
9570 2000-11-20  Andy Piper  <andy@xemacs.org>
9571
9572         * unexcw.c (copy_executable_and_dump_data_section): Only do bss
9573         messing with a debug environment.
9574
9575 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9576
9577         * emacs.c (__sti__iflPNGFile_c___): Pedantically correct prototype.
9578
9579 2000-11-20  Martin Buchholz  <martin@xemacs.org>
9580
9581         * casetab.c (Fcase_table_p): Fix compile error and crash.
9582
9583 2000-11-18  Philip Aston  <philipa@mail.com>
9584
9585         * s/cygwin32.h: Cygwin has SVR4-like pty support.
9586
9587 2000-11-18  Martin Buchholz  <martin@xemacs.org>
9588
9589         * fileio.c (Fexpand_file_name): GCPRO bug!  Protect `handler'.
9590         * filelock.c (lock_file): GCPRO bug! Initialize all GCPROed vars!
9591
9592 2000-11-17  Martin Buchholz  <martin@xemacs.org>
9593
9594         * config.h.in: Define HAVE_ELF_H if elf.h exists.
9595         * unexelf.c: Use HAVE_ELF_H.
9596         * unexelfsgi.c: Fix bug with dumped xemacs stdout/stderr not working.
9597         I copied FSF Emacs 20.7 unexelf.c to unexelfsgi.c and ANSIfied it.
9598         Max Matveev <makc@sgi.com> removed non-SGI-relevant parts and tested.
9599         Greg Harrington <greg_harrington@hotmail.com> provided a machine
9600         for testing.
9601         So this is an unexelfsgi.c from a different line of development.
9602
9603 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9604
9605         * regex.c (RE_TR_ASCII): New function.
9606         (RE_TRANSLATE): Call it.
9607
9608 2000-11-16  Yoshiki Hayashi  <yoshiki@xemacs.org>
9609
9610         * buffer.h (TRT_TABLE_OF): Remove assert.
9611         (IN_TRT_TABLE_DOMAIN): Removed.
9612
9613 2000-11-16  Gunnar Evermann  <ge204@eng.cam.ac.uk>
9614
9615         * free-hook.c (log_gcpro):
9616         (show_gcprohist): Add support for GCPRO5.
9617
9618 2000-11-08  Stephen J. Turnbull  <stephen@xemacs.org>
9619
9620         * emacs.c (main_1): Improve -sd error message when --pdump=no.
9621
9622 2000-11-16  Olivier Galibert  <galibert@xemacs.org>
9623
9624         * symeval.h: Declare flush_all_buffer_local_cache.
9625
9626         * symbols.c: Change XD_LO_RESET_NIL into XD_LISP_OBJECTs.
9627         (flush_buffer_local_cache): Added.
9628         (flush_all_buffer_local_cache): Added.
9629
9630         * lrecord.h: Remove unused XD_LO_RESET_NIL.
9631
9632         * dumper.c (pdump_register_sub): Remove unused XD_LO_RESET_NIL.
9633         (pdump_dump_data): Ditto.
9634         (pdump_reloc_one): Ditto.
9635         (pdump): Remove unused pdump_qnil.  Flush buffer local caches
9636         before dumping.
9637
9638
9639 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9640
9641         * buffer.c: Remove if 0'ed entry.
9642         * buffer.h: Rewrite TRT to use char-table.
9643         * bufslots.h: Remove mirror tables.
9644         * casetab.c: Remove mirror tables.
9645         (CASE_TABLE_P): New macro.
9646         (Fcase_table_p): Element of a case table is string or char-table.
9647         (make_mirror_trt_table): Removed.
9648         (set_case_table): Setup char-table from strings for backward
9649         compatibility.
9650         * dired.c (Fdirectory_files):
9651         * dired-msw.c: (mswindows_get_files):
9652         * lisp.h: Change prototype of re_pattern_buffer.
9653         * regex.c: (RE_TRANSLATE): New macro.
9654         (TRANSLATE_P): Ditto.
9655         Change translate to type RE_TRANSLATE_TYPE.
9656         * regex.h: Define RE_TRANSLATE_TYPE
9657         * search.c (TRANSLATE): New macro.
9658         (TRANSLATE_ASCII): New macro.
9659         Translate table is changed to Lisp_Object.
9660         (signal_failure): Inhibit return.
9661
9662 2000-11-14  Yoshiki Hayashi  <yoshiki@xemacs.org>
9663
9664         * device-msw.c:
9665         * eldap.c:
9666         * event-Xt.c:
9667         * event-stream.c:
9668         * print.c:
9669         Do UNGCPRO before return.
9670
9671 2000-11-14  Martin Buchholz <martin@xemacs.org>
9672
9673         * XEmacs 21.2.37 is released.
9674
9675 2000-11-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
9676
9677         * fileio.c (Finsert_file_contents_internal): UNGCPRO before return.
9678         Add comments about discarded return value.
9679
9680 2000-11-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
9681
9682         * callint.c:
9683         * event-stream.c: Fix comments.  Remove some #if 0'ed part.
9684
9685 2000-10-27  Andy Piper  <andy@xemacs.org>
9686
9687         * gutter.c (Fset_default_gutter_position): default left and right
9688         gutters to visible.
9689         (calculate_gutter_size): calculate resonable heuristic for left
9690         and right gutter sizes.
9691         (specifier_vars_of_gutter): change left and right gutter sizes to
9692         autodetect.
9693         (calculate_gutter_size_from_display_lines): new function.
9694         (output_gutter): check for resizing on left and right gutters.
9695         (clear_gutter): don't special case top and left gutters.
9696         (specifier_vars_of_gutter): use new signature for
9697         set_specifier_caching.
9698
9699         * glyphs-x.c (x_redisplay_widget): spelling fix.
9700         * glyphs.c (specifier_vars_of_glyphs):
9701         * menubar.c (specifier_vars_of_menubar):
9702         * redisplay.c (specifier_vars_of_redisplay):
9703         * toolbar.c (specifier_vars_of_toolbar):
9704         * window.c (specifier_vars_of_window):
9705         * scrollbar.c (specifier_vars_of_scrollbar):
9706         (complex_vars_of_scrollbar): use new signature for
9707         set_specifier_caching.
9708
9709         * specifier.c (set_specifier_caching): include recompute flag.
9710         (recompute_one_cached_specifier_in_window): always recompute if
9711         flag set.
9712         (recompute_one_cached_specifier_in_frame): ditto.
9713
9714         * specifier.h (struct specifier_caching): add recompute flag.
9715
9716 2000-10-24  Andy Piper  <andy@xemacs.org>
9717
9718         * unexcw.c (copy_executable_and_dump_data_section): add new
9719         BSS_PAD_SIZE so that we can re-instate a mini-bss. This keeps gdb
9720         5.0 happy.
9721
9722 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9723
9724         * console-x.h (x_device): New member modifier_release_time.
9725         * event-Xt.c (x_handle_sticky_modifiers):
9726         Bound interval modifier keys are sticky.
9727         * event-stream.c (Vmodifier_keys_sticky_time): New variable.
9728         * events.h: extern it.
9729
9730 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9731
9732         * cmdloop.c (Fcommand_loop_1): Just add C-g to event queue.
9733
9734 2000-11-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
9735
9736         * event-stream.c (execute_command_event): Preserve current_events
9737         and the like when event is misc-user-event.
9738         Inhibit quit during the call to maybe_echo_keys.
9739
9740 2000-10-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
9741
9742         * filelock.c (lock_buffer): Cope with kill-buffer. Don't create a
9743         symlink when buffer is killed.
9744         (inhibit_clash_detection): New variable.
9745
9746 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
9747
9748         * console.c (Fset_input_method): Trigger redisplay on tty.
9749
9750 2000-11-07  Martin Buchholz  <martin@xemacs.org>
9751
9752         * process.c (Fprocess_status): Revert to previous behavior:
9753         (process-status "nosuchprocess") ==> nil
9754
9755 2000-11-06  Martin Buchholz  <martin@xemacs.org>
9756
9757         * mule-charset.h (CHARSET_BY_LEADING_BYTE):
9758         Work around another GCC 2.95.2 optimizer bug.
9759
9760 2000-11-02  Martin Buchholz  <martin@xemacs.org>
9761
9762         * process.c (Fget_process): Use LIST_LOOP_2.
9763         (kill_buffer_processes): Use LIST_LOOP_2.
9764
9765         * minibuf.c (Fall_completions):
9766         Delete old non-functional code for FSF fourth argument.
9767
9768         * frame.c (frame_matches_frame_spec):
9769         Renamed from `frame_matches_frametype'.  Update all callers.
9770         (device_matches_device_spec):
9771         Renamed from 'device_matches_console_spec'.  Update all callers.
9772
9773         * doc.c (Fsubstitute_command_keys):
9774         Remove buffer overflow crash.  Small code cleanups.
9775
9776         * casetab.c (check_case_table): Simpler code.
9777
9778         * window.c (Freplace_buffer_in_windows):
9779         Give this the same WHICH-FRAMES and WHICH-DEVICES parameters
9780         (and similar implementation) as Fdelete_windows_on.
9781         Update all callers.
9782
9783         * alloc.c (Fmake_list):
9784         * alloc.c (make_vector):
9785         * alloc.c (Fmake_vector):
9786         * alloc.c (make_bit_vector):
9787         * alloc.c (Fmake_bit_vector):
9788         * alloc.c (Fbit_vector):
9789         * alloc.c (Fmake_string):
9790         * alloc.c (Fpurecopy):
9791         * alloc.c (Fmemory_limit):
9792         * buffer.c:
9793         * buffer.c (Fget_buffer):
9794         * buffer.c (Fkill_buffer):
9795         * buffer.c (complex_vars_of_buffer):
9796         * bytecode.c (Fcompiled_function_stack_depth):
9797         * callint.c (Fprefix_numeric_value):
9798         * event-stream.c:
9799         * event-stream.c (Fread_key_sequence):
9800         * casetab.c:
9801         * casetab.c (Fcase_table_p):
9802         * casetab.c (check_case_table):
9803         * casetab.c (Fset_case_table):
9804         * casetab.c (Fset_standard_case_table):
9805         * chartab.c:
9806         * chartab.c (Fchar_table_type):
9807         * chartab.c (Freset_char_table):
9808         * chartab.c (Fget_char_table):
9809         * chartab.c (Fget_range_char_table):
9810         * chartab.c (Fput_char_table):
9811         * chartab.c (Fmap_char_table):
9812         * chartab.c (Fcategory_table_p):
9813         * chartab.c (Fcheck_category_at):
9814         * chartab.c (Fchar_in_category_p):
9815         * chartab.c (Fcategory_table):
9816         * chartab.c (Fcopy_category_table):
9817         * chartab.c (Fset_category_table):
9818         * chartab.c (Fcategory_designator_p):
9819         * chartab.c (Fcategory_table_value_p):
9820         * cmds.c (Fdelete_char):
9821         * cmds.c (Fdelete_backward_char):
9822         * cmds.c (Fself_insert_command):
9823         * cmds.c (Fself_insert_internal):
9824         * console.c (Fvalid_console_type_p):
9825         * console.c (Fcdfw_console):
9826         * console.c (Fconsole_type):
9827         * console.c (Fconsole_name):
9828         * console.c (Fconsole_device_list):
9829         * console.c (Fconsole_on_window_system_p):
9830         * data.c:
9831         * data.c (Feq):
9832         * data.c (Fold_eq):
9833         * data.c (Fsubr_interactive):
9834         * data.c (Fchar_to_int):
9835         * data.c (Fint_to_char):
9836         * data.c (Fsetcar):
9837         * data.c (Fsetcdr):
9838         * data.c (Fnumber_to_string):
9839         * data.c (Fstring_to_number):
9840         * data.c (Frem):
9841         * database.c (mark_database):
9842         * database.c (finalize_database):
9843         * database.c (Fdatabase_live_p):
9844         * database.c (Fdatabasep):
9845         * device-x.c (Fx_get_resource):
9846         * device.c (Fdfw_device):
9847         * dired.c:
9848         * dired.c (Ffile_name_completion):
9849         * dired.c (Ffile_name_all_completions):
9850         * dired.c (Fuser_name_completion):
9851         * dired.c (Fuser_name_completion_1):
9852         * dired.c (Fuser_name_all_completions):
9853         * doc.c (Fdocumentation):
9854         * doc.c (Fdocumentation_property):
9855         * doc.c (Fsubstitute_command_keys):
9856         * editfns.c:
9857         * editfns.c (Fchar_to_string):
9858         * editfns.c (Fstring_to_char):
9859         * editfns.c (Ftemp_directory):
9860         * editfns.c (Finsert_char):
9861         * editfns.c (Fbuffer_substring_no_properties):
9862         * editfns.c (Fnarrow_to_region):
9863         * editfns.c (Fchar_equal):
9864         * editfns.c (Fchar_Equal):
9865         * editfns.c (Ftranspose_regions):
9866         * emacs.c (Fdump_emacs):
9867         * eval.c (Fthrow):
9868         * eval.c (Fcommand_execute):
9869         * eval.c (Fautoload):
9870         * eval.c (Fbacktrace):
9871         * eval.c (Fbacktrace_frame):
9872         * events.c:
9873         * events.c (Fcopy_event):
9874         * events.c (Fcharacter_to_event):
9875         * events.c (Fevent_button):
9876         * events.c (Fevent_process):
9877         * extents.c:
9878         * extents.c (Fnext_extent_change):
9879         * extents.c (Fextent_property):
9880         * faces.c (Ffacep):
9881         * faces.c (Fmake_face):
9882         * file-coding.c:
9883         * file-coding.c (Fencode_shift_jis_char):
9884         * file-coding.c (Fencode_big5_char):
9885         * fileio.c (Ffile_name_directory):
9886         * fileio.c (Ffile_name_nondirectory):
9887         * fileio.c (Ffile_name_as_directory):
9888         * fileio.c (Fdirectory_file_name):
9889         * fileio.c (Ffile_truename):
9890         * fileio.c (Fsubstitute_in_file_name):
9891         * fileio.c (Ffile_modes):
9892         * fileio.c (Fset_file_modes):
9893         * fileio.c (Fset_default_file_modes):
9894         * fileio.c (Fverify_visited_file_modtime):
9895         * floatfns.c (Facos):
9896         * floatfns.c (Fasin):
9897         * floatfns.c (Fatan):
9898         * floatfns.c (Fcos):
9899         * floatfns.c (Fsin):
9900         * floatfns.c (Ftan):
9901         * floatfns.c (Fbessel_j0):
9902         * floatfns.c (Fbessel_j1):
9903         * floatfns.c (Fbessel_jn):
9904         * floatfns.c (Fbessel_y0):
9905         * floatfns.c (Fbessel_y1):
9906         * floatfns.c (Fbessel_yn):
9907         * floatfns.c (Ferf):
9908         * floatfns.c (Ferfc):
9909         * floatfns.c (Flog_gamma):
9910         * floatfns.c (Fexp):
9911         * floatfns.c (Fexpt):
9912         * floatfns.c (Flog):
9913         * floatfns.c (Flog10):
9914         * floatfns.c (Fsqrt):
9915         * floatfns.c (Fcube_root):
9916         * floatfns.c (Facosh):
9917         * floatfns.c (Fasinh):
9918         * floatfns.c (Fatanh):
9919         * floatfns.c (Fcosh):
9920         * floatfns.c (Fsinh):
9921         * floatfns.c (Ftanh):
9922         * floatfns.c (Fabs):
9923         * floatfns.c (Ffloat):
9924         * floatfns.c (Flogb):
9925         * floatfns.c (Fceiling):
9926         * floatfns.c (Ffloor):
9927         * floatfns.c (Fround):
9928         * floatfns.c (Ftruncate):
9929         * floatfns.c (Ffceiling):
9930         * floatfns.c (Fffloor):
9931         * floatfns.c (Ffround):
9932         * floatfns.c (Fftruncate):
9933         * fns.c (Fstring_equal):
9934         * fns.c (Fstring_lessp):
9935         * fns.c (concat2):
9936         * fns.c (concat3):
9937         * fns.c (vconcat2):
9938         * fns.c (vconcat3):
9939         * fns.c (Fsubstring):
9940         * fns.c (Fassoc):
9941         * fns.c (Fold_assoc):
9942         * fns.c (assoc_no_quit):
9943         * fns.c (Fassq):
9944         * fns.c (Fold_assq):
9945         * fns.c (assq_no_quit):
9946         * fns.c (Frassoc):
9947         * fns.c (Fold_rassoc):
9948         * fns.c (Frassq):
9949         * fns.c (Fold_rassq):
9950         * fns.c (rassq_no_quit):
9951         * fns.c (Fremassoc):
9952         * fns.c (remassoc_no_quit):
9953         * fns.c (Fremassq):
9954         * fns.c (remassq_no_quit):
9955         * fns.c (Fremrassoc):
9956         * fns.c (Fremrassq):
9957         * fns.c (remrassq_no_quit):
9958         * fns.c (Fsort):
9959         * fns.c (Fplist_get):
9960         * fns.c (Fplist_put):
9961         * fns.c (Fplist_remprop):
9962         * fns.c (Fplist_member):
9963         * fns.c (Flax_plist_get):
9964         * fns.c (Flax_plist_put):
9965         * fns.c (Flax_plist_remprop):
9966         * fns.c (Flax_plist_member):
9967         * fns.c (Fequal):
9968         * fns.c (Fold_equal):
9969         * fns.c (Frequire):
9970         * fns.c (Fbase64_encode_region):
9971         * fns.c (Fbase64_encode_string):
9972         * fns.c (Fbase64_decode_region):
9973         * frame.c:
9974         * frame.c (frame_matches_frame_spec):
9975         * frame.c (device_matches_device_spec):
9976         * frame.c (next_frame):
9977         * frame.c (previous_frame):
9978         * frame.c (Fnext_frame):
9979         * frame.c (Fprevious_frame):
9980         * frame.c (Fframe_property):
9981         * frame.c (Fset_frame_height):
9982         * frame.c (Fset_frame_size):
9983         * frame.h:
9984         * glyphs.c:
9985         * glyphs.c (if):
9986         * glyphs.c (decode_error_behavior_flag):
9987         * glyphs.c (Fmake_image_instance):
9988         * indent.c (Findent_to):
9989         * intl.c (Fignore_defer_gettext):
9990         * keymap.c (Fkeymapp):
9991         * keymap.c (Flookup_key):
9992         * lread.c:
9993         * lread.c (Fload_internal):
9994         * lread.c (Feval_buffer):
9995         * lread.c (Feval_region):
9996         * macros.c (Fexecute_kbd_macro):
9997         * marker.c (set_marker_internal):
9998         * marker.c (Fset_marker):
9999         * marker.c (set_marker_restricted):
10000         * marker.c (Fcopy_marker):
10001         * marker.c (noseeum_copy_marker):
10002         * menubar.c:
10003         * menubar.c (Fpopup_menu):
10004         * minibuf.c:
10005         * mule-charset.c (Fcharset_name):
10006         * mule-charset.c (Fchar_charset):
10007         * mule-charset.c (Fchar_octet):
10008         * mule-charset.c (Fsplit_char):
10009         * mule-wnnfns.c (Fwnn_open):
10010         * mule-wnnfns.c (Fwnn_dict_comment):
10011         * mule-wnnfns.c (Fwnn_quit_henkan):
10012         * mule-wnnfns.c (Fwnn_word_toroku):
10013         * mule-wnnfns.c (Fwnn_word_sakujo):
10014         * mule-wnnfns.c (Fwnn_word_use):
10015         * mule-wnnfns.c (Fwnn_hindo_set):
10016         * objects.c:
10017         * objects.c (Fmake_color_instance):
10018         * objects.c (Fmake_font_instance):
10019         * print.c (Fwrite_char):
10020         * process.c:
10021         * process.c (mark_process):
10022         * process.c (print_process):
10023         * process.c (get_process_from_usid):
10024         * process.c (Fprocessp):
10025         * process.c (Fprocess_live_p):
10026         * process.c (Fget_process):
10027         * process.c (Fget_buffer_process):
10028         * process.c (get_process):
10029         * process.c (Fprocess_id):
10030         * process.c (Fprocess_name):
10031         * process.c (Fprocess_command):
10032         * process.c (init_process_io_handles):
10033         * process.c (start_process_unwind):
10034         * process.c (Fstart_process_internal):
10035         * process.c (Fopen_multicast_group_internal):
10036         * process.c (Fset_process_window_size):
10037         * process.c (read_process_output):
10038         * process.c (send_process):
10039         * process.c (Fprocess_tty_name):
10040         * process.c (Fset_process_buffer):
10041         * process.c (Fprocess_buffer):
10042         * process.c (Fprocess_mark):
10043         * process.c (set_process_filter):
10044         * process.c (Fset_process_filter):
10045         * process.c (Fprocess_filter):
10046         * process.c (Fprocess_send_region):
10047         * process.c (Fprocess_send_string):
10048         * process.c (exec_sentinel):
10049         * process.c (Fset_process_sentinel):
10050         * process.c (Fprocess_sentinel):
10051         * process.c (status_notify):
10052         * process.c (Fprocess_status):
10053         * process.c (Fprocess_exit_status):
10054         * process.c (process_send_signal):
10055         * process.c (Fprocess_send_eof):
10056         * process.c (deactivate_process):
10057         * process.c (remove_process):
10058         * process.c (Fdelete_process):
10059         * process.c (kill_buffer_processes):
10060         * process.c (Fprocess_kill_without_query):
10061         * process.c (Fprocess_kill_without_query_p):
10062         * rangetab.c:
10063         * rangetab.c (Fget_range_table):
10064         * rangetab.c (Fput_range_table):
10065         * rangetab.c (Fremove_range_table):
10066         * rangetab.c (Fclear_range_table):
10067         * search.c:
10068         * search.c (Fskip_chars_forward):
10069         * search.c (Fskip_chars_backward):
10070         * search.c (Fskip_syntax_forward):
10071         * search.c (Fskip_syntax_backward):
10072         * search.c (search_command):
10073         * search.c (Freplace_match):
10074         * search.c (Fregexp_quote):
10075         * select.c (Fown_selection_internal):
10076         * select.c (Fselection_owner_p):
10077         * select.c (Fselection_exists_p):
10078         * select.c (Fget_selection_internal):
10079         * specifier.c:
10080         * symbols.c:
10081         * symbols.c (Fintern):
10082         * symbols.c (Fintern_soft):
10083         * symbols.c (Funintern):
10084         * symbols.c (Fapropos_internal):
10085         * symbols.c (Fset_default):
10086         * syntax.c:
10087         * syntax.c (Fsyntax_table_p):
10088         * syntax.c (Fcopy_syntax_table):
10089         * syntax.c (Fset_syntax_table):
10090         * syntax.c (Fchar_syntax):
10091         * syntax.c (syntax_match):
10092         * syntax.c (Fmatching_paren):
10093         * syntax.c (Fforward_word):
10094         * syntax.c (scan_lists):
10095         * syntax.c (Fscan_lists):
10096         * syntax.c (Fscan_sexps):
10097         * syntax.c (Fparse_partial_sexp):
10098         * toolbar.c (Fcheck_toolbar_button_syntax):
10099         * tooltalk.doc:
10100         * window.c:
10101         * window.c (Fwindowp):
10102         * window.c (Fwindow_live_p):
10103         * window.c (Fwindow_point):
10104         * window.c (Fdelete_window):
10105         * window.c (Fnext_window):
10106         * window.c (Fprevious_window):
10107         * window.c (Fother_window):
10108         * window.c (window_loop):
10109         * window.c (Fget_lru_window):
10110         * window.c (Fsplit_window):
10111         * window.c (Fenlarge_window):
10112         * window.c (Fenlarge_window_pixels):
10113         * window.c (Fshrink_window):
10114         * window.c (Fshrink_window_pixels):
10115         * window.c (change_window_height):
10116         * window.c (Fwindow_configuration_p):
10117         * window.c (Fcurrent_window_configuration):
10118         * window.h:
10119         * casefiddle.c (casify_object):
10120         * casefiddle.c (Fupcase):
10121         * casefiddle.c (Fdowncase):
10122         * casefiddle.c (Fcapitalize):
10123         * casefiddle.c (Fupcase_initials):
10124         * casefiddle.c (casify_region_internal):
10125         * casefiddle.c (casify_region):
10126         * casefiddle.c (Fupcase_region):
10127         * casefiddle.c (Fdowncase_region):
10128         * casefiddle.c (Fcapitalize_region):
10129         * casefiddle.c (Fupcase_initials_region):
10130         * casefiddle.c (Fupcase_word):
10131         * casefiddle.c (Fdowncase_word):
10132         * casefiddle.c (Fcapitalize_word):
10133         Docstring arglist/Texinfo fixes.  See man/ChangeLog for details.
10134         Replace 0 with '\0' when working with bytes.
10135         Replace initial "(" with "\(" in docstrings.
10136
10137 2000-11-01  Martin Buchholz  <martin@xemacs.org>
10138
10139         * config.h.in: Handle alloca with Compaq C on Alpha Linux.
10140
10141         * m/alpha.h: Let configure handle SYSTEM_MALLOC on Linux.
10142
10143 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10144
10145         * eldap.c (print_ldap): 64-bit cleaner.  Fixes warning.
10146
10147 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10148
10149         * doprnt.c (emacs_do_prnt_1): Format (format "%01.2d" 10)
10150         correctly.
10151
10152 2000-10-30  Yoshiki Hayashi  <yoshiki@xemacs.org>
10153
10154         * fileio.c (Vauto_save_list_file_prefix): Moved from startup.el.
10155         (inhibit_auto_save_session): New variable.
10156         (vars_of_fileio): Declare and initialize them.
10157         * fileio.c (Fdo_auto_save): Don't create session file if
10158         Vinhibit_auto_save_session or Vauto_save_list_file_prefix is non-nil.
10159
10160 2000-10-31  Martin Buchholz  <martin@xemacs.org>
10161
10162         * sgiplay.c (play_internal): C++ compilability.
10163         * alloc.c (SWEEP_FIXED_TYPE_BLOCK): Remove unused var `SFTB_prev'.
10164         * callproc.c (Fold_call_process_internal):
10165         Remove unused vars `env', `first'.
10166         * scrollbar.c (update_scrollbar_instance):
10167         #### unused var `current_window'.
10168         * redisplay-tty.c: Put currently unused vars insert_mode_on,
10169         etc. within #ifdef NOT_YET.
10170         * emacs.c: #### unused vars `initial_argc', `initial_argv'.
10171         * dialog-x.c (dbox_descriptor_to_widget_value): ### unused var `title'.
10172         * specifier.c (specifier_instance):
10173         #### unused var `tag'.
10174         Use WINDOW_BUFFER, FRAME_DEVICE instead of their expansion.
10175
10176 2000-10-27  Martin Buchholz  <martin@xemacs.org>
10177
10178         * fns.c (Fbutlast):
10179         * fns.c (list_sort):
10180         * fns.c (Ffillarray):
10181         * fns.c (bytecode_nconc2):
10182         * fns.c (Fnconc):
10183         * fns.c (mapcar1):
10184         * fns.c (Fmapconcat):
10185         Be pedantically 64-bit correct.  For the time when someone will
10186         want to have a list with length > 2**32.
10187
10188         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
10189         Work around MIPSpro compiler bug.
10190
10191         * process-unix.c (unix_kill_child_process): Add snarky comment.
10192         * process-unix.c (try_to_initialize_subtty):  Oops, `=' ==> `=='
10193
10194         * config.h.in: Oops, _getpt ==> _getpty
10195
10196 2000-10-26  Martin Buchholz  <martin@xemacs.org>
10197
10198         * config.h.in:
10199         * regex.c:
10200         Use void*, not char*, as return type of alloca().
10201
10202         * alloc.c (free_marker): Side effect inside assert expression!
10203
10204 2000-10-16  MIYASHITA Hisashi  <himi@m17n.org>
10205
10206         * mule-charset.c (Fset_charset_ccl_program): To check
10207         if the given ccl program is valid, use setup_ccl_program()
10208         instead of CHECK_VECTOR().
10209         (Fmake_charset): Likewise.
10210
10211 2000-10-20  Golubev I. N.  <gin@mo.msk.ru>
10212
10213         * faces.c (get_extent_fragment_face_cache_index):
10214         Fix cachel.merged_faces memory leak.
10215
10216 2000-10-14  MIYASHITA Hisashi  <himi@m17n.org>
10217
10218         * mule-ccl.c (ccl_driver)<CCL_DECODE_SJIS>:
10219         Reset MSB of octets obtained by DECODE_SJIS
10220         because of the incompatibility with Emacs.
10221         (ccl_driver)<CCL_ENCODE_SJIS>:
10222         Set MSB of octets before passing them to
10223         ENCODE_SJIS because of the incompatibility
10224         with Emacs.
10225
10226 2000-10-18   Daiki Ueno  <ueno@unixuser.org>
10227
10228         * lrecord.h (DECLARE_TYPECHECK_LRECORD): Abolish.
10229         (DECLARE_LRECORD): Undo the last change.
10230         (DECLARE_EXTERNAL_LRECORD): Expand typechecking stuff.
10231
10232 2000-10-17   Daiki Ueno  <ueno@unixuser.org>
10233
10234         * lrecord.h (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): Connect
10235         the implementation to lrecord_implementations_table.
10236
10237 2000-10-14   Daiki Ueno  <ueno@unixuser.org>
10238
10239         * lrecord.h (MAKE_EXTERNAL_LRECORD_IMPLEMENTATION): Don't set the
10240         initial value of `lrecord_type_##c_name' and
10241         `lrecord_##c_name.lrecord_type_index'; discard "const" qualifier.
10242         (INIT_EXTERNAL_LRECORD_IMPLEMENTATION): New macro.
10243         [ERROR_CHECK_TYPECHECK] (DECLARE_TYPECHECK_LRECORD): New macro.
10244         [ERROR_CHECK_TYPECHECK] (DECLARE_LRECORD): Use it.
10245         [ERROR_CHECK_TYPECHECK] (DECLARE_EXTERNAL_LRECORD): Use it.
10246
10247 2000-10-17  Martin Buchholz  <martin@xemacs.org>
10248
10249         * miscplay.c (sndcnv8S_2mono):
10250         (sndcnv2monounsigned):
10251         (sndcnvULaw_2linear):
10252         (sndcnv16swap):
10253         Remove implementation-defined behavior.
10254
10255 2000-10-12  Martin Buchholz  <martin@xemacs.org>
10256
10257         * input-method-xlib.c: Warning suppression.
10258
10259 2000-10-05  MIYASHITA Hisashi  <himi@m17n.org>
10260
10261         * mule-ccl.c: Sync up with Emacs 21.0.90.
10262         (ccl_driver)<CCL_TranslateCharacter>: Disabled.
10263         Do nothing.
10264         (ccl_driver)<CCL_TranslateCharacterConstTbl>:
10265         Likewise.
10266         (ccl_driver[WriteMultibyteChar2]): Bug fix.
10267         Use MAX_LEADING_BYTE_OFFICIAL_2 instead of
10268         MIN_LEADING_BYTE_OFFICIAL_2 to check whether the
10269         leading char belongs to official 2-dimensional charset.
10270         (CCL_WRITE_CHAR): When CCL_MODE_ENCODING,
10271         write the given character as is.  Otherwise,
10272         if it is a multibyte char, convert it by
10273         non_ascii_set_charptr_emchar, then write it.
10274         (CCL_WRITE_STRING): Likewise.
10275         (ccl_get_compiled_code): New function.
10276         (setup_ccl_program): When ccl_prog is invalid,
10277         return -1.
10278         (Fregister_code_conversion_map): New function.
10279         (syms_of_mule_ccl): defsubr Fregister_code_conversion_map.
10280
10281         * mule-ccl.h: Sync up with Emacs 21.0.90.
10282         (Fregister_ccl_program): export it.
10283
10284         * redisplay-msw.c (separate_textual_runs):
10285         If ccl program is not valid, don't do ccl conversion.
10286
10287         * redisplay-x.c (separate_textual_runs): Ditto.
10288
10289         * file-coding.c (Fmake_coding_system):
10290         When type is ccl and value is vector, register it
10291         with a proper symbol.  And checks whether the
10292         given ccl program is valid.
10293         (mule_decode): When calling ccl_driver, if src indicates
10294         NULL pointer, set an empty string instead.
10295         (mule_encode): Likewise.
10296
10297 2000-10-11  Martin Buchholz  <martin@xemacs.org>
10298
10299         The following large batch of changes gets us back to a state of
10300         C++ compilability.  Extbyte is now a char, which means that
10301         Extbyte * and Bufbyte * cannot be freely interchanged - a win!
10302
10303         * tooltalk.c (Fset_tooltalk_message_attribute): Type correctness.
10304
10305         * sound.c (Fplay_sound): Type correctness.
10306
10307         * select-x.c (hack_motif_clipboard_selection): Type correctness.
10308         (x_get_window_property): Type correctness.
10309         (receive_incremental_selection): unsigned char ==> Extbyte
10310         (selection_data_to_lisp_data): unsigned char ==> Extbyte
10311         (Fx_get_cutbuffer_internal): unsigned char ==> Extbyte
10312         (Fx_store_cutbuffer_internal): Type correctness.
10313
10314         * process-unix.c (try_to_initialize_subtty): Type correctness.
10315
10316         * objects-x.c (x_print_color_instance): Type correctness.
10317         (x_print_font_instance): Type correctness.
10318         (x_list_fonts): SExtbyte ==> Extbyte.
10319         (valid_x_font_name_p): SExtbyte ==> Extbyte.
10320         (x_find_charset_font): SExtbyte ==> Extbyte.
10321         Use TO_INTERNAL_FORMAT.  build_string ==> make_string.
10322         (truename_via_XListFonts): SExtbyte ==> Extbyte.
10323         (x_font_instance_properties): Use TO_INTERNAL_FORMAT.
10324         Use bufbyte_strcmp.
10325
10326         * mule-charset.h (LEADING_BYTE_PREFIX_P): unsigned char ==> Bufbyte
10327         (PRIVATE_LEADING_BYTE_PREFIX): Add paranoia cast.
10328         (BYTE_ASCII_P): Use bit ops for char-signedness safety.
10329         (BYTE_C0_P): Use bit ops for char-signedness safety.
10330         (BYTE_C1_P): Use bit ops for char-signedness safety.
10331         (CHARSET_BY_LEADING_BYTE):
10332         (CHARSET_BY_ATTRIBUTES):
10333         Always use inline function.
10334         Use type_checking_assert.
10335         Hide chlook.
10336
10337         * mule-charset.c (non_ascii_charptr_copy_char):
10338         Modify to work with both ASCII and non-ASCII characters.
10339         Improve docs and variable names.
10340         Replace over-clever fall-through switch with a simple loop.
10341         (Lstream_get_emchar_1):
10342         Replace over-clever fall-through switch with a simple loop.
10343
10344         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
10345         Warning suppression.
10346
10347         * lstream.h (Lstream_get_emchar): BYTE_ASCII_P cannot be used on
10348         the return value of Lstream_getc, which could be EOF as well.
10349
10350         * lstream.c (Lstream_raw_read): Now returns ssize_t, not int.
10351
10352         * lisp.h: Make Extbyte a char, not unsigned char, so that external
10353         APIs can be used on Extbytes without casts.  Risky!
10354         (SExtbyte): Remove.
10355         (UExtbyte): Remove.
10356
10357         * input-method-xlib.c (XIM_init_device):
10358         Use Xlib.h instead of IntrinsicP.h.
10359         Use HAVE_XREGISTERIMINSTANTIATECALLBACK instead of THIS_IS_X11R6,
10360         which will break in X11R7.
10361         Use XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE,
10362         to call XRegisterIMInstantiateCallback with correct types.
10363
10364         * gui-x.c (button_item_to_widget_value): Type correctness.
10365
10366         * glyphs.c (bitmap_to_lisp_data):  Type correctness.
10367
10368         * glyphs-x.c (pixmap_from_xbm_inline): Type correctness.
10369         (xbm_instantiate_1): Type correctness.
10370         (BUILD_GLYPH_INST):  Type correctness.
10371
10372         * fileio.c (Fsubstitute_in_file_name): Type correctness.
10373
10374         * file-coding.c:
10375         (decode_coding_sjis):
10376         (decode_coding_big5):
10377         (decode_coding_ucs4):
10378         (decode_coding_utf8):
10379         (decode_coding_iso2022):
10380         (decode_coding_no_conversion):
10381         Make all decoding functions take an Extbyte * arg.
10382         (encode_coding_sjis):
10383         (encode_coding_big5):
10384         (encode_coding_ucs4):
10385         (encode_coding_utf8):
10386         (encode_coding_iso2022):
10387         (encode_coding_no_conversion):
10388         Make all encoding functions take a Bufbyte * arg.
10389         Use size_t instead of unsigned int for memory sizes.
10390         Only cast to unsigned char whenever dereferencing Extbyte *.
10391
10392         * doc.c (unparesseuxify_doc_string): Type correctness.
10393
10394         * console-x.c (split_up_display_spec):
10395         Rewrite without using details of internal string representation.
10396         (x_semi_canonicalize_device_connection): Type correctness.
10397
10398         * config.h.in:
10399         (HAVE_XREGISTERIMINSTANTIATECALLBACK): New.
10400         (XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE): New.
10401         (HAVE_XFREE386): Removed.
10402
10403         * buffer.h (DEC_CHARPTR): `const' correctness.
10404         (bufbyte_strcmp): New.
10405         (bufbyte_memcmp): New.
10406
10407         * buffer.c (dfc_convert_to_internal_format): Extbyte ==> Bufbyte
10408
10409         * buffer.h (XCHAR_OR_CHAR_INT):
10410         Always use inline function.
10411         Remove redundant type checking assert() - XINT will abort quite nicely.
10412
10413 2000-10-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
10414
10415         * search.c (Freplace_match): Set newtext to an empty string.
10416
10417 2000-10-10  Martin Buchholz  <martin@xemacs.org>
10418
10419         * s/decosf1-3.h: Remove #include of stropts.h
10420         * s/ptx.h: Remove #include of stropts.h
10421         * s/usg5-4.h: Remove #include of stropts.h
10422         * sysproc.h:
10423         * config.h.in:
10424         Use stropts.h, not sys/stropts.h.
10425         Use strtio.h, not sys/strtio.h.
10426
10427 2000-10-04  Martin Buchholz <martin@xemacs.org>
10428
10429         * XEmacs 21.2.36 is released.
10430
10431 2000-09-21  Andy Piper  <andy@xemacs.org>
10432
10433         * glyphs-x.c (x_redisplay_widget): make sure non-structural
10434         changes still involve copying the widget tree.
10435         (update_widget_face): make sure a change is register in the widget
10436         tree. Call update_tab_widget_face appropriately.
10437         (update_tab_widget_face): ditto.
10438         (x_tab_control_redisplay): make sure non-structural changes still
10439         involve copying the widget tree.
10440
10441 2000-08-31   Daiki Ueno  <ueno@unixuser.org>
10442
10443         * lread.c (locate_file): Check the path element is non-nil.
10444
10445 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10446
10447         * lisp.h: Warning suppression for SCO compilers.
10448
10449         * redisplay-tty.c (reset_tty_modes): Fix crash.
10450         E.g. from xemacs running on X: (delete-device (make-device 'tty nil))
10451
10452 2000-09-27  Martin Buchholz  <martin@xemacs.org>
10453
10454         Big signal/process handling overhaul.  Bugs fixed:
10455         M-x shell, type `sleep 10000', M-x comint-interrupt-subjob and
10456         M-x comint-kill-subjob should work for both values nil and t of
10457         process-connection-type. It was broken on most platforms.
10458         Testing on Irix and Cygwin still needed.  Other plaforms tested.
10459         * sysdep.c: Move #include of stropts.h into sysproc.h.  Use pid_t.
10460         * process-unix.c: Signal/Process handling overhaul.
10461         (pty_name): make 64 bytes, as `expect' does, for paranoia.
10462         (allocate_pty): Use all available modern methods of allocating
10463         ptys, falling back to old style BSD allocation as a last resort.
10464         Use allegedly more secure Unix98 pty allocation by default.
10465         (allocate_pty_the_old_fashioned_way): New. the last resort.
10466         (unix_create_process): Push ptem, ldterm, ttcompat where
10467         available.  Autoconfiscate.
10468         (try_to_initialize_subtty): New.
10469         (unix_kill_child_process): Proper signal handling for ptys on most
10470         platforms, using special knowledge of AIX, BSD, etc...
10471         (unix_create_process): Always disconnect_controlling_terminal() for
10472         subprocesses, whether using ptys or not.
10473         * process.h: Remove old getpt-dependent PTY code.
10474         * process.c (Fprocess_send_signal): New, obvious generic function.
10475         (decode_signal): New.
10476         (Finterrupt_process):
10477         (Fkill_process):
10478         (Fquit_process):
10479         (Fstop_process):
10480         (Fcontinue_process):
10481         (Fsignal_process): Use decode_signal.
10482         (process_send_signal):
10483         Many docstring corrections.
10484         Allow any signal to be sent to a process object.
10485         * config.h.in: Add symbols for big signal/process overhaul.
10486         * syssignal.h (EMACS_KILLPG): Use HAVE_KILLPG. Use `pid', not `gid'.
10487         * sysproc.h: Include process-related headers, where available:
10488         sys/stropts.h sys/strtio.h pty.h libutil.h
10489         * s/irix4-0.h:
10490         * s/irix5-0.h:
10491         * s/cygwin32.h:
10492         * s/gnu.h:
10493         * s/linux.h:
10494         * s/hpux.h:
10495         * s/aix3-1.h:
10496         Remove old S&M pty stuff.
10497         * console-tty.c (tty_init_console): Use pid_t, not int, for pids.
10498         * systty.h: Simplify cpp hackery, improve comments.
10499         Favor BSD ioctl(TIOCGPGRP) over Posix tcgetpgrp().
10500
10501         * editfns.c (Fformat_time_string):
10502         Be a little more paranoid with the return value of ctime.
10503
10504         * fileio.c (check_executable):
10505         (check_writable):
10506         Use symbolic constants X_OK, W_OK.
10507
10508         * console-x.c (split_up_display_spec): Fix a warning.
10509
10510 2000-10-02  Martin Buchholz  <martin@xemacs.org>
10511
10512         * gui-x.c (add_accel_and_to_external): strlen ==> XSTRING_LENGTH
10513         * ntproc.c (sys_spawnve): make_string ==> build_string
10514         Small clarity improvements.
10515
10516 2000-09-30  Martin Buchholz  <martin@xemacs.org>
10517
10518         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY): Warning removal.
10519
10520         * s/windowsnt.h (HAVE_STRCASECMP): Remove.
10521
10522         * config.h.in (HAVE_STRCASECMP): Remove.
10523
10524 2000-09-29  Martin Buchholz  <martin@xemacs.org>
10525
10526         * redisplay-output.c (redisplay_output_pixmap):
10527         Cleaner and possibly more 64-bit correct code.
10528
10529 2000-09-28  Stephen J. Turnbull  <stephen@xemacs.org>
10530
10531         * dumper.c (pdump_load_finish): move restoration of
10532         `noninteractive1' to emacs.c (main_1).
10533         * emacs.c (main_1): protect LISP-visible command-line flags
10534         from pdump_load().
10535
10536 2000-09-26  Stephen J. Turnbull  <stephen@xemacs.org>
10537
10538         * Makefile.in.in (versionclean):  Use EXE_TARGET and
10539         DUMP_TARGET instead of literal program names.
10540
10541 2000-09-20  Martin Buchholz  <martin@xemacs.org>
10542
10543         * Makefile.in.in: Recent purify's require absolute paths for cache-dir.
10544
10545 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10546
10547         * *: Spelling mega-patch
10548
10549 2000-09-19  Martin Buchholz  <martin@xemacs.org>
10550
10551         * fns.c (bad_bad_turtle):
10552         Delete "Eek!" comment, since we fixed the bug to which it refers.
10553
10554 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10555
10556         * alloca.c: Replace REGISTER with register.
10557
10558 2000-09-16   Daiki Ueno  <ueno@unixuser.org>
10559
10560         * file-coding.c (ucs_to_char): Use countof.
10561
10562 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10563
10564         * file-coding.c: (ucs_to_char):
10565         (complex_vars_of_file_coding):
10566         Use countof instead of sizeof.
10567         Use CHECK_NATNUM instead of CHECK_INT.
10568
10569         * sysdep.c (strcasecmp): Remove.
10570         * device-x.c (ascii_strcasecmp): New.
10571         * device-x.c (Fx_get_resource): Use ascii_strcasecmp.
10572         Avoid using non-standard non-portable strcasecmp.
10573
10574 2000-09-16  Martin Buchholz  <martin@xemacs.org>
10575
10576         * Makefile.in.in (mostlyclean): remove reference to prefix-args.
10577         * font-lock.c: remove reference to emacsfns.h.
10578         * search.c: small doc improvement.
10579         * event-Xt.c: correct file names in comments.
10580         * console-x.h Correct file names in comments.
10581         * frame.c: Correct file names in comments.
10582         * event-stream.c: remove Energize from comments.
10583
10584 2000-09-15  Martin Buchholz  <martin@xemacs.org>
10585
10586         * symeval.h (DEFERROR_STANDARD):
10587         (DEFERROR):
10588         (DEFSYMBOL):
10589         (DEFSYMBOL_NO_DUMP):
10590         (DEFSYMBOL_MULTIWORD_PREDICATE):
10591         (DEFSYMBOL_MULTIWORD_PREDICATE_NO_DUMP):
10592         (DEFKEYWORD):
10593         The construct &##name is not sensible C.
10594         Fixes compilation errors with Unixware native compiler.
10595
10596 2000-09-14  Martin Buchholz  <martin@xemacs.org>
10597
10598         * frame.c (device_matches_console_spec): no longer takes a `frame' arg
10599         (next_frame_internal): Removed.  We now just have next_frame.
10600         (next_frame):
10601         Write a simpler and cleaner one-pass algorithm.
10602         Remove called_from_delete_device arg and #ifdefed-out code.
10603         (previous_frame):
10604         Renamed from prev_frame.  Update callers.
10605         Cleaned up to have an analogous implementation to next_frame.
10606         (other_visible_frames_internal): Remove the
10607         called_from_delete_device bogus arg, and hence, remove this
10608         function.  Just use other_visible_frames().
10609
10610         * window.c (Fnext_window):
10611         Prettify docstring.
10612         Since next_frame() is guaranteed to return a frame, remove check
10613         for nil inserted in previous patch.
10614         (Fprevious_window):
10615         Prettify docstring.
10616         Make code look more like Fnext_window.
10617         (window_loop):
10618         Respect the `console' arg when iterating through windows.
10619         Fixes bug: (get-buffer-window buffer t device) not respecting
10620         the `device' arg.
10621         This function needs more work, as others have pointed out.
10622
10623         * frame.h: Rename prev_frame to previous_frame.
10624         device_matches_console_spec no longer takes a `frame' arg.
10625
10626         * s/gnu.h:
10627         * s/linux.h:
10628         * s/hpux.h:
10629         Use EMACS_BLOCK_SIGNAL instead of sigblock.
10630         From "Golubev I. N." <gin@mo.msk.ru>.
10631
10632         * make-src-depend: Fix typo.
10633
10634 2000-09-13  Martin Buchholz  <martin@xemacs.org>
10635
10636         * window.c (Fnext_window):
10637         next_frame() might return nil, not a frame.
10638         Fixes this crash:
10639         (gdb) run -eval '(progn  (make-device (quote x) "polgar:0") (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10640
10641         * frame.c (next_frame_internal):
10642         We've passed a frame if we've passed its device.
10643         Fixes this crash:
10644         (gdb) run -eval '(progn (make-frame nil (make-device (quote x) "polgar:0")) (next-window (minibuffer-window) t (quote visible) (second (device-list))))'
10645 Fatal error: assertion failed, file /project/xemacs/ws/dev/src/frame.h, line 245, RECORD_TYPEP (obj, lrecord_type_frame)
10646
10647 2000-09-11  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10648
10649         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
10650         Allow option to suppress accelerators in menu/dialog items.
10651         (populate_or_checksum_helper): Pass dialog title through above.
10652
10653 2000-09-10  Jonathan Harris  <jhar@tardis.ed.ac.uk>
10654
10655         * event-msw.c (mswindows_key_to_emacs_keysym):
10656         Add "pause" key, fix "menu" key.
10657
10658 2000-09-09  Martin Buchholz  <martin@xemacs.org>
10659
10660         * eval.c (reinit_vars_of_eval):
10661         Increase max_lisp_eval_depth to 1000,
10662         required for thai-xtis.el to byte-compile under some circumstances.
10663
10664 2000-09-04  Martin Buchholz  <martin@xemacs.org>
10665
10666         * event-Xt.c (x_to_emacs_keysym): Increase size of `buffer' to 513.
10667         From Kenichi Handa.
10668
10669 2000-09-01  Martin Buchholz  <martin@xemacs.org>
10670
10671         * make-src-depend: Make the generated Makefiles smaller.
10672
10673         * s/hpux.h (SETUP_SLAVE_PTY):
10674         Provide a %d in the format string for the errno argument.
10675
10676         * editfns.c (Ftemp_directory):
10677         Warning fix.
10678         Avoid buffer overrun on very long file name.
10679
10680         * input-method-xlib.c (XIM_init_device):
10681         6th parameter of XRegisterIMInstantiateCallback has different
10682         pointer types on different OSes, so simply cast to (void *).
10683
10684         * unexhp9k800.c: Warning fixes.  Fiddly changes.
10685
10686         * sysdll.c (dll_open):
10687         shl_load will hang hard if passed a NULL filename.
10688         Simply return NULL for compatibility with dlopen.
10689         * sysdll.c: Conform to XEmacs coding standards.
10690
10691         * sysdep.c (get_pty_max_bytes):
10692         Support pty input lines longer than 512 bytes on HP-UX 10.20.
10693
10694 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10695
10696         * tooltalk.c: Add #include <syssignal.h>
10697
10698 2000-08-12  Alexandre Oliva  <aoliva@redhat.com>
10699
10700         * s/hpux.h: Don't use undefined function sigunblock().
10701
10702 2000-08-31  Martin Buchholz  <martin@xemacs.org>
10703
10704         * config.h.in: Add HAVE_BALLOON_HELP.
10705         * emacs.c: Use HAVE_BALLOON_HELP.
10706         * Makefile.in.in (x_objs):
10707         Make Balloon Help conditional on finding shape.h.
10708
10709 2000-08-23  Yoshiki Hayashi  <yoshiki@xemacs.org>
10710
10711         * syntax.c (regex_emacs_buffer_p): New variable.
10712         * syntax.h (regex_emacs_buffer_p): extern.
10713         * search.c (looking_at_1):
10714         (string_match_1):
10715         (fast_string_match):
10716         (search_buffer): Set regex_emacs_buffer_p.
10717         * regex.c (re_match_2_internal): Reference regex_emacs_buffer_p
10718         when before_dot, at_dot, after_dot.
10719
10720 2000-08-23  Andy Piper  <andy@xemacs.org>
10721
10722         * gui-x.c (popup_selection_callback): Only set action_occurred
10723         when we really have an image instance.
10724         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
10725
10726 2000-08-23  Andy Piper  <andy@xemacs.org>
10727
10728         * gui-msw.c (mswindows_handle_gui_wm_command): set
10729         action_occurred.
10730         * gui-x.c (popup_selection_callback): ditto.
10731
10732         * glyphs.h (IMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): new accessor.
10733         (XIMAGE_INSTANCE_WIDGET_ACTION_OCCURRED): ditto.
10734         (struct Lisp_Image_Instance): add action_occurred flag.
10735
10736         * glyphs.c (redisplay_subwindow): use action_occurred flag.
10737         (image_instance_changed): ditto.
10738         (reset_frame_subwindow_instance_cache): only unmap windows - do
10739         not remove them from the cache also.
10740
10741         * glyphs-widget.c (tab_control_update): better debug.
10742         (progress_gauge_update): ditto.
10743         (layout_update): ditto.
10744         (layout_instantiate): ditto.
10745         (tab_control_order_only_changed): cope with null pending items.
10746
10747         * glyphs-msw.c (mswindows_tab_control_redisplay): add better
10748         debug. Force selection of an item when an action occurred. Cope
10749         with null pending_items.
10750         (mswindows_progress_gauge_redisplay): better debug.
10751         * glyphs-x.c (x_tab_control_redisplay): ditto.
10752
10753         * redisplay.c (redisplay_frame): reset the frame cache if the
10754         frame is garbaged.
10755
10756         * window.c (Fset_window_configuration): potentially re-enable
10757         frame cache reset.
10758         (window_unmap_subwindows): need to finalize instances here since
10759         it is only used in mark_window_as_deleted.
10760
10761 2000-08-22  Stephen J. Turnbull  <stephen@xemacs.org>
10762
10763         * nas.c (SndOpenDataForReading):
10764         nas.c (WaveOpenDataForReading):
10765         nas.c (readChunk): {BIG,LITTLE}_ENDIAN -> NAS_{BIG,LITTLE}_ENDIAN.
10766         Somehow escaped from the 2000-08-14 patch.
10767
10768 2000-08-14  Stephen J. Turnbull  <stephen@xemacs.org>
10769
10770         * nas.c:  Preprocessor trickery to use NAS_LITTLE_ENDIAN instead
10771         of LITTLE_ENDIAN (conflicts with glibc, at least) in NAS <= 1.2p5.
10772
10773 2000-08-21  Andy Piper  <andy@xemacs.org>
10774
10775         * glyphs-x.c (x_map_subwindow): Minor optimization - only map the
10776         window if it is not already displayed.
10777
10778         * glyphs-msw.c (mswindows_map_subwindow): only map the window if
10779         it is not already displayed.
10780
10781         * window.c (Fset_window_configuration): don't reset the frame
10782         cache.
10783
10784         * glyphs.c (unmap_subwindow_instance_cache_mapper): only remove
10785         instances from the frame cache if we are actually finalizing them.
10786         (reset_frame_subwindow_instance_cache): reset frame cache only
10787         after unmapping everything.
10788         (map_subwindow): set displayed flag after mapping.
10789
10790 2000-08-21  Martin Buchholz  <martin@xemacs.org>
10791
10792         * data.c (indirect_function):
10793         Rename ERRORP to non-misleading VOID_FUNCTION_ERRORP.
10794
10795         * eval.c (function_argcount):
10796         Use original function when signaling errors.
10797
10798 2000-08-18  Andy Piper  <andy@xemacs.org>
10799
10800         * frame.c (delete_frame_internal): use new
10801         free_frame_subwindow_instances name.
10802
10803         * glyphs-msw.c (mswindows_tab_control_instantiate): verify index.
10804         (add_tab_item): make return type correct.
10805         (mswindows_tab_control_instantiate): assert index of tab.
10806         (mswindows_tab_control_redisplay): Re-code to use
10807         gui_item_equal_sans_selected and gui_item_list_find_selected.
10808
10809         * glyphs-widget.c (tab_control_update): Correct comment.
10810
10811         * window.c (window_unmap_subwindows): use new
10812         unmap_subwindow_instance_cache_mapper.
10813         (window_unmap_subwindows_cache_mapper): deleted.
10814         (Fset_window_configuration): comparisons should now be with
10815         EQ. Preserve the subwindow instance cache across configuration
10816         changes.
10817         (allocate_window): ditto.
10818         (make_dummy_parent): ditto.
10819
10820         * glyphs.c (free_frame_subwindow_instances): rename from
10821         free_frame_subwindow_instance_cache. finalize all instances rather
10822         than just those in the display cache.
10823         (finalize_all_subwindow_instances): walk windows unmapping and
10824         finalizing subwindows.
10825         (unmap_subwindow_instance_cache_mapper): moved from
10826         window.c. Allow finalization as well as unmapping.
10827
10828         * gui.c (gui_item_list_find_selected): new function.
10829
10830         * gui.h (gui_item_list_find_selected): declare.
10831
10832         * glyphs-x.c (x_tab_control_redisplay): pick tab
10833         explicitly. Re-code to use gui_item_equal_sans_selected and
10834         gui_item_list_find_selected.
10835
10836         * glyphs-x.h: add lwlib-utils.h
10837
10838         * buffer.c (Frecord_buffer): undo previous change.
10839
10840 2000-08-09  Vin Shelton  <acs@xemacs.org>
10841
10842         * config.h.in, s/gnu.h, s/hpux.h, s/linux.h: Use UNIX98 PTYs if
10843         possible.  Create temporary files more securely.  The patch was
10844         generated by Torsten Duwe <duwe@caldera.de>, Florian Weimer
10845         <Florian.Weimer@RUS.Uni-Stuttgart.DE> and Olaf Kirch.  See
10846         http://www.xemacs.org/list-archives/xemacs-patches/200007/msg00123.html
10847         for details.
10848
10849 2000-08-07  Ben Wing  <ben@xemacs.org>
10850
10851         * getloadavg.c: remove duplicate (and windows-breaking)
10852         includes of fcntl.h and sys/file.h.
10853
10854         * nt.c: remove duplicate getloadavg() definition.
10855
10856         * sysdll.h (Qdll_filename_encoding): add missing stand-in
10857         encodings.
10858
10859 2000-08-07  Gunnar Evermann  <ge204@eng.cam.ac.uk>
10860
10861         * eval.c (function_argcount): If function needs to be autoloaded
10862         actually use the loaded definition.
10863         GCPRO function.
10864
10865 2000-08-05  Ben Wing  <ben@xemacs.org>
10866
10867         * getloadavg.c: add prototype for getloadavg().  remove
10868         duplicate WIN32_NATIVE/CYGWIN code (already in the middle
10869         of the code).  remove duplicate header includes.
10870
10871         * s\cygwin32.h, s\mingw32.h: remove stray NO_ARG_ARRAY.
10872
10873         * s\cygwin32.h, s\mingw32.h, m\windowsnt.h:
10874         don't define LOAD_AVE_TYPE/LOAD_AVE_CVT because we have no
10875         useful load average.
10876
10877         * alloc.c (reinit_alloc_once_early): removed references to
10878         VIRT_ADDR_VARIES, malloc_sbrk_used/free, and data-bytes-used/free.
10879         the lisp vars are the only things referencing the malloc_sbrk_*
10880         vars, and they were already if 0'd out.  these vars only exist
10881         in the older malloc.c, which is basically unused, and they're
10882         only for informational purposes.
10883
10884         * m\*.h: removed useless VIRT_ADDR_VARIES.
10885
10886         * m\powerpc.h: removed stray NO_ARG_ARRAY.
10887
10888 2000-04-26  IKEYAMA Tomonori  <tomonori@suiyokai.org>
10889
10890         * redisplay-msw.c (mswindows_output_dibitmap): Set foreground
10891         color if the image is a mono pixmap.
10892
10893 2000-07-30  Ben Wing  <ben@xemacs.org>
10894
10895         * Makefile.in.in (release):
10896         Remove stray @.
10897
10898         * buffer.c (directory_is_current_directory):
10899         * dired-msw.c (mswindows_get_files):
10900         * dired.c:
10901         * dired.c (Fdirectory_files):
10902         * dired.c (file_name_completion_stat):
10903         * dired.c (Ffile_attributes):
10904         [[[[1]]]]: Rename stat() -> xemacs_stat() and eliminate nasty
10905         preprocessor tricks, to avoid problems on some machines
10906         (e.g. SCO).
10907
10908         * callproc.c (egetenv): GC docs.
10909
10910         * console-msw.h:
10911         * console-msw.h (struct mswindows_dialog_id):
10912         * lrecord.h (lrecord_type):
10913         New object for use with MSW dialogs.
10914
10915         * console.h (struct console_methods):
10916         New enable/disable frame methods, for proper modal dialogs.
10917
10918         * device-msw.c (msprinter_default_printer): Fix to follow
10919         proper Mule conventions.
10920
10921         * device-msw.c:
10922         * device-msw.c (signal_open_printer_error):
10923         * device-msw.c (msprinter_init_device):
10924         * device-msw.c (ensure_not_printing):
10925         * device-msw.c (plist_get_margin):
10926         * device-msw.c (Fmsprinter_select_settings):
10927         * device-msw.c (finalize_devmode):
10928         * device-msw.c (Fmsprinter_settings_despecialize):
10929         * device-msw.c (signal_enum_priner_error):
10930         * extents.c (decode_extent):
10931         * extents.c (decode_map_extents_flags):
10932         * extents.c (decode_extent_at_flag):
10933         * extents.c (Fextent_at):
10934         * extents.c (Fextents_at):
10935         * extents.c (symbol_to_glyph_layout):
10936         [[[[2]]]] Use structured errors.
10937
10938         * dialog-msw.c:
10939         * dialog-msw.c (mswindows_is_dialog_msg):
10940         * dialog-msw.c (mark_mswindows_dialog_id):
10941         * dialog-msw.c (dialog_proc):
10942         * dialog-msw.c (handle_question_dialog_box):
10943         * dialog-msw.c (syms_of_dialog_mswindows):
10944         Define new object to clean up marking; use it as a dialog identifier.
10945         Call new delete-dialog-box-hook.
10946
10947         * dialog-x.c (dbox_selection_callback):
10948         * dialog-x.c (dbox_descriptor_to_widget_value):
10949         * dialog-x.c (x_make_dialog_box_internal):
10950         Call new delete-dialog-box-hook.
10951         Return an id.
10952
10953         * dialog.c:
10954         * dialog.c (syms_of_dialog):
10955         * dialog.c (vars_of_dialog):
10956         Define new delete-dialog-box-hook, for use w/modal dialog boxes.
10957
10958         * eval.c:
10959         * eval.c (signal_call_debugger):
10960         when noninteractive, output stack traces on the console instead
10961         of in a (never-seen) buffer.
10962
10963         * eval.c (signal_type_error):
10964         * eval.c (invalid_argument_2):
10965         * lisp.h:
10966         new funs for use w/structured errors.
10967
10968         * event-Xt.c:
10969         * event-Xt.c (x_to_emacs_keysym):
10970         * event-Xt.c (describe_event):
10971         * event-Xt.c (emacs_Xt_event_handler):
10972         * event-Xt.c (vars_of_event_Xt):
10973         * event-msw.c:
10974         * event-msw.c (mswindows_wnd_proc):
10975         * event-msw.c (vars_of_event_mswindows):
10976         rename {x,mswindows}-debug-events to debug-{}-events for
10977         consistency with other debug-foo variables.
10978
10979         * event-stream.c:
10980         document next-event more clearly.
10981
10982         * fileio.c (Ffile_name_directory):
10983         * fileio.c (Ffile_name_nondirectory):
10984         * fileio.c (Funhandled_file_name_directory):
10985         * fileio.c (file_name_as_directory):
10986         * fileio.c (Ffile_name_as_directory):
10987         * fileio.c (directory_file_name):
10988         * fileio.c (Fdirectory_file_name):
10989         * fileio.c (Fmake_temp_name):
10990         * fileio.c (Ffile_truename):
10991         * fileio.c (Fsubstitute_in_file_name):
10992         * fileio.c (expand_and_dir_to_file):
10993         * fileio.c (barf_or_query_if_file_exists):
10994         * fileio.c (check_executable):
10995         * fileio.c (Ffile_exists_p):
10996         * fileio.c (Ffile_writable_p):
10997         * fileio.c (Ffile_directory_p):
10998         * fileio.c (Ffile_regular_p):
10999         * fileio.c (Ffile_modes):
11000         * fileio.c (Ffile_newer_than_file_p):
11001         * fileio.c (Fverify_visited_file_modtime):
11002         * fileio.c (Fset_visited_file_modtime):
11003         * fileio.c (auto_save_1):
11004         (1). (2).
11005         fix up gcpro's.
11006
11007         * frame-msw.c:
11008         * frame-msw.c (mswindows_init_frame_1):
11009         * frame-msw.c (mswindows_enable_frame):
11010         * frame-msw.c (error_frame_unsizable):
11011         * frame-msw.c (msprinter_init_frame_1):
11012         * frame-msw.c (msprinter_init_frame_3):
11013         * frame-msw.c (console_type_create_frame_mswindows):
11014         (2).
11015         implement new enable/disable frame methods.
11016
11017         * frame-x.c:
11018         * frame-x.c (x_enable_frame):
11019         * frame-x.c (console_type_create_frame_x):
11020         implement new enable/disable frame methods.
11021
11022         * frame.c:
11023         * frame.c (Fdisable_frame):
11024         * frame.c (syms_of_frame):
11025         * frame.h (struct frame):
11026         implement new enable/disable frame methods/functions.
11027
11028         * general-slots.h:
11029         add initial-focus.
11030
11031         * glyphs-msw.c (mswindows_widget_instantiate):
11032         comment that initial-focus should be implemented.
11033
11034         * glyphs-widget.c:
11035         * glyphs-widget.c (check_valid_instantiator):
11036         * glyphs-widget.c (check_valid_orientation):
11037         * glyphs-widget.c (check_valid_tab_orientation):
11038         * glyphs-widget.c (check_valid_justification):
11039         * glyphs-widget.c (check_valid_border):
11040         * glyphs-widget.c (check_valid_callback):
11041         * glyphs-widget.c (check_valid_int_or_function):
11042         * glyphs-widget.c (check_valid_string_or_vector):
11043         * glyphs-widget.c (check_valid_item_list_1):
11044         * glyphs-widget.c (widget_validate):
11045         * glyphs-widget.c (combo_box_validate):
11046         * glyphs-widget.c (widget_instantiate):
11047         * glyphs-widget.c (syms_of_glyphs_widget):
11048         * glyphs-widget.c (VALID_WIDGET_KEYWORDS):
11049         * glyphs-widget.c (image_instantiator_combo_box):
11050         * glyphs-widget.c (image_instantiator_scrollbar):
11051         * glyphs-widget.c (image_instantiator_tab_control):
11052         * glyphs-widget.c (VALID_LAYOUT_KEYWORDS):
11053         (2).
11054         support (unimplemented) keyword initial-focus.
11055         reindent long macros.
11056
11057         * glyphs-x.c (x_redisplay_widget):
11058         * glyphs-x.c (x_button_instantiate):
11059         * glyphs-x.c (x_button_redisplay):
11060         * glyphs-x.c (x_progress_gauge_instantiate):
11061         * glyphs-x.c (x_edit_field_instantiate):
11062         * glyphs-x.c (x_combo_box_instantiate):
11063         * glyphs-x.c (x_tab_control_instantiate):
11064         * glyphs-x.c (x_label_instantiate):
11065         * gui-x.c:
11066         * gui-x.c (button_item_to_widget_value):
11067         * gui-x.c (gui_items_to_widget_values_1):
11068         * gui-x.c (gui_item_children_to_widget_values):
11069         * gui-x.c (gui_items_to_widget_values):
11070         * gui-x.h:
11071         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11072         add new flag to gui-parsing routines to indicate whether
11073         accelerator specs should be supported.
11074
11075         * glyphs.c (syms_of_glyphs): use DEFSYMBOL.
11076
11077         * glyphs.h (struct Lisp_Image_Instance):
11078         * glyphs.h (IMAGE_INSTANCE_WANTS_INITIAL_FOCUS):
11079         add initial-focus flag.
11080
11081         * gui.c:
11082         * gui.c (syms_of_gui):
11083         * gui.c (vars_of_gui):
11084         clean up menu-no-selection-hook.
11085
11086         * gui.h:
11087         support delete-dialog-box-hook.
11088
11089         * lread.c (Fload_internal):
11090         * lread.c (locate_file_in_directory_mapper):
11091         (1).
11092
11093         * lrecord.h:
11094         * lrecord.h (struct toolbar_button):
11095         * lrecord.h (syms_of_toolbar):
11096         document how to create a new object.
11097
11098         * menubar-msw.c (mswindows_char_is_accelerator):
11099         may be called on frames w/o menus.
11100
11101         * menubar.c (vars_of_menubar):
11102         clean up :filter docs.
11103
11104         * nt.c (readdir):
11105         * ntproc.c:
11106         (1).
11107
11108         * process-nt.c:
11109         * process-nt.c (validate_signal_number):
11110         * process-nt.c (signal_cannot_launch):
11111         * process-nt.c (nt_create_process):
11112         * process-nt.c (nt_send_process):
11113         * process-nt.c (nt_kill_child_process):
11114         * process-nt.c (nt_open_network_stream):
11115         * process-nt.c (syms_of_process_nt):
11116         (2).
11117         delete quote-handling.  call new lisp code that does it better.
11118
11119         * process-unix.c (connect_to_file_descriptor):
11120         * process-unix.c (allocate_pty):
11121         * process-unix.c (unix_send_process):
11122         * process-unix.c (unix_kill_child_process):
11123         * process-unix.c (unix_open_network_stream):
11124         * process-unix.c (unix_open_multicast_group):
11125         (1). (2).
11126
11127         * process.c:
11128         * process.c (Fstart_process_internal):
11129         (2).  need to canonicalize process path even if absolute.
11130
11131         * select-msw.c (symbol_to_ms_cf):
11132         * select-msw.c (ms_cf_to_symbol):
11133         * select-msw.c (cf_is_autofreed):
11134         * select-msw.c (mswindows_destroy_selection):
11135         * select.c:
11136         * select.c (syms_of_select):
11137         * select.h:
11138         support dibv5, fix bugs. (from Mike Alexander)
11139
11140         * select.c (Fget_selection_internal):
11141         * select.c (select_convert_out):
11142
11143         * sysdep.c:
11144         * sysdep.c (xemacs_stat):
11145         renamed.
11146
11147         * sysdep.c (mkdir):
11148         * sysdep.c (rmdir):
11149         but keep original stat() here because we provide encapsulation
11150         around these funs.
11151
11152         * sysfile.h:
11153         * sysfile.h (fstat):
11154         remove stat garbage.
11155
11156         * syswindows.h:
11157         fix X/MSW conflict.
11158         don't include tchar.h.  it's inappropriate because it makes
11159         compile-time distinctions when we want runtime distinctions.
11160         (we provide our own tchar replacements)
11161
11162         * toolbar.c:
11163         use default object printer for toolbar-button.
11164
11165         * unexcw.c:
11166         make sure we don't encapsulate.
11167
11168         * window.c (vars_of_window):
11169         emphasize that temp-buffer-show-hook is obsolete.
11170
11171 2000-08-05  Martin Buchholz  <martin@xemacs.org>
11172
11173         * glyphs.c (image_instance_hash): HASH2 wants EMACS_INT args.
11174         (Fimage_instance_subwindow_id): make_int wants EMACS_INT arg.
11175
11176         * events.c (Fevent_timestamp_lessp):
11177         Not 64-bit clean.  Use EMACS_INT, not int.
11178
11179 2000-06-05  Andrew Begel <abegel@cs.berkeley.edu>
11180
11181         * lrecord.h (lrecord_types): Changed lrecord_type_count to an
11182         unsigned int and changed the last enum to
11183         lrecord_type_last_built_in_type.
11184         (lrecord_implementations_table): changed prototype to know how
11185         long the array is supposed to be.
11186         (lrecord_type_count): new unsigned int to keep track of the
11187         current number of lisp lrecord types.
11188         (DEFINE_EXTERNAL_LRECORD):
11189         (DECLARE_EXTERNAL_LRECORD): Added these two for external
11190         dynamic-modules to declare new lisp types. They are the same
11191         as the non-EXTERNAL forms, but declare an lrecord_type unsigned
11192         int for each new type, and increment lrecord_type_count by 1.
11193
11194         * alloc.c (lrecord_implementations_table): Changed to reference
11195         lrecord_type_last_built_in_type for the size of the array.
11196         Moved MODULE_DEFINABLE_TYPE_COUNT to lrecord.h.
11197
11198 2000-08-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
11199
11200         * glyphs.h (check_valid_item_list): Renamed from
11201         check_valid_item_list_1.
11202
11203 2000-08-01 Alastair J. Houghton <ajhoughton@lineone.net>
11204
11205         * select.c (Qselect_coerce): New.
11206         * select.c (Vselection_coercion_alist): New.
11207         * select.c (syms_of_select): Declare.
11208         * select.c (get-selection-internal): Use it.
11209         Use the new select-coerce functionality.
11210
11211         * select.c (select_coerce): New.
11212         * select.h (select_coerce): Declare.
11213         New function to coerce one type of data into another.
11214
11215 2000-08-03  Martin Buchholz  <martin@xemacs.org>
11216
11217         * callproc.c (Fcall_process_internal):
11218         (Fcall_process_internal):
11219         * process-unix.c (unix_create_process):
11220         Save and restore the value of errno, so that error messages are accurate.
11221
11222 2000-08-01  Martin Buchholz  <martin@xemacs.org>
11223
11224         * elhash.c (print_hash_table):
11225         Fix printing of hash tables to also use `key-and-value' instead of `t'.
11226         Prettify docstrings and indentation.
11227
11228 2000-07-31  Yoshiki Hayashi  <yoshiki@xemacs.org>
11229
11230         * window.c (Fwindow_pixel_edges): Subtract frame border and
11231         gutter size.
11232
11233 2000-07-31  Andy Piper  <andy@xemacs.org>
11234
11235         * buffer.c (Frecord_buffer): make absolutely sure that redisplay
11236         will acknowledge the change.
11237
11238         * glyphs.h: declare tab_control_order_only_changed.
11239
11240         * glyphs-x.c (x_tab_control_redisplay): use
11241         tab_control_order_only_changed.
11242
11243         * glyphs-widget.c (tab_control_order_only_changed): new function.
11244
11245         * glyphs-msw.c (mswindows_tab_control_redisplay): use
11246         tab_control_order_only_changed.
11247
11248         * gui.c (gui_item_equal_sans_selected): new function.
11249         (gui_item_equal): use it.
11250
11251         * glyphs-msw.c (mswindows_combo_box_instantiate): deprecate
11252         :properties in favor of :items..
11253
11254         * glyphs-widget.c (check_valid_item_list): rename from
11255         check_valid_item_list_1.
11256         (check_valid_item_list_1): renamed.
11257         (combo_box_validate): deprecate :properties in favor of :items.
11258         (widget_instantiate): ditto.
11259         (tab_control_update): ditto.
11260         (image_instantiator_combo_box): ditto.
11261         (image_instantiator_tree_view): ditto.
11262         (image_instantiator_tab_control): ditto.
11263         (layout_post_instantiate): remove dead code.
11264
11265         * print.c (debug_print_no_newline): only write to debugger if in
11266         WIN32_NATIVE.
11267
11268         * elhash.c (Fmake_hash_table): update doc string.
11269
11270         * event-msw.c (mswindows_wnd_proc): don't allow processing of
11271         messages whilst in GC. This at least stops XEmacs crashing but has
11272         the potential for wierd behaviour.
11273
11274 2000-07-31  Martin Buchholz  <martin@xemacs.org>
11275
11276         * config.h.in:
11277         Make existence of s&m files optional.
11278
11279         * s/bsd386.h: Remove HAVE_GETLOADAVG.
11280         * s/freebsd.h: Remove HAVE_GETLOADAVG.
11281         * s/gnu.h: Remove HAVE_GETLOADAVG.
11282         * s/netbsd.h: Remove HAVE_GETLOADAVG.
11283         * s/sol2.h: Remove HAVE_GETLOADAVG.
11284         * lisp.h: Remove getloadavg() declaration.
11285         * fns.c:
11286         Include <sys/loadavg.h> if available.
11287         Don't declare our own getloadavg() if HAVE_GETLOADAVG.
11288         * config.h.in:  Group together getloadavg()-related macros.
11289         Use only configure-time tests to detect getloadavg().
11290
11291 2000-07-30  Martin Buchholz  <martin@xemacs.org>
11292
11293         * Makefile.in.in (TransientEmacsShell.o): Fix race condition.
11294
11295 2000-07-25  Andy Piper  <andy@xemacs.org>
11296
11297         * syswindows.h: add tchar.h for native builds.
11298
11299         * frame.c (syms_of_frame): remove set-glyph-image.
11300
11301         * general-slots.h: add Qset_glyph_image.
11302
11303         * glyphs-widget.c (layout_update): add domain arg to
11304         set-glyph-image.
11305         (syms_of_glyphs_widget): remove set-glyph-image.
11306
11307 2000-07-23  Ben Wing  <ben@xemacs.org>
11308
11309         * dialog-msw.c (vars_of_dialog_mswindows): need to staticpro
11310         Vpopup_frame_list.
11311
11312 2000-07-22  Andy Piper  <andy@xemacs.org>
11313
11314         * symsinit.h: add syms_of_win32().
11315
11316         * gui-msw.c (syms_of_gui_mswindows): remove
11317         Fmswindows_shell_execute.
11318         (Fmswindows_shell_execute): moved to win32.c.
11319
11320         * emacs.c (main_1): add syms_of_win32 ().
11321
11322         * win32.c (init_potentially_nonexistent_functions): rewrite in
11323         compiler-friendly terms.
11324         (Fmswindows_shell_execute): move here from gui-msw.c.
11325         (syms_of_win32): new.
11326
11327         * device-msw.c (Fmswindows_printer_list): clean up args to
11328         EnumPrinters.
11329         Don't include tchar under cygwin or mingw.
11330         (msprinter_default_printer): make cygwin-friendly.
11331
11332 2000-07-21  Andy Piper  <andy@xemacs.org>
11333
11334         * glyphs-widget.c (image_instantiator_tree_view): use tab
11335         control's update function.
11336         (layout_property): new function. Retrieve items.
11337
11338         * glyphs-msw.c (mswindows_tree_view_redisplay): new
11339         function. Re-populate the tree view from the pending items.
11340
11341         * glyphs.c (instantiate_image_instantiator): Make sure the domain
11342         is designated the parent if the domain is an image instance. This
11343         is needed so that dirtiness can be cascade up the hierarchy and
11344         thus for layout children to be redisplayed correctly.
11345         (allocate_image_instance): rename glyph -> parent.
11346
11347         * redisplay.h: change redisplay_output_layout signature.
11348
11349         * redisplay-msw.c (mswindows_output_display_block): use domain
11350         arg.
11351
11352         * redisplay-x.c (x_output_display_block): use domain arg.
11353
11354 2000-07-10  Andy Piper  <andy@xemacs.org>
11355
11356         * window.c (Fset_window_configuration): add comment.
11357
11358         * redisplay-output.c (compare_runes):
11359         (redisplay_output_subwindow): redisplay rather than update subwindow.
11360         (redisplay_output_layout): ditto.
11361
11362         * redisplay-msw.c (mswindows_frame_output_end):
11363         (mswindows_frame_output_end): make defer window pos optional.
11364
11365         * lisp.h: add Flast.
11366
11367         * glyphs.h (struct image_instantiator_methods): add dest_mask top
11368         normalize method. Change update method to be for changed
11369         instantiators. Add redisplay method. Change signature of layout
11370         method.
11371         (struct Lisp_Image_Instance): add instantiator.
11372         (IMAGE_INSTANCE_INSTANTIATOR): new.
11373         (IMAGE_INSTANCE_SUBWINDOW_FACE): new.
11374         (XIMAGE_INSTANCE_INSTANTIATOR): new.
11375         (XIMAGE_INSTANCE_SUBWINDOW_FACE): new.
11376
11377         * glyphs.c:
11378         (find_instantiator_differences): new function.
11379         (Fset_instantiator_property): new convenience function.
11380         (check_image_instance_structure): strictly check for vector
11381         instantiators.
11382         (normalize_image_instantiator): make non-static.
11383         (instantiate_image_instantiator): pass on dest_mask and use new
11384         signatures for image_instance_layout and friends.
11385         (mark_image_instance): mark the instantiator. Mark the subwindow
11386         face not the widget face.
11387         (image_instance_equal): add instantiator.
11388         (image_instance_hash): ditto.
11389         (allocate_image_instance): ditto.
11390         (Fset_image_instance_property): removed.
11391         (Fimage_instance_file_name): ditto.
11392         (Fcolorize_image_instance): ditto.
11393         (image_instance_layout): add offsets to be set.
11394         (update_image_instance): new function. update an image instance
11395         from its changed instantiator.
11396         (inherit_normalize): add dest_mask.
11397         (xbm_normalize): ditto.
11398         (xface_normalize): ditto.
11399         (xpm_normalize): ditto.
11400         (text_update): set_property -> update.
11401         (image_instantiate): use the glyph identity as a hash key, not the
11402         instantiator.
11403         (glyph_width): use new image_instance_layout signature.
11404         (glyph_ascent): ditto.
11405         (glyph_descent): ditto.
11406         (glyph_height): ditto.
11407         (glyph_query_geometry): ressurrect.
11408         (glyph_layout): ditto.
11409         (redisplay_subwindow): update -> redisplay.
11410         (syms_of_glyphs): add Fset_instantiator_property.
11411         (image_instantiator_format_create): set_property -> update.
11412
11413         * glyphs-x.c:
11414         (autodetect_normalize): add dest_maks to signature.
11415         (x_redisplay_subwindow): update -> redisplay.
11416         (x_redisplay_widget): ditto.
11417         (x_button_redisplay): ditto.
11418         (x_progress_gauge_redisplay): ditto.
11419         (x_tab_control_redisplay): ditto. Rewrite to cope with changed
11420         stacking order.
11421         (console_type_create_glyphs_x): update -> redisplay.
11422         (image_instantiator_format_create_glyphs_x): ditto.
11423
11424         * glyphs-widget.c:
11425         (check_valid_instantiator): disallow glyphs in the instantiator,
11426         they must now be vectors.
11427         (check_valid_instantiator_list): ditto.
11428         (glyph_instantiator_to_glyph): use internal symbol rather than
11429         intern.
11430         (widget_update): renamed from widget_set_property. Call cascaded
11431         update methods.
11432         (redisplay_widget): renamed from update_widget.
11433         (widget_layout): image_instance_layout now takes position as well
11434         as size.
11435         (widget_normalize): ditto.
11436         (widget_instantiate): ditto.
11437         (tab_control_query_geometry) ditto.:
11438         (tab_control_update): renamed from tab_control_set_property.
11439         (progress_gauge_update): set_property -> update.
11440         (layout_normalize): rewrite so that child instantiators are
11441         normalized also.
11442         (layout_update): new function. Create glyphs from the normalized
11443         children and cope with any other layout keywords. We do not
11444         instantiate children here that will be take care of by
11445         redisplay_output_layout.
11446         (layout_instantiate): call layout_update and not much else.
11447         (layout_post_instantiate): not sure whether this is needed
11448         anymore.
11449         (layout_query_geometry): query glyph geometry rather than
11450         image_instance geometry.
11451         (layout_layout): set offsets from pass in parameters. Use glyph
11452         geometry and layout functions rather than image instance ones.
11453         (native_layout_layout): ditto.
11454         (syms_of_glyphs_widget): add make-glyph and set-glyph-image.
11455         (image_instantiator_widget): set_property -> update.
11456         (image_instantiator_buttons): ditto.
11457         (image_instantiator_progress_guage): ditto.
11458         (image_instantiator_tab_control): ditto.
11459         (VALID_LAYOUT_KEYWORDS): instantiators must now be vectors.
11460         (image_instantiator_layout): add update method.
11461
11462         * glyphs-msw.c (bmp_normalize):
11463         (mswindows_resource_normalize): add dest_mask so that it can be
11464         proprogated by layout_normalize.
11465         (begin_defer_window_pos): make optional because it may not be the
11466         right thing to do and it introduces differences with X.
11467         (mswindows_unmap_subwindow): ditto.
11468         (mswindows_map_subwindow): ditto.
11469         (mswindows_redisplay_subwindow): renamed from
11470         mswindows_update_subwindow.
11471         (mswindows_redisplay_widget): ditto.
11472         (mswindows_button_redisplay): renamed from
11473         mswindows_button_update. Update is now what the instantiation
11474         function does for a changed instantiator.
11475         (mswindows_progress_gauge_instantiate): set the progress value
11476         here if appropriate.
11477         (mswindows_tab_control_redisplay): cope with re-ordering of the
11478         members of the tab widget by simply selecting the new top
11479         widget. This makes things appear ok if you click on a tab.
11480         (mswindows_combo_box_instantiate): image_instance_layout now takes
11481         position as well as size.
11482         (mswindows_progress_gauge_redisplay): renamed from
11483         mswindows_progress_gauge_update.
11484         (console_type_create_glyphs_mswindows): fix update -> redisplay.
11485         (image_instantiator_format_create_glyphs_mswindows): ditto.
11486
11487         * glyphs-eimage.c (jpeg_normalize):
11488         (gif_normalize):
11489         (png_normalize):
11490         (tiff_normalize): add dest_mask so that it can be proprogated by
11491         layout_normalize.
11492
11493         * elhash.c:
11494         (print_hash_table):
11495         (hash_table_weakness_validate):
11496         (decode_hash_table_weakness):
11497         (Fhash_table_weakness):
11498         (Fhash_table_type):
11499         (syms_of_elhash): use Ben's naming scheme for hashtable types..
11500
11501         * console.h (struct console_methods): move update_* to
11502         redisplay_*.
11503
11504 2000-07-20  Ben Wing  <ben@xemacs.org>
11505
11506         * *.[ch] (XSETOBJ): remove unused middle argument.
11507         lisp-disunion.h: correct wrap_object() to one argument.
11508
11509 2000-07-15  Ben Wing  <ben@xemacs.org>
11510
11511         * s/cygwin32.h:
11512         * s/cygwin32.h (CYGWIN_CONV_PATH):
11513         Add missing logb prototype for v1.1.
11514         Use post-b20 names and alias to pre-b20 names when pre-b20.
11515
11516         * s/windowsnt.h: [5].
11517
11518 2000-07-15  Ben Wing  <ben@xemacs.org>
11519
11520         * Makefile.in.in (x_objs):
11521         * Makefile.in.in (sheap_objs):
11522         * Makefile.in.in (objs):
11523         added win32.o, cosmetic cleanups.
11524
11525         * alloc.c (Fmake_byte_code):
11526         [[[1]]]: Changes for new LIST_LOOP, EXTERNAL_LIST_LOOP,
11527         etc. macros which declare their own args now.
11528
11529         * alloc.c (syms_of_alloc):
11530         [[[2]]]: Use DEFSYMBOL, DEFKEYWORD, DEFERROR and friends.
11531
11532         * buffer.c:
11533         Moved buffer-dedicated-frame, set-buffer-dedicated-frame into lisp.
11534
11535         * buffer.c (Fget_file_buffer):
11536         Fixed GCPRO problem.
11537
11538         * buffer.c (get_truename_buffer):
11539         Fixed comment about GC checking.
11540
11541         * buffer.c (syms_of_buffer):
11542         Undeclared those dedicated frame funs.
11543         [2].
11544
11545         * buffer.h:
11546         Define convenience macros for internal/external conversions.
11547         [[[3]]]: Define codesys aliases Qcommand_argument_encoding
11548         and Qenvironment_variable_encoding for cleaner code.
11549
11550         * bufslots.h:
11551         Remove dedicated-frame; in lisp.
11552
11553         * bytecode.c (funcall_compiled_function):
11554         [1].
11555
11556         * bytecode.c (syms_of_bytecode):
11557         [2].
11558
11559         * console-msw.c:
11560         * console-msw.c (mswindows_show_console): Rewrote.
11561
11562         * console-msw.c (Fmswindows_debugging_output): New.
11563         Sends to OutputDebugString (special MSWin debugger interface).
11564
11565         * console-msw.c (Fmswindows_message_box):
11566         Fixed stupid bugs so it works when called from kill-emacs.
11567
11568         * console-msw.c (syms_of_console_mswindows):
11569         Declare Fmswindows_debugging_output.
11570
11571         * console-msw.h:
11572         New MSWin prototypes.
11573
11574         * console-msw.h (struct mswindows_frame):
11575         New entry last-click-mods for improved button-modifier support.
11576
11577         * console-msw.h (FRAME_MSWINDOWS_POPUP):
11578         New struct entry `popup' with corresponding accessor.
11579
11580         * console-x.c:
11581         * console-x.c (split_up_display_spec):
11582         * console-x.c (get_display_arg_connection):
11583         * console-x.c (x_semi_canonicalize_console_connection):
11584         * console-x.c (x_canonicalize_device_connection):
11585         [[[6]]]: Change char to more specific type.
11586         [[[8]]]: Make use of abstracting codesys aliases defined in [3], [4];
11587
11588         * console-x.c (x_semi_canonicalize_console_connection):
11589         * console-x.c (x_canonicalize_device_connection):
11590         [[[9]]]: Fix up error signalling to use new structured error system.
11591
11592         * console-x.h:
11593         [[[4]]]: Define codesys aliases:
11594         Qlwlib_encoding, Qx_atom_name_encoding, Qx_font_name_encoding,
11595         Qx_color_name_encoding, Qx_display_name_encoding.
11596
11597         * console.h (struct console_methods):
11598         New method make_dialog_box_internal supersedes older
11599         popup_dialog_box method.
11600
11601         * data.c:
11602         Define many new errors, part of new structured errors.
11603
11604         * data.c (init_errors_once_early):
11605         * data.c (syms_of_data):
11606         [2].
11607
11608         * device-msw.c (mswindows_init_device):
11609         [[[5]]]: Cleanup to support NT 3.51.
11610
11611         * device-msw.c (decode_devmode): Cleanup.
11612
11613         * device-msw.c (mswindows_handle_print_setup_dialog_box):
11614         * device-msw.c (mswindows_handle_print_dialog_box):
11615         * device-msw.c (mswindows_handle_page_setup_dialog_box):
11616         * device-msw.c (syms_of_device_mswindows):
11617         Delete the dialog box primitives recently introduced by Kirill and
11618         instead interface to general dialog box interface.
11619
11620         * device-x.c:
11621         * device-x.c (compute_x_app_name):
11622         * device-x.c (x_init_device):
11623         * device-x.c (Fx_valid_keysym_name_p):
11624         * device-x.c (Fx_set_font_path):
11625         [6].
11626         [7].
11627
11628         * device.h (wrap_device): New.
11629         First of its kind; meant to replace XSETDEVICE.
11630
11631         * dialog-msw.c: Many file-dialog symbols.
11632
11633         * dialog-msw.c (mswindows_register_popup_frame): New.
11634         * dialog-msw.c (mswindows_is_dialog_msg): New.
11635         For supporting kbd traversal in dialog boxes.
11636
11637         * dialog-msw.c (dialog_proc):
11638         Support hitting ESC in dialogs.
11639
11640         * dialog-msw.c (struct):
11641         Common dialog box errors.
11642
11643         * dialog-msw.c (handle_file_dialog_box): New.
11644         Add file dialog code.
11645
11646         * dialog-msw.c (handle_question_dialog_box):
11647         Redo existing code to support new question dialog syntax.
11648
11649         * dialog-msw.c (console_type_create_dialog_mswindows):
11650         We support new dialog console method.
11651
11652         * dialog-msw.c (syms_of_dialog_mswindows):
11653         * dialog-msw.c (vars_of_dialog_mswindows):
11654         New file dialog symbols, vars.
11655
11656         * dialog-x.c:
11657         * dialog-x.c (maybe_run_dbox_text_callback):
11658         * dialog-x.c (dbox_descriptor_to_widget_value):
11659         * dialog-x.c (x_make_dialog_box_internal):
11660         * dialog-x.c (console_type_create_dialog_x):
11661         Mule-ize entire file.
11662         Redo to support question dialog syntax.
11663         [6].
11664
11665         * dialog.c:
11666         * dialog.c (Fmake_dialog_box_internal):
11667         * dialog.c (syms_of_dialog):
11668         Kill old popup-dialog-box, replace with new primitive.
11669         Just call device method or signal error.
11670
11671         * eldap.c (Fldap_open):
11672         * eldap.c (Fldap_search_basic):
11673         * eldap.c (Fldap_add):
11674         * eldap.c (Fldap_modify):
11675         [1].
11676         [7].
11677
11678         * emacs.c:
11679         * emacs.c (make_arg_list_1):
11680         * emacs.c (make_arg_list):
11681         Mule-ize call to dll_init().
11682         [6].
11683         [8].
11684
11685         * emacs.c (make_argc_argv):
11686         * emacs.c (free_argc_argv):
11687         * emacs.c (init_cmdargs):
11688         * emacs.c (main_1):
11689         * emacs.c (Fkill_emacs):
11690         * emacs.c (Fdump_emacs):
11691         Update comments about what can be used in syms_* etc.
11692         Call init_win32() when necessary.
11693         Fix up MS Win dialog box in kill-buffer to actually work right.
11694         [7].
11695
11696         * eval.c:
11697         * eval.c (For):
11698         * eval.c (Fand):
11699         * eval.c (Fprogn):
11700         * eval.c (Fprog1):
11701         * eval.c (Fprog2):
11702         * eval.c (FletX):
11703         * eval.c (Flet):
11704         * eval.c (condition_case_3):
11705         * eval.c (Feval):
11706         * eval.c (function_argcount):
11707         * eval.c (funcall_lambda):
11708         [1].
11709
11710         * eval.c (type_error): New.
11711         * eval.c (maybe_type_error): New.
11712         * eval.c (continuable_type_error): New.
11713         * eval.c (maybe_continuable_type_error): New.
11714         * eval.c (type_error_with_frob): New.
11715         * eval.c (maybe_type_error_with_frob): New.
11716         * eval.c (continuable_type_error_with_frob): New.
11717         * eval.c (maybe_continuable_type_error_with_frob): New.
11718         New functions for use with structured errors.
11719
11720         * event-Xt.c:
11721         * event-Xt.c (x_event_to_emacs_event):
11722         Buttons are now modifiers too.
11723
11724         * event-Xt.c (emacs_Xt_current_event_timestamp):
11725         Implement new event method.
11726         * event-Xt.c (reinit_vars_of_event_Xt): Set it.
11727
11728         * event-msw.c:
11729         * event-msw.c (ntpipe_shove_writer): [5].
11730         * event-msw.c (mswindows_enqueue_mouse_button_event):
11731         * event-msw.c (mswindows_drain_windows_queue):
11732         * event-msw.c (mswindows_wnd_proc): [7].
11733         * event-msw.c (mswindows_current_layout_has_AltGr): [5].
11734         * event-msw.c (mswindows_modifier_state):
11735         Throughout: support new button modifiers.
11736
11737         * event-msw.c (emacs_mswindows_current_event_timestamp):
11738         Implement new event method.
11739         * event-msw.c (reinit_vars_of_event_mswindows): Set it.
11740
11741         * event-stream.c:
11742         * event-stream.c (event_stream_current_event_timestamp): New.
11743         * event-stream.c (maybe_kbd_translate): New functionality.
11744         * event-stream.c (vars_of_event_stream):
11745         Document new kbd-translate-table functionality.
11746
11747         * event-stream.c (Fcurrent_event_timestamp): New.
11748         New primitive for use in fabricated events.
11749         * event-stream.c (syms_of_event_stream): [2]. Declare new primitive.
11750
11751         * events-mod.h (XEMACS_MOD_BUTTON1): new button modifiers.
11752
11753         * events.c:
11754         * events.c (Fmake_event):
11755         * events.c (WRONG_EVENT_TYPE_FOR_PROPERTY):
11756         [1].
11757         [9].
11758
11759         * events.c (format_event_object): fix gcc warnings.
11760
11761         * events.c (Fevent_timestamp): Document new primitives.
11762
11763         * events.c (TIMESTAMP_HALFSPACE): New.
11764
11765         * events.c (Fevent_timestamp_lessp): New.  New primitive for
11766         comparing timestamps correctly (half-space algorithm).
11767
11768         * events.c (Fevent_modifier_bits): Doc fix.
11769
11770         * events.c (Fevent_modifiers): Major doc addition.
11771         * events.c (event_x_y_pixel_internal): Typo fix.
11772         * events.c (syms_of_events): Declare new primitives.
11773
11774         * events.h:
11775         Update long comment for button modifiers, timestamps.
11776
11777         * events.h (struct event_stream):
11778         New current_event_timestamp method.
11779
11780         * extents.c:
11781         * extents.c (extent_in_region_p):
11782         * extents.c (decode_extent):
11783         * extents.c (Fset_extent_parent):
11784         * extents.c (decode_map_extents_flags):
11785         Fix gcc warnings.
11786         [9].
11787
11788         * extents.c (struct extent_at_arg):
11789         * extents.c (decode_extent_at_flag):
11790         * extents.c (extent_at_mapper):
11791         * extents.c (extent_at_bytind):
11792         * extents.c (Fextent_at): Adapt to new lower-level interface. [9].
11793         * extents.c (Fextents_at): New primitive. [9].
11794         * extents.c (symbol_to_glyph_layout): [9].
11795         Support new primitive `extents-at'.
11796
11797
11798         * extents.c (get_text_property_bytind):
11799         extent_at_bytind has another arg.
11800         [9].
11801
11802         * extents.c (syms_of_extents): New primitive.
11803
11804         * file-coding.c (Fmake_coding_system): [1].
11805         * file-coding.c (subsidiary_coding_system): fix gcc warning
11806         * file-coding.c (syms_of_file_coding): [2].
11807
11808         * fileio.c (Fexpand_file_name):
11809         * fileio.c (Fsysnetunam):
11810         * fileio.c (Ffile_exists_p):
11811         * fileio.c (Ffile_executable_p):
11812         * fileio.c (Fverify_visited_file_modtime):
11813         Clean up GCPROing.
11814
11815         * fileio.c (syms_of_fileio): [2].
11816
11817         * filelock.c (lock_file_1):
11818         * filelock.c (current_lock_owner):
11819         * filelock.c (lock_if_free):
11820         * filelock.c (lock_file):
11821         * filelock.c (unlock_file):
11822         Clean up GCPROing.
11823
11824         * fns.c (concat): Fix gcc warning.
11825
11826         * fns.c (Fmember):
11827         * fns.c (Fold_member):
11828         * fns.c (Fmemq):
11829         * fns.c (Fold_memq):
11830         * fns.c (memq_no_quit):
11831         * fns.c (Fassoc):
11832         * fns.c (Fold_assoc):
11833         * fns.c (Fassq):
11834         * fns.c (Fold_assq):
11835         * fns.c (assq_no_quit):
11836         * fns.c (Frassoc):
11837         * fns.c (Fold_rassoc):
11838         * fns.c (Frassq):
11839         * fns.c (Fold_rassq):
11840         * fns.c (rassq_no_quit):
11841         * fns.c (Fdelete):
11842         * fns.c (Fold_delete):
11843         * fns.c (Fdelq):
11844         * fns.c (Fold_delq):
11845         * fns.c (delq_no_quit):
11846         * fns.c (Fremassoc):
11847         * fns.c (Fremassq):
11848         * fns.c (remassq_no_quit):
11849         * fns.c (Fremrassoc):
11850         * fns.c (Fremrassq):
11851         * fns.c (remrassq_no_quit):
11852         * fns.c (Freverse):
11853         * fns.c (mapcar1):
11854         [1].
11855
11856         * frame-msw.c (mswindows_init_frame_1):
11857         * frame-msw.c (mswindows_delete_frame):
11858         Register popups with dialog code so keyboard traversing works.
11859
11860         * frame-tty.c (tty_raise_frame_no_select): [1].
11861
11862         * frame-x.c:
11863         * frame-x.c (x_set_frame_text_value):
11864         * frame-x.c (x_set_frame_properties):
11865         * frame-x.c (x_create_widgets):
11866         [7].
11867
11868         * frame.c:
11869         * frame.c (Fmouse_pixel_position): Minor doc fixes.
11870
11871         * frame.h (wrap_frame): New.
11872         Macro like wrap_device.
11873
11874         * general.c:
11875         * general.c (SYMBOL):
11876         * general.c (syms_of_general):
11877         Major reorg.  This is now just a wrapper and symbols themselves
11878         are listed in general-slots.h.
11879
11880         * glyphs-eimage.c (tiff_instantiate): Need cast to fix warning.
11881         * glyphs-msw.c (mswindows_resource_instantiate): [5].
11882
11883         * glyphs-msw.c (mswindows_native_layout_instantiate):
11884         Add DS_CONTROL so keyboard traversal will work.
11885
11886         * glyphs-widget.c:
11887         * glyphs-widget.c (syms_of_glyphs_widget):
11888         Move some symbols to general-slots.h.
11889
11890         * glyphs-x.c:
11891         * glyphs-x.c (xbm_instantiate_1):
11892         * glyphs-x.c (x_xbm_instantiate):
11893         * glyphs-x.c (x_xface_instantiate):
11894         * glyphs-x.c (autodetect_instantiate):
11895         * glyphs-x.c (cursor_font_instantiate):
11896         * glyphs-x.c (x_update_widget):
11897         * glyphs-x.c (x_widget_instantiate):
11898         * glyphs.c (bitmap_to_lisp_data):
11899         * glyphs.c (pixmap_to_lisp_data):
11900         [7].
11901
11902         * glyphs.c (syms_of_glyphs):
11903         [2].
11904
11905         * gui-x.c:
11906         * gui-x.c (print_widget_value):
11907         * gui-x.c (menu_separator_style_and_to_external):
11908         * gui-x.c (add_accel_and_to_external):
11909         * gui-x.c (button_item_to_widget_value):
11910         * gui-x.c (gui_items_to_widget_values_1):
11911         * gui-x.c (gui_items_to_widget_values):
11912         * gui-x.c (syms_of_gui_x):
11913         * gui-x.c (vars_of_gui_x):
11914         Mule-ize entire file.  Move menu-no-selection-hook to gui.c.
11915         [9].
11916
11917         * gui-x.h:
11918         Muleize, prototype changes matching gui-x.c.
11919
11920         * gui.c:
11921         * gui.c (separator_string_p):
11922         * gui.c (gui_item_add_keyval_pair):
11923         * gui.c (make_gui_item_from_keywords_internal):
11924         * gui.c (signal_too_long_error):
11925         * gui.c (parse_gui_item_tree_item):
11926         * gui.c (syms_of_gui):
11927         * gui.c (vars_of_gui):
11928         * gui.h:
11929         menu-no-selection-hook moved here (used by MSWin).
11930         Move some symbols to general-slots.h.
11931         [6].
11932         [9].
11933
11934         * insdel.c (get_buffer_pos_char):
11935         * insdel.c (get_buffer_range_char):
11936         Add GC comments.
11937
11938         * keymap.c (keymap_lookup_directly):
11939         * keymap.c (keymap_store):
11940         * keymap.c (ensure_meta_prefix_char_keymapp):
11941         * keymap.c (describe_map):
11942         * keymap.h:
11943         Support new button modifiers.
11944
11945         * lisp-disunion.h (wrap_object):
11946         * lisp-disunion.h (XSETOBJ):
11947         Rename make_obj to wrap_object.
11948
11949         * lisp-union.h:
11950         * lisp-union.h (make_int):
11951         * lisp-union.h (make_char):
11952         Support wrap_object.
11953
11954         * lisp.h:
11955         * lisp.h (LIST_LOOP):
11956         * lisp.h (EXTERNAL_LIST_LOOP):
11957         * lisp.h (LIST_LOOP_2):
11958         * lisp.h (EXTERNAL_LIST_LOOP_1):
11959         * lisp.h (EXTERNAL_LIST_LOOP_2):
11960         * lisp.h (EXTERNAL_LIST_LOOP_3):
11961         * lisp.h (EXTERNAL_LIST_LOOP_4_NO_DECLARE):
11962         * lisp.h (PRIVATE_EXTERNAL_LIST_LOOP_6):
11963         * lisp.h (GET_EXTERNAL_LIST_LENGTH):
11964         * lisp.h (EXTERNAL_ALIST_LOOP_5):
11965         * lisp.h (EXTERNAL_ALIST_LOOP_6):
11966         * lisp.h (EXTERNAL_ALIST_LOOP_6_NO_DECLARE):
11967         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_5_NO_DECLARE):
11968         * lisp.h (EXTERNAL_PROPERTY_LIST_LOOP_7):
11969         * lisp.h (struct Lisp_Symbol):
11970         * lisp.h (maybe_continuable_error_with_frob):
11971         Fix up section comments.
11972         Add new types for char to indicate usage.
11973         Delete symbols auto-generated from general-slots.h.
11974         Add prototypes for structured error functions.
11975         Add long comments describing looping macros and change interface
11976         so that lvalues are automatically declared.
11977         Add NO_DECLARE macro in case callers want to declare lvalues
11978         themselves.
11979
11980         * lread.c (read_syntax_error):
11981         * lread.c (continuable_read_syntax_error):
11982         * lread.c (read_structure):
11983         * lread.c (sequence_reader):
11984         * lread.c (read_list_conser):
11985         * lread.c (read_compiled_function):
11986         Rename syntax_error and continuable_syntax_error to avoid clash
11987         with same-named structured error functions.
11988
11989         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
11990         * menubar-msw.c (populate_menu_add_item):
11991         * menubar-msw.c (populate_or_checksum_helper):
11992         [5].
11993         [9].
11994
11995         * menubar-x.c:
11996         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
11997         Mule-ize whole file.
11998
11999         * menubar.c (Fnormalize_menu_item_name): Add optimization.
12000
12001         * mule-charset.c (Fmake_charset):
12002         * mule-wnnfns.c (Fwnn_set_param):
12003         [1].
12004
12005         * ntproc.c (create_child):
12006         * ntproc.c (Fwin32_set_current_locale):
12007         Add comments portending doom.
12008
12009         * objects-msw.c:
12010         * objects-msw.c (old_font_enum_callback_2):
12011         * objects-msw.c (font_enum_callback_1):
12012         * objects-msw.c (mswindows_enumerate_fonts):
12013         [5].
12014
12015         * objects-x.c:
12016         * objects-x.c (allocate_nearest_color):
12017         * objects-x.c (x_parse_nearest_color):
12018         * objects-x.c (x_initialize_color_instance):
12019         * objects-x.c (x_print_color_instance):
12020         * objects-x.c (x_finalize_color_instance):
12021         * objects-x.c (x_valid_color_name_p):
12022         * objects-x.c (x_initialize_font_instance):
12023         * objects-x.c (x_print_font_instance):
12024         * objects-x.c (valid_x_font_name_p):
12025         * objects-x.c (truename_via_FONT_prop):
12026         * objects-x.c (truename_via_random_props):
12027         * objects-x.c (truename_via_XListFonts):
12028         * objects-x.c (x_font_truename):
12029         * objects-x.c (x_font_instance_truename):
12030         * objects-x.c (x_font_instance_properties):
12031         * objects-x.c (x_list_fonts):
12032         * objects-x.c (x_find_charset_font):
12033         Mule-ize entire file.
12034         [7].
12035
12036         * objects-x.h:
12037         Mule-verify.
12038
12039         * print.c:
12040         * print.c (std_handle_out_external):
12041         * print.c (debug_print_no_newline):
12042         * print.c (syms_of_print):
12043         Output to all debugger kinds in debug-print.
12044         Fix console-output code under MSWin to actually work.
12045
12046         * process-nt.c (send_signal):
12047         * process-nt.c (nt_create_process):
12048         Use newer Unicode macros.
12049
12050         * process-unix.c (unix_create_process):
12051         * process-unix.c (unix_canonicalize_host_name):
12052         * process-unix.c (unix_open_network_stream):
12053         [7].
12054
12055         * scrollbar-x.c:
12056         Mule-verify.
12057
12058         * search.c (syms_of_search):
12059         [2].
12060
12061         * select-msw.c (mswindows_destroy_selection):
12062         Use LIST_LOOP_2.
12063
12064         * select-x.c (symbol_to_x_atom):
12065         [7].
12066
12067         * select.c (syms_of_select):
12068         [2].
12069
12070         * sound.c (Fplay_sound_file):
12071         [7].
12072
12073         * specifier.c:
12074         * specifier.c (decode_specifier_type):
12075         * specifier.c (Fvalid_specifier_locale_type_p):
12076         * specifier.c (check_valid_locale_or_locale_type):
12077         * specifier.c (decode_locale):
12078         * specifier.c (decode_locale_type):
12079         * specifier.c (decode_locale_list):
12080         * specifier.c (check_valid_domain):
12081         * specifier.c (decode_specifier_tag_set):
12082         * specifier.c (Fcanonicalize_tag_set):
12083         * specifier.c (Fdefine_specifier_tag):
12084         * specifier.c (Fspecifier_tag_predicate):
12085         * specifier.c (check_valid_inst_list):
12086         * specifier.c (check_valid_spec_list):
12087         * specifier.c (decode_how_to_add_specification):
12088         * specifier.c (check_modifiable_specifier):
12089         * specifier.c (specifier_add_spec):
12090         * specifier.c (boolean_validate):
12091         * specifier.c (display_table_validate):
12092         [9].
12093
12094         * specifier.c (syms_of_specifier):
12095         Move some symbols to general-slots.h.
12096         [2].
12097
12098         * symbols.c:
12099         * symbols.c (Fmapatoms):
12100         * symbols.c (Fapropos_internal):
12101         Add GCPROs.
12102
12103         * symbols.c (set_default_buffer_slot_variable):
12104         * symbols.c (set_default_console_slot_variable):
12105         [1].
12106
12107         * symbols.c (defsymbol_massage_name_1):
12108         * symbols.c (defkeyword_massage_name):
12109         * symbols.c (deferror_1):
12110         * symbols.c (deferror):
12111         * symbols.c (deferror_massage_name_and_message):
12112         * symeval.h:
12113         * symeval.h (DEFSYMBOL):
12114         Support DEFSYMBOL*, DEFKEYWORD, DEFERROR
12115
12116         * symbols.c (syms_of_symbols):
12117         [2].
12118
12119         * symsinit.h:
12120         * symsinit.h (init_win32): New.
12121         Also new is syms_of_dialog_mswindows.
12122
12123         * syswindows.h:
12124         Add new Unicode macros, missing Cygwin wide-char functions,
12125         convenience conversion macros for Qmswindows_tstr, macros for
12126         encapsulating required MSWin <-> Cygwin filename conversions,
12127         prototype for dynamically-extracted (not in NT 3.51) functions.
12128
12129         * toolbar-x.c:
12130         Mule-verify.
12131
12132         * tooltalk.c (Fadd_tooltalk_message_arg):
12133         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
12134         * tooltalk.c (Fadd_tooltalk_pattern_arg):
12135         [7].
12136
12137         * tooltalk.c (syms_of_tooltalk):
12138         [2].
12139
12140         * unexnt.c:
12141         * unexnt.c (unexec):
12142         Fix up headers, declaration of unexec() to be more standard.
12143
12144 2000-07-20  Martin Buchholz  <martin@xemacs.org>
12145
12146         * offix.h: Revert change to guard macros - they're used in offix.c!
12147
12148 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12149
12150         * lisp.h: Defsubred Fdelete.
12151
12152         * console-msw.h:  (msprinter_default_printer): Added.
12153
12154         * console-msw.c (msprinter_canonicalize_console_connection):
12155         (msprinter_canonicalize_device_connection): Added.
12156
12157         * device-msw.c (msprinter_default_printer):
12158         (Fmswingows_get_default_printer):
12159         (signal_enum_priner_error):
12160         (Fmswingows_printer_list): Added.
12161
12162 2000-07-19  Martin Buchholz <martin@xemacs.org>
12163
12164         * XEmacs 21.2.35 is released.
12165
12166 2000-07-19  Martin Buchholz  <martin@xemacs.org>
12167
12168         * select-x.c (x_handle_selection_request):
12169         Text selected in xemacs and pasted into xterm failed to appear.
12170         Spelling fixes and cosmetic changes.
12171
12172 2000-07-18  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12173
12174         * event-msw.c (mswindows_drain_windows_queue): Correctly check for
12175         XEmacs frame (fix for doubling chars in dialog boxes).
12176
12177 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12178
12179         * select.c (select_convert_in, select_convert_out):
12180         Don't call intern() every time.
12181
12182         * select.c (Qselect_convert_in, Qselect_convert_out): New.
12183         * select.c (vars_of_select): Initialise them.
12184
12185 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12186
12187         * select.c (selection-coercible-types): New.
12188
12189         * select.c (own-selection-internal):
12190         * select.c (get-selection-internal):
12191         MULE bug fix - these should default to COMPOUND_TEXT and not
12192         STRING for MULE. I think.
12193
12194         * select.c (select_convert_out): Use selection-coercible-types
12195         to find types that we can attempt to perform coercions on.
12196
12197 2000-07-18  Martin Buchholz  <martin@xemacs.org>
12198
12199         * mule-wnnfns.c:
12200         * mule-canna.c:
12201         Add coding: cookie to identify encoding.
12202
12203         * mule-canna.c (CANNA_mode_keys): make static.
12204         Use proper prototypes, even for functions of no arguments.
12205         Remove external prototype for Fding().
12206
12207         * symsinit.h: Add missing prototype for reinit_vars_of_mule_wnn.
12208
12209         * select.c (syms_of_select): Add missing DEFSUBR.
12210
12211 2000-07-18 Alastair J. Houghton <ajhoughton@lineone.net>
12212
12213         * select.c (get_selection_internal, own_selection_internal):
12214         Make the type default to STRING, rather than placing a nil type
12215         into Vselection_alist.
12216
12217 2000-07-17 Alastair J. Houghton <ajhoughton@lineone.net>
12218
12219         * gpmevent.c (tty_selection_exists_p):
12220         * gpmevent.c (tty_own_selection):
12221         Updated parameter lists.
12222
12223 2000-07-15 Alastair J. Houghton <ajhoughton@lineone.net>
12224
12225         * select.h (selection-alist): Removed declaration.
12226
12227         * select.h (get_local_selection):
12228         * select.c (get_local_selection):
12229         Made static.
12230
12231         * select.h (convert_selection): Removed declaration.
12232         * select.c (convert_selection): Removed.
12233         This function belongs in Lisp.
12234
12235         * select.h (select_convert_in): Declare.
12236         * select.h (select_convert_out): Declare.
12237         * select.c (select_convert_in): New.
12238         * select.c (select_convert_out): New.
12239         New conversion functions for other files to call.
12240
12241         * select.h (select_notify_buffer_kill): Declare.
12242         * select.c (select_notify_buffer_kill): New.
12243         New functions that get called from kill-buffer.
12244
12245         * buffer.c (kill-buffer): Call select_notify_buffer_kill, rather than
12246         X-specific lisp code.
12247
12248         * select.h: Declare some of the lisp-visible functions for
12249         external use.
12250
12251         * select.c (clean_local_selection_data): Removed. This was
12252         a disgusting function, and previously should have been in
12253         select-x.c in any case. The functionality is now provided
12254         in select-convert-from-integer (select.el).
12255
12256         * select.c (available-selection-types): Fixed stupidity where
12257         INTEGER and ATOM got added twice. Also add STRING when we see an
12258         extent.
12259
12260         * select.c (get-selection-internal): Removed symbol stripping. No
12261         longer causes conversion when data comes from the internal cache.
12262
12263         * select.c (syms_of_select): Added new functions.
12264
12265         * select-x.c (motif_clipboard_cb): Use select_convert_out. Rewrote
12266         error checking - previously this called abort!
12267
12268         * select-x.c (x_own_selection): Changed comment.
12269
12270         * select-x.c (x_handle_selection_request): Use select_convert_out.
12271         Don't mess with selection-alist; it's an internal variable of select.c.
12272
12273         * select-x.c (x_get_foreign_selection): Use select_convert_in.
12274
12275         * select-x.c (x_handle_selection_clear): Use get-selection-timestamp,
12276         rather than messing with selection-alist.
12277
12278         * select-msw.c (mswindows_get_foreign_selection):
12279         Use TO_INTERNAL_FORMAT rather than hacking.
12280
12281 2000-07-14  Martin Buchholz  <martin@xemacs.org>
12282
12283         * process-unix.c (unix_open_multicast_group):
12284         (unix_open_multicast_group): Remove useless casts.
12285
12286 2000-07-13  Martin Buchholz  <martin@xemacs.org>
12287
12288         * sound.c (Fplay_sound): Fix `unused variable' warning.
12289
12290         * emacs.c (main): Use correct type for _environ on SCO5.
12291
12292 2000-07-12 Alastair J. Houghton <ajhoughton@lineone.net>
12293
12294         * console.h (own_selection_method):
12295         * console.h (selection_exists_p_method):
12296         * console.h (available_selection_types_method): New.
12297         * console.h (register_selection_data_type_method): New.
12298         * console.h (selection_data_type_name): New.
12299
12300         * console-msw.h (mswindows_destroy_selection): Declare it.  New
12301         function & alist to track GlobalAlloc()'d handles that need
12302         releasing when the clipboard data gets replaced or emptied.
12303
12304         * event-msw.c (mswindows_wnd_proc): Call it.
12305
12306         * lisp.h, general.c (Qappend): New symbol representing a
12307         `how-to-add' mode.
12308
12309         * select.c (own-selection-internal):
12310         * select.c (selection-exists-p):
12311         * select.c (available-selection-types): New.
12312         * select.c (register-selection-data-type): New.
12313         * select.c (selection-data-type-name): New.  New functions to deal
12314         with device-specific selection data formats.
12315         * select.c (selection-converter-out-alist): Renamed.
12316         * select.c (selection-converter-in-alist): New.
12317         * select.c (selection-appender-alist): New.  Added new alists.
12318         * select.c (syms_of_select, vars_of_select): Added new symbols &
12319         variables.
12320         * select.c (get_local_selection): Split.
12321         * select.c: Removed spurious type checking - selections may now be
12322         of any type, not just strings.
12323         * select.c (own-selection-internal):
12324
12325         * select.h, select.c (convert_selection): New. Created
12326         convert_selection() function based on get_local_selection().
12327         * select.h, select.c (QCF_*): New symbols representing mswindows
12328         clipboard formats.
12329         * select.h, select.c (Qreplace_all, Qreplace_existing): New
12330         symbols representing `how-to-add' modes.
12331
12332         * select-msw.c (x_sym_p): New.
12333         * select-msw.c (symbol_to_ms_cf): New.
12334         * select-msw.c (ms_cf_to_symbol): New. New functions to deal with
12335         symbols & clipboard formats. Can also handle string names.
12336         * select-msw.c (mswindows_own_selection):
12337         * select-msw.c (mswindows_selection_exists_p):
12338         Added `data-type' parameter. Use it.
12339         * select-msw.c (mswindows_available_selection_types): New.
12340         * select-msw.c (mswindows_register_selection_data_type): New.
12341         * select-msw.c (mswindows_selection_data_type_name): New.
12342         * select-msw.c (mswindows_own_selection):
12343         * select-msw.c (mswindows_get_foreign_selection):
12344         * select-msw.c (mswindows_selection_exists_p):  Rewrote.
12345         * select-msw.c (console_create_select_mswindows): Added new methods.
12346         * select-msw.c (mswindows_destroy_selection): New.
12347         * select-msw.c (Vhandle_alist): New list.
12348         * select-msw.c (mswindows_own_selection):
12349
12350         * select-x.c (x_own_selection):
12351         * select-x.c (x_selection_exists_p):
12352         * select-x.c: Added some comments about maybe using new
12353         functionality.
12354         * select-x.c (x_own_selection):
12355
12356         * specifier.c: Remove definition of Qappend (now in general.c)
12357         * specifier.c (syms_of_specifier): Remove Qappend.
12358
12359 2000-07-12  Martin Buchholz  <martin@xemacs.org>
12360
12361         * config.h.in: Add socklen_t.
12362
12363         * s/decosf4-0.h: No special compiler flags needed or desired.
12364         In particular, undefine _BSD for DEC OSF 4.0.
12365
12366 2000-07-07  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12367
12368         * redisplay-msw.c (msprinter_frame_output_end): Added.
12369         (console_type_create_redisplay_mswindows): Referred the above.
12370
12371         * frame.c (setup_frame_without_minibuffer): Do not create a
12372         default minibuffer frame on a printer device.
12373
12374         * frame-msw.c (apply_dc_geometry): Added.
12375         (msprinter_start_page):
12376         (msprinter_init_frame_3):
12377         (msprinter_eject_page): Use it.
12378
12379         * console-msw.h (struct msprinter_frame): Added pix_left and top,
12380         and removed residual duplex and orientation properties.
12381
12382 2000-07-11  Martin Buchholz  <martin@xemacs.org>
12383
12384         * eval.c (function_argcount): Work around a DEC CC compiler bug.
12385
12386         * unexalpha.c: Remove system prototypes from C sources!
12387
12388 2000-07-09  Adrian Aichner  <aichner@ecf.teradyne.com>
12389
12390         * eval.c: Remove references to M-x edit-options in DEFUNs for
12391         `defvar' and `defconst'.
12392
12393 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12394
12395         * config.h.in: Remove SMART_INCLUDE hackery.
12396
12397         PostgreSQL hacking:
12398         * config.h.in: Don't use SMART_INCLUDE.
12399
12400         * postgresql.h: Include libpq-fe.h here.  Fix typo.
12401         * inline.c: Simply #include "postgresql.h"
12402         * postgresql.c:
12403         - Don't use SMART_INCLUDE
12404         - Use simply "const".
12405         - Use standard doc string conventions.
12406         - Use correct type for result of PQstatus.
12407
12408 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12409
12410         * glyphs-x.c (x_xface_instantiate): Fix C++ compilation warnings.
12411
12412         C++ compilation changes.
12413         * config.h.in (EXTERN_C): Define.
12414         * config.h.in (not): This is also a C++ keyword.
12415         * unexalpha.c (DEFAULT_ENTRY_ADDRESS): Enable C++ compilation.
12416         * cm.c: Use EXTERN_C.
12417         * redisplay-tty.c: Use EXTERN_C.
12418         * sysdep.c: Use EXTERN_C.  Remove Gould support.
12419
12420 2000-07-09  Martin Buchholz  <martin@xemacs.org>
12421
12422         * general.c: Remove duplicate definition for Qfunction.
12423
12424 2000-07-08  Ben Wing  <ben@xemacs.org>
12425
12426         * device-msw.c (msprinter_init_device):
12427         * device-msw.c (sync_printer_with_devmode):
12428         * device-msw.c (handle_devmode_changes):
12429         * device-msw.c (print_dialog_worker):
12430         * device-msw.c (Fmsprinter_apply_settings):
12431         * device-msw.c (hash_devmode):
12432         * device-msw.c (Fmsprinter_settings_despecialize):
12433         use Qmswindows_tstr, not Qctext.
12434
12435         * vm-limit.c (check_memory_limits):
12436         avoid infinite loop printing warning messages.
12437
12438 2000-07-05  Craig Lanning  <lanning@scra.org>
12439
12440         * Makefile.in.in: Add support for including the Windows resources
12441         when building with the cygwin and mingw targets.
12442
12443         * buffer.c: from Dan Holmsand, on Windows $PWD is most likely either
12444         not set or not correct.
12445         (directory_is_current_directory): Don't compile for WIN32_NATIVE.
12446         (init_initial_directory): Don't try to use $PWD on the
12447         WIN32_NATIVE target.
12448
12449         * s\cygwin32.h:
12450         [[Add -mwindows to eliminate console window.]] not required --ben
12451         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12452         (MAIL_USE_POP): removed; now handled by configure.
12453
12454         * s\mingw32.h: [[Add -mwindows to eliminate console window.]] not in
12455         C_SWITCH_SYSTEM or it will affect lib-src progs. --ben
12456         (HAVE_NATIVE_SOUND): removed; now handled by configure.
12457         (MAIL_USE_POP): removed; now handled by configure.
12458         (ENCAPSULATE_STAT): from Dan Holmsand, added.
12459         (ENCAPSULATE_FSTAT): from Dan Holmsand, added.
12460         (DIRECTORY_SEP): from Dan Holmsand, use lisp variable instead of
12461         constant string.
12462         (HAVE_TIMEVAL): from Dan Holmsand, added; struct timeval is picked
12463         up from <winsock.h> via systime.h.
12464         (HAVE_GETPAGESIZE): from Dan Holmsand, added.
12465         (getpagesize): from Dan Holmsand, added.
12466         Added #endif which was left dangling by Ben's mega patch; added
12467         comment to help prevent this in the future.
12468
12469         * sysdll.c: added #include <windows.h> for WIN32_NATIVE case.
12470
12471 2000-07-05  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
12472
12473         * console-msw.h (struct mswindows_device): Removed unnecessary
12474         cached device geometry values.
12475         Added update_tick and an accessor macro.
12476         (Lisp_Devmode): Added lrecord declaration.
12477         (struct msprinter_device): Contain devmode as a Lisp object.
12478         Added mswindows_get_selected_frame_hwnd();
12479
12480         * console.h (struct console_methods): Indentation nitpicking.
12481
12482         * device-msw.c (mswindows_init_device): Do not initialize geometry
12483         cache. Initialize update tick.
12484         (mswindows_device_system_metrics): Ask the device for its geometry.
12485         (global_free_2_maybe):
12486         (devmode_to_hglobal):
12487         (handle_printer_changes):
12488         (ensure_not_printing):
12489         (print_dialog_worker):
12490         (Fmsprinter_print_setup_dialog):
12491         (Fmsprinter_print_dialog):
12492         (plist_get_margin):
12493         (plist_set_margin):
12494         (Fmsprinter_page_setup_dialog): Added functions.
12495         (sync_printer_with_devmode):
12496         (handle_devmode_changes):
12497         (Fmsprinter_get_settings):
12498         (Fmsprinter_select_settings):
12499         (Fmsprinter_apply_settings):
12500         (allocate_devmode):
12501         (Fmsprinter_settings_copy):
12502         (Fmsprinter_settings_despecialize):
12503         (print_devmode):
12504         (finalize_devmode):
12505         (equal_devmode):
12506         (hash_devmode): Added functions
12507         (syms_of_device_mswindows): Init devmode lrecord class.
12508
12509         * device.h: Added an exfun for find-device.
12510
12511         * event-msw.c (mswindows_wnd_proc): Do not update the cached
12512         geometry; although, recreate the device compatible DC.
12513
12514         * frame-msw.c (mswindows_get_selected_frame_hwnd): Added.
12515         (msprinter_init_frame_3):
12516         (msprinter_frame_property):
12517         (msprinter_internal_frame_property_p):
12518         (msprinter_frame_properties):
12519         (msprinter_set_frame_properties): Removed 'orientation and 'duplex
12520         print job properties (will move to device settings).
12521
12522         * lisp.h: Added symbols.
12523
12524         * general.c (syms_of_general): Declared them.
12525
12526         * hash.c (string_hash): Added.
12527
12528         * lrecord.h (lrecord_type): Added devmode lrecord type.
12529
12530 2000-07-02  Mike Sperber <mike@xemacs.org>
12531
12532         * s/freebsd.h (INTERRUPTIBLE_OPEN): open *is* interruptible on
12533         FreeBSD 4.0.
12534
12535 2000-06-07  MORIOKA Tomohiko  <tomo@etl.go.jp>
12536
12537         * doprnt.c (emacs_doprnt_1): Fix problem with %0XXd for a negative
12538         integer.
12539
12540 2000-06-07  MORIOKA Tomohiko  <tomo@urania.m17n.org>
12541
12542         * data.c (Fstring_to_number): Don't recognize floating point if
12543         base is not 10.
12544
12545 2000-06-22  Martin Buchholz  <martin@xemacs.org>
12546
12547         * glyphs-widget.c (tab_control_query_geometry):
12548         (widget_query_geometry):
12549         (button_query_geometry):
12550         * glyphs.c (text_query_geometry):
12551         Enforce type correctness.
12552
12553 2000-06-18  Martin Buchholz  <martin@xemacs.org>
12554
12555         * s/decosf4-0.h (_etext): Use portable _etext instead of etext.
12556         * s/decosf4-0.h (_edata): Use portable _edata instead of edata.
12557
12558 2000-06-17  Martin Buchholz  <martin@xemacs.org>
12559
12560         * s/decosf4-0.h: Never #include "/usr/include/FOO.h" because this
12561         conflicts with gcc's fixincluded version of FOO.h.
12562
12563         * glyphs.h (image_instance_geometry): Remove trailing `,'
12564
12565 2000-06-08  Mike Alexander  <mta@arbortext.com>
12566
12567         (MAX_SHOVE_BUFFER_SIZE): Change to 512 to match stream buffer size
12568         (shove_thread): Don't write the same output twice
12569         (make_ntpipe_output_stream): Increase priority of shove thread
12570         (ntpipe_shove_writer): Call SwitchToThread to give shove thread a
12571         chance to run
12572         (ntpipe_shove_closer): Don't delete the pipe until we're done with
12573         it.
12574
12575 2000-06-12  Ben Wing  <ben@xemacs.org>
12576
12577         * s\mingw32.h (sigset):
12578         * s\windowsnt.h (sigset):
12579         rename msw_ to mswindows_ for consistency with general convention.
12580
12581 2000-06-12  Ben Wing  <ben@xemacs.org>
12582
12583         * console-msw.c:
12584         * console-msw.c (mswindows_get_console_hwnd):
12585         * console-msw.c (mswindows_ensure_console_allocated):
12586         * console-msw.c (mswindows_hide_console):
12587         * console-msw.c (mswindows_show_console):
12588         * console-msw.c (mswindows_ensure_console_buffered):
12589         * console-msw.c (mswindows_output_console_string):
12590         * console-msw.c (mswindows_windows9x_p):
12591         * console-msw.h:
12592         * device-msw.c (mswindows_get_workspace_coords):
12593         * device-msw.c (mswindows_device_system_metrics):
12594         * dialog-msw.c (mswindows_popup_dialog_box):
12595         * event-msw.c (mswindows_wnd_proc):
12596         * frame-msw.c (mswindows_size_frame_internal):
12597         * menubar-msw.c (mswindows_translate_menu_or_dialog_item):
12598         * menubar-msw.c (displayable_menu_item):
12599         * menubar-msw.c (mswindows_char_is_accelerator):
12600         * nt.c:
12601         * nt.c (mswindows_sigset):
12602         * nt.c (mswindows_sigrelse):
12603         * nt.c (mswindows_sigpause):
12604         * nt.c (mswindows_raise):
12605         * nt.c (timer_proc):
12606         * ntproc.c:
12607         * ntproc.c (find_child_console):
12608         * ntproc.c (sys_kill):
12609         * print.c:
12610         * print.c (std_handle_out_external):
12611         * process-nt.c (find_child_console):
12612         * process-nt.c (send_signal_the_95_way):
12613         * process-nt.c (ensure_console_window_exists):
12614         * process-nt.c (nt_create_process):
12615         * syssignal.h:
12616         rename msw_ to mswindows_ for consistency with general convention.
12617
12618         * emacs.c:
12619         * dumper.c:
12620         include nt.h, not syswindows.h.
12621
12622         * nt.c (mswindows_fstat):
12623         * nt.c (mswindows_stat):
12624         prefix mswindows_ instead of attempting to directly override the
12625         library functions.  fix declarations.
12626
12627         * nt.h:
12628         include syswindows.h.  move some sysdep.h stuff here.
12629
12630         * ntheap.h:
12631         include syswindows.h, not <windows.h>.
12632
12633         * ntplay.c:
12634         clean up headers.
12635
12636         * sysdep.c:
12637         clean up headers.
12638
12639         * sysdep.c (sys_fstat):
12640         * sysdep.c (sys_stat):
12641         call mswindows versions when appropriate.
12642
12643         * sysdep.h:
12644         move mswin decls to nt.h.
12645
12646         * syswindows.h:
12647         add long comment describing appropriate use of the various windows
12648         headers.
12649
12650 2000-06-11  Ben Wing  <ben@xemacs.org>
12651
12652         * device-x.c: Correct doc string for sixth arg of x-get-resource.
12653
12654 2000-06-10  Ben Wing  <ben@xemacs.org>
12655
12656         * Makefile.in.in (release):
12657         Correction to make sure xemacs.exe always dumped when correct.
12658
12659         * alloca.c:
12660         * balloon_help.c:
12661         [[[[3]]]]: Conditionalize on actual problem, not WINDOWSNT.
12662
12663         * buffer.c (set_buffer_internal):
12664         [[[[2]]]]: Remove HAVE_FEP code.
12665
12666         * buffer.c (init_initial_directory):
12667         [3].
12668
12669         * bytecode.c:
12670         [[[[4]]]]: limits.h standardly included in lisp.h; remove from
12671         individual files.
12672
12673         * callproc.c:
12674         * callproc.c (call_process_cleanup):
12675         * callproc.c (Fold_call_process_internal):
12676         * callproc.c (child_setup):
12677         * callproc.c (getenv_internal):
12678         * callproc.c (init_callproc):
12679         * callproc.c (vars_of_callproc):
12680         [[[[1]]]]: WINDOWSNT -> WIN32_NATIVE.
12681         __CYGWIN32__ -> CYGWIN.
12682         DOS_NT -> WIN32_NATIVE.
12683         Remove MSDOS support/references, converting to WIN32_NATIVE
12684           where correct.
12685         __MINGW32__ -> MINGW.
12686         Fix windows.h includes.
12687         Remove bogus HAVE_NTGUI.
12688
12689         * config.h.in:
12690         [2].
12691
12692         * console-msw.c:
12693         mswindows_message_outputted added for use in allowing startup
12694         errors on the console to be seen.
12695
12696         * console-msw.c (msw_ensure_console_allocated):
12697         * console-msw.c (msw_output_console_string):
12698         * console-msw.c (DHEADER):
12699         * console-msw.c (DOPAQUE_DATA):
12700         * console-msw.c (DEVENT):
12701         * console-msw.c (DCONS):
12702         * console-msw.c (DCONSCDR):
12703         * console-msw.c (DSTRING):
12704         * console-msw.c (DVECTOR):
12705         * console-msw.c (DSYMBOL):
12706         * console-msw.c (DSYMNAME):
12707         Fix warnings.
12708
12709         * console-stream.c (stream_init_console):
12710         Fix text/binary problems.
12711
12712         * device-msw.c:
12713         * device-msw.c (mswindows_finish_init_device):
12714         * device-msw.c (mswindows_delete_device):
12715         [1].
12716
12717         * device.c (handle_asynch_device_change):
12718         [3].
12719
12720         * dgif_lib.c:
12721         * dgif_lib.c (DGifOpenFileName):
12722         * dgif_lib.c (DGifOpenFileHandle):
12723         * dgif_lib.c (DGifGetLine):
12724         * dgif_lib.c (DGifGetPixel):
12725         Added config.h/lisp.h, fix up includes.
12726         [1].
12727
12728         * dired-msw.c:
12729         [4].
12730
12731         * dired.c:
12732         * dired.c (file_name_completion):
12733         * dired.c (Ffile_attributes):
12734         * dired.c (syms_of_dired):
12735         [1].
12736
12737         * dumper.c:
12738         * dumper.c (pdump_file_unmap):
12739         * dumper.c (pdump_load):
12740         [1].
12741
12742         * editfns.c:
12743         * editfns.c (Ftemp_directory):
12744         * editfns.c (user_login_name):
12745         * editfns.c (Fuser_real_login_name):
12746         * editfns.c (get_home_directory):
12747         [1].
12748
12749         * elhash.c (finish_marking_weak_hash_tables):
12750         [[[[5]]]]: Fix GCC warnings.
12751
12752         * emacs.c:
12753         * emacs.c (mswindows_handle_hardware_exceptions):
12754         * emacs.c (make_arg_list_1):
12755         * emacs.c (main_1):
12756         * emacs.c (Fkill_emacs):
12757         * emacs.c (Fdump_emacs):
12758         [1].
12759         Fix problems with nested crashes, add long comment.
12760
12761         * event-Xt.c (init_event_Xt_late):
12762         [1].
12763
12764         * event-msw.c:
12765         * event-msw.c (mswindows_dde_callback):
12766         * event-msw.c (mswindows_handle_sticky_modifiers):
12767         * event-msw.c (mswindows_wnd_proc):
12768         [1].
12769         [5].
12770
12771         * events.c (character_to_event):
12772         [1].
12773
12774         * fileio.c:
12775         * fileio.c (Ffile_name_directory):
12776         * fileio.c (Ffile_name_nondirectory):
12777         * fileio.c (directory_file_name):
12778         * fileio.c (Fexpand_file_name):
12779         * fileio.c (Fsubstitute_in_file_name):
12780         * fileio.c (Ffile_name_absolute_p):
12781         * fileio.c (check_executable):
12782         * fileio.c (Ffile_readable_p):
12783         * fileio.c (Ffile_accessible_directory_p):
12784         * fileio.c (Ffile_modes):
12785         * fileio.c (Funix_sync):
12786         * fileio.c (vars_of_fileio):
12787         [1]. [4].
12788
12789         [[[[7]]]]: Move CORRECT_DIR_SEPS to s\windowsnt.h.
12790
12791         Expand getdefdir defn.
12792         Fix bogus rename() comment.
12793
12794         [[[[6]]]]: Fix Windows includes w.r.t. removed nt\inc.  Attempt
12795         to use standard XEmacs include files, e.g. sysfile.h, rather
12796         than system-specific includes.
12797
12798         * fns.c:
12799         * fns.c (Fsubseq):
12800         [5]. [6].
12801
12802         * frame.c (vars_of_frame):
12803         [1].
12804
12805         * getloadavg.c:
12806         * getloadavg.c (getloadavg):
12807         [1]. [6].
12808         #ifdef XEMACS not defined on Cygwin.  Remove this; no need for it.
12809         (We don't use it elsewhere in the code; just add a comment.)
12810
12811         * gif_io.c:
12812         [6].
12813         Add config.h.
12814
12815         * glyphs-msw.c:
12816         * glyphs-msw.c (mswindows_resource_instantiate):
12817         [1].
12818
12819         * glyphs-x.c (x_native_layout_instantiate):
12820         [5].
12821
12822         * gui-msw.c (Fmswindows_shell_execute):
12823         [1].
12824
12825         * insdel.c:
12826         [4].
12827
12828         * lisp.h:
12829         [4]. [5].
12830
12831         * lread.c (locate_file_in_directory_mapper):
12832         [1].
12833
12834         * lstream.c:
12835         [4].
12836
12837         * mem-limits.h:
12838         * mem-limits.h (get_lim_data):
12839         [1].
12840
12841         * menubar-msw.c:
12842         [4].
12843
12844         * ndir.h:
12845         [1].
12846
12847         * nt.c:
12848         * nt.c (getwd):
12849         * nt.c (closedir):
12850         * nt.c (rva_to_section):
12851         * nt.c (mswindows_executable_type):
12852         [1]. [6].
12853         Fix closedir() defn.
12854
12855         * nt.h:
12856         [[[[8]]]]: *_OK defs moved to sysfile.h.
12857
12858         * ntproc.c:
12859         [6]. [7].
12860
12861         * objects-x.c:
12862         [4].
12863
12864         * print.c:
12865         * print.c (std_handle_out_external):
12866         [1]. [4].
12867
12868         * process-nt.c:
12869         * process-nt.c (nt_create_process):
12870         [6].
12871         try to fix process quoting somewhat.
12872
12873         * process-unix.c (unix_create_process):
12874         [1].
12875
12876         * process.c:
12877         * process.c (vars_of_process):
12878         Add Vnull_device.
12879
12880         * process.h:
12881         [1].
12882
12883         * realpath.c:
12884         * realpath.c (xrealpath):
12885         [1].
12886
12887         * redisplay-tty.c (init_tty_for_redisplay):
12888         [3].
12889
12890         * redisplay.c:
12891         [4]. [6].
12892
12893         * scrollbar-msw.c:
12894         [4].
12895
12896         * sheap.c:
12897         * sheap.c (more_static_core):
12898         * sheap.c (report_sheap_usage):
12899         [5]. [6].
12900
12901         * signal.c:
12902         * signal.c (alarm_signal):
12903         [1]. [6].
12904
12905         * sound.c:
12906         [6].
12907
12908         * strftime.c:
12909         * strftime.c (zone_name):
12910         [1]. [5].
12911
12912         * symsinit.h (init_sunpro):
12913         [1].
12914
12915         * syscommctrl.h:
12916         commctrl.h not in Cygwin b20.1.
12917
12918         * sysdep.c:
12919         * sysdep.c (endif):
12920         * sysdep.c (sys_subshell):
12921         * sysdep.c (init_baud_rate):
12922         * sysdep.c (emacs_get_tty):
12923         * sysdep.c (emacs_set_tty):
12924         * sysdep.c (tty_init_sys_modes_on_device):
12925         * sysdep.c (init_system_name):
12926         * sysdep.c (sys_open):
12927         * sysdep.c (interruptible_open):
12928         * sysdep.c (sys_fopen):
12929         * sysdep.c (sys_mkdir):
12930         * sysdep.c (sys_rename):
12931         * sysdep.c (get_process_times_1):
12932         [1]. [6].
12933
12934         * sysdep.h:
12935         [1].
12936
12937         * sysdir.h:
12938         * sysdir.h (DIRENTRY_NONEMPTY):
12939         [1]. [6].
12940
12941         * sysdll.c (dll_init):
12942         * sysdll.h:
12943         [1].
12944
12945         * sysfile.h:
12946         [1]. [6]. [8].
12947         added text/binary defs.
12948
12949         * sysfloat.h:
12950         [1].
12951
12952         * sysproc.h:
12953         * sysproc.h (EDESTADDRREQ):
12954         * sysproc.h (poll_fds_for_input):
12955         [1]. [6].
12956
12957         * syspwd.h:
12958         [6].
12959
12960         * syssignal.h:
12961         [1].
12962
12963         * systime.h:
12964         [1]. [6].
12965
12966         * systty.h:
12967         [1].
12968
12969         * syswindows.h:
12970         [1].
12971         Always define WIN32_LEAN_AND_MEAN.
12972
12973         * unexcw.c (unexec):
12974         [5].
12975
12976         * unexec.c:
12977         * unexec.c (copy_text_and_data):
12978         * unexec.c (adjust_lnnoptrs):
12979         [1].
12980
12981         * unexnt.c:
12982         * unexnt.c (_start):
12983         [1].
12984
12985 2000-06-07  Ben Wing  <ben@xemacs.org>
12986
12987         * mule-mcpath.c, mule-mcpath.h: Removed.  Old, crufty code that
12988         was used only as a model.  We've long since extracted any useful
12989         logic or code out of this. (I just did an exhaustive search.)
12990
12991         * s\msdos.h: Removed.
12992
12993         * s\windows95.h: Removed.
12994
12995 2000-06-10  Ben Wing  <ben@xemacs.org>
12996
12997         * s\cygwin32.h:
12998         [1]. [5].
12999         Don't use extern with fun defs.
13000
13001         * s\mingw32.h:
13002         [1]. [7].
13003         Remove nt\inc include.
13004         Remove getdisk, getdefdir. (The former is unused, the latter
13005         expanded in fileio.h.)
13006
13007         * s\windowsnt.h:
13008         * s\windowsnt.h (WIN32_NATIVE):
13009         * s\windowsnt.h (HAVE_STRCASECMP):
13010         [1]. [7].
13011         Add long comment about preprocessor changes.
13012         Remove getdisk, getdefdir. (The former is unused, the latter
13013         expanded in fileio.h.)
13014
13015 2000-06-10  Ben Wing  <ben@xemacs.org>
13016
13017         * m\arm.h:
13018         * m\delta.h:
13019         * m\intel386.h:
13020         * m\sequent.h:
13021         * m\template.h:
13022         * m\windowsnt.h:
13023         [1].
13024         Remove bogus/unused NO_SOCK_SIGIO.
13025
13026 2000-06-08  Hrvoje Niksic  <hniksic@iskon.hr>
13027
13028         * lisp.h (set_string_char): Call set_string_byte with a Bufbyte,
13029         not an Emchar.
13030
13031 2000-06-04  Mike Sperber <mike@xemacs.org>
13032
13033         * casetab.c (set_case_table): For `set-standard-case-table',
13034         actually deposit the new case tables where the rest of XEmacs can
13035         see them.
13036
13037 2000-06-05  Yoshiki Hayashi <yoshiki@xemacs.org>
13038
13039         * data.c (Faset): Don't cast XCHAR() to unsigned char.
13040
13041 2000-06-05  Ben Wing  <ben@xemacs.org>
13042
13043         * callproc.c (child_setup): Don't do close_load_descs() under
13044         MS Windows.  Put in a comment explaining why.
13045
13046 2000-05-28  Adrian Aichner  <aichner@ecf.teradyne.com>
13047
13048         * process-nt.c: Reverting patch "Fixing nt_create_process for MKS
13049         Toolkit shell" which breaks `kill-compilation' on Windows NT
13050         native, retaining STDERR handling improvements.
13051
13052 2000-06-01  Andreas Jaeger  <aj@suse.de>
13053
13054         * s/s390.h: Support for S390, based on a patch by Martin
13055         Schwidefsky <schwidefsky@de.ibm.com>.
13056
13057 2000-05-30  Andy Piper  <andy@xemacs.org>
13058
13059         * window.c (allocate_window):
13060         (make_dummy_parent):
13061         (Fset_window_configuration): use new hashtable type.
13062
13063         * glyphs.h (IMAGE_UNSPECIFIED_GEOMETRY):
13064         (struct image_instantiator_methods):
13065         (struct Lisp_Image_Instance): make instance geometry signed.
13066
13067         * glyphs.c (instantiate_image_instantiator):
13068         (image_instance_query_geometry):
13069         (image_instance_layout):
13070         (image_instance_layout):
13071         (query_string_geometry):
13072         (text_query_geometry):
13073         (image_instantiate):
13074         (image_instantiate):
13075         (cache_subwindow_instance_in_frame_maybe):
13076         (subwindow_query_geometry): make instance geometry signed.
13077
13078         * glyphs-widget.c (widget_query_geometry):
13079         (widget_layout):
13080         (button_query_geometry):
13081         (tree_view_query_geometry):
13082         (tab_control_query_geometry):
13083         (layout_query_geometry):
13084         (layout_layout):
13085         (native_layout_layout): make instance geometry signed.
13086
13087 2000-05-29  Olivier Galibert  <galibert@pobox.com>
13088
13089         * lisp.h: Add Qfull_assoc symbol and WEAK_LIST_FULL_ASSOC
13090         constant.
13091
13092         * general.c (syms_of_general): Add Qfull_assoc symbol.
13093
13094         * data.c (finish_marking_weak_lists): Mark full-assoc lists
13095         correctly.
13096         (decode_weak_list_type): Decode full-assoc type.
13097         (encode_weak_list_type): Encode full-assoc type.
13098         (Fmake_weak_list): Update doc string.
13099
13100 2000-05-30  Andy Piper  <andy@xemacs.org>
13101
13102         * elhash.h (hash_table_weakness): new KEY_VALUE weak hashtable.
13103
13104         * elhash.c (print_hash_table): new KEY_VALUE weak hashtable.
13105         (decode_hash_table_weakness): ditto.
13106         (Fhash_table_weakness): ditto.
13107         (Fhash_table_type): ditto.
13108         (finish_marking_weak_hash_tables): ditto.
13109         (hash_table_weakness_validate): ditto.
13110         (syms_of_elhash): ditto.
13111
13112 2000-05-28  Martin Buchholz <martin@xemacs.org>
13113
13114         * XEmacs 21.2.34 is released.
13115
13116 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13117
13118         * redisplay.c (VERTICAL_CLIP): No longer reset when updating line
13119         start cache.
13120         (updating_line_start_cache): Gone.
13121         (regenerate_window): Replace resetting of VERTICAL_CLIP by
13122         generic code to force a minimum of 1 line laid out in the
13123         CMOTION_DISP case.
13124
13125 2000-05-22  Jan Vroonhof  <vroonhof@math.ethz.ch>
13126
13127         * glyphs.c (instantiate_image_instantiator): Check for initialized
13128         height & width no longer special cases IMAGE_NOTHING.
13129         (nothing_instantiate): Set height and width of instance.
13130
13131 2000-05-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
13132
13133         * unexelf.c (unexec): Search for ".data" section.
13134         Initialize new_data2_offset from old_data_index.
13135         Remove redundant check for ElfW.
13136
13137 2000-05-23  Andy Piper  <andy@xemacs.org>
13138
13139         * glyphs.c (get_image_instantiator_governing_domain): allow more
13140         specific domains as the governing domain rather than expecting an
13141         exact match. This fixes problems with layouts.
13142
13143 2000-05-22  Andy Piper  <andy@xemacs.org>
13144
13145         * redisplay-output.c (compare_runes): check for non-images
13146
13147         * glyphs.c (set_glyph_dirty_p): ditto.
13148         (update_glyph_cachel_data): ditto.
13149
13150         * glyphs-widget.c (layout_post_instantiate): ditto.
13151         (layout_post_instantiate): ditto.
13152
13153         * event-msw.c (mswindows_wnd_proc): warning removal.
13154
13155 2000-05-12  Craig Lanning  <CraigL@DyCon.com>
13156
13157         * s\mingw32.h: Added #undef for CLASH_DETECTION.
13158
13159         * syswindows.h: Moved PBS_SMOOTH definition to syscommctrl.h.
13160
13161         * syscommctrl.h (PBS_SMOOTH): Moved from syswindows.h.
13162
13163         * nt.c (rva_to_section): mingw32 needs rva_to_section.
13164         (mswindows_executable_type): mingw32 now has enough headers for
13165         this to work.
13166
13167 2000-05-20  Andy Piper  <andy@xemacs.org>
13168
13169         * console-msw.c (mswindows_output_last_error): ; -> ,
13170
13171 2000-05-12  Andy Piper  <andy@xemacs.org>
13172
13173         * console-msw.c (FROB): compare ints with ints.
13174
13175 2000-05-11  Andy Piper  <andy@xemacs.org>
13176
13177         * glyphs-x.c (x_finalize_image_instance): make minimal build
13178         happy.
13179
13180 2000-05-20  Ben Wing  <ben@xemacs.org>
13181
13182         * event-Xt.c:
13183         * event-Xt.c (vars_of_event_Xt):
13184         move modifier-keys-are-sticky to event-stream.c.
13185
13186         * event-msw.c:
13187         * event-msw.c (mswindows_enqueue_mouse_button_event):
13188         * event-msw.c (key_needs_default_processing_p):
13189         * event-msw.c (XEMSW_LCONTROL):
13190         * event-msw.c (mswindows_handle_sticky_modifiers):
13191         * event-msw.c (FROB):
13192         * event-msw.c (clear_sticky_modifiers):
13193         * event-msw.c (output_modifier_keyboard_state):
13194         * event-msw.c (output_alt_keyboard_state):
13195         * event-msw.c (mswindows_wnd_proc):
13196         * event-msw.c (mswindows_modifier_state):
13197         * event-msw.c (emacs_mswindows_handle_magic_event):
13198         implement sticky modifiers.
13199
13200         * event-stream.c:
13201         * event-stream.c (vars_of_event_stream):
13202         move modifier-keys-are-sticky here.
13203
13204         * lisp.h:
13205         add CHECK_FUNCTION.
13206
13207         * rangetab.c:
13208         implement map-range-table.
13209
13210
13211 2000-05-17  Yoshiki Hayashi  <yoshiki@xemacs.org>
13212
13213         * redisplay-tty.c (reset_tty_modes):
13214         (tty_redisplay_shutdown): Adjust argument type to
13215         tty_frame_output_end.
13216
13217 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13218
13219         * eval.c (Fbacktrace): Don't output a line with only right
13220         parenthesis.
13221
13222 2000-05-17  Kenji Itoh  <keit@tpj.co.jp>
13223
13224         * postgresql.c (Fpq_connect_poll): Replace `PS' with `polling_status'.
13225         (Fpq_reset_poll): Ditto.
13226
13227 2000-05-16  Katsumi Yamaoka  <yamaoka@jpl.org>
13228
13229         * redisplay-tty.c: Replace tty_output_end with tty_frame_output_end.
13230
13231 2000-05-16  Ben Wing  <ben@xemacs.org>
13232
13233         * buffer.c:
13234         * buffer.c (dfc_convert_to/from_internal_format):
13235         * buffer.c (reinit_vars_of_buffer):
13236         Fix conversion functions to allow reentrancy.
13237
13238         * console-msw.c:
13239         * console-msw.c (mswindows_output_last_error):
13240         New fun, generally useful -- output a human-readable
13241         version of GetLastError() on the console.
13242
13243         * console-msw.h:
13244         * console-msw.h (struct mswindows_frame):
13245         Changes for DeferWindowPos.  Declare mswindows_output_last_error().
13246
13247         * console-stream.c (stream_output_begin):
13248         * console-stream.c (stream_output_end):
13249         * console-stream.c (stream_output_vertical_divider):
13250         * console-stream.c (stream_clear_region):
13251         * console-stream.c (stream_flash):
13252         * console-stream.c (console_type_create_stream):
13253         Delete blank stream methods, not needed.
13254
13255         * console.h (struct console_methods):
13256         Split begin/end methods into window and frame.
13257
13258         * event-msw.c:
13259         * event-msw.c (mswindows_handle_paint):
13260         * event-msw.c (output_alt_keyboard_state):
13261         * event-msw.c (mswindows_wnd_proc):
13262         * event-msw.c (vars_of_event_mswindows):
13263         Comment about problems with ignored-expose.
13264         Define mswindows-debug-events; not really implemented.
13265
13266         * frame-msw.c (mswindows_init_frame_1):
13267         random cleanups.
13268
13269         * glyphs-msw.c:
13270         * glyphs-msw.c (begin_defer_window_pos):
13271         * glyphs-msw.c (mswindows_unmap_subwindow):
13272         * glyphs-msw.c (mswindows_map_subwindow):
13273         * glyphs-msw.c (mswindows_resize_subwindow):
13274         Use DeferWindowPos to reduce flashing when mapping/unmapping.
13275
13276         * glyphs.c (make_image_instance_1):
13277         Fix crash.
13278
13279         * gutter.c (Fredisplay_gutter_area):
13280         Use new begin/end methods.
13281
13282         * lisp.h (Dynarr_new2):
13283         New creation fun.
13284
13285         * redisplay-msw.c:
13286         * redisplay-msw.c (mswindows_frame_output_begin):
13287         * redisplay-msw.c (mswindows_frame_output_end):
13288         * redisplay-msw.c (console_type_create_redisplay_mswindows):
13289         New begin/end methods -- handle DeferWindowPos.
13290
13291         * redisplay-output.c (redisplay_move_cursor):
13292         * redisplay-output.c (redraw_cursor_in_window):
13293         * redisplay-output.c (redisplay_update_line):
13294         * redisplay-output.c (redisplay_output_window):
13295         New begin/end methods.
13296
13297         * redisplay-tty.c:
13298         * redisplay-tty.c (tty_frame_output_begin):
13299         * redisplay-tty.c (tty_frame_output_end):
13300         * redisplay-tty.c (console_type_create_redisplay_tty):
13301         New begin/end methods.
13302
13303         * redisplay-x.c:
13304         * redisplay-x.c (x_window_output_begin):
13305         * redisplay-x.c (x_window_output_end):
13306         * redisplay-x.c (console_type_create_redisplay_x):
13307         New begin/end methods.
13308
13309         * redisplay.c (redisplay_frame):
13310         * redisplay.c (Fredisplay_echo_area):
13311         New begin/end methods.
13312         use MAYBE_DEVMETH for clear_frame; it may not exist.
13313
13314         * window.h (WINDOW_XFRAME):
13315         WINDOW_XFOO macros -- get locale and decode struct pointer.
13316
13317
13318 2000-05-12  Ben Wing  <ben@xemacs.org>
13319
13320         * emacs.c:
13321         * emacs.c (ensure_no_quitting_from_now_on):
13322         * emacs.c (fatal_error_signal):
13323         * emacs.c (mswindows_handle_hardware_exceptions):
13324         * emacs.c (main):
13325         * emacs.c (Fkill_emacs):
13326         * emacs.c (shut_down_emacs):
13327         * emacs.c (assert_failed):
13328         various improvements in fatal error handling.
13329
13330         * eval.c:
13331         move preparing_for_armageddon to emacs.c.
13332
13333         * lisp.h:
13334         declare fatal_error_in_progress.
13335
13336         * print.c:
13337         * print.c (std_handle_out_external):
13338         * print.c (std_handle_out_va):
13339         * print.c (stderr_out):
13340         * print.c (stdout_out):
13341         use console under mswin when no standard output.
13342         don't do code conversion during fatal error.
13343
13344         * scrollbar.c (Fscrollbar_page_up):
13345         * scrollbar.c (Fscrollbar_page_down):
13346         fix missing else.  reindent.
13347
13348 2000-05-11  Jan Vroonhof  <vroonhof@math.ethz.ch>
13349
13350         Emergency fix.
13351
13352         * glyphs.h (GLYPH_CACHEL_DESCENT):
13353         (GLYPH_CACHEL_DESCENT):
13354         (GLYPH_CACHEL_DESCENT):
13355         * glyphs.h (GLYPH_CACHEL_ASCENT): Match parameters to variables
13356         used in case these are inline functions.
13357         Use more absurd values to error check.
13358
13359         include window.h for error check functions.
13360
13361 2000-05-11  Ben Wing  <ben@xemacs.org>
13362
13363         * cmdloop.c (Freally_early_error_handler):
13364         Display message box under windows; otherwise, message will disappear
13365         before it can be viewed.
13366
13367         * console-msw.c:
13368         * console-msw.c (Fmswindows_message_box):
13369         * console-msw.c (FROB):
13370         * console-msw.c (syms_of_console_mswindows):
13371         Define new fun `mswindows-message-box'.
13372         #### I will merge this into `popup-dialog-box'; just give me
13373         a bit of time.
13374
13375         * general.c:
13376         * general.c (syms_of_general):
13377         Some new symbols used in `mswindows-message-box'.
13378
13379         * glyphs.c:
13380         * glyphs.c (Fset_image_instance_property):
13381         put warning in this fun.
13382
13383         * glyphs.h:
13384         * glyphs.h (GLYPH_CACHEL_WIDTH):
13385         * glyphs.h (GLYPH_CACHEL_ASCENT):
13386         * glyphs.h (GLYPH_CACHEL):
13387         * glyphs.h (GLYPH_CACHEL_GLYPH):
13388         define error-checking versions to try to catch a bug i've seen --
13389         redisplay gets in an infinite loop because the glyph width of the
13390         continuation glyph is 65535.
13391
13392         * lisp.h:
13393         Extern message-box stuff.
13394
13395         * window.c (allocate_window):
13396         * window.c (make_dummy_parent):
13397         * window.c (Fset_window_configuration):
13398         Use EQUAL not EQ for subwindow caches to make them work a bit
13399         better. (Something is still very broken.)
13400
13401
13402 2000-05-11  Yoshiki Hayashi  <yoshiki@xemacs.org>
13403
13404         * glyphs.c (image_instantiate): Suppress gcc warnings.
13405         (Fmake_image_instance): Fix doc string.
13406         * specifier.c (Fmake_specifier): Ditto.
13407
13408 2000-05-02  Yoshiki Hayashi  <yoshiki@xemacs.org>
13409
13410         * paths.h.in (PATH_LOCK): Removed.
13411         * config.h.in (LOCKDIR_USER_DEFINED): Removed.
13412         * emacs.c (complex_vars_of_emacs): Remove configure-lock-directory.
13413
13414 2000-05-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
13415
13416         * fns.c (Ffeaturep): Update e-mail address in doc-string.
13417         Document (featurep '(and xemacs 21.02)).
13418
13419 2000-05-09  Ben Wing  <ben@xemacs.org>
13420
13421         * buffer.c (complex_vars_of_buffer):
13422         update modeline-format doc.
13423
13424         * device.h:
13425         comment about how DFW_DEVICE should be merged with DOMAIN_DEVICE.
13426
13427         * emacs.c:
13428         timeline of all released versions of Emacs, for use in creating
13429         authorship comments and in synching up.
13430
13431         * glyphs-widget.c (image_instantiator_buttons):
13432         * glyphs-widget.c (image_instantiator_edit_fields):
13433         * glyphs-widget.c (image_instantiator_combo_box):
13434         * glyphs-widget.c (image_instantiator_scrollbar):
13435         * glyphs-widget.c (image_instantiator_progress_guage):
13436         * glyphs-widget.c (image_instantiator_tree_view):
13437         * glyphs-widget.c (image_instantiator_tab_control):
13438         * glyphs-widget.c (image_instantiator_labels):
13439         * glyphs-widget.c (image_instantiator_layout):
13440         * glyphs-widget.c (image_instantiator_native_layout):
13441         rename decode_domain method to governing_domain.
13442
13443         * glyphs.c:
13444         * glyphs.c (Fvalid_image_instantiator_format_p): doc update.
13445         * glyphs.c (add_entry_to_device_ii_format_list):
13446         make sure we don't put an entry more than once into the list.
13447         * glyphs.c (check_instance_cache_mapper):
13448         *************************************************************
13449         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13450         HAVE BEEN GETTING.
13451         *************************************************************
13452         * glyphs.c (get_image_instantiator_governing_domain):
13453         clean up, expand on new concept of governing domain.
13454         * glyphs.c (instantiate_image_instantiator):
13455         * glyphs.c (allocate_image_instance):
13456         use governing_domain instead of cache_domain in naming.
13457         * glyphs.c (Fvalid_image_instance_type_p): fix docs.
13458         * glyphs.c (make_image_instance_1):
13459         * glyphs.c (Fmake_image_instance):
13460         allow for any domain (not just device), and process the
13461         governing domain correctly.  very big doc fix.
13462         * glyphs.c (Fimage_instance_domain):
13463         new primitive, to retrieve the governing domain of an image instance.
13464         * glyphs.c (image_instantiate):
13465         use new governing_domain stuff.  this fixes a crash you could get
13466         by instantiating certain widget glyphs in frame locales. (should
13467         signal an error instead of crashing.)
13468         * glyphs.c (Fimage_specifier_p): move doc to make-image-specifier.
13469         * glyphs.c (Fglyphp): clean up doc.
13470         * glyphs.c (subwindow_governing_domain): renamed from *_decode_domain.
13471         * glyphs.c (syms_of_glyphs):
13472         declare Fimage_instance_domain, remove unused Qlayout_image_instance_p.
13473         * glyphs.c (image_instantiator_format_create): add some comments about
13474         bogus code.
13475         * glyphs.c (specifier_vars_of_glyphs): totally rewrite the doc string
13476         for current-display-table. (Apparently Hrjove implemented in 1998 a
13477         design I wrote up in 1996, but didn't update the doc string.)
13478
13479         * glyphs.h: clean up a doc string.
13480         * glyphs.h (governing_domain):
13481         * glyphs.h (struct image_instantiator_methods):
13482         changes for governing_domain stuff.
13483
13484         * gutter.c:
13485         * gutter.c (Fgutter_specifier_p):
13486         * gutter.c (Fgutter_size_specifier_p):
13487         * gutter.c (Fgutter_visible_specifier_p):
13488         * objects.c:
13489         * objects.c (Fcolor_specifier_p):
13490         * objects.c (Ffont_specifier_p):
13491         * objects.c (Fface_boolean_specifier_p):
13492         doc strings moved to make-*-specifier.
13493
13494         * redisplay.c (add_disp_table_entry_runes_1):
13495         * redisplay.c (generate_fstring_runes):
13496         * redisplay.c (screen):
13497         add random comments and doc strings.
13498
13499         * specifier.c:
13500         * specifier.c (Fmake_specifier):
13501         major overhaul of this doc string.
13502
13503         * specifier.c (Fvalid_specifier_domain_p):
13504         comment about the bogosity of image instances being domains.
13505         * specifier.c (decode_domain):
13506         now non-static, used in glyphs.c.
13507         * specifier.c (specifier_instance):
13508         comment about the bogosity of image instances being domains.
13509         * specifier.c (Fgeneric_specifier_p):
13510         move doc string to make-generic-specifier.
13511         * specifier.c (VALID_SINGLE_DISPTABLE_INSTANTIATOR_P):
13512         rebackslashify.
13513
13514         * specifier.h:
13515         * specifier.h (DOMAIN_FRAME):
13516         * specifier.h (DOMAIN_LIVE_P):
13517         * specifier.h (DOMAIN_XDEVICE):
13518         rebackslashify.
13519         add comments about problems with these macros.
13520         prototype for decode_domain.
13521
13522         * toolbar.c:
13523         * toolbar.c (Ftoolbar_specifier_p):
13524         move doc string to `make-toolbar-specifier'.
13525
13526         * window.c (window_unmap_subwindows_cache_mapper):
13527         *************************************************************
13528         allow for nil.  THIS SHOULD FIX A REAL CRASH THAT MANY PEOPLE
13529         HAVE BEEN GETTING.
13530         *************************************************************
13531
13532 2000-05-09  Andy Piper  <andy@xemacs.org>
13533
13534         * glyphs.h: declare reset_frame_subwindow_instance_cache.
13535
13536         * window.c (Fset_window_configuration): reset the frame subwindow
13537         cache and re-initialize the window subwindow caches.
13538
13539         * glyphs.c (reset_frame_subwindow_instance_cache): new function.
13540
13541 2000-05-09  Ben Wing  <ben@xemacs.org>
13542
13543         * ntheap.c (recreate_heap): Changed unknown (VC6 only?) SIZE_T to
13544         DWORD.
13545
13546 2000-04-26  Mike Woolley  <mike@bulsara.com>
13547
13548         * ntheap.c: Changed recreate_heap to limit the amount reserved
13549         for the heap to that which is actually available. Also now
13550         displays a message box (with some dignostics) in the event that
13551         it still can't start.
13552
13553 2000-05-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
13554
13555         * callproc.c (Fold_call_process_internal): GCPRO path
13556
13557 2000-05-08  Jan Vroonhof  <jan@xemacs.org>
13558
13559         Patch by Bill Perry.
13560
13561         * scrollbar.c (Fscrollbar_page_up): Conditionalize on type of call
13562         back data instead of #ifdef.
13563         (Fscrollbar_page_down): ditto.
13564
13565 2000-05-07  Ben Wing  <ben@xemacs.org>
13566
13567         * buffer.h:
13568         Kludge for defining Qmswindows_tstr.
13569
13570         * nt.c:
13571         * nt.c (open_input_file):
13572         * nt.c (open_output_file):
13573         * nt.c (rva_to_section):
13574         * nt.c (mswindows_executable_type):
13575         Move all memory-mapped-file routines here (some were in unexnt.c,
13576         which is bad because they are used by process-nt.c, and unexnt
13577         won't be around when portable dumping).  Synched the above routines
13578         with FSF 20.6.
13579
13580         * nt.h:
13581         Removed ifdef'd out bogus code.
13582         Fixed some prototypes.
13583
13584         * nt.h (file_data):
13585         * nt.h (OFFSET_TO_RVA):
13586         * nt.h (RVA_TO_OFFSET):
13587         * nt.h (RVA_TO_PTR):
13588         Moved the memory-mapped-file structures, macros and prototypes
13589         here, to parallel nt.c.  ntheap.h should really be removed
13590         entirely, and it's a non-portable-dumper specific file.
13591
13592         * ntheap.h (round_to_next):
13593         Moved the memory-mapped-file structures, macros and prototypes
13594         to nt.h.
13595
13596         * ntproc.c (compare_env):
13597         Moved rva_to_section and mswindows_executable_type to nt.c.
13598         Moved compare_env to process-nt.c.
13599         ntproc.c will die, one day.
13600
13601         * ntproc.c (sys_spawnve):
13602         Account for win32_ -> mswindows_.
13603
13604         * process-nt.c:
13605         * process-nt.c (struct nt_process_data):
13606         * process-nt.c (ensure_console_window_exists):
13607         * process-nt.c (compare_env):
13608         * process-nt.c (nt_create_process):
13609         * process-nt.c (nt_kill_process_by_pid):
13610         * process-nt.c (syms_of_process_nt):
13611         * process-nt.c (vars_of_process_nt):
13612         Introduce variable `mswindows-quote-process-args', from FSF 20.6.
13613         Copy argument quoting code from FSF 20.6 (with appropriate Mule-ization
13614         changes).  Eliminate our old `nt-quote-process-args' mechanism.
13615         Synch up nt_create_process with FSF 20.6 sys_spawnve.
13616         Move compare_env here from ntproc.c.
13617
13618         * process.c (Fprocess_send_region):
13619         Takes an optional fourth argument, BUFFER, which should fix some
13620         problems with call-process.
13621
13622         * syscommctrl.h:
13623         Move ICC_BAR_CLASSES here from syswindows.h, to avoid a warning.
13624
13625         * syswindows.h:
13626         Move ICC_BAR_CLASSES to syscommctrl.h.
13627         Add preliminary macros for MSWindows/Mule.  More to come.
13628
13629         * unexnt.c:
13630         * unexnt.c (unexec):
13631         open_output_file moved to nt.c.
13632
13633
13634 2000-05-05  Andy Piper  <andy@xemacs.org>
13635
13636         * window.c (window_unmap_subwindows_cache_mapper): remove the dead
13637         instance from the frame cache also since GC may catch up too late
13638         to make frame deletion sane.
13639
13640 2000-05-04  Andy Piper  <andy@xemacs.org>
13641
13642         * glyphs-x.c (x_widget_instantiate): gcpro widget callbacks.
13643         (x_finalize_image_instance): ungcpro on deletion.
13644
13645         * glyphs.c (image_instantiator_format_create): give pointers a
13646         query geometry method so that the geometry is at least set.
13647
13648         * glyphs-x.c (image_instantiator_format_create_glyphs_x): only
13649         initialize layouts if using widgets.
13650
13651 2000-05-03  Andy Piper  <andy@xemacs.org>
13652
13653         * nt.c: remove bogus reference to sysmmsystem.h
13654
13655         * gui-x.c (popup_selection_callback): fix no selection abort.
13656
13657 2000-05-02  Andy Piper  <andy@xemacs.org>
13658
13659         * glyphs-msw.c (mswindows_update_widget): cope with nil text.
13660         (mswindows_widget_instantiate): ditto.
13661
13662         * glyphs-widget.c (initialize_widget_image_instance): initialize
13663         children correctly.
13664         (widget_instantiate): cope with children and items in the same
13665         instance.
13666
13667         * glyphs.c (mark_image_instance): cope with children as a first
13668         class member.
13669         (image_instance_equal): ditto.
13670         (image_instance_hash): ditto.
13671         (image_instance_changed): ditto.
13672
13673 2000-04-30  Andy Piper  <andy@xemacs.org>
13674
13675         * glyphs.c (subwindow_query_geometry): new function. Return some
13676         defaults.
13677         (subwindow_instantiate): don't assign dimensions if none have been
13678         given.
13679         (image_instantiator_format_create): add subwindow_query_geometry.
13680         (print_image_instance): cope with layouts as widgets.
13681
13682 2000-04-29  Andy Piper  <andy@xemacs.org>
13683
13684         * frame.c (delete_frame_internal): call
13685         free_frame_subwindow_instance_cache so that all subwindows are
13686         finalized before their parent.
13687         (mark_frame): remove subwindow_cachels.
13688         (Fmake_frame): remove subwindow_cachel manipulation.
13689         (allocate_frame_core): subwindow_instance_cache is a weak list.
13690         (delete_frame_internal): set subwindow_instance_cache to nil.
13691
13692         * glyphs-msw.c (mswindows_finalize_image_instance): make double
13693         finalization safe.
13694         (mswindows_finalize_image_instance): use the device
13695         not the domain as the domain may have died already.
13696
13697         * glyphs-x.c (x_finalize_image_instance): ditto.
13698         (x_subwindow_instantiate): remove SUBWINDOW_WIDTH &
13699         HEIGHT.
13700
13701         * redisplay-output.c (redisplay_unmap_subwindows): update for
13702         subwindow instance cache as a weak list.
13703         (redisplay_unmap_subwindows_maybe): ditto.
13704         (redisplay_unmap_subwindows_except_us): ditto.
13705
13706         * glyphs.c (unmap_subwindow): error checking will check the domain
13707         so don't deal with it here. Don't use cachels anymore.
13708         (map_subwindow): ditto.
13709         (update_subwindow_cachel_data): remove old accessor names.
13710         (subwindow_instantiate): remove SUBWINDOW_WIDTH & HEIGHT.
13711         (Fresize_subwindow): don't update cachel.
13712         (mark_subwindow_cachels):
13713         (update_subwindow_cachel_data):
13714         (add_subwindow_cachel):
13715         (get_subwindow_cachel_index):
13716         (update_subwindow_cachel):
13717         (reset_subwindow_cachels):
13718         (mark_subwindow_cachels_as_not_updated): deleted.
13719         (cache_subwindow_instance_in_frame_maybe): new function. Add a
13720         subwindow instance to the frame cache.
13721         (find_matching_subwindow): update for subwindow instance cache as
13722         a weak list.
13723         (update_widget_instances): ditto.
13724         (image_instance_type_to_mask):inlined.
13725         (free_frame_subwindow_instance_cache): new function. finalize all
13726         subwindows that are instantiated.
13727
13728         * glyphs.h (struct Lisp_Image_Instance): add display_data instead
13729         of cachel information.
13730         (IMAGE_INSTANCE_DISPLAY_X):
13731         (IMAGE_INSTANCE_DISPLAY_Y):
13732         (IMAGE_INSTANCE_DISPLAY_WIDTH):
13733         (IMAGE_INSTANCE_DISPLAY_HEIGHT):
13734         (XIMAGE_INSTANCE_DISPLAY_X):
13735         (XIMAGE_INSTANCE_DISPLAY_Y):
13736         (XIMAGE_INSTANCE_DISPLAY_WIDTH):
13737         (XIMAGE_INSTANCE_DISPLAY_HEIGHT): new accessors.
13738         remove subwindow_cachel structure and function references.
13739         (image_instance_type_to_mask): inline from glyphs.c
13740
13741         * redisplay.c (redisplay_frame): remove subwindow_cachel
13742         references.
13743
13744         * frame.h (struct frame): remove subwindow_cachels.
13745         (FRAME_SUBWINDOW_CACHE): access subwindow_instance_cache.
13746
13747         * frameslots.h: add subwindow_instance_cache.
13748
13749         * window.c (replace_window): check subwindow cache of replacement.
13750         (window_unmap_subwindows_cache_mapper):
13751         (window_unmap_subwindows): new functions. Unmap all subwindows
13752         cached on this window.
13753         (mark_window_as_deleted): unmap all subwindows.
13754
13755 2000-04-27  Andy Piper  <andy@xemacs.org>
13756
13757         * glyphs.h (IIFORMAT_METH_OR_GIVEN): cope with null meths.
13758
13759         * glyphs-widget.c (widget_layout): return something.
13760         (layout_layout): return something. Fail if not initialized.
13761         (layout_query_geometry): ditto.
13762         (image_instantiator_native_layout): new function. Initialized the
13763         native layout type.
13764         (widget_instantiate): don't do layout stuff here.
13765
13766         * glyphs.c (instantiate_image_instantiator): reorded calling or
13767         instantiate and post_instantiate with layout in between.
13768         (image_instance_layout): be more selective about deciding whether
13769         the layout has been done or not.
13770
13771         * glyphs.h (struct image_instantiator_methods): return a value
13772         from layout_method.
13773
13774 2000-04-26  Andy Piper  <andy@xemacs.org>
13775
13776         * glyphs.c (allocate_image_instance): make initial width and
13777         height unspecified. Set initialized to 0.
13778
13779         * syscommctrl.h new file. Encapsulates commctrl.h.
13780
13781         * syswindows.h new file. Encapsulates windows.h.
13782
13783         * ntplay.c: use new syswindows.h and syscommctrl.h header.
13784         * nt.c: ditto.
13785         * console-msw.h: ditto.
13786
13787         * redisplay-tty.c (tty_output_display_block): remove layout references.
13788
13789         * glyphs-msw.c (mswindows_widget_instantiate): use the domain
13790         window handle rather than just the frame.
13791
13792         * glyphs.c (mark_image_instance): remove layout references.
13793         (print_image_instance): ditto.
13794         (image_instance_equal): ditto.
13795         (image_instance_hash): ditto.
13796         (decode_image_instance_type): ditto.
13797         (encode_image_instance_type): ditto.
13798         (image_instantiate): ditto.
13799         (allocate_glyph): ditto.
13800         (Fimage_instance_height): ditto.
13801         (Fimage_instance_width): ditto.
13802         (update_subwindow): ditto.
13803
13804         * redisplay-x.c (x_output_display_block): recode for layouts as
13805         widgets.
13806
13807         * redisplay-output.c (redisplay_output_layout): recode for layouts
13808         as widgets.
13809         (compare_runes): remove layout references.
13810
13811         * redisplay-msw.c (mswindows_output_display_block): recode for
13812         layouts as widgets.
13813
13814         * glyphs-widget.c (image_instantiator_layout): remove
13815         layout_possible_dest_types.
13816         (layout_possible_dest_types): deleted.
13817
13818         * glyphs.h (image_instance_type): remove layout references.
13819         (struct Lisp_Image_Instance): ditto. Add initialized flag.
13820         (IMAGE_INSTANCE_INITIALIZED): new accessor.
13821         (XIMAGE_INSTANCE_INITIALIZED): ditto.
13822
13823 2000-04-25  Andy Piper  <andy@xemacs.org>
13824
13825         * glyphs-widget.c (image_instantiator_buttons):
13826         (image_instantiator_edit_fields):
13827         (image_instantiator_combo_box):
13828         (image_instantiator_scrollbar):
13829         (image_instantiator_progress_guage):
13830         (image_instantiator_tree_view):
13831         (image_instantiator_tab_control):
13832         (image_instantiator_labels):
13833         (image_instantiator_layout): call default post_instantiate method.
13834         (widget_post_instantiate): new function. Simply lays out the
13835         widgets.
13836
13837         * glyphs.h (struct image_instantiator_methods): add
13838         post_instantiate method.
13839
13840         * glyphs.c (instantiate_image_instantiator): add post_instantiate
13841         method calls.
13842
13843 2000-04-23  Andy Piper  <andy@xemacs.org>
13844
13845         * glyphs.h (struct image_instantiator_methods): add
13846         decode_domain_method.
13847         (struct Lisp_Image_Instance): remove subwindow frame - it can be
13848         derived from the domain.
13849         (IMAGE_INSTANCE_FRAME): new accessor.
13850         (XIMAGE_INSTANCE_FRAME): ditto.
13851
13852         * glyphs.c (print_image_instance): use IMAGE_INSTANCE_FRAME
13853         instead of _SUBWINDOW_FRAME.
13854         (finalize_image_instance): ditto.
13855         (Fimage_instance_foreground): ditto.
13856         (Fimage_instance_background): ditto.
13857         (image_instantiate): ditto.
13858         (update_subwindow_cachel): ditto.
13859         (update_subwindow): ditto.
13860         (unmap_subwindow): ditto.
13861         (map_subwindow): ditto
13862         (subwindow_instantiate): ditto.
13863         * glyphs-msw.c (mswindows_update_widget): ditto.
13864         (mswindows_progress_gauge_instantiate): ditto.
13865         (mswindows_tab_control_update): ditto.
13866         * glyphs-x.c (x_update_widget): ditto.
13867         (x_widget_instantiate): ditto.
13868         (x_tab_control_instantiate): ditto.
13869         (x_tab_control_update): ditto.
13870         * event-msw.c (mswindows_wnd_proc): ditto
13871
13872         * glyphs-widget.c (image_instantiator_layout): use
13873         subwindow_decode_domain.
13874         (image_instantiator_buttons): ditto.
13875         (image_instantiator_edit_fields): ditto.
13876         (image_instantiator_combo_box): ditto.
13877         (image_instantiator_scrollbar): ditto.
13878         (image_instantiator_progress_guage): ditto.
13879         (image_instantiator_tree_view): ditto.
13880         (image_instantiator_tab_control): ditto.
13881         (image_instantiator_labels): ditto.
13882         (image_instantiator_layout): ditto.
13883
13884         * glyphs.c: add instance error checking to many functions.
13885         (instantiate_image_instantiator): decode device from cache_domain.
13886         (image_instantiate): partially rewrite by using
13887         decode_image_instantiator_domain to determine what domain the
13888         instance needs to be cached in.
13889         (decode_image_instantiator_domain): new function. Determine what
13890         domain the image needs to be cached in.
13891         (check_window_subwindow_cache): new error checking function.
13892         (check_instance_cache_mapper): ditto.
13893         (check_image_instance_structure): ditto.
13894         (subwindow_decode_domain): new function. Encodes a window as a
13895         subwindow's cache domain.
13896         (image_instantiator_format_create): use it for text and
13897         subwindows.
13898
13899 2000-04-21  Andy Piper  <andy@xemacs.org>
13900
13901         * glyphs.c (image_instance_device): new function.
13902         (image_instance_frame): new function.
13903         (image_instance_window): new function.
13904         (image_instance_live_p): new function.
13905
13906         * window.c (mark_window_as_deleted): reset the subwindow_instance_
13907         cache to nil.
13908
13909         * glyphs.h (struct Lisp_Image_Instance): device->domain.
13910         (IMAGE_INSTANCE_DOMAIN): new accessor.
13911         (XIMAGE_INSTANCE_DOMAIN): ditto.
13912
13913         * glyphs-x.c (x_finalize_image_instance): device->domain.
13914
13915         * glyphs-msw.c (init_image_instance_geometry): device->domain.
13916         (mswindows_finalize_image_instance): ditto.
13917
13918         * glyphs-eimage.c (jpeg_instantiate): device->domain.
13919         (gif_instantiate): ditto.
13920         (png_instantiate): ditto.
13921         (tiff_instantiate): ditto.
13922
13923         * glyphs.c (instantiate_image_instantiator): use domain rather
13924         than device.
13925         (mark_image_instance): device -> domain.
13926         (print_image_instance): ditto.
13927         (finalize_image_instance): ditto.
13928         (image_instance_equal): ditto.
13929         (allocate_image_instance): ditto.
13930         (Fcolorize_image_instance): ditto.
13931         (query_string_geometry): ditto.
13932         (image_instantiate): ditto
13933         (query_string_font): ditto.
13934         (image_instantiate): ditto.
13935         (update_subwindow): ditto.
13936         (unmap_subwindow): ditto.
13937         (map_subwindow): ditto.
13938         (subwindow_instantiate): ditto.
13939
13940         * specifier.h (DOMAIN_DEVICE): new, semantically correct, decoder.
13941         (DOMAIN_FRAME): ditto.
13942         (DOMAIN_WINDOW): ditto.
13943         (DOMAIN_LIVE_P): ditto.
13944         (XDOMAIN_DEVICE): ditto.
13945         (XDOMAIN_FRAME): ditto.
13946         (XDOMAIN_WINDOW): ditto.
13947
13948         * specifier.c (Fvalid_specifier_domain_p): add image instances as
13949         a valid specifier domain.
13950
13951 2000-04-19  Andy Piper  <andy@xemacs.org>
13952
13953         * glyphs-widget.c (syms_of_glyphs_widget): remove
13954         widget-callback-current-channel.
13955         (vars_of_glyphs_widget): ditto.
13956         * glyphs.h: ditto
13957
13958         * gui.c (get_gui_callback): revert to previous behaviour.
13959
13960 2000-04-18  Andy Piper  <andy@xemacs.org>
13961
13962         * glyphs.h (struct Lisp_Image_Instance): add margin_width.
13963         (IMAGE_INSTANCE_MARGIN_WIDTH): new.
13964         (XIMAGE_INSTANCE_MARGIN_WIDTH): new.
13965
13966         * glyphs.c (image_instance_equal): add margin_width.
13967         (image_instance_hash): ditto.
13968
13969         * glyphs-widget.c (widget_instantiate): deal with margin-width.
13970         (layout_query_geometry): ditto.
13971         (layout_layout): ditto.
13972         (syms_of_glyphs_widget): add margin-width.
13973         (image_instantiator_layout): allow margin-width.
13974
13975         * glyphs.c (update_widget_instances): make a normal function.
13976         (syms_of_glyphs): remove Qupdate_widget_instances.
13977         * glyphs.h: ditto.
13978
13979         * gui-x.c (popup_selection_callback): use enqueue_magic_eval_event
13980         so that we don't corrupt ideas about the last event or
13981         command. Remove widget-callback-current-channel fiddling.
13982         * gui-msw.c (mswindows_handle_gui_wm_command): ditto.
13983
13984 2000-05-01  Martin Buchholz <martin@xemacs.org>
13985
13986         * XEmacs 21.2.33 is released.
13987
13988 2000-05-01  Yoshiki Hayashi  <yoshiki@xemacs.org>
13989
13990         * make-src-depend: Allow dots in header file name.
13991
13992 2000-05-01  Yoshiki Hayashi  <yoshiki@xmacs.org>
13993
13994         * mule-charset.h (struct charset_lookup): Add
13995         next_allocated_1_byte_leading_byte and
13996         next_allocated_2_byte_leading_byte.
13997         * mule-charset.c: Move above two variables so that those values
13998         will be dumped.
13999
14000 2000-04-26  Yoshiki Hayashi  <yoshiki@xemacs.org>
14001
14002         * insdel.c (find_charsets_in_bufbyte_string): Add Vcharset_ascii
14003         when string length is zero.
14004         (find_charsets_in_emchar_string): Ditto.
14005
14006 2000-04-29  Bjrn Torkelsson  <torkel@hpc2n.umu.se>
14007
14008         * lisp.h: extern Qdialog and Qmenubar.
14009
14010         * gui-x.c: added events.h.
14011                 also fixed typo which made the file uncompilable.
14012
14013         * general.c: Added Qmenubar and Qdialog
14014
14015 2000-04-28  Ben Wing  <ben@xemacs.org>
14016
14017         * frame-msw.c (mswindows_init_frame_1):
14018         * frame-msw.c (mswindows_mark_frame):
14019         * event-msw.c (mswindows_enqueue_dispatch_event):
14020         * console-msw.h:
14021         * console-msw.h (struct mswindows_frame):
14022         * console-msw.h (FRAME_MSWINDOWS_WIDGET_HASH_TABLE1):
14023         there are now three hash tables for callbacks.
14024         mswindows_enqueue_dispatch_event is no longer static.
14025
14026         * dialog-x.c (maybe_run_dbox_text_callback):
14027         * dialog-x.c (dbox_descriptor_to_widget_value):
14028         switch to new cons3 form for callbacks.
14029
14030         * glyphs-msw.c (mswindows_register_gui_item):
14031         * glyphs-msw.c (mswindows_widget_instantiate):
14032         * glyphs-msw.c (add_tree_item):
14033         * glyphs-msw.c (add_tab_item):
14034         new image instance parameter, so it can be passed to callback-ex.
14035         respect :callback-ex as well as :callback.
14036
14037         * glyphs-widget.c (VALID_GUI_KEYWORDS):
14038         add :callback-ex.
14039
14040         * glyphs.c (print_image_instance):
14041         prettify, e.g. now prints widget type.
14042
14043         * gui-x.h:
14044         certain funs have new image instance parameter.
14045
14046         * gui.c:
14047         * gui.c (get_gui_callback):
14048         * gui.c (gui_item_add_keyval_pair):
14049         * gui.c (gui_item_init):
14050         * gui.c (gui_add_item_keywords_to_plist):
14051         * gui.c (mark_gui_item):
14052         * gui.c (gui_item_hash):
14053         * gui.c (gui_item_equal):
14054         * gui.c (copy_gui_item):
14055         * gui.c (syms_of_gui):
14056         recognize callback-ex in a number of places.
14057         also, fix the annoying "can't get out of yes-no dialog" bug.
14058
14059         * gui.h:
14060         * gui.h (struct Lisp_Gui_Item):
14061         recognize callback-ex in a number of places.
14062
14063         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
14064         new parameter in button_item_to_widget_value.
14065
14066         * glyphs-x.c (x_update_widget):
14067         * glyphs-x.c (x_button_instantiate):
14068         * glyphs-x.c (x_button_update):
14069         * glyphs-x.c (x_progress_gauge_instantiate):
14070         * glyphs-x.c (x_edit_field_instantiate):
14071         * glyphs-x.c (x_combo_box_instantiate):
14072         * glyphs-x.c (x_tab_control_instantiate):
14073         * glyphs-x.c (x_label_instantiate):
14074         new image instance parameter in various places.
14075
14076         * event-Xt.c:
14077         * event-Xt.c (enqueue_Xt_dispatch_event):
14078         this fun gets exported.
14079
14080         * gui-msw.c:
14081         * gui-msw.c (mswindows_handle_gui_wm_command):
14082         handle both :callback and :callback-ex, and generate our own
14083         event because it's one of the callback-ex arguments.
14084
14085         * gui-x.c:
14086         * gui-x.c (popup_selection_callback):
14087         handle both :callback and :callback-ex, and generate our own
14088         event because it's one of the callback-ex arguments.
14089         * gui-x.c (button_item_to_widget_value):
14090         * gui-x.c (gui_items_to_widget_values_1):
14091         * gui-x.c (gui_item_children_to_widget_values):
14092         * gui-x.c (gui_items_to_widget_values):
14093         new image instance parameter in various places.
14094
14095         * fns.c (Freplace_list):
14096         fix small typo in doc string.
14097
14098         * lisp.h:
14099         declare enqueue_Xt_dispatch_event.
14100
14101 2000-04-28  Ben Wing  <ben@xemacs.org>
14102
14103         * buffer.c:
14104         * buffer.c (Frecord_buffer):
14105         * buffer.c (syms_of_buffer):
14106         delete record-buffer-hook.
14107
14108         * fns.c:
14109         * fns.c (Freplace_list):
14110         * fns.c (syms_of_fns):
14111         new primitive replace-list.
14112
14113         * frameslots.h:
14114         slot for old buffer-alist.
14115
14116         * lisp.h:
14117         exfun replace-list.
14118
14119         * redisplay.c:
14120         * redisplay.c (redisplay_frame):
14121         * redisplay.c (syms_of_redisplay):
14122         * redisplay.c (vars_of_redisplay):
14123         new hook buffer-list-changed-hook.
14124         call it.
14125
14126 2000-04-27  Ben Wing  <ben@xemacs.org>
14127
14128         * extents.h: extern in_modeline_generation.
14129
14130         * redisplay.c (generate_formatted_string_db): set
14131         in_modeline_generation.
14132
14133         * extents.c (extent_changed_for_redisplay): don't mark redisplay
14134         flags if in modeline generation.  otherwise frame-modified-tick
14135         is ticked far too often.
14136         Declare in_modeline_generation.
14137
14138 2000-04-26  Ben Wing  <ben@xemacs.org>
14139
14140         * emacs.c (vars_of_emacs): document quick-build "error-checking"
14141         option.
14142         (vars_of_emacs): add quick-build as an error-checking option.
14143         A bit kludgy, but there doesn't seem much point in creating
14144         a real var for this.
14145
14146         * config.h.in: put in an entry for QUICK_BUILD; remove NO_DOC_FILE.
14147
14148 2000-04-14  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14149
14150         * redisplay.h (struct display_line): Add a new variable,
14151         line_continuation.
14152
14153         * redisplay.c (create_text_block): Set dl->line_continuation if
14154         the line continues.
14155         (create_string_text_block): Ditto.
14156         (regenerate_window_incrementally): Use line_continuation instead
14157         of searching continuation glyph.
14158         (add_margin_runes): Call add_glyph_rune.
14159         (add_glyph_rune): Handle margin glyph.
14160
14161 2000-04-20  Martin Buchholz  <martin@xemacs.org>
14162
14163         * filelock.c (fill_in_lock_file_name):
14164         ANSIfy.
14165         Check for IS_ANY_SEP instead of '/'.
14166         (lock_file_1):
14167         Avoid generating gratuitous garbage.  Call user_login_name() directly.
14168         Never check errno without first seeing that system call failed.
14169         (unlock_file): Add GCPRO.
14170         (Flock_buffer): Fix docstring.
14171         (Ffile_locked_p): Fix docstring.  Add GCPRO.
14172
14173 2000-04-19  Martin Buchholz  <martin@xemacs.org>
14174
14175         * sysdep.c (get_pty_max_bytes):
14176         Fix hangs on DEC OSF 4.0 when (process-send-string) sends
14177         strings longer than 252 bytes.
14178
14179         * md5.c: Unconditionally include ANSI header <limits.h>
14180
14181         * glyphs-x.c (convert_EImage_to_XImage):
14182         * lisp-union.h (union Lisp_Object):
14183         Use consistently the syntax #ifdef FEATURE, not #if FEATURE.
14184
14185 2000-04-13  Yoshiki Hayashi  <yoshiki@xemacs.org>
14186
14187         * filelock.c (current_lock_owner): Remove unused variable o, p.
14188
14189 2000-04-17  Norbert Koch  <n.koch@eai-delta.de>
14190
14191         * callint.c: Remove multiply defined symbol Qlet
14192         (syms_of_callint): ditto.
14193
14194 2000-04-14  Andy Piper  <andy@xemacs.org>
14195
14196         * general.c (syms_of_general): add last-command, this-command, let
14197         and funcall.
14198
14199         * lisp.h: declare various symbols.
14200
14201         * glyphs.h: declare Qwidget_callback_current_channel;
14202
14203         * glyphs-widget.c (syms_of_glyphs_widget): add
14204         Qgui_callback_current_channel.
14205         (vars_of_glyphs_widget): add Vgui_callback_current_channel.
14206
14207         * gui-msw.c (mswindows_handle_gui_wm_command): bind
14208         widget-callback-current-channel when invoking the interactive
14209         arg. Also bind last-command and next-command when invoking the
14210         widget updates.
14211         * gui-x.c (popup_selection_callback): ditto.
14212
14213         * gui.c (get_gui_callback): massage args so that we are always
14214         calling eval. This allows us to add our own variable bindings
14215         outside.
14216
14217         * glyphs-x.c (x_button_instantiate): use
14218         gui_items_to_widget_values since this is GC safe.
14219         (x_progress_gauge_instantiate): ditto.
14220         (x_edit_field_instantiate): ditto.
14221         (x_label_instantiate): ditto.
14222
14223         * event-Xt.c (emacs_Xt_handle_magic_event): remove old printfs.
14224         (emacs_Xt_event_widget_focus_out): new function
14225         (emacs_Xt_event_widget_focus_in): new function. Set the keyboard
14226         focus.
14227         (emacs_Xt_event_add_widget_actions): new function. add focus
14228         functions as actions.
14229         (init_event_Xt_late): use it.
14230
14231 2000-04-14  Hrvoje Niksic  <hniksic@iskon.hr>
14232
14233         * event-stream.c (Fdispatch_event): Doc fix.
14234
14235 2000-03-29  SL Baur  <steve@musashimaru.m17n.org>
14236
14237         * postgresql.c: Remove all references to PQsetenv*.
14238
14239         * postgresql.h: Remove references to PGsetenvHandler object.
14240         * lrecord.h (lrecord_type): Ditto.
14241
14242 2000-04-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
14243
14244         * glyphs-msw.h (struct mswindows_image_instance_data): Added
14245         real_heigh and real_width members, and accessor macros for these.
14246
14247         * glyphs-msw.c (init_image_instance_geometry): New function.
14248         (init_image_instance_from_dibitmap): Use it.
14249         (mswindows_resource_instantiate): Use it.
14250         (init_image_instance_from_xbm_inline): Use it.
14251         (mswindows_initialize_image_instance_mask): Use real bitmap
14252         geometry.
14253         (mswindows_create_resized_bitmap): Ditto.
14254         (mswindows_create_resized_mask): Ditto.
14255
14256         * redisplay-msw.c (mswindows_output_dibitmap): Stretch real mask
14257         and bitmap to their surface size.
14258
14259 2000-04-11  Jan Vroonhof  <jan@xemacs.org>
14260
14261         * process-unix.c (unix_send_process): Guard against process MIA
14262         after Faccept_process_output.
14263
14264 2000-04-11  Ben Wing  <ben@xemacs.org>
14265
14266         * eval.c (unbind_to_hairy): fix brokenness introduced by
14267         nanosecond speed improvements.
14268
14269 2000-04-07  Raymond Toy  <toy@rtp.ericsson.se>
14270
14271         * sunplay.c (init_device): To play sounds correctly, the device
14272         apparently needs to be initialized at least once by XEmacs.  Make
14273         it so.
14274
14275 2000-04-10  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14276
14277         * redisplay.c (add_margin_runes): Add text image glyph
14278           handling.
14279
14280 2000-04-06  Yoshiki Hayashi  <yoshiki@xemacs.org>
14281
14282         * lisp.h (DOESNT_RETURN): Don't declare as volatile when
14283         gcc is newer than 2.5.
14284
14285 2000-04-06  Colin Rafferty  <colin@xemacs.org>
14286
14287         * lisp.h (FLEXIBLE_ARRAY_STRUCT_SIZEOF): Created.
14288
14289         * fns.c (size_bit_vector):
14290         * alloc.c (size_vector):
14291         (make_vector_internal):
14292         (make_bit_vector_internal):
14293         (sweep_bit_vectors_1):
14294         Replace calls to offsetof with FLEXIBLE_ARRAY_STRUCT_SIZEOF macro.
14295
14296 2000-04-06  Andy Piper  <andy@xemacs.org>
14297
14298         * gmalloc.c (malloc): undo previous change.
14299         (malloc): ditto.
14300         (free): ditto.
14301         (realloc): ditto.
14302
14303 2000-04-06  IKEYAMA Tomonori <tomonori@suiyokai.org>
14304
14305         * line-number.c (buffer_line_number): Revert to former version.
14306
14307 2000-04-06  Andy Piper  <andy@xemacs.org>
14308
14309         * gmalloc.c (malloc): add error checking.
14310         (malloc): ditto.
14311         (free): ditto.
14312         (realloc): ditto.
14313
14314         * dialog-x.c (dbox_descriptor_to_widget_value): add extra
14315         button_item_to_widget_value arg.
14316
14317         * glyphs-x.c (x_button_instantiate): add extra
14318         button_item_to_widget_value arg.
14319         (x_progress_gauge_instantiate): ditto.
14320         (x_edit_field_instantiate): ditto.
14321         (x_label_instantiate): ditto.
14322
14323         * gui-x.c (gui_items_to_widget_values_1): add extra
14324         button_item_to_widget_value arg.
14325         (button_item_to_widget_value): add extra menu_item_p arg.
14326
14327         * gui-x.h: change signature of button_item_to_widget_value.
14328
14329         * menubar-x.c (menu_item_descriptor_to_widget_value_1): add extra
14330         button_item_to_widget_value arg.
14331
14332 2000-04-03  Yoshiki Hayashi  <yoshiki@xemacs.org>
14333
14334         * buffer.h (struct buffer): auto_save_modified should be long.
14335
14336 2000-04-05  Andy Piper  <andy@xemacs.org>
14337
14338         * glyphs-widget.c (widget_instantiate): pixwidth != pixheight
14339         type.
14340         (button_query_geometry): give a little more room so that athena
14341         buttons fit.
14342
14343 2000-04-05  Andy Piper  <andy@xemacs.org>
14344
14345         * faces.c (complex_vars_of_faces): The widget face should inherit
14346         the font of the gui-element face.
14347
14348 2000-04-04  Andy Piper  <andy@xemacs.org>
14349
14350         * glyphs-x.c (x_button_update): new function. unconditionally
14351         update a button's state when the instance is dirty.
14352         (image_instantiator_format_create_glyphs_x): add x_button_update.
14353         (x_widget_instantiate): remove old resize cruft.
14354
14355 2000-04-02  Andy Piper  <andy@xemacs.org>
14356
14357         * frame.c (change_frame_size_1): The introduction of gutters means
14358         that we need to allow 0 as a potential frame dimension.
14359
14360 2000-04-02  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14361
14362         * redisplay.c (add_glyph_rune): Don't set 0 to bufpos for text
14363         image glyph if allow_cursor.
14364         (add_hscroll_rune): Don't allow cursor to border glyph.
14365         (create_text_block): Ditto.
14366
14367         * redisplay-output.c (redisplay_move_cursor): Do nothing even if
14368         text not in buffer.
14369         (redisplay_output_layout): Call ensure_face_cachel_complete for
14370         text image glyph.
14371
14372
14373 2000-03-16  IKEYAMA Tomonori  <tomonori@suiyokai.org>
14374
14375         * redisplay.c (add_glyph_rune): Adding text image as text runes.
14376
14377         * redisplay-output.c (redisplay_move_cursor): NO_CURSOR if text
14378         not in buffer
14379
14380         * redisplay-tty.c (tty_output_display_block): Delete the routine
14381         for text image glyph
14382         * redisplay-x.c (x_output_display_block): ditto
14383         * redisplay-msw.c (mswindows_output_display_block): ditto
14384
14385 2000-02-02  Mike Alexander  <mta@arbortext.com>
14386
14387         Note: Some of these were committed by accident as part of other
14388         patches.
14389
14390         * regex.c (regex_compile): Avoid compiler warnings.
14391
14392         * ntproc.c (sys_spawnve): Avoid compiler warnings.
14393
14394         * nt.h: Declare term_ntproc correctly.
14395
14396         * nt.c: Remove incorrect declaration of get_home_directory which
14397         is declared correctly in lisp.h.
14398
14399         * keymap.c (get_keyelt): Avoid compiler warnings.
14400         (raw_lookup_key_mapper): Avoid compiler warnings.
14401
14402         * gutter.c (gutter_was_visible): Add return statement to avoid warning.
14403
14404         * glyphs-eimage.c (png_instantiate): Avoid compiler warnings.
14405
14406         * filemode.c (mode_string): Avoid compiler warnings.
14407
14408         * file-coding.c (Fcoding_system_aliasee): Add return statement to
14409         avoid warning.
14410
14411         * events-mod.h: Undef some things that winuser.h defines differently.
14412
14413         * data.c (Faset): Avoid compiler warnings.
14414
14415         * alloc.c (Fmake_byte_code): Avoid compiler warnings.
14416
14417 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14418
14419         * sound.c (Fplay_sound_file): Wrap ESD in start/stop_interrupts.
14420         Fall through to simple beep on error.
14421         Replace "extern" by real header file.
14422
14423         * linuxplay.c: Use nativesound.h
14424         (play_sound_data): Return error code. Be less verbose on error.
14425
14426         * sunplay.c: Use nativesound.h
14427         (play_sound_data): Return error code. Be less verbose on error.
14428
14429         * ntplay.c: Use nativesound.h
14430         (play_sound_data): Return fake error code
14431
14432         * sgiplay.c: Use nativesound.h
14433         (play_sound_data): Return error code
14434
14435         * hpplay.c: Use nativesound.h, partially implement
14436         new error code. Break compilation until finished.
14437         (play_sound_data): error code.
14438
14439         * nativesound.h (play_sound_file):
14440           (play_sound_data): Prototype in new header.
14441
14442 2000-03-31  Andy Piper  <andy@xemacs.org>
14443
14444         * glyphs-widget.c: (button_query_geometry): new function. Adjust
14445         for toggle and radio buttons.
14446         (image_instantiator_buttons): use it.
14447
14448 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
14449
14450         * scrollbar-x.c (x_update_vertical_scrollbar_callback):
14451         (x_update_horizontal_scrollbar_callback): Return if no mirror was
14452         found. Scrollbar event probably belonged to some old config.
14453
14454 2000-03-31  Andy Piper  <andy@xemacs.org>
14455
14456         * glyphs-widget.c (widget_instantiate): use LAYOUT_VERTICAL rather
14457         than 1.
14458         (initialize_widget_image_instance): default layout to
14459         LAYOUT_HORIZONTAL rather than 0.
14460         (widget_instantiate): reverse the item list at the end rather than
14461         every iteration.
14462         (layout_layout): re-code for the border text at the front of the
14463         item list rather than at the end.
14464         (layout_query_geometry): ditto. Pick up fixed and dynamic sizes
14465         provided by the user.
14466         (widget_query_geometry): comment.
14467
14468 2000-03-30  Andy Piper  <andy@xemacs.org>
14469
14470         * glyphs-widget.c (image_instantiator_layout): allow standard
14471         widget keywords in layouts.
14472
14473         * gutter.c (output_gutter): cope with nil gutter contents.
14474
14475         * frame.c (Fset_frame_properties): add gutter docs.
14476
14477 2000-03-29  Andy Piper  <andy@xemacs.org>
14478
14479         * toolbar-msw.c (TBSTYLE_FLAT): add.
14480         (mswindows_output_toolbar): minor fiddling.
14481
14482 2000-03-29  Andy Piper  <andy@xemacs.org>
14483
14484         * gutter.c (output_gutter): force gutter size recalculation if
14485         what we are trying to display won't fit.
14486         (update_gutter_geometry): new function. A per-gutter version of
14487         update_frame_gutter_geometry.
14488         (update_frame_gutter_geometry): use it.
14489         (redraw_exposed_gutter): add extra debugging output.
14490
14491 2000-03-28  Mike Alexander  <mta@arbortext.com>
14492
14493         * dumper.c: Declare pdump_hFile and pdump_hMap (Windows only)
14494         (pdump_file_unmap): Implement it on Windows
14495         (pdump_file_get): Save alocated handles for pdump_file_unmap
14496
14497 2000-03-28  Andy Piper  <andy@xemacs.org>
14498
14499         * gui.c (get_gui_callback): treat Quit specially.
14500
14501 2000-03-27  Andy Piper  <andy@xemacs.org>
14502
14503         * glyphs.c (image_instantiate): be careful to check in the same
14504         way we assigned.
14505
14506 2000-03-27  Didier Verna  <didier@xemacs.org>
14507
14508         * config.h.in: define the proper SMART_INCLUDE macro.
14509         handle renaming of `foo_h_path' to `foo_h_file'.
14510
14511         * database.c: ditto.
14512
14513         * emacs.c: ditto.
14514
14515         * linuxplay.c: ditto.
14516
14517         * terminfo.c: ditto.
14518
14519         * tooltalk.h: ditto.
14520
14521 2000-03-27  Andy Piper  <andy@xemacs.org>
14522
14523         * glyphs-msw.c (mswindows_update_widget): make sure the widget
14524         gets updated whenever the face might have changed.
14525
14526 2000-03-26  Mike Alexander  <mta@arbortext.com>
14527
14528         * dumper.c (pdump_resource_free): Fix the comment.
14529
14530 2000-03-21  Olivier Galibert  <galibert@pobox.com>
14531
14532         * input-method-xlib.c (XIM_init_frame): Remove painful warning.
14533
14534 2000-03-22  Mike Alexander  <mta@arbortext.com>
14535
14536         * dumper.c: Include Windows headers on Windows
14537         (pdump_resource_free): Add a body to the function
14538         (pdump_load): exe_name -> exe_path and add some comments.
14539
14540 2000-03-25  Mike Alexander  <mta@arbortext.com>
14541
14542         * gui.c (copy_gui_item_tree): Return a value in all cases
14543
14544 2000-03-21  Didier Verna  <didier@xemacs.org>
14545
14546         * config.h.in: move INCLUDE_GLUE_1 and INCLUDE_GLUE_2 here from
14547         lwlib/config.h.in.
14548         (SMART_INCLUDE): new macro.
14549         (POSTGRES_INCLUDE): new macro to include postgresql headers from
14550         the proper location.
14551
14552         * postgresql.c: use it.
14553
14554         * inline.c: ditto.
14555
14556 2000-03-24  Andy Piper  <andy@xemacs.org>
14557
14558         * gutter.c (redraw_exposed_gutters): must be "in display" when we
14559         do this.
14560
14561 2000-03-24  Andy Piper  <andy@xemacs.org>
14562
14563         * redisplay-output.c (compare_runes): use image_instance_changed
14564         to detect changes. Do not depend on glyphs_changed, only depend on
14565         dirtiness.
14566          (redisplay_output_layout): add debug messages.
14567         (compare_runes): ditto.
14568
14569         * glyphs.h: declare new functions.
14570         (struct Lisp_Image_Instance): remove percent and associated
14571         accessors.
14572
14573         * gui.h: declare new copying functions.
14574
14575         * gui.c (copy_gui_item_tree): new function.
14576         (copy_gui_item): new function.
14577         (gui_item_id_hash): revert to standard hash.
14578         (gui_item_hash): ditto.
14579         (gui_item_hash_internal): deleted.
14580         (mark_gui_item): mark value.
14581         (gui_item_add_keyval_pair): add value.
14582         (gui_item_init): ditto.
14583         (gui_add_item_keywords_to_plist): ditto.
14584         (gui_item_equal): ditto.
14585         (syms_of_gui): add Q_value.
14586
14587         * glyphs-x.c (x_progress_gauge_update): use pending items and
14588         value for setting the state.
14589         (x_update_widget): don't set items from pending here.
14590
14591         * glyphs-widget.c (update_widget): update items here.
14592         (progress_gauge_set_property): use items for storing value. Put
14593         new value in pending items.
14594
14595         * glyphs-msw.c (mswindows_progress_gauge_update): use pending
14596         items for new value. Convert percent -> value.
14597         (mswindows_tab_control_update): don't update items here.
14598
14599         * glyphs.c (Fupdate_widget_instances): use image_instance_changed.
14600         (update_subwindow): ditto.
14601         (image_instance_changed): new function. Compare hash values and
14602         past and present widget items.
14603         (image_instantiate): We more careful about where we instantiate
14604         things.
14605         (image_instantiate): add error checking.
14606
14607         * gutter.c (syms_of_gutter): use -hook.
14608
14609 2000-03-20  Yoshiki Hayashi  <yoshiki@xemacs.org>
14610
14611         * console-tty.c (Fset_console_tty_input_coding_system): Use
14612         Qkeyboard.
14613         (Fset_console_tty_output_coding_system): Use Qterminal.
14614         (tty_init_console): Use Qkeyboard and Qterminal.
14615
14616 2000-03-21  Ben Wing  <ben@xemacs.org>
14617
14618         * ntproc.c (create_child): remove bogus HAVE_NTGUI's.
14619         From Mike Alexander <mta@arbortext.com>.
14620
14621 2000-03-21  Ben Wing  <ben@xemacs.org>
14622
14623         * event-msw.c (mswindows_need_event): Horrible kludge to fix
14624         process brokenness.  Proper implementation to come.
14625         * callproc.c:
14626         Rename call-process-internal to old-call-process-internal.
14627         New impl. in process.el.
14628
14629 2000-03-21  Martin Buchholz  <martin@xemacs.org>
14630
14631         * Makefile.in.in: Coalesce HAVE_NATIVE_SOUND code fragments.
14632
14633 2000-03-20  Andy Piper  <andy@xemacs.org>
14634
14635         * glyphs.c (full_list_hash): make hashes of the same elements in
14636         different orders return different values.
14637
14638 2000-03-20  Martin Buchholz <martin@xemacs.org>
14639
14640         * XEmacs 21.2.32 is released.
14641
14642 2000-03-20  Martin Buchholz  <martin@xemacs.org>
14643
14644         * buffer.h (DFC_ALLOCA_USE_CONVERTED_DATA):
14645         (DFC_MALLOC_USE_CONVERTED_DATA):
14646         Add aliasing-safe casts to allow use with char* or unsigned char*
14647         lvalues.
14648
14649         * eldap.c (Fldap_open):
14650         (Fldap_search_basic):
14651         (Fldap_add):
14652         (Fldap_modify):
14653         Make C++-compilable.
14654         Make sure GCPRO'ed variables are initialized.
14655         Use temp variables to avoid repeated calls to Flength.
14656
14657 2000-03-16  Martin Buchholz  <martin@xemacs.org>
14658
14659         * sysfile.h:
14660         Make sure PATH_MAX is always defined.
14661         Include limits.h for PATH_MAX.
14662         Deprecate use of MAXPATHLEN.
14663
14664 2000-03-10  Martin Buchholz  <martin@xemacs.org>
14665
14666         * emacs.c: Add reinit_vars_of_fileio.
14667         * symsinit.h: Add reinit_vars_of_fileio.
14668         * fileio.c (reinit_vars_of_fileio): New.
14669         * fileio.c (Fmake_temp_name):
14670         Initialize temp_name random number from microseconds to make
14671         collisions even less likely.  Initialize always at process startup
14672         time.  (make-temp-name) used to return the same file name twice in
14673         a row when PDUMP.
14674         Random stylistic fiddling.
14675         Comment fixes.
14676
14677 2000-03-20  Andy Piper  <andy@xemacs.org>
14678
14679         * glyphs.c (image_instantiate): allow text glyphs to be
14680         instantiated in the minibuffer window.
14681
14682 2000-03-19  Andy Piper  <andy@xemacs.org>
14683
14684         * glyphs.c (image_instance_hash): be careful about which items we
14685         hash on.
14686
14687         * glyphs-widget.c (tab_control_set_property): record into pending
14688         items rather than the actual items.
14689
14690         * glyphs-x.c (x_update_widget): use pending items to update with.
14691
14692         * glyphs-msw.c (mswindows_tab_control_update): use pending items
14693         to update with.
14694
14695         * glyphs.c (mark_image_instance): mark pending items.
14696
14697         * window.c (Fset_window_configuration): record the buffer.
14698         (Fselect_window): totally revert previous change which breaks many
14699         things.
14700
14701 2000-03-18  Andy Piper  <andy@xemacs.org>
14702
14703         * glyphs-msw.c (mswindows_tab_control_update): force selected
14704         item.
14705
14706         * glyphs.c (image_instantiate): don't allow the minibuffer as a
14707         window domain cache, otherwise we get inconsistencies at
14708         startup. There is something fishy at startup which can lead to the
14709         minibuffer being the selected window when the gutter content is
14710         instantiated.
14711
14712         * gui.c (parse_gui_item_tree_list): add probably unnecessary
14713         gcpros.
14714         (parse_gui_item_tree_children): ditto.
14715         (parse_gui_item_tree_item): ditto.
14716
14717         * glyphs.c (Fupdate_widget_instances): return something.
14718
14719 2000-03-18  Yoshiki Hayashi  <yoshiki@xemacs.org>
14720
14721         * window.c (Fselect_window): Undo 2000-03-17 change.
14722
14723 2000-03-17  SL Baur  <steve@musashimaru.m17n.org>
14724
14725         * postgresql.c (Fpq_setenv): Remove this turkey when linking
14726         against v7.0 libraries.  Insta-coredump city until the postgres
14727         folks fix it.
14728
14729 2000-03-17  Andy Piper  <andy@xemacs.org>
14730
14731         * faces.c (complex_vars_of_faces): don't give the widget face an
14732         inherited background pixmap.
14733
14734         * glyphs-msw.c (mswindows_tab_control_instantiate): select the
14735         selected item.
14736
14737         * event-stream.c (Fdispatch_non_command_events): return something.
14738
14739         * gutter.c (output_gutter): use widget face.
14740         (clear_gutter): ditto.
14741
14742         * NEWS: adjust again.
14743
14744         * window.c (Fselect_window): make sure this runs to completion to
14745         avoid oddities with Fset_window_configuration.
14746         (Fcurrent_window_configuration): in general do not save the
14747         minibuffer as the selected window.
14748
14749         * glyphs.h (IMAGE_INSTANCE_HASH_DEPTH): increase.
14750
14751 2000-03-16  Olivier Galibert  <galibert@pobox.com>
14752
14753         * emacs.c (Frunning_temacs_p): Revert previous patch.
14754         (main_1): Reinitialize running_temacs_argc if pdump_load succeeds.
14755
14756 2000-03-16  Andy Piper  <andy@xemacs.org>
14757
14758         * glyphs-x.c (x_tab_control_update): if no widget values then
14759         return.
14760
14761         * NEWS: update for new features.
14762
14763         * event-Xt.c (emacs_Xt_force_event_pending): new function. Post a
14764         synthetic event to the native system.
14765         (reinit_vars_of_event_Xt): set force_event_pending to
14766         emacs_Xt_force_event_pending.
14767
14768         * events.h (struct event_stream): add force_event_pending.
14769
14770         * specifier.c (recompute_one_cached_specifier_in_window): add
14771         comment.
14772
14773         * redisplay.c (redisplay_frame): don't call
14774         update_frame_subwindows. Reset subwindow cachels when
14775         subwindows_changed, removing this was an optimization too far.
14776
14777         * redisplay-output.c (compare_runes): reorganize so that we catch
14778         glyph changes when we want them. Set optimize_output when this
14779         would help layouts.
14780         (redisplay_output_layout): remove frame_really_changed, use
14781         optimize_output instead.
14782
14783         * redisplay-msw.c (mswindows_output_display_block): reset
14784         optimize_output after outputting a glyph.
14785         * redisplay-x.c (x_output_display_block): ditto.
14786         * redisplay-tty.c (tty_output_display_block): ditto.
14787
14788         * gutter.c: (specifier_vars_of_gutter): use new spec changed
14789         functions.
14790         (gutter_specs_changed): do specific gutter positions.
14791         (top_gutter_specs_changed): new function. Only update the
14792         specified gutter specs.
14793         (bottom_gutter_specs_changed): ditto.
14794         (left_gutter_specs_changed): ditto.
14795         (right_gutter_specs_changed): ditto.
14796
14797         * gui.c (gui_item_hash_internal): new function, does a real hash.
14798         (gui_item_id_hash): use it.
14799         (gui_item_hash): hash the eval'ed gui_item.
14800
14801         * gui-x.c (popup_selection_callback): send an eval event to call
14802         Fupdate_widget_instances.
14803
14804         * gui-msw.c (mswindows_handle_gui_wm_command): send an eval event
14805         to call Fupdate_widget_instances.
14806
14807         * glyphs.h (struct Lisp_Image_Instance): add optimize_output flag.
14808         (IMAGE_INSTANCE_OPTIMIZE_OUTPUT): access it.
14809
14810         * glyphs.c: (update_frame_subwindows): deleted.
14811         (Fupdate_widget_instances): new function for updating the dirty
14812         state of widgets that might have changed.
14813         (syms_of_glyphs): add Qupdate_widget_instances.
14814         (full_list_hash): hash a list completely.
14815         (image_instance_hash): use it for items and properties.
14816
14817         * frame-msw.c (mswindows_size_frame_internal): remove unused
14818         variable.
14819
14820         * faces.h (struct face_cachel): fix comment.
14821
14822         * event-stream.c (Fdispatch_non_command_events): new
14823         function. Process non-command events, forcing an event cycle
14824         beforehand.
14825         (syms_of_event_stream): declare.
14826         (event_stream_force_event_pending): new function. Force an event
14827         on the native event queue so that an event cycle will occur next
14828         time we check.
14829
14830         * event-msw.c:
14831         (struct ntpipe_shove_stream):
14832         (mswindows_enqueue_dispatch_event):
14833         (mswindows_dequeue_dispatch_event):
14834         (mswindows_cancel_dispatch_event):
14835         (mswindows_pump_outstanding_events):
14836         (mswindows_drain_windows_queue):
14837         (mswindows_handle_paint):
14838         (mswindows_wnd_proc):
14839         (mswindows_key_to_emacs_keysym):
14840         (get_process_input_waitable):
14841         (emacs_mswindows_delete_stream_pair): re-indent file.
14842         (mswindows_need_event): do not process further fds if the windows
14843         fd is set, otherwise you get endless XM_BUMPQUEUE cycles. This
14844         fixes the 100% cpu problem.
14845         (reinit_vars_of_event_mswindows): set force_event_pending to 0.
14846
14847 2000-03-15  Olivier Galibert  <galibert@pobox.com>
14848
14849         * alloc.h: New.
14850         * dumper.h: New.
14851         * dumper.c: New.
14852
14853         * emacs.c: Moved dump file searching to dumper.c.
14854         (Frunning_temacs_p): Fixed.
14855
14856         * alloc.c: Moved everything pdump-related to dumper.c.  Removed
14857         last_lrecord_type_index_assigned.
14858
14859 2000-02-20  Olivier Galibert  <galibert@pobox.com>
14860
14861         * symsinit.h: Added reinit parameter to init_console_stream
14862         declaration.
14863
14864         * lisp.h: Added file parameter to pdump_load declaration.
14865
14866         * emacs.c (main_1): Added -nd/--nodump-file and -sd/--show-dump-id
14867         support.  Added dump file searching.
14868
14869         * config.h.in: Added EMACS_PROGNAME.
14870
14871         * console-stream.c (init_console_stream): Fix reinitialisation
14872         when running from temacs.
14873
14874         * alloc.c (pdump): Add id support.
14875         (pdump_load): Add file parameter and signature/id support.
14876
14877         * Makefile.in.in: Add full pdump support.
14878
14879 2000-03-15  SL Baur  <steve@musashimaru.m17n.org>
14880
14881         * postgresql.c: Update documentation to reflect latest code
14882         status.
14883         (print_result): Show tuple counts in printed representation when
14884         appropriate.
14885         (Fpq_put_nbytes): MULE-ize.
14886         (Fpq_get_line_async): Ditto.
14887
14888 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14889
14890         * postgresql.c (Fpq_lo_import): Fix return value.
14891         Suggested by: Kenji Itoh <keit@tpj.co.jp>.
14892
14893 2000-03-13  Ben Wing  <ben@xemacs.org>
14894
14895         * alloc.c (pdump_load):
14896         Fix compile warning under mswin.
14897
14898 2000-03-14  SL Baur  <steve@musashimaru.m17n.org>
14899
14900         * postgresql.c: Mule-ization, bug fixes.
14901         Use PG_CODING to encapsulate coding system name changes.
14902         Backport a version of TO_EXTERNAL format for 21.1/InfoDock.
14903         (pg-coding-system): Create.
14904
14905         (Fpq_conn_defaults): Mule-ize.
14906         (Fpq_connectdb): Mule-ize & bug fix.
14907         (Fpq_connect_start): Mule-ize.
14908         (Fpq_set_client_encoding): Mule-ize.
14909         (Fpq_finish): Document `DEAD' connection status.
14910         (Fpq_clear): Ditto.
14911         (Fpq_pgconn): Mule-ize.
14912         (Fpq_exec): Mule-ize & bug fix.
14913         (Fpq_send_query): Ditto.
14914         (Fpq_get_result): Ditto.
14915         (Fpq_res_status): Mule-ize.
14916         (Fpq_result_error_message): Mule-ize.
14917         (Fpq_ntuples): fix comments.
14918         (Fpq_fname): Mule-ize.
14919         (Fpq_fnumber): Mule-ize.
14920         (Fpq_ftype): fix comments.
14921         (Fpq_get_value): Mule-ize.
14922         (Fpq_cmd_status): Ditto.
14923         (Fpq_cmd_tuples): Ditto.
14924         (Fpq_oid_value): Ditto.
14925         (Fpq_notifies): Ditto.
14926         (Fpq_lo_import): Ditto.
14927         (Fpq_lo_export): Ditto.
14928         (Fpq_get_line): Ditto.
14929         (Fpq_put_line): Mule-ize and bug fix.
14930         (syms_of_postgresql): Fix ifdef'ing, add pg-coding-system.
14931
14932 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
14933
14934         * postgresql.c (vars_of_postgresql): Mule-ize.
14935         (Fpq_conn_defaults): Ditto.
14936
14937 2000-03-12  Ben Wing  <ben@xemacs.org>
14938
14939         * alloc.c (Fmake_byte_code):
14940         * alloc.c (debug_string_purity_print):
14941         * alloc.c (pdump_backtrace):
14942         * alloc.c (pdump_get_indirect_count):
14943         * alloc.c (pdump_register_sub):
14944         * alloc.c (pdump_register_object):
14945         * alloc.c (pdump_register_struct):
14946         * alloc.c (pdump_dump_data):
14947         * alloc.c (pdump_reloc_one):
14948         Minor cleanups.
14949
14950         * console-msw.c:
14951         * console-msw.c (GetConsoleHwnd):
14952         * console-msw.c (msw_hide_console):
14953         * console-msw.c (msw_show_console):
14954         * console-msw.c (msw_ensure_console_buffered):
14955         * console-msw.c (msw_output_console_string):
14956         * console-msw.c (console_type_create_mswindows):
14957
14958         a) Added functions to manipulate the console window for use with
14959         shell support.
14960
14961         b) Added support for writing text to the console, which is now
14962         used under Windows when xemacs is not being run non-interactively,
14963         to write text that would otherwise be destined for stdout because
14964         under these circumstances, text written to stdout tends to
14965         disappear and not be seen.
14966
14967         * console-msw.h:
14968         * event-Xt.c:
14969         * event-Xt.c (x_event_to_emacs_event):
14970         * event-Xt.c (describe_event_window):
14971         * events-mod.h (XEMACS_MOD_CONTROL):
14972         * events.c:
14973         * events.c (Fmake_event):
14974         * events.c (character_to_event):
14975         * events.c (event_to_character):
14976         * events.c (format_event_object):
14977         * events.c (Fevent_modifiers):
14978         * events.h:
14979         * events.h (struct key_data):
14980         * events.h (struct button_data):
14981         * events.h (struct misc_user_data):
14982         * frame-x.c (Fcde_start_drag_internal):
14983         * frame-x.c (Foffix_start_drag_internal):
14984         * gpmevent.c (Freceive_gpm_event):
14985         * keymap.c:
14986         * keymap.c (bucky_sym_to_bucky_bit):
14987         * keymap.c (control_meta_superify):
14988         * keymap.c (make_key_description):
14989         * keymap.c (keymap_lookup_directly):
14990         * keymap.c (create_bucky_submap):
14991         * keymap.c (keymap_store):
14992         * keymap.c (define_key_check_and_coerce_keysym):
14993         * keymap.c (define_key_parser):
14994         * keymap.c (define_key_alternate_name):
14995         * keymap.c (Fdefine_key):
14996         * keymap.c (raw_lookup_key_mapper):
14997         * keymap.c (struct map_keymap_unsorted_closure):
14998         * keymap.c (map_keymap_unsorted_mapper):
14999         * keymap.c (map_keymap_sort_predicate):
15000         * keymap.c (map_keymap_sorted):
15001         * keymap.c (accessible_keymaps_mapper_1):
15002         * keymap.c (where_is_recursive_mapper):
15003         * keymap.c (describe_map_mapper):
15004         * keymap.c (describe_map_sort_predicate):
15005         * keymap.c (describe_map):
15006         * keymap.c (complex_vars_of_keymap):
15007         And a number of other files, the key modifier preprocessor
15008         constants that xemacs uses have names that conflict with constants
15009         defined under MS Windows for other purposes, so they were renamed
15010         to begin with the prefix XEMACS_. The variables that hold such
15011         modifiers were changed to consistently be of type int to fix
15012         various compile warnings.
15013
15014         * console.c (complex_vars_of_console):
15015         * device.c:
15016         * device-msw.c:
15017         * device-msw.c (mswindows_finish_init_device):
15018         * device-msw.c (msw_get_workspace_coords):
15019         * device-msw.c (mswindows_device_system_metrics):
15020         and various other files, added support for a new
15021         device property called offset-workspace which returns the position
15022         of the upper left corner of the workspace area and goes along with
15023         the existing size-workspace property.
15024
15025         * dialog-msw.c:
15026         * dialog-msw.c (push_bufbyte_string_as_unicode):
15027         * dialog-msw.c (mswindows_popup_dialog_box):
15028         Added support for XEmacs-style accelerator specifications in
15029         button text.  Note: I didn't add support for this under X Windows,
15030         and somebody needs to do this.
15031
15032         * dialog.c:
15033         * dialog.c (Fpopup_dialog_box):
15034         Documented the support for accelerators that was just mentioned.
15035
15036         editfns.c (get_home_directory): Changed behavior under Windows
15037         when HOME not defined; former behavior was irretrievably broken.
15038
15039         * emacs.c:
15040         * emacs.c (main_1):
15041         * emacs.c (main):
15042         * minibuf.c (clear_echo_area_internal):
15043         * minibuf.c (echo_area_append):
15044         * print.c:
15045         * print.c (std_handle_out_external):
15046         * print.c (std_handle_out_va):
15047         * print.c (fatal):
15048         * print.c (write_string_to_stdio_stream):
15049         * print.c (output_string):
15050         * print.c (debug_print):
15051         * print.c (debug_backtrace):
15052         * print.c (debug_short_backtrace):
15053         Cleaned up the code that prints text to stdout so that this can be
15054         changed to output into a console window instead under MS Windows,
15055         as described above.
15056
15057         * eval.c:
15058         * eval.c (DEFEND_AGAINST_THROW_RECURSION):
15059         * eval.c (internal_catch):
15060         * eval.c (unwind_to_catch):
15061         * eval.c (throw_or_bomb_out):
15062         * eval.c (condition_case_1):
15063         * eval.c (signal_1):
15064         * eval.c (check_error_state_sanity):
15065         * eval.c (call_with_suspended_errors_1):
15066         * eval.c (call_with_suspended_errors):
15067         * eval.c (reinit_vars_of_eval):
15068         Added code to catch throw loops and check for a pesky bug that may
15069         be gone now.
15070
15071         * event-msw.c:
15072         * event-msw.c (key_needs_default_processing_p):
15073         * event-msw.c (mswindows_wnd_proc):
15074         * event-msw.c (mswindows_modifier_state):
15075         * event-msw.c (emacs_mswindows_quit_p):
15076         * event-msw.c (vars_of_event_mswindows):
15077         a) Added support for using the alt key to select menu items as is
15078         standard under MS Windows.  This is controlled using the variable
15079         menu-accelerator-enabled, just like under X Windows.  There is an
15080         option on the options menu to turn this support on.  I really
15081         think that it should be on by default under Windows, but I'm not
15082         going to make this change yet.
15083
15084         b)  Added support for dynamic display size changes under Windows.
15085
15086         * event-stream.c:
15087         * event-stream.c (maybe_echo_keys):
15088         * event-stream.c (Fnext_event):
15089         * event-stream.c (command_builder_find_leaf):
15090         * event-stream.c (lookup_command_event):
15091         * event-stream.c (execute_command_event):
15092         * event-stream.c (pre_command_hook):
15093         * event-stream.c (post_command_hook):
15094         * event-stream.c (syms_of_event_stream):
15095         * event-stream.c (vars_of_event_stream):
15096         * event-stream.c (complex_vars_of_event_stream):
15097         * events.h (struct command_builder):
15098
15099         a) Tried to clean up a little bit the horribly written x-specific
15100         accelerator code that crept into this file.  I moved this code
15101         into menubar-x.c where it belongs. I also needed to move the
15102         command builder structure into the file events.h because it is
15103         accessed directly by this accelerator code.  What I didn't do, but
15104         which should be done at some point, is to properly abstract this
15105         code using device methods instead of the kludgy way that it
15106         currently hooks into the event code.
15107
15108         b) Added the lisp variables this-command-properties and
15109         last-command- properties, which should be used to synchronize two
15110         adjacent commands in preference to playing games with the variable
15111         this-command, which is typically what happens.
15112
15113         c) Added some slightly nasty code to hook into the lisp support
15114         for shifted- motion-key selection.  This is actually necessary for
15115         somewhat complicated reasons, which are described in
15116         simple.el. (NB: I think the proper thing would be to have the code
15117         that calls the pre and post command hooks also call out to generic
15118         lisp functions in simple.el, where all built-in stuff could be
15119         added.  I will think about this more.)
15120
15121         * event-unixoid.c (poll_fds_for_input):
15122         * lread.c (readchar):
15123         * redisplay-tty.c (tty_clear_frame):
15124         * redisplay-x.c (x_get_gc):
15125         * signal.c (interrupt_signal):
15126         And a whole bunch of other files: fixed up places that printed
15127         directly to stderr to instead call the function stderr_out so that
15128         the changes I made under Windows work correctly.
15129
15130         * filemode.c (mode_string):
15131         Warning fixes.
15132
15133         * frame-msw.c:
15134         * frame-msw.c (mswindows_size_frame_internal):
15135         Fixed the computation of frame size and position to keep the frame
15136         within the workspace area, rather than within the physical
15137         dimensions of the screen, so that the frame doesn't overlap window
15138         manager decorations, such as the start menu and toolbar, typically
15139         at the bottom of the screen.
15140
15141         * frame.c (vars_of_frame):
15142         Changed the default frame title format under MS Windows to consist
15143         of buffername-XEmacs, which is standard under MS Windows.  I think
15144         it might be a good idea to change this everywhere because I think
15145         it is superior to the current frame title format, but this is the
15146         kind of change that is likely to cause some people to get annoyed,
15147         so I'm not making it.
15148
15149         * glyphs-eimage.c (png_instantiate): Fixed some compile warnings.
15150
15151         * gui-msw.c (mswindows_handle_gui_wm_command):
15152         Fixed compile warnings.
15153
15154         * gui-x.c:
15155         * gui-x.c (strdup_and_add_accel):
15156         * gui-x.c (button_item_to_widget_value):
15157         * gui-x.h:
15158         Added code to automatically put an accelerator onto the beginning
15159         of menu items that don't have one as is now the standard, and is
15160         described more later.  Also fixed things so that the menu item
15161         name can be an evaluated expression, again a new standard.
15162
15163         * gui.c:
15164         * gui.c (gui_item_add_keyval_pair):
15165         * gui.c (make_gui_item_from_keywords_internal):
15166         * gui.c (gui_add_item_keywords_to_plist):
15167         * gui.c (gui_item_accelerator):
15168         * gui.c (gui_name_accelerator):
15169         * gui.c (gui_item_included_p):
15170         * gui.c (gui_item_display_flush_left):
15171         * gui.c (gui_item_display_flush_right):
15172         * gui.c (parse_gui_item_tree_item):
15173         * gui.c (parse_gui_item_tree_children):
15174         * gui.c (parse_gui_item_tree_list):
15175         Mule-ized.  Cleanup.  GCPRO addition.
15176
15177         * line-number.c (buffer_line_number):
15178         * lisp.h:
15179         * lisp.h (EMACS_INT_MAX):
15180         Added the manifest constant EMACS_INT_MIN corresponding to the
15181         existing constant EMACS_INT_MAX.  This is partially to fix compile
15182         warnings under Windows, and partly for cleanliness.
15183
15184         * menubar-msw.c:
15185         * menubar-msw.c (REPLACE_ME_WITH_GLOBAL_VARIABLE_WHICH_CONTROLS_RIGHT_FLUSH):
15186         * menubar-msw.c (msw_translate_menu_or_dialog_item):
15187         * menubar-msw.c (displayable_menu_item):
15188         * menubar-msw.c (populate_menu_add_item):
15189         * menubar-msw.c (populate_or_checksum_helper):
15190         * menubar-msw.c (populate_menu):
15191         * menubar-msw.c (update_frame_menubar_maybe):
15192         * menubar-msw.c (prune_menubar):
15193         * menubar-msw.c (msw_char_is_accelerator):
15194         * menubar-msw.c (unsafe_handle_wm_initmenu_1):
15195         * menubar-msw.c (mswindows_handle_wm_command):
15196         * menubar-msw.c (mswindows_handle_wm_initmenupopup):
15197         * menubar-msw.c (mswindows_handle_wm_initmenu):
15198         * menubar-msw.c (mswindows_update_frame_menubars):
15199         * menubar-msw.c (mswindows_free_frame_menubars):
15200         * menubar-msw.c (mswindows_popup_menu):
15201         Fixed a bug in handling accelerators where an extra character
15202         would be displayed in the menu item.  Also generalized the
15203         function displayable_menu_item because it is now used by the
15204         dialog box code as well.  And finally, added code in the functions
15205         that create the menubar to extract a list of accelerators for the
15206         top level menubar, which is used in the event code to determine
15207         whether a particular alt-key combination should be used to invoke
15208         a menu item, or should be passed through to access the standard
15209         XEmacs keymap binding for this key combination.
15210
15211         Much needed GCPROing.
15212
15213         * menubar-x.c:
15214         * menubar-x.c (menu_item_descriptor_to_widget_value_1):
15215         * menubar-x.c (menu_item_descriptor_to_widget_value):
15216         * menubar-x.c (restore_in_menu_callback):
15217         * menubar-x.c (x_popup_menu):
15218         * menubar-x.c (menu_move_up):
15219         * menubar-x.c (menu_move_down):
15220         * menubar-x.c (menu_move_left):
15221         * menubar-x.c (menu_move_right):
15222         * menubar-x.c (menu_select_item):
15223         * menubar-x.c (command_builder_operate_menu_accelerator):
15224         * menubar-x.c (menu_accelerator_junk_on_error):
15225         * menubar-x.c (command_builder_find_menu_accelerator):
15226         * menubar-x.c (Faccelerate_menu):
15227         * menubar.h:
15228         Moved a whole bunch of code here that was previously in
15229         event-stream.c as described above.  There is also code connected
15230         to the new standard of adding an accelerator to the beginning of
15231         menu items that don't have one as described above and below.
15232
15233         * menubar.c:
15234         * menubar.c (menu_parse_submenu_keywords):
15235         * menubar.c (Fmenu_find_real_submenu):
15236         * menubar.c (Fnormalize_menu_item_name):
15237         * menubar.c (syms_of_menubar):
15238         * menubar.c (vars_of_menubar):
15239         * menubar.c (complex_vars_of_menubar):
15240
15241         a) Cleaned up a bunch of documentation and improved it.
15242
15243         b) XEmacs now automatically adds an accelerator onto the beginning
15244         of any menu items that don't have one.  I did this because there
15245         will inevitably be some menu items on the main menubar that don't
15246         have accelerators on them because the package that adds that
15247         particular menu item hasn't yet been fixed up to have accelerators
15248         in them and it looked rather strange to have some items with and
15249         some items without accelerators, especially since even in items
15250         without accelerators, you can, at least under windows, still
15251         access the item through an accelerator corresponding to the first
15252         character in the item's name.  If people don't like this behavior,
15253         I can add a variable to turn it off optionally, but I'm not sure
15254         this is a good idea because we really do need to have accelerators
15255         on all of the menu items, and if a package doesn't like the
15256         accelerators being put on the first character, then it should put
15257         the accelerators where they belong.
15258
15259         c) I made a behavior change, which is that the descriptor that
15260         specifies the text of the menu item, which formerly was just a
15261         string, can now also be an evaluated expression.  This makes this
15262         descriptor parallel with all of the others, which could also be
15263         evaluated expressions.  This also obviates the need for the
15264         keyword :label, which was previously listed in the documentation
15265         as unimplemented, and which was for the same purpose.
15266
15267         d) GCPROing.
15268
15269         * ntproc.c:
15270         * ntproc.c (new_child):
15271         * ntproc.c (sys_spawnve):
15272         * ntproc.c (find_child_console):
15273         * ntproc.c (sys_kill):
15274         Fixed compile warnings.  By the way, this file should really go
15275         away entirely, and this will happen as soon as Kirill makes his
15276         final round of process cleanups, which affect the function
15277         call-process.
15278
15279         * process-nt.c:
15280         * process-nt.c (struct nt_process_data):
15281         * process-nt.c (find_process_from_pid):
15282         * process-nt.c (send_signal_the_nt_way):
15283         * process-nt.c (enable_child_signals):
15284         * process-nt.c (find_child_console):
15285         * process-nt.c (send_signal_the_95_way):
15286         * process-nt.c (nt_finalize_process_data):
15287         * process-nt.c (ensure_console_window_exists):
15288         * process-nt.c (nt_create_process):
15289         * process-nt.c (nt_kill_child_process):
15290         * process-nt.c (nt_kill_process_by_pid):
15291         * process-nt.c (nt_open_network_stream):
15292         * process-nt.c (vars_of_process_nt):
15293         Copied over code from Emacs 20.5 to correctly send signals to sub-
15294         processes under Windows 95.  Also added code to automatically
15295         create and hide console window when a sub-process is created under
15296         Windows 95, which obviates the need for the separate runemacs.exe
15297         executable, and finally implemented some variables that were
15298         implemented in Emacs 20.5, but previously not in XEmacs.  These
15299         include mswindows- start-process-share-console and
15300         mswindows-start-process-inherit-error-mode. (Both of these only
15301         apply to Windows 95.)
15302
15303         * regex.c (regex_compile): Fixed a compile warning.
15304
15305         * select-msw.c:
15306         * select-msw.c (mswindows_own_selection):
15307         * select-msw.c (mswindows_get_foreign_selection):
15308         * select-msw.c (mswindows_disown_selection):
15309         * select-msw.c (console_type_create_select_mswindows):
15310         * select-msw.c (syms_of_select_mswindows):
15311         Cleaned up the file and implemented the device method
15312         selection_exists_p, which had accidentally been left out.  Also
15313         removed four lisp functions that were remnants from before the
15314         time when the selection code was properly device abstracted.
15315         These functions are no longer needed because there are generic
15316         equivalents, and because they were added recently and don't exist
15317         in FSF Emacs, I don't think there's any problem with just deleting
15318         them.
15319
15320         * sysdep.c:
15321         * sysdep.c (sys_subshell):
15322         Fixed a compile warning, although in this case there's probably
15323         something wrong with this code, and it ought to be looked into
15324         more thoroughly by somebody who understands it.
15325
15326         * window.c:
15327         * window.c (Fwindow_text_area_height):
15328         * window.c (Fwindow_width):
15329         * window.c (Fwindow_full_width):
15330         * window.c (Fwindow_pixel_width):
15331         * window.c (debug_print_window):
15332         * window.c (syms_of_window):
15333         Added functions window-text-area-height and window-full-width,
15334         which are functions for returning various width and height
15335         characteristics of a window. (One of these functions is necessary
15336         for making the file dialog box work correctly, and the other one
15337         was added for completeness.)  Also added a table to the
15338         documentation for window-height which describes the entire scheme
15339         for accessing width and height characteristics of a window.
15340
15341 2000-03-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15342
15343         * nt.c (fstat): Added a comment for another problem with
15344         non-encapsulated [f]stat(), reported by Adrian Aichner
15345         <aichner@ecf.teradyne.com>.
15346
15347 2000-03-11  Andy Piper  <andy@xemacs.org>
15348
15349         * window.c (make_dummy_parent): initialize subwindow instance
15350         cache.
15351         (Fset_window_configuration): zero extent_modiff.
15352
15353 2000-03-10  Andy Piper  <andy@xemacs.org>
15354
15355         * redisplay.c (Fredraw_frame): reset the changed_set flags so that
15356         more changes can be triggered.
15357         (Fredisplay_frame): ditto.
15358         (Fredraw_device): ditto.
15359         (Fredisplay_device): ditto.
15360         (redisplay_frame): make non-static.
15361         (redisplay_frame): call update_frame_gutter_geometry outside of
15362         display proper.
15363
15364         * gutter.h: declare update_frame_gutter_geometry.
15365
15366         * redisplay.h: declare redisplay_frame.
15367
15368         * gutter.c (update_frame_gutter_geometry): move geometry changes
15369         in update_frame_gutters here. Geometry changes can only occur
15370         outside of redisplay.
15371         (update_frame_gutters): remove geometry change code.
15372         (Fredisplay_gutter_area): make sure that we are in display when we
15373         update and that we have flushed any size changes.
15374
15375 2000-03-11  Andy Piper  <andy@xemacs.org>
15376
15377         * alloc.c (pdump_dump_data): remove i & count shadows.
15378
15379 2000-02-27  Mike Alexander  <mta@arbortext.com>
15380
15381         * sysdep.h: Declare pdump_read_file
15382
15383         * sysdep.c (pdump_read_file): New function
15384
15385         * alloc.c (pdump_load): Call pdump_read_file to get the portable
15386         dump data
15387
15388 2000-03-10  SL Baur  <steve@musashimaru.m17n.org>
15389
15390         * lrecord.h: add `lrecord_type_pgsetenv'.
15391
15392 2000-03-08  SL Baur  <steve@musashimaru.m17n.org>
15393
15394         * symsinit.h: declare (vars|syms)_of* functions.
15395         * lrecord.h: add `lrecord_type_pgconn' and 'lrecord_type_pgresult'.
15396
15397 2000-03-06  SL Baur  <steve@musashimaru.m17n.org>
15398
15399         * config.h.in: Add symbols HAVE_POSTGRESQL and HAVE_POSTGRESQLV7
15400
15401         * inline.c: Include postgresql.h lrecord stuffs to placate buggy
15402         GCCs.
15403
15404         * emacs.c (main_1): Call postgres initialization code.
15405
15406         * postgresql.h: New file.  PostgreSQL RDBMS support.
15407         * postgresql.c: New file.
15408
15409 2000-03-08  Yoshiki Hayashi  <yoshiki@xemacs.org>
15410
15411         * redisplay-output.c (redisplay_output_display_block): Disable
15412         redundant code.
15413
15414 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15415
15416         * mule-canna.c (Fcanna_henkan_region): Translate doc-string.
15417         (Fcanna_henkan_next): Ditto.
15418         (Fcanna_bunsetu_henkou): Ditto.
15419         (Fcanna_henkan_kakutei): Ditto.
15420         (Fcanna_henkan_end): Ditto.
15421         (Fcanna_henkan_quit): Ditto.
15422         (Fcanna_henkan_next): Set retun value correctly.
15423         (c2mu): Use unsigned char instead of signed char.
15424
15425 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15426
15427         * emacs.c (main_1): Always call syms_of_gui.
15428         * inline.c: include gui.h
15429
15430 2000-03-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
15431
15432         * redisplay.c (Vvisible_bell): Renamed from visible_bell and
15433         converted to Lisp_Object.
15434         (Qtop_bottom): New variable.
15435         (syms_of_redisplay): Initialize it.
15436         * redisplay.h (Vvisible_bell): Ditto.
15437         * sound.c (ding): Ditto and check if Vvisible_bell is nil.
15438         * redisplay-x.c (x_flash): When Vvisible_bell is top-bottom,
15439         only flash top and bottom.
15440
15441 2000-03-08  Andy Piper  <andy@xemacs.org>
15442
15443         * buffer.c (Frename_buffer): record new buffer name the right way.
15444
15445 2000-03-08  Andy Piper  <andy@xemacs.org>
15446
15447         * glyphs.c (update_subwindow): increase hash depth so that widget
15448         items get picked up properly.
15449
15450         * redisplay-output.c (compare_runes): increase hash depth so that
15451         widget items get picked up properly.
15452
15453 2000-03-08  Andy Piper  <andy@xemacs.org>
15454
15455         * gutter.c (output_gutter): add some debug.
15456
15457         * glyphs.h (struct Lisp_Image_Instance): add display_hash.
15458         (IMAGE_INSTANCE_DISPLAY_HASH): new macro.
15459         (XIMAGE_INSTANCE_DISPLAY_HASH): ditto.
15460
15461         * redisplay-output.c (compare_runes): use display_hash to
15462         determine if glyphs really are not the same.
15463
15464         * glyphs.c (update_subwindow): check display_hash to see if
15465         anything really needs to be updated. If not then do
15466         nothing. Record the display_hash after updating.
15467         (image_instance_equal): compare the image_instance face also.
15468
15469 2000-03-07  Yoshiki Hayashi  <yoshiki@xemacs.org>
15470
15471         * redisplay.h: Fix comment style.
15472
15473 2000-03-08  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15474
15475         * consle-msw.h (struct mswindows_frame):
15476         Added new member paint_pending to indicate whether a WM_PAINT
15477         magic event has been queued for this frame.
15478
15479         * event-msw.c (mswindows_drain_windows_queue):
15480         Don't queue a WM_PAINT magic event if one is already queued.
15481         (emacs_mswindows_handle_magic_event): clear paint_pending flag.
15482
15483         * frame-msw.c (mswindows_init_frame_1): initialise paint_pending flag.
15484
15485 2000-03-07  Didier Verna  <didier@xemacs.org>
15486
15487         * dired.c: #include `regex.h' after `sysfile.h'.
15488
15489 2000-03-06  Martin Buchholz  <martin@xemacs.org>
15490
15491         * sound.c (init_nas_sound): Fix compiler warning.
15492
15493         * alloc.c (ALIASING_VOIDPP_DEREFERENCE): New.
15494         (FREE_STRUCT_P):
15495         (MARK_STRUCT_AS_FREE):
15496         (MARK_STRUCT_AS_NOT_FREE):
15497         Make `gcc -fstrict-aliasing' work properly.
15498
15499 2000-03-07  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15500
15501         * device-msw.c (mswindows_finish_init_device): Call CoInitialize().
15502         (mswindows_delete_device): Call CoUnnitialize().
15503
15504         * event-msw.c (mswindows_wnd_proc): WM_DROPFILES: Decode Shortcuts.
15505
15506 2000-02-25    <CraigL@DyCon.com>
15507
15508         * process-nt.c: MinGW now has <shellapi.h>, but still needs
15509         <errno.h>.
15510
15511         * sysdep.c: This extern declaration for environ prevents MinGW
15512         from finding the variable in CRTDLL.DLL.
15513
15514         * s\mingw32.h (PBS_SMOOTH): Removed, now defined in cygwin's
15515         windows headers.
15516         (SHGFI_EXETYPE): ..
15517         (WM_MOUSEWHEEL): ..
15518         (_WIN32_IE): Added, needed to get the TCS_BOTTOM and TCS_VERTICAL
15519         definitions.
15520         (MMRESULT): Removed, now defined in cygwin's windows headers.
15521         (TIMECAPS): ..
15522         (uid_t,gid_t,pid_t,ssize_t): ..
15523         (_timeb): Removed, MinGW defines both _timeb and timeb.
15524         (HAVE_H_ERRNO): Added.
15525         (HAVE_TZNAME): Added, configure is not detecting this.
15526
15527 2000-02-03  IKEYAMA Tomonori <tomonori@suiyokai.org>
15528
15529         * chartab.h (XCHAR_TABLE_VALUE_UNSAFE): New macro.
15530         * syntax.c (syntax_match): Use it.
15531
15532         * cmds.c: Import auto-fill-chars from FSF Emacs.
15533         (Vauto_fill_chars): New variables.
15534         (internal_self_insert): Check Vauto_fill_chars.
15535         (vars_of_cmds):
15536         Declare auto-fill-chars as a Lisp variable and initialize it.
15537
15538 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15539
15540         * fileio.c (Fmake_symbolic_link):
15541         (Ffile_symlink_p):
15542         Run handlers even if local machine doesn't have symlinks.
15543
15544 2000-03-05  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15545
15546         * event-msw.c (mswindows_drain_windows_queue):
15547         Don't generate paint magic events for non-XEmacs frames.
15548
15549 2000-03-05  Andy Piper  <andy@xemacs.org>
15550
15551         * redisplay.c (redisplay_frame): generate_displayable_area and
15552         friends assumes that we are not in GC, we therefore have to make
15553         sure that this doesn't happen.
15554
15555         * gutter.c (calculate_gutter_size): generate_displayable_area
15556         assumes that we are not in GC, we therefore have to make sure that
15557         this doesn't happen.
15558
15559 2000-03-05  Martin Buchholz  <martin@xemacs.org>
15560
15561         * opaque.c (DEFINE_LRECORD_IMPLEMENTATION): opaque_ptr ==> opaque-ptr
15562
15563 2000-03-03  Jan Vroonhof  <vroonhof@math.ethz.ch>
15564
15565         * redisplay.c (regenerate_window): Make sure we set a sane value
15566         for end_pos even if we jump out of the loop.
15567         (regenerate_window): Answer Ben's question :-).
15568         (start_end_of_last_line): Add may_error argument.
15569         (start_of_last_line):
15570         (end_of_last_line): Pass may_error = 0.
15571         (end_of_last_line_may_error): New function.
15572         (pixel_to_glyph_translation): Use it, so we don't crash in
15573         event_to_glyph.
15574
15575 2000-03-04  Andy Piper  <andy@xemacs.org>
15576
15577         * window.h (struct window): add gutter_extent_modiff.
15578
15579         * window.c (allocate_window): zero out gutter_extent_modiff.
15580
15581         * redisplay.h: declare sync_display_line_structs.
15582
15583         * redisplay.c (add_glyph_rune): add a better comment.
15584
15585         * redisplay-output.c (sync_display_line_structs): made non-static.
15586         (compare_runes): remove unneccesary glyph cachel access.
15587
15588         * gutter.h: declare gutter_extent_signal_changed_region_maybe.
15589
15590         * gutter.c (output_gutter): don't output the gutter if extent
15591         changes only involve extents in buffers. use 4 sets of display
15592         lines.
15593         (gutter_extent_signal_changed_region_maybe): new function. Mark
15594         extents in gutters as changed.
15595         (update_frame_gutters): use 4 sets of display lines.
15596         (reset_gutter_display_lines): ditto.
15597         (free_frame_gutters): ditto.
15598         (redraw_exposed_gutter): force output of gutters.
15599
15600         * frame.h (struct frame): add 4 sets of gutter display lines.
15601
15602         * extents.c: (extent_changed_for_redisplay): signal changes to
15603         extents in strings in the gutter as well as extents in buffers.
15604
15605 2000-03-02  Andy Piper  <andy@xemacs.org>
15606
15607         * gutter.c (specifier_vars_of_gutter): cosmetic changes.
15608
15609         * frame.c (Fmake_frame): make sure the gutters get initialized
15610         after the frame is visible.
15611         (set_frame_selected_window): re-arrange compilation macros a
15612         little.
15613         (change_frame_size_1): mark gutters changed.
15614
15615         * device.c (Fset_device_class): mark gutters changed.
15616
15617 2000-03-01  Andy Piper  <andy@xemacs.org>
15618
15619         * window.c (window_top_frame_gutter_height): deleted.
15620         (window_bottom_frame_gutter_height): ditto.
15621         (window_left_frame_gutter_height): ditto.
15622         (window_right_frame_gutter_height): ditto.
15623         (window_top_gutter_height): don't use them.
15624         (window_bottom_gutter_height): ditto.
15625         (window_left_gutter_width): ditto.
15626         (window_right_gutter_width): ditto.
15627         (Fsplit_window): ditto.
15628         (Fwindow_pixel_edges): don't use border dimensions here.
15629
15630         * scrollbar.c (update_scrollbar_instance): don't take gutters into account.
15631         (update_scrollbar_instance): ditto.
15632
15633         * redisplay.c (generate_modeline): don't take gutters into account.
15634         (generate_modeline): ditto.
15635         (redisplay_frame): small gutter display optimization.
15636
15637         * redisplay-x.c (x_output_vertical_divider): don't take gutters into account.
15638
15639         * redisplay-msw.c (mswindows_output_vertical_divider): don't take
15640         gutters into account.
15641
15642         * gutter.h (WINDOW_REAL_*_GUTTER_BOUNDS): remove bogus checks
15643         for window position and type.
15644
15645         * gutter.c (get_gutter_coords): fix for frame gutters.
15646         (update_frame_gutters): update frame geometry if the gutters have
15647         changed.
15648         (init_frame_gutters): record current gutter geometries.
15649
15650         * glyphs-msw.c (mswindows_subwindow_instantiate): remove unused
15651         var.
15652         (mswindows_widget_instantiate): ditto.
15653
15654         * frame.h (struct frame): add current_gutter_bounds.
15655
15656         * frame.c (change_frame_size_1): position window and minibuffer
15657         appropriately taking into account the frame gutters.
15658
15659         * frame-x.c: (x_initialize_frame_size): take into account the
15660         frame gutters.
15661
15662 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15663
15664         * emacs.c (data-directory):  Xref `locate-data-file' in docstring.
15665
15666 2000-02-29  Stephen J. Turnbull  <stephen@xemacs.org>
15667
15668         * alloc.c (dumpopaquevec): Increase dimension for --with-canna.
15669
15670 1999-12-30  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
15671
15672         * file-coding.c (reset_decoding_stream): Clear previous
15673         detection state when autodetect.
15674
15675 2000-02-29  Didier Verna  <didier@xemacs.org>
15676
15677         * extents.c (set_extent_glyph_1): don't require extents to be
15678         attached.
15679
15680 2000-02-27  Andy Piper  <andy@xemacs.org>
15681
15682         * gutter.c (Fset_default_gutter_position): don't default left and
15683         right gutter visibility to t.
15684         (Fset_default_gutter_position): run
15685         default-gutter-position-changed-hook.
15686         (syms_of_gutter): add default-gutter-position-changed-hook.
15687
15688 2000-02-26  Andy Piper  <andy@xemacs.org>
15689
15690         * specifier.c (Fmake_specifier): add gutter references.
15691
15692         * gutter.h (RAW_WINDOW_GUTTER): new macro.
15693
15694         * lisp.h: declare Fvalid_plist_p.
15695
15696         * gutter.c (gutter_geometry_changed_in_window): mark the modeline
15697         as changed.
15698         (default_gutter_visible_p_changed_in_window): invalidate gutter as
15699         well as its visibility so that it gets reconstructed.
15700         (construct_window_gutter_spec): new function. Construct a string
15701         to be displayed in the gutter from a plist of strings. Take care
15702         to only use elements that are declared as visible.
15703         (calculate_gutter_size): use RAW_WINDOW_GUTTER instead of
15704         WINDOW_GUTTER.
15705         (gutter_validate): allow plists of strings in the specifier.
15706         (gutter_specs_changed): construct the real_gutter from the gutter
15707         specs using construct_window_gutter_spec.
15708         (gutter_visible_validate): gutter-visible is a new specifier type.
15709         (Fgutter_visible_specifier_p): new function for the new specifier.
15710         (syms_of_gutter): declare gutter-visible and
15711         Fgutter_visible_specifier_p.
15712         (specifier_type_create_gutter): intitalize new gutter-visible
15713         specifier.
15714         (reinit_specifier_type_create_gutter): ditto.
15715         (specifier_vars_of_gutter): use new specifier type for gutter
15716         visibility.
15717         (init_frame_gutters): construct real_gutter correctly.
15718         (Fgutter_specifier_p): beef up documentation.
15719         (Fgutter_size_specifier_p): ditto.
15720
15721         * winslots.h: add real_gutter slots.
15722
15723 2000-02-25  Andy Piper  <andy@xemacs.org>
15724
15725         * device-msw.c: Be kind to older cygwin versions. From Raymond
15726         Toy <toy@rtp.ericsson.se>.
15727
15728         * gui-msw.c (Fmswindows_shell_execute): Remove things unknown to
15729         earlier cygwins. From Raymond Toy <toy@rtp.ericsson.se>.
15730
15731 2000-02-25  Martin Buchholz  <martin@xemacs.org>
15732
15733         * elhash.c (MARK_OBJ): Practice macro hygiene.
15734
15735 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15736
15737         * miscplay.c: s/__inline__/inline/g;
15738         * glyphs-msw.c (set_mono_pixel): INLINE ==> static inline
15739         (get_device_compdc): INLINE ==> static inline
15740         * *.[ch]: Change INLINE to INLINE_HEADER globally.
15741         find -name '*.h' | \
15742         xargs global-replace \
15743         's/(^|(?<=[^A-Za-z0-9_]))INLINE((?=[^A-Za-z0-9_])|$)/INLINE_HEADER/g'
15744
15745 2000-02-25  Andy Piper  <andy@xemacs.org>
15746
15747         * window.c (window_top_frame_gutter_height): new function.
15748         (window_top_window_gutter_height): ditto.
15749         (window_top_gutter_height): use them.
15750         (window_bottom_frame_gutter_height): new function.
15751         (window_bottom_window_gutter_height): ditto.
15752         (window_bottom_gutter_height): use them.
15753         (window_left_window_gutter_width): new function.
15754         (window_left_frame_gutter_width): ditto.
15755         (window_left_gutter_width): use them.
15756         (window_right_window_gutter_width): new function.
15757         (window_right_frame_gutter_width): ditto.
15758         (window_right_gutter_width): use them.
15759         (window_pixel_height): new function. calulate window pixel height
15760         with frame gutter involvement.
15761         (Fsplit_window): calculate new sizes taking frame gutters into
15762         account.
15763         (window_char_height_to_pixel_height): don't include frame gutters.
15764         (window_char_height): use window_pixel_height.
15765         (window_pixheight): rename from window_pixel_height.
15766         (change_window_height): use it.
15767         (window_pixel_height_to_char_height): don't include frame gutters.
15768         (window_char_width_to_pixel_width): ditto.
15769
15770 2000-02-25  Andy Piper  <andy@xemacs.org>
15771
15772         * glyphs.h (IMAGE_INSTANCE_FACE): glyph might be nil, don't crash
15773         if it is.
15774
15775 2000-02-24  Martin Buchholz  <martin@xemacs.org>
15776
15777         * alloc.c (staticpro):
15778         (staticpro_nodump):
15779         (dumpstruct):
15780         (dumpopaque):
15781         (pdump_wire):
15782         (pdump_wire_list):
15783         (compact_string_chars):
15784         (pdump_dump_wired):
15785         Convert:  if (foo) abort();  ==>  assert (! foo);
15786
15787         * eldap.c (Fldap_search_basic):
15788         (Fldap_add):
15789         (Fldap_modify):
15790         (Fldap_delete):
15791         Fix compiler warnings, and possible crashes if (random) return
15792         value were to be used.
15793
15794 2000-02-21  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15795
15796         * device-msw.c: Workaround ResetDC failure.
15797
15798         * frame-msw.c (msprinter_init_frame_3): Added an assertion before
15799         applying a devmode.
15800
15801         * redisplay-msw.c (get_frame_dc): Added start_page_p.
15802         (mswindows_text_width): Do not start printer page.
15803
15804         * console-msw.h (CHECK_MSGDI_DEVICE): Added this and friends.
15805
15806         * glyphs-msw.c: Added image methods to msprinter console and
15807         msprinter-specific image instantiation.
15808
15809 2000-02-20  Mike Alexander  <mta@arbortext.com>
15810
15811         * select-msw.c (Fmswindows_set_clipboard): GC protect more things
15812         to avoid crashes when selection-sets-clipboard is on
15813         (mswindows_own_selection): ditto
15814
15815 2000-02-19  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15816
15817         * glyphs-msw.c:
15818         * redisplay-msw.c (get_frame_dc):
15819         (get_frame_compdc):
15820         * console-msw.h:
15821         * device-msw.c (mswindows_init_device):
15822         (mswindows_delete_device):
15823         (msprinter_init_device):
15824         (msprinter_delete_device):
15825         * frame-msw.c (mswindows_init_frame_1):
15826         (mswindows_delete_frame):
15827         (msprinter_init_frame_3):
15828         (msprinter_delete_frame): Move compatible DC to device object from
15829         frame object, for both mswindows and msprinter. Only one at a time
15830         is needed, it is a real waste to have one per frame!
15831
15832 2000-02-23  Andy Piper  <andy@xemacs.org>
15833
15834         * glyphs.c: add dynamic width and height elements.
15835         (image_instance_equal): ditto.
15836
15837         * glyphs-widget.c (widget_query_geometry): calculate width and
15838         height dynamically if required.
15839         (initialize_widget_image_instance): initialize dynamic dimensions.
15840         (widget_instantiate): pick-up dynamic dimensions.
15841
15842         * glyphs.h (struct Lisp_Image_Instance): add width and height for
15843         dynamic determination. Add appropriate macros.
15844
15845         * gutter.h (WINDOW_GUTTER_BORDER_WIDTH): make non-integer
15846         dimensions safe.
15847         (WINDOW_GUTTER_SIZE): ditto.
15848         (WINDOW_GUTTER_SIZE_INTERNAL): ditto.
15849
15850         * redisplay-msw.c (get_frame_compdc): gcc can't cope with this
15851         inline.
15852         (get_frame_dc): ditto.
15853
15854         * redisplay.h (GLOBAL_RESET_CHANGED_FLAGS): don't reset faces
15855         here.
15856
15857 2000-02-23  Martin Buchholz <martin@xemacs.org>
15858
15859         * XEmacs 21.2.31 is released.
15860
15861 2000-02-22  Ben Wing <ben@xemacs.org>
15862
15863         * ntheap.c (allocate_heap): Make sure `ptr' is initialized.
15864
15865 2000-02-22  Andy Piper  <andy@xemacs.org>
15866
15867         * glyphs-x.c (x_widget_instantiate): don't explicitly resize here.
15868
15869 2000-02-21  Mike Sperber <mike@xemacs.org>
15870
15871         * .dbxrc:
15872         * .gdbinit:
15873         * Makefile.in.in: Remove obsolete EMACSBOOTSTRAP... environment
15874         variables.
15875
15876 2000-02-21  Mike Sperber <mike@xemacs.org>
15877
15878         * s/aix4.h: Declare getaddrinfo broken for AIX 4, which it is.
15879
15880 2000-02-21  Martin Buchholz <martin@xemacs.org>
15881
15882         * XEmacs 21.2.30 is released.
15883
15884 2000-02-20  Martin Buchholz  <martin@xemacs.org>
15885
15886         Performance hacking.
15887         * *.c (syms_of_*):
15888         Add INIT_LRECORD_IMPLEMENTATION macros, paired with
15889         DEFINE_LRECORD_IMPLEMENTATION macros in the same file.
15890         * emacs.c (main_1):
15891         * lisp.h (DEFUN):
15892         * console.c (DEFVAR_CONSOLE_LOCAL_1):
15893         * buffer.c (DEFVAR_BUFFER_LOCAL_1):
15894         * symeval.h (DEFVAR_SYMVAL_FWD):
15895         * symbols.c (guts_of_unbound_marker):
15896         Make all c_readonly objects also lisp_readonly and marked for life.
15897         * lrecord.h (struct lrecord_implementation):
15898         Document flags better.
15899         * lrecord.h (DEFINE_LRECORD_SEQUENCE_IMPLEMENTATION_WITH_PROPS):
15900         * lrecord.h (DECLARE_LRECORD):
15901         * lrecord.h (XSETRECORD):
15902         * lrecord.h (RECORDP):
15903         * lrecord.h (RECORD_TYPEP):
15904         * lrecord.h (RECORD_MARKER): New.
15905         * lrecord.h (error_check_*):
15906         * lrecord.h (CONCHECK_NONRECORD):
15907         * lrecord.h (MAKE_LRECORD_IMPLEMENTATION):
15908         * lrecord.h (INIT_LRECORD_IMPLEMENTATION): New.
15909         * lrecord.h (set_lheader_implementation):
15910         * lrecord.h (enum lrecord_type): New.
15911         * symeval.h (SYMBOL_VALUE_MAGIC_P):
15912         * alloc.c (disksave_object_finalization_1):
15913         * alloc.c (mark_object):
15914         * alloc.c (lrecord_type_index):
15915         * alloc.c (tick_lcrecord_stats):
15916         * alloc.c (Fgarbage_collect):
15917         * alloc.c (init_alloc_once_early):
15918         * alloc.c (pdump_load):
15919         * alloc.c (GC_CHECK_LHEADER_INVARIANTS): New.
15920         * alloc.c (lrecord_type_index): Delete.
15921         Make lisp object type indexes be constant.
15922           Makes (byte-compile) 5% faster.
15923         Put all marker functions into their own array.
15924           Makes (garbage-collect) 5% faster.
15925         Optimize SYMBOL_VALUE_MAGIC_P.
15926           Makes (byte-compile) 2-3% faster.
15927         * config.h.in (gc_checking_assert): New.
15928         * alloc.c: Use gc_checking_assert().
15929         * .dbxrc: Make compatible with new object type implementation.
15930         * .gdbinit: Make compatible with new object type implementation.
15931         * alloc.c: Delete all symbols defined only for debugging, such as
15932         Lisp_Type_Vector and lrecord_charset.
15933
15934 2000-02-21  Andy Piper  <andy@xemacs.org>
15935
15936         * gui-msw.c (Fmswindows_shell_execute): fix file location
15937         problems.
15938
15939         * buffer.c (Fkill_buffer): remove buffer from alist buffer
15940         unshowing so that set_window_buffer doesn't undo
15941         kill_buffer_hook's hard work.
15942
15943         * glyphs-widget.c (tab_control_query_geometry): don't count the
15944         first item when calculating geometry.
15945
15946         * glyphs.c (map_subwindow): remove redundant code.
15947         (update_frame_subwindows): be more circumspect about when to
15948         update subwindows.
15949
15950         * glyphs-x.c (x_update_widget): Properly fix sizing bug. Fix bug
15951         when items haven't changed. Update faces if faces have changed as
15952         well as just the widget face.
15953         (x_tab_control_update): Update faces if faces have changed as well
15954         as just the widget face.
15955
15956 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15957
15958         * device-msw.c: (mswindows_delete_device): Remove redundant DDE
15959         registration.
15960         (build_syscolor_string): Use mswindows_color_to_string to try to
15961         get a named color.
15962         (mswindows_device_system_metrics): Reverse the foreground and
15963         background colors so that they match the documentation.
15964
15965         * objects-msw.c: (mswindows_X_color_map): tweak some values so
15966         they match the default Windows palette.
15967         (mswindows_color_to_string): New function.
15968
15969 2000-02-21  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15970
15971         * s/windowsnt.h: Only use __declspec(noreturn) with MSVC>=6.
15972
15973 2000-02-18  Olivier Galibert  <galibert@pobox.com>
15974
15975         * m/*, s/*: Removed obsolete DATA_SEG_BITS, PURE_SEG_BITS,
15976         WORD_MACHINE, SIGN_EXTEND_CHAR and EXPLICIT_SIGN_EXTEND.
15977
15978         * symbols.c (init_symbols_once_early): Removed obsolete
15979         DATA_SEG_BITS related kludge.
15980         (defvar_magic): Ditto.
15981
15982         * malloc.c: Removed obsolete DATA_SEG_BITS
15983         * ralloc.c: Ditto.
15984         * mem-limits.h: Ditto.
15985
15986         * Makefile.in.in: Removed obsolete HAVE_SHM
15987         * emacs.c: Ditto.
15988
15989 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
15990
15991         *  device-msw.c (mswindows_delete_device): Free DDE string
15992         handles.
15993
15994 2000-02-16  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
15995
15996         * keymap.c (get_keyelt):
15997         * unexnt.c (unexec):
15998         * vm-limit.c (memory_warnings):
15999         * ntheap.c (recreate_heap):
16000         * ntheap.h (UNINIT_PTR):
16001         * select-msw.c (Fmswindows_get_clipboard):
16002         (Fmswindows_set_clipboard):
16003         * objects-msw.h (MSWINDOWS_BAD_HFONT):
16004         * objects-msw.c:
16005         * menubar-msw.c (displayable_menu_item):
16006         * glyphs-msw.c:
16007         * glyphs-msw.h (IMAGE_INSTANCE_MSWINDOWS_MASK):
16008         * sysdep.c (sys_subshell):
16009         * process-nt.c (nt_create_process):
16010         * nt.c (normalize_filename):
16011         (dostounix_filename):
16012         (unixtodos_filename):
16013         * ntproc.c (win32_executable_type):
16014         * ntplay.c (play_sound_data_1):
16015         (play_sound_file):
16016         * editfns.c (get_home_directory):
16017         * event-msw.c (struct winsock_stream):
16018         (mswindows_dde_callback):
16019         * device-msw.c (msprinter_init_device):
16020         (msprinter_get_devmode_copy): Frobbed syntax frivolities.
16021
16022         * toolbar-msw.c (mswindows_free_frame_toolbars): Paramters to
16023         mswindows_clear_toolbar were swapped!
16024
16025         * objects-msw.c:(colormap_t):
16026         (fontmap_t):
16027         * emacs.c (struct standard_args): Fixed const jumble.
16028
16029         * glyphs-widget.c (update_widget): Fixed comparison notation.
16030
16031         * event-msw.c (mswindows_dde_callback): Removed extraneous ';'.
16032
16033         * s\windowsnt.h (DOESNT_RETURN): Defined to support the MSVC
16034         __declspec(noreturn) syntax.
16035
16036 2000-02-19  Martin Buchholz  <martin@xemacs.org>
16037
16038         * eldap.c (Fldap_open):
16039         (Fldap_search_basic):
16040         (Fldap_add):
16041         (Fldap_modify):
16042         Use new coding system conversion macros.
16043
16044 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16045
16046         * console-tty.c (tty_init_console): Change MULE to FILE_CODING.
16047
16048 1999-11-27  Oscar Figueiredo  <Oscar.Figueiredo@di.epfl.ch>
16049
16050         * eldap.h (Fldap_search) Renamed from Fldap_search_internal:
16051         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16052
16053         * eldap.c (Qadd, Qreplace): New constant symbols
16054         (Fldap_open): Use the LDAP_OPT_RESTART option to avoid
16055         interruptions by XEmacs signals
16056         Remove unnecessary calls to slow_down_interrupts and
16057         speed_up_interrupts
16058         (Fldap_search_basic): Renamed from Fldap_search_internal
16059         Added new optional parameter VERBOSE that triggers the
16060         display of progress messages
16061         Remove unnecessary calls to slow_down_interrupts and
16062         speed_up_interrupts
16063         LDAP result code analysis rewritten
16064         (Fldap_add, Fldap_modify, Fldap_delete): New functions
16065         (syms_of_eldap): Define the new symbols and functions
16066
16067
16068 2000-02-17  Martin Buchholz  <martin@xemacs.org>
16069
16070         * realpath.c: Determine PATH_MAX maximally portably.
16071
16072         * insdel.c (bytecount_to_charcount): Optimize.
16073         The function used to be optimized for entirely ASCII sequences.
16074         Now it is optimized for successive characters from the same
16075         charset.  This also wins big for _mostly_ ASCII sequences.
16076
16077         * fileio.c (Ffile_truename): convert return from realpath() using
16078         Qfile_name, not Qbinary.  Fixes obvious bug with non-ASCII symlinks.
16079         - Rewrite GCPROing slightly.
16080
16081         * sysdep.c (sys_open): Do filename conversion, like all other
16082         sys_* functions.  Fixes bug:
16083         (let ((file-name-coding-system 'iso-8859-2))
16084            (write-region x y latin2-name))
16085         ==> writes filename using internal encoding.
16086
16087 2000-02-18  Martin Buchholz  <martin@xemacs.org>
16088
16089         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Turn on c_readonly. Always const.
16090         * console.c (DEFVAR_CONSOLE_LOCAL_1): Turn on c_readonly. Always const.
16091         * symeval.h (DEFVAR_SYMVAL_FWD): Turn on c_readonly. Always const.
16092         * eval.c (lrecord_subr): Remove this_one_is_unmarkable.
16093         * symbols.c (lrecord_symbol_value_forward): Remove this_one_is_unmarkable.
16094         * symbols.c (guts_of_unbound_marker): Turn on c_readonly.
16095         * lrecord.h (UNMARKABLE_LRECORD_HEADER_P): Delete.
16096         (CONST_IF_NOT_DEBUG): Delete.
16097         * alloc.c (this_one_is_unmarkable): Delete.
16098         (mark_object): Don't check for this_one_is_unmarkable. Use the
16099         c_readonly flag instead.
16100         * lisp.h (DEFUN): Define a Lisp_Subr as c_readonly.
16101
16102 2000-02-18  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16103
16104         * event-msw.c (mswindows_drain_windows_queue):
16105         (emacs_mswindows_handle_magic_event): Remove attempt to optimise
16106         away redundant repaint events.
16107
16108 2000-02-17  Andy Piper  <andy@xemacs.org>
16109
16110         * redisplay.h: declare mark_redisplay_structs.
16111
16112         * redisplay.c (redisplay_window):
16113         (redisplay_frame): don't check subwindows_state_changed.
16114         (mark_redisplay): mark gutters here.
16115
16116         * glyphs.c: (instantiate_image_instantiator): always layout if we
16117         haven't done so already.
16118         (allocate_image_instance): don't mark as dirty.
16119         (update_subwindow): bind inhibit_quit.
16120
16121         * gutter.c (mark_gutters): new function.
16122
16123         * glyphs-x.c (x_update_widget): Always resize to get round a
16124         widget bug.
16125
16126         * glyphs-msw.c (mswindows_tab_control_update): remove `;' that was
16127         breaking absolutely everything.
16128
16129         * gutter.h: declare mark_gutters.
16130
16131 2000-02-16  Martin Buchholz <martin@xemacs.org>
16132
16133         * XEmacs 21.2.29 is released.
16134
16135 2000-02-15  Olivier Galibert  <galibert@pobox.com>
16136
16137         * fns.c (size_bit_vector): Fix computation of the size.
16138
16139 2000-02-15  Martin Buchholz  <martin@xemacs.org>
16140
16141         * *.[ch]: Change CONST to const globally.
16142         find -name '*.[ch]' | \
16143         xargs global-replace \
16144         's/(^|(?<=[^A-Za-z0-9_]))CONST((?=[^A-Za-z0-9_])|$)/const/g'
16145         - Remove vestigial references to CONST_IS_LOSING
16146
16147 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16148
16149         * event-msw.c (mswindows_drain_windows_queue): Remove hack to
16150         bailout early on quit. Enqueue WM_PAINT events as XEmacs magic
16151         events instead of dispatching them directly.
16152         (mswindows_handle_paint): New function to do repainting.
16153         (mswindows_wnd_proc):
16154         (emacs_mswindows_handle_magic_event): Call above function.
16155
16156 2000-02-13  Jonathan Harris  <jhar@tardis.ed.ac.uk>
16157
16158         * objects-msw.c (mswindows_create_font_variant): Return the new
16159         font handle.
16160         (initialize_font_instance): Get font metrics from the underlined
16161         variant of the font to cope with the case where the underlined
16162         font has a bigger descent.
16163
16164 2000-02-08   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16165
16166         * gui.c (gui_item_accelerator): Return the first underlined
16167         character in item name.
16168
16169 2000-02-11  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16170
16171         * lisp.h: Added Qprinter.
16172
16173         * general.c (syms_of_general): Initialized it.
16174
16175         * redisplay-msw.c (get_frame_dc): Conditionally start a new page.
16176         (get_frame_dc):
16177         (get_frame_compdc): Made inline.
16178
16179         * console.h (struct console_methods): Added eject_page method.
16180
16181         * frame.h: Added FRAME_DISPLAY_P and friends.
16182         Aligned backslahes in many macros in more readable fashion.
16183         Added page_number to struct frame, and an accessor macro
16184         for it.
16185
16186         * defice.h: Added DEVICE_DISPLAY_P and friends.
16187
16188         * device.c (Fdevice_printer_p): Used these.
16189
16190         * frame.c (allocate_frame_core): Initialize page number.
16191         (Fprint_job_page_number):
16192         (Fprint_job_eject_page): Implemented.
16193
16194         * frame-msw.c (msprinter_eject_page): Added method.
16195         (msprinter_start_page): Added.
16196
16197         * window.c (Fwindow_truncated_p): Fixed docstring.
16198         (Fwindow_last_line_visible_height): Implemented.
16199
16200 2000-02-09  Yoshiki Hayashi  <yoshiki@xemacs.org>
16201
16202         * frame.c (change_frame_size_1): Undo 2000-02-03 change.
16203
16204 1999-12-20  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
16205
16206         * syntax.c (scan_words): Always advance at least one character.
16207
16208 2000-02-13  Andy Piper  <andy@xemacs.org>
16209
16210         * redisplay.c (add_glyph_rune): call get_glyph_cachel_index here
16211         to make sure the glyph is in the cachels.
16212
16213         * glyphs.h (struct Lisp_Image_Instance): make layout_changed a
16214         global image instance flag.
16215         (IMAGE_INSTANCE_NEEDS_LAYOUT): new macro.
16216         (XIMAGE_INSTANCE_NEEDS_LAYOUT): ditto.
16217
16218         * glyphs.c (allocate_image_instance): set dirty bits correctly.
16219         (Fset_image_instance_property): mark layout as changed.
16220         (invalidate_glyph_geometry_maybe): mark layout as changed.
16221         (glyph_width): use new NEEDS_LAYOUT macro.
16222         (glyph_ascent): ditto.
16223         (glyph_descent): ditto.
16224         (glyph_height): ditto.
16225         (image_instance_layout): mark layout as clean after laying out.
16226         (update_subwindow): don't mark layout as clean here.
16227
16228         * glyphs-x.h (IMAGE_INSTANCE_X_WIDGET_ID): undo C++ changes, they
16229         should no longer be needed.
16230
16231         * glyphs-x.c (x_update_widget): sanitize asserts.
16232         (x_finalize_image_instance): sanitize assignment to widgets.
16233
16234         * glyphs-widget.c (widget_instantiate): don't need to clear the
16235         layout flag here.
16236
16237 2000-02-13  Martin Buchholz  <martin@xemacs.org>
16238
16239         * sysdep.c (getcwd): Use standard prototype.
16240         * sysdep.h (getcwd): Use standard prototype.
16241
16242         * fns.c (Fsubseq): Change parameters to more natural ANSI Lisp
16243         (sequence, start, end).
16244         Remove redundant type checking.
16245         (Fmapconcat): Remove useless GCPRO, a wrong-headed attempt (in
16246         view of `caller-protects') to avoid a crash where the real fix was
16247         found elsewhere.
16248
16249 2000-02-12  Martin Buchholz  <martin@xemacs.org>
16250
16251         * glyphs-x.c (x_finalize_image_instance): Compile error fixes.
16252
16253         * s/sol2.h: Remove feature macro initialization.
16254
16255         * alloc.c (alloc_lcrecord): Add more type checking assertions.
16256         (vector_hash): New.  Code from internal_hash.
16257         * lrecord.h:
16258         Fix up allocation subsystem comments.
16259
16260         * config.h.in: Add __EXTENSIONS__ for Solaris.
16261
16262         * systime.h (EMACS_GETTIMEOFDAY): New.
16263         (EMACS_GET_TIME): Use EMACS_GETTIMEOFDAY.
16264         Remove Solaris-specific code.
16265         Use void* for the (ignored) second arg for gettimeofday().
16266
16267         * elhash.c (hash_table_hash): Implement it, finally.
16268         * elhash.c:  Use hashcode_t.
16269
16270         * linuxplay.c (sighandler): Fix prototypes to use SIGTYPE.
16271         * sunplay.c (sighandler): Fix prototype to use SIGTYPE.
16272
16273         * lisp.h (STRETCHY_STRUCT_SIZEOF): Delete.
16274         * fns.c (size_bit_vector):
16275         * alloc.c (size_vector):
16276         (make_vector_internal):
16277         (make_bit_vector_internal):
16278         (sweep_bit_vectors_1):
16279         Replace calls to STRETCHY_STRUCT_SIZEOF with offsetof expression.
16280
16281 2000-02-10  Martin Buchholz  <martin@xemacs.org>
16282
16283         * s/aix4.h: #define MAP_FAILED if sys/mman.h didn't.
16284         Include strings.h to avoid warnings for bzero and strcasecmp.
16285
16286 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16287
16288         * alloc.c: Move STRETCHY_STRUCT_SIZEOF from here...
16289         * lisp.h (STRETCHY_STRUCT_SIZEOF): ...to here
16290
16291         * fns.c (size_bit_vector): New.  Declare bit vectors as a
16292         sequence.
16293
16294 2000-02-10  Olivier Galibert  <galibert@pobox.com>
16295
16296         * symeval.h (struct symbol_value_magic): Remove "next" kludge and
16297         use a value field instead.
16298         (symbol_value_forward_forward): Use value field.
16299         (DEFVAR_SYMVAL_FWD): Use value field.
16300         (DEFVAR_SYMVAL_FWD_INT): Added.  Dumps the int with dumpopaque.
16301         (DEFVAR_INT): Use DEFVAR_SYMVAL_FWD_INT.
16302         (DEFVAR_CONST_INT): Ditto.
16303         (DEFVAR_BOOL): Ditto.
16304         (DEFVAR_CONST_BOOL): Ditto.
16305         (DEFVAR_INT_MAGIC): Ditto.
16306         (DEFVAR_BOOL_MAGIC): Ditto.
16307
16308         * symbols.c (guts_of_unbound_marker): Use value field.
16309         * console.c (DEFVAR_CONSOLE_LOCAL_1): Ditto.
16310         * buffer.c (DEFVAR_BUFFER_LOCAL_1): Ditto.
16311
16312         * lisp.h: Declare dumpopaque and noninteractive1.
16313
16314         * alloc.c (dumpopaque): Added.
16315         (pdump_dump_opaquevec): Added.
16316         (pdump): Call pdump_dump_opaquevec to dump opaque data.
16317         (pdump_load): Reload opaque data.  Sync noninteractive1 with
16318         noninteractive.
16319
16320 2000-02-10  Andy Piper  <andy@xemacs.org>
16321
16322         * glyphs.c (image_instance_layout): if the size changes, mark it
16323         as such.
16324
16325         * redisplay-output.c (redisplay_output_layout): Update the
16326         subwindow here.
16327         (redisplay_output_subwindow): ditto.
16328
16329         * glyphs.c (update_subwindow): make sure we reset flags for
16330         layouts as well as everything else.
16331
16332         * glyphs-widget.c (layout_layout): don't need to set the instances
16333         dimensions here.
16334
16335 2000-02-09  Martin Buchholz  <martin@xemacs.org>
16336
16337         * device-x.c (x_init_device): Wrap calls to dll_*  in HAVE_SHLIB,
16338         not HAVE_DLOPEN, which is a lower-level thing.
16339
16340         * .cvsignore: Ignore gmon.out
16341
16342 2000-02-09  Hamish Macdonald <hamishm@lucent.com>
16343
16344         * .cvsignore: Ignore portable dumper xemacs.dmp file
16345
16346 2000-02-09  Andy Piper  <andy@xemacs.org>
16347
16348         * redisplay-output.c (redisplay_output_layout): be more clever
16349         about when we output based on the changed flags.
16350
16351         * glyphs.h (struct image_instantiator_methods): add update_method.
16352         (struct Lisp_Image_Instance): add changed flags. Declare new
16353         macros for manipulating them.
16354
16355         * glyphs.c (allocate_image_instance): renamed glyph -> parent.
16356         (image_instance_parent_glyph): find an image_instance's parent
16357         glyph or image_instance.
16358         (image_instance_layout): mark the size as changed.
16359         (set_image_instance_dirty_p): new function. mark an image
16360         instance, plus all of its parents, as dirty.
16361         (Fset_image_instance_property): use it.
16362         (Fglyph_animated_timeout_handler): use it.
16363         (update_subwindow): call update_widget and device methods for
16364         update_subwindow. Mark all changed flags as clean.
16365         (Fresize_subwindow): mark size as changed.
16366
16367         * glyphs-x.c (x_finalize_image_instance): try and detect gc
16368         failures.
16369         (x_update_subwindow): only resize subwindows here.
16370         (x_update_widget): new function. Update all changed properties of
16371         a widget.
16372         (x_resize_subwindow): deleted.
16373         (x_widget_set_property): deleted.
16374         (x_progress_gauge_set_property): deleted.
16375         (x_progress_gauge_update): new function. Implement recorded
16376         changes.
16377         (x_tab_control_update): ditto.
16378         (x_tab_control_set_property): deleted.
16379         (console_type_create_glyphs_x): declare new functions.
16380         (image_instantiator_format_create_glyphs_x): ditto.
16381
16382         * glyphs-widget.c (widget_set_property): mark text changed.
16383         (update_widget): new function. Update properties of a widget.
16384         (widget_instantiate): for layouts make sure we set their
16385         children's parent correctly.
16386         (tab_control_set_property): new function. Record changes that will
16387         take place under redisplay's control.
16388         (progress_gauge_set_property): ditto.
16389         (image_instantiator_progress_guage): declare new functions.
16390         (image_instantiator_tab_control): ditto.
16391
16392         * glyphs-msw.c (mswindows_update_subwindow): just do resizing here
16393         now.
16394         (mswindows_update_widget): new function. Update all properties on
16395         a widget that have changed.
16396         (mswindows_button_update): new function. Update a button's set
16397         state.
16398         (mswindows_tab_control_update): new function. Update the items in
16399         a tab.
16400         (mswindows_tab_control_set_property): deleted.
16401         (mswindows_progress_gauge_update): new function. Update the
16402         progress gauge's progress.
16403         (mswindows_widget_set_property): deleted. This is all done
16404         asynchronously now.
16405         (mswindows_progress_gauge_set_property): ditto.
16406         (console_type_create_glyphs_mswindows): declare new methods.
16407         (image_instantiator_format_create_glyphs_mswindows): ditto.
16408
16409         * frame-msw.c (msprinter_init_frame_1): Remove unused variables.
16410         (msprinter_set_frame_properties): ditto.
16411
16412         * console.h (struct console_methods): Add update_widget_method.
16413
16414 2000-02-09  Andy Piper  <andy@xemacs.org>
16415
16416         * gui-msw.c (Fmswindows_shell_execute): Make
16417         mswindows-shell-execute industrial strength.
16418
16419 2000-02-08  Martin Buchholz  <martin@xemacs.org>
16420
16421         * lrecord.h: Make macro argument `props' match member function `plist'.
16422         * fns.c (Fget):
16423         * fns.c (Fput):
16424         * fns.c (Fremprop):
16425         * fns.c (Fobject_plist):
16426         * alloc.c:
16427         * symbols.c:
16428         Object property list frobbing cleanup.
16429         - Allow any lisp object (compared with `eq'), not just symbols, as
16430           keys in object plists.
16431         - Move symbol plist frobbing into symbols.c, where it belongs.
16432         - Move string plist frobbing into alloc.c, where it belongs.
16433         - Everything's an lrecord now, so no need to test for symbolp, etc.
16434         - Fix up doc strings to refer to PROPERTY, not PROPNAME.
16435
16436         * extents.c: Reorder code to remove declarations.
16437
16438         * frame.h (store_in_alist): Remove useless declaration.
16439
16440 2000-02-07  Martin Buchholz  <martin@xemacs.org>
16441
16442         * event-Xt.c (x_has_keysym): Use XConvertCase only if available.
16443         * config.h.in: Add HAVE_XCONVERTCASE.
16444
16445 2000-02-07  Andy Piper  <andy@xemacs.org>
16446
16447         * glyphs.c (image_instance_layout): undo 2000-01-29 change since
16448         it breaks many things.
16449
16450 2000-02-07  Jan Vroonhof  <vroonhof@math.ethz.ch>
16451
16452         * src/syntax.h (SYNTAX_START_P): Check whether the two chars
16453         actually can start a common comment type.
16454         * src/syntax.h (SYNTAX_END_P): ditto for end.
16455
16456 2000-02-07  Martin Buchholz <martin@xemacs.org>
16457
16458         * XEmacs 21.2.28 is released.
16459
16460 2000-02-06  Martin Buchholz  <martin@xemacs.org>
16461
16462         * event-Xt.c (x_keysym_to_character): New.
16463         (maybe_define_x_key_as_self_inserting_character): New.
16464         (x_has_keysym): New.
16465         Auto-define all keys on the keyboard as self-insert-key.
16466
16467 2000-02-02  Martin Buchholz  <martin@xemacs.org>
16468
16469         * menubar.c (vars_of_menubar): A small code simplification.
16470
16471         * minibuf.c (echo_area_append): Workaround egcs-20000131 c++ compiler bug
16472
16473         * ExternalShell.c:
16474         * ExternalClient.c:
16475         * EmacsShell-sub.c:
16476         * EmacsManager.c:
16477         * EmacsFrame.c:
16478         Use consistent style for specifying X resources.
16479
16480         * symbols.c (Fset): Further implement SYMVAL_LISP_MAGIC.
16481         This makes (dontusethis-set-symbol-value-handler) actually usable.
16482
16483         * lrecord.h (lrecord_decription_type):
16484         * alloc.c (pdump_register_sub):
16485         (pdump_dump_data):
16486         (pdump_reloc_one):
16487         Add XD_LISP_OBJECT_ARRAY to describe multiple Lisp_Objects.
16488         Comply with XEmacs coding style.
16489         All lrecord descriptions updated to use XD_LISP_OBJECT with 2
16490         args, and XD_LISP_OBJECT_ARRAY with 3 args.
16491
16492         * keymap.c (Faccessible_keymaps):
16493         Make (accessible-keymaps map "\C-h") do the Right Thing.
16494         Make (accessible-keymaps map []) do the Right Thing.
16495         Make (accessible-keymaps map "") do the Right Thing.
16496         (check_keymap_definition_loop): New function.
16497         (keymap_store_internal): Keep luser from shooting self in foot,
16498           via (define-key ctl-x-4-map "p" global-map).
16499         Remove fullness slot from struct Lisp_Keymap, since hash tables
16500         are now reliable.
16501         (print_keymap): Remove 'Yuck' factor by simply printing "size %d".
16502
16503 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16504
16505         * redisplay.c (init_redisplay): Fix small memory leak.
16506         * elhash.h:
16507         * elhash.c (pdump_reorganize_hash_table):
16508         Rename from reorganize_hash_table. Change prototype.
16509         Reuse the original memory for hentries.  Save 100k.
16510         * alloc.c (PDUMP_READ): new macro.
16511         * alloc.c (pdump_load): Replace LISP_TO_VOID with higher-level macros.
16512         * alloc.c: No need to #ifndef before #undef.
16513
16514         * print.c: Allow debug_print() to print readably by modifying
16515         debug_print_readably.  Use consistent variable names.
16516
16517         * .dbxrc: Try to get things to work even if stopped in a function
16518         without source available by explicitly specifying source files.
16519 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16520
16521         * unexnt.c (_start): Removed bogus code which caused loading heap
16522         from differrent executable file.
16523         Removed bogus assignment to _fmode, which caused inconsistencies.
16524
16525 2000-02-03  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16526
16527         * s\windowsnt.h: Removed lots of #if 0 blocks of Emacs heritage.
16528         Have spawnve encapsulation regard DONT_ENCAPSULATE.
16529         Do not preliminary `#define signal sigset'.
16530
16531         * systime.h: Do not prototype environ on windows nt and cygwin,
16532         this conflicts with system header.
16533
16534         * syssignal.h: Use correct define for WINDOWSNT
16535
16536         * sysdep.h: Do not prototype environ on windows nt, this conflicts
16537         with system header.
16538
16539         * sysdep.c (near start of file): Fixed commentary and rearranged
16540         ifdefs in readable order.
16541         (NEED_STARTS): Do not force NEED_STARTS when PDUMPing.
16542         (start_of_text):
16543         (end_of_text):
16544         (end_of_data): Do not compile in if using PDUMP.
16545
16546         * symsinit.h: Prototyped vars_of_nt().
16547
16548         * ntproc.c (windows9x_p): Added, instead of os_subtype.
16549         (find_child_console): Use it.
16550         (sys_kill): Use it.
16551
16552         * ntheap.h: Do not extern os_subtype.
16553
16554         * ntheap.c (cache_system_info): Do not cache unneeded:
16555         nt_major_version, nt_minor_version and os_subtype.
16556         (recreate_heap): Do not compile in when PDUMPing.
16557
16558         * nt.c (geteuid and friends): Use the new varibale
16559         nt_fake_unix_uid, instead of hashing fake uid out of NT RID.
16560         (init_user_info): Removed the above mentioned hackery.
16561         (fstat, stat): Do not compile in if using MSVC 5.0 and above -
16562         stat has been fixed in the C runtime.
16563         (vars_of_nt): Added, defined the nt_fake_unix_uid variable there.
16564
16565         * file-coding.c (struct file_coding_dump): Do not define
16566         ucs_to_mule_table in the struct if not MULE.
16567         (struct struct lrecord_description fcd_description_1): Do not dump
16568         the above.
16569
16570         * emacs.c (main_1): Call vars_of_nt().
16571         (right before Fdump_emacs_data): Don't need lastfile if using both
16572         portabe dumper and system malloc.
16573
16574         * alloc.c (Fmemory_limit): Conditionalized out.
16575         (pdump): Use OPEN_BINARY for the portable dump file.
16576         (pdump_load): Ditto.
16577
16578 2000-02-02  Mike Alexander  <mta@arbortext.com>
16579
16580         * nt.c (convert_time): Set tm_isdst before calling mktime and
16581         avoid calling it at all if the compiler supports 64 bit integers.
16582         Also initialize utc_base_ft before using it.
16583
16584 2000-02-03   Daiki Ueno  <ueno@ueda.info.waseda.ac.jp>
16585
16586         * frame.c (change_frame_size_1): Take f->internal_border_width
16587         into consideration when calculating the width of the frame.
16588
16589 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16590
16591         * window.c (frame_min_height):
16592         (frame_size_valid_p):
16593         (frame_pixsize_valid_p): Added.
16594         (check_frame_size): Generalized.
16595
16596         * window.h: Prototyped the above.
16597
16598         * lisp.h:
16599         * general.c: Added Qbottom_margin, Qduplex, Qlandscape,
16600         Qleft_margin, Qorientation, Qportrait, Qright_margin, Qtop_margin.
16601         Deleted Vwin32_* and Vbinary_process_* unused variables.
16602
16603         * device-msw.c (msprinter_init_device): Do not get printer font
16604         list; Added DEVMODE functions.
16605
16606         * frame-msw.c: Added lots of printer code.
16607
16608         * faces.c: Moved 'left-margin and 'right-margin defsymbols to
16609         general.c.
16610
16611         * console-msw.h: Added more msprinter device private slots.
16612
16613 2000-02-01  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16614
16615         * event-msw.c (key_needs_default_processing_p): Added.
16616         (mswindows_wnd_proc, WM_KEYUP, KEYDOWN): Call it.
16617
16618 2000-01-29  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16619
16620         * glyphs.c (image_instance_layout): Mark image instance as clean
16621         after layout.
16622         (glyph_dirty_p): Removed redundant function.
16623         (invalidate_glyph_geometry_maybe): Added.
16624         (update_glyph_cachel_data): Call it.
16625
16626         * glyphs.h: Prototyped it.
16627
16628         * redisplay.c (add_glyph_rune): Call it.
16629         (redisplay_window): Reset glyphs cachels when frame faces have
16630         changed, thus forcing recomputation of built-in border glyphs.
16631
16632 2000-01-30  Martin Buchholz  <martin@xemacs.org>
16633
16634         * Makefile.in.in: Make portable dumper and purify play well together.
16635         Add imperfect, but better than nothing, support for pdump.
16636         Remove xemacs.dmp when temacs is re-generated.
16637         Don't ignore errors when dumping xemacs.
16638
16639         * symbols.c (maybe_call_magic_handler): Remove one magic number.
16640
16641 2000-01-28  Andy Piper  <andy@xemacs.org>
16642
16643         * frame.c (allocate_frame_core): Use new Fset_window_buffer signature.
16644         (setup_normal_frame): ditto.
16645         (setup_frame_without_minibuffer): ditto.
16646         (setup_minibuffer_frame): ditto.
16647         (delete_frame_internal): ditto.
16648         (Fmake_frame_invisible): ditto.
16649         (Ficonify_frame): ditto.
16650
16651         * window.h: change Fset_window_buffer signature.
16652
16653         * window.c (Fsplit_window): Use new Fset_window_buffer signature.
16654         (Fset_window_buffer): allow recording of buffer if the window is
16655         the selected window.
16656         (window_loop): Use new Fset_window signature.
16657
16658 2000-01-23  Daniel Pittman  <daniel@danann.net>
16659
16660         * config.h.in: Added template for `HAVE_ATHENA_3D'
16661
16662 2000-01-29  Andy Piper  <andy@xemacs.org>
16663
16664         * glyphs-x.c (x_resize_subwindow): Try and catch bogus resizes.
16665
16666         * gutter.c (output_gutter): Don't output if the window isn't live.
16667
16668 2000-01-28  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16669
16670         * glyphs-msw.c (mswindows_unmap_subwindow): Fix of corrupted patch
16671         of 01/12/00: Moved SetFocus back here where it belongs.
16672
16673 2000-01-23  Andy Piper  <andy@xemacs.org>
16674
16675         * s/cygwin32.h: declare printer things.
16676
16677 2000-01-26  Andy Piper  <andy@xemacs.org>
16678
16679         * select.c (Fown_selection_internal): GCPRO bug fix from Mike
16680         Alexander.
16681
16682 2000-01-24  Andy Piper  <andy@xemacs.org>
16683
16684         * glyphs-msw.c (mswindows_locate_pixmap_file): Expand filename.
16685         (mswindows_button_instantiate): Make sure glyph is a pixmap.
16686
16687         * glyphs-widget.c (widget_instantiate): Avoid shadows.
16688
16689         * frame-msw.c (msprinter_init_frame_3): Nuke warning.
16690
16691         * glyphs-msw.c: (mswindows_string_to_color): remove declaration.
16692
16693         * redisplay-msw.c (mswindows_output_cursor): Avoid shadows.
16694         (mswindows_output_display_block): Avoid local shadows.
16695
16696         * event-msw.c (mswindows_enqueue_magic_event): Avoid shadows.
16697         (mswindows_enqueue_mouse_button_event): ditto.
16698         (mswindows_handle_gui_wm_command): remove declaration.
16699
16700         * console-msw.c (mswindows_canonicalize_console_connection): Avoid
16701         warnings.
16702
16703         * console-msw.h: Avoid shadows.
16704         (mswindows_get_toolbar_button_text):
16705         (emacs_mswindows_create_stream_pair):
16706         (emacs_mswindows_delete_stream_pair):
16707         (mswindows_handle_toolbar_wm_command): declare.
16708
16709         * device-msw.c (build_syscolor_string): Avoid shadows.
16710
16711 2000-01-23  Andy Piper  <andy@xemacs.org>
16712
16713         * glyphs-widget.c (widget_instantiate): reverse the items for
16714         layouts so that children are in the expected order.
16715
16716 2000-01-28  Martin Buchholz  <martin@xemacs.org>
16717
16718         * ralloc.c: safe_bcopy ==> memmove
16719         * gmalloc.c: Remove MEMMOVE_MISSING conditional code.
16720         * s/msdos.h: Remove BCOPY macros.
16721         * insdel.c (gap_right): Remove BCOPY conditional code.
16722         * insdel.c (gap_left): Remove BCOPY conditional code.
16723         XEmacs demands a working ANSI C compiler - hence memmove.
16724
16725         * regex.c (regex_compile): Remove accidental use of trigraphs.
16726
16727 2000-01-27  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16728
16729         * event-msw.c (mswindows_enqueue_misc_user_event): Initialize
16730         event timestamp.
16731
16732 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16733
16734         * event-msw.c (mswindows_drain_windows_queue): Added the
16735         parameter.
16736         (mswindows_need_event): Commented the call to
16737         mswindows_drain_windows_queue().
16738         (emacs_mswindows_quit_p): Lookup the windows for keyboard messages
16739         only.
16740
16741         * console-msw.h: Moved a few function prototypes here from
16742         event-msw.c.
16743
16744         * gui-msw.c (mswindows_handle_gui_wm_command): Changed the ID
16745         parameter from unsigned short to unsigned long.
16746         (Fmswindows_shell_execute): Added return value.
16747
16748 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16749
16750         * sysdep.c (init_system_name):
16751           process-unix.c (unix_canonicalized_host_name):
16752         Don't call freeaddrinfo() if getaddrinfo() fails.
16753
16754         * process-unix.c (unix_open_unix_network_stream):
16755         Moved the code to get a port # into address loop.
16756
16757 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16758
16759         * buffer.c (reinit_vars_of_buffer):
16760         The right place to initialize conversion_in_dynarr and
16761         conversion_out_dynarr.
16762
16763         * alloc.c (pdump): Use the real open() till sys_open() is functional.
16764
16765         * process-unix.c (unix_canonicalize_host_name): Muleize.
16766         (unix_open_network_stream): Muleize.
16767
16768         * buffer.h: Fix up prototypes for ralloc.c functions.
16769
16770 2000-01-27  URA Hiroshi <ura@hiru.aoba.yokohama.jp>
16771         * config.h.in: added HAVE_GETADDRINFO and HAVE_GETNAMEINFO
16772         * sysdep.c: In init_system_name(), add code to use getaddrinfo()
16773                 instead of gethostbyname()
16774         * process-unix.c: In unix_canonicalize_host_name() and
16775                 unix_open_network_stream(), add code to use getaddrinfo()
16776                 instead of gethostbyname().
16777
16778 2000-01-27  Daniel Pittman <daniel@danann.net>
16779
16780         * device-x.c (x_init_device): Warn at run-time if using Athena 3d
16781         libs when built with flat Athena.
16782
16783 2000-01-27  Martin Buchholz  <martin@xemacs.org>
16784
16785         * ralloc.c: Replace SIZE (conflicts with Windows headers) with size_t.
16786         Use coding standards for function prototypes.
16787
16788 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16789
16790         * dialog-msw.c (push_lisp_string_as_unicode):
16791         * doc.c (unparesseuxify_doc_string):
16792         * dired.c (Fuser_name_completion_1):
16793         * dired.c (Fuser_name_all_completions):
16794         * dired.c (free_user_cache):
16795         * dired.c (user_name_completion):
16796         * console-x.c (get_display_arg_connection):
16797         * minibuf.c (clear_echo_area_internal):
16798         * minibuf.c (echo_area_append):
16799         * eldap.c (Fldap_open):
16800         * eldap.c (Fldap_search_internal):
16801         * frame-x.c (x_set_frame_text_value):
16802         * frame-x.c (x_set_frame_properties):
16803         * frame-x.c (x_create_widgets):
16804         * redisplay-tty.c (term_get_fkeys_1):
16805         * objects-x.c (x_parse_nearest_color):
16806         * objects-x.c (x_valid_color_name_p):
16807         * objects-x.c (x_initialize_font_instance):
16808         * objects-x.c (x_list_fonts):
16809         * objects-x.c (x_find_charset_font):
16810         * tooltalk.c (Fadd_tooltalk_message_arg):
16811         * tooltalk.c (Fadd_tooltalk_pattern_attribute):
16812         * tooltalk.c (Fadd_tooltalk_pattern_arg):
16813         * process-unix.c (unix_create_process):
16814         * ntproc.c (sys_spawnve):
16815         * sound.c (Fplay_sound_file):
16816         * sound.c (Fplay_sound):
16817         * buffer.c (init_initial_directory):
16818         * buffer.c (init_buffer):
16819         * editfns.c (init_editfns):
16820         * editfns.c (Ftemp_directory):
16821         * editfns.c (Fuser_full_name):
16822         * editfns.c (uncache_home_directory):
16823         * editfns.c (get_home_directory):
16824         * editfns.c (Fuser_home_directory):
16825         * editfns.c (Fformat_time_string):
16826         * editfns.c (Fcurrent_time_string):
16827         * gui-x.c (button_item_to_widget_value):
16828         * database.c (Fopen_database):
16829         * event-Xt.c (x_to_emacs_keysym):
16830         * event-Xt.c (x_event_to_emacs_event):
16831         * event-Xt.c (describe_event_window):
16832         * event-msw.c (mswindows_wnd_proc):
16833         * glyphs-eimage.c (jpeg_instantiate):
16834         * glyphs-eimage.c (gif_instantiate):
16835         * glyphs-eimage.c (png_instantiate):
16836         * glyphs-eimage.c (tiff_instantiate):
16837         * glyphs-x.c (xbm_instantiate_1):
16838         * glyphs-x.c (x_xbm_instantiate):
16839         * glyphs-x.c (x_xface_instantiate):
16840         * glyphs-x.c (autodetect_instantiate):
16841         * glyphs-x.c (cursor_font_instantiate):
16842         * glyphs-x.c (x_widget_instantiate):
16843         * glyphs-x.c (x_widget_set_property):
16844         * glyphs-x.c (x_widget_property):
16845         * glyphs-x.c (BUILD_GLYPH_INST):
16846         * print.c (write_string_to_stdio_stream):
16847         * print.c (output_string):
16848         * print.c (Falternate_debugging_output):
16849         * print.c (Fexternal_debugging_output):
16850         * glyphs-msw.c (extract_xpm_color_names):
16851         * glyphs-msw.c (mswindows_xpm_instantiate):
16852         * glyphs-msw.c (bmp_instantiate):
16853         * glyphs-msw.c (resource_name_to_resource):
16854         * glyphs-msw.c (mswindows_resource_instantiate):
16855         * glyphs-msw.c (xbm_instantiate_1):
16856         * glyphs-msw.c (mswindows_xbm_instantiate):
16857         * glyphs-msw.c (mswindows_xface_instantiate):
16858         * glyphs-msw.c (mswindows_widget_instantiate):
16859         * glyphs-msw.c (add_tree_item):
16860         * glyphs-msw.c (add_tab_item):
16861         * glyphs-msw.c (mswindows_combo_box_instantiate):
16862         * glyphs-msw.c (mswindows_widget_property):
16863         * glyphs-msw.c (mswindows_combo_box_property):
16864         * glyphs-msw.c (mswindows_widget_set_property):
16865         * console.c (stuff_buffered_input):
16866         * objects-msw.c (mswindows_initialize_color_instance):
16867         * objects-msw.c (mswindows_valid_color_name_p):
16868         * objects-msw.c (mswindows_list_fonts):
16869         * objects-msw.c (mswindows_font_instance_truename):
16870         * bytecode.c (optimize_compiled_function):
16871         * select-x.c (symbol_to_x_atom):
16872         * select-x.c (x_atom_to_symbol):
16873         * select-x.c (hack_motif_clipboard_selection):
16874         * select-x.c (selection_data_to_lisp_data):
16875         * select-x.c (lisp_data_to_selection_data):
16876         * select-x.c (Fx_get_cutbuffer_internal):
16877         * select-x.c (Fx_store_cutbuffer_internal):
16878         * buffer.h (TO_EXTERNAL_FORMAT): New function.
16879         * buffer.h (TO_INTERNAL_FORMAT): New function.
16880         * emacs.c (make_arg_list_1):
16881         * emacs.c (make_argc_argv):
16882         * emacs.c (main_1):
16883         * emacs.c (Fdump_emacs):
16884         * emacs.c (split_string_by_emchar_1):
16885         * file-coding.h:
16886         * lisp.h:
16887         * lstream.h:
16888         * symsinit.h:
16889         * device-x.c (x_init_device):
16890         * device-x.c (Fx_valid_keysym_name_p):
16891         * device-x.c (Fx_get_font_path):
16892         * device-x.c (Fx_set_font_path):
16893         * glyphs.c (bitmap_to_lisp_data):
16894         * glyphs.c (pixmap_to_lisp_data):
16895         * alloc.c (make_ext_string): Use coding system arguments.  Update
16896         all callers.
16897         * alloc.c (build_string):
16898         * callproc.c (child_setup):
16899         * callproc.c (init_callproc):
16900         * fileio.c (lisp_strerror):
16901         * fileio.c (directory_file_name):
16902         * fileio.c (Fexpand_file_name):
16903         * fileio.c (Ffile_truename):
16904         * fileio.c (Fsysnetunam):
16905         * fileio.c (Fdo_auto_save):
16906         * sysdep.c (sys_readdir):
16907         * tests.c: New file.  Allow adding C tests.
16908         Replace GET_* macros with a more comprehensible and flexible
16909         interface, TO_INTERNAL_FORMAT() and TO_EXTERNAL_FORMAT().
16910         Modify all calls.
16911         Any coding system can be used to do format conversion.
16912         Eliminate enum external_data_format.
16913         Eliminate convert_to_external_format.
16914         Eliminate convert_to_internal_format.
16915         Make sure file-name, keyboard, terminal, and ctext are always
16916         defined as coding systems or aliases.  Make
16917         file-name-coding-system, terminal-coding-system, and
16918         keyboard-coding-system magical variables that are equivalent to
16919         defining the corresponding coding system aliases.
16920
16921         * file-coding.c (Fcoding_system_canonical_name_p): New function.
16922         * file-coding.c (Fcoding_system_alias_p): New function.
16923         * file-coding.c (Fcoding_system_aliasee): New function.
16924         * file-coding.c (append_suffix_to_symbol): New function.
16925         * file-coding.c (dangling_coding_system_alias_p): New function.
16926         * file-coding.c (Ffind_coding_system):
16927         * file-coding.c (Fcopy_coding_system):
16928         * file-coding.c (encode_coding_no_conversion):
16929         * file-coding.c (syms_of_file_coding):
16930         * file-coding.c (vars_of_file_coding):
16931         Rewrite coding system alias code.
16932         Allow nested aliases, like symbolic links.
16933         Allow redefinition of coding system aliases.
16934         Prevent existence of dangling coding system aliases.
16935
16936         * dired.c (Fuser_name_completion_1):
16937         * dired.c (Fuser_name_all_completions):
16938         A crash would happen if user did QUIT in the middle of building
16939         user_name_cache.  Remove redundant code in mainline and unwind_protect.
16940
16941         * lisp.h:
16942         * dynarr.c (Dynarr_min_size): Make static.  Increase value to 8.
16943
16944         * lstream.c (make_fixed_buffer_input_stream): Take a void *, not
16945         an unsigned char *.  Update all callers.
16946
16947 2000-01-26  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
16948
16949         * callproc.c (Fcall_process_internal): Ignore Vbinary-process_output.
16950
16951 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16952
16953         * elhash.c (hentry_description): Use more portable definition.
16954         (resize_hash_table): Initialize new hentries using
16955         xnew_array_and_zero, thereby simplifying the code.
16956
16957         * mule-charset.c (make_charset): Make sure entire object is
16958         initialized, to avoid Purify warnings.
16959
16960         * alloc.c (resize_string): Fix unlikely crash with big strings.
16961
16962 2000-01-24  Martin Buchholz  <martin@xemacs.org>
16963
16964         * realpath.c (xrealpath):
16965         Don't call getwd().
16966
16967 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16968
16969         * lread.c (read_bit_vector): Fix memory leak reading literal bit vectors.
16970
16971 1999-12-28  Max Matveev  <max@melbourne.sgi.com>
16972
16973         * unexelfsgi.c (unexec): Change the way we decide which segment
16974         should be extended.
16975
16976         Assumption that .bss section should be outside the PT_LOADable
16977         segment. On IRIX with version 6.2 and above, .bss (or .sbss, if
16978         it's present) is inside the 'data' segment. This would fail the
16979         test which was used to find a segment to grow and cover new
16980         heap. Instead of this assumption, I created another one - on IRIX
16981         the segment to grow should start below .bss and it's address
16982         should extent above the end of .bss. Once this segment is
16983         identified, it's grown to accommodate the new heap and new
16984         zero-length .bss section is added at the end of .data2.
16985
16986 2000-01-25  Martin Buchholz  <martin@xemacs.org>
16987
16988         * eval.c (Feval): Wrong number of arguments should use original
16989         function, not the indirect_function version of it.
16990
16991 2000-01-24  Yoshiki Hayashi  <yoshiki@xemacs.org>
16992
16993         * glyphs-x.c (x_button_instantiate): Don't add image if
16994         it is not a pixmap.
16995         (x_locate_pixmap_file): Call Fexpand_file_name when file name
16996         is relative.
16997
16998 2000-01-21  Yoshiki Hayashi  <yoshiki@xemacs.org>
16999
17000         * symeval.h (DEFVAR_LISP_MAGIC): Remove semicolon after macro
17001         declaration.
17002         (DEFVAR_INT_MAGIC): Ditto.
17003         (DEFVAR_BOOL_MAGIC): Ditto.
17004         * glyphs.h: Reindent backslash.
17005
17006 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17007
17008         * glyphs-widget.c (layout_query_geometry):
17009         (layout_layout): Use correct types for gheight, gwidth.
17010
17011 2000-01-24  Martin Buchholz  <martin@xemacs.org>
17012
17013         * EmacsManager.c (QueryGeometry): Purified.
17014
17015 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17016
17017         * alloc.c (make_float): Make sure entire object is initialized, to
17018         avoid Purify warnings.
17019         (pdump_register_sub): Remove useless assignment.
17020         (pdump): Use xmalloc, not malloc.
17021         (pdump_load): Use xmalloc, not malloc.
17022
17023 2000-01-23  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17024
17025         * callproc.c:
17026         * dired-msw.c:
17027         * fileio.c:
17028         * process-nt.c:
17029         * redisplay-msw.c:
17030         * sysdep.c: Removed redundant #include <windows.h>
17031
17032 2000-01-22  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17033
17034         * frame.c (delete_frame_internal): Do not delete device when its
17035         implementation so declares.
17036         (delete_frame_internal): Set device selected frame to nil when
17037         last frame goes away.
17038
17039         * device-msw.c (msprinter_device_system_metrics): Implemented.
17040         (mswindows_device_system_metrics): Added 'device-dpi property.
17041
17042         * device.c: (Fdevice_printer_p): Added.
17043         Added 'offset-workspace device metric.
17044
17045         * console.h (device_metrics): Declared DM_offset_workspace.
17046
17047 2000-01-23  Martin Buchholz  <martin@xemacs.org>
17048
17049         * fileio.c (Ffile_truename): Remove pointless and confusing
17050         initialization of elen.
17051
17052         * glyphs-widget.c: Compiler warning fixes.
17053
17054 2000-01-23  Gunnar Evermann  <ge204@eng.cam.ac.uk>
17055
17056         * process.h (PROCESS_LIVE_P): Modify to take a Lisp_Process
17057         instead of a Lisp_Object as argument to make it consistent with
17058         the other LIVE_P macros.
17059         (CHECK_LIVE_PROCESS): New macro.
17060
17061         * process.c: Declare Qprocess_live_p.
17062         (Fprocess_live_p): New function.
17063         (create_process): Use PROCESS_LIVE_P.
17064         (read_process_output): Ditto.
17065         (set_process_filter): Ditto.
17066         (Fdelete_process): Ditto.
17067         (kill_buffer_processes): Ditto
17068         (process_send_signal): Use CHECK_LIVE_PROCESS.
17069         (Fprocess_input_coding_system): Check whether process is still
17070         alive (fix PR#1061).
17071         (Fprocess_output_coding_system): Ditto.
17072         (Fprocess_coding_system): Ditto.
17073         (Fset_process_input_coding_system): Ditto.
17074         (Fset_process_output_coding_system): Ditto.
17075
17076 2000-01-23  Andy Piper  <andy@xemacs.org>
17077
17078         * glyphs.h (struct Lisp_Image_Instance): change format by unifying
17079         layout and widget.
17080
17081         * glyphs.c (mark_image_instance): take into account changed
17082         image_instance format.
17083         (image_instance_equal): ditto.
17084         (image_instance_hash): ditto.
17085
17086         * glyphs-widget.c (widget_instantiate): Incorporate layout
17087         instantiation here. Delay layout of the layout until later.
17088         (layout_instantiate): deleted.
17089         (layout_query_geometry): new function. get the geometry of a
17090         layout.
17091         (layout_layout): layout a layout dynamically.
17092         (image_instantiator_widget): New function - splitting up
17093         image_instantiator_format_create_glyphs_widget for netwinder
17094         compilation.
17095         (image_instantiator_buttons):
17096         (image_instantiator_edit_fields):
17097         (image_instantiator_combo_box):
17098         (image_instantiator_scrollbar):
17099         (image_instantiator_progress_guage):
17100         (image_instantiator_tree_view):
17101         (image_instantiator_tab_control):
17102         (image_instantiator_labels):
17103         (image_instantiator_layout): ditto.
17104         (image_instantiator_format_create_glyphs_widget): Call preceding
17105         functions.
17106
17107 2000-01-22  Martin Buchholz  <martin@xemacs.org>
17108
17109         * process.c (Fset_process_coding_system):
17110         * device-x.c (Fx_keysym_hash_table):
17111         Docstring fixes.
17112
17113         * lstream.c (Lstream_write): Return documented value, not 0.
17114
17115         * fileio.c (directory_file_name):
17116         (Fsubstitute_in_file_name):
17117         (Fsubstitute_insert_file_contents_internal):
17118         (Fwrite_region_internal):
17119         * emacs.c:
17120         * sysdep.c:
17121         * getloadavg.c:
17122         * systty.h:
17123         Remove vestigial APOLLO-conditional code.
17124
17125 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17126
17127         * getpagesize.h: Add guard macros.
17128         * libsst.h: Add guard macros.
17129         * libst.h: Add guard macros.
17130         * line-number.h: Add guard macros.
17131         * ndir.h: Add guard macros.
17132         * sysfloat.h: Add guard macros.
17133         * sysfile.h: Add guard macros.
17134         * sysproc.h: Add guard macros.
17135         * syswait.h: Add guard macros.
17136         * xintrinsic.h: Add guard macros.
17137         * xintrinsicp.h: Add guard macros.
17138         * xmmanager.h: Add guard macros.
17139         * xmmanagerp.h: Add guard macros.
17140         * xmprimitive.h: Add guard macros.
17141         * xmu.h: Add guard macros.
17142         * gpmevent.h: Add copyright statement. Add guard macros.
17143         * miscplay.h: Add guard macros.
17144         * *.h: Use consistent C-standards-approved guard macro names.
17145
17146         * opaque.c (make_opaque): Switch parameter order.
17147         * opaque.h (make_opaque): Switch parameter order.
17148         Update all callers.
17149         * buffer.h (MAKE_MIRROR_TRT_TABLE): Use symbolic constant OPAQUE_CLEAR.
17150
17151         * config.h.in (type_checking_assert): Added.
17152         (bufpos_checking_assert): Added.
17153
17154 2000-01-21  Martin Buchholz  <martin@xemacs.org>
17155
17156         * alloc.c: Harmless pdump changes.
17157         - Use countof().
17158         - spell alignment correctly.
17159         * sysdep.c: Use countof()
17160
17161 2000-01-20  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17162
17163         * console.c (create_console): Use CONMETH_OR_GIVEN when calling
17164         initially_selected_for_input() console method, default to 0.
17165         (semi_canonicalize_console_connection): Try to delegate to
17166         canonicalize_console_connection if no such console method.
17167         (canonicalize_console_connection): Vice versa.
17168         (print_console): Do not print nil connection.
17169
17170         * console.h (XDEVIMPF_IS_A_PRINTER): Added.
17171         (XDEVIMPF_NO_AUTO_REDISPLAY): Added.
17172         (XDEVIMPF_FRAMELESS_OK): Added.
17173         (CONSOLE_INHERITS_METHOD): Added.
17174
17175         * console-msw.c (mswindows_canonicalize_console_connection):
17176         Added.
17177         (mswindows_canonicalize_device_connection): Added.
17178
17179         * console-msw.h (struct msprinter_device): Added this struct and
17180         accessor macros.
17181         (mswindows_device): Made fontlist a lisp object.
17182
17183         * device.c (semi_canonicalize_device_connection):  Try to delegate
17184         to canonicalize_device_connection if no such console method.
17185         (canonicalize_device_connection): Vice versa.
17186         (print_device): Do not print nil connection.
17187
17188         * device-msw.c (mswindows_init_device): Call InitCommonControls
17189         when have widgets.
17190         (mswindows_delete_device): Removed fontlist deallocation.
17191         (mswindows_mark_device): Added.
17192
17193         * events.c (event_equal): Added abort() at unreached code.
17194         (event_hash): Ditto.
17195
17196         * faces.c (complex_vars_of_faces): Added Qmsprinter to the list of
17197         fallback tags of Windows devices.
17198
17199         * general.c (syms_of_general): Initialized Qmsprinter.
17200
17201         * gutter.c (complex_vars_of_gutters): Added Qmsprinter to the list
17202         of fallback tags of Windows devices.
17203
17204         * lisp.h: Declared Qmsprinter.
17205
17206         * objects-msw.c (font_enum_callback_2): Rewrote to build lisp list
17207         of strings.
17208         (mswindows_list_fonts): Ditto.
17209         (mswindows_enumerate_fonts): Removed dependency on XDEVICE, so
17210         that it can be used by both mswindows and msprinter devices.
17211         (initialize_font_instance): Added.
17212         (mswindows_initialize_font_instance): Use it.
17213         (msprinter_initialize_font_instance): Added.
17214
17215         * redisplay.c (redisplay_device): Added the parameter AUTOMATIC
17216         and implementation flags check.
17217         (redisplay_without_hooks): Changed the call to the above.
17218         (Fredraw_device): Ditto.
17219         (Fredisplay_device): Ditto.
17220
17221         * redisplay-msw.c (get_frame_dc): Implemented.
17222         (get_frame_compdc): Implemented.
17223         (many functions): Use the two functions above to get device
17224         contexts, ether for a window or a printer.
17225
17226 2000-01-21  Olivier Galibert  <galibert@pobox.com>
17227
17228         * symbols.c (reinit_symbols_once_early): Put Qzero/Qnull_pointer
17229         initialization here.
17230         (init_symbols_once_early): Call it.
17231         * emacs.c (main_1): Call it.
17232         * symsinit.h: Declare it.
17233
17234 2000-01-19  Olivier Galibert  <galibert@pobox.com>
17235
17236         * alloc.c: Use a lrecord_header * in the backtrace instead of a
17237         Lisp_Object.
17238         (pdump_backtrace): Ditto.
17239         (pdump_register_object): Ditto.  Cleanup use of the pointers.
17240         (pdump_get_entry): Abort if trying to register a null pointer.
17241         (pdump_dump_data): Cleanup types when relocating.
17242         (pdump_dump_staticvec): Cleanup types w.r.t the reloc table.
17243         (pdump_dump_rtables): Remove bad casts.
17244         (pdump_load): Cleanup relocation w.r.t union type.  Use a
17245         Lisp_Object instead of a EMACS_INT for the hashtable
17246         reorganization.
17247
17248 2000-01-20  Martin Buchholz  <martin@xemacs.org>
17249
17250         * emacs.c (main_1): Rearrange morass of #ifdef's for correctness.
17251
17252         * callproc.c (call_process_cleanup): Isolate WINDOWSNT code for clarity.
17253
17254         * EmacsManager.c (GeometryManager): Avoid use of CPP for clarity.
17255
17256         * *.[ch]: global-replace 's/_of_xselect/_of_select_x/g' *.[ch]
17257
17258 2000-01-17  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17259
17260         * faces.h (FACE_STRIKETHRU_P): Added.
17261
17262         * glyphs-msw.c (mswindows_widget_hfont): Implemented, to take care
17263         of font variants.
17264
17265         * redisplay-msw.c (mswindows_apply_face_effects): Deleted.
17266         (mswindows_set_dc_font): New function, aware of font variants,
17267         separated from mswindows_update_dc.
17268
17269         * objects-msw.h (struct mswindows_font_instance_data): Added
17270         definition.
17271
17272         * objects-msw.c (mswindows_finalize_font_instance): Delete all
17273         cached fonts and the data structure.
17274         (mswindows_initialize_font_instance): Added creation of font data
17275         structure.
17276         (mswindows_print_font_instance): Print at least something.
17277         (mswindows_create_font_variant): Implemented.
17278         (mswindows_get_hfont): Implemented.
17279
17280 2000-01-13  Fabrice Popineau  <Fabrice.Popineau@supelec.fr>
17281
17282         * dired-msw.c: permute "sysdir.h" with "sysfile.h" because of
17283         prototyping problem with msvc.
17284
17285         * emacs.c (main_1): added syms_of_gui_mswindows() call
17286
17287         * gui-msw.c: added "mswindows-shell-execute" lisp subr and
17288         syms_of_gui_mswindows() function
17289
17290         * symsinit.h: added the prototype for syms_of_gui_mswindows()
17291
17292 2000-01-18  Martin Buchholz <martin@xemacs.org>
17293
17294         * XEmacs 21.2.27 is released.
17295
17296 2000-01-18  Martin Buchholz  <martin@xemacs.org>
17297
17298         * glyphs-eimage.c (struct tiff_error_struct):
17299         (tiff_error_func):
17300         (tiff_warning_func):
17301         #if HAVE_VSNPRINTF ==> #ifdef HAVE_VSNPRINTF
17302
17303         * unexmips.c:
17304         * unexhp9k3.c:
17305         * unexfreebsd.c:
17306         * unexec.c: Remove vestigial Lucid C code.
17307         * unexalpha.c:
17308         * unexaix.c:
17309         * termcap.c:
17310         * libsst.c: Ansify.
17311         Remove declarations of errno and strerror().
17312
17313         * eval.c (Fbacktrace): Small Purify-cation.  Fix docstring.
17314
17315         * .dbxrc (run-temacs): Use the horrible ${1+"$@"} instead of "$@".
17316
17317 2000-01-16  Martin Buchholz  <martin@xemacs.org>
17318
17319         * mule-charset.c (Fchar_octet): Resurrect from earlier in 1999.
17320         Optimize.
17321
17322 2000-01-14  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17323
17324         * md5.c:
17325         * file-coding.c:
17326         * file-coding.h:
17327         Change enum eol_type to eol_type_t.
17328
17329 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17330
17331         * gui.c (get_gui_callback): Check cons before accessing car.
17332
17333 2000-01-17  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17334
17335         * specifier.h (XSPECIFIER_TYPE): Add error checking version.
17336         (XSETSPECIFIER_TYPE): Ditto.
17337
17338 2000-01-17  Didier Verna  <didier@xemacs.org>
17339
17340         * redisplay.c (generate_fstring_runes): compute string size in
17341         characters, not bytes.
17342
17343 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17344
17345         * window.c (Fwindow_minibuffer_p): Make WINDOW optional.
17346
17347 2000-01-14  Hrvoje Niksic  <hniksic@iskon.hr>
17348
17349         * print.c (print_error_message): Call print_prepare().
17350
17351 2000-01-14  Martin Buchholz  <martin@xemacs.org>
17352
17353         * .dbxrc: Renamed from dbxrc.
17354
17355         * events.c (event_to_character):
17356         Use `assert (foo)' instead of `if (!foo) abort()'
17357
17358         * .gdbinit (xtype): Add documentation.
17359         * .gdbinit (check-temacs): New function.
17360         * .gdbinit (check-xemacs): New function.
17361         * dbxrc (check-xemacs): New function.
17362         * dbxrc (check-xemacs): New function.
17363
17364 2000-01-14  Andy Piper  <andy@xemacs.org>
17365
17366         * glyphs-widget.c (widget_query_geometry): Make sure that we
17367         calculate default dimensions correctly.
17368
17369 2000-01-13  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17370
17371         * symsinit.h: Added prototype for reinit_vars_of_frame_mswindows.
17372
17373         * event-msw.c (vars_of_event_mswindows): Fixed a mistyped
17374         pdump_wire'd variable.
17375
17376         * emacs.c: (main_1): Conditionalized calls to
17377         reinit_vars_of_scrollbar_x and reinit_vars_of_module.
17378
17379 2000-01-13  Martin Buchholz  <martin@xemacs.org>
17380
17381         * window.c (Fset_window_configuration):
17382         * sysdep.c (_start):
17383         * input-method-motif.c (res):
17384         * event-Xt.c (Xt_process_to_emacs_event):
17385         Simple compiler warning fixes.
17386
17387         * bytecode.c (funcall_compiled_function): Use the original
17388         function symbol on the backtrace list in preference to the
17389         compiled_function object in error messages.
17390
17391 2000-01-13  Andy Piper  <andy@xemacs.org>
17392
17393         * glyphs-x.c (update_widget_face): Make sure we update the widget
17394         background as well as foreground.
17395
17396 2000-01-13  Andy Piper  <andy@xemacs.org>
17397
17398         * glyphs.h (struct Lisp_Image_Instance): Move justify and orient
17399         fields to subwindow.
17400         (IMAGE_INSTANCE_SUBWINDOW_JUSTIFY): new macro.
17401         (XIMAGE_INSTANCE_SUBWINDOW_JUSTIFY): ditto.
17402         (IMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17403         (XIMAGE_INSTANCE_SUBWINDOW_ORIENT): ditto.
17404
17405         * glyphs-widget.c (check_valid_tab_orientation): new function.
17406         (initialize_widget_image_instance): zero orientation and
17407         justification.
17408         (widget_instantiate): pick up orientation.
17409         (tab_control_query_geometry): return appropriate values for
17410         vertical tabs.
17411
17412         * glyphs-msw.c: (mswindows_tab_control_instantiate): assign
17413         appropriate creation flags for left, right and bottom tabs.
17414
17415         * s/cygwin32.h: add tab definitions.
17416
17417 2000-01-12  Kirill 'Big K' Katsnelson  <kkm@dtmx.com>
17418
17419         * glyphs-msw.c (mswindows_unmap_subwindow): Set focus back to the
17420         frame upon hiding a subwindow.
17421         (mswindows_button_instantiate): Changed the push button style to
17422         BS_PUSHBUTTON.
17423         (mswindows_button_instantiate): Removed button BS_NOTIFY
17424         style.
17425         (mswindows_button_instantiate): Removed redundant check for
17426         a disabled gui item.
17427         (mswindows_button_instantiate): Made use of WS_TABSTOP
17428         consistent: "operable" controls (edit, button, tree, scroll) have
17429         this style, "display-only" ones (static, progress gauge) do
17430         not. This style is currently ignored by XEmacs though. Also,
17431         removed the WS_EX_CONTROLPARENT style - it is not for children,
17432         it is for their parents!
17433         (mswindows_edit_field_instantiate): Ditto.
17434         (mswindows_progress_gauge_instantiate): Ditto.
17435         (mswindows_tree_view_instantiate): Ditto.
17436         (mswindows_tab_control_instantiate): Ditto.
17437         (mswindows_scrollbar_instantiate): Ditto.
17438         (mswindows_combo_box_instantiate): Ditto.
17439         (mswindows_widget_instantiate): Added the WS_EX_CONTROLPARENT
17440         style to the "clip" window.
17441         (mswindows_button_instantiate): Removed compilation warning by
17442         equally typing terms of the ?: operator.
17443
17444 2000-01-12  Didier Verna  <didier@xemacs.org>
17445
17446         * redisplay.c (generate_fstring_runes): new parameter holding the
17447         last modeline-format extent.
17448         (add_glyph_to_fstring_db_runes): new parameter holding the glyph
17449         extent, fill the glyph block with it.
17450         (generate_fstring_runes): handle these parameters.
17451         (generate_formatted_string_db): ditto.
17452
17453         * keymap.c (get_relevant_keymaps): retreive the keymaps from the
17454         glyphs'extents in the modeline.
17455
17456 1999-01-11  Mike Woolley  <mike@bulsara.com>
17457
17458         * ntheap.c: Reduced the reserved heap space from 1Gb down to
17459         256Mb, as a workaround for the non-starting problem many people
17460         have experienced.
17461
17462 2000-01-06  Yoshiki Hayashi  <t90553@mail.ecc.u-tokyo.ac.jp>
17463
17464         * console-tty.c (Fset_console_tty_output_coding_system):
17465         Force redrawing tty frame.
17466
17467 2000-01-10  Didier Verna  <didier@xemacs.org>
17468
17469         * redisplay.c (generate_fstring_runes): fix size computation bug.
17470
17471 2000-01-09  William M. Perry <wmperry@aventail.com>
17472
17473         * gpmevent.c: (gpm_next_event_cb): Don't return value from void function.
17474
17475 2000-01-09  Andy Piper  <andy@xemacs.org>
17476
17477         * glyphs-msw.c: index -> i to avoid shadows.
17478         (xbm_create_bitmap_from_data): make static.
17479         (check_valid_string_or_int): deleted.
17480         (mswindows_control_wnd_proc): message -> msg to avoid shadows.
17481
17482         * glyphs-x.c (x_update_subwindow): remove unused args.
17483
17484         * glyphs.c (glyph_image_instance): return the thing. Don't set the
17485         back pointer - this is done in allocate_image_instance.
17486         (query_string_font): return Qnil to make the compiler happy.
17487         (unmap_subwindow): set to ~0 to make the compiler happy.
17488         (glyph_query_geometry): comment out until used.
17489         (glyph_layout): ditto.
17490
17491 2000-01-09  Hrvoje Niksic  <hniksic@iskon.hr>
17492
17493         * insdel.c (signal_after_change): Remove extraneous unbind_to().